@opengis/gis 0.2.175 → 0.2.176

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.
Files changed (158) hide show
  1. package/README.md +181 -181
  2. package/dist/{CardIcon-Cg8bUM4G.js → CardIcon-c1Q2M3wQ.js} +1 -1
  3. package/dist/{EntityTablePage-DHQGlLRk.js → EntityTablePage-B5gpkH4S.js} +2 -2
  4. package/dist/{ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-BIL1ocLY.js → ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-DnGSvmMU.js} +1 -1
  5. package/dist/{HeaderActions.vue_vue_type_script_setup_true_lang-Buff9gTO.js → HeaderActions.vue_vue_type_script_setup_true_lang-C2B61JP6.js} +1 -1
  6. package/dist/{MapSettings-De-z7r5t.js → MapSettings-6-Xru5Q8.js} +2 -2
  7. package/dist/{RastersTablePage-Cdgkri9K.js → RastersTablePage-CXNOcTy-.js} +2 -2
  8. package/dist/{cartocss-BT50SVhy.js → cartocss-BFVqWvfP.js} +6 -6
  9. package/dist/{import-utils-CMWiuRPp.js → import-utils-uxk4LdUJ.js} +1 -1
  10. package/dist/{index-CHFLgCGW.js → index-CahlV-Xs.js} +39 -39
  11. package/dist/index.css +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/index.umd.cjs +19 -19
  14. package/dist/{raster-dSEb1SIG.js → raster-CEi56f0P.js} +3 -3
  15. package/dist/{register-D7Puupgo.js → register-NFAGBNa3.js} +3 -3
  16. package/dist/{service-Cz6T0O3Z.js → service-BYspag8U.js} +829 -832
  17. package/dist/{vs-datatable-DqVncrSg.js → vs-datatable-CHcBr6zy.js} +2 -2
  18. package/module/gis/cls/service_type.json +42 -42
  19. package/module/gis/form/gis.registers.form.json +127 -127
  20. package/module/test/map/addr.json +302 -302
  21. package/module/test/map/addr1.yml +23 -23
  22. package/module/test/select/address.str_id.sql +3 -3
  23. package/package.json +77 -77
  24. package/plugin.js +64 -64
  25. package/server/migrations/array_intersect.sql +13 -13
  26. package/server/migrations/cartocss.sql +27 -27
  27. package/server/migrations/group_list.sql +74 -74
  28. package/server/migrations/maps.sql +30 -30
  29. package/server/migrations/metadata.sql +415 -415
  30. package/server/migrations/ogc.sql +106 -106
  31. package/server/migrations/rasters.sql +265 -265
  32. package/server/migrations/services.sql +247 -247
  33. package/server/migrations/services_users_rel.sql +22 -22
  34. package/server/migrations/widgets.sql +20 -20
  35. package/server/plugins/crons.js +21 -21
  36. package/server/plugins/mapnik/funcs/checkRasterFile.js +107 -107
  37. package/server/plugins/mapnik/funcs/mapnik.js +151 -151
  38. package/server/plugins/mapnik/funcs/rootFolder.mjs +8 -8
  39. package/server/plugins/mapnik/map.proto +437 -437
  40. package/server/plugins/vite.js +74 -74
  41. package/server/routes/cartocss/cartocss.route.js +31 -31
  42. package/server/routes/cartocss/cartocss.route.test.js +78 -78
  43. package/server/routes/cartocss/cartocss.schema.js +73 -73
  44. package/server/routes/cartocss/functions/add.cartocss.js +39 -39
  45. package/server/routes/cartocss/functions/get.cartocss.js +57 -57
  46. package/server/routes/gis/functions/checkXML.js +107 -107
  47. package/server/routes/gis/functions/dashboard.js +24 -24
  48. package/server/routes/gis/gis.route.js +26 -26
  49. package/server/routes/gis/gis.route.test.js +33 -33
  50. package/server/routes/map/functions/clearTiles.js +35 -35
  51. package/server/routes/map/functions/geojson.js +187 -187
  52. package/server/routes/map/functions/gis.convert.js +65 -65
  53. package/server/routes/map/functions/gis.icon.js +220 -220
  54. package/server/routes/map/functions/jsonData.js +206 -206
  55. package/server/routes/map/functions/layerList.js +102 -102
  56. package/server/routes/map/functions/map.js +122 -122
  57. package/server/routes/map/functions/mapCatalog.js +72 -72
  58. package/server/routes/map/functions/mapCatalogAttribute.js +53 -53
  59. package/server/routes/map/functions/mapFeatures.js +133 -133
  60. package/server/routes/map/functions/mapFormat.js +232 -231
  61. package/server/routes/map/functions/mapTiles.js +162 -162
  62. package/server/routes/map/functions/maps.js +15 -15
  63. package/server/routes/map/functions/marker_icon.js +43 -43
  64. package/server/routes/map/functions/parseGeoFile.js +85 -85
  65. package/server/routes/map/functions/pointHeight.js +51 -51
  66. package/server/routes/map/functions/vtile.js +174 -174
  67. package/server/routes/map/functions/vtile1.js +185 -185
  68. package/server/routes/map/map.route.js +280 -280
  69. package/server/routes/map/map.route.test.js +503 -503
  70. package/server/routes/map/map.schema.js +356 -356
  71. package/server/routes/map/pin/circle1.svg +76 -76
  72. package/server/routes/map/pin/circle2.svg +18 -18
  73. package/server/routes/map/pin/none.svg +12 -12
  74. package/server/routes/map/pin/pin.svg +14 -14
  75. package/server/routes/map/pin/pin1.svg +16 -16
  76. package/server/routes/map/pin/pin2.svg +7 -7
  77. package/server/routes/map/pin/pin3.svg +34 -34
  78. package/server/routes/map/pin/pin4.svg +14 -14
  79. package/server/routes/map/pin/pin5.svg +7 -7
  80. package/server/routes/map/pin/pin6.svg +12 -12
  81. package/server/routes/map/pin/pin7.svg +12 -12
  82. package/server/routes/mapnik/functions/cartoBounds.js +32 -32
  83. package/server/routes/mapnik/functions/clearTiles.js +103 -103
  84. package/server/routes/mapnik/functions/convertBoundToTile.js +27 -27
  85. package/server/routes/mapnik/functions/createXml.js +76 -76
  86. package/server/routes/mapnik/functions/createXmlMulti.js +72 -72
  87. package/server/routes/mapnik/functions/fileSearch.js +35 -35
  88. package/server/routes/mapnik/functions/fileStat.js +28 -28
  89. package/server/routes/mapnik/functions/pretile.js +138 -138
  90. package/server/routes/mapnik/functions/rasterInfo.js +66 -66
  91. package/server/routes/mapnik/functions/readDir.js +22 -22
  92. package/server/routes/mapnik/functions/rtile.js +164 -164
  93. package/server/routes/mapnik/functions/uploadRaster.js +152 -152
  94. package/server/routes/mapnik/functions/uploadXML.js +140 -140
  95. package/server/routes/mapnik/mapnik.route.js +102 -102
  96. package/server/routes/mapnik/mapnik.route.test.js +370 -370
  97. package/server/routes/mapnik/mapnik.schema.mjs +195 -195
  98. package/server/routes/mapnik.prefixless/functions/mapnikLogger.js +31 -31
  99. package/server/routes/mapnik.prefixless/functions/mapnikStat.js +21 -21
  100. package/server/routes/mapnik.prefixless/mapnik.prefixless.route.js +20 -20
  101. package/server/routes/mapnik.prefixless/mapnik.prefixless.route.test.js +91 -91
  102. package/server/routes/mapnik.prefixless/mapnik.prefixless.schema.mjs +27 -27
  103. package/server/routes/maps/functions/add.map.js +42 -42
  104. package/server/routes/maps/functions/del.map.js +17 -17
  105. package/server/routes/maps/functions/get.map.js +119 -119
  106. package/server/routes/maps/maps.route.js +58 -58
  107. package/server/routes/maps/maps.route.test.js +231 -231
  108. package/server/routes/maps/maps.schema.js +9 -9
  109. package/server/routes/metadata/functions/editMetadata.js +35 -35
  110. package/server/routes/metadata/functions/metadataXML.js +19 -19
  111. package/server/routes/metadata/metadata.route.js +26 -26
  112. package/server/routes/metadata/metadata.route.test.js +46 -46
  113. package/server/routes/metadata/metadata.schema.js +53 -53
  114. package/server/routes/ogc/functions/map.info.point.js +117 -117
  115. package/server/routes/ogc/ogc.route.js +21 -21
  116. package/server/routes/ogc/ogc.route.test.js +53 -53
  117. package/server/routes/ogc/ogc.schema.js +16 -16
  118. package/server/routes/permissions/functions/catalog.permissions.edit.js +20 -20
  119. package/server/routes/permissions/functions/catalog.permissions.js +12 -12
  120. package/server/routes/permissions/functions/get.permissions.js +59 -59
  121. package/server/routes/permissions/functions/gis.catalog.js +80 -80
  122. package/server/routes/permissions/permissions.route.js +35 -35
  123. package/server/routes/permissions/permissions.route.test.js +35 -35
  124. package/server/routes/permissions/permissions.schema.js +43 -43
  125. package/server/routes/registers/functions/add.registry.js +37 -37
  126. package/server/routes/registers/functions/classifiers.js +100 -100
  127. package/server/routes/registers/functions/columns.js +3 -3
  128. package/server/routes/registers/functions/content.type.js +9 -9
  129. package/server/routes/registers/functions/del.registry.js +14 -14
  130. package/server/routes/registers/functions/get.info.js +93 -93
  131. package/server/routes/registers/functions/gis.export.js +159 -159
  132. package/server/routes/registers/functions/gis.registry.js +71 -71
  133. package/server/routes/registers/functions/gis.registry.list.js +61 -61
  134. package/server/routes/registers/functions/handleRegistryRequest.js +147 -147
  135. package/server/routes/registers/functions/map.registry.js +87 -87
  136. package/server/routes/registers/registers.route.js +80 -80
  137. package/server/routes/registers/registers.route.test.js +144 -144
  138. package/server/routes/registers/registers.schema.js +246 -246
  139. package/server/routes/root.mjs +3 -3
  140. package/server/routes/services/functions/add.service.js +62 -62
  141. package/server/routes/services/functions/create.route.js +93 -93
  142. package/server/routes/services/functions/del.service.js +12 -12
  143. package/server/routes/services/functions/get.layer.geom.js +27 -27
  144. package/server/routes/services/functions/get.service.users.js +76 -76
  145. package/server/routes/services/functions/get.services.col.js +34 -34
  146. package/server/routes/services/functions/get.services.js +89 -89
  147. package/server/routes/services/functions/legend.auto.js +77 -77
  148. package/server/routes/services/services.route.js +76 -76
  149. package/server/routes/services/services.route.test.js +167 -167
  150. package/server/routes/services/services.schema.js +278 -278
  151. package/server/routes/widgets/functions/add.widget.js +38 -38
  152. package/server/routes/widgets/functions/del.widget.js +17 -17
  153. package/server/routes/widgets/functions/get.widget.js +41 -41
  154. package/server/routes/widgets/widgets.route.js +61 -61
  155. package/server/routes/widgets/widgets.route.test.js +144 -144
  156. package/server/routes/widgets/widgets.schema.js +24 -24
  157. package/server/shared/listFiles.js +15 -0
  158. package/utils.js +13 -13
@@ -1,15 +1,15 @@
1
- var di = Object.defineProperty;
2
- var pi = (e, n, t) => n in e ? di(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
- var L = (e, n, t) => pi(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { openBlock as _, createElementBlock as M, createElementVNode as g, defineComponent as ae, ref as E, watch as $, createTextVNode as mi, createVNode as D, createBlock as P, createCommentVNode as W, defineAsyncComponent as hi, unref as ze, withCtx as bn, withDirectives as fn, vModelText as dn, normalizeClass as _e, Fragment as kt, renderList as At, toDisplayString as fe, getCurrentInstance as Ct, onBeforeUnmount as wt, toRef as gi, computed as ve, onMounted as yi, resolveDynamicComponent as vi } from "vue";
5
- import { useRoute as bi, useRouter as xi } from "vue-router";
6
- import { notify as X } from "@opengis/core";
7
- import { _ as Xe, u as Ge, f as Si, M as ki, g as Ai, h as Ci, i as wi, j as tt, k as Ti, l as _i, m as Ei, s as it, n as Ii } from "./index-CHFLgCGW.js";
8
- import { _ as Ni, a as $i, b as Li, c as Fi } from "./HeaderActions.vue_vue_type_script_setup_true_lang-Buff9gTO.js";
9
- import { S as Oi, C as Ri } from "./CardIcon-Cg8bUM4G.js";
10
- import { _ as Tt } from "./MonacoEditor.vue_vue_type_script_setup_true_lang-D3ZPeXMw.js";
11
- import { V as Ze } from "./vs-datatable-DqVncrSg.js";
12
- import { _ as Nn, m as $n, r as $e } from "./import-utils-CMWiuRPp.js";
1
+ var fi = Object.defineProperty;
2
+ var di = (e, n, t) => n in e ? fi(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
+ var L = (e, n, t) => di(e, typeof n != "symbol" ? n + "" : n, t);
4
+ import { openBlock as _, createElementBlock as M, createElementVNode as g, defineComponent as ae, ref as E, watch as $, createTextVNode as pi, createVNode as D, createBlock as P, createCommentVNode as W, defineAsyncComponent as mi, unref as ze, withCtx as vn, withDirectives as cn, vModelText as fn, normalizeClass as Ee, Fragment as At, renderList as Ct, toDisplayString as fe, getCurrentInstance as wt, onBeforeUnmount as Tt, toRef as hi, computed as ve, onMounted as gi, resolveDynamicComponent as yi } from "vue";
5
+ import { useRoute as vi, useRouter as bi } from "vue-router";
6
+ import { notify as te } from "@opengis/core";
7
+ import { _ as Xe, u as Ge, f as xi, M as Si, g as ki, h as Ai, i as Ci, j as it, k as wi, l as Ti, m as _i, s as rt, n as Ei } from "./index-CahlV-Xs.js";
8
+ import { _ as Ii, a as Ni, b as $i, c as Li } from "./HeaderActions.vue_vue_type_script_setup_true_lang-C2B61JP6.js";
9
+ import { S as Fi, C as Ri } from "./CardIcon-c1Q2M3wQ.js";
10
+ import { _ as _t } from "./MonacoEditor.vue_vue_type_script_setup_true_lang-D3ZPeXMw.js";
11
+ import { V as Ze } from "./vs-datatable-CHcBr6zy.js";
12
+ import { _ as Nn, m as $n, r as Le } from "./import-utils-uxk4LdUJ.js";
13
13
  /*! js-yaml 5.2.1 https://github.com/nodeca/js-yaml @license MIT */
14
14
  var T = Symbol("NOT_RESOLVED"), Ln = Symbol("MERGE_KEY");
15
15
  function U(e, n) {
@@ -60,16 +60,16 @@ function en(e, n) {
60
60
  representTagName: n.representTagName ?? null
61
61
  };
62
62
  }
63
- var Pi = U("tag:yaml.org,2002:str", {
63
+ var Oi = U("tag:yaml.org,2002:str", {
64
64
  resolve: (e) => e,
65
65
  identify: (e) => typeof e == "string"
66
- }), Mi = [
66
+ }), Pi = [
67
67
  "",
68
68
  "~",
69
69
  "null",
70
70
  "Null",
71
71
  "NULL"
72
- ], Ui = U("tag:yaml.org,2002:null", {
72
+ ], Mi = U("tag:yaml.org,2002:null", {
73
73
  implicit: !0,
74
74
  implicitFirstChars: [
75
75
  "",
@@ -77,22 +77,22 @@ var Pi = U("tag:yaml.org,2002:str", {
77
77
  "n",
78
78
  "N"
79
79
  ],
80
- resolve: (e) => Mi.indexOf(e) !== -1 ? null : T,
80
+ resolve: (e) => Pi.indexOf(e) !== -1 ? null : T,
81
81
  identify: (e) => e === null,
82
82
  represent: () => "null"
83
- }), qi = U("tag:yaml.org,2002:null", {
83
+ }), Ui = U("tag:yaml.org,2002:null", {
84
84
  implicit: !0,
85
85
  implicitFirstChars: ["n"],
86
86
  resolve: (e, n) => e === "null" || n && e === "" ? null : T,
87
87
  identify: (e) => e === null,
88
88
  represent: () => "null"
89
- }), Vi = [
89
+ }), qi = [
90
90
  "",
91
91
  "~",
92
92
  "null",
93
93
  "Null",
94
94
  "NULL"
95
- ], Bi = U("tag:yaml.org,2002:null", {
95
+ ], Vi = U("tag:yaml.org,2002:null", {
96
96
  implicit: !0,
97
97
  implicitFirstChars: [
98
98
  "",
@@ -100,18 +100,18 @@ var Pi = U("tag:yaml.org,2002:str", {
100
100
  "n",
101
101
  "N"
102
102
  ],
103
- resolve: (e) => Vi.indexOf(e) !== -1 ? null : T,
103
+ resolve: (e) => qi.indexOf(e) !== -1 ? null : T,
104
104
  identify: (e) => e === null,
105
105
  represent: () => "null"
106
- }), Di = [
106
+ }), Bi = [
107
107
  "true",
108
108
  "True",
109
109
  "TRUE"
110
- ], Yi = [
110
+ ], Di = [
111
111
  "false",
112
112
  "False",
113
113
  "FALSE"
114
- ], ji = U("tag:yaml.org,2002:bool", {
114
+ ], Yi = U("tag:yaml.org,2002:bool", {
115
115
  implicit: !0,
116
116
  implicitFirstChars: [
117
117
  "t",
@@ -119,16 +119,16 @@ var Pi = U("tag:yaml.org,2002:str", {
119
119
  "f",
120
120
  "F"
121
121
  ],
122
- resolve: (e) => Di.indexOf(e) !== -1 ? !0 : Yi.indexOf(e) !== -1 ? !1 : T,
122
+ resolve: (e) => Bi.indexOf(e) !== -1 ? !0 : Di.indexOf(e) !== -1 ? !1 : T,
123
123
  identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
124
124
  represent: (e) => e ? "true" : "false"
125
- }), Ki = ["true"], Hi = ["false"], zi = U("tag:yaml.org,2002:bool", {
125
+ }), ji = ["true"], Ki = ["false"], Hi = U("tag:yaml.org,2002:bool", {
126
126
  implicit: !0,
127
127
  implicitFirstChars: ["t", "f"],
128
- resolve: (e) => Ki.indexOf(e) !== -1 ? !0 : Hi.indexOf(e) !== -1 ? !1 : T,
128
+ resolve: (e) => ji.indexOf(e) !== -1 ? !0 : Ki.indexOf(e) !== -1 ? !1 : T,
129
129
  identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
130
130
  represent: (e) => e ? "true" : "false"
131
- }), Gi = [
131
+ }), zi = [
132
132
  "true",
133
133
  "True",
134
134
  "TRUE",
@@ -140,7 +140,7 @@ var Pi = U("tag:yaml.org,2002:str", {
140
140
  "on",
141
141
  "On",
142
142
  "ON"
143
- ], Wi = [
143
+ ], Gi = [
144
144
  "false",
145
145
  "False",
146
146
  "FALSE",
@@ -152,7 +152,7 @@ var Pi = U("tag:yaml.org,2002:str", {
152
152
  "off",
153
153
  "Off",
154
154
  "OFF"
155
- ], Qi = U("tag:yaml.org,2002:bool", {
155
+ ], Wi = U("tag:yaml.org,2002:bool", {
156
156
  implicit: !0,
157
157
  implicitFirstChars: [
158
158
  "y",
@@ -166,51 +166,51 @@ var Pi = U("tag:yaml.org,2002:str", {
166
166
  "o",
167
167
  "O"
168
168
  ],
169
- resolve: (e) => Gi.indexOf(e) !== -1 ? !0 : Wi.indexOf(e) !== -1 ? !1 : T,
169
+ resolve: (e) => zi.indexOf(e) !== -1 ? !0 : Gi.indexOf(e) !== -1 ? !1 : T,
170
170
  identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
171
171
  represent: (e) => e ? "true" : "false"
172
- }), Ji = /* @__PURE__ */ new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"), Xi = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
173
- function Zi(e) {
172
+ }), Qi = /* @__PURE__ */ new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"), Ji = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
173
+ function Xi(e) {
174
174
  let n = e, t = 1;
175
175
  return (n[0] === "-" || n[0] === "+") && (n[0] === "-" && (t = -1), n = n.slice(1)), n.startsWith("0b") ? t * parseInt(n.slice(2), 2) : n.startsWith("0o") ? t * parseInt(n.slice(2), 8) : n.startsWith("0x") ? t * parseInt(n.slice(2), 16) : t * parseInt(n, 10);
176
176
  }
177
- function er(e, n) {
177
+ function Zi(e, n) {
178
178
  if (n) {
179
- if (!Xi.test(e)) return T;
180
- } else if (!Ji.test(e)) return T;
181
- const t = Zi(e);
179
+ if (!Ji.test(e)) return T;
180
+ } else if (!Qi.test(e)) return T;
181
+ const t = Xi(e);
182
182
  return Number.isFinite(t) ? t : T;
183
183
  }
184
- var _t = U("tag:yaml.org,2002:int", {
184
+ var Et = U("tag:yaml.org,2002:int", {
185
185
  implicit: !0,
186
186
  implicitFirstChars: [
187
187
  "-",
188
188
  "+",
189
189
  ..."0123456789"
190
190
  ],
191
- resolve: er,
191
+ resolve: Zi,
192
192
  identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
193
193
  represent: (e) => e.toString(10)
194
- }), nr = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)$"), tr = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
195
- function ir(e) {
194
+ }), er = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)$"), nr = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
195
+ function tr(e) {
196
196
  let n = e, t = 1;
197
197
  return (n[0] === "-" || n[0] === "+") && (n[0] === "-" && (t = -1), n = n.slice(1)), n.startsWith("0b") ? t * parseInt(n.slice(2), 2) : n.startsWith("0o") ? t * parseInt(n.slice(2), 8) : n.startsWith("0x") ? t * parseInt(n.slice(2), 16) : t * parseInt(n, 10);
198
198
  }
199
- function rr(e, n) {
199
+ function ir(e, n) {
200
200
  if (n) {
201
- if (!tr.test(e)) return T;
202
- } else if (!nr.test(e)) return T;
203
- const t = ir(e);
201
+ if (!nr.test(e)) return T;
202
+ } else if (!er.test(e)) return T;
203
+ const t = tr(e);
204
204
  return Number.isFinite(t) ? t : T;
205
205
  }
206
- var or = U("tag:yaml.org,2002:int", {
206
+ var rr = U("tag:yaml.org,2002:int", {
207
207
  implicit: !0,
208
208
  implicitFirstChars: ["-", ..."0123456789"],
209
- resolve: rr,
209
+ resolve: ir,
210
210
  identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
211
211
  represent: (e) => e.toString(10)
212
- }), lr = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");
213
- function ar(e) {
212
+ }), or = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");
213
+ function lr(e) {
214
214
  let n = e.replace(/_/g, ""), t = 1;
215
215
  if ((n[0] === "-" || n[0] === "+") && (n[0] === "-" && (t = -1), n = n.slice(1)), n.startsWith("0b")) return t * parseInt(n.slice(2), 2);
216
216
  if (n.startsWith("0x")) return t * parseInt(n.slice(2), 16);
@@ -221,32 +221,32 @@ function ar(e) {
221
221
  }
222
222
  return n !== "0" && n[0] === "0" ? t * parseInt(n, 8) : t * parseInt(n, 10);
223
223
  }
224
- function sr(e) {
225
- if (!lr.test(e)) return T;
226
- const n = ar(e);
224
+ function ar(e) {
225
+ if (!or.test(e)) return T;
226
+ const n = lr(e);
227
227
  return Number.isFinite(n) ? n : T;
228
228
  }
229
- var xn = U("tag:yaml.org,2002:int", {
229
+ var bn = U("tag:yaml.org,2002:int", {
230
230
  implicit: !0,
231
231
  implicitFirstChars: [
232
232
  "-",
233
233
  "+",
234
234
  ..."0123456789"
235
235
  ],
236
- resolve: sr,
236
+ resolve: ar,
237
237
  identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
238
238
  represent: (e) => e.toString(10)
239
- }), ur = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), cr = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
240
- function fr(e) {
241
- if (!ur.test(e)) return T;
239
+ }), sr = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), ur = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
240
+ function cr(e) {
241
+ if (!sr.test(e)) return T;
242
242
  let n = e.toLowerCase();
243
243
  const t = n[0] === "-" ? -1 : 1;
244
244
  if ("+-".includes(n[0]) && (n = n.slice(1)), n === ".inf") return t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
245
245
  if (n === ".nan") return NaN;
246
246
  const i = t * parseFloat(n);
247
- return Number.isFinite(i) || cr.test(e) ? i : T;
247
+ return Number.isFinite(i) || ur.test(e) ? i : T;
248
248
  }
249
- function dr(e) {
249
+ function fr(e) {
250
250
  if (isNaN(e)) return ".nan";
251
251
  if (e === Number.POSITIVE_INFINITY) return ".inf";
252
252
  if (e === Number.NEGATIVE_INFINITY) return "-.inf";
@@ -254,7 +254,7 @@ function dr(e) {
254
254
  const n = e.toString(10);
255
255
  return /^[-+]?[0-9]+e/.test(n) ? n.replace("e", ".e") : n;
256
256
  }
257
- var Et = U("tag:yaml.org,2002:float", {
257
+ var It = U("tag:yaml.org,2002:float", {
258
258
  implicit: !0,
259
259
  implicitFirstChars: [
260
260
  "-",
@@ -262,13 +262,13 @@ var Et = U("tag:yaml.org,2002:float", {
262
262
  ".",
263
263
  ..."0123456789"
264
264
  ],
265
- resolve: fr,
265
+ resolve: cr,
266
266
  identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
267
- represent: dr
268
- }), pr = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"), mr = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
269
- function hr(e, n) {
267
+ represent: fr
268
+ }), dr = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"), pr = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
269
+ function mr(e, n) {
270
270
  if (n) {
271
- if (!mr.test(e)) return T;
271
+ if (!pr.test(e)) return T;
272
272
  let i = e.toLowerCase();
273
273
  const r = i[0] === "-" ? -1 : 1;
274
274
  if ("+-".includes(i[0]) && (i = i.slice(1)), i === ".inf") return r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
@@ -276,11 +276,11 @@ function hr(e, n) {
276
276
  const o = r * parseFloat(i);
277
277
  return Number.isFinite(o) ? o : T;
278
278
  }
279
- if (!pr.test(e)) return T;
279
+ if (!dr.test(e)) return T;
280
280
  const t = Number(e);
281
281
  return Number.isFinite(t) ? t : T;
282
282
  }
283
- function gr(e) {
283
+ function hr(e) {
284
284
  if (isNaN(e)) return ".nan";
285
285
  if (e === Number.POSITIVE_INFINITY) return ".inf";
286
286
  if (e === Number.NEGATIVE_INFINITY) return "-.inf";
@@ -288,15 +288,15 @@ function gr(e) {
288
288
  const n = e.toString(10);
289
289
  return /^[-+]?[0-9]+e/.test(n) ? n.replace("e", ".e") : n;
290
290
  }
291
- var yr = U("tag:yaml.org,2002:float", {
291
+ var gr = U("tag:yaml.org,2002:float", {
292
292
  implicit: !0,
293
293
  implicitFirstChars: ["-", ..."0123456789"],
294
- resolve: hr,
294
+ resolve: mr,
295
295
  identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
296
- represent: gr
297
- }), vr = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), br = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
298
- function xr(e) {
299
- if (!vr.test(e)) return T;
296
+ represent: hr
297
+ }), yr = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), vr = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
298
+ function br(e) {
299
+ if (!yr.test(e)) return T;
300
300
  let n = e.toLowerCase().replace(/_/g, "");
301
301
  const t = n[0] === "-" ? -1 : 1;
302
302
  if ("+-".includes(n[0]) && (n = n.slice(1)), n === ".inf") return t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
@@ -306,9 +306,9 @@ function xr(e) {
306
306
  for (const r of n.split(":")) i = i * 60 + Number(r);
307
307
  i *= t;
308
308
  } else i = t * parseFloat(n);
309
- return Number.isFinite(i) || br.test(e) ? i : T;
309
+ return Number.isFinite(i) || vr.test(e) ? i : T;
310
310
  }
311
- function Sr(e) {
311
+ function xr(e) {
312
312
  if (isNaN(e)) return ".nan";
313
313
  if (e === Number.POSITIVE_INFINITY) return ".inf";
314
314
  if (e === Number.NEGATIVE_INFINITY) return "-.inf";
@@ -316,7 +316,7 @@ function Sr(e) {
316
316
  const n = e.toString(10);
317
317
  return /^[-+]?[0-9]+e/.test(n) ? n.replace("e", ".e") : n;
318
318
  }
319
- var Sn = U("tag:yaml.org,2002:float", {
319
+ var xn = U("tag:yaml.org,2002:float", {
320
320
  implicit: !0,
321
321
  implicitFirstChars: [
322
322
  "-",
@@ -324,64 +324,64 @@ var Sn = U("tag:yaml.org,2002:float", {
324
324
  ".",
325
325
  ..."0123456789"
326
326
  ],
327
- resolve: xr,
327
+ resolve: br,
328
328
  identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
329
- represent: Sr
330
- }), kr = U("tag:yaml.org,2002:merge", {
329
+ represent: xr
330
+ }), Sr = U("tag:yaml.org,2002:merge", {
331
331
  implicit: !0,
332
332
  implicitFirstChars: ["<"],
333
333
  resolve: (e, n) => e === "<<" || n && e === "" ? Ln : T
334
- }), Ar = /^[A-Za-z0-9+/]*={0,2}$/;
335
- function Cr(e) {
334
+ }), kr = /^[A-Za-z0-9+/]*={0,2}$/;
335
+ function Ar(e) {
336
336
  const n = e.replace(/\s/g, "");
337
- if (n.length % 4 !== 0 || !Ar.test(n)) return T;
337
+ if (n.length % 4 !== 0 || !kr.test(n)) return T;
338
338
  const t = atob(n), i = new Uint8Array(t.length);
339
339
  for (let r = 0; r < t.length; r++) i[r] = t.charCodeAt(r);
340
340
  return i;
341
341
  }
342
- function wr(e) {
342
+ function Cr(e) {
343
343
  let n = "";
344
344
  for (let t = 0; t < e.length; t++) n += String.fromCharCode(e[t]);
345
345
  return btoa(n);
346
346
  }
347
- var Tr = U("tag:yaml.org,2002:binary", {
348
- resolve: Cr,
347
+ var wr = U("tag:yaml.org,2002:binary", {
348
+ resolve: Ar,
349
349
  identify: (e) => Object.prototype.toString.call(e) === "[object Uint8Array]",
350
- represent: wr
351
- }), _r = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), Er = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
352
- function Ir(e) {
353
- let n = _r.exec(e);
354
- if (n === null && (n = Er.exec(e)), n === null) return T;
350
+ represent: Cr
351
+ }), Tr = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), _r = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
352
+ function Er(e) {
353
+ let n = Tr.exec(e);
354
+ if (n === null && (n = _r.exec(e)), n === null) return T;
355
355
  const t = +n[1], i = +n[2] - 1, r = +n[3];
356
356
  if (!n[4]) {
357
357
  const c = new Date(Date.UTC(t, i, r));
358
358
  return c.getUTCFullYear() !== t || c.getUTCMonth() !== i || c.getUTCDate() !== r ? T : c;
359
359
  }
360
360
  const o = +n[4], l = +n[5], a = +n[6];
361
- let u = 0;
361
+ let s = 0;
362
362
  if (o > 23 || l > 59 || a > 59) return T;
363
363
  if (n[7]) {
364
364
  let c = n[7].slice(0, 3);
365
365
  for (; c.length < 3; ) c += "0";
366
- u = +c;
366
+ s = +c;
367
367
  }
368
- const s = new Date(Date.UTC(t, i, r, o, l, a, u));
369
- if (s.getUTCFullYear() !== t || s.getUTCMonth() !== i || s.getUTCDate() !== r) return T;
368
+ const u = new Date(Date.UTC(t, i, r, o, l, a, s));
369
+ if (u.getUTCFullYear() !== t || u.getUTCMonth() !== i || u.getUTCDate() !== r) return T;
370
370
  if (n[9]) {
371
371
  const c = +n[10], y = +(n[11] || 0);
372
372
  if (c > 23 || y > 59) return T;
373
373
  const m = (c * 60 + y) * 6e4;
374
- s.setTime(s.getTime() - (n[9] === "-" ? -m : m));
374
+ u.setTime(u.getTime() - (n[9] === "-" ? -m : m));
375
375
  }
376
- return s;
376
+ return u;
377
377
  }
378
- var Nr = U("tag:yaml.org,2002:timestamp", {
378
+ var Ir = U("tag:yaml.org,2002:timestamp", {
379
379
  implicit: !0,
380
380
  implicitFirstChars: [..."0123456789"],
381
- resolve: Ir,
381
+ resolve: Er,
382
382
  identify: (e) => e instanceof Date,
383
383
  represent: (e) => e.toISOString()
384
- }), $r = Fn("tag:yaml.org,2002:seq", {
384
+ }), Nr = Fn("tag:yaml.org,2002:seq", {
385
385
  create: () => [],
386
386
  addItem: (e, n) => {
387
387
  e.push(n);
@@ -393,12 +393,12 @@ function nn(e) {
393
393
  const n = Object.getPrototypeOf(e);
394
394
  return n === null || n === Object.prototype;
395
395
  }
396
- function kn(e, n) {
396
+ function Sn(e, n) {
397
397
  const t = {};
398
398
  for (const i of n) e[i] !== void 0 && (t[i] = e[i]);
399
399
  return t;
400
400
  }
401
- var Lr = Fn("tag:yaml.org,2002:omap", {
401
+ var $r = Fn("tag:yaml.org,2002:omap", {
402
402
  create: () => ({
403
403
  list: [],
404
404
  seen: /* @__PURE__ */ new Set()
@@ -416,7 +416,7 @@ var Lr = Fn("tag:yaml.org,2002:omap", {
416
416
  return e.seen.has(t) ? "duplicate key in ordered map" : (e.seen.add(t), e.list.push(n), "");
417
417
  },
418
418
  finalize: (e) => e.list
419
- }), Fr = Fn("tag:yaml.org,2002:pairs", {
419
+ }), Lr = Fn("tag:yaml.org,2002:pairs", {
420
420
  create: () => [],
421
421
  addItem: (e, n) => {
422
422
  if (n instanceof Map)
@@ -425,7 +425,7 @@ var Lr = Fn("tag:yaml.org,2002:omap", {
425
425
  const t = n, i = Object.keys(t);
426
426
  return i.length !== 1 ? "cannot resolve a pairs item" : (e.push([i[0], t[i[0]]]), "");
427
427
  }
428
- }), Or = en("tag:yaml.org,2002:map", {
428
+ }), Fr = en("tag:yaml.org,2002:map", {
429
429
  create: () => ({}),
430
430
  identify: nn,
431
431
  represent: (e) => {
@@ -459,21 +459,21 @@ var Lr = Fn("tag:yaml.org,2002:omap", {
459
459
  keys: (e) => e.keys(),
460
460
  get: () => null
461
461
  });
462
- function Pr() {
462
+ function Or() {
463
463
  return {
464
464
  scalar: {},
465
465
  sequence: {},
466
466
  mapping: {}
467
467
  };
468
468
  }
469
- function Mr() {
469
+ function Pr() {
470
470
  return {
471
471
  scalar: [],
472
472
  sequence: [],
473
473
  mapping: []
474
474
  };
475
475
  }
476
- function Ur(e) {
476
+ function Mr(e) {
477
477
  const n = [];
478
478
  for (const t of e) {
479
479
  let i = n.length;
@@ -488,7 +488,7 @@ function Ur(e) {
488
488
  }
489
489
  return n;
490
490
  }
491
- var tn = class It {
491
+ var tn = class Nt {
492
492
  constructor(n) {
493
493
  L(this, "tags");
494
494
  L(this, "implicitScalarTags");
@@ -499,7 +499,7 @@ var tn = class It {
499
499
  L(this, "defaultMappingTag");
500
500
  L(this, "exact");
501
501
  L(this, "prefix");
502
- const t = Ur(n), i = [], r = Pr(), o = Mr();
502
+ const t = Mr(n), i = [], r = Or(), o = Pr();
503
503
  for (const c of t) {
504
504
  if (c.nodeKind === "scalar" && c.implicit) {
505
505
  if (c.matchByTagPrefix) throw new Error("Implicit scalar tags cannot match by tag prefix");
@@ -519,46 +519,46 @@ var tn = class It {
519
519
  }
520
520
  const l = i.filter((c) => c.implicitFirstChars === null), a = /* @__PURE__ */ new Set();
521
521
  for (const c of i) if (c.implicitFirstChars !== null) for (const y of c.implicitFirstChars) a.add(y);
522
- const u = /* @__PURE__ */ new Map();
523
- for (const c of a) u.set(c, i.filter((y) => y.implicitFirstChars === null || y.implicitFirstChars.indexOf(c) !== -1));
524
- const s = r.scalar["tag:yaml.org,2002:str"];
525
- if (!s) throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");
526
- this.tags = t, this.implicitScalarTags = i, this.implicitScalarByFirstChar = u, this.implicitScalarAnyFirstChar = l, this.defaultScalarTag = s, this.defaultSequenceTag = r.sequence["tag:yaml.org,2002:seq"], this.defaultMappingTag = r.mapping["tag:yaml.org,2002:map"], this.exact = r, this.prefix = o;
522
+ const s = /* @__PURE__ */ new Map();
523
+ for (const c of a) s.set(c, i.filter((y) => y.implicitFirstChars === null || y.implicitFirstChars.indexOf(c) !== -1));
524
+ const u = r.scalar["tag:yaml.org,2002:str"];
525
+ if (!u) throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");
526
+ this.tags = t, this.implicitScalarTags = i, this.implicitScalarByFirstChar = s, this.implicitScalarAnyFirstChar = l, this.defaultScalarTag = u, this.defaultSequenceTag = r.sequence["tag:yaml.org,2002:seq"], this.defaultMappingTag = r.mapping["tag:yaml.org,2002:map"], this.exact = r, this.prefix = o;
527
527
  }
528
528
  withTags(...n) {
529
529
  let t = [];
530
530
  for (const i of n) t = t.concat(i);
531
- return new It([...this.tags, ...t]);
531
+ return new Nt([...this.tags, ...t]);
532
532
  }
533
- }, On = new tn([
534
- Pi,
535
- $r,
536
- Or
533
+ }, Rn = new tn([
534
+ Oi,
535
+ Nr,
536
+ Fr
537
537
  ]);
538
538
  new tn([
539
- ...On.tags,
540
- qi,
541
- zi,
542
- or,
543
- yr
544
- ]);
545
- var qr = new tn([
546
- ...On.tags,
539
+ ...Rn.tags,
547
540
  Ui,
548
- ji,
549
- _t,
550
- Et
551
- ]), Vr = new tn([
552
- ...On.tags,
553
- Bi,
554
- Qi,
541
+ Hi,
542
+ rr,
543
+ gr
544
+ ]);
545
+ var Ur = new tn([
546
+ ...Rn.tags,
547
+ Mi,
548
+ Yi,
549
+ Et,
550
+ It
551
+ ]), qr = new tn([
552
+ ...Rn.tags,
553
+ Vi,
554
+ Wi,
555
+ bn,
555
556
  xn,
556
- Sn,
557
- Nr,
558
- kr,
559
- Tr,
557
+ Ir,
558
+ Sr,
559
+ wr,
560
+ $r,
560
561
  Lr,
561
- Fr,
562
562
  Rr
563
563
  ]);
564
564
  en("tag:yaml.org,2002:map", {
@@ -575,7 +575,7 @@ en("tag:yaml.org,2002:map", {
575
575
  return n;
576
576
  }
577
577
  });
578
- function rt(e) {
578
+ function ot(e) {
579
579
  if (Array.isArray(e)) {
580
580
  const n = Array.prototype.slice.call(e);
581
581
  for (let t = 0; t < n.length; t++) {
@@ -595,7 +595,7 @@ en("tag:yaml.org,2002:map", {
595
595
  return n;
596
596
  },
597
597
  addPair: (e, n, t) => {
598
- const i = rt(n);
598
+ const i = ot(n);
599
599
  return i === null ? "nested arrays are not supported inside keys" : (i === "__proto__" ? Object.defineProperty(e, i, {
600
600
  value: t,
601
601
  enumerable: !0,
@@ -604,19 +604,19 @@ en("tag:yaml.org,2002:map", {
604
604
  }) : e[i] = t, "");
605
605
  },
606
606
  has: (e, n) => {
607
- const t = rt(n);
607
+ const t = ot(n);
608
608
  return t !== null && Object.prototype.hasOwnProperty.call(e, t);
609
609
  },
610
610
  keys: (e) => Object.keys(e),
611
611
  get: (e, n) => e[String(n)]
612
612
  });
613
- var Br = {
613
+ var Vr = {
614
614
  maxLength: 79,
615
615
  indent: 1,
616
616
  linesBefore: 3,
617
617
  linesAfter: 2
618
618
  };
619
- function pn(e, n, t, i, r) {
619
+ function dn(e, n, t, i, r) {
620
620
  let o = "", l = "";
621
621
  const a = Math.floor(r / 2) - 1;
622
622
  return i - n > a && (o = " ... ", n = i - a + o.length), t - i > a && (l = " ...", t = i + a - l.length), {
@@ -624,59 +624,59 @@ function pn(e, n, t, i, r) {
624
624
  pos: i - n + o.length
625
625
  };
626
626
  }
627
- function mn(e, n) {
627
+ function pn(e, n) {
628
628
  return " ".repeat(Math.max(n - e.length, 0)) + e;
629
629
  }
630
- function Dr(e, n) {
630
+ function Br(e, n) {
631
631
  if (!e.buffer) return null;
632
632
  const t = {
633
- ...Br,
633
+ ...Vr,
634
634
  ...n
635
635
  }, i = /\r?\n|\r|\0/g, r = [0], o = [];
636
636
  let l, a = -1;
637
637
  for (; l = i.exec(e.buffer); )
638
638
  o.push(l.index), r.push(l.index + l[0].length), e.position <= l.index && a < 0 && (a = r.length - 2);
639
639
  a < 0 && (a = r.length - 1);
640
- let u = "";
641
- const s = Math.min(e.line + t.linesAfter, o.length).toString().length, c = t.maxLength - (t.indent + s + 3);
640
+ let s = "";
641
+ const u = Math.min(e.line + t.linesAfter, o.length).toString().length, c = t.maxLength - (t.indent + u + 3);
642
642
  for (let m = 1; m <= t.linesBefore && !(a - m < 0); m++) {
643
- const b = pn(e.buffer, r[a - m], o[a - m], e.position - (r[a] - r[a - m]), c);
644
- u = `${" ".repeat(t.indent)}${mn((e.line - m + 1).toString(), s)} | ${b.str}
645
- ${u}`;
643
+ const b = dn(e.buffer, r[a - m], o[a - m], e.position - (r[a] - r[a - m]), c);
644
+ s = `${" ".repeat(t.indent)}${pn((e.line - m + 1).toString(), u)} | ${b.str}
645
+ ${s}`;
646
646
  }
647
- const y = pn(e.buffer, r[a], o[a], e.position, c);
648
- u += `${" ".repeat(t.indent)}${mn((e.line + 1).toString(), s)} | ${y.str}
649
- `, u += `${"-".repeat(t.indent + s + 3 + y.pos)}^
647
+ const y = dn(e.buffer, r[a], o[a], e.position, c);
648
+ s += `${" ".repeat(t.indent)}${pn((e.line + 1).toString(), u)} | ${y.str}
649
+ `, s += `${"-".repeat(t.indent + u + 3 + y.pos)}^
650
650
  `;
651
651
  for (let m = 1; m <= t.linesAfter && !(a + m >= o.length); m++) {
652
- const b = pn(e.buffer, r[a + m], o[a + m], e.position - (r[a] - r[a + m]), c);
653
- u += `${" ".repeat(t.indent)}${mn((e.line + m + 1).toString(), s)} | ${b.str}
652
+ const b = dn(e.buffer, r[a + m], o[a + m], e.position - (r[a] - r[a + m]), c);
653
+ s += `${" ".repeat(t.indent)}${pn((e.line + m + 1).toString(), u)} | ${b.str}
654
654
  `;
655
655
  }
656
- return u.replace(/\n$/, "");
656
+ return s.replace(/\n$/, "");
657
657
  }
658
- function ot(e, n) {
658
+ function lt(e, n) {
659
659
  let t = "";
660
660
  return e.mark ? (e.mark.name && (t += `in "${e.mark.name}" `), t += `(${e.mark.line + 1}:${e.mark.column + 1})`, !n && e.mark.snippet && (t += `
661
661
 
662
662
  ${e.mark.snippet}`), `${e.reason} ${t}`) : e.reason;
663
663
  }
664
- var Le = class extends Error {
664
+ var Fe = class extends Error {
665
665
  constructor(n, t) {
666
666
  super();
667
667
  L(this, "reason");
668
668
  L(this, "mark");
669
- this.name = "YAMLException", this.reason = n, this.mark = t, this.message = ot(this, !1), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
669
+ this.name = "YAMLException", this.reason = n, this.mark = t, this.message = lt(this, !1), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
670
670
  }
671
671
  toString(n) {
672
- return `${this.name}: ${ot(this, n)}`;
672
+ return `${this.name}: ${lt(this, n)}`;
673
673
  }
674
674
  };
675
675
  function rn(e, n, t, i = "") {
676
676
  let r = 0, o = 0;
677
677
  for (let a = 0; a < n; a++) {
678
- const u = e.charCodeAt(a);
679
- u === 10 ? (r++, o = a + 1) : u === 13 && (r++, e.charCodeAt(a + 1) === 10 && a++, o = a + 1);
678
+ const s = e.charCodeAt(a);
679
+ s === 10 ? (r++, o = a + 1) : s === 13 && (r++, e.charCodeAt(a + 1) === 10 && a++, o = a + 1);
680
680
  }
681
681
  const l = {
682
682
  name: i,
@@ -685,10 +685,10 @@ function rn(e, n, t, i = "") {
685
685
  line: r,
686
686
  column: n - o
687
687
  };
688
- throw l.snippet = Dr(l), new Le(t, l);
688
+ throw l.snippet = Br(l), new Fe(t, l);
689
689
  }
690
- var Yr = -1;
691
- function lt(e) {
690
+ var Dr = -1;
691
+ function at(e) {
692
692
  switch (e) {
693
693
  case 48:
694
694
  return "\0";
@@ -731,16 +731,16 @@ function lt(e) {
731
731
  return "";
732
732
  }
733
733
  }
734
- var Nt = new Array(256), $t = new Array(256);
734
+ var $t = new Array(256), Lt = new Array(256);
735
735
  for (let e = 0; e < 256; e++)
736
- Nt[e] = lt(e) ? 1 : 0, $t[e] = lt(e);
737
- function jr(e) {
736
+ $t[e] = at(e) ? 1 : 0, Lt[e] = at(e);
737
+ function Yr(e) {
738
738
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
739
739
  }
740
- function Kr(e) {
740
+ function jr(e) {
741
741
  return e >= 48 && e <= 57 ? e - 48 : (e | 32) - 97 + 10;
742
742
  }
743
- function Hr(e) {
743
+ function Kr(e) {
744
744
  return e === 120 ? 2 : e === 117 ? 4 : 8;
745
745
  }
746
746
  function We(e, n, t) {
@@ -759,24 +759,24 @@ function We(e, n, t) {
759
759
  breaks: i
760
760
  };
761
761
  }
762
- function Rn(e) {
762
+ function On(e) {
763
763
  return e === 1 ? " " : `
764
764
  `.repeat(e - 1);
765
765
  }
766
- function zr(e, n, t) {
766
+ function Hr(e, n, t) {
767
767
  let i = "", r = n, o = n, l = n;
768
768
  for (; r < t; ) {
769
769
  const a = e.charCodeAt(r);
770
770
  if (a === 10 || a === 13) {
771
771
  i += e.slice(o, l);
772
- const u = We(e, r, t);
773
- i += Rn(u.breaks), r = o = l = u.position;
772
+ const s = We(e, r, t);
773
+ i += On(s.breaks), r = o = l = s.position;
774
774
  } else
775
775
  r++, a !== 32 && a !== 9 && (l = r);
776
776
  }
777
777
  return i + e.slice(o, l);
778
778
  }
779
- function Gr(e, n, t) {
779
+ function zr(e, n, t) {
780
780
  let i = "", r = n, o = n, l = n;
781
781
  for (; r < t; ) {
782
782
  const a = e.charCodeAt(r);
@@ -784,49 +784,49 @@ function Gr(e, n, t) {
784
784
  i += e.slice(o, r) + "'", r += 2, o = l = r;
785
785
  else if (a === 10 || a === 13) {
786
786
  i += e.slice(o, l);
787
- const u = We(e, r, t);
788
- i += Rn(u.breaks), r = o = l = u.position;
787
+ const s = We(e, r, t);
788
+ i += On(s.breaks), r = o = l = s.position;
789
789
  } else
790
790
  r++, a !== 32 && a !== 9 && (l = r);
791
791
  }
792
792
  return i + e.slice(o, t);
793
793
  }
794
- function Wr(e, n, t) {
794
+ function Gr(e, n, t) {
795
795
  let i = "", r = n, o = n, l = n;
796
796
  for (; r < t; ) {
797
797
  const a = e.charCodeAt(r);
798
798
  if (a === 92) {
799
799
  i += e.slice(o, r), r++;
800
- const u = e.charCodeAt(r);
801
- if (u === 10 || u === 13) r = We(e, r, t).position;
802
- else if (u < 256 && Nt[u])
803
- i += $t[u], r++;
800
+ const s = e.charCodeAt(r);
801
+ if (s === 10 || s === 13) r = We(e, r, t).position;
802
+ else if (s < 256 && $t[s])
803
+ i += Lt[s], r++;
804
804
  else {
805
- let s = Hr(u), c = 0;
806
- for (; s > 0; s--) {
805
+ let u = Kr(s), c = 0;
806
+ for (; u > 0; u--) {
807
807
  r++;
808
- const y = Kr(e.charCodeAt(r));
808
+ const y = jr(e.charCodeAt(r));
809
809
  c = (c << 4) + y;
810
810
  }
811
- i += jr(c), r++;
811
+ i += Yr(c), r++;
812
812
  }
813
813
  o = l = r;
814
814
  } else if (a === 10 || a === 13) {
815
815
  i += e.slice(o, l);
816
- const u = We(e, r, t);
817
- i += Rn(u.breaks), r = o = l = u.position;
816
+ const s = We(e, r, t);
817
+ i += On(s.breaks), r = o = l = s.position;
818
818
  } else
819
819
  r++, a !== 32 && a !== 9 && (l = r);
820
820
  }
821
821
  return i + e.slice(o, t);
822
822
  }
823
- function at(e, n, t, i, r, o) {
823
+ function st(e, n, t, i, r, o) {
824
824
  const l = i < 0 ? 0 : i, a = e.slice(n, t).replace(/\r\n?/g, `
825
- `), u = a === "" ? [] : (a.endsWith(`
825
+ `), s = a === "" ? [] : (a.endsWith(`
826
826
  `) ? a.slice(0, -1) : a).split(`
827
827
  `);
828
- let s = "", c = !1, y = 0, m = !1;
829
- for (const b of u) {
828
+ let u = "", c = !1, y = 0, m = !1;
829
+ for (const b of s) {
830
830
  let p = 0;
831
831
  for (; p < l && b.charCodeAt(p) === 32; ) p++;
832
832
  if (i < 0 || p >= b.length) {
@@ -834,57 +834,57 @@ function at(e, n, t, i, r, o) {
834
834
  continue;
835
835
  }
836
836
  const h = b.slice(l), v = h.charCodeAt(0);
837
- o ? v === 32 || v === 9 ? (m = !0, s += `
838
- `.repeat(c ? 1 + y : y)) : m ? (m = !1, s += `
839
- `.repeat(y + 1)) : y === 0 ? c && (s += " ") : s += `
840
- `.repeat(y) : s += `
841
- `.repeat(c ? 1 + y : y), s += h, c = !0, y = 0;
842
- }
843
- return r === 3 ? s += `
844
- `.repeat(c ? 1 + y : y) : r !== 2 && c && (s += `
845
- `), s;
846
- }
847
- function Qr(e, n) {
848
- if (n.valueStart === Yr) return "";
837
+ o ? v === 32 || v === 9 ? (m = !0, u += `
838
+ `.repeat(c ? 1 + y : y)) : m ? (m = !1, u += `
839
+ `.repeat(y + 1)) : y === 0 ? c && (u += " ") : u += `
840
+ `.repeat(y) : u += `
841
+ `.repeat(c ? 1 + y : y), u += h, c = !0, y = 0;
842
+ }
843
+ return r === 3 ? u += `
844
+ `.repeat(c ? 1 + y : y) : r !== 2 && c && (u += `
845
+ `), u;
846
+ }
847
+ function Wr(e, n) {
848
+ if (n.valueStart === Dr) return "";
849
849
  const { valueStart: t, valueEnd: i } = n;
850
850
  if (n.fast) return e.slice(t, i);
851
851
  switch (n.style) {
852
852
  case 2:
853
- return Gr(e, t, i);
853
+ return zr(e, t, i);
854
854
  case 3:
855
- return Wr(e, t, i);
855
+ return Gr(e, t, i);
856
856
  case 4:
857
- return at(e, t, i, n.indent, n.chomping, !1);
857
+ return st(e, t, i, n.indent, n.chomping, !1);
858
858
  case 5:
859
- return at(e, t, i, n.indent, n.chomping, !0);
859
+ return st(e, t, i, n.indent, n.chomping, !0);
860
860
  default:
861
- return zr(e, t, i);
861
+ return Hr(e, t, i);
862
862
  }
863
863
  }
864
- var Jr = {
864
+ var Qr = {
865
865
  "!": "!",
866
866
  "!!": "tag:yaml.org,2002:"
867
867
  };
868
- function hn(e) {
868
+ function mn(e) {
869
869
  return encodeURI(e).replace(/!/g, "%21");
870
870
  }
871
- function Lt(e, n) {
871
+ function Ft(e, n) {
872
872
  if (e.startsWith("!<") && e.endsWith(">")) return decodeURIComponent(e.slice(2, -1));
873
- const t = e.indexOf("!", 1), i = t === -1 ? "!" : e.slice(0, t + 1), r = (n == null ? void 0 : n[i]) ?? Jr[i] ?? i;
873
+ const t = e.indexOf("!", 1), i = t === -1 ? "!" : e.slice(0, t + 1), r = (n == null ? void 0 : n[i]) ?? Qr[i] ?? i;
874
874
  return decodeURIComponent(r) + decodeURIComponent(e.slice(i.length));
875
875
  }
876
- function Ft(e) {
876
+ function Rt(e) {
877
877
  let n = e;
878
- return n.charCodeAt(0) === 33 ? (n = n.slice(1), `!${hn(n)}`) : n.slice(0, 18) === "tag:yaml.org,2002:" ? `!!${hn(n.slice(18))}` : `!<${hn(n)}>`;
878
+ return n.charCodeAt(0) === 33 ? (n = n.slice(1), `!${mn(n)}`) : n.slice(0, 18) === "tag:yaml.org,2002:" ? `!!${mn(n.slice(18))}` : `!<${mn(n)}>`;
879
879
  }
880
880
  var be = -1, Pn = {
881
881
  filename: "",
882
- schema: qr,
882
+ schema: Ur,
883
883
  json: !1,
884
884
  maxTotalMergeKeys: 1e4,
885
885
  maxAliases: -1
886
886
  };
887
- function Xr(e) {
887
+ function Jr(e) {
888
888
  return "tagStart" in e && e.tagStart !== be ? e.tagStart : "anchorStart" in e && e.anchorStart !== be ? e.anchorStart : "valueStart" in e && e.valueStart !== be ? e.valueStart : "start" in e ? e.start : 0;
889
889
  }
890
890
  function j(e, n) {
@@ -894,7 +894,7 @@ function Ot(e, n, t, i) {
894
894
  try {
895
895
  return t.finalize(i);
896
896
  } catch (r) {
897
- if (r instanceof Le) throw r;
897
+ if (r instanceof Fe) throw r;
898
898
  rn(e.source, n, r instanceof Error ? r.message : String(r), e.filename);
899
899
  }
900
900
  }
@@ -903,32 +903,32 @@ function Ke(e, n, t) {
903
903
  if (i) return i;
904
904
  for (const r of n) if (t.startsWith(r.tagName)) return r;
905
905
  }
906
- function Zr(e, n, t, i, r) {
906
+ function Xr(e, n, t, i, r) {
907
907
  const o = Ke(n, t, i);
908
908
  if (o) return o;
909
909
  j(e, `unknown ${r} tag !<${i}>`);
910
910
  }
911
- function eo(e, n) {
912
- const t = Qr(e.source, n), i = n.tagStart === be ? "" : e.source.slice(n.tagStart, n.tagEnd), r = e.schema.defaultScalarTag;
911
+ function Zr(e, n) {
912
+ const t = Wr(e.source, n), i = n.tagStart === be ? "" : e.source.slice(n.tagStart, n.tagEnd), r = e.schema.defaultScalarTag;
913
913
  if (i !== "") {
914
914
  if (i === "!") return {
915
915
  value: t,
916
916
  tag: r
917
917
  };
918
- const o = Lt(i, e.tagHandlers), l = Ke(e.schema.exact.scalar, e.schema.prefix.scalar, o);
918
+ const o = Ft(i, e.tagHandlers), l = Ke(e.schema.exact.scalar, e.schema.prefix.scalar, o);
919
919
  if (l) {
920
- const u = l.resolve(t, !0, o);
921
- return u === T && j(e, `cannot resolve a node with !<${o}> explicit tag`), {
922
- value: u,
920
+ const s = l.resolve(t, !0, o);
921
+ return s === T && j(e, `cannot resolve a node with !<${o}> explicit tag`), {
922
+ value: s,
923
923
  tag: l
924
924
  };
925
925
  }
926
926
  const a = Ke(e.schema.exact.mapping, e.schema.prefix.mapping, o) ?? Ke(e.schema.exact.sequence, e.schema.prefix.sequence, o);
927
927
  if (a) {
928
928
  t !== "" && j(e, `cannot resolve a node with !<${o}> explicit tag`);
929
- const u = a.create(o);
929
+ const s = a.create(o);
930
930
  return {
931
- value: a.carrierIsResult ? u : Ot(e, e.position, a, u),
931
+ value: a.carrierIsResult ? s : Ot(e, e.position, a, s),
932
932
  tag: a
933
933
  };
934
934
  }
@@ -949,53 +949,53 @@ function eo(e, n) {
949
949
  tag: r
950
950
  };
951
951
  }
952
- function st(e, n, t, i, r, o) {
953
- const l = n.tagStart === be ? "" : e.source.slice(n.tagStart, n.tagEnd), a = l === "" || l === "!" ? r : Lt(l, e.tagHandlers);
952
+ function ut(e, n, t, i, r, o) {
953
+ const l = n.tagStart === be ? "" : e.source.slice(n.tagStart, n.tagEnd), a = l === "" || l === "!" ? r : Ft(l, e.tagHandlers);
954
954
  return {
955
955
  tagName: a,
956
- tag: Zr(e, t, i, a, o)
956
+ tag: Xr(e, t, i, a, o)
957
957
  };
958
958
  }
959
- function Rt(e) {
959
+ function Pt(e) {
960
960
  return e.nodeKind === "mapping";
961
961
  }
962
- function ut(e, n, t, i) {
962
+ function ct(e, n, t, i) {
963
963
  for (const r of i.keys(t)) {
964
964
  if (e.maxTotalMergeKeys !== -1 && ++e.totalMergeKeys > e.maxTotalMergeKeys && j(e, `merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`), n.tag.has(n.value, r)) continue;
965
965
  const o = n.tag.addPair(n.value, r, i.get(t, r));
966
966
  o && j(e, o), (n.overridable ?? (n.overridable = /* @__PURE__ */ new Set())).add(r);
967
967
  }
968
968
  }
969
- function no(e, n, t, i) {
970
- if (e.position = n.keyPosition, Rt(i)) ut(e, n, t, i);
971
- else if (i.nodeKind === "sequence" && Array.isArray(t)) for (const r of t) ut(e, n, r, n.tag);
969
+ function eo(e, n, t, i) {
970
+ if (e.position = n.keyPosition, Pt(i)) ct(e, n, t, i);
971
+ else if (i.nodeKind === "sequence" && Array.isArray(t)) for (const r of t) ct(e, n, r, n.tag);
972
972
  else j(e, "cannot merge mappings; the provided source object is unacceptable");
973
973
  }
974
- function to(e, n, t, i, r) {
974
+ function no(e, n, t, i, r) {
975
975
  var l, a;
976
976
  if (e.position = n.keyPosition, t === Ln) {
977
- no(e, n, i, r);
977
+ eo(e, n, i, r);
978
978
  return;
979
979
  }
980
980
  !e.json && n.tag.has(n.value, t) && !((l = n.overridable) != null && l.has(t)) && j(e, "duplicated mapping key");
981
981
  const o = n.tag.addPair(n.value, t, i);
982
982
  o && j(e, o), (a = n.overridable) == null || a.delete(t);
983
983
  }
984
- function gn(e, n, t) {
984
+ function hn(e, n, t) {
985
985
  const i = e.frames[e.frames.length - 1];
986
986
  if (i.kind === "document")
987
987
  i.value = n, i.hasValue = !0;
988
988
  else if (i.kind === "sequence") {
989
- i.merge && (Rt(t) || j(e, "cannot merge mappings; the provided source object is unacceptable"));
989
+ i.merge && (Pt(t) || j(e, "cannot merge mappings; the provided source object is unacceptable"));
990
990
  const r = i.tag.addItem(i.value, n, i.index++);
991
991
  r && j(e, r);
992
992
  } else if (i.hasKey) {
993
993
  const r = i.key;
994
- i.key = void 0, i.hasKey = !1, to(e, i, r, n, t);
994
+ i.key = void 0, i.hasKey = !1, no(e, i, r, n, t);
995
995
  } else
996
996
  i.key = n, i.keyPosition = e.position, i.hasKey = !0;
997
997
  }
998
- function yn(e, n, t, i, r) {
998
+ function gn(e, n, t, i, r) {
999
999
  if (n.anchorStart !== be) {
1000
1000
  const o = {
1001
1001
  value: t,
@@ -1006,7 +1006,7 @@ function yn(e, n, t, i, r) {
1006
1006
  }
1007
1007
  return null;
1008
1008
  }
1009
- function io(e, n) {
1009
+ function to(e, n) {
1010
1010
  const t = {
1011
1011
  ...Pn,
1012
1012
  ...n,
@@ -1022,7 +1022,7 @@ function io(e, n) {
1022
1022
  };
1023
1023
  for (; t.eventIndex < t.events.length; ) {
1024
1024
  const i = t.events[t.eventIndex++];
1025
- switch (t.position = Xr(i), i.type) {
1025
+ switch (t.position = Jr(i), i.type) {
1026
1026
  case 1:
1027
1027
  t.anchors = /* @__PURE__ */ new Map(), t.aliasCount = 0, t.tagHandlers = /* @__PURE__ */ Object.create(null);
1028
1028
  for (const r of i.directives) r.kind === "tag" && (t.tagHandlers[r.handle] = r.prefix);
@@ -1034,12 +1034,12 @@ function io(e, n) {
1034
1034
  });
1035
1035
  break;
1036
1036
  case 4: {
1037
- const { value: r, tag: o } = eo(t, i);
1038
- yn(t, i, r, o, !0), gn(t, r, o);
1037
+ const { value: r, tag: o } = Zr(t, i);
1038
+ gn(t, i, r, o, !0), hn(t, r, o);
1039
1039
  break;
1040
1040
  }
1041
1041
  case 2: {
1042
- const r = st(t, i, t.schema.exact.sequence, t.schema.prefix.sequence, "tag:yaml.org,2002:seq", "sequence"), o = r.tag.create(r.tagName), l = yn(t, i, o, r.tag, r.tag.carrierIsResult), a = t.frames[t.frames.length - 1], u = a !== void 0 && a.kind === "mapping" && a.hasKey && a.key === Ln;
1042
+ const r = ut(t, i, t.schema.exact.sequence, t.schema.prefix.sequence, "tag:yaml.org,2002:seq", "sequence"), o = r.tag.create(r.tagName), l = gn(t, i, o, r.tag, r.tag.carrierIsResult), a = t.frames[t.frames.length - 1], s = a !== void 0 && a.kind === "mapping" && a.hasKey && a.key === Ln;
1043
1043
  t.frames.push({
1044
1044
  kind: "sequence",
1045
1045
  position: t.position,
@@ -1047,12 +1047,12 @@ function io(e, n) {
1047
1047
  tag: r.tag,
1048
1048
  anchor: l,
1049
1049
  index: 0,
1050
- merge: u
1050
+ merge: s
1051
1051
  });
1052
1052
  break;
1053
1053
  }
1054
1054
  case 3: {
1055
- const r = st(t, i, t.schema.exact.mapping, t.schema.prefix.mapping, "tag:yaml.org,2002:map", "mapping"), o = r.tag.create(r.tagName), l = yn(t, i, o, r.tag, r.tag.carrierIsResult);
1055
+ const r = ut(t, i, t.schema.exact.mapping, t.schema.prefix.mapping, "tag:yaml.org,2002:map", "mapping"), o = r.tag.create(r.tagName), l = gn(t, i, o, r.tag, r.tag.carrierIsResult);
1056
1056
  t.frames.push({
1057
1057
  kind: "mapping",
1058
1058
  position: t.position,
@@ -1069,7 +1069,7 @@ function io(e, n) {
1069
1069
  case 5: {
1070
1070
  t.maxAliases !== -1 && ++t.aliasCount > t.maxAliases && j(t, `aliases exceeded maxAliases (${t.maxAliases})`);
1071
1071
  const r = t.source.slice(i.anchorStart, i.anchorEnd), o = t.anchors.get(r);
1072
- o || j(t, `unidentified alias "${r}"`), o.isValueFinal || j(t, `recursive alias "${r}" is not supported for tag ${o.tag.tagName} because it uses finalize()`), gn(t, o.value, o.tag);
1072
+ o || j(t, `unidentified alias "${r}"`), o.isValueFinal || j(t, `recursive alias "${r}" is not supported for tag ${o.tag.tagName} because it uses finalize()`), hn(t, o.value, o.tag);
1073
1073
  break;
1074
1074
  }
1075
1075
  case 6: {
@@ -1077,7 +1077,7 @@ function io(e, n) {
1077
1077
  if (r.kind === "document") t.documents.push(r.value);
1078
1078
  else {
1079
1079
  const o = r.tag.carrierIsResult ? r.value : Ot(t, r.position, r.tag, r.value);
1080
- r.anchor && (r.anchor.value = o, r.anchor.isValueFinal = !0), gn(t, o, r.tag);
1080
+ r.anchor && (r.anchor.value = o, r.anchor.isValueFinal = !0), hn(t, o, r.tag);
1081
1081
  }
1082
1082
  break;
1083
1083
  }
@@ -1085,11 +1085,11 @@ function io(e, n) {
1085
1085
  }
1086
1086
  return t.documents;
1087
1087
  }
1088
- var w = -1, Pt = Object.prototype.hasOwnProperty, ie = 1, An = 2, Mt = 3, Qe = 4, ro = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, oo = /[,\[\]{}]/, Ut = /^(?:!|!!|![0-9A-Za-z-]+!)$/, Cn = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`, qt = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`, lo = new RegExp(`^(?:${Cn})*$`), ao = new RegExp(`^(?:${qt})+$`), so = new RegExp(`^(?:!(?:${Cn})*|${qt}(?:${Cn})*)$`), Mn = {
1088
+ var w = -1, Mt = Object.prototype.hasOwnProperty, ie = 1, kn = 2, Ut = 3, Qe = 4, io = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ro = /[,\[\]{}]/, qt = /^(?:!|!!|![0-9A-Za-z-]+!)$/, An = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`, Vt = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`, oo = new RegExp(`^(?:${An})*$`), lo = new RegExp(`^(?:${Vt})+$`), ao = new RegExp(`^(?:!(?:${An})*|${Vt}(?:${An})*)$`), Mn = {
1089
1089
  filename: "",
1090
1090
  maxDepth: 100
1091
1091
  };
1092
- function uo(e, n, t) {
1092
+ function so(e, n, t) {
1093
1093
  e.events.push({
1094
1094
  type: 1,
1095
1095
  explicitStart: n,
@@ -1097,7 +1097,7 @@ function uo(e, n, t) {
1097
1097
  directives: e.directives
1098
1098
  });
1099
1099
  }
1100
- function Vt(e, n, t, i, r, o, l) {
1100
+ function Bt(e, n, t, i, r, o, l) {
1101
1101
  e.events.push({
1102
1102
  type: 2,
1103
1103
  start: n,
@@ -1108,7 +1108,7 @@ function Vt(e, n, t, i, r, o, l) {
1108
1108
  style: l
1109
1109
  });
1110
1110
  }
1111
- function Ee(e, n, t, i, r, o, l) {
1111
+ function Ie(e, n, t, i, r, o, l) {
1112
1112
  e.events.push({
1113
1113
  type: 3,
1114
1114
  start: n,
@@ -1119,7 +1119,7 @@ function Ee(e, n, t, i, r, o, l) {
1119
1119
  style: l
1120
1120
  });
1121
1121
  }
1122
- function Ae(e, n, t, i, r, o, l, a, u = 1, s = -1, c = !1) {
1122
+ function Ae(e, n, t, i, r, o, l, a, s = 1, u = -1, c = !1) {
1123
1123
  e.events.push({
1124
1124
  type: 4,
1125
1125
  valueStart: n,
@@ -1129,12 +1129,12 @@ function Ae(e, n, t, i, r, o, l, a, u = 1, s = -1, c = !1) {
1129
1129
  tagStart: o,
1130
1130
  tagEnd: l,
1131
1131
  style: a,
1132
- chomping: u,
1133
- indent: s,
1132
+ chomping: s,
1133
+ indent: u,
1134
1134
  fast: c
1135
1135
  });
1136
1136
  }
1137
- function co(e, n, t) {
1137
+ function uo(e, n, t) {
1138
1138
  e.events.push({
1139
1139
  type: 5,
1140
1140
  anchorStart: n,
@@ -1147,7 +1147,7 @@ function xe(e) {
1147
1147
  function Y(e) {
1148
1148
  Ae(e, w, w, w, w, w, w, 1);
1149
1149
  }
1150
- function ct() {
1150
+ function ft() {
1151
1151
  return {
1152
1152
  anchorStart: w,
1153
1153
  anchorEnd: w,
@@ -1155,7 +1155,7 @@ function ct() {
1155
1155
  tagEnd: w
1156
1156
  };
1157
1157
  }
1158
- function Ie(e) {
1158
+ function Ne(e) {
1159
1159
  return {
1160
1160
  position: e.position,
1161
1161
  line: e.line,
@@ -1180,24 +1180,24 @@ function pe(e) {
1180
1180
  function Q(e) {
1181
1181
  return pe(e) || F(e);
1182
1182
  }
1183
- function Z(e) {
1183
+ function X(e) {
1184
1184
  return e === 0 || Q(e);
1185
1185
  }
1186
1186
  function me(e) {
1187
1187
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1188
1188
  }
1189
- function fo(e) {
1189
+ function co(e) {
1190
1190
  return e >= 48 && e <= 57 ? e - 48 : -1;
1191
1191
  }
1192
- function po(e) {
1192
+ function fo(e) {
1193
1193
  if (e >= 48 && e <= 57) return e - 48;
1194
1194
  const n = e | 32;
1195
1195
  return n >= 97 && n <= 102 ? n - 97 + 10 : -1;
1196
1196
  }
1197
- function mo(e) {
1197
+ function po(e) {
1198
1198
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1199
1199
  }
1200
- function ho(e) {
1200
+ function mo(e) {
1201
1201
  return e === 48 || e === 97 || e === 98 || e === 116 || e === 9 || e === 110 || e === 118 || e === 102 || e === 114 || e === 101 || e === 32 || e === 34 || e === 47 || e === 92 || e === 78 || e === 95 || e === 76 || e === 80;
1202
1202
  }
1203
1203
  function Je(e) {
@@ -1225,48 +1225,48 @@ function le(e, n = e.position) {
1225
1225
  }
1226
1226
  return !1;
1227
1227
  }
1228
- function ft(e) {
1228
+ function dt(e) {
1229
1229
  let n = e.input.charCodeAt(e.position);
1230
1230
  for (; n !== 0 && !F(n); ) n = e.input.charCodeAt(++e.position);
1231
1231
  }
1232
- function Bt(e, n, t) {
1233
- ro.test(e.input.slice(n, t)) && x(e, "the stream contains non-printable characters");
1232
+ function Dt(e, n, t) {
1233
+ io.test(e.input.slice(n, t)) && x(e, "the stream contains non-printable characters");
1234
1234
  }
1235
- function go(e, n, t) {
1235
+ function ho(e, n, t) {
1236
1236
  if (e.input.charCodeAt(e.position) !== 33) return !1;
1237
1237
  n.tagStart !== w && x(e, "duplication of a tag property");
1238
1238
  const i = e.position;
1239
1239
  let r = !1, o = !1, l = "!", a = e.input.charCodeAt(++e.position);
1240
1240
  a === 60 ? (r = !0, a = e.input.charCodeAt(++e.position)) : a === 33 && (o = !0, l = "!!", a = e.input.charCodeAt(++e.position));
1241
- let u = e.position, s;
1241
+ let s = e.position, u;
1242
1242
  if (r) {
1243
1243
  for (; a !== 0 && a !== 62; ) a = e.input.charCodeAt(++e.position);
1244
- a !== 62 && x(e, "unexpected end of the stream within a verbatim tag"), s = e.input.slice(u, e.position), e.position++;
1244
+ a !== 62 && x(e, "unexpected end of the stream within a verbatim tag"), u = e.input.slice(s, e.position), e.position++;
1245
1245
  } else {
1246
1246
  for (; a !== 0 && !Q(a) && !(t && me(a)); )
1247
- a === 33 && (o ? x(e, "tag suffix cannot contain exclamation marks") : (l = e.input.slice(u - 1, e.position + 1), Ut.test(l) || x(e, "named tag handle cannot contain such characters"), o = !0, u = e.position + 1)), a = e.input.charCodeAt(++e.position);
1248
- s = e.input.slice(u, e.position), oo.test(s) && x(e, "tag suffix cannot contain flow indicator characters");
1247
+ a === 33 && (o ? x(e, "tag suffix cannot contain exclamation marks") : (l = e.input.slice(s - 1, e.position + 1), qt.test(l) || x(e, "named tag handle cannot contain such characters"), o = !0, s = e.position + 1)), a = e.input.charCodeAt(++e.position);
1248
+ u = e.input.slice(s, e.position), ro.test(u) && x(e, "tag suffix cannot contain flow indicator characters");
1249
1249
  }
1250
- return s && !(r ? lo.test(s) : ao.test(s)) && x(e, `tag name cannot contain such characters: ${s}`), !r && l !== "!" && l !== "!!" && !Pt.call(e.tagHandlers, l) && x(e, `undeclared tag handle "${l}"`), n.tagStart = i, n.tagEnd = e.position, !0;
1250
+ return u && !(r ? oo.test(u) : lo.test(u)) && x(e, `tag name cannot contain such characters: ${u}`), !r && l !== "!" && l !== "!!" && !Mt.call(e.tagHandlers, l) && x(e, `undeclared tag handle "${l}"`), n.tagStart = i, n.tagEnd = e.position, !0;
1251
1251
  }
1252
- function yo(e, n) {
1252
+ function go(e, n) {
1253
1253
  if (e.input.charCodeAt(e.position) !== 38) return !1;
1254
1254
  n.anchorStart !== w && x(e, "duplication of an anchor property"), e.position++;
1255
1255
  const t = e.position;
1256
1256
  for (; e.input.charCodeAt(e.position) !== 0 && !Q(e.input.charCodeAt(e.position)) && !me(e.input.charCodeAt(e.position)); ) e.position++;
1257
1257
  return e.position === t && x(e, "name of an anchor node must contain at least one character"), n.anchorStart = t, n.anchorEnd = e.position, !0;
1258
1258
  }
1259
- function vo(e, n) {
1259
+ function yo(e, n) {
1260
1260
  if (e.input.charCodeAt(e.position) !== 42) return !1;
1261
1261
  (n.anchorStart !== w || n.tagStart !== w) && x(e, "alias node should not have any properties"), e.position++;
1262
1262
  const t = e.position;
1263
1263
  for (; e.input.charCodeAt(e.position) !== 0 && !Q(e.input.charCodeAt(e.position)) && !me(e.input.charCodeAt(e.position)); ) e.position++;
1264
- return e.position === t && x(e, "name of an alias node must contain at least one character"), co(e, t, e.position), !0;
1264
+ return e.position === t && x(e, "name of an alias node must contain at least one character"), uo(e, t, e.position), !0;
1265
1265
  }
1266
- function wn(e, n) {
1266
+ function Cn(e, n) {
1267
1267
  V(e, !1), e.lineIndent < n && x(e, "deficient indentation");
1268
1268
  }
1269
- function bo(e, n, t) {
1269
+ function vo(e, n, t) {
1270
1270
  if (e.input.charCodeAt(e.position) !== 39) return !1;
1271
1271
  e.position++;
1272
1272
  const i = e.position;
@@ -1281,11 +1281,11 @@ function bo(e, n, t) {
1281
1281
  const l = e.position;
1282
1282
  return e.position++, Ae(e, i, l, t.anchorStart, t.anchorEnd, t.tagStart, t.tagEnd, 2, 1, -1, r), !0;
1283
1283
  }
1284
- F(o) ? (r = !1, wn(e, n)) : e.position === e.lineStart && le(e) ? x(e, "unexpected end of the document within a single quoted scalar") : o !== 9 && o < 32 ? x(e, "expected valid JSON character") : e.position++;
1284
+ F(o) ? (r = !1, Cn(e, n)) : e.position === e.lineStart && le(e) ? x(e, "unexpected end of the document within a single quoted scalar") : o !== 9 && o < 32 ? x(e, "expected valid JSON character") : e.position++;
1285
1285
  }
1286
1286
  x(e, "unexpected end of the stream within a single quoted scalar");
1287
1287
  }
1288
- function xo(e, n, t) {
1288
+ function bo(e, n, t) {
1289
1289
  if (e.input.charCodeAt(e.position) !== 34) return !1;
1290
1290
  e.position++;
1291
1291
  const i = e.position;
@@ -1299,36 +1299,36 @@ function xo(e, n, t) {
1299
1299
  if (o === 92) {
1300
1300
  r = !1;
1301
1301
  const l = e.input.charCodeAt(++e.position);
1302
- if (F(l)) wn(e, n);
1303
- else if (ho(l)) e.position++;
1302
+ if (F(l)) Cn(e, n);
1303
+ else if (mo(l)) e.position++;
1304
1304
  else {
1305
- let a = mo(l);
1305
+ let a = po(l);
1306
1306
  for (a === 0 && x(e, "unknown escape sequence"); a-- > 0; )
1307
- e.position++, po(e.input.charCodeAt(e.position)) < 0 && x(e, "expected hexadecimal character");
1307
+ e.position++, fo(e.input.charCodeAt(e.position)) < 0 && x(e, "expected hexadecimal character");
1308
1308
  e.position++;
1309
1309
  }
1310
- } else F(o) ? (r = !1, wn(e, n)) : e.position === e.lineStart && le(e) ? x(e, "unexpected end of the document within a double quoted scalar") : o !== 9 && o < 32 ? x(e, "expected valid JSON character") : e.position++;
1310
+ } else F(o) ? (r = !1, Cn(e, n)) : e.position === e.lineStart && le(e) ? x(e, "unexpected end of the document within a double quoted scalar") : o !== 9 && o < 32 ? x(e, "expected valid JSON character") : e.position++;
1311
1311
  }
1312
1312
  x(e, "unexpected end of the stream within a double quoted scalar");
1313
1313
  }
1314
- function So(e, n, t) {
1314
+ function xo(e, n, t) {
1315
1315
  const i = e.input.charCodeAt(e.position);
1316
1316
  let r = 1, o = -1, l = !1;
1317
1317
  if (i !== 124 && i !== 62) return !1;
1318
1318
  const a = i === 124 ? 4 : 5;
1319
1319
  for (e.position++; e.input.charCodeAt(e.position) !== 0; ) {
1320
- const b = e.input.charCodeAt(e.position), p = fo(b);
1320
+ const b = e.input.charCodeAt(e.position), p = co(b);
1321
1321
  if (b === 43 || b === 45)
1322
1322
  r !== 1 && x(e, "repeat of a chomping mode identifier"), r = b === 43 ? 3 : 2, e.position++;
1323
1323
  else if (p >= 0)
1324
1324
  p === 0 && x(e, "bad explicit indentation width of a block scalar; it cannot be less than one"), l && x(e, "repeat of an indentation width identifier"), o = n + p - 1, l = !0, e.position++;
1325
1325
  else break;
1326
1326
  }
1327
- let u = !1;
1327
+ let s = !1;
1328
1328
  for (; pe(e.input.charCodeAt(e.position)); )
1329
- u = !0, e.position++;
1330
- u && e.input.charCodeAt(e.position) === 35 && ft(e), F(e.input.charCodeAt(e.position)) ? Je(e) : e.input.charCodeAt(e.position) !== 0 && x(e, "a line break is expected");
1331
- let s = l ? o : -1, c = 0;
1329
+ s = !0, e.position++;
1330
+ s && e.input.charCodeAt(e.position) === 35 && dt(e), F(e.input.charCodeAt(e.position)) ? Je(e) : e.input.charCodeAt(e.position) !== 0 && x(e, "a line break is expected");
1331
+ let u = l ? o : -1, c = 0;
1332
1332
  const y = e.position;
1333
1333
  let m = e.position;
1334
1334
  for (; e.input.charCodeAt(e.position) !== 0; ) {
@@ -1337,113 +1337,113 @@ function So(e, n, t) {
1337
1337
  for (; e.input.charCodeAt(b + p) === 32; ) p++;
1338
1338
  const h = e.input.charCodeAt(b + p);
1339
1339
  if (h === 0) {
1340
- s >= 0 ? p > s && (m = b + p) : p > 0 && (m = b + p);
1340
+ u >= 0 ? p > u && (m = b + p) : p > 0 && (m = b + p);
1341
1341
  break;
1342
1342
  }
1343
1343
  if (b === e.lineStart && le(e, b)) break;
1344
- if (!l && s === -1 && F(h) && (c = Math.max(c, p)), !l && s === -1 && !F(h) && (h === 9 && p < n && (e.position = b + p, x(e, "tab characters must not be used in indentation")), p < c && (e.position = b + p, x(e, "bad indentation of a mapping entry"))), s === -1 && h !== 0 && !F(h) && p < n) {
1344
+ if (!l && u === -1 && F(h) && (c = Math.max(c, p)), !l && u === -1 && !F(h) && (h === 9 && p < n && (e.position = b + p, x(e, "tab characters must not be used in indentation")), p < c && (e.position = b + p, x(e, "bad indentation of a mapping entry"))), u === -1 && h !== 0 && !F(h) && p < n) {
1345
1345
  e.lineIndent = p, e.position = b + p;
1346
1346
  break;
1347
1347
  }
1348
- !l && h !== 0 && !F(h) && s === -1 && (s = p);
1349
- const v = s === -1 ? n + 1 : s;
1348
+ !l && h !== 0 && !F(h) && u === -1 && (u = p);
1349
+ const v = u === -1 ? n + 1 : u;
1350
1350
  if (h !== 0 && !F(h) && p < v) {
1351
1351
  e.lineIndent = p, e.position = b + p;
1352
1352
  break;
1353
1353
  }
1354
- ft(e), m = e.position, F(e.input.charCodeAt(e.position)) && (Je(e), m = e.position);
1354
+ dt(e), m = e.position, F(e.input.charCodeAt(e.position)) && (Je(e), m = e.position);
1355
1355
  }
1356
- return Bt(e, y, m), Ae(e, y, m, t.anchorStart, t.anchorEnd, t.tagStart, t.tagEnd, a, r, s), !0;
1356
+ return Dt(e, y, m), Ae(e, y, m, t.anchorStart, t.anchorEnd, t.tagStart, t.tagEnd, a, r, u), !0;
1357
1357
  }
1358
- function ko(e, n) {
1358
+ function So(e, n) {
1359
1359
  const t = e.input.charCodeAt(e.position), i = n === ie;
1360
1360
  if (t === 0 || Q(t) || t === 35 || t === 38 || t === 42 || t === 33 || t === 124 || t === 62 || t === 39 || t === 34 || t === 37 || t === 64 || t === 96 || i && me(t)) return !1;
1361
1361
  if (t === 63 || t === 45) {
1362
1362
  const r = e.input.charCodeAt(e.position + 1);
1363
- if (Z(r) || i && me(r)) return !1;
1363
+ if (X(r) || i && me(r)) return !1;
1364
1364
  }
1365
1365
  return !0;
1366
1366
  }
1367
- function Ao(e, n, t, i) {
1368
- if (!ko(e, t)) return !1;
1367
+ function ko(e, n, t, i) {
1368
+ if (!So(e, t)) return !1;
1369
1369
  const r = e.position;
1370
1370
  let o = e.position, l = e.input.charCodeAt(e.position);
1371
1371
  const a = t === ie;
1372
- let u = !1;
1372
+ let s = !1;
1373
1373
  for (; l !== 0 && !(e.position === e.lineStart && le(e)); ) {
1374
1374
  if (l === 58) {
1375
- const s = e.input.charCodeAt(e.position + 1);
1376
- if (Z(s) || a && me(s)) break;
1375
+ const u = e.input.charCodeAt(e.position + 1);
1376
+ if (X(u) || a && me(u)) break;
1377
1377
  } else if (l === 35) {
1378
1378
  if (Q(e.input.charCodeAt(e.position - 1))) break;
1379
1379
  } else {
1380
1380
  if (a && me(l)) break;
1381
1381
  if (F(l)) {
1382
- const s = e.position, c = e.line, y = e.lineStart, m = e.lineIndent;
1382
+ const u = e.position, c = e.line, y = e.lineStart, m = e.lineIndent;
1383
1383
  if (V(e, !1), e.lineIndent >= n) {
1384
- u = !0, l = e.input.charCodeAt(e.position);
1384
+ s = !0, l = e.input.charCodeAt(e.position);
1385
1385
  continue;
1386
1386
  }
1387
- e.position = s, e.line = c, e.lineStart = y, e.lineIndent = m;
1387
+ e.position = u, e.line = c, e.lineStart = y, e.lineIndent = m;
1388
1388
  break;
1389
1389
  }
1390
1390
  }
1391
1391
  pe(l) || (o = e.position + 1), l = e.input.charCodeAt(++e.position);
1392
1392
  }
1393
- return o === r ? !1 : (Bt(e, r, o), Ae(e, r, o, i.anchorStart, i.anchorEnd, i.tagStart, i.tagEnd, 1, 1, -1, !u), !0);
1393
+ return o === r ? !1 : (Dt(e, r, o), Ae(e, r, o, i.anchorStart, i.anchorEnd, i.tagStart, i.tagEnd, 1, 1, -1, !s), !0);
1394
1394
  }
1395
1395
  function ce(e, n) {
1396
1396
  const t = e.line;
1397
1397
  V(e, !0), (e.line > t && e.lineIndent < n || e.firstTabInLine !== -1 && e.lineIndent < n) && x(e, "deficient indentation");
1398
1398
  }
1399
- function Co(e, n, t) {
1399
+ function Ao(e, n, t) {
1400
1400
  const i = e.input.charCodeAt(e.position), r = i === 123, o = e.position;
1401
1401
  let l = !0;
1402
1402
  if (i !== 91 && i !== 123) return !1;
1403
1403
  const a = r ? 125 : 93;
1404
- for (r ? Ee(e, o, t.anchorStart, t.anchorEnd, t.tagStart, t.tagEnd, 2) : Vt(e, o, t.anchorStart, t.anchorEnd, t.tagStart, t.tagEnd, 2), e.position++; e.input.charCodeAt(e.position) !== 0; ) {
1404
+ for (r ? Ie(e, o, t.anchorStart, t.anchorEnd, t.tagStart, t.tagEnd, 2) : Bt(e, o, t.anchorStart, t.anchorEnd, t.tagStart, t.tagEnd, 2), e.position++; e.input.charCodeAt(e.position) !== 0; ) {
1405
1405
  ce(e, n);
1406
- let u = e.input.charCodeAt(e.position);
1407
- if (u === a)
1406
+ let s = e.input.charCodeAt(e.position);
1407
+ if (s === a)
1408
1408
  return e.position++, xe(e), !0;
1409
- l ? u === 44 && x(e, "expected the node content, but found ','") : x(e, "missed comma between flow collection entries");
1410
- let s = !1, c = !1;
1411
- u === 63 && Q(e.input.charCodeAt(e.position + 1)) && (s = c = !0, e.position += 1, ce(e, n));
1412
- const y = e.line, m = Ie(e), b = ee(e, n, ie, !1, !0);
1413
- ce(e, n), u = e.input.charCodeAt(e.position), (r || c || e.line === y) && u === 58 ? (s = !0, e.position++, ce(e, n), r ? b || Y(e) : (oe(e, m), Ee(e, m.position, w, w, w, w, 2), ee(e, n, ie, !1, !0) || Y(e), ce(e, n), e.position++, ce(e, n)), ee(e, n, ie, !1, !0) || Y(e), ce(e, n), r || xe(e)) : r && s ? (b || Y(e), Y(e)) : r ? Y(e) : s && (oe(e, m), Ee(e, m.position, w, w, w, w, 2), ee(e, n, ie, !1, !0), Y(e), xe(e)), u = e.input.charCodeAt(e.position), u === 44 ? (l = !0, e.position++) : l = !1;
1409
+ l ? s === 44 && x(e, "expected the node content, but found ','") : x(e, "missed comma between flow collection entries");
1410
+ let u = !1, c = !1;
1411
+ s === 63 && Q(e.input.charCodeAt(e.position + 1)) && (u = c = !0, e.position += 1, ce(e, n));
1412
+ const y = e.line, m = Ne(e), b = Z(e, n, ie, !1, !0);
1413
+ ce(e, n), s = e.input.charCodeAt(e.position), (r || c || e.line === y) && s === 58 ? (u = !0, e.position++, ce(e, n), r ? b || Y(e) : (oe(e, m), Ie(e, m.position, w, w, w, w, 2), Z(e, n, ie, !1, !0) || Y(e), ce(e, n), e.position++, ce(e, n)), Z(e, n, ie, !1, !0) || Y(e), ce(e, n), r || xe(e)) : r && u ? (b || Y(e), Y(e)) : r ? Y(e) : u && (oe(e, m), Ie(e, m.position, w, w, w, w, 2), Z(e, n, ie, !1, !0), Y(e), xe(e)), s = e.input.charCodeAt(e.position), s === 44 ? (l = !0, e.position++) : l = !1;
1414
1414
  }
1415
1415
  x(e, "unexpected end of the stream within a flow collection");
1416
1416
  }
1417
- function dt(e, n, t) {
1418
- if (e.firstTabInLine !== -1 || e.input.charCodeAt(e.position) !== 45 || !Z(e.input.charCodeAt(e.position + 1))) return !1;
1419
- for (Vt(e, e.position, t.anchorStart, t.anchorEnd, t.tagStart, t.tagEnd, 1); e.input.charCodeAt(e.position) === 45 && Z(e.input.charCodeAt(e.position + 1)); ) {
1417
+ function pt(e, n, t) {
1418
+ if (e.firstTabInLine !== -1 || e.input.charCodeAt(e.position) !== 45 || !X(e.input.charCodeAt(e.position + 1))) return !1;
1419
+ for (Bt(e, e.position, t.anchorStart, t.anchorEnd, t.tagStart, t.tagEnd, 1); e.input.charCodeAt(e.position) === 45 && X(e.input.charCodeAt(e.position + 1)); ) {
1420
1420
  e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, x(e, "tab characters must not be used in indentation"));
1421
1421
  const i = e.line;
1422
1422
  e.position++;
1423
1423
  const r = V(e, !0) > 0;
1424
- if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && Z(e.input.charCodeAt(e.position + 1)) && x(e, "bad indentation of a sequence entry"), r && e.lineIndent <= n ? Y(e) : ee(e, n, Mt, !1, !0), V(e, !0), e.lineIndent < n || e.position >= e.length) break;
1425
- e.lineIndent > n && x(e, "bad indentation of a sequence entry"), e.line === i && e.input.charCodeAt(e.position) === 45 && Z(e.input.charCodeAt(e.position + 1)) && x(e, "bad indentation of a sequence entry");
1424
+ if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && X(e.input.charCodeAt(e.position + 1)) && x(e, "bad indentation of a sequence entry"), r && e.lineIndent <= n ? Y(e) : Z(e, n, Ut, !1, !0), V(e, !0), e.lineIndent < n || e.position >= e.length) break;
1425
+ e.lineIndent > n && x(e, "bad indentation of a sequence entry"), e.line === i && e.input.charCodeAt(e.position) === 45 && X(e.input.charCodeAt(e.position + 1)) && x(e, "bad indentation of a sequence entry");
1426
1426
  }
1427
1427
  return xe(e), !0;
1428
1428
  }
1429
- function vn(e, n, t, i) {
1429
+ function yn(e, n, t, i) {
1430
1430
  let r = !1, o = !1, l = !1, a = !1;
1431
1431
  if (e.firstTabInLine !== -1) return !1;
1432
- let u = e.input.charCodeAt(e.position);
1433
- for (; u !== 0; ) {
1432
+ let s = e.input.charCodeAt(e.position);
1433
+ for (; s !== 0; ) {
1434
1434
  !r && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, x(e, "tab characters must not be used in indentation"));
1435
- const s = e.input.charCodeAt(e.position + 1), c = e.line;
1436
- if ((u === 63 || u === 58) && Z(s))
1437
- l || (Ee(e, e.position, i.anchorStart, i.anchorEnd, i.tagStart, i.tagEnd, 1), l = !0), u === 63 ? (r && Y(e), o = !0, r = !0) : (r || (Y(e), o = !0), r = !1), e.position += 1, a = !0;
1435
+ const u = e.input.charCodeAt(e.position + 1), c = e.line;
1436
+ if ((s === 63 || s === 58) && X(u))
1437
+ l || (Ie(e, e.position, i.anchorStart, i.anchorEnd, i.tagStart, i.tagEnd, 1), l = !0), s === 63 ? (r && Y(e), o = !0, r = !0) : (r || (Y(e), o = !0), r = !1), e.position += 1, a = !0;
1438
1438
  else {
1439
1439
  r && (Y(e), r = !1);
1440
- const y = Ie(e);
1441
- if (!ee(e, t, An, !1, !0)) break;
1440
+ const y = Ne(e);
1441
+ if (!Z(e, t, kn, !1, !0)) break;
1442
1442
  if (e.line === c) {
1443
- for (u = e.input.charCodeAt(e.position); pe(u); ) u = e.input.charCodeAt(++e.position);
1444
- if (u === 58) {
1445
- if (u = e.input.charCodeAt(++e.position), Z(u) || x(e, "a whitespace character is expected after the key-value separator within a block mapping"), !l) {
1446
- for (oe(e, y), Ee(e, y.position, i.anchorStart, i.anchorEnd, i.tagStart, i.tagEnd, 1), l = !0, ee(e, t, An, !1, !0), u = e.input.charCodeAt(e.position); pe(u); ) u = e.input.charCodeAt(++e.position);
1443
+ for (s = e.input.charCodeAt(e.position); pe(s); ) s = e.input.charCodeAt(++e.position);
1444
+ if (s === 58) {
1445
+ if (s = e.input.charCodeAt(++e.position), X(s) || x(e, "a whitespace character is expected after the key-value separator within a block mapping"), !l) {
1446
+ for (oe(e, y), Ie(e, y.position, i.anchorStart, i.anchorEnd, i.tagStart, i.tagEnd, 1), l = !0, Z(e, t, kn, !1, !0), s = e.input.charCodeAt(e.position); pe(s); ) s = e.input.charCodeAt(++e.position);
1447
1447
  e.position++;
1448
1448
  }
1449
1449
  o = !0, r = !1, a = !1;
@@ -1454,48 +1454,48 @@ function vn(e, n, t, i) {
1454
1454
  else
1455
1455
  return i.anchorStart !== w || i.tagStart !== w ? (oe(e, y), !1) : !0;
1456
1456
  }
1457
- if (ee(e, n, Qe, !0, a) && (a = !1), r || a && (Y(e), a = !1), V(e, !0), u = e.input.charCodeAt(e.position), (e.line === c || e.lineIndent > n) && u !== 0) x(e, "bad indentation of a mapping entry");
1457
+ if (Z(e, n, Qe, !0, a) && (a = !1), r || a && (Y(e), a = !1), V(e, !0), s = e.input.charCodeAt(e.position), (e.line === c || e.lineIndent > n) && s !== 0) x(e, "bad indentation of a mapping entry");
1458
1458
  else if (e.lineIndent < n) break;
1459
1459
  }
1460
1460
  return o ? (r && Y(e), l && xe(e), !0) : !1;
1461
1461
  }
1462
- function ee(e, n, t, i, r, o = !0) {
1462
+ function Z(e, n, t, i, r, o = !0) {
1463
1463
  var p, h;
1464
1464
  e.depth >= e.maxDepth && x(e, `nesting exceeded maxDepth (${e.maxDepth})`), e.depth++;
1465
- let l = 1, a = !1, u = !1, s = null;
1466
- const c = ct();
1467
- let y = t === Qe || t === Mt, m = y;
1465
+ let l = 1, a = !1, s = !1, u = null;
1466
+ const c = ft();
1467
+ let y = t === Qe || t === Ut, m = y;
1468
1468
  const b = y;
1469
1469
  if (i && V(e, !0) && (a = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : l = -1), e.position === e.lineStart && le(e))
1470
1470
  return e.depth--, !1;
1471
1471
  if (l === 1) for (; ; ) {
1472
- const v = e.input.charCodeAt(e.position), k = Ie(e);
1472
+ const v = e.input.charCodeAt(e.position), k = Ne(e);
1473
1473
  if (a && l !== 1 && (v === 33 || v === 38)) break;
1474
1474
  if (a && b && (c.tagStart !== w || c.anchorStart !== w) && (v === 33 || v === 38)) {
1475
- const C = Ie(e), R = n + 1;
1476
- if (vn(e, e.position - e.lineStart, R, c) && ((p = e.events[C.eventsLength]) == null ? void 0 : p.type) === 3)
1475
+ const C = Ne(e), O = n + 1;
1476
+ if (yn(e, e.position - e.lineStart, O, c) && ((p = e.events[C.eventsLength]) == null ? void 0 : p.type) === 3)
1477
1477
  return e.depth--, !0;
1478
1478
  oe(e, C);
1479
1479
  }
1480
- if (a && (v === 33 && c.tagStart !== w || v === 38 && c.anchorStart !== w) || !go(e, c, t === ie) && !yo(e, c)) break;
1481
- s === null && (s = k), V(e, !0) ? (a = !0, m = b, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : l = -1) : m = !1;
1480
+ if (a && (v === 33 && c.tagStart !== w || v === 38 && c.anchorStart !== w) || !ho(e, c, t === ie) && !go(e, c)) break;
1481
+ u === null && (u = k), V(e, !0) ? (a = !0, m = b, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : l = -1) : m = !1;
1482
1482
  }
1483
1483
  if (m && (m = a || r), l === 1 || t === Qe) {
1484
- const v = t === ie || t === An ? n : n + 1, k = e.position - e.lineStart;
1485
- if (l === 1) if (m && (dt(e, k, c) || vn(e, k, v, c)) || Co(e, v, c)) u = !0;
1484
+ const v = t === ie || t === kn ? n : n + 1, k = e.position - e.lineStart;
1485
+ if (l === 1) if (m && (pt(e, k, c) || yn(e, k, v, c)) || Ao(e, v, c)) s = !0;
1486
1486
  else {
1487
1487
  const C = e.input.charCodeAt(e.position);
1488
- if (s !== null && o && b && !m && C !== 124 && C !== 62) {
1489
- const R = Ie(e), B = s.position - s.lineStart;
1490
- oe(e, s), vn(e, B, v, ct()) && ((h = e.events[R.eventsLength]) == null ? void 0 : h.type) === 3 ? u = !0 : oe(e, R);
1488
+ if (u !== null && o && b && !m && C !== 124 && C !== 62) {
1489
+ const O = Ne(e), B = u.position - u.lineStart;
1490
+ oe(e, u), yn(e, B, v, ft()) && ((h = e.events[O.eventsLength]) == null ? void 0 : h.type) === 3 ? s = !0 : oe(e, O);
1491
1491
  }
1492
- !u && (y && So(e, v, c) || bo(e, v, c) || xo(e, v, c) || vo(e, c) || Ao(e, v, t, c)) && (u = !0);
1492
+ !s && (y && xo(e, v, c) || vo(e, v, c) || bo(e, v, c) || yo(e, c) || ko(e, v, t, c)) && (s = !0);
1493
1493
  }
1494
- else l === 0 && (u = m && dt(e, k, c));
1494
+ else l === 0 && (s = m && pt(e, k, c));
1495
1495
  }
1496
- return y = y && !u, !u && (c.anchorStart !== w || c.tagStart !== w || y) && (Ae(e, w, w, c.anchorStart, c.anchorEnd, c.tagStart, c.tagEnd, 1), u = !0), e.depth--, u || c.anchorStart !== w || c.tagStart !== w;
1496
+ return y = y && !s, !s && (c.anchorStart !== w || c.tagStart !== w || y) && (Ae(e, w, w, c.anchorStart, c.anchorEnd, c.tagStart, c.tagEnd, 1), s = !0), e.depth--, s || c.anchorStart !== w || c.tagStart !== w;
1497
1497
  }
1498
- function wo(e) {
1498
+ function Co(e) {
1499
1499
  if (e.lineIndent > 0 || e.input.charCodeAt(e.position) !== 37) return !1;
1500
1500
  e.position++;
1501
1501
  const n = e.position;
@@ -1518,7 +1518,7 @@ function wo(e) {
1518
1518
  } else if (t === "TAG") {
1519
1519
  i.length !== 2 && x(e, "TAG directive accepts exactly two arguments");
1520
1520
  const [r, o] = i;
1521
- Ut.test(r) || x(e, "ill-formed tag handle (first argument) of the TAG directive"), Pt.call(e.tagHandlers, r) && x(e, `there is a previously declared suffix for "${r}" tag handle`), so.test(o) || x(e, "ill-formed tag prefix (second argument) of the TAG directive"), e.tagHandlers[r] = o, e.directives.push({
1521
+ qt.test(r) || x(e, "ill-formed tag handle (first argument) of the TAG directive"), Mt.call(e.tagHandlers, r) && x(e, `there is a previously declared suffix for "${r}" tag handle`), ao.test(o) || x(e, "ill-formed tag prefix (second argument) of the TAG directive"), e.tagHandlers[r] = o, e.directives.push({
1522
1522
  kind: "tag",
1523
1523
  handle: r,
1524
1524
  prefix: o
@@ -1526,13 +1526,13 @@ function wo(e) {
1526
1526
  }
1527
1527
  return !0;
1528
1528
  }
1529
- function To(e) {
1529
+ function wo(e) {
1530
1530
  e.directives = [], e.tagHandlers = /* @__PURE__ */ Object.create(null);
1531
1531
  let n = !1;
1532
- for (V(e, !0); wo(e); )
1532
+ for (V(e, !0); Co(e); )
1533
1533
  n = !0, V(e, !0);
1534
1534
  let t = !1, i = !1, r = !0;
1535
- if (e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 && Z(e.input.charCodeAt(e.position + 3))) {
1535
+ if (e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 && X(e.input.charCodeAt(e.position + 3))) {
1536
1536
  t = !0;
1537
1537
  const a = e.line;
1538
1538
  e.position += 3, V(e, !0), r = e.line > a;
@@ -1542,14 +1542,14 @@ function To(e) {
1542
1542
  e.position += 3, V(e, !0);
1543
1543
  return;
1544
1544
  }
1545
- if (uo(e, t, !1), ee(e, e.lineIndent - 1, Qe, !1, r, r) || Y(e), V(e, !0), e.position === e.lineStart && le(e) && (i = e.input.charCodeAt(e.position) === 46, i)) {
1545
+ if (so(e, t, !1), Z(e, e.lineIndent - 1, Qe, !1, r, r) || Y(e), V(e, !0), e.position === e.lineStart && le(e) && (i = e.input.charCodeAt(e.position) === 46, i)) {
1546
1546
  const a = e.line;
1547
1547
  e.position += 3, V(e, !0), e.line === a && e.position < e.length && x(e, "end of the stream or a document separator is expected");
1548
1548
  }
1549
1549
  const l = e.events[o];
1550
1550
  (l == null ? void 0 : l.type) === 1 && (l.explicitEnd = i), xe(e), !i && e.position < e.length && !(e.position === e.lineStart && le(e)) && x(e, "end of the stream or a document separator is expected");
1551
1551
  }
1552
- function _o(e, n) {
1552
+ function To(e, n) {
1553
1553
  const t = e.length, i = {
1554
1554
  ...Mn,
1555
1555
  ...n,
@@ -1567,29 +1567,29 @@ function _o(e, n) {
1567
1567
  }, r = e.indexOf("\0");
1568
1568
  for (r !== -1 && rn(e, r, "null byte is not allowed in input", i.filename), i.input.charCodeAt(i.position) === 65279 && i.position++; i.position < i.length && (V(i, !0), !(i.position >= i.length)); ) {
1569
1569
  const o = i.position;
1570
- To(i), i.position === o && x(i, "can not read a document");
1570
+ wo(i), i.position === o && x(i, "can not read a document");
1571
1571
  }
1572
1572
  return i.events;
1573
1573
  }
1574
- var Eo = {
1574
+ var _o = {
1575
1575
  ...Mn,
1576
1576
  ...Pn
1577
1577
  };
1578
- function Io(e, n = {}) {
1578
+ function Eo(e, n = {}) {
1579
1579
  const t = {
1580
- ...Eo,
1580
+ ..._o,
1581
1581
  ...n
1582
1582
  }, i = String(e), r = Object.keys(Mn), o = Object.keys(Pn);
1583
- return io(_o(i, kn(t, r)), {
1584
- ...kn(t, o),
1583
+ return to(To(i, Sn(t, r)), {
1584
+ ...Sn(t, o),
1585
1585
  source: i
1586
1586
  });
1587
1587
  }
1588
- function Dt(e, n) {
1589
- const t = Io(e, n);
1590
- if (t.length === 0) throw new Le("expected a document, but the input is empty");
1588
+ function wn(e, n) {
1589
+ const t = Eo(e, n);
1590
+ if (t.length === 0) throw new Fe("expected a document, but the input is empty");
1591
1591
  if (t.length === 1) return t[0];
1592
- throw new Le("expected a single document in the stream, but found more");
1592
+ throw new Fe("expected a single document in the stream, but found more");
1593
1593
  }
1594
1594
  var De = class {
1595
1595
  constructor() {
@@ -1601,7 +1601,7 @@ var De = class {
1601
1601
  L(this, "folded", !1);
1602
1602
  }
1603
1603
  }, de = Symbol("INVALID");
1604
- function No(e) {
1604
+ function Io(e) {
1605
1605
  const n = new Set([
1606
1606
  e.defaultScalarTag,
1607
1607
  e.defaultSequenceTag,
@@ -1622,7 +1622,7 @@ function No(e) {
1622
1622
  }))
1623
1623
  ];
1624
1624
  }
1625
- function $o(e, n) {
1625
+ function No(e, n) {
1626
1626
  for (let t = 0, i = e.representTypes.length; t < i; t += 1) {
1627
1627
  const { tag: r, implicitTag: o } = e.representTypes[t];
1628
1628
  if (r.identify && r.identify(n)) {
@@ -1636,7 +1636,7 @@ function $o(e, n) {
1636
1636
  }
1637
1637
  return null;
1638
1638
  }
1639
- function Te(e, n) {
1639
+ function _e(e, n) {
1640
1640
  if (!e.noRefs && n !== null && typeof n == "object") {
1641
1641
  const c = e.refs.get(n);
1642
1642
  if (c)
@@ -1647,12 +1647,12 @@ function Te(e, n) {
1647
1647
  anchor: c.anchor
1648
1648
  };
1649
1649
  }
1650
- const t = $o(e, n);
1650
+ const t = No(e, n);
1651
1651
  if (!t) {
1652
1652
  if (n === void 0 || e.skipInvalid) return de;
1653
- throw new Le(`unacceptable kind of an object to dump ${Object.prototype.toString.call(n)}`);
1653
+ throw new Fe(`unacceptable kind of an object to dump ${Object.prototype.toString.call(n)}`);
1654
1654
  }
1655
- const { tag: i, tagName: r, implicitTag: o } = t, l = o ? r : Ft(r);
1655
+ const { tag: i, tagName: r, implicitTag: o } = t, l = o ? r : Rt(r);
1656
1656
  if (i.nodeKind === "scalar") {
1657
1657
  const c = new De();
1658
1658
  return c.tagged = !o, {
@@ -1673,34 +1673,34 @@ function Te(e, n) {
1673
1673
  };
1674
1674
  e.noRefs || e.refs.set(n, m);
1675
1675
  for (let b = 0, p = c.length; b < p; b += 1) {
1676
- let h = Te(e, c[b]);
1677
- h === de && c[b] === void 0 && (h = Te(e, null)), h !== de && m.items.push(h);
1676
+ let h = _e(e, c[b]);
1677
+ h === de && c[b] === void 0 && (h = _e(e, null)), h !== de && m.items.push(h);
1678
1678
  }
1679
1679
  return m;
1680
1680
  }
1681
- const a = i.represent(n), u = new De();
1682
- u.tagged = !o;
1683
- const s = {
1681
+ const a = i.represent(n), s = new De();
1682
+ s.tagged = !o;
1683
+ const u = {
1684
1684
  kind: "mapping",
1685
1685
  tag: l,
1686
- style: u,
1686
+ style: s,
1687
1687
  items: []
1688
1688
  };
1689
- e.noRefs || e.refs.set(n, s);
1689
+ e.noRefs || e.refs.set(n, u);
1690
1690
  for (const [c, y] of a) {
1691
- const m = Te(e, c);
1691
+ const m = _e(e, c);
1692
1692
  if (m === de) continue;
1693
- const b = Te(e, y);
1694
- b !== de && s.items.push({
1693
+ const b = _e(e, y);
1694
+ b !== de && u.items.push({
1695
1695
  key: m,
1696
1696
  value: b
1697
1697
  });
1698
1698
  }
1699
- return s;
1699
+ return u;
1700
1700
  }
1701
- function Lo(e, n, t = {}) {
1702
- const i = Te({
1703
- representTypes: No(n),
1701
+ function $o(e, n, t = {}) {
1702
+ const i = _e({
1703
+ representTypes: Io(n),
1704
1704
  noRefs: t.noRefs ?? !1,
1705
1705
  skipInvalid: t.skipInvalid ?? !1,
1706
1706
  refs: /* @__PURE__ */ new Map(),
@@ -1711,10 +1711,10 @@ function Lo(e, n, t = {}) {
1711
1711
  directives: []
1712
1712
  }];
1713
1713
  }
1714
- var Fo = Symbol("visit:break"), Yt = Symbol("visit:skip");
1714
+ var Lo = Symbol("visit:break"), Yt = Symbol("visit:skip");
1715
1715
  function He(e, n, t) {
1716
1716
  const i = n(e, t);
1717
- if (i === Fo) return !0;
1717
+ if (i === Lo) return !0;
1718
1718
  if (i === Yt) return !1;
1719
1719
  const r = t.depth + 1;
1720
1720
  switch (e.kind) {
@@ -1740,14 +1740,14 @@ function He(e, n, t) {
1740
1740
  }
1741
1741
  return !1;
1742
1742
  }
1743
- function Oo(e, n) {
1743
+ function Fo(e, n) {
1744
1744
  for (const t of e) if (t.contents && He(t.contents, n, {
1745
1745
  depth: 0,
1746
1746
  parent: null,
1747
1747
  isKey: !1
1748
1748
  })) return;
1749
1749
  }
1750
- var Un = 65279, Ro = 9, he = 10, jt = 13, Po = 32, Mo = 33, Kt = 34, Tn = 35, Uo = 37, qo = 38, Ht = 39, Vo = 42, zt = 44, qn = 45, Fe = 58, Bo = 61, Do = 62, Gt = 63, Yo = 64, Wt = 91, Qt = 93, jo = 96, Jt = 123, Ko = 124, Xt = 125, q = {};
1750
+ var Un = 65279, Ro = 9, he = 10, jt = 13, Oo = 32, Po = 33, Kt = 34, Tn = 35, Mo = 37, Uo = 38, Ht = 39, qo = 42, zt = 44, qn = 45, Re = 58, Vo = 61, Bo = 62, Gt = 63, Do = 64, Wt = 91, Qt = 93, Yo = 96, Jt = 123, jo = 124, Xt = 125, q = {};
1751
1751
  q[0] = "\\0";
1752
1752
  q[7] = "\\a";
1753
1753
  q[8] = "\\b";
@@ -1777,10 +1777,10 @@ var Vn = {
1777
1777
  forceQuotes: !1,
1778
1778
  tagBeforeAnchor: !1
1779
1779
  };
1780
- function Ho(e) {
1781
- return e.style.tagged ? e.tag : Ft(e.tag);
1780
+ function Ko(e) {
1781
+ return e.style.tagged ? e.tag : Rt(e.tag);
1782
1782
  }
1783
- function zo(e) {
1783
+ function Ho(e) {
1784
1784
  const n = {
1785
1785
  ...Vn,
1786
1786
  ...e
@@ -1791,11 +1791,11 @@ function zo(e) {
1791
1791
  implicitResolvers: n.schema.implicitScalarTags
1792
1792
  };
1793
1793
  }
1794
- function Go(e) {
1794
+ function zo(e) {
1795
1795
  const n = e.toString(16).toUpperCase(), t = e <= 255 ? "x" : "u", i = e <= 255 ? 2 : 4;
1796
1796
  return `\\${t}${"0".repeat(i - n.length)}${n}`;
1797
1797
  }
1798
- function pt(e, n) {
1798
+ function mt(e, n) {
1799
1799
  const t = " ".repeat(n);
1800
1800
  let i = 0, r = "";
1801
1801
  const o = e.length;
@@ -1812,7 +1812,7 @@ function _n(e, n) {
1812
1812
  return `
1813
1813
  ${" ".repeat(e.indent * n)}`;
1814
1814
  }
1815
- function Wo(e, n) {
1815
+ function Go(e, n) {
1816
1816
  const t = e.indent * Math.max(1, n);
1817
1817
  return {
1818
1818
  indent: t,
@@ -1820,7 +1820,7 @@ function Wo(e, n) {
1820
1820
  lineWidth: e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - t)
1821
1821
  };
1822
1822
  }
1823
- function mt(e, n) {
1823
+ function ht(e, n) {
1824
1824
  for (let t = 0, i = e.implicitResolvers.length; t < i; t += 1) {
1825
1825
  const r = e.implicitResolvers[t];
1826
1826
  if (r.resolve(n, !1, r.tagName) !== T) return r.tagName;
@@ -1828,9 +1828,9 @@ function mt(e, n) {
1828
1828
  return e.defaultScalarTagName;
1829
1829
  }
1830
1830
  function ke(e) {
1831
- return e === Po || e === Ro;
1831
+ return e === Oo || e === Ro;
1832
1832
  }
1833
- function Qo(e) {
1833
+ function Wo(e) {
1834
1834
  const n = e.charCodeAt(0);
1835
1835
  if (n !== qn && n !== 46 || e.charCodeAt(1) !== n || e.charCodeAt(2) !== n) return !1;
1836
1836
  if (e.length === 3) return !0;
@@ -1840,27 +1840,27 @@ function Qo(e) {
1840
1840
  function Oe(e) {
1841
1841
  return e >= 32 && e <= 126 || e >= 161 && e <= 55295 && e !== 8232 && e !== 8233 || e >= 57344 && e <= 65533 && e !== Un || e >= 65536 && e <= 1114111;
1842
1842
  }
1843
- function ht(e) {
1843
+ function gt(e) {
1844
1844
  return Oe(e) && e !== Un && e !== jt && e !== he;
1845
1845
  }
1846
1846
  function En(e, n, t) {
1847
- const i = ht(e), r = i && !ke(e);
1848
- return (t ? i : i && e !== zt && e !== Wt && e !== Qt && e !== Jt && e !== Xt) && e !== Tn && !(n === Fe && !r) || ht(n) && !ke(n) && e === Tn || n === Fe && r;
1847
+ const i = gt(e), r = i && !ke(e);
1848
+ return (t ? i : i && e !== zt && e !== Wt && e !== Qt && e !== Jt && e !== Xt) && e !== Tn && !(n === Re && !r) || gt(n) && !ke(n) && e === Tn || n === Re && r;
1849
1849
  }
1850
- function Jo(e) {
1851
- return Oe(e) && e !== Un && !ke(e) && e !== qn && e !== Gt && e !== Fe && e !== zt && e !== Wt && e !== Qt && e !== Jt && e !== Xt && e !== Tn && e !== qo && e !== Vo && e !== Mo && e !== Ko && e !== Bo && e !== Do && e !== Ht && e !== Kt && e !== Uo && e !== Yo && e !== jo;
1850
+ function Qo(e) {
1851
+ return Oe(e) && e !== Un && !ke(e) && e !== qn && e !== Gt && e !== Re && e !== zt && e !== Wt && e !== Qt && e !== Jt && e !== Xt && e !== Tn && e !== Uo && e !== qo && e !== Po && e !== jo && e !== Vo && e !== Bo && e !== Ht && e !== Kt && e !== Mo && e !== Do && e !== Yo;
1852
1852
  }
1853
- function Xo(e, n) {
1853
+ function Jo(e, n) {
1854
1854
  const t = Se(e, 0);
1855
- if (Jo(t)) return !0;
1856
- if (e.length > 1 && (t === qn || t === Gt || t === Fe)) {
1855
+ if (Qo(t)) return !0;
1856
+ if (e.length > 1 && (t === qn || t === Gt || t === Re)) {
1857
1857
  const i = Se(e, 1);
1858
1858
  return !ke(i) && En(i, t, n);
1859
1859
  }
1860
1860
  return !1;
1861
1861
  }
1862
- function Zo(e) {
1863
- return !ke(e) && e !== Fe;
1862
+ function Xo(e) {
1863
+ return !ke(e) && e !== Re;
1864
1864
  }
1865
1865
  function Se(e, n) {
1866
1866
  const t = e.charCodeAt(n);
@@ -1870,45 +1870,45 @@ function Se(e, n) {
1870
1870
  function Zt(e) {
1871
1871
  return /^\n* /.test(e);
1872
1872
  }
1873
- var Re = 1, Ne = 2, Bn = 3, Dn = 4, re = 5;
1874
- function el(e, n, t, i, r, o) {
1873
+ var Pe = 1, $e = 2, Bn = 3, Dn = 4, re = 5;
1874
+ function Zo(e, n, t, i, r, o) {
1875
1875
  const { blockIndent: l, lineWidth: a } = t;
1876
- let u, s = 0, c = -1, y = !1, m = !1;
1876
+ let s, u = 0, c = -1, y = !1, m = !1;
1877
1877
  const b = a !== -1;
1878
- let p = -1, h = !Qo(n) && Xo(n, o) && Zo(Se(n, n.length - 1));
1879
- if (i || r) for (u = 0; u < n.length; s >= 65536 ? u += 2 : u++) {
1880
- if (s = Se(n, u), !Oe(s)) return re;
1881
- h = h && En(s, c, o), c = s;
1878
+ let p = -1, h = !Wo(n) && Jo(n, o) && Xo(Se(n, n.length - 1));
1879
+ if (i || r) for (s = 0; s < n.length; u >= 65536 ? s += 2 : s++) {
1880
+ if (u = Se(n, s), !Oe(u)) return re;
1881
+ h = h && En(u, c, o), c = u;
1882
1882
  }
1883
1883
  else {
1884
- for (u = 0; u < n.length; s >= 65536 ? u += 2 : u++) {
1885
- if (s = Se(n, u), s === he)
1886
- y = !0, b && (m = m || u - p - 1 > a && n[p + 1] !== " ", p = u);
1887
- else if (!Oe(s)) return re;
1888
- h = h && En(s, c, o), c = s;
1884
+ for (s = 0; s < n.length; u >= 65536 ? s += 2 : s++) {
1885
+ if (u = Se(n, s), u === he)
1886
+ y = !0, b && (m = m || s - p - 1 > a && n[p + 1] !== " ", p = s);
1887
+ else if (!Oe(u)) return re;
1888
+ h = h && En(u, c, o), c = u;
1889
1889
  }
1890
- m = m || b && u - p - 1 > a && n[p + 1] !== " ";
1890
+ m = m || b && s - p - 1 > a && n[p + 1] !== " ";
1891
1891
  }
1892
- return !y && !m ? h && !r ? Re : e.quoteStyle === "double" ? re : Ne : l > 9 && Zt(n) ? re : m ? Dn : Bn;
1892
+ return !y && !m ? h && !r ? Pe : e.quoteStyle === "double" ? re : $e : l > 9 && Zt(n) ? re : m ? Dn : Bn;
1893
1893
  }
1894
- function nl(e, n, t) {
1894
+ function el(e, n, t) {
1895
1895
  const { indent: i, blockIndent: r, lineWidth: o } = t;
1896
1896
  switch (n) {
1897
- case Re:
1898
- return yt(e, i);
1899
- case Ne:
1900
- return `'${yt(e, i).replace(/'/g, "''")}'`;
1897
+ case Pe:
1898
+ return vt(e, i);
1899
+ case $e:
1900
+ return `'${vt(e, i).replace(/'/g, "''")}'`;
1901
1901
  case Bn:
1902
- return "|" + gt(e, r) + vt(pt(e, i));
1902
+ return "|" + yt(e, r) + bt(mt(e, i));
1903
1903
  case Dn:
1904
- return ">" + gt(e, r) + vt(pt(il(e, o), i));
1904
+ return ">" + yt(e, r) + bt(mt(tl(e, o), i));
1905
1905
  case re:
1906
- return `"${rl(e)}"`;
1906
+ return `"${il(e)}"`;
1907
1907
  }
1908
1908
  }
1909
- function tl(e, n, t, i, r) {
1909
+ function nl(e, n, t, i, r) {
1910
1910
  const o = i || !r;
1911
- if (n.style.singleQuoted) return Ne;
1911
+ if (n.style.singleQuoted) return $e;
1912
1912
  if (n.style.doubleQuoted) return re;
1913
1913
  if (!o) {
1914
1914
  if (n.style.literal) return Bn;
@@ -1916,11 +1916,11 @@ function tl(e, n, t, i, r) {
1916
1916
  }
1917
1917
  const l = n.value;
1918
1918
  if (l.length === 0)
1919
- return n.style.tagged || mt(e, l) === n.tag ? Re : e.quoteStyle === "double" ? re : Ne;
1920
- const a = el(e, l, t, o, e.forceQuotes && !i, r);
1921
- return a === Re && !n.style.tagged && mt(e, l) !== n.tag ? e.quoteStyle === "double" ? re : Ne : a;
1919
+ return n.style.tagged || ht(e, l) === n.tag ? Pe : e.quoteStyle === "double" ? re : $e;
1920
+ const a = Zo(e, l, t, o, e.forceQuotes && !i, r);
1921
+ return a === Pe && !n.style.tagged && ht(e, l) !== n.tag ? e.quoteStyle === "double" ? re : $e : a;
1922
1922
  }
1923
- function gt(e, n) {
1923
+ function yt(e, n) {
1924
1924
  const t = Zt(e) ? String(n) : "", i = e[e.length - 1] === `
1925
1925
  `;
1926
1926
  return `${t}${i && (e[e.length - 2] === `
@@ -1928,7 +1928,7 @@ function gt(e, n) {
1928
1928
  `) ? "+" : i ? "" : "-"}
1929
1929
  `;
1930
1930
  }
1931
- function yt(e, n) {
1931
+ function vt(e, n) {
1932
1932
  let t = e.indexOf(`
1933
1933
  `);
1934
1934
  if (t === -1) return e;
@@ -1938,42 +1938,42 @@ function yt(e, n) {
1938
1938
  o.lastIndex = t;
1939
1939
  let l;
1940
1940
  for (; l = o.exec(e); ) {
1941
- const a = l[1].length, u = l[2];
1941
+ const a = l[1].length, s = l[2];
1942
1942
  r += `
1943
- `.repeat(a + 1) + i + u;
1943
+ `.repeat(a + 1) + i + s;
1944
1944
  }
1945
1945
  return r;
1946
1946
  }
1947
- function vt(e) {
1947
+ function bt(e) {
1948
1948
  return e[e.length - 1] === `
1949
1949
  ` ? e.slice(0, -1) : e;
1950
1950
  }
1951
- function il(e, n) {
1951
+ function tl(e, n) {
1952
1952
  const t = /(\n+)([^\n]*)/g;
1953
1953
  let i = e.indexOf(`
1954
1954
  `);
1955
1955
  i === -1 && (i = e.length), t.lastIndex = i;
1956
- let r = bt(e.slice(0, i), n), o = e[0] === `
1956
+ let r = xt(e.slice(0, i), n), o = e[0] === `
1957
1957
  ` || e[0] === " ", l, a;
1958
1958
  for (; a = t.exec(e); ) {
1959
- const u = a[1], s = a[2];
1960
- l = s[0] === " ", r += u + (!o && !l && s !== "" ? `
1961
- ` : "") + bt(s, n), o = l;
1959
+ const s = a[1], u = a[2];
1960
+ l = u[0] === " ", r += s + (!o && !l && u !== "" ? `
1961
+ ` : "") + xt(u, n), o = l;
1962
1962
  }
1963
1963
  return r;
1964
1964
  }
1965
- function bt(e, n) {
1965
+ function xt(e, n) {
1966
1966
  if (e === "" || e[0] === " ") return e;
1967
1967
  const t = / [^ ]/g;
1968
- let i, r = 0, o, l = 0, a = 0, u = "";
1968
+ let i, r = 0, o, l = 0, a = 0, s = "";
1969
1969
  for (; i = t.exec(e); )
1970
- a = i.index, a - r > n && (o = l > r ? l : a, u += `
1970
+ a = i.index, a - r > n && (o = l > r ? l : a, s += `
1971
1971
  ${e.slice(r, o)}`, r = o + 1), l = a;
1972
- return u += `
1973
- `, e.length - r > n && l > r ? u += `${e.slice(r, l)}
1974
- ${e.slice(l + 1)}` : u += e.slice(r), u.slice(1);
1972
+ return s += `
1973
+ `, e.length - r > n && l > r ? s += `${e.slice(r, l)}
1974
+ ${e.slice(l + 1)}` : s += e.slice(r), s.slice(1);
1975
1975
  }
1976
- function rl(e) {
1976
+ function il(e) {
1977
1977
  let n = "", t = 0;
1978
1978
  for (let i = 0; i < e.length; t >= 65536 ? i += 2 : i++) {
1979
1979
  t = Se(e, i);
@@ -1986,23 +1986,23 @@ function rl(e) {
1986
1986
  n += e[i], t >= 65536 && (n += e[i + 1]);
1987
1987
  continue;
1988
1988
  }
1989
- n += Go(t);
1989
+ n += zo(t);
1990
1990
  }
1991
1991
  return n;
1992
1992
  }
1993
- function ol(e, n, t) {
1993
+ function rl(e, n, t) {
1994
1994
  let i = "";
1995
1995
  for (let o = 0, l = t.items.length; o < l; o += 1) {
1996
- const a = ne(e, n, t.items[o], {});
1996
+ const a = ee(e, n, t.items[o], {});
1997
1997
  i !== "" && (i += `,${e.flowSkipCommaSpace ? "" : " "}`), i += a;
1998
1998
  }
1999
1999
  const r = e.flowBracketPadding && i !== "" ? " " : "";
2000
2000
  return `[${r}${i}${r}]`;
2001
2001
  }
2002
- function xt(e, n, t, i) {
2002
+ function St(e, n, t, i) {
2003
2003
  let r = "";
2004
2004
  for (let o = 0, l = t.items.length; o < l; o += 1) {
2005
- const a = ne(e, n + 1, t.items[o], {
2005
+ const a = ee(e, n + 1, t.items[o], {
2006
2006
  block: !0,
2007
2007
  compact: e.seqInlineFirst,
2008
2008
  isblockseq: !0
@@ -2011,16 +2011,16 @@ function xt(e, n, t, i) {
2011
2011
  }
2012
2012
  return r;
2013
2013
  }
2014
- function ll(e, n, t) {
2014
+ function ol(e, n, t) {
2015
2015
  let i = "";
2016
2016
  const r = ei(e, t.items);
2017
2017
  for (const { key: l, value: a } of r) {
2018
- let u = "";
2019
- i !== "" && (u += `,${e.flowSkipCommaSpace ? "" : " "}`);
2020
- const s = ne(e, n, l, { iskey: !0 }), c = s.length > 1024;
2021
- c ? u += "? " : e.quoteFlowKeys && (u += '"');
2022
- const y = ne(e, n, a, {}), m = e.flowSkipColonSpace || y === "" ? "" : " ";
2023
- u += `${s}${e.quoteFlowKeys && !c ? '"' : ""}:${m}${y}`, i += u;
2018
+ let s = "";
2019
+ i !== "" && (s += `,${e.flowSkipCommaSpace ? "" : " "}`);
2020
+ const u = ee(e, n, l, { iskey: !0 }), c = u.length > 1024;
2021
+ c ? s += "? " : e.quoteFlowKeys && (s += '"');
2022
+ const y = ee(e, n, a, {}), m = e.flowSkipColonSpace || y === "" ? "" : " ";
2023
+ s += `${u}${e.quoteFlowKeys && !c ? '"' : ""}:${m}${y}`, i += s;
2024
2024
  }
2025
2025
  const o = e.flowBracketPadding && i !== "" ? " " : "";
2026
2026
  return `{${o}${i}${o}}`;
@@ -2041,61 +2041,61 @@ function ei(e, n) {
2041
2041
  }
2042
2042
  return t;
2043
2043
  }
2044
- function al(e, n, t, i) {
2044
+ function ll(e, n, t, i) {
2045
2045
  let r = "";
2046
2046
  const o = ei(e, t.items);
2047
2047
  for (let l = 0, a = o.length; l < a; l += 1) {
2048
- let u = "";
2049
- (!i || r !== "") && (u += _n(e, n));
2050
- const { key: s, value: c } = o[l], y = (s.kind === "mapping" || s.kind === "sequence") && !s.style.flow && s.items.length !== 0 || s.kind === "scalar" && (s.style.literal || s.style.folded), m = y ? ne(e, n + 1, s, {
2048
+ let s = "";
2049
+ (!i || r !== "") && (s += _n(e, n));
2050
+ const { key: u, value: c } = o[l], y = (u.kind === "mapping" || u.kind === "sequence") && !u.style.flow && u.items.length !== 0 || u.kind === "scalar" && (u.style.literal || u.style.folded), m = y ? ee(e, n + 1, u, {
2051
2051
  block: !0,
2052
2052
  compact: !0,
2053
- isblockseq: !In(e, s, n + 1)
2054
- }) : ne(e, n + 1, s, {
2053
+ isblockseq: !In(e, u, n + 1)
2054
+ }) : ee(e, n + 1, u, {
2055
2055
  block: !0,
2056
2056
  compact: !0,
2057
2057
  iskey: !0
2058
- }), b = s.kind === "scalar" && s.value.indexOf(`
2058
+ }), b = u.kind === "scalar" && u.value.indexOf(`
2059
2059
  `) !== -1, p = y || b || m.length > 1024;
2060
- p && (m && he === m.charCodeAt(0) ? u += "?" : u += "? "), u += m, p && (u += _n(e, n));
2061
- const h = ne(e, n + 1, c, {
2060
+ p && (m && he === m.charCodeAt(0) ? s += "?" : s += "? "), s += m, p && (s += _n(e, n));
2061
+ const h = ee(e, n + 1, c, {
2062
2062
  block: !0,
2063
2063
  compact: p,
2064
2064
  isblockseq: p && !In(e, c, n + 1)
2065
- }), v = s.kind === "scalar" && s.value === "" && m !== "" && m.charCodeAt(m.length - 1) !== Ht && m.charCodeAt(m.length - 1) !== Kt, k = !p && (s.kind === "alias" || v) ? " " : "";
2066
- h === "" || he === h.charCodeAt(0) ? u += `${k}:` : u += `${k}: `, u += h, r += u;
2065
+ }), v = u.kind === "scalar" && u.value === "" && m !== "" && m.charCodeAt(m.length - 1) !== Ht && m.charCodeAt(m.length - 1) !== Kt, k = !p && (u.kind === "alias" || v) ? " " : "";
2066
+ h === "" || he === h.charCodeAt(0) ? s += `${k}:` : s += `${k}: `, s += h, r += s;
2067
2067
  }
2068
2068
  return r;
2069
2069
  }
2070
2070
  function In(e, n, t) {
2071
2071
  return n.style.tagged || n.anchor !== void 0 || e.indent < 2 && t > 0;
2072
2072
  }
2073
- function ne(e, n, t, i) {
2073
+ function ee(e, n, t, i) {
2074
2074
  if (t.kind === "alias") return `*${t.anchor}`;
2075
2075
  const { block: r = !1, iskey: o = !1, isblockseq: l = !1 } = i;
2076
2076
  let a = i.compact ?? !1;
2077
- const u = t.anchor !== void 0;
2077
+ const s = t.anchor !== void 0;
2078
2078
  In(e, t, n) && (a = !1);
2079
- let s, c = t.style.tagged;
2079
+ let u, c = t.style.tagged;
2080
2080
  const y = r && (t.kind === "mapping" || t.kind === "sequence") && !t.style.flow && t.items.length !== 0;
2081
- if (t.kind === "mapping") y ? s = al(e, n, t, a) : s = ll(e, n, t);
2082
- else if (t.kind === "sequence") y ? e.seqNoIndent && !l && n > 0 ? s = xt(e, n - 1, t, a) : s = xt(e, n, t, a) : s = ol(e, n, t);
2081
+ if (t.kind === "mapping") y ? u = ll(e, n, t, a) : u = ol(e, n, t);
2082
+ else if (t.kind === "sequence") y ? e.seqNoIndent && !l && n > 0 ? u = St(e, n - 1, t, a) : u = St(e, n, t, a) : u = rl(e, n, t);
2083
2083
  else {
2084
- const m = Wo(e, n), b = tl(e, t, m, o, r);
2085
- s = nl(t.value, b, m), c = t.style.tagged || b !== Re && t.tag !== e.defaultScalarTagName;
2084
+ const m = Go(e, n), b = nl(e, t, m, o, r);
2085
+ u = el(t.value, b, m), c = t.style.tagged || b !== Pe && t.tag !== e.defaultScalarTagName;
2086
2086
  }
2087
- if (y && a && n > 0 && e.indent > 2 && (s = `${" ".repeat(e.indent - 2)}${s}`), c || u) {
2088
- const m = [], b = c ? Ho(t) : null, p = u ? `&${t.anchor}` : null;
2087
+ if (y && a && n > 0 && e.indent > 2 && (u = `${" ".repeat(e.indent - 2)}${u}`), c || s) {
2088
+ const m = [], b = c ? Ko(t) : null, p = s ? `&${t.anchor}` : null;
2089
2089
  e.tagBeforeAnchor ? (b !== null && m.push(b), p !== null && m.push(p)) : (p !== null && m.push(p), b !== null && m.push(b));
2090
- const h = s === "" || s.charCodeAt(0) === he ? "" : " ";
2091
- s = `${m.join(" ")}${h}${s}`;
2090
+ const h = u === "" || u.charCodeAt(0) === he ? "" : " ";
2091
+ u = `${m.join(" ")}${h}${u}`;
2092
2092
  }
2093
- return s;
2093
+ return u;
2094
2094
  }
2095
- function sl(e) {
2095
+ function al(e) {
2096
2096
  return (e.kind === "sequence" || e.kind === "mapping") && !e.style.flow && e.items.length !== 0 && !e.style.tagged && e.anchor === void 0;
2097
2097
  }
2098
- function ul(e) {
2098
+ function sl(e) {
2099
2099
  let n = e;
2100
2100
  for (; (n.kind === "sequence" || n.kind === "mapping") && !n.style.flow && n.items.length !== 0; ) n = n.kind === "sequence" ? n.items[n.items.length - 1] : n.items[n.items.length - 1].value;
2101
2101
  if (n.kind !== "scalar" || !(n.style.literal || n.style.folded)) return !1;
@@ -2105,7 +2105,7 @@ function ul(e) {
2105
2105
  `) || t === `
2106
2106
  `;
2107
2107
  }
2108
- function cl(e) {
2108
+ function ul(e) {
2109
2109
  let n = "";
2110
2110
  for (const t of e.directives) {
2111
2111
  if (t.kind === "yaml") {
@@ -2119,47 +2119,47 @@ function cl(e) {
2119
2119
  }
2120
2120
  return n;
2121
2121
  }
2122
- function fl(e, n) {
2123
- const t = zo(n);
2122
+ function cl(e, n) {
2123
+ const t = Ho(n);
2124
2124
  let i = "", r = !1;
2125
2125
  for (let o = 0; o < e.length; o += 1) {
2126
- const l = e[o], a = cl(l), u = a !== "", s = l.explicitStart || u || o > 0 && !r;
2126
+ const l = e[o], a = ul(l), s = a !== "", u = l.explicitStart || s || o > 0 && !r;
2127
2127
  if (i += a, l.contents === null)
2128
- s && (i += `---
2128
+ u && (i += `---
2129
2129
  `);
2130
- else if (s) {
2131
- const c = ne(t, 0, l.contents, {
2130
+ else if (u) {
2131
+ const c = ee(t, 0, l.contents, {
2132
2132
  block: !0,
2133
2133
  compact: !0
2134
- }), y = c === "" ? "" : u || sl(l.contents) ? `
2134
+ }), y = c === "" ? "" : s || al(l.contents) ? `
2135
2135
  ` : " ";
2136
2136
  i += `---${y}${c}
2137
2137
  `;
2138
- } else i += ne(t, 0, l.contents, {
2138
+ } else i += ee(t, 0, l.contents, {
2139
2139
  block: !0,
2140
2140
  compact: !0
2141
2141
  }) + `
2142
2142
  `;
2143
- r = l.explicitEnd || l.contents !== null && ul(l.contents), r && (i += `...
2143
+ r = l.explicitEnd || l.contents !== null && sl(l.contents), r && (i += `...
2144
2144
  `);
2145
2145
  }
2146
2146
  return i;
2147
2147
  }
2148
- var dl = Vr.withTags({
2149
- ...xn,
2148
+ var fl = qr.withTags({
2149
+ ...bn,
2150
2150
  resolve: (e, n, t) => {
2151
- const i = xn.resolve(e, n, t);
2152
- return i === T ? _t.resolve(e, n, t) : i;
2151
+ const i = bn.resolve(e, n, t);
2152
+ return i === T ? Et.resolve(e, n, t) : i;
2153
2153
  }
2154
2154
  }, {
2155
- ...Sn,
2155
+ ...xn,
2156
2156
  resolve: (e, n, t) => {
2157
- const i = Sn.resolve(e, n, t);
2158
- return i === T ? Et.resolve(e, n, t) : i;
2157
+ const i = xn.resolve(e, n, t);
2158
+ return i === T ? It.resolve(e, n, t) : i;
2159
2159
  }
2160
- }), pl = {
2160
+ }), dl = {
2161
2161
  ...Vn,
2162
- schema: dl,
2162
+ schema: fl,
2163
2163
  skipInvalid: !1,
2164
2164
  noRefs: !1,
2165
2165
  flowLevel: -1,
@@ -2168,21 +2168,21 @@ var dl = Vr.withTags({
2168
2168
  };
2169
2169
  function ni(e, n = {}) {
2170
2170
  const t = {
2171
- ...pl,
2171
+ ...dl,
2172
2172
  ...n
2173
- }, i = Lo(e, t.schema, {
2173
+ }, i = $o(e, t.schema, {
2174
2174
  noRefs: t.noRefs,
2175
2175
  skipInvalid: t.skipInvalid
2176
2176
  });
2177
- return t.flowLevel >= 0 && Oo(i, (r, o) => {
2177
+ return t.flowLevel >= 0 && Fo(i, (r, o) => {
2178
2178
  if (!(o.depth < t.flowLevel))
2179
2179
  return r.style.flow = !0, Yt;
2180
- }), t.transform(i), fl(i, {
2181
- ...kn(t, Object.keys(Vn)),
2180
+ }), t.transform(i), cl(i, {
2181
+ ...Sn(t, Object.keys(Vn)),
2182
2182
  schema: t.schema
2183
2183
  });
2184
2184
  }
2185
- const ml = {}, hl = {
2185
+ const pl = {}, ml = {
2186
2186
  xmlns: "http://www.w3.org/2000/svg",
2187
2187
  width: "24",
2188
2188
  height: "24",
@@ -2194,14 +2194,14 @@ const ml = {}, hl = {
2194
2194
  "stroke-linejoin": "round",
2195
2195
  class: "lucide lucide-layers"
2196
2196
  };
2197
- function gl(e, n) {
2198
- return _(), M("svg", hl, [...n[0] || (n[0] = [
2197
+ function hl(e, n) {
2198
+ return _(), M("svg", ml, [...n[0] || (n[0] = [
2199
2199
  g("path", { d: "m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" }, null, -1),
2200
2200
  g("path", { d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" }, null, -1),
2201
2201
  g("path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" }, null, -1)
2202
2202
  ])]);
2203
2203
  }
2204
- const yl = /* @__PURE__ */ Xe(ml, [["render", gl]]), vl = {}, bl = {
2204
+ const gl = /* @__PURE__ */ Xe(pl, [["render", hl]]), yl = {}, vl = {
2205
2205
  xmlns: "http://www.w3.org/2000/svg",
2206
2206
  width: "24",
2207
2207
  height: "24",
@@ -2213,14 +2213,14 @@ const yl = /* @__PURE__ */ Xe(ml, [["render", gl]]), vl = {}, bl = {
2213
2213
  "stroke-linejoin": "round",
2214
2214
  class: "lucide lucide-map"
2215
2215
  };
2216
- function xl(e, n) {
2217
- return _(), M("svg", bl, [...n[0] || (n[0] = [
2216
+ function bl(e, n) {
2217
+ return _(), M("svg", vl, [...n[0] || (n[0] = [
2218
2218
  g("path", { d: "M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z" }, null, -1),
2219
2219
  g("path", { d: "M15 5.764v15" }, null, -1),
2220
2220
  g("path", { d: "M9 3.236v15" }, null, -1)
2221
2221
  ])]);
2222
2222
  }
2223
- const Sl = /* @__PURE__ */ Xe(vl, [["render", xl]]), kl = {}, Al = {
2223
+ const xl = /* @__PURE__ */ Xe(yl, [["render", bl]]), Sl = {}, kl = {
2224
2224
  xmlns: "http://www.w3.org/2000/svg",
2225
2225
  width: "24",
2226
2226
  height: "24",
@@ -2232,34 +2232,34 @@ const Sl = /* @__PURE__ */ Xe(vl, [["render", xl]]), kl = {}, Al = {
2232
2232
  "stroke-linejoin": "round",
2233
2233
  class: "lucide lucide-filter"
2234
2234
  };
2235
- function Cl(e, n) {
2236
- return _(), M("svg", Al, [...n[0] || (n[0] = [
2235
+ function Al(e, n) {
2236
+ return _(), M("svg", kl, [...n[0] || (n[0] = [
2237
2237
  g("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1)
2238
2238
  ])]);
2239
2239
  }
2240
- const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-col flex-1 overflow-hidden" }, _l = { class: "flex justify-end gap-2" }, El = ["href"], Il = { class: "flex flex-col flex-1 overflow-hidden" }, Nl = { class: "bg-white rounded-xl border border-gray-200 shadow-sm overflow-hidden mt-3 flex flex-col flex-1" }, $l = { class: "relative bg-gradient-to-br from-slate-50 to-white flex-1" }, Ll = /* @__PURE__ */ ae({
2240
+ const Cl = /* @__PURE__ */ Xe(Sl, [["render", Al]]), wl = { class: "flex flex-col flex-1 overflow-hidden" }, Tl = { class: "flex justify-end gap-2" }, _l = ["href"], El = { class: "flex flex-col flex-1 overflow-hidden" }, Il = { class: "bg-white rounded-xl border border-gray-200 shadow-sm overflow-hidden mt-3 flex flex-col flex-1" }, Nl = { class: "relative bg-gradient-to-br from-slate-50 to-white flex-1" }, $l = /* @__PURE__ */ ae({
2241
2241
  __name: "vs-tab-style",
2242
2242
  props: {
2243
2243
  token: {},
2244
2244
  styleYaml: {},
2245
2245
  styleText: {}
2246
2246
  },
2247
- emits: ["update:style-yaml", "update:style-text", "update"],
2247
+ emits: ["update:style-yaml", "update:style-text", "save"],
2248
2248
  setup(e, { emit: n }) {
2249
2249
  const t = e, i = n, r = E("");
2250
2250
  $(
2251
2251
  () => t.styleText,
2252
- (u) => {
2253
- const s = u ?? "";
2254
- r.value !== s && (r.value = s);
2252
+ (s) => {
2253
+ const u = s ?? "";
2254
+ r.value !== u && (r.value = u);
2255
2255
  },
2256
2256
  { immediate: !0 }
2257
- ), $(r, async (u) => {
2257
+ ), $(r, async (s) => {
2258
2258
  var c, y;
2259
- const s = u ?? "";
2260
- t.styleText !== s && i("update:style-text", s);
2259
+ const u = s ?? "";
2260
+ t.styleText !== u && i("update:style-text", u);
2261
2261
  try {
2262
- const m = u ? Dt(u) : null;
2262
+ const m = s ? wn(s) : null;
2263
2263
  if ((c = m == null ? void 0 : m.colorAttr) != null && c.length && ((y = t.styleYaml) == null ? void 0 : y.colorAttr) !== m.colorAttr) {
2264
2264
  const b = await o(m.colorAttr);
2265
2265
  m.colors = b.reduce(
@@ -2280,8 +2280,8 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2280
2280
  t.styleYaml !== null && i("update:style-yaml", null);
2281
2281
  }
2282
2282
  });
2283
- async function o(u) {
2284
- return (await fetch(`/api/gis-service/${t.token}/${u}`).then(
2283
+ async function o(s) {
2284
+ return (await fetch(`/api/gis-service/${t.token}/${s}`).then(
2285
2285
  (c) => c.json()
2286
2286
  )).rows;
2287
2287
  }
@@ -2296,33 +2296,34 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2296
2296
  "#fccde5",
2297
2297
  "#d9d9d9",
2298
2298
  "#bc80bd"
2299
- ], a = async () => {
2300
- const u = t.styleYaml ? JSON.stringify(t.styleYaml) : t.styleText ? t.styleText : "null";
2301
- try {
2302
- await fetch(`/api/gis-service/${t.token}`, {
2303
- method: "PUT",
2304
- headers: { "Content-Type": "application/json" },
2305
- body: JSON.stringify({ style: u })
2306
- }), i("update"), X({ type: "success", title: "Успіх", message: "Стилі збережено" });
2307
- } catch (s) {
2308
- X({
2309
- type: "error",
2310
- title: "Помилка",
2311
- message: "Не вдалося зберегти стилі"
2312
- }), console.log(s);
2313
- }
2314
- };
2315
- return (u, s) => (_(), M("div", Tl, [
2316
- g("div", _l, [
2299
+ ];
2300
+ function a() {
2301
+ let s = t.styleYaml;
2302
+ if (!s && r.value)
2303
+ try {
2304
+ const u = wn(r.value);
2305
+ s = u && typeof u == "object" ? u : null;
2306
+ } catch {
2307
+ te({
2308
+ type: "error",
2309
+ title: "Помилка",
2310
+ message: "Не вдалося зберегти стилі"
2311
+ });
2312
+ return;
2313
+ }
2314
+ i("save", s && typeof s == "object" ? s : null);
2315
+ }
2316
+ return (s, u) => (_(), M("div", wl, [
2317
+ g("div", Tl, [
2317
2318
  g("a", {
2318
2319
  target: "_blank",
2319
2320
  href: "/api/gis-service/" + t.token + "/col",
2320
2321
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed"
2321
- }, " Атрибути ", 8, El),
2322
+ }, " Атрибути ", 8, _l),
2322
2323
  g("button", {
2323
2324
  onClick: a,
2324
2325
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed"
2325
- }, [...s[1] || (s[1] = [
2326
+ }, [...u[1] || (u[1] = [
2326
2327
  g("svg", {
2327
2328
  xmlns: "http://www.w3.org/2000/svg",
2328
2329
  width: "24",
@@ -2339,18 +2340,18 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2339
2340
  g("path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7" }),
2340
2341
  g("path", { d: "M7 3v4a1 1 0 0 0 1 1h7" })
2341
2342
  ], -1),
2342
- mi(" Зберегти стилі ", -1)
2343
+ pi(" Зберегти стилі ", -1)
2343
2344
  ])])
2344
2345
  ]),
2345
- g("div", Il, [
2346
- g("div", Nl, [
2347
- s[2] || (s[2] = g("div", { class: "bg-gradient-to-r from-gray-50 to-gray-100 px-4 py-2 border-b border-gray-200 flex items-center justify-between" }, [
2346
+ g("div", El, [
2347
+ g("div", Il, [
2348
+ u[2] || (u[2] = g("div", { class: "bg-gradient-to-r from-gray-50 to-gray-100 px-4 py-2 border-b border-gray-200 flex items-center justify-between" }, [
2348
2349
  g("div", { class: "text-xs text-gray-400" }, "YAML")
2349
2350
  ], -1)),
2350
- g("div", $l, [
2351
- D(Tt, {
2351
+ g("div", Nl, [
2352
+ D(_t, {
2352
2353
  modelValue: r.value,
2353
- "onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
2354
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => r.value = c),
2354
2355
  language: "yaml",
2355
2356
  theme: "vs-light"
2356
2357
  }, null, 8, ["modelValue"])
@@ -2359,7 +2360,7 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2359
2360
  ])
2360
2361
  ]));
2361
2362
  }
2362
- }), Fl = { class: "flex flex-col flex-1 min-h-0" }, Ol = { class: "flex flex-col flex-1 min-h-0" }, Rl = /* @__PURE__ */ ae({
2363
+ }), Ll = { class: "flex flex-col flex-1 min-h-0" }, Fl = { class: "flex flex-col flex-1 min-h-0" }, Rl = /* @__PURE__ */ ae({
2363
2364
  __name: "vs-tab-popup",
2364
2365
  props: {
2365
2366
  token: {},
@@ -2377,12 +2378,12 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2377
2378
  const h = Ge(t.token);
2378
2379
  h && (h.popup = p), i("update:columns", p);
2379
2380
  });
2380
- const o = E("list"), l = E(!1), a = E([]), u = [
2381
+ const o = E("list"), l = E(!1), a = E([]), s = [
2381
2382
  { key: "name", label: "Назва", type: "main" }
2382
2383
  // { key: "ua", label: "UA" },
2383
2384
  // { key: "format", label: "Format" },
2384
2385
  // { key: "meta", label: "Meta" },
2385
- ], s = {
2386
+ ], u = {
2386
2387
  name: { type: "text", label: "Назва", disabled: !0, validators: ["required"] },
2387
2388
  label: { type: "text", label: "Найменування", validators: ["required"] },
2388
2389
  // format: { type: "text", label: "Format", disabled: true, hidden: true },
@@ -2410,7 +2411,7 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2410
2411
  var k;
2411
2412
  const p = [...r.value], h = ((k = t.fields) == null ? void 0 : k.filter((C) => a.value.includes(C.name))) || [], v = $n(p, h, {
2412
2413
  selectedKeys: a.value,
2413
- resolveKey: (C) => $e(C)
2414
+ resolveKey: (C) => Le(C)
2414
2415
  });
2415
2416
  r.value = v, l.value = !1, a.value = [];
2416
2417
  }
@@ -2421,7 +2422,7 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2421
2422
  let p = [];
2422
2423
  o.value === "all" ? p = t.fields || [] : o.value === "none" ? p = [] : p = r.value, p.filter((h) => !h.label).forEach((h) => h.label = h.ua), i("save", p);
2423
2424
  }
2424
- return (p, h) => (_(), M("div", Fl, [
2425
+ return (p, h) => (_(), M("div", Ll, [
2425
2426
  g("div", { class: "flex justify-between mb-3 gap-2" }, [
2426
2427
  g("button", {
2427
2428
  onClick: c,
@@ -2432,13 +2433,13 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2432
2433
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed"
2433
2434
  }, " Зберегти попап ")
2434
2435
  ]),
2435
- g("div", Ol, [
2436
+ g("div", Fl, [
2436
2437
  o.value === "list" ? (_(), P(Ze, {
2437
2438
  key: 0,
2438
2439
  modelValue: r.value,
2439
2440
  "onUpdate:modelValue": h[0] || (h[0] = (v) => r.value = v),
2440
- "columns-scheme": u,
2441
- "form-scheme": s,
2441
+ "columns-scheme": s,
2442
+ "form-scheme": u,
2442
2443
  "main-col-width": "250px",
2443
2444
  "add-button": !1
2444
2445
  }, null, 8, ["modelValue"])) : W("", !0)
@@ -2456,7 +2457,7 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2456
2457
  }, null, 8, ["visible", "selection", "fields"])
2457
2458
  ]));
2458
2459
  }
2459
- }), Pl = { class: "flex flex-col flex-1 min-h-0" }, Ml = { class: "flex justify-between mb-3 gap-2" }, Ul = { class: "p-4 space-y-4 text-sm" }, ql = { class: "space-y-1" }, Vl = { class: "space-y-1" }, Bl = { class: "flex items-center gap-3" }, Dl = { class: "flex justify-end gap-2 p-4 border-t" }, Yl = /* @__PURE__ */ ae({
2460
+ }), Ol = { class: "flex flex-col flex-1 min-h-0" }, Pl = { class: "flex justify-between mb-3 gap-2" }, Ml = { class: "p-4 space-y-4 text-sm" }, Ul = { class: "space-y-1" }, ql = { class: "space-y-1" }, Vl = { class: "flex items-center gap-3" }, Bl = { class: "flex justify-end gap-2 p-4 border-t" }, Dl = /* @__PURE__ */ ae({
2460
2461
  __name: "vs-tab-legend",
2461
2462
  props: {
2462
2463
  mapInfo: {},
@@ -2477,12 +2478,12 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2477
2478
  const o = E(!1), l = E({
2478
2479
  name: "",
2479
2480
  color: "#2E86DE"
2480
- }), a = hi(
2481
+ }), a = mi(
2481
2482
  () => import("@opengis/core").then((p) => p.VsModal)
2482
- ), u = [
2483
+ ), s = [
2483
2484
  { key: "name", label: "Назва" },
2484
2485
  { key: "color", label: "Колір", type: "color" }
2485
- ], s = {
2486
+ ], u = {
2486
2487
  name: { type: "text", label: "Назва", validators: ["required"] },
2487
2488
  color: { type: "color", label: "Колір", validators: ["required"] }
2488
2489
  };
@@ -2496,7 +2497,7 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2496
2497
  var k, C;
2497
2498
  const p = (k = l.value.name) == null ? void 0 : k.trim();
2498
2499
  if (!p) {
2499
- X({
2500
+ te({
2500
2501
  type: "warning",
2501
2502
  title: "Перевірка",
2502
2503
  message: "Вкажіть назву елементу легенди"
@@ -2505,9 +2506,9 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2505
2506
  }
2506
2507
  const h = ((C = l.value.color) == null ? void 0 : C.trim()) || "#2E86DE";
2507
2508
  if (r.value.some(
2508
- (R) => $e(R) === $e({ name: p })
2509
+ (O) => Le(O) === Le({ name: p })
2509
2510
  )) {
2510
- X({
2511
+ te({
2511
2512
  type: "warning",
2512
2513
  title: "Дубль",
2513
2514
  message: "Такий елемент легенди вже існує"
@@ -2519,8 +2520,8 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2519
2520
  function b() {
2520
2521
  i("save", r.value);
2521
2522
  }
2522
- return (p, h) => (_(), M("div", Pl, [
2523
- g("div", Ml, [
2523
+ return (p, h) => (_(), M("div", Ol, [
2524
+ g("div", Pl, [
2524
2525
  g("button", {
2525
2526
  onClick: h[0] || (h[0] = (v) => o.value = !0),
2526
2527
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed"
@@ -2533,8 +2534,8 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2533
2534
  D(Ze, {
2534
2535
  modelValue: r.value,
2535
2536
  "onUpdate:modelValue": h[1] || (h[1] = (v) => r.value = v),
2536
- "columns-scheme": u,
2537
- "form-scheme": s,
2537
+ "columns-scheme": s,
2538
+ "form-scheme": u,
2538
2539
  "main-col-width": "250px",
2539
2540
  "add-button": !1
2540
2541
  }, null, 8, ["modelValue"]),
@@ -2544,8 +2545,8 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2544
2545
  title: "Новий елемент легенди",
2545
2546
  "onUpdate:visible": c
2546
2547
  }, {
2547
- footer: bn(() => [
2548
- g("div", Dl, [
2548
+ footer: vn(() => [
2549
+ g("div", Bl, [
2549
2550
  g("button", {
2550
2551
  type: "button",
2551
2552
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed",
@@ -2558,36 +2559,36 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2558
2559
  }, " Додати ")
2559
2560
  ])
2560
2561
  ]),
2561
- default: bn(() => [
2562
- g("div", Ul, [
2563
- g("div", ql, [
2562
+ default: vn(() => [
2563
+ g("div", Ml, [
2564
+ g("div", Ul, [
2564
2565
  h[6] || (h[6] = g("label", { class: "block text-xs font-medium text-gray-500 uppercase tracking-wide" }, " Назва ", -1)),
2565
- fn(g("input", {
2566
+ cn(g("input", {
2566
2567
  "onUpdate:modelValue": h[2] || (h[2] = (v) => l.value.name = v),
2567
2568
  type: "text",
2568
2569
  class: "w-full rounded-md border border-gray-300 px-3 py-2 text-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200",
2569
2570
  placeholder: "Наприклад, Житлова зона"
2570
2571
  }, null, 512), [
2571
- [dn, l.value.name]
2572
+ [fn, l.value.name]
2572
2573
  ])
2573
2574
  ]),
2574
- g("div", Vl, [
2575
+ g("div", ql, [
2575
2576
  h[7] || (h[7] = g("label", { class: "block text-xs font-medium text-gray-500 uppercase tracking-wide" }, " Колір ", -1)),
2576
- g("div", Bl, [
2577
- fn(g("input", {
2577
+ g("div", Vl, [
2578
+ cn(g("input", {
2578
2579
  "onUpdate:modelValue": h[3] || (h[3] = (v) => l.value.color = v),
2579
2580
  type: "color",
2580
2581
  class: "h-10 w-16 rounded border border-gray-300"
2581
2582
  }, null, 512), [
2582
- [dn, l.value.color]
2583
+ [fn, l.value.color]
2583
2584
  ]),
2584
- fn(g("input", {
2585
+ cn(g("input", {
2585
2586
  "onUpdate:modelValue": h[4] || (h[4] = (v) => l.value.color = v),
2586
2587
  type: "text",
2587
2588
  class: "flex-1 rounded-md border border-gray-300 px-3 py-2 text-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200",
2588
2589
  placeholder: "#FFFFFF"
2589
2590
  }, null, 512), [
2590
- [dn, l.value.color]
2591
+ [fn, l.value.color]
2591
2592
  ])
2592
2593
  ])
2593
2594
  ])
@@ -2597,7 +2598,7 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2597
2598
  }, 8, ["visible"])
2598
2599
  ]));
2599
2600
  }
2600
- }), jl = { class: "space-y-3 bg-gradient-to-br from-sky-50 to-blue-50 p-4 rounded-xl border border-sky-100 shadow-sm" }, Kl = ["onClick"], Hl = ["aria-checked", "value"], zl = { key: 0 }, Gl = /* @__PURE__ */ ae({
2601
+ }), Yl = { class: "space-y-3 bg-gradient-to-br from-sky-50 to-blue-50 p-4 rounded-xl border border-sky-100 shadow-sm" }, jl = ["onClick"], Kl = ["aria-checked", "value"], Hl = { key: 0 }, zl = /* @__PURE__ */ ae({
2601
2602
  __name: "view-mode-toggle",
2602
2603
  props: {
2603
2604
  modelValue: {},
@@ -2611,27 +2612,27 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2611
2612
  { value: "list", label: "List" },
2612
2613
  { value: "none", label: "None" }
2613
2614
  ];
2614
- return (l, a) => (_(), M("div", jl, [
2615
+ return (l, a) => (_(), M("div", Yl, [
2615
2616
  a[1] || (a[1] = g("label", { class: "text-sm font-medium text-gray-600" }, "Режим відображення", -1)),
2616
2617
  g("div", {
2617
2618
  role: "radiogroup",
2618
- class: _e(["grid gap-2", `grid-cols-${ze(o).length}`])
2619
+ class: Ee(["grid gap-2", `grid-cols-${ze(o).length}`])
2619
2620
  }, [
2620
- (_(!0), M(kt, null, At(ze(o), (u) => (_(), M("div", {
2621
- key: u.value,
2622
- onClick: (s) => r(u.value),
2623
- class: _e(["flex items-center justify-center space-x-2 rounded-lg p-2 border transition-all duration-300 cursor-pointer", [
2624
- e.modelValue === u.value ? "bg-gradient-to-r from-sky-200 to-blue-200 border-transparent shadow-sm" : "bg-white border-gray-100 hover:border-sky-200 hover:shadow-sm"
2621
+ (_(!0), M(At, null, Ct(ze(o), (s) => (_(), M("div", {
2622
+ key: s.value,
2623
+ onClick: (u) => r(s.value),
2624
+ class: Ee(["flex items-center justify-center space-x-2 rounded-lg p-2 border transition-all duration-300 cursor-pointer", [
2625
+ e.modelValue === s.value ? "bg-gradient-to-r from-sky-200 to-blue-200 border-transparent shadow-sm" : "bg-white border-gray-100 hover:border-sky-200 hover:shadow-sm"
2625
2626
  ]])
2626
2627
  }, [
2627
2628
  g("button", {
2628
2629
  type: "button",
2629
2630
  role: "radio",
2630
- "aria-checked": e.modelValue === u.value,
2631
- value: u.value,
2631
+ "aria-checked": e.modelValue === s.value,
2632
+ value: s.value,
2632
2633
  class: "aspect-square rounded-full border border-primary h-4 w-4 flex items-center justify-center text-sky-500"
2633
2634
  }, [
2634
- e.modelValue === u.value ? (_(), M("span", zl, [...a[0] || (a[0] = [
2635
+ e.modelValue === s.value ? (_(), M("span", Hl, [...a[0] || (a[0] = [
2635
2636
  g("svg", {
2636
2637
  xmlns: "http://www.w3.org/2000/svg",
2637
2638
  viewBox: "0 0 24 24",
@@ -2649,15 +2650,15 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2649
2650
  })
2650
2651
  ], -1)
2651
2652
  ])])) : W("", !0)
2652
- ], 8, Hl),
2653
+ ], 8, Kl),
2653
2654
  g("label", {
2654
- class: _e(["text-xs font-medium cursor-pointer", e.modelValue === u.value ? "text-gray-700" : "text-gray-600"])
2655
- }, fe(u.label), 3)
2656
- ], 10, Kl))), 128))
2655
+ class: Ee(["text-xs font-medium cursor-pointer", e.modelValue === s.value ? "text-gray-700" : "text-gray-600"])
2656
+ }, fe(s.label), 3)
2657
+ ], 10, jl))), 128))
2657
2658
  ], 2)
2658
2659
  ]));
2659
2660
  }
2660
- }), Wl = { class: "flex flex-col flex-1 min-h-0" }, Ql = { class: "flex flex-col flex-1 min-h-0" }, Jl = /* @__PURE__ */ ae({
2661
+ }), Gl = { class: "flex flex-col flex-1 min-h-0" }, Wl = { class: "flex flex-col flex-1 min-h-0" }, Ql = /* @__PURE__ */ ae({
2661
2662
  __name: "vs-tab-card",
2662
2663
  props: {
2663
2664
  fields: {},
@@ -2688,7 +2689,7 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2688
2689
  },
2689
2690
  { immediate: !0 }
2690
2691
  );
2691
- const a = E(!1), u = E([]), s = [
2692
+ const a = E(!1), s = E([]), u = [
2692
2693
  { key: "name", label: "Name", type: "main" }
2693
2694
  // { key: "ua", label: "UA" },
2694
2695
  // { key: 'format', label: 'Format' },
@@ -2738,23 +2739,23 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2738
2739
  }, */
2739
2740
  };
2740
2741
  function y() {
2741
- u.value = o.value === "html" ? [] : r.value.map((v) => v.name || v.id), a.value = !0;
2742
+ s.value = o.value === "html" ? [] : r.value.map((v) => v.name || v.id), a.value = !0;
2742
2743
  }
2743
2744
  function m() {
2744
- var R;
2745
- const v = [...r.value], k = ((R = t.fields) == null ? void 0 : R.filter((B) => u.value.includes(B.name)).map((B) => {
2746
- const { type: Ce, format: ge, ...K } = B;
2745
+ var O;
2746
+ const v = [...r.value], k = ((O = t.fields) == null ? void 0 : O.filter((B) => s.value.includes(B.name)).map((B) => {
2747
+ const { type: Ce, format: ge, ...G } = B;
2747
2748
  return {
2748
- ...K,
2749
+ ...G,
2749
2750
  format: ge ?? Ce ?? "text"
2750
2751
  };
2751
2752
  })) || [], C = $n(v, k, {
2752
- selectedKeys: u.value,
2753
- resolveKey: (B) => $e(B)
2753
+ selectedKeys: s.value,
2754
+ resolveKey: (B) => Le(B)
2754
2755
  });
2755
2756
  if (r.value = C, o.value === "html" && k.length) {
2756
- const B = k.map((K) => {
2757
- const we = K.label ?? "", ye = K.name ?? K.id ?? "";
2757
+ const B = k.map((G) => {
2758
+ const we = G.label ?? "", ye = G.name ?? G.id ?? "";
2758
2759
  return `<dd>${we}</dd>
2759
2760
  <dt>{{ ${ye} }}</dt>`;
2760
2761
  }).join(`
@@ -2762,10 +2763,10 @@ const wl = /* @__PURE__ */ Xe(kl, [["render", Cl]]), Tl = { class: "flex flex-co
2762
2763
  l.value = ge ? `${ge}
2763
2764
  ${B}` : B;
2764
2765
  }
2765
- a.value = !1, u.value = [];
2766
+ a.value = !1, s.value = [];
2766
2767
  }
2767
2768
  function b() {
2768
- a.value = !1, u.value = [];
2769
+ a.value = !1, s.value = [];
2769
2770
  }
2770
2771
  function p() {
2771
2772
  const v = o.value === "html" ? "html" : "list", k = {
@@ -2779,7 +2780,7 @@ ${B}` : B;
2779
2780
  { value: "none", label: "Жодне" },
2780
2781
  { value: "html", label: "HTML" }
2781
2782
  ];
2782
- return (v, k) => (_(), M("div", Wl, [
2783
+ return (v, k) => (_(), M("div", Gl, [
2783
2784
  g("div", { class: "flex justify-between mb-3 gap-2" }, [
2784
2785
  g("button", {
2785
2786
  onClick: y,
@@ -2790,21 +2791,21 @@ ${B}` : B;
2790
2791
  class: "inline-flex items-center justify-center gap-1 px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition disabled:opacity-70 disabled:cursor-not-allowed"
2791
2792
  }, " Зберегти ")
2792
2793
  ]),
2793
- D(Gl, {
2794
+ D(zl, {
2794
2795
  modelValue: o.value,
2795
2796
  "onUpdate:modelValue": k[0] || (k[0] = (C) => o.value = C),
2796
2797
  options: h
2797
2798
  }, null, 8, ["modelValue"]),
2798
- g("div", Ql, [
2799
+ g("div", Wl, [
2799
2800
  o.value === "list" ? (_(), P(Ze, {
2800
2801
  key: 0,
2801
2802
  modelValue: r.value,
2802
2803
  "onUpdate:modelValue": k[1] || (k[1] = (C) => r.value = C),
2803
- "columns-scheme": s,
2804
+ "columns-scheme": u,
2804
2805
  "form-scheme": c,
2805
2806
  "main-col-width": "250px",
2806
2807
  "add-button": !1
2807
- }, null, 8, ["modelValue"])) : o.value === "html" ? (_(), P(Tt, {
2808
+ }, null, 8, ["modelValue"])) : o.value === "html" ? (_(), P(_t, {
2808
2809
  key: 1,
2809
2810
  modelValue: l.value,
2810
2811
  "onUpdate:modelValue": k[2] || (k[2] = (C) => l.value = C),
@@ -2816,8 +2817,8 @@ ${B}` : B;
2816
2817
  D(Nn, {
2817
2818
  visible: a.value,
2818
2819
  "onUpdate:visible": k[3] || (k[3] = (C) => a.value = C),
2819
- selection: u.value,
2820
- "onUpdate:selection": k[4] || (k[4] = (C) => u.value = C),
2820
+ selection: s.value,
2821
+ "onUpdate:selection": k[4] || (k[4] = (C) => s.value = C),
2821
2822
  fields: e.fields,
2822
2823
  title: "Імпорт полів для картки",
2823
2824
  "id-prefix": "import-card",
@@ -2826,7 +2827,7 @@ ${B}` : B;
2826
2827
  }, null, 8, ["visible", "selection", "fields"])
2827
2828
  ]));
2828
2829
  }
2829
- }), Xl = { class: "flex flex-col flex-1 min-h-0" }, Zl = /* @__PURE__ */ ae({
2830
+ }), Jl = { class: "flex flex-col flex-1 min-h-0" }, Xl = /* @__PURE__ */ ae({
2830
2831
  __name: "vs-tab-filter",
2831
2832
  props: {
2832
2833
  fields: {},
@@ -2842,11 +2843,11 @@ ${B}` : B;
2842
2843
  (p) => r.value = p || [],
2843
2844
  { immediate: !0 }
2844
2845
  ), $(r, (p) => i("update:columns", p), { deep: !0, immediate: !0 });
2845
- const o = E("list"), l = E(!1), a = E([]), u = [
2846
+ const o = E("list"), l = E(!1), a = E([]), s = [
2846
2847
  { key: "id", label: "Name" },
2847
2848
  { key: "label", label: "UA" }
2848
2849
  // { key: "type", label: "Тип" },
2849
- ], s = {
2850
+ ], u = {
2850
2851
  name: { type: "text", label: "Name", disabled: !0, validators: ["required"] },
2851
2852
  label: { type: "text", label: "UA", validators: ["required"] },
2852
2853
  type: {
@@ -2881,7 +2882,7 @@ ${B}` : B;
2881
2882
  var k;
2882
2883
  const p = [...r.value], h = ((k = t.fields) == null ? void 0 : k.filter((C) => a.value.includes(C.name))) || [], v = $n(p, h, {
2883
2884
  selectedKeys: a.value,
2884
- resolveKey: (C) => $e(C)
2885
+ resolveKey: (C) => Le(C)
2885
2886
  });
2886
2887
  r.value = v, l.value = !1, a.value = [];
2887
2888
  }
@@ -2892,7 +2893,7 @@ ${B}` : B;
2892
2893
  let p = [];
2893
2894
  o.value === "all" ? p = t.fields || [] : o.value === "none" ? p = [] : p = r.value, i("save", p);
2894
2895
  }
2895
- return (p, h) => (_(), M("div", Xl, [
2896
+ return (p, h) => (_(), M("div", Jl, [
2896
2897
  g("div", { class: "flex justify-between mb-3 gap-2" }, [
2897
2898
  g("button", {
2898
2899
  onClick: c,
@@ -2907,8 +2908,8 @@ ${B}` : B;
2907
2908
  key: 0,
2908
2909
  modelValue: r.value,
2909
2910
  "onUpdate:modelValue": h[0] || (h[0] = (v) => r.value = v),
2910
- "columns-scheme": u,
2911
- "form-scheme": s,
2911
+ "columns-scheme": s,
2912
+ "form-scheme": u,
2912
2913
  "main-col-width": "250px",
2913
2914
  "add-button": !1
2914
2915
  }, null, 8, ["modelValue"])) : W("", !0),
@@ -2925,7 +2926,7 @@ ${B}` : B;
2925
2926
  }, null, 8, ["visible", "selection", "fields"])
2926
2927
  ]));
2927
2928
  }
2928
- }), ea = /* @__PURE__ */ ae({
2929
+ }), Zl = /* @__PURE__ */ ae({
2929
2930
  __name: "MapDataLayer",
2930
2931
  props: {
2931
2932
  id: {},
@@ -2935,12 +2936,12 @@ ${B}` : B;
2935
2936
  },
2936
2937
  setup(e, { expose: n }) {
2937
2938
  var p, h, v, k;
2938
- const { map: t, flyTo: i, setZoom: r } = Si(), o = ((h = (p = Ct()) == null ? void 0 : p.appContext.config.globalProperties) == null ? void 0 : h.$settings) || null, l = e, a = l.id;
2939
+ const { map: t, flyTo: i, setZoom: r } = xi(), o = ((h = (p = wt()) == null ? void 0 : p.appContext.config.globalProperties) == null ? void 0 : h.$settings) || null, l = e, a = l.id;
2939
2940
  String(l.id);
2940
- const u = `${location.origin}/api/vtile/${l.id}/ua/{z}/{x}/{y}.vmt?all=1`, s = Ge(a, {
2941
+ const s = `${location.origin}/api/vtile/${l.id}/ua/{z}/{x}/{y}.vmt?all=1`, u = Ge(a, {
2941
2942
  source: {
2942
2943
  type: "vector",
2943
- tiles: [u],
2944
+ tiles: [s],
2944
2945
  minzoom: 0,
2945
2946
  maxzoom: 14
2946
2947
  },
@@ -2956,12 +2957,12 @@ ${B}` : B;
2956
2957
  } */
2957
2958
  }
2958
2959
  });
2959
- n({ layerHandle: s }), (l.autoCenter ?? !0) && i({ center: l.layer.center || ((k = o == null ? void 0 : o.map) == null ? void 0 : k.center) || [30, 50], animate: !1 });
2960
+ n({ layerHandle: u }), (l.autoCenter ?? !0) && i({ center: l.layer.center || ((k = o == null ? void 0 : o.map) == null ? void 0 : k.center) || [30, 50], animate: !1 });
2960
2961
  let c = null;
2961
2962
  function y() {
2962
- if (!(s != null && s.setTiles)) return;
2963
- const C = u.includes("?") ? "&" : "?", R = `${u}${C}_=${Date.now()}`;
2964
- s.setTiles([R]);
2963
+ if (!(u != null && u.setTiles)) return;
2964
+ const C = s.includes("?") ? "&" : "?", O = `${s}${C}_=${Date.now()}`;
2965
+ u.setTiles([O]);
2965
2966
  }
2966
2967
  function m() {
2967
2968
  c && clearTimeout(c), c = setTimeout(() => {
@@ -2969,25 +2970,25 @@ ${B}` : B;
2969
2970
  }, 300);
2970
2971
  }
2971
2972
  async function b() {
2972
- t.value && (y(), s.setStyle(l.styleSpec ?? null));
2973
+ t.value && (y(), u.setStyle(l.styleSpec ?? null));
2973
2974
  }
2974
- return $(() => l.styleSpec, m, { deep: !0 }), wt(() => {
2975
- s.remove();
2976
- }), (C, R) => null;
2975
+ return $(() => l.styleSpec, m, { deep: !0 }), Tt(() => {
2976
+ u.remove();
2977
+ }), (C, O) => null;
2977
2978
  }
2978
- }), na = { class: "flex h-full bg-gradient-to-br from-slate-50 to-white" }, ta = { class: "flex-1 relative overflow-hidden" }, ia = { class: "absolute top-0 left-0 w-full z-20" }, ra = { class: "px-4 sm:px-6 py-4 border-b border-gray-200 bg-white shadow-sm" }, oa = { class: "flex items-start justify-between gap-4" }, la = { class: "flex-1 min-w-0" }, aa = { class: "flex items-center text-sm text-gray-500 mb-3" }, sa = { class: "text-gray-900 font-medium truncate max-w-xs" }, ua = { class: "flex items-center justify-between gap-4" }, ca = { class: "flex-1 min-w-0" }, fa = { class: "flex items-center gap-3 mb-1" }, da = { class: "text-base font-semibold text-gray-900 truncate" }, pa = {
2979
+ }), ea = { class: "flex h-full bg-gradient-to-br from-slate-50 to-white" }, na = { class: "flex-1 relative overflow-hidden" }, ta = { class: "absolute top-0 left-0 w-full z-20" }, ia = { class: "px-4 sm:px-6 py-4 border-b border-gray-200 bg-white shadow-sm" }, ra = { class: "flex items-start justify-between gap-4" }, oa = { class: "flex-1 min-w-0" }, la = { class: "flex items-center text-sm text-gray-500 mb-3" }, aa = { class: "text-gray-900 font-medium truncate max-w-xs" }, sa = { class: "flex items-center justify-between gap-4" }, ua = { class: "flex-1 min-w-0" }, ca = { class: "flex items-center gap-3 mb-1" }, fa = { class: "text-base font-semibold text-gray-900 truncate" }, da = {
2979
2980
  key: 0,
2980
2981
  class: "px-2 py-0.5 bg-green-50 border border-green-200 rounded flex-shrink-0"
2981
- }, ma = { class: "text-xs font-medium text-green-700" }, ha = ["title"], ga = { class: "w-full h-full bg-gradient-to-br from-sky-50 via-white to-blue-50 flex items-center justify-center relative pt-[115px]" }, ya = { class: "relative w-full h-full" }, va = { style: { top: "17px", left: "230px", position: "absolute", "z-index": "1" } }, ba = { class: "absolute top-4 left-4 z-20" }, xa = { class: "absolute top-[6.5rem] right-2 space-y-1 z-20" }, Sa = { class: "absolute bottom-4 left-4 z-20" }, ka = { class: "flex-1 flex flex-col h-full" }, Aa = { class: "px-3 pt-3 pb-2 border-b border-gray-100" }, Ca = { class: "items-center justify-center text-muted-foreground grid w-full grid-cols-6 h-12 p-1 bg-gray-50 rounded-xl shadow-sm" }, wa = ["aria-selected", "onClick"], Ta = { class: "leading-none" }, _a = { class: "flex flex-col flex-1 overflow-y-hidden p-3" }, Ea = "OpenGIS", St = 2, je = 5, Ia = 1e3, Na = /* @__PURE__ */ ae({
2982
+ }, pa = { class: "text-xs font-medium text-green-700" }, ma = ["title"], ha = { class: "w-full h-full bg-gradient-to-br from-sky-50 via-white to-blue-50 flex items-center justify-center relative pt-[115px]" }, ga = { class: "relative w-full h-full" }, ya = { style: { top: "17px", left: "230px", position: "absolute", "z-index": "1" } }, va = { class: "absolute top-4 left-4 z-20" }, ba = { class: "absolute top-[6.5rem] right-2 space-y-1 z-20" }, xa = { class: "absolute bottom-4 left-4 z-20" }, Sa = { class: "flex-1 flex flex-col h-full" }, ka = { class: "px-3 pt-3 pb-2 border-b border-gray-100" }, Aa = { class: "items-center justify-center text-muted-foreground grid w-full grid-cols-6 h-12 p-1 bg-gray-50 rounded-xl shadow-sm" }, Ca = ["aria-selected", "onClick"], wa = { class: "leading-none" }, Ta = { class: "flex flex-col flex-1 overflow-y-hidden p-3" }, _a = "OpenGIS", kt = 2, je = 5, Ea = 1e3, Ia = /* @__PURE__ */ ae({
2982
2983
  __name: "service",
2983
2984
  props: {
2984
2985
  hideServiceKey: { type: Boolean, default: !1 }
2985
2986
  },
2986
2987
  setup(e) {
2987
- var Gn, Wn;
2988
- const t = gi(e, "hideServiceKey"), i = bi(), r = xi(), { id: o } = i.params, l = E(null), a = E(null), u = E({}), s = E(null), c = ((Wn = (Gn = Ct()) == null ? void 0 : Gn.appContext.config.globalProperties) == null ? void 0 : Wn.$settings) || null;
2988
+ var Wn, Qn;
2989
+ const t = hi(e, "hideServiceKey"), i = vi(), r = bi(), { id: o } = i.params, l = E(null), a = E(null), s = E({}), u = E(null), c = ((Qn = (Wn = wt()) == null ? void 0 : Wn.appContext.config.globalProperties) == null ? void 0 : Qn.$settings) || null;
2989
2990
  function y(f) {
2990
- typeof document > "u" || (document.title = f ? `${f} — Сервіс` : Ea);
2991
+ typeof document > "u" || (document.title = f ? `${f} — Сервіс` : _a);
2991
2992
  }
2992
2993
  let m = null;
2993
2994
  const b = E(!1);
@@ -2997,24 +2998,24 @@ ${B}` : B;
2997
2998
  }
2998
2999
  function h(f) {
2999
3000
  typeof window > "u" || window.dispatchEvent(
3000
- new CustomEvent(Ii, {
3001
+ new CustomEvent(Ei, {
3001
3002
  detail: f
3002
3003
  })
3003
3004
  );
3004
3005
  }
3005
3006
  function v(f) {
3006
- var O, A, J;
3007
- const d = (A = (O = p()) == null ? void 0 : O.map) == null ? void 0 : A.value;
3007
+ var R, A, J;
3008
+ const d = (A = (R = p()) == null ? void 0 : R.map) == null ? void 0 : A.value;
3008
3009
  if (!d || !f) return [];
3009
- const S = (J = s.value) != null && J.service_id ? String(s.value.service_id) : null;
3010
+ const S = (J = u.value) != null && J.service_id ? String(u.value.service_id) : null;
3010
3011
  return (d.queryRenderedFeatures(f) || []).filter((N) => {
3011
- var Qn, Jn, Xn, Zn, et, nt;
3012
- const te = ((Qn = N == null ? void 0 : N.properties) == null ? void 0 : Qn.id) ?? (N == null ? void 0 : N.id);
3013
- if (te == null || !(N != null && N.source) || S && String(N.source) !== S)
3012
+ var Jn, Xn, Zn, et, nt, tt;
3013
+ const ne = ((Jn = N == null ? void 0 : N.properties) == null ? void 0 : Jn.id) ?? (N == null ? void 0 : N.id);
3014
+ if (ne == null || !(N != null && N.source) || S && String(N.source) !== S)
3014
3015
  return !1;
3015
- const G = Ge(N.source) || Ge((Jn = N.layer) == null ? void 0 : Jn.id);
3016
- if (!G) return !1;
3017
- const ue = (Zn = (Xn = G == null ? void 0 : G.opts) == null ? void 0 : Xn.source) == null ? void 0 : Zn.type, Be = (nt = (et = G == null ? void 0 : G.opts) == null ? void 0 : et.layer) == null ? void 0 : nt.type;
3016
+ const z = Ge(N.source) || Ge((Xn = N.layer) == null ? void 0 : Xn.id);
3017
+ if (!z) return !1;
3018
+ const ue = (et = (Zn = z == null ? void 0 : z.opts) == null ? void 0 : Zn.source) == null ? void 0 : et.type, Be = (tt = (nt = z == null ? void 0 : z.opts) == null ? void 0 : nt.layer) == null ? void 0 : tt.type;
3018
3019
  return ue !== "raster" && Be !== "raster";
3019
3020
  });
3020
3021
  }
@@ -3031,7 +3032,7 @@ ${B}` : B;
3031
3032
  const d = typeof f == "number" ? f : Number(f.trim());
3032
3033
  return Number.isFinite(d) ? d : null;
3033
3034
  }
3034
- function R(f, d) {
3035
+ function O(f, d) {
3035
3036
  return f.toFixed(d);
3036
3037
  }
3037
3038
  function B(f, d, S) {
@@ -3039,48 +3040,48 @@ ${B}` : B;
3039
3040
  return Math.abs(f - d) > I;
3040
3041
  }
3041
3042
  function Ce() {
3042
- var N, te, G, ue;
3043
- const f = (te = (N = p()) == null ? void 0 : N.map) == null ? void 0 : te.value;
3043
+ var N, ne, z, ue;
3044
+ const f = (ne = (N = p()) == null ? void 0 : N.map) == null ? void 0 : ne.value;
3044
3045
  if (!f) return;
3045
3046
  const d = C(i.query.z), S = C(i.query.x), I = C(i.query.y);
3046
3047
  if (d == null || S == null || I == null) return;
3047
- const O = (G = f.getCenter) == null ? void 0 : G.call(f), A = (ue = f.getZoom) == null ? void 0 : ue.call(f);
3048
- (!O || B(O.lng, S, je) || B(O.lat, I, je) || B(A ?? 0, d, St)) && (b.value = !0, f.jumpTo({ center: [S, I], zoom: d }), b.value = !1);
3048
+ const R = (z = f.getCenter) == null ? void 0 : z.call(f), A = (ue = f.getZoom) == null ? void 0 : ue.call(f);
3049
+ (!R || B(R.lng, S, je) || B(R.lat, I, je) || B(A ?? 0, d, kt)) && (b.value = !0, f.jumpTo({ center: [S, I], zoom: d }), b.value = !1);
3049
3050
  }
3050
3051
  function ge() {
3051
- var O, A, J, N;
3052
+ var R, A, J, N;
3052
3053
  if (b.value) return;
3053
- const f = (A = (O = p()) == null ? void 0 : O.map) == null ? void 0 : A.value;
3054
+ const f = (A = (R = p()) == null ? void 0 : R.map) == null ? void 0 : A.value;
3054
3055
  if (!f) return;
3055
3056
  const d = (J = f.getCenter) == null ? void 0 : J.call(f), S = (N = f.getZoom) == null ? void 0 : N.call(f);
3056
3057
  if (!d || S == null) return;
3057
3058
  const I = {
3058
3059
  ...i.query,
3059
- z: R(S, St),
3060
- x: R(d.lng, je),
3061
- y: R(d.lat, je)
3060
+ z: O(S, kt),
3061
+ x: O(d.lng, je),
3062
+ y: O(d.lat, je)
3062
3063
  };
3063
3064
  i.query.z === I.z && i.query.x === I.x && i.query.y === I.y || r.replace({ query: I });
3064
3065
  }
3065
- const K = E(null), we = E(""), ye = E([]), on = E([]), Pe = E([]), ln = E("list"), an = E(""), Me = E([]), Ue = E(!0);
3066
+ const G = E(null), we = E(""), ye = E([]), on = E([]), Me = E([]), ln = E("list"), an = E(""), Ue = E([]), qe = E(!0);
3066
3067
  let se = null;
3067
- const H = ve(
3068
+ const K = ve(
3068
3069
  () => {
3069
3070
  var f, d;
3070
- return ((f = s.value) == null ? void 0 : f.id) ?? ((d = s.value) == null ? void 0 : d.service_id) ?? null;
3071
+ return ((f = u.value) == null ? void 0 : f.id) ?? ((d = u.value) == null ? void 0 : d.service_id) ?? null;
3071
3072
  }
3072
3073
  ), Yn = ve(() => {
3073
3074
  const f = (c == null ? void 0 : c.map) || null, d = (f == null ? void 0 : f.boundary) ?? null, S = (f == null ? void 0 : f.katottg) ?? null;
3074
3075
  return !d && !S ? null : { boundary: d, katottg: S };
3075
3076
  }), sn = ve(() => {
3076
- const f = s.value;
3077
+ const f = u.value;
3077
3078
  if (!f) return "";
3078
3079
  const d = [];
3079
3080
  !t.value && f.service_key && d.push(`Сервіс: ${f.service_key}`), f.description && d.push(f.description);
3080
3081
  const S = f.group_name || f.group_id;
3081
3082
  return S && d.push(`Група: ${S}`), typeof f.is_public < "u" && d.push(f.is_public ? "Публічний" : "Не публічний"), typeof f.is_active < "u" && d.push(f.is_active ? "Активний" : "Неактивний"), d.join(", ");
3082
3083
  }), jn = ve(() => {
3083
- const f = s.value, d = (f == null ? void 0 : f.group_name) || (f == null ? void 0 : f.group_id);
3084
+ const f = u.value, d = (f == null ? void 0 : f.group_name) || (f == null ? void 0 : f.group_id);
3084
3085
  return d ? String(d).toUpperCase() : "";
3085
3086
  }), ti = ve(() => {
3086
3087
  var S;
@@ -3095,16 +3096,16 @@ ${B}` : B;
3095
3096
  r.push(ti.value);
3096
3097
  }
3097
3098
  const Kn = [
3098
- { key: "style", label: "Стиль", icon: Oi },
3099
- { key: "popup", label: "Попап", icon: Sl },
3100
- { key: "filter", label: "Фільтр", icon: wl },
3101
- { key: "legend", label: "Легенда", icon: yl },
3099
+ { key: "style", label: "Стиль", icon: Fi },
3100
+ { key: "popup", label: "Попап", icon: xl },
3101
+ { key: "filter", label: "Фільтр", icon: Cl },
3102
+ { key: "legend", label: "Легенда", icon: gl },
3102
3103
  { key: "card", label: "Картка", icon: Ri },
3103
- { key: "metadata", label: "Метадані", icon: Fi }
3104
- ], Hn = Kn.map((f) => f.key), z = E("style");
3105
- yi(async () => {
3104
+ { key: "metadata", label: "Метадані", icon: Li }
3105
+ ], Hn = Kn.map((f) => f.key), H = E("style");
3106
+ gi(async () => {
3106
3107
  const f = i.query.tab;
3107
- f && Hn.includes(f) && (z.value = f), await qe(), oi();
3108
+ f && Hn.includes(f) && (H.value = f), await Ve(), oi();
3108
3109
  });
3109
3110
  async function oi() {
3110
3111
  var I;
@@ -3123,22 +3124,22 @@ ${B}` : B;
3123
3124
  () => {
3124
3125
  Ce();
3125
3126
  }
3126
- ), $(z, (f) => {
3127
+ ), $(H, (f) => {
3127
3128
  i.query.tab !== f && r.replace({ query: { ...i.query, tab: f } });
3128
3129
  }), $(
3129
3130
  () => i.query.tab,
3130
3131
  (f) => {
3131
- f && Hn.includes(f) && z.value !== f && (z.value = f);
3132
+ f && Hn.includes(f) && H.value !== f && (H.value = f);
3132
3133
  }
3133
3134
  ), $(
3134
3135
  () => {
3135
3136
  var f;
3136
- return (f = s.value) == null ? void 0 : f.name;
3137
+ return (f = u.value) == null ? void 0 : f.name;
3137
3138
  },
3138
3139
  (f) => y(f),
3139
3140
  { immediate: !0 }
3140
3141
  );
3141
- function un(f) {
3142
+ function zn(f) {
3142
3143
  if (!f) return null;
3143
3144
  try {
3144
3145
  return JSON.parse(JSON.stringify(f));
@@ -3146,15 +3147,15 @@ ${B}` : B;
3146
3147
  return console.warn("Failed to clone style", d), null;
3147
3148
  }
3148
3149
  }
3149
- function cn(f) {
3150
+ function un(f) {
3150
3151
  if (!f) return null;
3151
3152
  if (typeof f == "string")
3152
3153
  try {
3153
- return it(Dt(f) || null);
3154
+ return rt(wn(f) || null);
3154
3155
  } catch (d) {
3155
3156
  return console.warn("Failed to parse style yaml", d), null;
3156
3157
  }
3157
- return it(un(f));
3158
+ return rt(zn(f));
3158
3159
  }
3159
3160
  function li(f, d) {
3160
3161
  try {
@@ -3165,26 +3166,26 @@ ${B}` : B;
3165
3166
  }
3166
3167
  function ai() {
3167
3168
  var d;
3168
- if (!s.value) return;
3169
- const f = cn(K.value);
3170
- li(f, ((d = s.value) == null ? void 0 : d.style) ?? null) || (s.value = {
3171
- ...s.value,
3169
+ if (!u.value) return;
3170
+ const f = un(G.value);
3171
+ li(f, ((d = u.value) == null ? void 0 : d.style) ?? null) || (u.value = {
3172
+ ...u.value,
3172
3173
  style: f
3173
3174
  });
3174
3175
  }
3175
3176
  function si() {
3176
3177
  se && clearTimeout(se), se = setTimeout(() => {
3177
3178
  se = null, ai();
3178
- }, Ia);
3179
+ }, Ea);
3179
3180
  }
3180
- const qe = async () => {
3181
+ const Ve = async () => {
3181
3182
  try {
3182
3183
  const f = await fetch(`/api/gis-service/${o}`);
3183
3184
  if (!f.ok) throw new Error(`${f.status}`);
3184
3185
  const d = await f.json();
3185
- u.value = d || {}, a.value = o;
3186
- const S = cn(d.style);
3187
- s.value = d ? { ...d, style: un(S) } : null, K.value = S, we.value = typeof (d == null ? void 0 : d.style) == "string" ? d.style : S ? ni(S) : "", on.value = (d == null ? void 0 : d.popup) || [], ln.value = d.card_mode === "html" ? "html" : "list", Pe.value = d.card, an.value = d.html, ye.value = (d == null ? void 0 : d.legend) || [], Me.value = (d == null ? void 0 : d.filters) || [];
3186
+ s.value = d || {}, a.value = o;
3187
+ const S = un(d.style);
3188
+ u.value = d ? { ...d, style: zn(S) } : null, G.value = S, we.value = typeof (d == null ? void 0 : d.style) == "string" ? d.style : S ? ni(S) : "", on.value = (d == null ? void 0 : d.popup) || [], ln.value = d.card_mode === "html" ? "html" : "list", Me.value = d.card, an.value = d.html, ye.value = (d == null ? void 0 : d.legend) || [], Ue.value = (d == null ? void 0 : d.filters) || [];
3188
3189
  } catch (f) {
3189
3190
  console.error("Failed to fetch map info", f);
3190
3191
  }
@@ -3192,96 +3193,92 @@ ${B}` : B;
3192
3193
  $(
3193
3194
  () => {
3194
3195
  var f;
3195
- return (f = s.value) == null ? void 0 : f.style;
3196
+ return (f = u.value) == null ? void 0 : f.style;
3196
3197
  },
3197
3198
  (f) => {
3198
- K.value = cn(f);
3199
+ G.value = un(f);
3199
3200
  },
3200
3201
  { deep: !0 }
3201
3202
  ), $(
3202
- () => K.value,
3203
+ () => G.value,
3203
3204
  () => {
3204
3205
  si();
3205
3206
  },
3206
3207
  { deep: !0 }
3207
- ), wt(() => {
3208
+ ), Tt(() => {
3208
3209
  se && (clearTimeout(se), se = null), m == null || m(), m = null;
3209
3210
  });
3210
3211
  async function ui(f) {
3211
3212
  try {
3212
- const d = await fetch(`/api/gis-clear-vtile/${f}`), { message: S, error: I, code: O } = await d.json();
3213
- if (O === 200)
3214
- return X({ type: "success", title: "Успіх", message: S });
3215
- X({ type: "error", title: "Помилка", message: I });
3213
+ const d = await fetch(`/api/gis-clear-vtile/${f}`), { message: S, error: I, code: R } = await d.json();
3214
+ if (R === 200)
3215
+ return te({ type: "success", title: "Успіх", message: S });
3216
+ te({ type: "error", title: "Помилка", message: I });
3216
3217
  } catch (d) {
3217
- X({
3218
+ te({
3218
3219
  type: "error",
3219
3220
  title: "Помилка",
3220
3221
  message: "Не вдалося очистити тайли"
3221
3222
  }), console.error(d);
3222
3223
  }
3223
3224
  }
3224
- async function Ve(f, d) {
3225
- await zn({ [f]: d }, f);
3226
- }
3227
- function ci() {
3228
- const f = un(K.value);
3229
- s.value = s.value ? { ...s.value, style: f } : s.value;
3225
+ async function Te(f, d) {
3226
+ await Gn({ [f]: d }, f);
3230
3227
  }
3231
- async function zn(f, d) {
3232
- if (s.value = {
3233
- ...s.value || {},
3234
- ...f
3235
- }, typeof f.html < "u" && (u.value = {
3228
+ async function Gn(f, d) {
3229
+ if (u.value = {
3236
3230
  ...u.value || {},
3231
+ ...f
3232
+ }, typeof f.html < "u" && (s.value = {
3233
+ ...s.value || {},
3237
3234
  html: f.html
3238
- }), !!H.value)
3235
+ }), !!K.value)
3239
3236
  try {
3240
- if (!(await fetch(`/api/gis-service/${H.value}`, {
3237
+ if (!(await fetch(`/api/gis-service/${K.value}`, {
3241
3238
  method: "PUT",
3242
3239
  headers: { "Content-Type": "application/json" },
3243
3240
  body: JSON.stringify(f)
3244
3241
  })).ok) throw new Error("Save failed");
3245
- X({
3242
+ te({
3246
3243
  type: "success",
3247
3244
  title: "Успіх",
3248
3245
  message: `${d} saved`
3249
- }), await qe();
3246
+ }), await Ve();
3250
3247
  } catch (S) {
3251
- X({
3248
+ te({
3252
3249
  type: "error",
3253
3250
  title: "Помилка",
3254
3251
  message: `Failed to save ${d}`
3255
3252
  }), console.error(S);
3256
3253
  }
3257
3254
  }
3258
- async function fi(f, d) {
3255
+ async function ci(f, d) {
3259
3256
  if (f !== "card") {
3260
- await Ve(f, d);
3257
+ await Te(f, d);
3261
3258
  return;
3262
3259
  }
3263
- const S = (d == null ? void 0 : d.card_mode) === "html" ? "html" : "list", I = S === "html" && typeof (d == null ? void 0 : d.html) == "string" ? d.html : "", O = (S === "html" ? [] : null) || (Array.isArray(d == null ? void 0 : d.list) ? d.list : []);
3264
- Pe.value = O, ln.value = S, an.value = I;
3260
+ const S = (d == null ? void 0 : d.card_mode) === "html" ? "html" : "list", I = S === "html" && typeof (d == null ? void 0 : d.html) == "string" ? d.html : "", R = (S === "html" ? [] : null) || (Array.isArray(d == null ? void 0 : d.list) ? d.list : []);
3261
+ Me.value = R, ln.value = S, an.value = I;
3265
3262
  const A = {
3266
3263
  card_mode: S
3267
3264
  };
3268
- S === "html" && (A.html = I), S === "list" && (A.card = O), await zn(A, "card");
3265
+ S === "html" && (A.html = I), S === "list" && (A.card = R), await Gn(A, "card");
3269
3266
  }
3270
3267
  return (f, d) => {
3271
- var S, I, O;
3272
- return _(), M("div", na, [
3273
- g("div", ta, [
3274
- g("div", ia, [
3275
- g("div", ra, [
3276
- g("div", oa, [
3277
- g("div", la, [
3278
- g("div", aa, [
3268
+ var S, I, R;
3269
+ return _(), M("div", ea, [
3270
+ g("div", na, [
3271
+ g("div", ta, [
3272
+ g("div", ia, [
3273
+ g("div", ra, [
3274
+ g("div", oa, [
3275
+ g("div", la, [
3279
3276
  g("button", {
3280
3277
  type: "button",
3281
3278
  class: "hover:text-gray-700 cursor-pointer transition-colors",
3282
3279
  onClick: ri
3283
3280
  }, fe(ii.value), 1),
3284
- d[10] || (d[10] = g("svg", {
3281
+ d[11] || (d[11] = g("svg", {
3285
3282
  xmlns: "http://www.w3.org/2000/svg",
3286
3283
  width: "24",
3287
3284
  height: "24",
@@ -3295,91 +3292,91 @@ ${B}` : B;
3295
3292
  }, [
3296
3293
  g("path", { d: "m9 18 6-6-6-6" })
3297
3294
  ], -1)),
3298
- g("span", sa, fe(((S = s.value) == null ? void 0 : S.name) || "Dataset"), 1)
3295
+ g("span", aa, fe(((S = u.value) == null ? void 0 : S.name) || "Dataset"), 1)
3299
3296
  ]),
3300
- g("div", ua, [
3301
- g("div", ca, [
3302
- g("div", fa, [
3303
- g("h1", da, fe(((I = s.value) == null ? void 0 : I.name) || "Dataset"), 1),
3304
- jn.value ? (_(), M("div", pa, [
3305
- g("span", ma, fe(jn.value), 1)
3297
+ g("div", sa, [
3298
+ g("div", ua, [
3299
+ g("div", ca, [
3300
+ g("h1", fa, fe(((I = u.value) == null ? void 0 : I.name) || "Dataset"), 1),
3301
+ jn.value ? (_(), M("div", da, [
3302
+ g("span", pa, fe(jn.value), 1)
3306
3303
  ])) : W("", !0)
3307
3304
  ]),
3308
3305
  sn.value ? (_(), M("p", {
3309
3306
  key: 0,
3310
3307
  class: "text-xs text-gray-500 truncate",
3311
3308
  title: sn.value
3312
- }, fe(sn.value), 9, ha)) : W("", !0)
3309
+ }, fe(sn.value), 9, ma)) : W("", !0)
3313
3310
  ])
3314
3311
  ])
3315
3312
  ]),
3316
- H.value ? (_(), P(Ni, {
3313
+ K.value ? (_(), P(Ii, {
3317
3314
  key: 0,
3318
3315
  class: "flex-shrink-0",
3319
- "entity-id": H.value,
3320
- "entity-info": { name: (O = s.value) == null ? void 0 : O.name },
3316
+ "entity-id": K.value,
3317
+ "entity-info": { name: (R = u.value) == null ? void 0 : R.name },
3321
3318
  table: "gis.services.table",
3322
3319
  "entity-label": "Сервіс",
3323
3320
  "save-method": "put",
3324
3321
  "show-xml-item": !1,
3325
3322
  "clear-tiles-handler": ui,
3326
- onSaved: qe
3323
+ onSaved: Ve
3327
3324
  }, null, 8, ["entity-id", "entity-info"])) : W("", !0)
3328
3325
  ])
3329
3326
  ])
3330
3327
  ]),
3331
- g("div", ga, [
3332
- g("div", ya, [
3333
- D(ki, {
3328
+ g("div", ha, [
3329
+ g("div", ga, [
3330
+ D(Si, {
3334
3331
  ref_key: "mapViewRef",
3335
3332
  ref: l
3336
3333
  }, {
3337
- default: bn(() => {
3338
- var A, J, N, te, G, ue, Be;
3334
+ default: vn(() => {
3335
+ var A, J, N, ne, z, ue, Be;
3339
3336
  return [
3340
- (A = s.value) != null && A.service_id ? (_(), P(ea, {
3337
+ (A = u.value) != null && A.service_id ? (_(), P(Zl, {
3341
3338
  key: 0,
3342
- id: (J = s.value) == null ? void 0 : J.service_id,
3343
- layer: s.value,
3344
- "style-spec": ((N = s.value) == null ? void 0 : N.style) || null,
3339
+ id: (J = u.value) == null ? void 0 : J.service_id,
3340
+ layer: u.value,
3341
+ "style-spec": ((N = u.value) == null ? void 0 : N.style) || null,
3345
3342
  autoCenter: !1
3346
3343
  }, null, 8, ["id", "layer", "style-spec"])) : W("", !0),
3347
- H.value ? (_(), P(Ai, {
3344
+ K.value ? (_(), P(ki, {
3348
3345
  key: 1,
3349
- "layer-id": H.value,
3350
- boundary: ((te = s.value) == null ? void 0 : te.boundary) || ((G = Yn.value) == null ? void 0 : G.boundary) || null,
3351
- katottg: ((ue = s.value) == null ? void 0 : ue.katottg) || ((Be = Yn.value) == null ? void 0 : Be.katottg) || null
3346
+ "layer-id": K.value,
3347
+ boundary: ((ne = u.value) == null ? void 0 : ne.boundary) || ((z = Yn.value) == null ? void 0 : z.boundary) || null,
3348
+ katottg: ((ue = u.value) == null ? void 0 : ue.katottg) || ((Be = Yn.value) == null ? void 0 : Be.katottg) || null
3352
3349
  }, null, 8, ["layer-id", "boundary", "katottg"])) : W("", !0),
3353
- g("div", va, [
3354
- H.value ? (_(), P(Ci, {
3350
+ g("div", ya, [
3351
+ K.value ? (_(), P(Ai, {
3355
3352
  key: 0,
3356
- "layer-id": H.value,
3357
- filters: Me.value
3353
+ "layer-id": K.value,
3354
+ filters: Ue.value
3358
3355
  }, null, 8, ["layer-id", "filters"])) : W("", !0)
3359
3356
  ]),
3360
- d[11] || (d[11] = g("div", {
3357
+ d[12] || (d[12] = g("div", {
3361
3358
  id: "map-filter-popover-host",
3362
3359
  class: "map-widget__filter-host"
3363
3360
  }, null, -1)),
3364
- g("div", ba, [
3365
- D(wi)
3361
+ g("div", va, [
3362
+ D(Ci)
3366
3363
  ]),
3367
- g("div", xa, [
3368
- D(tt),
3369
- u.value.center ? (_(), P(tt, {
3364
+ g("div", ba, [
3365
+ D(it),
3366
+ s.value.center ? (_(), P(it, {
3370
3367
  key: 0,
3371
- targetCenter: u.value.center,
3368
+ targetCenter: s.value.center,
3372
3369
  targetLabel: "Ценр даних"
3373
3370
  }, null, 8, ["targetCenter"])) : W("", !0)
3374
3371
  ]),
3375
- g("div", Sa, [
3376
- D(Ti, {
3372
+ g("div", xa, [
3373
+ D(wi, {
3377
3374
  items: ye.value || null
3378
3375
  }, null, 8, ["items"])
3379
3376
  ]),
3380
- D(_i),
3381
- D(Ei, {
3382
- html: u.value.html
3377
+ D(Ti),
3378
+ D(_i, {
3379
+ html: s.value.html
3383
3380
  }, null, 8, ["html"])
3384
3381
  ];
3385
3382
  }),
@@ -3387,78 +3384,78 @@ ${B}` : B;
3387
3384
  }, 512)
3388
3385
  ])
3389
3386
  ]),
3390
- D($i, {
3391
- open: Ue.value,
3392
- onToggle: d[0] || (d[0] = (A) => Ue.value = !Ue.value),
3387
+ D(Ni, {
3388
+ open: qe.value,
3389
+ onToggle: d[0] || (d[0] = (A) => qe.value = !qe.value),
3393
3390
  "top-class": "top-4"
3394
3391
  }, null, 8, ["open"])
3395
3392
  ]),
3396
3393
  g("div", {
3397
- class: _e(["bg-white border-l border-gray-100 flex flex-col overflow-hidden shadow-lg flex-shrink-0 transition-[width] duration-100 ease-in-out", Ue.value ? "w-[650px]" : "w-0"])
3394
+ class: Ee(["bg-white border-l border-gray-100 flex flex-col overflow-hidden shadow-lg flex-shrink-0 transition-[width] duration-100 ease-in-out", qe.value ? "w-[650px]" : "w-0"])
3398
3395
  }, [
3399
- g("div", ka, [
3400
- g("div", Aa, [
3401
- g("div", Ca, [
3402
- (_(), M(kt, null, At(Kn, (A) => g("button", {
3396
+ g("div", Sa, [
3397
+ g("div", ka, [
3398
+ g("div", Aa, [
3399
+ (_(), M(At, null, Ct(Kn, (A) => g("button", {
3403
3400
  key: A.key,
3404
3401
  type: "button",
3405
3402
  role: "tab",
3406
- "aria-selected": z.value === A.key,
3407
- class: _e([
3403
+ "aria-selected": H.value === A.key,
3404
+ class: Ee([
3408
3405
  "whitespace-nowrap flex flex-col items-center justify-center gap-0.5 py-1 px-1 text-[9px] font-medium transition-all duration-300 hover:bg-white/70 rounded-lg group",
3409
- z.value === A.key ? "bg-white shadow-sm text-gray-700" : ""
3406
+ H.value === A.key ? "bg-white shadow-sm text-gray-700" : ""
3410
3407
  ]),
3411
- onClick: (J) => z.value = A.key
3408
+ onClick: (J) => H.value = A.key
3412
3409
  }, [
3413
- (_(), P(vi(A.icon), { class: "h-3.5 w-3.5 mb-0.5" })),
3414
- g("span", Ta, fe(A.label), 1)
3415
- ], 10, wa)), 64))
3410
+ (_(), P(yi(A.icon), { class: "h-3.5 w-3.5 mb-0.5" })),
3411
+ g("span", wa, fe(A.label), 1)
3412
+ ], 10, Ca)), 64))
3416
3413
  ])
3417
3414
  ]),
3418
- g("div", _a, [
3419
- z.value === "style" ? (_(), P(Ll, {
3415
+ g("div", Ta, [
3416
+ H.value === "style" ? (_(), P($l, {
3420
3417
  key: 0,
3421
- token: H.value,
3418
+ token: K.value,
3422
3419
  "style-text": we.value,
3423
- "style-yaml": K.value,
3424
- "onUpdate:styleYaml": d[1] || (d[1] = (A) => K.value = A),
3420
+ "style-yaml": G.value,
3421
+ "onUpdate:styleYaml": d[1] || (d[1] = (A) => G.value = A),
3425
3422
  "onUpdate:styleText": d[2] || (d[2] = (A) => we.value = A),
3426
- onUpdate: ci
3427
- }, null, 8, ["token", "style-text", "style-yaml"])) : z.value === "legend" ? (_(), P(Yl, {
3423
+ onSave: d[3] || (d[3] = (A) => Te("style", A))
3424
+ }, null, 8, ["token", "style-text", "style-yaml"])) : H.value === "legend" ? (_(), P(Dl, {
3428
3425
  key: 1,
3429
- token: H.value,
3426
+ token: K.value,
3430
3427
  columns: ye.value,
3431
- "onUpdate:columns": d[3] || (d[3] = (A) => ye.value = A),
3432
- onSave: d[4] || (d[4] = (A) => Ve("legend", A))
3433
- }, null, 8, ["token", "columns"])) : z.value === "popup" ? (_(), P(Rl, {
3428
+ "onUpdate:columns": d[4] || (d[4] = (A) => ye.value = A),
3429
+ onSave: d[5] || (d[5] = (A) => Te("legend", A))
3430
+ }, null, 8, ["token", "columns"])) : H.value === "popup" ? (_(), P(Rl, {
3434
3431
  key: 2,
3435
- token: H.value,
3432
+ token: K.value,
3436
3433
  columns: on.value,
3437
- fields: u.value.fields,
3438
- "onUpdate:columns": d[5] || (d[5] = (A) => on.value = A),
3439
- onSave: d[6] || (d[6] = (A) => Ve("popup", A))
3440
- }, null, 8, ["token", "columns", "fields"])) : z.value === "card" ? (_(), P(Jl, {
3434
+ fields: s.value.fields,
3435
+ "onUpdate:columns": d[6] || (d[6] = (A) => on.value = A),
3436
+ onSave: d[7] || (d[7] = (A) => Te("popup", A))
3437
+ }, null, 8, ["token", "columns", "fields"])) : H.value === "card" ? (_(), P(Ql, {
3441
3438
  key: 3,
3442
- token: H.value,
3443
- columns: Pe.value,
3444
- fields: u.value.fields,
3439
+ token: K.value,
3440
+ columns: Me.value,
3441
+ fields: s.value.fields,
3445
3442
  "view-mode": ln.value,
3446
3443
  html: an.value,
3447
- "onUpdate:columns": d[7] || (d[7] = (A) => Pe.value = A),
3448
- onSave: fi
3449
- }, null, 8, ["token", "columns", "fields", "view-mode", "html"])) : z.value === "filter" ? (_(), P(Zl, {
3450
- key: 4,
3451
- token: H.value,
3452
- fields: u.value.fields,
3453
- columns: Me.value,
3454
3444
  "onUpdate:columns": d[8] || (d[8] = (A) => Me.value = A),
3455
- onSave: d[9] || (d[9] = (A) => Ve("filters", A))
3456
- }, null, 8, ["token", "fields", "columns"])) : z.value === "metadata" ? (_(), P(Li, {
3445
+ onSave: ci
3446
+ }, null, 8, ["token", "columns", "fields", "view-mode", "html"])) : H.value === "filter" ? (_(), P(Xl, {
3447
+ key: 4,
3448
+ token: K.value,
3449
+ fields: s.value.fields,
3450
+ columns: Ue.value,
3451
+ "onUpdate:columns": d[9] || (d[9] = (A) => Ue.value = A),
3452
+ onSave: d[10] || (d[10] = (A) => Te("filters", A))
3453
+ }, null, 8, ["token", "fields", "columns"])) : H.value === "metadata" ? (_(), P($i, {
3457
3454
  key: 5,
3458
- data: s.value,
3455
+ data: u.value,
3459
3456
  "entity-id": String(ze(o)),
3460
3457
  "entity-type": "service",
3461
- onSaved: qe
3458
+ onSaved: Ve
3462
3459
  }, null, 8, ["data", "entity-id"])) : W("", !0)
3463
3460
  ])
3464
3461
  ])
@@ -3466,7 +3463,7 @@ ${B}` : B;
3466
3463
  ]);
3467
3464
  };
3468
3465
  }
3469
- }), Ba = /* @__PURE__ */ Xe(Na, [["__scopeId", "data-v-21ef302a"]]);
3466
+ }), Va = /* @__PURE__ */ Xe(Ia, [["__scopeId", "data-v-57d42c14"]]);
3470
3467
  export {
3471
- Ba as default
3468
+ Va as default
3472
3469
  };