@arbocollab/arbo-plugin-item-table 0.1.62 → 0.1.63

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.
@@ -7930,15 +7930,799 @@ const Yt = {
7930
7930
  Bg(e._tooltipInstance), delete e._tooltipInstance;
7931
7931
  }
7932
7932
  };
7933
- var GD = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7934
- function Sz(e) {
7933
+ function Sz(e, t, n) {
7934
+ const o = document.createElement("div");
7935
+ o.className = n;
7936
+ const s = qA(e, t);
7937
+ return s.mount(o), { container: o, app: s };
7938
+ }
7939
+ function Hg(e) {
7940
+ if (!e) return;
7941
+ const t = e._vueApp;
7942
+ if (t)
7943
+ try {
7944
+ t.unmount(), delete e._vueApp;
7945
+ } catch (n) {
7946
+ console.warn("Error unmounting Vue app:", n);
7947
+ }
7948
+ }
7949
+ function Ez(e, t) {
7950
+ e._vueApp = t;
7951
+ }
7952
+ const _z = (e) => {
7953
+ const { container: t, app: n } = Sz(
7954
+ cZ,
7955
+ {
7956
+ user: e.user,
7957
+ status: e.status,
7958
+ timezone: e.timezone,
7959
+ userConfig: e.userConfig,
7960
+ showInsightButton: e.showInsightButton,
7961
+ showCopyLinkButton: e.showCopyLinkButton,
7962
+ apiUpdateFunction: e.apiUpdateFunction,
7963
+ refreshInterval: e.refreshInterval,
7964
+ enableAutoRefresh: e.enableAutoRefresh,
7965
+ onInsightClick: e.onInsightClick,
7966
+ onCopyLink: e.onCopyLink
7967
+ },
7968
+ "user-profile-tooltip-content"
7969
+ );
7970
+ return Ez(t, n), t;
7971
+ }, GD = (e) => {
7972
+ e._userProfileContainer && (Hg(e._userProfileContainer), delete e._userProfileContainer), e._userProfileInstance && (Bg(e._userProfileInstance), delete e._userProfileInstance), e.style.cursor = "", e.classList.remove("user-profile-trigger");
7973
+ }, Rz = {
7974
+ mounted(e, t) {
7975
+ var o, s;
7976
+ if (!((o = t.value) != null && o.user)) {
7977
+ console.warn("[UserProfile] User data is required");
7978
+ return;
7979
+ }
7980
+ const n = t.value;
7981
+ n.onInsightClick = () => {
7982
+ var i;
7983
+ (i = e._userProfileInstance) == null || i.hide();
7984
+ }, e._userProfileInstance = yk(e, {
7985
+ ...Pb,
7986
+ delay: [300, 0],
7987
+ content: ((s = n.user) == null ? void 0 : s.name) || "User",
7988
+ placement: n.placement || "bottom-start",
7989
+ trigger: "mouseenter focus",
7990
+ appendTo: n.appendTo || Pb.appendTo,
7991
+ onShow(i) {
7992
+ e._userProfileContainer && Hg(e._userProfileContainer);
7993
+ const r = _z(n);
7994
+ e._userProfileContainer = r, i.setContent(r);
7995
+ },
7996
+ onHidden() {
7997
+ setTimeout(() => {
7998
+ e._userProfileContainer && (Hg(e._userProfileContainer), e._userProfileContainer = void 0);
7999
+ }, 200);
8000
+ },
8001
+ onDestroy() {
8002
+ e._userProfileContainer && (Hg(e._userProfileContainer), e._userProfileContainer = void 0);
8003
+ }
8004
+ }), e._userProfileInstance.enable(), e.classList.add("user-profile-trigger");
8005
+ },
8006
+ updated(e, t) {
8007
+ var n;
8008
+ if (!(!((n = t.value) != null && n.user) || !e._userProfileInstance) && t.value !== t.oldValue)
8009
+ try {
8010
+ e._userProfileInstance.setProps({
8011
+ placement: t.value.placement || "bottom-start"
8012
+ }), e._userProfileInstance.hide();
8013
+ } catch (o) {
8014
+ console.warn("Error updating tooltip props:", o);
8015
+ }
8016
+ },
8017
+ beforeUnmount(e) {
8018
+ GD(e);
8019
+ },
8020
+ unmounted(e) {
8021
+ GD(e);
8022
+ }
8023
+ }, Dz = ["type", "disabled", "aria-readonly", "data-is-primary"], Tz = { key: 0 }, xz = /* @__PURE__ */ pt({
8024
+ __name: "Button",
8025
+ props: {
8026
+ label: { default: "" },
8027
+ variant: { default: "primary" },
8028
+ size: { default: "default" },
8029
+ disabled: { type: Boolean, default: !1 },
8030
+ type: { default: "button" },
8031
+ rounded: { type: Boolean },
8032
+ highlightOnHover: { type: Boolean },
8033
+ border: { type: Boolean },
8034
+ action: {},
8035
+ readOnly: { type: Boolean, default: !1 },
8036
+ actived: { type: Boolean, default: !1 },
8037
+ loading: { type: Boolean },
8038
+ tooltip: {}
8039
+ },
8040
+ emits: ["handleClick", "escape", "select"],
8041
+ setup(e, { expose: t, emit: n }) {
8042
+ const o = Yt, s = e, i = B(!1), r = B(null), a = () => {
8043
+ s.disabled || (i.value = !0);
8044
+ }, l = () => {
8045
+ s.disabled || (i.value = !1);
8046
+ };
8047
+ nn(() => {
8048
+ r.value && (r.value.addEventListener("mouseenter", a), r.value.addEventListener("mouseleave", l));
8049
+ }), fo(() => {
8050
+ r.value && (r.value.removeEventListener("mouseenter", a), r.value.removeEventListener("mouseleave", l));
8051
+ });
8052
+ const u = n, c = /* @__PURE__ */ new Set(["primary", "secondary", "tertiary", "text", "menu-item"]), d = X(
8053
+ () => Array.isArray(s.variant) ? s.variant : [s.variant]
8054
+ ), h = Xv(), f = X(() => {
8055
+ const E = [h.customButton], R = d.value.find((x) => c.has(x)) || "primary";
8056
+ return E.push(h[`is-${R}`]), d.value.includes("danger") && E.push(h["is-danger"]), d.value.includes("icon") && E.push(h["is-icon"]), s.readOnly && E.push(h["is-readonly"]), s.rounded && E.push(h["is-rounded"]), s.border && E.push(h["has-border"]), s.highlightOnHover && E.push(h["highlight-on-hover"]), S.value && E.push(h["has-prefix"]), C.value && E.push(h["has-suffix"]), s.actived && E.push(h["is-active"]), s.disabled && E.push(h.disabled), s.loading && E.push(h["is-loading"]), typeof s.size == "string" && E.push(h[`size-${s.size}`]), E;
8057
+ }), p = X(() => {
8058
+ var E;
8059
+ return s.variant == "primary" || ((E = s.variant) == null ? void 0 : E.includes("primary"));
8060
+ }), g = X(() => s.readOnly === !0), v = X(() => typeof s.size == "number" ? {
8061
+ "--button-size": `${s.size}px`
8062
+ } : {}), w = (E) => {
8063
+ var R;
8064
+ s.disabled || s.readOnly || (u("handleClick", E), (R = s.action) == null || R.call(s));
8065
+ }, b = kE(), S = X(() => !!b.prefix), C = X(() => !!b.suffix);
8066
+ return t({
8067
+ buttonRef: r,
8068
+ focus: () => {
8069
+ var E;
8070
+ (E = r.value) == null || E.focus();
8071
+ },
8072
+ escape: (E) => {
8073
+ u("escape", E);
8074
+ },
8075
+ select: () => {
8076
+ var E;
8077
+ (E = r.value) == null || E.click();
8078
+ },
8079
+ blur: () => {
8080
+ var E, R;
8081
+ console.log("Blurring button:", (E = r.value) == null ? void 0 : E.blur), (R = r.value) == null || R.blur();
8082
+ }
8083
+ }), (E, R) => (q(), ue("button", {
8084
+ class: Q(f.value),
8085
+ type: s.type,
8086
+ disabled: s.disabled,
8087
+ "aria-readonly": g.value,
8088
+ style: hn(v.value),
8089
+ onClick: w,
8090
+ ref_key: "buttonRef",
8091
+ ref: r,
8092
+ "data-is-primary": p.value
8093
+ }, [
8094
+ kt(E.$slots, "prefix"),
8095
+ kt(E.$slots, "default", { hovered: i.value }, () => [
8096
+ e.label ? Ue((q(), ue("span", Tz, [
8097
+ st(bt(e.label), 1)
8098
+ ])), [
8099
+ [U(o), { content: e.label }]
8100
+ ]) : Xe("", !0)
8101
+ ]),
8102
+ kt(E.$slots, "suffix")
8103
+ ], 14, Dz));
8104
+ }
8105
+ }), Iz = "_customButton_1wk2f_1", Fz = "_spin_1wk2f_1", Pz = {
8106
+ customButton: Iz,
8107
+ "size-extra-small": "_size-extra-small_1wk2f_21",
8108
+ "size-small": "_size-small_1wk2f_26",
8109
+ "size-medium": "_size-medium_1wk2f_31",
8110
+ "size-large": "_size-large_1wk2f_36",
8111
+ "size-default": "_size-default_1wk2f_41",
8112
+ "is-primary": "_is-primary_1wk2f_44",
8113
+ "is-active": "_is-active_1wk2f_52",
8114
+ "is-danger": "_is-danger_1wk2f_55",
8115
+ "is-secondary": "_is-secondary_1wk2f_64",
8116
+ "is-tertiary": "_is-tertiary_1wk2f_88",
8117
+ "is-text": "_is-text_1wk2f_108",
8118
+ "is-menu-item": "_is-menu-item_1wk2f_125",
8119
+ "is-readonly": "_is-readonly_1wk2f_169",
8120
+ "is-rounded": "_is-rounded_1wk2f_172",
8121
+ "has-border": "_has-border_1wk2f_175",
8122
+ "highlight-on-hover": "_highlight-on-hover_1wk2f_178",
8123
+ "icon-wrapper": "_icon-wrapper_1wk2f_178",
8124
+ "is-loading": "_is-loading_1wk2f_181",
8125
+ spin: Fz,
8126
+ "is-icon": "_is-icon_1wk2f_210"
8127
+ }, Rt = (e, t) => {
8128
+ const n = e.__vccOpts || e;
8129
+ for (const [o, s] of t)
8130
+ n[o] = s;
8131
+ return n;
8132
+ }, Az = {
8133
+ $style: Pz
8134
+ }, yt = /* @__PURE__ */ Rt(xz, [["__cssModules", Az]]);
8135
+ /*!
8136
+ * Compressor.js v1.2.1
8137
+ * https://fengyuanchen.github.io/compressorjs
8138
+ *
8139
+ * Copyright 2018-present Chen Fengyuan
8140
+ * Released under the MIT license
8141
+ *
8142
+ * Date: 2023-02-28T14:09:41.732Z
8143
+ */
8144
+ function UD(e, t) {
8145
+ var n = Object.keys(e);
8146
+ if (Object.getOwnPropertySymbols) {
8147
+ var o = Object.getOwnPropertySymbols(e);
8148
+ t && (o = o.filter(function(s) {
8149
+ return Object.getOwnPropertyDescriptor(e, s).enumerable;
8150
+ })), n.push.apply(n, o);
8151
+ }
8152
+ return n;
8153
+ }
8154
+ function Kp(e) {
8155
+ for (var t = 1; t < arguments.length; t++) {
8156
+ var n = arguments[t] != null ? arguments[t] : {};
8157
+ t % 2 ? UD(Object(n), !0).forEach(function(o) {
8158
+ Mz(e, o, n[o]);
8159
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UD(Object(n)).forEach(function(o) {
8160
+ Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
8161
+ });
8162
+ }
8163
+ return e;
8164
+ }
8165
+ function kz(e, t) {
8166
+ if (!(e instanceof t))
8167
+ throw new TypeError("Cannot call a class as a function");
8168
+ }
8169
+ function WD(e, t) {
8170
+ for (var n = 0; n < t.length; n++) {
8171
+ var o = t[n];
8172
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, bk(o.key), o);
8173
+ }
8174
+ }
8175
+ function Oz(e, t, n) {
8176
+ return t && WD(e.prototype, t), n && WD(e, n), Object.defineProperty(e, "prototype", {
8177
+ writable: !1
8178
+ }), e;
8179
+ }
8180
+ function Mz(e, t, n) {
8181
+ return t = bk(t), t in e ? Object.defineProperty(e, t, {
8182
+ value: n,
8183
+ enumerable: !0,
8184
+ configurable: !0,
8185
+ writable: !0
8186
+ }) : e[t] = n, e;
8187
+ }
8188
+ function jm() {
8189
+ return jm = Object.assign ? Object.assign.bind() : function(e) {
8190
+ for (var t = 1; t < arguments.length; t++) {
8191
+ var n = arguments[t];
8192
+ for (var o in n)
8193
+ Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
8194
+ }
8195
+ return e;
8196
+ }, jm.apply(this, arguments);
8197
+ }
8198
+ function Nz(e, t) {
8199
+ if (typeof e != "object" || e === null) return e;
8200
+ var n = e[Symbol.toPrimitive];
8201
+ if (n !== void 0) {
8202
+ var o = n.call(e, t);
8203
+ if (typeof o != "object") return o;
8204
+ throw new TypeError("@@toPrimitive must return a primitive value.");
8205
+ }
8206
+ return String(e);
8207
+ }
8208
+ function bk(e) {
8209
+ var t = Nz(e, "string");
8210
+ return typeof t == "symbol" ? t : String(t);
8211
+ }
8212
+ var Sk = { exports: {} };
8213
+ (function(e) {
8214
+ typeof window > "u" || function(t) {
8215
+ var n = t.HTMLCanvasElement && t.HTMLCanvasElement.prototype, o = t.Blob && function() {
8216
+ try {
8217
+ return !!new Blob();
8218
+ } catch {
8219
+ return !1;
8220
+ }
8221
+ }(), s = o && t.Uint8Array && function() {
8222
+ try {
8223
+ return new Blob([new Uint8Array(100)]).size === 100;
8224
+ } catch {
8225
+ return !1;
8226
+ }
8227
+ }(), i = t.BlobBuilder || t.WebKitBlobBuilder || t.MozBlobBuilder || t.MSBlobBuilder, r = /^data:((.*?)(;charset=.*?)?)(;base64)?,/, a = (o || i) && t.atob && t.ArrayBuffer && t.Uint8Array && function(l) {
8228
+ var u, c, d, h, f, p, g, v, w;
8229
+ if (u = l.match(r), !u)
8230
+ throw new Error("invalid data URI");
8231
+ for (c = u[2] ? u[1] : "text/plain" + (u[3] || ";charset=US-ASCII"), d = !!u[4], h = l.slice(u[0].length), d ? f = atob(h) : f = decodeURIComponent(h), p = new ArrayBuffer(f.length), g = new Uint8Array(p), v = 0; v < f.length; v += 1)
8232
+ g[v] = f.charCodeAt(v);
8233
+ return o ? new Blob([s ? g : p], {
8234
+ type: c
8235
+ }) : (w = new i(), w.append(p), w.getBlob(c));
8236
+ };
8237
+ t.HTMLCanvasElement && !n.toBlob && (n.mozGetAsFile ? n.toBlob = function(l, u, c) {
8238
+ var d = this;
8239
+ setTimeout(function() {
8240
+ c && n.toDataURL && a ? l(a(d.toDataURL(u, c))) : l(d.mozGetAsFile("blob", u));
8241
+ });
8242
+ } : n.toDataURL && a && (n.msToBlob ? n.toBlob = function(l, u, c) {
8243
+ var d = this;
8244
+ setTimeout(function() {
8245
+ (u && u !== "image/png" || c) && n.toDataURL && a ? l(a(d.toDataURL(u, c))) : l(d.msToBlob(u));
8246
+ });
8247
+ } : n.toBlob = function(l, u, c) {
8248
+ var d = this;
8249
+ setTimeout(function() {
8250
+ l(a(d.toDataURL(u, c)));
8251
+ });
8252
+ })), e.exports ? e.exports = a : t.dataURLtoBlob = a;
8253
+ }(window);
8254
+ })(Sk);
8255
+ var zD = Sk.exports, Lz = function(t) {
8256
+ return typeof Blob > "u" ? !1 : t instanceof Blob || Object.prototype.toString.call(t) === "[object Blob]";
8257
+ }, jD = {
8258
+ /**
8259
+ * Indicates if output the original image instead of the compressed one
8260
+ * when the size of the compressed image is greater than the original one's
8261
+ * @type {boolean}
8262
+ */
8263
+ strict: !0,
8264
+ /**
8265
+ * Indicates if read the image's Exif Orientation information,
8266
+ * and then rotate or flip the image automatically.
8267
+ * @type {boolean}
8268
+ */
8269
+ checkOrientation: !0,
8270
+ /**
8271
+ * Indicates if retain the image's Exif information after compressed.
8272
+ * @type {boolean}
8273
+ */
8274
+ retainExif: !1,
8275
+ /**
8276
+ * The max width of the output image.
8277
+ * @type {number}
8278
+ */
8279
+ maxWidth: 1 / 0,
8280
+ /**
8281
+ * The max height of the output image.
8282
+ * @type {number}
8283
+ */
8284
+ maxHeight: 1 / 0,
8285
+ /**
8286
+ * The min width of the output image.
8287
+ * @type {number}
8288
+ */
8289
+ minWidth: 0,
8290
+ /**
8291
+ * The min height of the output image.
8292
+ * @type {number}
8293
+ */
8294
+ minHeight: 0,
8295
+ /**
8296
+ * The width of the output image.
8297
+ * If not specified, the natural width of the source image will be used.
8298
+ * @type {number}
8299
+ */
8300
+ width: void 0,
8301
+ /**
8302
+ * The height of the output image.
8303
+ * If not specified, the natural height of the source image will be used.
8304
+ * @type {number}
8305
+ */
8306
+ height: void 0,
8307
+ /**
8308
+ * Sets how the size of the image should be resized to the container
8309
+ * specified by the `width` and `height` options.
8310
+ * @type {string}
8311
+ */
8312
+ resize: "none",
8313
+ /**
8314
+ * The quality of the output image.
8315
+ * It must be a number between `0` and `1`,
8316
+ * and only available for `image/jpeg` and `image/webp` images.
8317
+ * Check out {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob canvas.toBlob}.
8318
+ * @type {number}
8319
+ */
8320
+ quality: 0.8,
8321
+ /**
8322
+ * The mime type of the output image.
8323
+ * By default, the original mime type of the source image file will be used.
8324
+ * @type {string}
8325
+ */
8326
+ mimeType: "auto",
8327
+ /**
8328
+ * Files whose file type is included in this list,
8329
+ * and whose file size exceeds the `convertSize` value will be converted to JPEGs.
8330
+ * @type {string|Array}
8331
+ */
8332
+ convertTypes: ["image/png"],
8333
+ /**
8334
+ * PNG files over this size (5 MB by default) will be converted to JPEGs.
8335
+ * To disable this, just set the value to `Infinity`.
8336
+ * @type {number}
8337
+ */
8338
+ convertSize: 5e6,
8339
+ /**
8340
+ * The hook function to execute before draw the image into the canvas for compression.
8341
+ * @type {Function}
8342
+ * @param {CanvasRenderingContext2D} context - The 2d rendering context of the canvas.
8343
+ * @param {HTMLCanvasElement} canvas - The canvas for compression.
8344
+ * @example
8345
+ * function (context, canvas) {
8346
+ * context.fillStyle = '#fff';
8347
+ * }
8348
+ */
8349
+ beforeDraw: null,
8350
+ /**
8351
+ * The hook function to execute after drew the image into the canvas for compression.
8352
+ * @type {Function}
8353
+ * @param {CanvasRenderingContext2D} context - The 2d rendering context of the canvas.
8354
+ * @param {HTMLCanvasElement} canvas - The canvas for compression.
8355
+ * @example
8356
+ * function (context, canvas) {
8357
+ * context.filter = 'grayscale(100%)';
8358
+ * }
8359
+ */
8360
+ drew: null,
8361
+ /**
8362
+ * The hook function to execute when success to compress the image.
8363
+ * @type {Function}
8364
+ * @param {File} file - The compressed image File object.
8365
+ * @example
8366
+ * function (file) {
8367
+ * console.log(file);
8368
+ * }
8369
+ */
8370
+ success: null,
8371
+ /**
8372
+ * The hook function to execute when fail to compress the image.
8373
+ * @type {Function}
8374
+ * @param {Error} err - An Error object.
8375
+ * @example
8376
+ * function (err) {
8377
+ * console.log(err.message);
8378
+ * }
8379
+ */
8380
+ error: null
8381
+ }, Vz = typeof window < "u" && typeof window.document < "u", Ja = Vz ? window : {}, Km = function(t) {
8382
+ return t > 0 && t < 1 / 0;
8383
+ }, Bz = Array.prototype.slice;
8384
+ function ZE(e) {
8385
+ return Array.from ? Array.from(e) : Bz.call(e);
8386
+ }
8387
+ var Hz = /^image\/.+$/;
8388
+ function Ab(e) {
8389
+ return Hz.test(e);
8390
+ }
8391
+ function $z(e) {
8392
+ var t = Ab(e) ? e.substr(6) : "";
8393
+ return t === "jpeg" && (t = "jpg"), ".".concat(t);
8394
+ }
8395
+ var Ek = String.fromCharCode;
8396
+ function Gz(e, t, n) {
8397
+ var o = "", s;
8398
+ for (n += t, s = t; s < n; s += 1)
8399
+ o += Ek(e.getUint8(s));
8400
+ return o;
8401
+ }
8402
+ var Uz = Ja.btoa;
8403
+ function KD(e, t) {
8404
+ for (var n = [], o = 8192, s = new Uint8Array(e); s.length > 0; )
8405
+ n.push(Ek.apply(null, ZE(s.subarray(0, o)))), s = s.subarray(o);
8406
+ return "data:".concat(t, ";base64,").concat(Uz(n.join("")));
8407
+ }
8408
+ function Wz(e) {
8409
+ var t = new DataView(e), n;
8410
+ try {
8411
+ var o, s, i;
8412
+ if (t.getUint8(0) === 255 && t.getUint8(1) === 216)
8413
+ for (var r = t.byteLength, a = 2; a + 1 < r; ) {
8414
+ if (t.getUint8(a) === 255 && t.getUint8(a + 1) === 225) {
8415
+ s = a;
8416
+ break;
8417
+ }
8418
+ a += 1;
8419
+ }
8420
+ if (s) {
8421
+ var l = s + 4, u = s + 10;
8422
+ if (Gz(t, l, 4) === "Exif") {
8423
+ var c = t.getUint16(u);
8424
+ if (o = c === 18761, (o || c === 19789) && t.getUint16(u + 2, o) === 42) {
8425
+ var d = t.getUint32(u + 4, o);
8426
+ d >= 8 && (i = u + d);
8427
+ }
8428
+ }
8429
+ }
8430
+ if (i) {
8431
+ var h = t.getUint16(i, o), f, p;
8432
+ for (p = 0; p < h; p += 1)
8433
+ if (f = i + p * 12 + 2, t.getUint16(f, o) === 274) {
8434
+ f += 8, n = t.getUint16(f, o), t.setUint16(f, 1, o);
8435
+ break;
8436
+ }
8437
+ }
8438
+ } catch {
8439
+ n = 1;
8440
+ }
8441
+ return n;
8442
+ }
8443
+ function zz(e) {
8444
+ var t = 0, n = 1, o = 1;
8445
+ switch (e) {
8446
+ case 2:
8447
+ n = -1;
8448
+ break;
8449
+ case 3:
8450
+ t = -180;
8451
+ break;
8452
+ case 4:
8453
+ o = -1;
8454
+ break;
8455
+ case 5:
8456
+ t = 90, o = -1;
8457
+ break;
8458
+ case 6:
8459
+ t = 90;
8460
+ break;
8461
+ case 7:
8462
+ t = 90, n = -1;
8463
+ break;
8464
+ case 8:
8465
+ t = -90;
8466
+ break;
8467
+ }
8468
+ return {
8469
+ rotate: t,
8470
+ scaleX: n,
8471
+ scaleY: o
8472
+ };
8473
+ }
8474
+ var jz = /\.\d*(?:0|9){12}\d*$/;
8475
+ function qD(e) {
8476
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1e11;
8477
+ return jz.test(e) ? Math.round(e * t) / t : e;
8478
+ }
8479
+ function Kd(e) {
8480
+ var t = e.aspectRatio, n = e.height, o = e.width, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none", i = Km(o), r = Km(n);
8481
+ if (i && r) {
8482
+ var a = n * t;
8483
+ (s === "contain" || s === "none") && a > o || s === "cover" && a < o ? n = o / t : o = n * t;
8484
+ } else i ? n = o / t : r && (o = n * t);
8485
+ return {
8486
+ width: o,
8487
+ height: n
8488
+ };
8489
+ }
8490
+ function Kz(e) {
8491
+ for (var t = ZE(new Uint8Array(e)), n = t.length, o = [], s = 0; s + 3 < n; ) {
8492
+ var i = t[s], r = t[s + 1];
8493
+ if (i === 255 && r === 218)
8494
+ break;
8495
+ if (i === 255 && r === 216)
8496
+ s += 2;
8497
+ else {
8498
+ var a = t[s + 2] * 256 + t[s + 3], l = s + a + 2, u = t.slice(s, l);
8499
+ o.push(u), s = l;
8500
+ }
8501
+ }
8502
+ return o.reduce(function(c, d) {
8503
+ return d[0] === 255 && d[1] === 225 ? c.concat(d) : c;
8504
+ }, []);
8505
+ }
8506
+ function qz(e, t) {
8507
+ var n = ZE(new Uint8Array(e));
8508
+ if (n[2] !== 255 || n[3] !== 224)
8509
+ return e;
8510
+ var o = n[4] * 256 + n[5], s = [255, 216].concat(t, n.slice(4 + o));
8511
+ return new Uint8Array(s);
8512
+ }
8513
+ var Yz = Ja.ArrayBuffer, Mw = Ja.FileReader, bl = Ja.URL || Ja.webkitURL, Zz = /\.\w+$/, Xz = Ja.Compressor, Jz = /* @__PURE__ */ function() {
8514
+ function e(t, n) {
8515
+ kz(this, e), this.file = t, this.exif = [], this.image = new Image(), this.options = Kp(Kp({}, jD), n), this.aborted = !1, this.result = null, this.init();
8516
+ }
8517
+ return Oz(e, [{
8518
+ key: "init",
8519
+ value: function() {
8520
+ var n = this, o = this.file, s = this.options;
8521
+ if (!Lz(o)) {
8522
+ this.fail(new Error("The first argument must be a File or Blob object."));
8523
+ return;
8524
+ }
8525
+ var i = o.type;
8526
+ if (!Ab(i)) {
8527
+ this.fail(new Error("The first argument must be an image File or Blob object."));
8528
+ return;
8529
+ }
8530
+ if (!bl || !Mw) {
8531
+ this.fail(new Error("The current browser does not support image compression."));
8532
+ return;
8533
+ }
8534
+ Yz || (s.checkOrientation = !1, s.retainExif = !1);
8535
+ var r = i === "image/jpeg", a = r && s.checkOrientation, l = r && s.retainExif;
8536
+ if (bl && !a && !l)
8537
+ this.load({
8538
+ url: bl.createObjectURL(o)
8539
+ });
8540
+ else {
8541
+ var u = new Mw();
8542
+ this.reader = u, u.onload = function(c) {
8543
+ var d = c.target, h = d.result, f = {}, p = 1;
8544
+ a && (p = Wz(h), p > 1 && jm(f, zz(p))), l && (n.exif = Kz(h)), a || l ? !bl || p > 1 ? f.url = KD(h, i) : f.url = bl.createObjectURL(o) : f.url = h, n.load(f);
8545
+ }, u.onabort = function() {
8546
+ n.fail(new Error("Aborted to read the image with FileReader."));
8547
+ }, u.onerror = function() {
8548
+ n.fail(new Error("Failed to read the image with FileReader."));
8549
+ }, u.onloadend = function() {
8550
+ n.reader = null;
8551
+ }, a || l ? u.readAsArrayBuffer(o) : u.readAsDataURL(o);
8552
+ }
8553
+ }
8554
+ }, {
8555
+ key: "load",
8556
+ value: function(n) {
8557
+ var o = this, s = this.file, i = this.image;
8558
+ i.onload = function() {
8559
+ o.draw(Kp(Kp({}, n), {}, {
8560
+ naturalWidth: i.naturalWidth,
8561
+ naturalHeight: i.naturalHeight
8562
+ }));
8563
+ }, i.onabort = function() {
8564
+ o.fail(new Error("Aborted to load the image."));
8565
+ }, i.onerror = function() {
8566
+ o.fail(new Error("Failed to load the image."));
8567
+ }, Ja.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Ja.navigator.userAgent) && (i.crossOrigin = "anonymous"), i.alt = s.name, i.src = n.url;
8568
+ }
8569
+ }, {
8570
+ key: "draw",
8571
+ value: function(n) {
8572
+ var o = this, s = n.naturalWidth, i = n.naturalHeight, r = n.rotate, a = r === void 0 ? 0 : r, l = n.scaleX, u = l === void 0 ? 1 : l, c = n.scaleY, d = c === void 0 ? 1 : c, h = this.file, f = this.image, p = this.options, g = document.createElement("canvas"), v = g.getContext("2d"), w = Math.abs(a) % 180 === 90, b = (p.resize === "contain" || p.resize === "cover") && Km(p.width) && Km(p.height), S = Math.max(p.maxWidth, 0) || 1 / 0, C = Math.max(p.maxHeight, 0) || 1 / 0, E = Math.max(p.minWidth, 0) || 0, R = Math.max(p.minHeight, 0) || 0, x = s / i, A = p.width, k = p.height;
8573
+ if (w) {
8574
+ var T = [C, S];
8575
+ S = T[0], C = T[1];
8576
+ var D = [R, E];
8577
+ E = D[0], R = D[1];
8578
+ var F = [k, A];
8579
+ A = F[0], k = F[1];
8580
+ }
8581
+ b && (x = A / k);
8582
+ var P = Kd({
8583
+ aspectRatio: x,
8584
+ width: S,
8585
+ height: C
8586
+ }, "contain");
8587
+ S = P.width, C = P.height;
8588
+ var H = Kd({
8589
+ aspectRatio: x,
8590
+ width: E,
8591
+ height: R
8592
+ }, "cover");
8593
+ if (E = H.width, R = H.height, b) {
8594
+ var oe = Kd({
8595
+ aspectRatio: x,
8596
+ width: A,
8597
+ height: k
8598
+ }, p.resize);
8599
+ A = oe.width, k = oe.height;
8600
+ } else {
8601
+ var $ = Kd({
8602
+ aspectRatio: x,
8603
+ width: A,
8604
+ height: k
8605
+ }), K = $.width;
8606
+ A = K === void 0 ? s : K;
8607
+ var J = $.height;
8608
+ k = J === void 0 ? i : J;
8609
+ }
8610
+ A = Math.floor(qD(Math.min(Math.max(A, E), S))), k = Math.floor(qD(Math.min(Math.max(k, R), C)));
8611
+ var Z = -A / 2, ce = -k / 2, N = A, Y = k, L = [];
8612
+ if (b) {
8613
+ var se = 0, de = 0, Ne = s, Oe = i, Ke = Kd({
8614
+ aspectRatio: x,
8615
+ width: s,
8616
+ height: i
8617
+ }, {
8618
+ contain: "cover",
8619
+ cover: "contain"
8620
+ }[p.resize]);
8621
+ Ne = Ke.width, Oe = Ke.height, se = (s - Ne) / 2, de = (i - Oe) / 2, L.push(se, de, Ne, Oe);
8622
+ }
8623
+ if (L.push(Z, ce, N, Y), w) {
8624
+ var W = [k, A];
8625
+ A = W[0], k = W[1];
8626
+ }
8627
+ g.width = A, g.height = k, Ab(p.mimeType) || (p.mimeType = h.type);
8628
+ var le = "transparent";
8629
+ h.size > p.convertSize && p.convertTypes.indexOf(p.mimeType) >= 0 && (p.mimeType = "image/jpeg");
8630
+ var Pe = p.mimeType === "image/jpeg";
8631
+ if (Pe && (le = "#fff"), v.fillStyle = le, v.fillRect(0, 0, A, k), p.beforeDraw && p.beforeDraw.call(this, v, g), !this.aborted && (v.save(), v.translate(A / 2, k / 2), v.rotate(a * Math.PI / 180), v.scale(u, d), v.drawImage.apply(v, [f].concat(L)), v.restore(), p.drew && p.drew.call(this, v, g), !this.aborted)) {
8632
+ var Ge = function(te) {
8633
+ if (!o.aborted) {
8634
+ var ye = function(V) {
8635
+ return o.done({
8636
+ naturalWidth: s,
8637
+ naturalHeight: i,
8638
+ result: V
8639
+ });
8640
+ };
8641
+ if (te && Pe && p.retainExif && o.exif && o.exif.length > 0) {
8642
+ var Ie = function(V) {
8643
+ return ye(zD(KD(qz(V, o.exif), p.mimeType)));
8644
+ };
8645
+ if (te.arrayBuffer)
8646
+ te.arrayBuffer().then(Ie).catch(function() {
8647
+ o.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."));
8648
+ });
8649
+ else {
8650
+ var Te = new Mw();
8651
+ o.reader = Te, Te.onload = function(O) {
8652
+ var V = O.target;
8653
+ Ie(V.result);
8654
+ }, Te.onabort = function() {
8655
+ o.fail(new Error("Aborted to read the compressed image with FileReader."));
8656
+ }, Te.onerror = function() {
8657
+ o.fail(new Error("Failed to read the compressed image with FileReader."));
8658
+ }, Te.onloadend = function() {
8659
+ o.reader = null;
8660
+ }, Te.readAsArrayBuffer(te);
8661
+ }
8662
+ } else
8663
+ ye(te);
8664
+ }
8665
+ };
8666
+ g.toBlob ? g.toBlob(Ge, p.mimeType, p.quality) : Ge(zD(g.toDataURL(p.mimeType, p.quality)));
8667
+ }
8668
+ }
8669
+ }, {
8670
+ key: "done",
8671
+ value: function(n) {
8672
+ var o = n.naturalWidth, s = n.naturalHeight, i = n.result, r = this.file, a = this.image, l = this.options;
8673
+ if (bl && a.src.indexOf("blob:") === 0 && bl.revokeObjectURL(a.src), i)
8674
+ if (l.strict && !l.retainExif && i.size > r.size && l.mimeType === r.type && !(l.width > o || l.height > s || l.minWidth > o || l.minHeight > s || l.maxWidth < o || l.maxHeight < s))
8675
+ i = r;
8676
+ else {
8677
+ var u = /* @__PURE__ */ new Date();
8678
+ i.lastModified = u.getTime(), i.lastModifiedDate = u, i.name = r.name, i.name && i.type !== r.type && (i.name = i.name.replace(Zz, $z(i.type)));
8679
+ }
8680
+ else
8681
+ i = r;
8682
+ this.result = i, l.success && l.success.call(this, i);
8683
+ }
8684
+ }, {
8685
+ key: "fail",
8686
+ value: function(n) {
8687
+ var o = this.options;
8688
+ if (o.error)
8689
+ o.error.call(this, n);
8690
+ else
8691
+ throw n;
8692
+ }
8693
+ }, {
8694
+ key: "abort",
8695
+ value: function() {
8696
+ this.aborted || (this.aborted = !0, this.reader ? this.reader.abort() : this.image.complete ? this.fail(new Error("The compression process has been aborted.")) : (this.image.onload = null, this.image.onabort()));
8697
+ }
8698
+ /**
8699
+ * Get the no conflict compressor class.
8700
+ * @returns {Compressor} The compressor class.
8701
+ */
8702
+ }], [{
8703
+ key: "noConflict",
8704
+ value: function() {
8705
+ return window.Compressor = Xz, e;
8706
+ }
8707
+ /**
8708
+ * Change the default options.
8709
+ * @param {Object} options - The new default options.
8710
+ */
8711
+ }, {
8712
+ key: "setDefaults",
8713
+ value: function(n) {
8714
+ jm(jD, n);
8715
+ }
8716
+ }]), e;
8717
+ }(), YD = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
8718
+ function Qz(e) {
7935
8719
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7936
8720
  }
7937
- var bk = { exports: {} };
8721
+ var _k = { exports: {} };
7938
8722
  (function(e, t) {
7939
8723
  (function(n, o) {
7940
8724
  e.exports = o();
7941
- })(GD, function() {
8725
+ })(YD, function() {
7942
8726
  var n = function(m, y) {
7943
8727
  return (n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, I) {
7944
8728
  _.__proto__ = I;
@@ -7955,7 +8739,7 @@ var bk = { exports: {} };
7955
8739
  for (var I, M = 0, G = y.length; M < G; M++) !I && M in y || ((I = I || Array.prototype.slice.call(y, 0, M))[M] = y[M]);
7956
8740
  return m.concat(I || Array.prototype.slice.call(y));
7957
8741
  }
7958
- var i = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : GD, r = Object.keys, a = Array.isArray;
8742
+ var i = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : YD, r = Object.keys, a = Array.isArray;
7959
8743
  function l(m, y) {
7960
8744
  return typeof y != "object" || r(y).forEach(function(_) {
7961
8745
  m[_] = y[_];
@@ -9119,9 +9903,9 @@ var bk = { exports: {} };
9119
9903
  function ke(Be) {
9120
9904
  var We = Math.min(_e, Se.length - Be);
9121
9905
  return ie.getMany({ trans: I, keys: Se.slice(Be, Be + We), cache: "immutable" }).then(function(nt) {
9122
- for (var ht = [], ot = [], rt = pe ? [] : null, mt = [], dt = 0; dt < We; ++dt) {
9123
- var St = nt[dt], zt = { value: P(St), primKey: Se[Be + dt] };
9124
- ne.call(zt, zt.value, zt) !== !1 && (zt.value == null ? mt.push(Se[Be + dt]) : pe || sn(be(St), be(zt.value)) === 0 ? (ot.push(zt.value), pe && rt.push(Se[Be + dt])) : (mt.push(Se[Be + dt]), ht.push(zt.value)));
9906
+ for (var ht = [], ot = [], rt = pe ? [] : null, mt = [], ct = 0; ct < We; ++ct) {
9907
+ var St = nt[ct], zt = { value: P(St), primKey: Se[Be + ct] };
9908
+ ne.call(zt, zt.value, zt) !== !1 && (zt.value == null ? mt.push(Se[Be + ct]) : pe || sn(be(St), be(zt.value)) === 0 ? (ot.push(zt.value), pe && rt.push(Se[Be + ct])) : (mt.push(Se[Be + ct]), ht.push(zt.value)));
9125
9909
  }
9126
9910
  return Promise.resolve(0 < ht.length && ie.mutate({ trans: I, type: "add", values: ht }).then(function(Xt) {
9127
9911
  for (var Jt in Xt.failures) mt.splice(parseInt(Jt), 1);
@@ -9218,11 +10002,11 @@ var bk = { exports: {} };
9218
10002
  var Le = G(ke);
9219
10003
  if (y(Le, pe, me)) return !0;
9220
10004
  for (var Be = null, We = me; We < ae; ++We) {
9221
- var nt = function(ht, ot, rt, mt, dt, St) {
10005
+ var nt = function(ht, ot, rt, mt, ct, St) {
9222
10006
  for (var zt = Math.min(ht.length, mt.length), Xt = -1, Jt = 0; Jt < zt; ++Jt) {
9223
10007
  var ws = ot[Jt];
9224
- if (ws !== mt[Jt]) return dt(ht[Jt], rt[Jt]) < 0 ? ht.substr(0, Jt) + rt[Jt] + rt.substr(Jt + 1) : dt(ht[Jt], mt[Jt]) < 0 ? ht.substr(0, Jt) + mt[Jt] + rt.substr(Jt + 1) : 0 <= Xt ? ht.substr(0, Xt) + ot[Xt] + rt.substr(Xt + 1) : null;
9225
- dt(ht[Jt], ws) < 0 && (Xt = Jt);
10008
+ if (ws !== mt[Jt]) return ct(ht[Jt], rt[Jt]) < 0 ? ht.substr(0, Jt) + rt[Jt] + rt.substr(Jt + 1) : ct(ht[Jt], mt[Jt]) < 0 ? ht.substr(0, Jt) + mt[Jt] + rt.substr(Jt + 1) : 0 <= Xt ? ht.substr(0, Xt) + ot[Xt] + rt.substr(Xt + 1) : null;
10009
+ ct(ht[Jt], ws) < 0 && (Xt = Jt);
9226
10010
  }
9227
10011
  return zt < mt.length && St === "next" ? ht + rt.substr(ht.length) : zt < ht.length && St === "prev" ? ht.substr(0, rt.length) : Xt < 0 ? null : ht.substr(0, Xt) + mt[Xt] + rt.substr(Xt + 1);
9228
10012
  }(ke, Le, ie[We], pe[We], ne, be);
@@ -9534,7 +10318,7 @@ var bk = { exports: {} };
9534
10318
  nt = Tn(nt);
9535
10319
  var ot = Se.objectStore(Ee), rt = ot.keyPath == null, mt = ke === "put" || ke === "add";
9536
10320
  if (!mt && ke !== "delete" && ke !== "deleteRange") throw new Error("Invalid operation type: " + ke);
9537
- var dt, St = (Le || Be || { length: 1 }).length;
10321
+ var ct, St = (Le || Be || { length: 1 }).length;
9538
10322
  if (Le && Be && Le.length !== Be.length) throw new Error("Given keys array must have same length as given values array.");
9539
10323
  if (St === 0) return nt({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
9540
10324
  function zt(Xo) {
@@ -9543,11 +10327,11 @@ var bk = { exports: {} };
9543
10327
  var Xt = [], Jt = [], ws = 0;
9544
10328
  if (ke === "deleteRange") {
9545
10329
  if (We.type === 4) return nt({ numFailures: ws, failures: Jt, results: [], lastResult: void 0 });
9546
- We.type === 3 ? Xt.push(dt = ot.clear()) : Xt.push(dt = ot.delete(I(We)));
10330
+ We.type === 3 ? Xt.push(ct = ot.clear()) : Xt.push(ct = ot.delete(I(We)));
9547
10331
  } else {
9548
10332
  var rt = mt ? rt ? [Be, Le] : [Be, null] : [Le, null], Wt = rt[0], Oo = rt[1];
9549
- if (mt) for (var Mo = 0; Mo < St; ++Mo) Xt.push(dt = Oo && Oo[Mo] !== void 0 ? ot[ke](Wt[Mo], Oo[Mo]) : ot[ke](Wt[Mo])), dt.onerror = zt;
9550
- else for (Mo = 0; Mo < St; ++Mo) Xt.push(dt = ot[ke](Wt[Mo])), dt.onerror = zt;
10333
+ if (mt) for (var Mo = 0; Mo < St; ++Mo) Xt.push(ct = Oo && Oo[Mo] !== void 0 ? ot[ke](Wt[Mo], Oo[Mo]) : ot[ke](Wt[Mo])), ct.onerror = zt;
10334
+ else for (Mo = 0; Mo < St; ++Mo) Xt.push(ct = ot[ke](Wt[Mo])), ct.onerror = zt;
9551
10335
  }
9552
10336
  function Hp(Xo) {
9553
10337
  Xo = Xo.target.result, Xt.forEach(function(vl, gw) {
@@ -9556,17 +10340,17 @@ var bk = { exports: {} };
9556
10340
  return vl.result;
9557
10341
  }), lastResult: Xo });
9558
10342
  }
9559
- dt.onerror = function(Xo) {
10343
+ ct.onerror = function(Xo) {
9560
10344
  zt(Xo), Hp(Xo);
9561
- }, dt.onsuccess = Hp;
10345
+ }, ct.onsuccess = Hp;
9562
10346
  });
9563
10347
  }, getMany: function(Re) {
9564
10348
  var Se = Re.trans, ke = Re.keys;
9565
10349
  return new Promise(function(Le, Be) {
9566
10350
  Le = Tn(Le);
9567
- for (var We, nt = Se.objectStore(Ee), ht = ke.length, ot = new Array(ht), rt = 0, mt = 0, dt = function(Xt) {
10351
+ for (var We, nt = Se.objectStore(Ee), ht = ke.length, ot = new Array(ht), rt = 0, mt = 0, ct = function(Xt) {
9568
10352
  Xt = Xt.target, ot[Xt._pos] = Xt.result, ++mt === rt && Le(ot);
9569
- }, St = zi(Be), zt = 0; zt < ht; ++zt) ke[zt] != null && ((We = nt.get(ke[zt]))._pos = zt, We.onsuccess = dt, We.onerror = St, ++rt);
10353
+ }, St = zi(Be), zt = 0; zt < ht; ++zt) ke[zt] != null && ((We = nt.get(ke[zt]))._pos = zt, We.onsuccess = ct, We.onerror = St, ++rt);
9570
10354
  rt === 0 && Le(ot);
9571
10355
  });
9572
10356
  }, get: function(Re) {
@@ -9581,11 +10365,11 @@ var bk = { exports: {} };
9581
10365
  }, query: (me = be, function(Re) {
9582
10366
  return new Promise(function(Se, ke) {
9583
10367
  Se = Tn(Se);
9584
- var Le, Be, We, rt = Re.trans, nt = Re.values, ht = Re.limit, dt = Re.query, ot = ht === 1 / 0 ? void 0 : ht, mt = dt.index, dt = dt.range, rt = rt.objectStore(Ee), mt = mt.isPrimaryKey ? rt : rt.index(mt.name), dt = I(dt);
10368
+ var Le, Be, We, rt = Re.trans, nt = Re.values, ht = Re.limit, ct = Re.query, ot = ht === 1 / 0 ? void 0 : ht, mt = ct.index, ct = ct.range, rt = rt.objectStore(Ee), mt = mt.isPrimaryKey ? rt : rt.index(mt.name), ct = I(ct);
9585
10369
  if (ht === 0) return Se({ result: [] });
9586
- me ? ((ot = nt ? mt.getAll(dt, ot) : mt.getAllKeys(dt, ot)).onsuccess = function(St) {
10370
+ me ? ((ot = nt ? mt.getAll(ct, ot) : mt.getAllKeys(ct, ot)).onsuccess = function(St) {
9587
10371
  return Se({ result: St.target.result });
9588
- }, ot.onerror = zi(ke)) : (Le = 0, Be = !nt && "openKeyCursor" in mt ? mt.openKeyCursor(dt) : mt.openCursor(dt), We = [], Be.onsuccess = function(St) {
10372
+ }, ot.onerror = zi(ke)) : (Le = 0, Be = !nt && "openKeyCursor" in mt ? mt.openKeyCursor(ct) : mt.openCursor(ct), We = [], Be.onsuccess = function(St) {
9589
10373
  var zt = Be.result;
9590
10374
  return zt ? (We.push(nt ? zt.value : zt.primaryKey), ++Le === ht ? Se({ result: We }) : void zt.continue()) : Se({ result: We });
9591
10375
  }, Be.onerror = zi(ke));
@@ -9594,9 +10378,9 @@ var bk = { exports: {} };
9594
10378
  var Se = Re.trans, ke = Re.values, Le = Re.query, Be = Re.reverse, We = Re.unique;
9595
10379
  return new Promise(function(nt, ht) {
9596
10380
  nt = Tn(nt);
9597
- var mt = Le.index, ot = Le.range, rt = Se.objectStore(Ee), rt = mt.isPrimaryKey ? rt : rt.index(mt.name), mt = Be ? We ? "prevunique" : "prev" : We ? "nextunique" : "next", dt = !ke && "openKeyCursor" in rt ? rt.openKeyCursor(I(ot), mt) : rt.openCursor(I(ot), mt);
9598
- dt.onerror = zi(ht), dt.onsuccess = Tn(function(St) {
9599
- var zt, Xt, Jt, ws, Wt = dt.result;
10381
+ var mt = Le.index, ot = Le.range, rt = Se.objectStore(Ee), rt = mt.isPrimaryKey ? rt : rt.index(mt.name), mt = Be ? We ? "prevunique" : "prev" : We ? "nextunique" : "next", ct = !ke && "openKeyCursor" in rt ? rt.openKeyCursor(I(ot), mt) : rt.openCursor(I(ot), mt);
10382
+ ct.onerror = zi(ht), ct.onsuccess = Tn(function(St) {
10383
+ var zt, Xt, Jt, ws, Wt = ct.result;
9600
10384
  Wt ? (Wt.___id = ++YB, Wt.done = !1, zt = Wt.continue.bind(Wt), Xt = (Xt = Wt.continuePrimaryKey) && Xt.bind(Wt), Jt = Wt.advance.bind(Wt), ws = function() {
9601
10385
  throw new Error("Cursor not stopped");
9602
10386
  }, Wt.trans = Se, Wt.stop = Wt.continue = Wt.continuePrimaryKey = Wt.advance = function() {
@@ -9610,7 +10394,7 @@ var bk = { exports: {} };
9610
10394
  });
9611
10395
  }, Wt.start = function(Oo) {
9612
10396
  function Mo() {
9613
- if (dt.result) try {
10397
+ if (ct.result) try {
9614
10398
  Oo();
9615
10399
  } catch (Xo) {
9616
10400
  Wt.fail(Xo);
@@ -9620,12 +10404,12 @@ var bk = { exports: {} };
9620
10404
  }, Wt.stop();
9621
10405
  }
9622
10406
  var Hp = new Promise(function(Xo, vl) {
9623
- Xo = Tn(Xo), dt.onerror = zi(vl), Wt.fail = vl, Wt.stop = function(gw) {
10407
+ Xo = Tn(Xo), ct.onerror = zi(vl), Wt.fail = vl, Wt.stop = function(gw) {
9624
10408
  Wt.stop = Wt.continue = Wt.continuePrimaryKey = Wt.advance = ws, Xo(gw);
9625
10409
  };
9626
10410
  });
9627
- return dt.onsuccess = Tn(function(Xo) {
9628
- dt.onsuccess = Mo, Mo();
10411
+ return ct.onsuccess = Tn(function(Xo) {
10412
+ ct.onsuccess = Mo, Mo();
9629
10413
  }), Wt.continue = zt, Wt.continuePrimaryKey = Xt, Wt.advance = Jt, Mo(), Hp;
9630
10414
  }, nt(Wt)) : nt(null);
9631
10415
  }, ht);
@@ -9719,13 +10503,13 @@ var bk = { exports: {} };
9719
10503
  ew(Ee, mt[0], mt[1].primKey, mt[1].indexes);
9720
10504
  }), We.change.forEach(function(mt) {
9721
10505
  if (mt.recreate) throw new W.Upgrade("Not yet support for changing primary key");
9722
- var dt = Ee.objectStore(mt.name);
10506
+ var ct = Ee.objectStore(mt.name);
9723
10507
  mt.add.forEach(function(St) {
9724
- return Fp(dt, St);
10508
+ return Fp(ct, St);
9725
10509
  }), mt.change.forEach(function(St) {
9726
- dt.deleteIndex(St.name), Fp(dt, St);
10510
+ ct.deleteIndex(St.name), Fp(ct, St);
9727
10511
  }), mt.del.forEach(function(St) {
9728
- return dt.deleteIndex(St);
10512
+ return ct.deleteIndex(St);
9729
10513
  });
9730
10514
  });
9731
10515
  var nt = ke._cfg.contentUpgrade;
@@ -10210,8 +10994,8 @@ var bk = { exports: {} };
10210
10994
  return (ae = ae.type === "add" || ae.type === "put" ? o(o({}, ae), { keys: Se }) : o({}, ae)).type !== "delete" && (ae.values = s([], ae.values)), ae.keys && (ae.keys = s([], ae.keys)), De = _, Ee = Se, ((me = ae).type === "add" ? Promise.resolve([]) : De.getMany({ trans: me.trans, keys: Ee, cache: "immutable" })).then(function(ke) {
10211
10995
  var Le = Se.map(function(Be, We) {
10212
10996
  var nt, ht, ot, rt = ke[We], mt = { onerror: null, onsuccess: null };
10213
- return ae.type === "delete" ? ie.fire.call(mt, Be, rt, Re) : ae.type === "add" || rt === void 0 ? (nt = pe.fire.call(mt, Be, ae.values[We], Re), Be == null && nt != null && (ae.keys[We] = Be = nt, I.outbound || x(ae.values[We], I.keyPath, Be))) : (nt = cw(rt, ae.values[We]), (ht = be.fire.call(mt, nt, Be, rt, Re)) && (ot = ae.values[We], Object.keys(ht).forEach(function(dt) {
10214
- d(ot, dt) ? ot[dt] = ht[dt] : x(ot, dt, ht[dt]);
10997
+ return ae.type === "delete" ? ie.fire.call(mt, Be, rt, Re) : ae.type === "add" || rt === void 0 ? (nt = pe.fire.call(mt, Be, ae.values[We], Re), Be == null && nt != null && (ae.keys[We] = Be = nt, I.outbound || x(ae.values[We], I.keyPath, Be))) : (nt = cw(rt, ae.values[We]), (ht = be.fire.call(mt, nt, Be, rt, Re)) && (ot = ae.values[We], Object.keys(ht).forEach(function(ct) {
10998
+ d(ot, ct) ? ot[ct] = ht[ct] : x(ot, ct, ht[ct]);
10215
10999
  }))), mt;
10216
11000
  });
10217
11001
  return _.mutate(ae).then(function(Be) {
@@ -10276,19 +11060,19 @@ var bk = { exports: {} };
10276
11060
  var M = m.table(I), G = M.schema, ne = G.primaryKey, ae = G.indexes, ie = ne.extractKey, pe = ne.outbound, be = ne.autoIncrement && ae.filter(function(me) {
10277
11061
  return me.compound && me.keyPath.includes(ne.keyPath);
10278
11062
  }), _e = o(o({}, M), { mutate: function(me) {
10279
- function Ee(dt) {
10280
- return dt = "idb://".concat(y, "/").concat(I, "/").concat(dt), Be[dt] || (Be[dt] = new ko());
11063
+ function Ee(ct) {
11064
+ return ct = "idb://".concat(y, "/").concat(I, "/").concat(ct), Be[ct] || (Be[ct] = new ko());
10281
11065
  }
10282
- var Re, Se, ke, Le = me.trans, Be = me.mutatedParts || (me.mutatedParts = {}), We = Ee(""), nt = Ee(":dels"), ht = me.type, mt = me.type === "deleteRange" ? [me.range] : me.type === "delete" ? [me.keys] : me.values.length < 50 ? [dw(ne, me).filter(function(dt) {
10283
- return dt;
11066
+ var Re, Se, ke, Le = me.trans, Be = me.mutatedParts || (me.mutatedParts = {}), We = Ee(""), nt = Ee(":dels"), ht = me.type, mt = me.type === "deleteRange" ? [me.range] : me.type === "delete" ? [me.keys] : me.values.length < 50 ? [dw(ne, me).filter(function(ct) {
11067
+ return ct;
10284
11068
  }), me.values] : [], ot = mt[0], rt = mt[1], mt = me.trans._cache;
10285
- return a(ot) ? (We.addKeys(ot), (mt = ht === "delete" || ot.length === rt.length ? pR(ot, mt) : null) || nt.addKeys(ot), (mt || rt) && (Re = Ee, Se = mt, ke = rt, G.indexes.forEach(function(dt) {
10286
- var St = Re(dt.name || "");
11069
+ return a(ot) ? (We.addKeys(ot), (mt = ht === "delete" || ot.length === rt.length ? pR(ot, mt) : null) || nt.addKeys(ot), (mt || rt) && (Re = Ee, Se = mt, ke = rt, G.indexes.forEach(function(ct) {
11070
+ var St = Re(ct.name || "");
10287
11071
  function zt(Jt) {
10288
- return Jt != null ? dt.extractKey(Jt) : null;
11072
+ return Jt != null ? ct.extractKey(Jt) : null;
10289
11073
  }
10290
11074
  function Xt(Jt) {
10291
- return dt.multiEntry && a(Jt) ? Jt.forEach(function(ws) {
11075
+ return ct.multiEntry && a(Jt) ? Jt.forEach(function(ws) {
10292
11076
  return St.addKey(ws);
10293
11077
  }) : St.addKey(Jt);
10294
11078
  }
@@ -10296,17 +11080,17 @@ var bk = { exports: {} };
10296
11080
  var Wt = Se && zt(Se[Oo]), Oo = ke && zt(ke[Oo]);
10297
11081
  sn(Wt, Oo) !== 0 && (Wt != null && Xt(Wt), Oo != null && Xt(Oo));
10298
11082
  });
10299
- }))) : ot ? (rt = { from: (rt = ot.lower) !== null && rt !== void 0 ? rt : m.MIN_KEY, to: (rt = ot.upper) !== null && rt !== void 0 ? rt : m.MAX_KEY }, nt.add(rt), We.add(rt)) : (We.add(_), nt.add(_), G.indexes.forEach(function(dt) {
10300
- return Ee(dt.name).add(_);
10301
- })), M.mutate(me).then(function(dt) {
10302
- return !ot || me.type !== "add" && me.type !== "put" || (We.addKeys(dt.results), be && be.forEach(function(St) {
11083
+ }))) : ot ? (rt = { from: (rt = ot.lower) !== null && rt !== void 0 ? rt : m.MIN_KEY, to: (rt = ot.upper) !== null && rt !== void 0 ? rt : m.MAX_KEY }, nt.add(rt), We.add(rt)) : (We.add(_), nt.add(_), G.indexes.forEach(function(ct) {
11084
+ return Ee(ct.name).add(_);
11085
+ })), M.mutate(me).then(function(ct) {
11086
+ return !ot || me.type !== "add" && me.type !== "put" || (We.addKeys(ct.results), be && be.forEach(function(St) {
10303
11087
  for (var zt = me.values.map(function(Wt) {
10304
11088
  return St.extractKey(Wt);
10305
11089
  }), Xt = St.keyPath.findIndex(function(Wt) {
10306
11090
  return Wt === ne.keyPath;
10307
- }), Jt = 0, ws = dt.results.length; Jt < ws; ++Jt) zt[Jt][Xt] = dt.results[Jt];
11091
+ }), Jt = 0, ws = ct.results.length; Jt < ws; ++Jt) zt[Jt][Xt] = ct.results[Jt];
10308
11092
  Ee(St.name).addKeys(zt);
10309
- })), Le.mutatedParts = Mp(Le.mutatedParts || {}, Be), dt;
11093
+ })), Le.mutatedParts = Mp(Le.mutatedParts || {}, Be), ct;
10310
11094
  });
10311
11095
  } }), ae = function(Ee) {
10312
11096
  var Re = Ee.query, Ee = Re.index, Re = Re.range;
@@ -10334,14 +11118,14 @@ var bk = { exports: {} };
10334
11118
  var mt = Ee.values ? rt.result.map(ie) : rt.result;
10335
11119
  (Ee.values ? Be : We).addKeys(mt);
10336
11120
  } else if (me === "openCursor") {
10337
- var dt = rt, St = Ee.values;
10338
- return dt && Object.create(dt, { key: { get: function() {
10339
- return We.addKey(dt.primaryKey), dt.key;
11121
+ var ct = rt, St = Ee.values;
11122
+ return ct && Object.create(ct, { key: { get: function() {
11123
+ return We.addKey(ct.primaryKey), ct.key;
10340
11124
  } }, primaryKey: { get: function() {
10341
- var zt = dt.primaryKey;
11125
+ var zt = ct.primaryKey;
10342
11126
  return We.addKey(zt), zt;
10343
11127
  } }, value: { get: function() {
10344
- return St && Be.addKey(dt.primaryKey), dt.value;
11128
+ return St && Be.addKey(ct.primaryKey), ct.value;
10345
11129
  } } });
10346
11130
  }
10347
11131
  return rt;
@@ -10375,8 +11159,8 @@ var bk = { exports: {} };
10375
11159
  var Re = me, Se = [];
10376
11160
  if (Ee.type === "add" || Ee.type === "put") for (var ke = new ko(), Le = Ee.values.length - 1; 0 <= Le; --Le) {
10377
11161
  var Be, We = Ee.values[Le], nt = be(We);
10378
- ke.hasKey(nt) || (Be = _e(We), (ie && a(Be) ? Be.some(function(dt) {
10379
- return hw(dt, pe);
11162
+ ke.hasKey(nt) || (Be = _e(We), (ie && a(Be) ? Be.some(function(ct) {
11163
+ return hw(ct, pe);
10380
11164
  }) : hw(Be, pe)) && (ke.addKey(nt), Se.push(We)));
10381
11165
  }
10382
11166
  switch (Ee.type) {
@@ -10471,7 +11255,7 @@ var bk = { exports: {} };
10471
11255
  me.optimisticOps = me.optimisticOps.filter(function(St) {
10472
11256
  return St.trans !== ie;
10473
11257
  });
10474
- for (var We = 0, nt = Object.values(me.queries.query); We < nt.length; We++) for (var ht, ot, rt, mt = 0, dt = (ht = nt[We]).slice(); mt < dt.length; mt++) (ot = dt[mt]).res != null && ie.mutatedParts && (pe && !ot.dirty ? (rt = Object.isFrozen(ot.res), rt = yR(ot.res, ot.req, Re, Ee, ot, rt), ot.dirty ? (J(ht, ot), ot.subscribers.forEach(function(St) {
11258
+ for (var We = 0, nt = Object.values(me.queries.query); We < nt.length; We++) for (var ht, ot, rt, mt = 0, ct = (ht = nt[We]).slice(); mt < ct.length; mt++) (ot = ct[mt]).res != null && ie.mutatedParts && (pe && !ot.dirty ? (rt = Object.isFrozen(ot.res), rt = yR(ot.res, ot.req, Re, Ee, ot, rt), ot.dirty ? (J(ht, ot), ot.subscribers.forEach(function(St) {
10475
11259
  return be.add(St);
10476
11260
  })) : rt !== ot.res && (ot.res = rt, ot.promise = Qe.resolve({ result: rt }))) : (ot.dirty && J(ht, ot), ot.subscribers.forEach(function(St) {
10477
11261
  return be.add(St);
@@ -10829,1251 +11613,260 @@ var bk = { exports: {} };
10829
11613
  }));
10830
11614
  }, function(Le) {
10831
11615
  _ = !1, ["DatabaseClosedError", "AbortError"].includes(Le == null ? void 0 : Le.name) || ie || Ad(function() {
10832
- ie || M.error && M.error(Le);
10833
- });
10834
- }));
10835
- };
10836
- return setTimeout(De, 0), _e;
10837
- });
10838
- return I.hasValue = function() {
10839
- return _;
10840
- }, I.getValue = function() {
10841
- return y;
10842
- }, I;
10843
- }
10844
- var ml = Nr;
10845
- function pw(m) {
10846
- var y = _a;
10847
- try {
10848
- _a = !0, Ea.storagemutated.fire(m), lw(m, !0);
10849
- } finally {
10850
- _a = y;
10851
- }
10852
- }
10853
- h(ml, o(o({}, Pe), { delete: function(m) {
10854
- return new ml(m, { addons: [] }).delete();
10855
- }, exists: function(m) {
10856
- return new ml(m, { addons: [] }).open().then(function(y) {
10857
- return y.close(), !0;
10858
- }).catch("NoSuchDatabaseError", function() {
10859
- return !1;
10860
- });
10861
- }, getDatabaseNames: function(m) {
10862
- try {
10863
- return y = ml.dependencies, _ = y.indexedDB, y = y.IDBKeyRange, (nw(_) ? Promise.resolve(_.databases()).then(function(I) {
10864
- return I.map(function(M) {
10865
- return M.name;
10866
- }).filter(function(M) {
10867
- return M !== Ep;
10868
- });
10869
- }) : tw(_, y).toCollection().primaryKeys()).then(m);
10870
- } catch {
10871
- return $n(new W.MissingAPI());
10872
- }
10873
- var y, _;
10874
- }, defineClass: function() {
10875
- return function(m) {
10876
- l(this, m);
10877
- };
10878
- }, ignoreTransaction: function(m) {
10879
- return He.trans ? Zo(He.transless, m) : m();
10880
- }, vip: ow, async: function(m) {
10881
- return function() {
10882
- try {
10883
- var y = uw(m.apply(this, arguments));
10884
- return y && typeof y.then == "function" ? y : Qe.resolve(y);
10885
- } catch (_) {
10886
- return $n(_);
10887
- }
10888
- };
10889
- }, spawn: function(m, y, _) {
10890
- try {
10891
- var I = uw(m.apply(_, y || []));
10892
- return I && typeof I.then == "function" ? I : Qe.resolve(I);
10893
- } catch (M) {
10894
- return $n(M);
10895
- }
10896
- }, currentTransaction: { get: function() {
10897
- return He.trans || null;
10898
- } }, waitFor: function(m, y) {
10899
- return y = Qe.resolve(typeof m == "function" ? ml.ignoreTransaction(m) : m).timeout(y || 6e4), He.trans ? He.trans.waitFor(y) : y;
10900
- }, Promise: Qe, debug: { get: function() {
10901
- return ve;
10902
- }, set: function(m) {
10903
- Ae(m);
10904
- } }, derive: g, extend: l, props: h, override: S, Events: kd, on: Ea, liveQuery: CR, extendObservabilitySet: Mp, getByKeyPath: R, setByKeyPath: x, delByKeyPath: function(m, y) {
10905
- typeof y == "string" ? x(m, y, void 0) : "length" in y && [].map.call(y, function(_) {
10906
- x(m, _, void 0);
10907
- });
10908
- }, shallowClone: A, deepClone: P, getObjectDiff: cw, cmp: sn, asap: E, minKey: -1 / 0, addons: [], connections: Ou, errnames: Oe, dependencies: Bp, cache: gl, semVer: "4.0.10", version: "4.0.10".split(".").map(function(m) {
10909
- return parseInt(m);
10910
- }).reduce(function(m, y, _) {
10911
- return m + y / Math.pow(10, 2 * _);
10912
- }) })), ml.maxKey = Vd(ml.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (Ea(Ld, function(m) {
10913
- _a || (m = new CustomEvent(qy, { detail: m }), _a = !0, dispatchEvent(m), _a = !1);
10914
- }), addEventListener(qy, function(m) {
10915
- m = m.detail, _a || pw(m);
10916
- }));
10917
- var Lu, _a = !1, bR = function() {
10918
- };
10919
- return typeof BroadcastChannel < "u" && ((bR = function() {
10920
- (Lu = new BroadcastChannel(qy)).onmessage = function(m) {
10921
- return m.data && pw(m.data);
10922
- };
10923
- })(), typeof Lu.unref == "function" && Lu.unref(), Ea(Ld, function(m) {
10924
- _a || Lu.postMessage(m);
10925
- })), typeof addEventListener < "u" && (addEventListener("pagehide", function(m) {
10926
- if (!Nr.disableBfCache && m.persisted) {
10927
- ve && console.debug("Dexie: handling persisted pagehide"), Lu != null && Lu.close();
10928
- for (var y = 0, _ = Ou; y < _.length; y++) _[y].close({ disableAutoOpen: !1 });
10929
- }
10930
- }), addEventListener("pageshow", function(m) {
10931
- !Nr.disableBfCache && m.persisted && (ve && console.debug("Dexie: handling persisted pageshow"), bR(), pw({ all: new ko(-1 / 0, [[]]) }));
10932
- })), Qe.rejectionMapper = function(m, y) {
10933
- return !m || m instanceof L || m instanceof TypeError || m instanceof SyntaxError || !m.name || !le[m.name] ? m : (y = new le[m.name](y || m.message, m), "stack" in m && p(y, "stack", { get: function() {
10934
- return this.inner.stack;
10935
- } }), y);
10936
- }, Ae(ve), o(Nr, Object.freeze({ __proto__: null, Dexie: Nr, liveQuery: CR, Entity: X_, cmp: sn, PropModSymbol: Mr, PropModification: Md, replacePrefix: function(m, y) {
10937
- return new Md({ replacePrefix: [m, y] });
10938
- }, add: function(m) {
10939
- return new Md({ add: m });
10940
- }, remove: function(m) {
10941
- return new Md({ remove: m });
10942
- }, default: Nr, RangeSet: ko, mergeRanges: $d, rangesOverlap: cR }), { default: Nr }), Nr;
10943
- });
10944
- })(bk);
10945
- var Ez = bk.exports;
10946
- const Ab = /* @__PURE__ */ Sz(Ez), UD = Symbol.for("Dexie"), uf = globalThis[UD] || (globalThis[UD] = Ab);
10947
- if (Ab.semVer !== uf.semVer)
10948
- throw new Error(`Two different versions of Dexie loaded in the same app: ${Ab.semVer} and ${uf.semVer}`);
10949
- const {
10950
- liveQuery: eDe,
10951
- mergeRanges: tDe,
10952
- rangesOverlap: nDe,
10953
- RangeSet: oDe,
10954
- cmp: sDe,
10955
- Entity: iDe,
10956
- PropModSymbol: rDe,
10957
- PropModification: aDe,
10958
- replacePrefix: lDe,
10959
- add: uDe,
10960
- remove: cDe
10961
- } = uf;
10962
- class WD extends uf {
10963
- constructor(n) {
10964
- super(n);
10965
- zn(this, "icons");
10966
- zn(this, "visuals");
10967
- zn(this, "users");
10968
- zn(this, "columns");
10969
- zn(this, "general");
10970
- this.version(1).stores({
10971
- icons: "key",
10972
- visuals: "key",
10973
- users: "key",
10974
- columns: "key",
10975
- general: "key"
10976
- });
10977
- }
10978
- // Helper method to safely get a table with fallback
10979
- getTable(n) {
10980
- return this[n] ? this[n] : this.general;
10981
- }
10982
- }
10983
- const Kp = /* @__PURE__ */ new Map(), _z = async (e) => {
10984
- if (!Kp.has(e)) {
10985
- const t = new WD(e);
10986
- try {
10987
- await t.open(), Kp.set(e, t);
10988
- } catch (n) {
10989
- console.error("Failed to open database, attempting to delete and recreate:", n);
10990
- try {
10991
- await uf.delete(e);
10992
- const o = new WD(e);
10993
- await o.open(), Kp.set(e, o);
10994
- } catch (o) {
10995
- throw console.error("Failed to delete and recreate database:", o), o;
10996
- }
10997
- }
10998
- }
10999
- return Kp.get(e);
11000
- }, Qf = ({
11001
- dbName: e,
11002
- storeName: t
11003
- }) => {
11004
- const n = async () => (await _z(e)).getTable(t);
11005
- return {
11006
- getCachedValue: async (u) => {
11007
- try {
11008
- const c = await n();
11009
- if (!c) {
11010
- console.error(`Store is undefined for key: ${u}`);
11011
- return;
11012
- }
11013
- const d = await c.get(u);
11014
- return d == null ? void 0 : d.value;
11015
- } catch (c) {
11016
- console.error("Failed to get cached value:", c);
11017
- return;
11018
- }
11019
- },
11020
- setCachedValue: async (u, c) => {
11021
- try {
11022
- const d = await n();
11023
- if (!d) {
11024
- console.error(`Store is undefined, cannot cache key: ${u}`);
11025
- return;
11026
- }
11027
- await d.put({
11028
- key: u,
11029
- value: c,
11030
- timestamp: Date.now()
11031
- });
11032
- } catch (d) {
11033
- console.error("Failed to cache value:", d);
11034
- }
11035
- },
11036
- deleteCachedValue: async (u) => {
11037
- try {
11038
- const c = await n();
11039
- if (!c) {
11040
- console.error(`Store is undefined, cannot delete key: ${u}`);
11041
- return;
11042
- }
11043
- await c.delete(u);
11044
- } catch (c) {
11045
- console.error("Failed to delete cached value:", c);
11046
- }
11047
- },
11048
- clearCache: async () => {
11049
- try {
11050
- const u = await n();
11051
- if (!u) {
11052
- console.error("Store is undefined, cannot clear cache");
11053
- return;
11054
- }
11055
- await u.clear();
11056
- } catch (u) {
11057
- console.error("Failed to clear cache:", u);
11058
- }
11059
- },
11060
- getAllKeys: async () => {
11061
- try {
11062
- const u = await n();
11063
- return u ? (await u.toArray()).map((d) => d.key) : (console.error("Store is undefined, cannot get all keys"), []);
11064
- } catch (u) {
11065
- return console.error("Failed to get all keys:", u), [];
11066
- }
11067
- },
11068
- getCachedValueWithTimestamp: async (u) => {
11069
- try {
11070
- const c = await n();
11071
- if (!c) {
11072
- console.error(`Store is undefined for key: ${u}`);
11073
- return;
11074
- }
11075
- return await c.get(u);
11076
- } catch (c) {
11077
- console.error("Failed to get cached value with timestamp:", c);
11078
- return;
11079
- }
11080
- }
11081
- };
11082
- }, Rz = [
11083
- "404",
11084
- "ClickChart",
11085
- "ClickToCreate",
11086
- "NoAccess1",
11087
- "NoActivity",
11088
- "NoAssignedComment",
11089
- "NoAssignedScene",
11090
- "NoComment",
11091
- "NoData",
11092
- "NoData2",
11093
- "NoRendition1",
11094
- "NoRendition2",
11095
- "PrivateComment",
11096
- "PrivateScene",
11097
- "ReportAchievement",
11098
- "ReportCompletedScenes",
11099
- "ReportInvolvement",
11100
- "ReportMetric",
11101
- "ReportOverdueScenes",
11102
- "ReportProfessionalName",
11103
- "ReportSceneAssignment",
11104
- "ReportSceneStatus",
11105
- "ReportSceneStatusType",
11106
- "Successful1",
11107
- "Unsuccessful1",
11108
- "ConfirmDeletion",
11109
- "Waiting1",
11110
- "DefaultThumbnail",
11111
- "UploadReviewFile",
11112
- "ClickToSearch",
11113
- "NoDataSearchFilter"
11114
- ], Dz = ["UploadInProgress"], Ml = class Ml {
11115
- constructor() {
11116
- zn(this, "KEY_PAIR", {
11117
- workspaceCode: "ws.code",
11118
- apiBaseUrl: "API_BASE_URL",
11119
- assetUrl: "ASSET_URL",
11120
- baseUrl: "BASE_URL",
11121
- baseReviewUrl: "BASE_REVIEW_URL"
11122
- });
11123
- Object.values(this.KEY_PAIR).every((n) => {
11124
- const o = sessionStorage.getItem(n);
11125
- return (o == null || o === "") && console.error(`[SessionStorageHelper] Key "${n}" is not set in sessionStorage.`), !0;
11126
- }) || console.error(
11127
- "[SessionStorageHelper] Some expected keys are missing in sessionStorage. Please ensure all required keys are set."
11128
- );
11129
- }
11130
- static getInstance() {
11131
- return Ml.instance || (Ml.instance = new Ml()), Ml.instance;
11132
- }
11133
- setItem(t, n) {
11134
- try {
11135
- sessionStorage.setItem(t, n);
11136
- } catch (o) {
11137
- console.error("Error setting sessionStorage item:", o);
11138
- }
11139
- }
11140
- getItem(t) {
11141
- try {
11142
- const n = sessionStorage.getItem(t);
11143
- return n === null ? "" : n;
11144
- } catch (n) {
11145
- throw console.error("Error getting sessionStorage item:", n), n;
11146
- }
11147
- }
11148
- };
11149
- zn(Ml, "instance");
11150
- let Sn = Ml;
11151
- const qp = {}, Ta = {}, Sk = (e, t, n, o, s = "base64") => {
11152
- const i = B(""), r = B(""), a = B(!0), l = X(() => `${t}:${e.value.name}`), u = (g) => new Promise((v, w) => {
11153
- const b = new FileReader();
11154
- b.onload = () => v(b.result), b.onerror = w, b.readAsDataURL(g);
11155
- }), c = (g) => `data:image/svg+xml;charset=utf-8,${encodeURIComponent(g)}`, d = async (g, v) => {
11156
- if (Ta[v])
11157
- return Ta[v];
11158
- if (v in qp) {
11159
- const S = await qp[v];
11160
- return S && (Ta[v] = S), S;
11161
- }
11162
- const w = await o(l.value);
11163
- if (w && typeof w == "string")
11164
- return Ta[v] = w, w;
11165
- const b = (async () => {
11166
- try {
11167
- const S = await fetch(g, { cache: "no-cache" });
11168
- if (!S.ok) throw new Error("Failed to fetch visual");
11169
- const C = S.headers.get("Content-Type") || "";
11170
- let E;
11171
- if (C.includes("svg") || C.includes("xml")) {
11172
- const R = await S.text();
11173
- if (!R.trim()) throw new Error("Empty SVG content");
11174
- E = s === "svg" ? R : c(R), Ta[v] = E;
11175
- } else if (C.match(/image\/(jpeg|jpg|png|gif|webp)/)) {
11176
- const R = await S.blob();
11177
- if (!R.size) throw new Error("Empty image blob");
11178
- E = await u(R), Ta[v] = E;
11179
- } else
11180
- throw new Error(`Unsupported content type: ${C}`);
11181
- return await n(l.value, E), E;
11182
- } catch (S) {
11183
- return console.error("Error fetching visual:", S), "";
11184
- }
11185
- })();
11186
- return qp[v] = b, b.finally(() => {
11187
- delete qp[v];
11188
- }), await b;
11189
- }, h = async (g) => {
11190
- a.value = !0;
11191
- try {
11192
- if (Ta[l.value]) {
11193
- const E = Ta[l.value];
11194
- i.value = E, E.startsWith("data:image/svg+xml") ? r.value = decodeURIComponent(E.split(",")[1]) : (E.startsWith("<svg") || E.includes("<svg")) && (r.value = E), a.value = !1;
11195
- return;
11196
- }
11197
- const v = Sn.getInstance().getItem("ASSET_URL") || "", w = {
11198
- icon: `${v}/icon/tess/TESSRAPP_Icon_${g}`,
11199
- visual: `${v}/icon/visual/TESSRAPP_Visual_${g}`,
11200
- ratting: `${v}/icon/tess/rating/TESSRAPP_Icon_${g}_Outline`,
11201
- flag: `${v}/icon/flags/4x3/${g}`
11202
- }, b = Rz.includes(g) ? "png" : Dz.includes(g) ? "gif" : "svg", S = `${w[t]}.${b}`, C = await d(S, l.value);
11203
- C && (i.value = C, C.startsWith("data:image/svg+xml") ? r.value = decodeURIComponent(C.split(",")[1]) : (C.startsWith("<svg") || C.includes("<svg")) && (r.value = C));
11204
- } catch (v) {
11205
- console.error("Error fetching remote visual:", v);
11206
- } finally {
11207
- a.value = !1;
11208
- }
11209
- }, f = async () => {
11210
- i.value = "", r.value = "", e.value.name && (a.value = !0, await h(e.value.name), a.value = !1);
11211
- }, p = X(() => r.value ? r.value : "");
11212
- return tt(
11213
- () => e,
11214
- () => {
11215
- f();
11216
- },
11217
- {
11218
- deep: !0,
11219
- immediate: !0
11220
- }
11221
- ), {
11222
- svgContent: p,
11223
- url: i,
11224
- loading: a
11225
- };
11226
- }, Tz = ["innerHTML", "about"], xz = "IconCache", Iz = "icons", Fz = /* @__PURE__ */ pt({
11227
- __name: "Icon",
11228
- props: {
11229
- src: {},
11230
- source: { default: "remote" },
11231
- size: { default: 14 },
11232
- color: { default: "currentColor" }
11233
- },
11234
- setup(e) {
11235
- ZG((h) => ({
11236
- v7bb7ab38: h.size + "px"
11237
- }));
11238
- const t = e, n = (h) => {
11239
- if (typeof h == "number")
11240
- return h;
11241
- switch (h) {
11242
- case "small":
11243
- return 8;
11244
- case "medium":
11245
- return 16;
11246
- case "large":
11247
- return 20;
11248
- default:
11249
- return typeof h == "string" ? Number.parseInt(h, 10) : 14;
11250
- }
11251
- }, o = X(() => n(t.size)), s = X(() => ({
11252
- width: o.value + "px",
11253
- height: o.value + "px",
11254
- color: t.color
11255
- })), { getCachedValue: i, setCachedValue: r } = Qf({
11256
- dbName: xz,
11257
- storeName: Iz
11258
- }), a = async (h) => {
11259
- const f = await i(h);
11260
- if (typeof f == "string") return f;
11261
- }, l = async (h, f) => {
11262
- await r(h, f);
11263
- }, u = X(() => t.source === "rating" ? "ratting" : "icon"), c = X(() => ({
11264
- name: t.src,
11265
- size: o.value,
11266
- color: t.color || "currentColor"
11267
- })), { svgContent: d } = Sk(
11268
- c,
11269
- u.value,
11270
- l,
11271
- a,
11272
- "svg"
11273
- // Use 'svg' option to get raw SVG content for v-html
11274
- );
11275
- return (h, f) => (q(), ue("div", {
11276
- class: Q(h.$style.iconWrapper),
11277
- innerHTML: U(d),
11278
- style: hn(s.value),
11279
- about: t.src,
11280
- "data-icon": "true"
11281
- }, null, 14, Tz));
11282
- }
11283
- }), Pz = "_iconWrapper_1n0y9_1", Az = {
11284
- iconWrapper: Pz
11285
- }, Rt = (e, t) => {
11286
- const n = e.__vccOpts || e;
11287
- for (const [o, s] of t)
11288
- n[o] = s;
11289
- return n;
11290
- }, kz = {
11291
- $style: Az
11292
- }, ut = /* @__PURE__ */ Rt(Fz, [["__cssModules", kz]]);
11293
- function Oz(e, t, n) {
11294
- const o = document.createElement("div");
11295
- o.className = n;
11296
- const s = qA(e, t);
11297
- return s.component("custom-icon", ut), s.mount(o), { container: o, app: s };
11298
- }
11299
- function Hg(e) {
11300
- if (!e) return;
11301
- const t = e._vueApp;
11302
- if (t)
11303
- try {
11304
- t.unmount(), delete e._vueApp;
11305
- } catch (n) {
11306
- console.warn("Error unmounting Vue app:", n);
11307
- }
11308
- }
11309
- function Mz(e, t) {
11310
- e._vueApp = t;
11311
- }
11312
- const Nz = (e) => {
11313
- const { container: t, app: n } = Oz(
11314
- cZ,
11315
- {
11316
- user: e.user,
11317
- status: e.status,
11318
- timezone: e.timezone,
11319
- userConfig: e.userConfig,
11320
- showInsightButton: e.showInsightButton,
11321
- showCopyLinkButton: e.showCopyLinkButton,
11322
- apiUpdateFunction: e.apiUpdateFunction,
11323
- refreshInterval: e.refreshInterval,
11324
- enableAutoRefresh: e.enableAutoRefresh,
11325
- onInsightClick: e.onInsightClick,
11326
- onCopyLink: e.onCopyLink
11327
- },
11328
- "user-profile-tooltip-content"
11329
- );
11330
- return Mz(t, n), t;
11331
- }, zD = (e) => {
11332
- e._userProfileContainer && (Hg(e._userProfileContainer), delete e._userProfileContainer), e._userProfileInstance && (Bg(e._userProfileInstance), delete e._userProfileInstance), e.style.cursor = "", e.classList.remove("user-profile-trigger");
11333
- }, Lz = {
11334
- mounted(e, t) {
11335
- var o, s;
11336
- if (!((o = t.value) != null && o.user)) {
11337
- console.warn("[UserProfile] User data is required");
11338
- return;
11339
- }
11340
- const n = t.value;
11341
- n.onInsightClick = () => {
11342
- var i;
11343
- (i = e._userProfileInstance) == null || i.hide();
11344
- }, e._userProfileInstance = yk(e, {
11345
- ...Pb,
11346
- delay: [300, 0],
11347
- content: ((s = n.user) == null ? void 0 : s.name) || "User",
11348
- placement: n.placement || "bottom-start",
11349
- trigger: "mouseenter focus",
11350
- appendTo: n.appendTo || Pb.appendTo,
11351
- onShow(i) {
11352
- e._userProfileContainer && Hg(e._userProfileContainer);
11353
- const r = Nz(n);
11354
- e._userProfileContainer = r, i.setContent(r);
11355
- },
11356
- onHidden() {
11357
- setTimeout(() => {
11358
- e._userProfileContainer && (Hg(e._userProfileContainer), e._userProfileContainer = void 0);
11359
- }, 200);
11360
- },
11361
- onDestroy() {
11362
- e._userProfileContainer && (Hg(e._userProfileContainer), e._userProfileContainer = void 0);
11363
- }
11364
- }), e._userProfileInstance.enable(), e.classList.add("user-profile-trigger");
11365
- },
11366
- updated(e, t) {
11367
- var n;
11368
- if (!(!((n = t.value) != null && n.user) || !e._userProfileInstance) && t.value !== t.oldValue)
11616
+ ie || M.error && M.error(Le);
11617
+ });
11618
+ }));
11619
+ };
11620
+ return setTimeout(De, 0), _e;
11621
+ });
11622
+ return I.hasValue = function() {
11623
+ return _;
11624
+ }, I.getValue = function() {
11625
+ return y;
11626
+ }, I;
11627
+ }
11628
+ var ml = Nr;
11629
+ function pw(m) {
11630
+ var y = _a;
11369
11631
  try {
11370
- e._userProfileInstance.setProps({
11371
- placement: t.value.placement || "bottom-start"
11372
- }), e._userProfileInstance.hide();
11373
- } catch (o) {
11374
- console.warn("Error updating tooltip props:", o);
11375
- }
11376
- },
11377
- beforeUnmount(e) {
11378
- zD(e);
11379
- },
11380
- unmounted(e) {
11381
- zD(e);
11382
- }
11383
- }, Vz = ["type", "disabled", "aria-readonly", "data-is-primary"], Bz = { key: 0 }, Hz = /* @__PURE__ */ pt({
11384
- __name: "Button",
11385
- props: {
11386
- label: { default: "" },
11387
- variant: { default: "primary" },
11388
- size: { default: "default" },
11389
- disabled: { type: Boolean, default: !1 },
11390
- type: { default: "button" },
11391
- rounded: { type: Boolean },
11392
- highlightOnHover: { type: Boolean },
11393
- border: { type: Boolean },
11394
- action: {},
11395
- readOnly: { type: Boolean, default: !1 },
11396
- actived: { type: Boolean, default: !1 },
11397
- loading: { type: Boolean },
11398
- tooltip: {}
11399
- },
11400
- emits: ["handleClick", "escape", "select"],
11401
- setup(e, { expose: t, emit: n }) {
11402
- const o = Yt, s = e, i = B(!1), r = B(null), a = () => {
11403
- s.disabled || (i.value = !0);
11404
- }, l = () => {
11405
- s.disabled || (i.value = !1);
11406
- };
11407
- nn(() => {
11408
- r.value && (r.value.addEventListener("mouseenter", a), r.value.addEventListener("mouseleave", l));
11409
- }), fo(() => {
11410
- r.value && (r.value.removeEventListener("mouseenter", a), r.value.removeEventListener("mouseleave", l));
11411
- });
11412
- const u = n, c = /* @__PURE__ */ new Set(["primary", "secondary", "tertiary", "text", "menu-item"]), d = X(
11413
- () => Array.isArray(s.variant) ? s.variant : [s.variant]
11414
- ), h = Xv(), f = X(() => {
11415
- const E = [h.customButton], R = d.value.find((x) => c.has(x)) || "primary";
11416
- return E.push(h[`is-${R}`]), d.value.includes("danger") && E.push(h["is-danger"]), d.value.includes("icon") && E.push(h["is-icon"]), s.readOnly && E.push(h["is-readonly"]), s.rounded && E.push(h["is-rounded"]), s.border && E.push(h["has-border"]), s.highlightOnHover && E.push(h["highlight-on-hover"]), S.value && E.push(h["has-prefix"]), C.value && E.push(h["has-suffix"]), s.actived && E.push(h["is-active"]), s.disabled && E.push(h.disabled), s.loading && E.push(h["is-loading"]), typeof s.size == "string" && E.push(h[`size-${s.size}`]), E;
11417
- }), p = X(() => {
11418
- var E;
11419
- return s.variant == "primary" || ((E = s.variant) == null ? void 0 : E.includes("primary"));
11420
- }), g = X(() => s.readOnly === !0), v = X(() => typeof s.size == "number" ? {
11421
- "--button-size": `${s.size}px`
11422
- } : {}), w = (E) => {
11423
- var R;
11424
- s.disabled || s.readOnly || (u("handleClick", E), (R = s.action) == null || R.call(s));
11425
- }, b = kE(), S = X(() => !!b.prefix), C = X(() => !!b.suffix);
11426
- return t({
11427
- buttonRef: r,
11428
- focus: () => {
11429
- var E;
11430
- (E = r.value) == null || E.focus();
11431
- },
11432
- escape: (E) => {
11433
- u("escape", E);
11434
- },
11435
- select: () => {
11436
- var E;
11437
- (E = r.value) == null || E.click();
11438
- },
11439
- blur: () => {
11440
- var E, R;
11441
- console.log("Blurring button:", (E = r.value) == null ? void 0 : E.blur), (R = r.value) == null || R.blur();
11632
+ _a = !0, Ea.storagemutated.fire(m), lw(m, !0);
11633
+ } finally {
11634
+ _a = y;
11442
11635
  }
11443
- }), (E, R) => (q(), ue("button", {
11444
- class: Q(f.value),
11445
- type: s.type,
11446
- disabled: s.disabled,
11447
- "aria-readonly": g.value,
11448
- style: hn(v.value),
11449
- onClick: w,
11450
- ref_key: "buttonRef",
11451
- ref: r,
11452
- "data-is-primary": p.value
11453
- }, [
11454
- kt(E.$slots, "prefix"),
11455
- kt(E.$slots, "default", { hovered: i.value }, () => [
11456
- e.label ? Ue((q(), ue("span", Bz, [
11457
- st(bt(e.label), 1)
11458
- ])), [
11459
- [U(o), { content: e.label }]
11460
- ]) : Xe("", !0)
11461
- ]),
11462
- kt(E.$slots, "suffix")
11463
- ], 14, Vz));
11464
- }
11465
- }), $z = "_customButton_1wk2f_1", Gz = "_spin_1wk2f_1", Uz = {
11466
- customButton: $z,
11467
- "size-extra-small": "_size-extra-small_1wk2f_21",
11468
- "size-small": "_size-small_1wk2f_26",
11469
- "size-medium": "_size-medium_1wk2f_31",
11470
- "size-large": "_size-large_1wk2f_36",
11471
- "size-default": "_size-default_1wk2f_41",
11472
- "is-primary": "_is-primary_1wk2f_44",
11473
- "is-active": "_is-active_1wk2f_52",
11474
- "is-danger": "_is-danger_1wk2f_55",
11475
- "is-secondary": "_is-secondary_1wk2f_64",
11476
- "is-tertiary": "_is-tertiary_1wk2f_88",
11477
- "is-text": "_is-text_1wk2f_108",
11478
- "is-menu-item": "_is-menu-item_1wk2f_125",
11479
- "is-readonly": "_is-readonly_1wk2f_169",
11480
- "is-rounded": "_is-rounded_1wk2f_172",
11481
- "has-border": "_has-border_1wk2f_175",
11482
- "highlight-on-hover": "_highlight-on-hover_1wk2f_178",
11483
- "icon-wrapper": "_icon-wrapper_1wk2f_178",
11484
- "is-loading": "_is-loading_1wk2f_181",
11485
- spin: Gz,
11486
- "is-icon": "_is-icon_1wk2f_210"
11487
- }, Wz = {
11488
- $style: Uz
11489
- }, yt = /* @__PURE__ */ Rt(Hz, [["__cssModules", Wz]]);
11490
- /*!
11491
- * Compressor.js v1.2.1
11492
- * https://fengyuanchen.github.io/compressorjs
11493
- *
11494
- * Copyright 2018-present Chen Fengyuan
11495
- * Released under the MIT license
11496
- *
11497
- * Date: 2023-02-28T14:09:41.732Z
11498
- */
11499
- function jD(e, t) {
11500
- var n = Object.keys(e);
11501
- if (Object.getOwnPropertySymbols) {
11502
- var o = Object.getOwnPropertySymbols(e);
11503
- t && (o = o.filter(function(s) {
11504
- return Object.getOwnPropertyDescriptor(e, s).enumerable;
11505
- })), n.push.apply(n, o);
11506
- }
11507
- return n;
11508
- }
11509
- function Yp(e) {
11510
- for (var t = 1; t < arguments.length; t++) {
11511
- var n = arguments[t] != null ? arguments[t] : {};
11512
- t % 2 ? jD(Object(n), !0).forEach(function(o) {
11513
- Kz(e, o, n[o]);
11514
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jD(Object(n)).forEach(function(o) {
11515
- Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
11516
- });
11517
- }
11518
- return e;
11519
- }
11520
- function zz(e, t) {
11521
- if (!(e instanceof t))
11522
- throw new TypeError("Cannot call a class as a function");
11523
- }
11524
- function KD(e, t) {
11525
- for (var n = 0; n < t.length; n++) {
11526
- var o = t[n];
11527
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, Ek(o.key), o);
11528
- }
11529
- }
11530
- function jz(e, t, n) {
11531
- return t && KD(e.prototype, t), n && KD(e, n), Object.defineProperty(e, "prototype", {
11532
- writable: !1
11533
- }), e;
11534
- }
11535
- function Kz(e, t, n) {
11536
- return t = Ek(t), t in e ? Object.defineProperty(e, t, {
11537
- value: n,
11538
- enumerable: !0,
11539
- configurable: !0,
11540
- writable: !0
11541
- }) : e[t] = n, e;
11542
- }
11543
- function jm() {
11544
- return jm = Object.assign ? Object.assign.bind() : function(e) {
11545
- for (var t = 1; t < arguments.length; t++) {
11546
- var n = arguments[t];
11547
- for (var o in n)
11548
- Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
11549
11636
  }
11550
- return e;
11551
- }, jm.apply(this, arguments);
11552
- }
11553
- function qz(e, t) {
11554
- if (typeof e != "object" || e === null) return e;
11555
- var n = e[Symbol.toPrimitive];
11556
- if (n !== void 0) {
11557
- var o = n.call(e, t);
11558
- if (typeof o != "object") return o;
11559
- throw new TypeError("@@toPrimitive must return a primitive value.");
11560
- }
11561
- return String(e);
11562
- }
11563
- function Ek(e) {
11564
- var t = qz(e, "string");
11565
- return typeof t == "symbol" ? t : String(t);
11566
- }
11567
- var _k = { exports: {} };
11568
- (function(e) {
11569
- typeof window > "u" || function(t) {
11570
- var n = t.HTMLCanvasElement && t.HTMLCanvasElement.prototype, o = t.Blob && function() {
11571
- try {
11572
- return !!new Blob();
11573
- } catch {
11637
+ h(ml, o(o({}, Pe), { delete: function(m) {
11638
+ return new ml(m, { addons: [] }).delete();
11639
+ }, exists: function(m) {
11640
+ return new ml(m, { addons: [] }).open().then(function(y) {
11641
+ return y.close(), !0;
11642
+ }).catch("NoSuchDatabaseError", function() {
11574
11643
  return !1;
11575
- }
11576
- }(), s = o && t.Uint8Array && function() {
11644
+ });
11645
+ }, getDatabaseNames: function(m) {
11577
11646
  try {
11578
- return new Blob([new Uint8Array(100)]).size === 100;
11647
+ return y = ml.dependencies, _ = y.indexedDB, y = y.IDBKeyRange, (nw(_) ? Promise.resolve(_.databases()).then(function(I) {
11648
+ return I.map(function(M) {
11649
+ return M.name;
11650
+ }).filter(function(M) {
11651
+ return M !== Ep;
11652
+ });
11653
+ }) : tw(_, y).toCollection().primaryKeys()).then(m);
11579
11654
  } catch {
11580
- return !1;
11655
+ return $n(new W.MissingAPI());
11581
11656
  }
11582
- }(), i = t.BlobBuilder || t.WebKitBlobBuilder || t.MozBlobBuilder || t.MSBlobBuilder, r = /^data:((.*?)(;charset=.*?)?)(;base64)?,/, a = (o || i) && t.atob && t.ArrayBuffer && t.Uint8Array && function(l) {
11583
- var u, c, d, h, f, p, g, v, w;
11584
- if (u = l.match(r), !u)
11585
- throw new Error("invalid data URI");
11586
- for (c = u[2] ? u[1] : "text/plain" + (u[3] || ";charset=US-ASCII"), d = !!u[4], h = l.slice(u[0].length), d ? f = atob(h) : f = decodeURIComponent(h), p = new ArrayBuffer(f.length), g = new Uint8Array(p), v = 0; v < f.length; v += 1)
11587
- g[v] = f.charCodeAt(v);
11588
- return o ? new Blob([s ? g : p], {
11589
- type: c
11590
- }) : (w = new i(), w.append(p), w.getBlob(c));
11591
- };
11592
- t.HTMLCanvasElement && !n.toBlob && (n.mozGetAsFile ? n.toBlob = function(l, u, c) {
11593
- var d = this;
11594
- setTimeout(function() {
11595
- c && n.toDataURL && a ? l(a(d.toDataURL(u, c))) : l(d.mozGetAsFile("blob", u));
11596
- });
11597
- } : n.toDataURL && a && (n.msToBlob ? n.toBlob = function(l, u, c) {
11598
- var d = this;
11599
- setTimeout(function() {
11600
- (u && u !== "image/png" || c) && n.toDataURL && a ? l(a(d.toDataURL(u, c))) : l(d.msToBlob(u));
11601
- });
11602
- } : n.toBlob = function(l, u, c) {
11603
- var d = this;
11604
- setTimeout(function() {
11605
- l(a(d.toDataURL(u, c)));
11606
- });
11607
- })), e.exports ? e.exports = a : t.dataURLtoBlob = a;
11608
- }(window);
11609
- })(_k);
11610
- var qD = _k.exports, Yz = function(t) {
11611
- return typeof Blob > "u" ? !1 : t instanceof Blob || Object.prototype.toString.call(t) === "[object Blob]";
11612
- }, YD = {
11613
- /**
11614
- * Indicates if output the original image instead of the compressed one
11615
- * when the size of the compressed image is greater than the original one's
11616
- * @type {boolean}
11617
- */
11618
- strict: !0,
11619
- /**
11620
- * Indicates if read the image's Exif Orientation information,
11621
- * and then rotate or flip the image automatically.
11622
- * @type {boolean}
11623
- */
11624
- checkOrientation: !0,
11625
- /**
11626
- * Indicates if retain the image's Exif information after compressed.
11627
- * @type {boolean}
11628
- */
11629
- retainExif: !1,
11630
- /**
11631
- * The max width of the output image.
11632
- * @type {number}
11633
- */
11634
- maxWidth: 1 / 0,
11635
- /**
11636
- * The max height of the output image.
11637
- * @type {number}
11638
- */
11639
- maxHeight: 1 / 0,
11640
- /**
11641
- * The min width of the output image.
11642
- * @type {number}
11643
- */
11644
- minWidth: 0,
11645
- /**
11646
- * The min height of the output image.
11647
- * @type {number}
11648
- */
11649
- minHeight: 0,
11650
- /**
11651
- * The width of the output image.
11652
- * If not specified, the natural width of the source image will be used.
11653
- * @type {number}
11654
- */
11655
- width: void 0,
11656
- /**
11657
- * The height of the output image.
11658
- * If not specified, the natural height of the source image will be used.
11659
- * @type {number}
11660
- */
11661
- height: void 0,
11662
- /**
11663
- * Sets how the size of the image should be resized to the container
11664
- * specified by the `width` and `height` options.
11665
- * @type {string}
11666
- */
11667
- resize: "none",
11668
- /**
11669
- * The quality of the output image.
11670
- * It must be a number between `0` and `1`,
11671
- * and only available for `image/jpeg` and `image/webp` images.
11672
- * Check out {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob canvas.toBlob}.
11673
- * @type {number}
11674
- */
11675
- quality: 0.8,
11676
- /**
11677
- * The mime type of the output image.
11678
- * By default, the original mime type of the source image file will be used.
11679
- * @type {string}
11680
- */
11681
- mimeType: "auto",
11682
- /**
11683
- * Files whose file type is included in this list,
11684
- * and whose file size exceeds the `convertSize` value will be converted to JPEGs.
11685
- * @type {string|Array}
11686
- */
11687
- convertTypes: ["image/png"],
11688
- /**
11689
- * PNG files over this size (5 MB by default) will be converted to JPEGs.
11690
- * To disable this, just set the value to `Infinity`.
11691
- * @type {number}
11692
- */
11693
- convertSize: 5e6,
11694
- /**
11695
- * The hook function to execute before draw the image into the canvas for compression.
11696
- * @type {Function}
11697
- * @param {CanvasRenderingContext2D} context - The 2d rendering context of the canvas.
11698
- * @param {HTMLCanvasElement} canvas - The canvas for compression.
11699
- * @example
11700
- * function (context, canvas) {
11701
- * context.fillStyle = '#fff';
11702
- * }
11703
- */
11704
- beforeDraw: null,
11705
- /**
11706
- * The hook function to execute after drew the image into the canvas for compression.
11707
- * @type {Function}
11708
- * @param {CanvasRenderingContext2D} context - The 2d rendering context of the canvas.
11709
- * @param {HTMLCanvasElement} canvas - The canvas for compression.
11710
- * @example
11711
- * function (context, canvas) {
11712
- * context.filter = 'grayscale(100%)';
11713
- * }
11714
- */
11715
- drew: null,
11716
- /**
11717
- * The hook function to execute when success to compress the image.
11718
- * @type {Function}
11719
- * @param {File} file - The compressed image File object.
11720
- * @example
11721
- * function (file) {
11722
- * console.log(file);
11723
- * }
11724
- */
11725
- success: null,
11726
- /**
11727
- * The hook function to execute when fail to compress the image.
11728
- * @type {Function}
11729
- * @param {Error} err - An Error object.
11730
- * @example
11731
- * function (err) {
11732
- * console.log(err.message);
11733
- * }
11734
- */
11735
- error: null
11736
- }, Zz = typeof window < "u" && typeof window.document < "u", Ja = Zz ? window : {}, Km = function(t) {
11737
- return t > 0 && t < 1 / 0;
11738
- }, Xz = Array.prototype.slice;
11739
- function ZE(e) {
11740
- return Array.from ? Array.from(e) : Xz.call(e);
11741
- }
11742
- var Jz = /^image\/.+$/;
11743
- function kb(e) {
11744
- return Jz.test(e);
11745
- }
11746
- function Qz(e) {
11747
- var t = kb(e) ? e.substr(6) : "";
11748
- return t === "jpeg" && (t = "jpg"), ".".concat(t);
11749
- }
11750
- var Rk = String.fromCharCode;
11751
- function e3(e, t, n) {
11752
- var o = "", s;
11753
- for (n += t, s = t; s < n; s += 1)
11754
- o += Rk(e.getUint8(s));
11755
- return o;
11756
- }
11757
- var t3 = Ja.btoa;
11758
- function ZD(e, t) {
11759
- for (var n = [], o = 8192, s = new Uint8Array(e); s.length > 0; )
11760
- n.push(Rk.apply(null, ZE(s.subarray(0, o)))), s = s.subarray(o);
11761
- return "data:".concat(t, ";base64,").concat(t3(n.join("")));
11762
- }
11763
- function n3(e) {
11764
- var t = new DataView(e), n;
11765
- try {
11766
- var o, s, i;
11767
- if (t.getUint8(0) === 255 && t.getUint8(1) === 216)
11768
- for (var r = t.byteLength, a = 2; a + 1 < r; ) {
11769
- if (t.getUint8(a) === 255 && t.getUint8(a + 1) === 225) {
11770
- s = a;
11771
- break;
11657
+ var y, _;
11658
+ }, defineClass: function() {
11659
+ return function(m) {
11660
+ l(this, m);
11661
+ };
11662
+ }, ignoreTransaction: function(m) {
11663
+ return He.trans ? Zo(He.transless, m) : m();
11664
+ }, vip: ow, async: function(m) {
11665
+ return function() {
11666
+ try {
11667
+ var y = uw(m.apply(this, arguments));
11668
+ return y && typeof y.then == "function" ? y : Qe.resolve(y);
11669
+ } catch (_) {
11670
+ return $n(_);
11772
11671
  }
11773
- a += 1;
11672
+ };
11673
+ }, spawn: function(m, y, _) {
11674
+ try {
11675
+ var I = uw(m.apply(_, y || []));
11676
+ return I && typeof I.then == "function" ? I : Qe.resolve(I);
11677
+ } catch (M) {
11678
+ return $n(M);
11774
11679
  }
11775
- if (s) {
11776
- var l = s + 4, u = s + 10;
11777
- if (e3(t, l, 4) === "Exif") {
11778
- var c = t.getUint16(u);
11779
- if (o = c === 18761, (o || c === 19789) && t.getUint16(u + 2, o) === 42) {
11780
- var d = t.getUint32(u + 4, o);
11781
- d >= 8 && (i = u + d);
11782
- }
11680
+ }, currentTransaction: { get: function() {
11681
+ return He.trans || null;
11682
+ } }, waitFor: function(m, y) {
11683
+ return y = Qe.resolve(typeof m == "function" ? ml.ignoreTransaction(m) : m).timeout(y || 6e4), He.trans ? He.trans.waitFor(y) : y;
11684
+ }, Promise: Qe, debug: { get: function() {
11685
+ return ve;
11686
+ }, set: function(m) {
11687
+ Ae(m);
11688
+ } }, derive: g, extend: l, props: h, override: S, Events: kd, on: Ea, liveQuery: CR, extendObservabilitySet: Mp, getByKeyPath: R, setByKeyPath: x, delByKeyPath: function(m, y) {
11689
+ typeof y == "string" ? x(m, y, void 0) : "length" in y && [].map.call(y, function(_) {
11690
+ x(m, _, void 0);
11691
+ });
11692
+ }, shallowClone: A, deepClone: P, getObjectDiff: cw, cmp: sn, asap: E, minKey: -1 / 0, addons: [], connections: Ou, errnames: Oe, dependencies: Bp, cache: gl, semVer: "4.0.10", version: "4.0.10".split(".").map(function(m) {
11693
+ return parseInt(m);
11694
+ }).reduce(function(m, y, _) {
11695
+ return m + y / Math.pow(10, 2 * _);
11696
+ }) })), ml.maxKey = Vd(ml.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (Ea(Ld, function(m) {
11697
+ _a || (m = new CustomEvent(qy, { detail: m }), _a = !0, dispatchEvent(m), _a = !1);
11698
+ }), addEventListener(qy, function(m) {
11699
+ m = m.detail, _a || pw(m);
11700
+ }));
11701
+ var Lu, _a = !1, bR = function() {
11702
+ };
11703
+ return typeof BroadcastChannel < "u" && ((bR = function() {
11704
+ (Lu = new BroadcastChannel(qy)).onmessage = function(m) {
11705
+ return m.data && pw(m.data);
11706
+ };
11707
+ })(), typeof Lu.unref == "function" && Lu.unref(), Ea(Ld, function(m) {
11708
+ _a || Lu.postMessage(m);
11709
+ })), typeof addEventListener < "u" && (addEventListener("pagehide", function(m) {
11710
+ if (!Nr.disableBfCache && m.persisted) {
11711
+ ve && console.debug("Dexie: handling persisted pagehide"), Lu != null && Lu.close();
11712
+ for (var y = 0, _ = Ou; y < _.length; y++) _[y].close({ disableAutoOpen: !1 });
11783
11713
  }
11784
- }
11785
- if (i) {
11786
- var h = t.getUint16(i, o), f, p;
11787
- for (p = 0; p < h; p += 1)
11788
- if (f = i + p * 12 + 2, t.getUint16(f, o) === 274) {
11789
- f += 8, n = t.getUint16(f, o), t.setUint16(f, 1, o);
11790
- break;
11791
- }
11792
- }
11793
- } catch {
11794
- n = 1;
11795
- }
11796
- return n;
11797
- }
11798
- function o3(e) {
11799
- var t = 0, n = 1, o = 1;
11800
- switch (e) {
11801
- case 2:
11802
- n = -1;
11803
- break;
11804
- case 3:
11805
- t = -180;
11806
- break;
11807
- case 4:
11808
- o = -1;
11809
- break;
11810
- case 5:
11811
- t = 90, o = -1;
11812
- break;
11813
- case 6:
11814
- t = 90;
11815
- break;
11816
- case 7:
11817
- t = 90, n = -1;
11818
- break;
11819
- case 8:
11820
- t = -90;
11821
- break;
11714
+ }), addEventListener("pageshow", function(m) {
11715
+ !Nr.disableBfCache && m.persisted && (ve && console.debug("Dexie: handling persisted pageshow"), bR(), pw({ all: new ko(-1 / 0, [[]]) }));
11716
+ })), Qe.rejectionMapper = function(m, y) {
11717
+ return !m || m instanceof L || m instanceof TypeError || m instanceof SyntaxError || !m.name || !le[m.name] ? m : (y = new le[m.name](y || m.message, m), "stack" in m && p(y, "stack", { get: function() {
11718
+ return this.inner.stack;
11719
+ } }), y);
11720
+ }, Ae(ve), o(Nr, Object.freeze({ __proto__: null, Dexie: Nr, liveQuery: CR, Entity: X_, cmp: sn, PropModSymbol: Mr, PropModification: Md, replacePrefix: function(m, y) {
11721
+ return new Md({ replacePrefix: [m, y] });
11722
+ }, add: function(m) {
11723
+ return new Md({ add: m });
11724
+ }, remove: function(m) {
11725
+ return new Md({ remove: m });
11726
+ }, default: Nr, RangeSet: ko, mergeRanges: $d, rangesOverlap: cR }), { default: Nr }), Nr;
11727
+ });
11728
+ })(_k);
11729
+ var e3 = _k.exports;
11730
+ const kb = /* @__PURE__ */ Qz(e3), ZD = Symbol.for("Dexie"), uf = globalThis[ZD] || (globalThis[ZD] = kb);
11731
+ if (kb.semVer !== uf.semVer)
11732
+ throw new Error(`Two different versions of Dexie loaded in the same app: ${kb.semVer} and ${uf.semVer}`);
11733
+ const {
11734
+ liveQuery: eDe,
11735
+ mergeRanges: tDe,
11736
+ rangesOverlap: nDe,
11737
+ RangeSet: oDe,
11738
+ cmp: sDe,
11739
+ Entity: iDe,
11740
+ PropModSymbol: rDe,
11741
+ PropModification: aDe,
11742
+ replacePrefix: lDe,
11743
+ add: uDe,
11744
+ remove: cDe
11745
+ } = uf;
11746
+ class XD extends uf {
11747
+ constructor(n) {
11748
+ super(n);
11749
+ zn(this, "icons");
11750
+ zn(this, "visuals");
11751
+ zn(this, "users");
11752
+ zn(this, "columns");
11753
+ zn(this, "general");
11754
+ this.version(1).stores({
11755
+ icons: "key",
11756
+ visuals: "key",
11757
+ users: "key",
11758
+ columns: "key",
11759
+ general: "key"
11760
+ });
11822
11761
  }
11823
- return {
11824
- rotate: t,
11825
- scaleX: n,
11826
- scaleY: o
11827
- };
11828
- }
11829
- var s3 = /\.\d*(?:0|9){12}\d*$/;
11830
- function XD(e) {
11831
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1e11;
11832
- return s3.test(e) ? Math.round(e * t) / t : e;
11833
- }
11834
- function Kd(e) {
11835
- var t = e.aspectRatio, n = e.height, o = e.width, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none", i = Km(o), r = Km(n);
11836
- if (i && r) {
11837
- var a = n * t;
11838
- (s === "contain" || s === "none") && a > o || s === "cover" && a < o ? n = o / t : o = n * t;
11839
- } else i ? n = o / t : r && (o = n * t);
11840
- return {
11841
- width: o,
11842
- height: n
11843
- };
11844
- }
11845
- function i3(e) {
11846
- for (var t = ZE(new Uint8Array(e)), n = t.length, o = [], s = 0; s + 3 < n; ) {
11847
- var i = t[s], r = t[s + 1];
11848
- if (i === 255 && r === 218)
11849
- break;
11850
- if (i === 255 && r === 216)
11851
- s += 2;
11852
- else {
11853
- var a = t[s + 2] * 256 + t[s + 3], l = s + a + 2, u = t.slice(s, l);
11854
- o.push(u), s = l;
11855
- }
11762
+ // Helper method to safely get a table with fallback
11763
+ getTable(n) {
11764
+ return this[n] ? this[n] : this.general;
11856
11765
  }
11857
- return o.reduce(function(c, d) {
11858
- return d[0] === 255 && d[1] === 225 ? c.concat(d) : c;
11859
- }, []);
11860
- }
11861
- function r3(e, t) {
11862
- var n = ZE(new Uint8Array(e));
11863
- if (n[2] !== 255 || n[3] !== 224)
11864
- return e;
11865
- var o = n[4] * 256 + n[5], s = [255, 216].concat(t, n.slice(4 + o));
11866
- return new Uint8Array(s);
11867
11766
  }
11868
- var a3 = Ja.ArrayBuffer, Mw = Ja.FileReader, bl = Ja.URL || Ja.webkitURL, l3 = /\.\w+$/, u3 = Ja.Compressor, c3 = /* @__PURE__ */ function() {
11869
- function e(t, n) {
11870
- zz(this, e), this.file = t, this.exif = [], this.image = new Image(), this.options = Yp(Yp({}, YD), n), this.aborted = !1, this.result = null, this.init();
11871
- }
11872
- return jz(e, [{
11873
- key: "init",
11874
- value: function() {
11875
- var n = this, o = this.file, s = this.options;
11876
- if (!Yz(o)) {
11877
- this.fail(new Error("The first argument must be a File or Blob object."));
11878
- return;
11879
- }
11880
- var i = o.type;
11881
- if (!kb(i)) {
11882
- this.fail(new Error("The first argument must be an image File or Blob object."));
11883
- return;
11767
+ const qp = /* @__PURE__ */ new Map(), t3 = async (e) => {
11768
+ if (!qp.has(e)) {
11769
+ const t = new XD(e);
11770
+ try {
11771
+ await t.open(), qp.set(e, t);
11772
+ } catch (n) {
11773
+ console.error("Failed to open database, attempting to delete and recreate:", n);
11774
+ try {
11775
+ await uf.delete(e);
11776
+ const o = new XD(e);
11777
+ await o.open(), qp.set(e, o);
11778
+ } catch (o) {
11779
+ throw console.error("Failed to delete and recreate database:", o), o;
11884
11780
  }
11885
- if (!bl || !Mw) {
11886
- this.fail(new Error("The current browser does not support image compression."));
11781
+ }
11782
+ }
11783
+ return qp.get(e);
11784
+ }, Qf = ({
11785
+ dbName: e,
11786
+ storeName: t
11787
+ }) => {
11788
+ const n = async () => (await t3(e)).getTable(t);
11789
+ return {
11790
+ getCachedValue: async (u) => {
11791
+ try {
11792
+ const c = await n();
11793
+ if (!c) {
11794
+ console.error(`Store is undefined for key: ${u}`);
11795
+ return;
11796
+ }
11797
+ const d = await c.get(u);
11798
+ return d == null ? void 0 : d.value;
11799
+ } catch (c) {
11800
+ console.error("Failed to get cached value:", c);
11887
11801
  return;
11888
11802
  }
11889
- a3 || (s.checkOrientation = !1, s.retainExif = !1);
11890
- var r = i === "image/jpeg", a = r && s.checkOrientation, l = r && s.retainExif;
11891
- if (bl && !a && !l)
11892
- this.load({
11893
- url: bl.createObjectURL(o)
11803
+ },
11804
+ setCachedValue: async (u, c) => {
11805
+ try {
11806
+ const d = await n();
11807
+ if (!d) {
11808
+ console.error(`Store is undefined, cannot cache key: ${u}`);
11809
+ return;
11810
+ }
11811
+ await d.put({
11812
+ key: u,
11813
+ value: c,
11814
+ timestamp: Date.now()
11894
11815
  });
11895
- else {
11896
- var u = new Mw();
11897
- this.reader = u, u.onload = function(c) {
11898
- var d = c.target, h = d.result, f = {}, p = 1;
11899
- a && (p = n3(h), p > 1 && jm(f, o3(p))), l && (n.exif = i3(h)), a || l ? !bl || p > 1 ? f.url = ZD(h, i) : f.url = bl.createObjectURL(o) : f.url = h, n.load(f);
11900
- }, u.onabort = function() {
11901
- n.fail(new Error("Aborted to read the image with FileReader."));
11902
- }, u.onerror = function() {
11903
- n.fail(new Error("Failed to read the image with FileReader."));
11904
- }, u.onloadend = function() {
11905
- n.reader = null;
11906
- }, a || l ? u.readAsArrayBuffer(o) : u.readAsDataURL(o);
11907
- }
11908
- }
11909
- }, {
11910
- key: "load",
11911
- value: function(n) {
11912
- var o = this, s = this.file, i = this.image;
11913
- i.onload = function() {
11914
- o.draw(Yp(Yp({}, n), {}, {
11915
- naturalWidth: i.naturalWidth,
11916
- naturalHeight: i.naturalHeight
11917
- }));
11918
- }, i.onabort = function() {
11919
- o.fail(new Error("Aborted to load the image."));
11920
- }, i.onerror = function() {
11921
- o.fail(new Error("Failed to load the image."));
11922
- }, Ja.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Ja.navigator.userAgent) && (i.crossOrigin = "anonymous"), i.alt = s.name, i.src = n.url;
11923
- }
11924
- }, {
11925
- key: "draw",
11926
- value: function(n) {
11927
- var o = this, s = n.naturalWidth, i = n.naturalHeight, r = n.rotate, a = r === void 0 ? 0 : r, l = n.scaleX, u = l === void 0 ? 1 : l, c = n.scaleY, d = c === void 0 ? 1 : c, h = this.file, f = this.image, p = this.options, g = document.createElement("canvas"), v = g.getContext("2d"), w = Math.abs(a) % 180 === 90, b = (p.resize === "contain" || p.resize === "cover") && Km(p.width) && Km(p.height), S = Math.max(p.maxWidth, 0) || 1 / 0, C = Math.max(p.maxHeight, 0) || 1 / 0, E = Math.max(p.minWidth, 0) || 0, R = Math.max(p.minHeight, 0) || 0, x = s / i, A = p.width, k = p.height;
11928
- if (w) {
11929
- var T = [C, S];
11930
- S = T[0], C = T[1];
11931
- var D = [R, E];
11932
- E = D[0], R = D[1];
11933
- var F = [k, A];
11934
- A = F[0], k = F[1];
11935
- }
11936
- b && (x = A / k);
11937
- var P = Kd({
11938
- aspectRatio: x,
11939
- width: S,
11940
- height: C
11941
- }, "contain");
11942
- S = P.width, C = P.height;
11943
- var H = Kd({
11944
- aspectRatio: x,
11945
- width: E,
11946
- height: R
11947
- }, "cover");
11948
- if (E = H.width, R = H.height, b) {
11949
- var oe = Kd({
11950
- aspectRatio: x,
11951
- width: A,
11952
- height: k
11953
- }, p.resize);
11954
- A = oe.width, k = oe.height;
11955
- } else {
11956
- var $ = Kd({
11957
- aspectRatio: x,
11958
- width: A,
11959
- height: k
11960
- }), K = $.width;
11961
- A = K === void 0 ? s : K;
11962
- var J = $.height;
11963
- k = J === void 0 ? i : J;
11816
+ } catch (d) {
11817
+ console.error("Failed to cache value:", d);
11964
11818
  }
11965
- A = Math.floor(XD(Math.min(Math.max(A, E), S))), k = Math.floor(XD(Math.min(Math.max(k, R), C)));
11966
- var Z = -A / 2, ce = -k / 2, N = A, Y = k, L = [];
11967
- if (b) {
11968
- var se = 0, de = 0, Ne = s, Oe = i, Ke = Kd({
11969
- aspectRatio: x,
11970
- width: s,
11971
- height: i
11972
- }, {
11973
- contain: "cover",
11974
- cover: "contain"
11975
- }[p.resize]);
11976
- Ne = Ke.width, Oe = Ke.height, se = (s - Ne) / 2, de = (i - Oe) / 2, L.push(se, de, Ne, Oe);
11819
+ },
11820
+ deleteCachedValue: async (u) => {
11821
+ try {
11822
+ const c = await n();
11823
+ if (!c) {
11824
+ console.error(`Store is undefined, cannot delete key: ${u}`);
11825
+ return;
11826
+ }
11827
+ await c.delete(u);
11828
+ } catch (c) {
11829
+ console.error("Failed to delete cached value:", c);
11977
11830
  }
11978
- if (L.push(Z, ce, N, Y), w) {
11979
- var W = [k, A];
11980
- A = W[0], k = W[1];
11831
+ },
11832
+ clearCache: async () => {
11833
+ try {
11834
+ const u = await n();
11835
+ if (!u) {
11836
+ console.error("Store is undefined, cannot clear cache");
11837
+ return;
11838
+ }
11839
+ await u.clear();
11840
+ } catch (u) {
11841
+ console.error("Failed to clear cache:", u);
11981
11842
  }
11982
- g.width = A, g.height = k, kb(p.mimeType) || (p.mimeType = h.type);
11983
- var le = "transparent";
11984
- h.size > p.convertSize && p.convertTypes.indexOf(p.mimeType) >= 0 && (p.mimeType = "image/jpeg");
11985
- var Pe = p.mimeType === "image/jpeg";
11986
- if (Pe && (le = "#fff"), v.fillStyle = le, v.fillRect(0, 0, A, k), p.beforeDraw && p.beforeDraw.call(this, v, g), !this.aborted && (v.save(), v.translate(A / 2, k / 2), v.rotate(a * Math.PI / 180), v.scale(u, d), v.drawImage.apply(v, [f].concat(L)), v.restore(), p.drew && p.drew.call(this, v, g), !this.aborted)) {
11987
- var Ge = function(te) {
11988
- if (!o.aborted) {
11989
- var ye = function(V) {
11990
- return o.done({
11991
- naturalWidth: s,
11992
- naturalHeight: i,
11993
- result: V
11994
- });
11995
- };
11996
- if (te && Pe && p.retainExif && o.exif && o.exif.length > 0) {
11997
- var Ie = function(V) {
11998
- return ye(qD(ZD(r3(V, o.exif), p.mimeType)));
11999
- };
12000
- if (te.arrayBuffer)
12001
- te.arrayBuffer().then(Ie).catch(function() {
12002
- o.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."));
12003
- });
12004
- else {
12005
- var Te = new Mw();
12006
- o.reader = Te, Te.onload = function(O) {
12007
- var V = O.target;
12008
- Ie(V.result);
12009
- }, Te.onabort = function() {
12010
- o.fail(new Error("Aborted to read the compressed image with FileReader."));
12011
- }, Te.onerror = function() {
12012
- o.fail(new Error("Failed to read the compressed image with FileReader."));
12013
- }, Te.onloadend = function() {
12014
- o.reader = null;
12015
- }, Te.readAsArrayBuffer(te);
12016
- }
12017
- } else
12018
- ye(te);
12019
- }
12020
- };
12021
- g.toBlob ? g.toBlob(Ge, p.mimeType, p.quality) : Ge(qD(g.toDataURL(p.mimeType, p.quality)));
11843
+ },
11844
+ getAllKeys: async () => {
11845
+ try {
11846
+ const u = await n();
11847
+ return u ? (await u.toArray()).map((d) => d.key) : (console.error("Store is undefined, cannot get all keys"), []);
11848
+ } catch (u) {
11849
+ return console.error("Failed to get all keys:", u), [];
12022
11850
  }
12023
- }
12024
- }, {
12025
- key: "done",
12026
- value: function(n) {
12027
- var o = n.naturalWidth, s = n.naturalHeight, i = n.result, r = this.file, a = this.image, l = this.options;
12028
- if (bl && a.src.indexOf("blob:") === 0 && bl.revokeObjectURL(a.src), i)
12029
- if (l.strict && !l.retainExif && i.size > r.size && l.mimeType === r.type && !(l.width > o || l.height > s || l.minWidth > o || l.minHeight > s || l.maxWidth < o || l.maxHeight < s))
12030
- i = r;
12031
- else {
12032
- var u = /* @__PURE__ */ new Date();
12033
- i.lastModified = u.getTime(), i.lastModifiedDate = u, i.name = r.name, i.name && i.type !== r.type && (i.name = i.name.replace(l3, Qz(i.type)));
11851
+ },
11852
+ getCachedValueWithTimestamp: async (u) => {
11853
+ try {
11854
+ const c = await n();
11855
+ if (!c) {
11856
+ console.error(`Store is undefined for key: ${u}`);
11857
+ return;
12034
11858
  }
12035
- else
12036
- i = r;
12037
- this.result = i, l.success && l.success.call(this, i);
12038
- }
12039
- }, {
12040
- key: "fail",
12041
- value: function(n) {
12042
- var o = this.options;
12043
- if (o.error)
12044
- o.error.call(this, n);
12045
- else
12046
- throw n;
12047
- }
12048
- }, {
12049
- key: "abort",
12050
- value: function() {
12051
- this.aborted || (this.aborted = !0, this.reader ? this.reader.abort() : this.image.complete ? this.fail(new Error("The compression process has been aborted.")) : (this.image.onload = null, this.image.onabort()));
12052
- }
12053
- /**
12054
- * Get the no conflict compressor class.
12055
- * @returns {Compressor} The compressor class.
12056
- */
12057
- }], [{
12058
- key: "noConflict",
12059
- value: function() {
12060
- return window.Compressor = u3, e;
12061
- }
12062
- /**
12063
- * Change the default options.
12064
- * @param {Object} options - The new default options.
12065
- */
12066
- }, {
12067
- key: "setDefaults",
12068
- value: function(n) {
12069
- jm(YD, n);
11859
+ return await c.get(u);
11860
+ } catch (c) {
11861
+ console.error("Failed to get cached value with timestamp:", c);
11862
+ return;
11863
+ }
12070
11864
  }
12071
- }]), e;
12072
- }();
12073
- const d3 = "AvatarCache", h3 = "images", Sl = {}, Zp = {}, f3 = () => {
11865
+ };
11866
+ }, n3 = "AvatarCache", o3 = "images", Sl = {}, Yp = {}, s3 = () => {
12074
11867
  const { getCachedValue: e, setCachedValue: t } = Qf({
12075
- dbName: d3,
12076
- storeName: h3
11868
+ dbName: n3,
11869
+ storeName: o3
12077
11870
  }), n = (a) => new Promise((l, u) => {
12078
11871
  const c = new FileReader();
12079
11872
  c.onloadend = () => l(c.result), c.onerror = u, c.readAsDataURL(a);
@@ -12081,8 +11874,8 @@ const d3 = "AvatarCache", h3 = "images", Sl = {}, Zp = {}, f3 = () => {
12081
11874
  try {
12082
11875
  if (Sl[a])
12083
11876
  return Sl[a];
12084
- if (Zp[a])
12085
- return await Zp[a];
11877
+ if (Yp[a])
11878
+ return await Yp[a];
12086
11879
  const l = (async () => {
12087
11880
  try {
12088
11881
  const u = await e(a);
@@ -12093,14 +11886,14 @@ const d3 = "AvatarCache", h3 = "images", Sl = {}, Zp = {}, f3 = () => {
12093
11886
  return console.warn(`Failed to get cached image for key: ${a}`, u), null;
12094
11887
  }
12095
11888
  })();
12096
- return Zp[a] = l, l.finally(() => {
12097
- delete Zp[a];
11889
+ return Yp[a] = l, l.finally(() => {
11890
+ delete Yp[a];
12098
11891
  }), await l;
12099
11892
  } catch (l) {
12100
11893
  return console.error(`Error in getCachedImage for key: ${a}`, l), null;
12101
11894
  }
12102
11895
  }, s = (a) => new Promise((l, u) => {
12103
- new c3(a, {
11896
+ new Jz(a, {
12104
11897
  width: 96,
12105
11898
  height: 96,
12106
11899
  quality: 1,
@@ -12132,27 +11925,27 @@ const d3 = "AvatarCache", h3 = "images", Sl = {}, Zp = {}, f3 = () => {
12132
11925
  }
12133
11926
  }
12134
11927
  };
12135
- }, Ph = /* @__PURE__ */ new Map(), ir = /* @__PURE__ */ new Map(), Sc = /* @__PURE__ */ new Map(), p3 = 5 * 60 * 1e3, JD = 100;
12136
- function g3() {
11928
+ }, Ph = /* @__PURE__ */ new Map(), ir = /* @__PURE__ */ new Map(), Sc = /* @__PURE__ */ new Map(), i3 = 5 * 60 * 1e3, JD = 100;
11929
+ function r3() {
12137
11930
  const e = Date.now(), t = [];
12138
11931
  Sc.forEach((n, o) => {
12139
- e - n > p3 && t.push(o);
11932
+ e - n > i3 && t.push(o);
12140
11933
  }), t.forEach((n) => {
12141
11934
  Ph.delete(n), Sc.delete(n), ir.delete(n);
12142
11935
  });
12143
11936
  }
12144
- function m3() {
11937
+ function a3() {
12145
11938
  if (Sc.size <= JD) return;
12146
11939
  const e = Array.from(Sc.entries()).sort((n, o) => n[1] - o[1]);
12147
11940
  e.slice(0, e.length - JD).forEach(([n]) => {
12148
11941
  Ph.delete(n), Sc.delete(n), ir.delete(n);
12149
11942
  });
12150
11943
  }
12151
- const v3 = (e, t) => {
11944
+ const l3 = (e, t) => {
12152
11945
  const n = ir.get(e);
12153
11946
  return n == null || n.forEach((o) => o(t)), ir.delete(e), t;
12154
11947
  };
12155
- async function y3({
11948
+ async function u3({
12156
11949
  userId: e,
12157
11950
  avatarUrl: t,
12158
11951
  cacheInterface: n,
@@ -12160,8 +11953,8 @@ async function y3({
12160
11953
  }) {
12161
11954
  const s = await n.getCachedImage(e), i = Ph.has(e), r = ir.has(e);
12162
11955
  if (s)
12163
- return v3(e, s);
12164
- if (g3(), i)
11956
+ return l3(e, s);
11957
+ if (r3(), i)
12165
11958
  return new Promise((u) => {
12166
11959
  r || ir.set(e, []), ir.get(e).push(u);
12167
11960
  });
@@ -12179,7 +11972,7 @@ async function y3({
12179
11972
  throw console.error("Error loading avatar image:", d), d;
12180
11973
  } finally {
12181
11974
  u = null, o == null || o(!1), Sc.set(e, Date.now()), setTimeout(() => {
12182
- Ph.delete(e), m3();
11975
+ Ph.delete(e), a3();
12183
11976
  }, 100);
12184
11977
  }
12185
11978
  })();
@@ -12187,7 +11980,7 @@ async function y3({
12187
11980
  const l = await a;
12188
11981
  return ir.has(e) && (ir.get(e).forEach((c) => c(l)), ir.delete(e)), l;
12189
11982
  }
12190
- const w3 = (e, t = 3, n = 1e3) => {
11983
+ const c3 = (e, t = 3, n = 1e3) => {
12191
11984
  const o = B(0), s = B(!1), i = B(!1), r = async () => {
12192
11985
  try {
12193
11986
  await e();
@@ -12200,29 +11993,29 @@ const w3 = (e, t = 3, n = 1e3) => {
12200
11993
  return { retry: r, currentAttempt: o, errorRetry: s, isRetrying: i };
12201
11994
  };
12202
11995
  function Fo(e, t) {
12203
- C3(e) && (e = "100%");
12204
- const n = b3(e);
11996
+ d3(e) && (e = "100%");
11997
+ const n = h3(e);
12205
11998
  return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), n && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e);
12206
11999
  }
12207
- function Xp(e) {
12000
+ function Zp(e) {
12208
12001
  return Math.min(1, Math.max(0, e));
12209
12002
  }
12210
- function C3(e) {
12003
+ function d3(e) {
12211
12004
  return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
12212
12005
  }
12213
- function b3(e) {
12006
+ function h3(e) {
12214
12007
  return typeof e == "string" && e.indexOf("%") !== -1;
12215
12008
  }
12216
- function Dk(e) {
12009
+ function Rk(e) {
12217
12010
  return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
12218
12011
  }
12219
- function Jp(e) {
12012
+ function Xp(e) {
12220
12013
  return Number(e) <= 1 ? `${Number(e) * 100}%` : e;
12221
12014
  }
12222
12015
  function Nl(e) {
12223
12016
  return e.length === 1 ? "0" + e : String(e);
12224
12017
  }
12225
- function S3(e, t, n) {
12018
+ function f3(e, t, n) {
12226
12019
  return {
12227
12020
  r: Fo(e, 255) * 255,
12228
12021
  g: Fo(t, 255) * 255,
@@ -12256,7 +12049,7 @@ function QD(e, t, n) {
12256
12049
  function Nw(e, t, n) {
12257
12050
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * (6 * n) : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
12258
12051
  }
12259
- function E3(e, t, n) {
12052
+ function p3(e, t, n) {
12260
12053
  let o, s, i;
12261
12054
  if (e = Fo(e, 360), t = Fo(t, 100), n = Fo(n, 100), t === 0)
12262
12055
  s = n, i = n, o = n;
@@ -12289,7 +12082,7 @@ function eT(e, t, n) {
12289
12082
  }
12290
12083
  return { h: i, s: l, v: r };
12291
12084
  }
12292
- function _3(e, t, n) {
12085
+ function g3(e, t, n) {
12293
12086
  e = Fo(e, 360) * 6, t = Fo(t, 100), n = Fo(n, 100);
12294
12087
  const o = Math.floor(e), s = e - o, i = n * (1 - t), r = n * (1 - s * t), a = n * (1 - (1 - s) * t), l = o % 6, u = [n, r, i, i, a, n][l], c = [a, n, n, r, i, i][l], d = [i, i, a, n, n, r][l];
12295
12088
  return { r: u * 255, g: c * 255, b: d * 255 };
@@ -12302,16 +12095,16 @@ function tT(e, t, n, o) {
12302
12095
  ];
12303
12096
  return o && s[0].startsWith(s[0].charAt(1)) && s[1].startsWith(s[1].charAt(1)) && s[2].startsWith(s[2].charAt(1)) ? s[0].charAt(0) + s[1].charAt(0) + s[2].charAt(0) : s.join("");
12304
12097
  }
12305
- function R3(e, t, n, o, s) {
12098
+ function m3(e, t, n, o, s) {
12306
12099
  const i = [
12307
12100
  Nl(Math.round(e).toString(16)),
12308
12101
  Nl(Math.round(t).toString(16)),
12309
12102
  Nl(Math.round(n).toString(16)),
12310
- Nl(T3(o))
12103
+ Nl(y3(o))
12311
12104
  ];
12312
12105
  return s && i[0].startsWith(i[0].charAt(1)) && i[1].startsWith(i[1].charAt(1)) && i[2].startsWith(i[2].charAt(1)) && i[3].startsWith(i[3].charAt(1)) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) + i[3].charAt(0) : i.join("");
12313
12106
  }
12314
- function D3(e, t, n, o) {
12107
+ function v3(e, t, n, o) {
12315
12108
  const s = e / 100, i = t / 100, r = n / 100, a = o / 100, l = 255 * (1 - s) * (1 - a), u = 255 * (1 - i) * (1 - a), c = 255 * (1 - r) * (1 - a);
12316
12109
  return { r: l, g: u, b: c };
12317
12110
  }
@@ -12324,7 +12117,7 @@ function nT(e, t, n) {
12324
12117
  k: Math.round(r)
12325
12118
  };
12326
12119
  }
12327
- function T3(e) {
12120
+ function y3(e) {
12328
12121
  return Math.round(parseFloat(e) * 255).toString(16);
12329
12122
  }
12330
12123
  function oT(e) {
@@ -12333,7 +12126,7 @@ function oT(e) {
12333
12126
  function bs(e) {
12334
12127
  return parseInt(e, 16);
12335
12128
  }
12336
- function x3(e) {
12129
+ function w3(e) {
12337
12130
  return {
12338
12131
  r: e >> 16,
12339
12132
  g: (e & 65280) >> 8,
@@ -12490,9 +12283,9 @@ const Ob = {
12490
12283
  yellow: "#ffff00",
12491
12284
  yellowgreen: "#9acd32"
12492
12285
  };
12493
- function I3(e) {
12286
+ function C3(e) {
12494
12287
  let t = { r: 0, g: 0, b: 0 }, n = 1, o = null, s = null, i = null, r = !1, a = !1;
12495
- return typeof e == "string" && (e = A3(e)), typeof e == "object" && (Cs(e.r) && Cs(e.g) && Cs(e.b) ? (t = S3(e.r, e.g, e.b), r = !0, a = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Cs(e.h) && Cs(e.s) && Cs(e.v) ? (o = Jp(e.s), s = Jp(e.v), t = _3(e.h, o, s), r = !0, a = "hsv") : Cs(e.h) && Cs(e.s) && Cs(e.l) ? (o = Jp(e.s), i = Jp(e.l), t = E3(e.h, o, i), r = !0, a = "hsl") : Cs(e.c) && Cs(e.m) && Cs(e.y) && Cs(e.k) && (t = D3(e.c, e.m, e.y, e.k), r = !0, a = "cmyk"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = Dk(n), {
12288
+ return typeof e == "string" && (e = E3(e)), typeof e == "object" && (Cs(e.r) && Cs(e.g) && Cs(e.b) ? (t = f3(e.r, e.g, e.b), r = !0, a = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Cs(e.h) && Cs(e.s) && Cs(e.v) ? (o = Xp(e.s), s = Xp(e.v), t = g3(e.h, o, s), r = !0, a = "hsv") : Cs(e.h) && Cs(e.s) && Cs(e.l) ? (o = Xp(e.s), i = Xp(e.l), t = p3(e.h, o, i), r = !0, a = "hsl") : Cs(e.c) && Cs(e.m) && Cs(e.y) && Cs(e.k) && (t = v3(e.c, e.m, e.y, e.k), r = !0, a = "cmyk"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = Rk(n), {
12496
12289
  ok: r,
12497
12290
  format: e.format || a,
12498
12291
  r: Math.min(255, Math.max(t.r, 0)),
@@ -12501,24 +12294,24 @@ function I3(e) {
12501
12294
  a: n
12502
12295
  };
12503
12296
  }
12504
- const F3 = "[-\\+]?\\d+%?", P3 = "[-\\+]?\\d*\\.\\d+%?", ja = "(?:" + P3 + ")|(?:" + F3 + ")", Lw = "[\\s|\\(]+(" + ja + ")[,|\\s]+(" + ja + ")[,|\\s]+(" + ja + ")\\s*\\)?", Qp = (
12297
+ const b3 = "[-\\+]?\\d+%?", S3 = "[-\\+]?\\d*\\.\\d+%?", ja = "(?:" + S3 + ")|(?:" + b3 + ")", Lw = "[\\s|\\(]+(" + ja + ")[,|\\s]+(" + ja + ")[,|\\s]+(" + ja + ")\\s*\\)?", Jp = (
12505
12298
  // eslint-disable-next-line prettier/prettier
12506
12299
  "[\\s|\\(]+(" + ja + ")[,|\\s]+(" + ja + ")[,|\\s]+(" + ja + ")[,|\\s]+(" + ja + ")\\s*\\)?"
12507
12300
  ), Us = {
12508
12301
  CSS_UNIT: new RegExp(ja),
12509
12302
  rgb: new RegExp("rgb" + Lw),
12510
- rgba: new RegExp("rgba" + Qp),
12303
+ rgba: new RegExp("rgba" + Jp),
12511
12304
  hsl: new RegExp("hsl" + Lw),
12512
- hsla: new RegExp("hsla" + Qp),
12305
+ hsla: new RegExp("hsla" + Jp),
12513
12306
  hsv: new RegExp("hsv" + Lw),
12514
- hsva: new RegExp("hsva" + Qp),
12515
- cmyk: new RegExp("cmyk" + Qp),
12307
+ hsva: new RegExp("hsva" + Jp),
12308
+ cmyk: new RegExp("cmyk" + Jp),
12516
12309
  hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
12517
12310
  hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
12518
12311
  hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
12519
12312
  hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
12520
12313
  };
12521
- function A3(e) {
12314
+ function E3(e) {
12522
12315
  if (e = e.trim().toLowerCase(), e.length === 0)
12523
12316
  return !1;
12524
12317
  let t = !1;
@@ -12563,8 +12356,8 @@ class Gn {
12563
12356
  constructor(t = "", n = {}) {
12564
12357
  if (t instanceof Gn)
12565
12358
  return t;
12566
- typeof t == "number" && (t = x3(t)), this.originalInput = t;
12567
- const o = I3(t);
12359
+ typeof t == "number" && (t = w3(t)), this.originalInput = t;
12360
+ const o = C3(t);
12568
12361
  this.originalInput = t, this.r = o.r, this.g = o.g, this.b = o.b, this.a = o.a, this.roundA = Math.round(100 * this.a) / 100, this.format = n.format ?? o.format, this.gradientType = n.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = o.ok;
12569
12362
  }
12570
12363
  isDark() {
@@ -12601,7 +12394,7 @@ class Gn {
12601
12394
  * @param alpha - The new alpha value. The accepted range is 0-1.
12602
12395
  */
12603
12396
  setAlpha(t) {
12604
- return this.a = Dk(t), this.roundA = Math.round(100 * this.a) / 100, this;
12397
+ return this.a = Rk(t), this.roundA = Math.round(100 * this.a) / 100, this;
12605
12398
  }
12606
12399
  /**
12607
12400
  * Returns whether the color is monochrome.
@@ -12659,7 +12452,7 @@ class Gn {
12659
12452
  * @param allow4Char will shorten hex value to 4 char if possible
12660
12453
  */
12661
12454
  toHex8(t = !1) {
12662
- return R3(this.r, this.g, this.b, this.a, t);
12455
+ return m3(this.r, this.g, this.b, this.a, t);
12663
12456
  }
12664
12457
  /**
12665
12458
  * Returns the hex 8 value of the color -with a # prefixed.
@@ -12755,7 +12548,7 @@ class Gn {
12755
12548
  */
12756
12549
  lighten(t = 10) {
12757
12550
  const n = this.toHsl();
12758
- return n.l += t / 100, n.l = Xp(n.l), new Gn(n);
12551
+ return n.l += t / 100, n.l = Zp(n.l), new Gn(n);
12759
12552
  }
12760
12553
  /**
12761
12554
  * Brighten the color a given amount, from 0 to 100.
@@ -12772,7 +12565,7 @@ class Gn {
12772
12565
  */
12773
12566
  darken(t = 10) {
12774
12567
  const n = this.toHsl();
12775
- return n.l -= t / 100, n.l = Xp(n.l), new Gn(n);
12568
+ return n.l -= t / 100, n.l = Zp(n.l), new Gn(n);
12776
12569
  }
12777
12570
  /**
12778
12571
  * Mix the color with pure white, from 0 to 100.
@@ -12797,7 +12590,7 @@ class Gn {
12797
12590
  */
12798
12591
  desaturate(t = 10) {
12799
12592
  const n = this.toHsl();
12800
- return n.s -= t / 100, n.s = Xp(n.s), new Gn(n);
12593
+ return n.s -= t / 100, n.s = Zp(n.s), new Gn(n);
12801
12594
  }
12802
12595
  /**
12803
12596
  * Saturate the color a given amount, from 0 to 100.
@@ -12805,7 +12598,7 @@ class Gn {
12805
12598
  */
12806
12599
  saturate(t = 10) {
12807
12600
  const n = this.toHsl();
12808
- return n.s += t / 100, n.s = Xp(n.s), new Gn(n);
12601
+ return n.s += t / 100, n.s = Zp(n.s), new Gn(n);
12809
12602
  }
12810
12603
  /**
12811
12604
  * Completely desaturates a color into greyscale.
@@ -12913,7 +12706,7 @@ function ep(e, t) {
12913
12706
  const { c1: n, c2: o } = { c1: new Gn(e), c2: new Gn(t) };
12914
12707
  return n.equals(o);
12915
12708
  }
12916
- const k3 = ["src", "alt"], O3 = /* @__PURE__ */ pt({
12709
+ const _3 = ["src", "alt"], R3 = /* @__PURE__ */ pt({
12917
12710
  __name: "Avatar",
12918
12711
  props: {
12919
12712
  name: {},
@@ -12959,7 +12752,7 @@ const k3 = ["src", "alt"], O3 = /* @__PURE__ */ pt({
12959
12752
  "--font-size": `${Math.floor(t.size / 2)}px`
12960
12753
  })), h = () => {
12961
12754
  n.value = "", i.value = !0;
12962
- }, { getCachedImage: f, setCachedImage: p } = f3(), g = async () => {
12755
+ }, { getCachedImage: f, setCachedImage: p } = s3(), g = async () => {
12963
12756
  if (s.value && s.value.abort(), n.value.startsWith("blob:") && URL.revokeObjectURL(n.value), !r.value.id || !r.value.profile_image) {
12964
12757
  n.value = "";
12965
12758
  return;
@@ -12967,7 +12760,7 @@ const k3 = ["src", "alt"], O3 = /* @__PURE__ */ pt({
12967
12760
  s.value = new AbortController();
12968
12761
  const C = s.value;
12969
12762
  try {
12970
- const E = await y3({
12763
+ const E = await u3({
12971
12764
  userId: r.value.id,
12972
12765
  avatarUrl: r.value.profile_image,
12973
12766
  cacheInterface: { getCachedImage: f, setCachedImage: p },
@@ -12980,7 +12773,7 @@ const k3 = ["src", "alt"], O3 = /* @__PURE__ */ pt({
12980
12773
  } catch (E) {
12981
12774
  C.signal.aborted || (console.error("Failed to load avatar:", E), n.value = "");
12982
12775
  }
12983
- }, { retry: v, errorRetry: w, isRetrying: b } = w3(g, 3, 2e3), S = tt(() => r.value.id, v, { immediate: !0 });
12776
+ }, { retry: v, errorRetry: w, isRetrying: b } = c3(g, 3, 2e3), S = tt(() => r.value.id, v, { immediate: !0 });
12984
12777
  return fo(() => {
12985
12778
  S(), s.value && (s.value.abort(), s.value = null), n.value.startsWith("blob:") && URL.revokeObjectURL(n.value), n.value = "", o.value = !1;
12986
12779
  }), (C, E) => (q(), ue("div", {
@@ -13007,21 +12800,226 @@ const k3 = ["src", "alt"], O3 = /* @__PURE__ */ pt({
13007
12800
  src: n.value || r.value.profile_image || "",
13008
12801
  alt: r.value.name || "Avatar",
13009
12802
  loading: "lazy"
13010
- }, null, 8, k3)) : Xe("", !0)
12803
+ }, null, 8, _3)) : Xe("", !0)
13011
12804
  ], 64))
13012
12805
  ], 6));
13013
12806
  }
13014
- }), M3 = "_me_1e3c6_16", N3 = "_action_1e3c6_37", L3 = "_loading_1e3c6_55", V3 = "_disabled_1e3c6_58", B3 = "_readOnly_1e3c6_61", H3 = {
12807
+ }), D3 = "_me_1e3c6_16", T3 = "_action_1e3c6_37", x3 = "_loading_1e3c6_55", I3 = "_disabled_1e3c6_58", F3 = "_readOnly_1e3c6_61", P3 = {
13015
12808
  "avatar-wrapper": "_avatar-wrapper_1e3c6_1",
13016
- me: M3,
12809
+ me: D3,
13017
12810
  "short-label": "_short-label_1e3c6_19",
13018
- action: N3,
13019
- loading: L3,
13020
- disabled: V3,
13021
- readOnly: B3
12811
+ action: T3,
12812
+ loading: x3,
12813
+ disabled: I3,
12814
+ readOnly: F3
12815
+ }, A3 = {
12816
+ $style: P3
12817
+ }, cf = /* @__PURE__ */ Rt(R3, [["__cssModules", A3]]), k3 = [
12818
+ "404",
12819
+ "ClickChart",
12820
+ "ClickToCreate",
12821
+ "NoAccess1",
12822
+ "NoActivity",
12823
+ "NoAssignedComment",
12824
+ "NoAssignedScene",
12825
+ "NoComment",
12826
+ "NoData",
12827
+ "NoData2",
12828
+ "NoRendition1",
12829
+ "NoRendition2",
12830
+ "PrivateComment",
12831
+ "PrivateScene",
12832
+ "ReportAchievement",
12833
+ "ReportCompletedScenes",
12834
+ "ReportInvolvement",
12835
+ "ReportMetric",
12836
+ "ReportOverdueScenes",
12837
+ "ReportProfessionalName",
12838
+ "ReportSceneAssignment",
12839
+ "ReportSceneStatus",
12840
+ "ReportSceneStatusType",
12841
+ "Successful1",
12842
+ "Unsuccessful1",
12843
+ "ConfirmDeletion",
12844
+ "Waiting1",
12845
+ "DefaultThumbnail",
12846
+ "UploadReviewFile",
12847
+ "ClickToSearch",
12848
+ "NoDataSearchFilter"
12849
+ ], O3 = ["UploadInProgress"], Ml = class Ml {
12850
+ constructor() {
12851
+ zn(this, "KEY_PAIR", {
12852
+ workspaceCode: "ws.code",
12853
+ apiBaseUrl: "API_BASE_URL",
12854
+ assetUrl: "ASSET_URL",
12855
+ baseUrl: "BASE_URL",
12856
+ baseReviewUrl: "BASE_REVIEW_URL"
12857
+ });
12858
+ Object.values(this.KEY_PAIR).every((n) => {
12859
+ const o = sessionStorage.getItem(n);
12860
+ return (o == null || o === "") && console.error(`[SessionStorageHelper] Key "${n}" is not set in sessionStorage.`), !0;
12861
+ }) || console.error(
12862
+ "[SessionStorageHelper] Some expected keys are missing in sessionStorage. Please ensure all required keys are set."
12863
+ );
12864
+ }
12865
+ static getInstance() {
12866
+ return Ml.instance || (Ml.instance = new Ml()), Ml.instance;
12867
+ }
12868
+ setItem(t, n) {
12869
+ try {
12870
+ sessionStorage.setItem(t, n);
12871
+ } catch (o) {
12872
+ console.error("Error setting sessionStorage item:", o);
12873
+ }
12874
+ }
12875
+ getItem(t) {
12876
+ try {
12877
+ const n = sessionStorage.getItem(t);
12878
+ return n === null ? "" : n;
12879
+ } catch (n) {
12880
+ throw console.error("Error getting sessionStorage item:", n), n;
12881
+ }
12882
+ }
12883
+ };
12884
+ zn(Ml, "instance");
12885
+ let Sn = Ml;
12886
+ const Qp = {}, Ta = {}, Dk = (e, t, n, o, s = "base64") => {
12887
+ const i = B(""), r = B(""), a = B(!0), l = X(() => `${t}:${e.value.name}`), u = (g) => new Promise((v, w) => {
12888
+ const b = new FileReader();
12889
+ b.onload = () => v(b.result), b.onerror = w, b.readAsDataURL(g);
12890
+ }), c = (g) => `data:image/svg+xml;charset=utf-8,${encodeURIComponent(g)}`, d = async (g, v) => {
12891
+ if (Ta[v])
12892
+ return Ta[v];
12893
+ if (v in Qp) {
12894
+ const S = await Qp[v];
12895
+ return S && (Ta[v] = S), S;
12896
+ }
12897
+ const w = await o(l.value);
12898
+ if (w && typeof w == "string")
12899
+ return Ta[v] = w, w;
12900
+ const b = (async () => {
12901
+ try {
12902
+ const S = await fetch(g, { cache: "no-cache" });
12903
+ if (!S.ok) throw new Error("Failed to fetch visual");
12904
+ const C = S.headers.get("Content-Type") || "";
12905
+ let E;
12906
+ if (C.includes("svg") || C.includes("xml")) {
12907
+ const R = await S.text();
12908
+ if (!R.trim()) throw new Error("Empty SVG content");
12909
+ E = s === "svg" ? R : c(R), Ta[v] = E;
12910
+ } else if (C.match(/image\/(jpeg|jpg|png|gif|webp)/)) {
12911
+ const R = await S.blob();
12912
+ if (!R.size) throw new Error("Empty image blob");
12913
+ E = await u(R), Ta[v] = E;
12914
+ } else
12915
+ throw new Error(`Unsupported content type: ${C}`);
12916
+ return await n(l.value, E), E;
12917
+ } catch (S) {
12918
+ return console.error("Error fetching visual:", S), "";
12919
+ }
12920
+ })();
12921
+ return Qp[v] = b, b.finally(() => {
12922
+ delete Qp[v];
12923
+ }), await b;
12924
+ }, h = async (g) => {
12925
+ a.value = !0;
12926
+ try {
12927
+ if (Ta[l.value]) {
12928
+ const E = Ta[l.value];
12929
+ i.value = E, E.startsWith("data:image/svg+xml") ? r.value = decodeURIComponent(E.split(",")[1]) : (E.startsWith("<svg") || E.includes("<svg")) && (r.value = E), a.value = !1;
12930
+ return;
12931
+ }
12932
+ const v = Sn.getInstance().getItem("ASSET_URL") || "", w = {
12933
+ icon: `${v}/icon/tess/TESSRAPP_Icon_${g}`,
12934
+ visual: `${v}/icon/visual/TESSRAPP_Visual_${g}`,
12935
+ ratting: `${v}/icon/tess/rating/TESSRAPP_Icon_${g}_Outline`,
12936
+ flag: `${v}/icon/flags/4x3/${g}`
12937
+ }, b = k3.includes(g) ? "png" : O3.includes(g) ? "gif" : "svg", S = `${w[t]}.${b}`, C = await d(S, l.value);
12938
+ C && (i.value = C, C.startsWith("data:image/svg+xml") ? r.value = decodeURIComponent(C.split(",")[1]) : (C.startsWith("<svg") || C.includes("<svg")) && (r.value = C));
12939
+ } catch (v) {
12940
+ console.error("Error fetching remote visual:", v);
12941
+ } finally {
12942
+ a.value = !1;
12943
+ }
12944
+ }, f = async () => {
12945
+ i.value = "", r.value = "", e.value.name && (a.value = !0, await h(e.value.name), a.value = !1);
12946
+ }, p = X(() => r.value ? r.value : "");
12947
+ return tt(
12948
+ () => e,
12949
+ () => {
12950
+ f();
12951
+ },
12952
+ {
12953
+ deep: !0,
12954
+ immediate: !0
12955
+ }
12956
+ ), {
12957
+ svgContent: p,
12958
+ url: i,
12959
+ loading: a
12960
+ };
12961
+ }, M3 = ["innerHTML", "about"], N3 = "IconCache", L3 = "icons", V3 = /* @__PURE__ */ pt({
12962
+ __name: "Icon",
12963
+ props: {
12964
+ src: {},
12965
+ source: { default: "remote" },
12966
+ size: { default: 14 },
12967
+ color: { default: "currentColor" }
12968
+ },
12969
+ setup(e) {
12970
+ ZG((h) => ({
12971
+ v7bb7ab38: h.size + "px"
12972
+ }));
12973
+ const t = e, n = (h) => {
12974
+ if (typeof h == "number")
12975
+ return h;
12976
+ switch (h) {
12977
+ case "small":
12978
+ return 8;
12979
+ case "medium":
12980
+ return 16;
12981
+ case "large":
12982
+ return 20;
12983
+ default:
12984
+ return typeof h == "string" ? Number.parseInt(h, 10) : 14;
12985
+ }
12986
+ }, o = X(() => n(t.size)), s = X(() => ({
12987
+ width: o.value + "px",
12988
+ height: o.value + "px",
12989
+ color: t.color
12990
+ })), { getCachedValue: i, setCachedValue: r } = Qf({
12991
+ dbName: N3,
12992
+ storeName: L3
12993
+ }), a = async (h) => {
12994
+ const f = await i(h);
12995
+ if (typeof f == "string") return f;
12996
+ }, l = async (h, f) => {
12997
+ await r(h, f);
12998
+ }, u = X(() => t.source === "rating" ? "ratting" : "icon"), c = X(() => ({
12999
+ name: t.src,
13000
+ size: o.value,
13001
+ color: t.color || "currentColor"
13002
+ })), { svgContent: d } = Dk(
13003
+ c,
13004
+ u.value,
13005
+ l,
13006
+ a,
13007
+ "svg"
13008
+ // Use 'svg' option to get raw SVG content for v-html
13009
+ );
13010
+ return (h, f) => (q(), ue("div", {
13011
+ class: Q(h.$style.iconWrapper),
13012
+ innerHTML: U(d),
13013
+ style: hn(s.value),
13014
+ about: t.src,
13015
+ "data-icon": "true"
13016
+ }, null, 14, M3));
13017
+ }
13018
+ }), B3 = "_iconWrapper_1n0y9_1", H3 = {
13019
+ iconWrapper: B3
13022
13020
  }, $3 = {
13023
13021
  $style: H3
13024
- }, cf = /* @__PURE__ */ Rt(O3, [["__cssModules", $3]]), G3 = {
13022
+ }, dt = /* @__PURE__ */ Rt(V3, [["__cssModules", $3]]), G3 = {
13025
13023
  review: "{reviewDomain}/{ws_code}",
13026
13024
  review_take: "{reviewDomain}/{ws_code}?id={take_id}",
13027
13025
  review_scene: "{reviewDomain}/{ws_code}?id={take_id}&scene_id={scene_id}&tab=iteration",
@@ -25379,7 +25377,7 @@ const Sd = (e) => {
25379
25377
  Ue((q(), ue("div", {
25380
25378
  class: Q(P.$style["time-display"])
25381
25379
  }, [
25382
- he(ut, {
25380
+ he(dt, {
25383
25381
  source: "remote",
25384
25382
  src: "Clock",
25385
25383
  class: Q(P.$style["clock-icon"])
@@ -25419,7 +25417,7 @@ const Sd = (e) => {
25419
25417
  disabled: s.disabled
25420
25418
  }, {
25421
25419
  default: Ce(() => [
25422
- he(ut, {
25420
+ he(dt, {
25423
25421
  source: "remote",
25424
25422
  src: "Link"
25425
25423
  })
@@ -25518,7 +25516,7 @@ const Sd = (e) => {
25518
25516
  ref: u
25519
25517
  }, {
25520
25518
  default: Ce(() => [
25521
- he(ut, {
25519
+ he(dt, {
25522
25520
  src: "EllipsisVertical",
25523
25521
  source: "remote"
25524
25522
  })
@@ -25569,7 +25567,7 @@ const Sd = (e) => {
25569
25567
  name: i.src,
25570
25568
  size: Number(i.size || 100),
25571
25569
  color: ""
25572
- })), { url: c, loading: d } = Sk(u, "visual", l, a);
25570
+ })), { url: c, loading: d } = Dk(u, "visual", l, a);
25573
25571
  return (h, f) => Ue((q(), ue("div", {
25574
25572
  class: Q([h.$style.visualWrapper, { [h.$style.loading]: U(d) }]),
25575
25573
  style: hn(r.value)
@@ -25699,7 +25697,7 @@ const Sd = (e) => {
25699
25697
  class: Q(R.$style["list-item__prefix"])
25700
25698
  }, [
25701
25699
  kt(R.$slots, "prefix", {}, () => [
25702
- e.type === "icon" && e.icon ? (q(), je(ut, {
25700
+ e.type === "icon" && e.icon ? (q(), je(dt, {
25703
25701
  key: 0,
25704
25702
  src: e.icon,
25705
25703
  source: "remote",
@@ -25739,7 +25737,7 @@ const Sd = (e) => {
25739
25737
  onClick: Ft(v, ["stop", "prevent"])
25740
25738
  }, {
25741
25739
  default: Ce(() => [
25742
- he(ut, {
25740
+ he(dt, {
25743
25741
  src: "Xmark",
25744
25742
  source: "remote"
25745
25743
  })
@@ -25754,7 +25752,7 @@ const Sd = (e) => {
25754
25752
  onClick: Ft(w, ["stop", "prevent"])
25755
25753
  }, {
25756
25754
  default: Ce(() => [
25757
- he(ut, {
25755
+ he(dt, {
25758
25756
  src: "Check",
25759
25757
  source: "remote"
25760
25758
  })
@@ -26285,7 +26283,7 @@ const QZ = ["type", "value", "placeholder", "disabled", "readonly", "inputmode",
26285
26283
  class: Q(["wrapper-suffix", N.$style["clear-button"]])
26286
26284
  }, {
26287
26285
  default: Ce(() => [
26288
- he(ut, {
26286
+ he(dt, {
26289
26287
  src: "CircleXMark",
26290
26288
  size: "20",
26291
26289
  color: "var(--primary-color)"
@@ -26390,7 +26388,7 @@ const QZ = ["type", "value", "placeholder", "disabled", "readonly", "inputmode",
26390
26388
  }, {
26391
26389
  prefix: Ce(() => [
26392
26390
  ge("div", oX, [
26393
- he(ut, {
26391
+ he(dt, {
26394
26392
  src: "MagnifyingGlass",
26395
26393
  color: "var(--grey-200)",
26396
26394
  size: "14"
@@ -26721,7 +26719,7 @@ const QZ = ["type", "value", "placeholder", "disabled", "readonly", "inputmode",
26721
26719
  appendTo: {}
26722
26720
  },
26723
26721
  setup(e) {
26724
- const t = Lz, n = e, o = B(n.appendTo || void 0), s = () => ({
26722
+ const t = Rz, n = e, o = B(n.appendTo || void 0), s = () => ({
26725
26723
  user: n.showProfile ? n.user : void 0,
26726
26724
  placement: "bottom-start",
26727
26725
  showInsightButton: !0,
@@ -26930,7 +26928,7 @@ const QZ = ["type", "value", "placeholder", "disabled", "readonly", "inputmode",
26930
26928
  ge("div", {
26931
26929
  class: Q(L.$style["unassign-icon"])
26932
26930
  }, [
26933
- he(ut, {
26931
+ he(dt, {
26934
26932
  src: "UserXMark",
26935
26933
  source: "remote"
26936
26934
  })
@@ -26999,7 +26997,7 @@ const QZ = ["type", "value", "placeholder", "disabled", "readonly", "inputmode",
26999
26997
  onClick: Ft((j) => K(de), ["stop", "prevent"])
27000
26998
  }, {
27001
26999
  prefix: Ce(() => [
27002
- he(ut, {
27000
+ he(dt, {
27003
27001
  src: Ge ? "UserMinus" : "UserPlus",
27004
27002
  source: "remote"
27005
27003
  }, null, 8, ["src"])
@@ -27019,7 +27017,7 @@ const QZ = ["type", "value", "placeholder", "disabled", "readonly", "inputmode",
27019
27017
  }, ["stop", "prevent"])
27020
27018
  }, {
27021
27019
  prefix: Ce(() => [
27022
- he(ut, {
27020
+ he(dt, {
27023
27021
  src: "IdCardClip",
27024
27022
  source: "remote"
27025
27023
  })
@@ -27142,7 +27140,7 @@ const QZ = ["type", "value", "placeholder", "disabled", "readonly", "inputmode",
27142
27140
  loading: h.value
27143
27141
  }, {
27144
27142
  default: Ce(() => [
27145
- he(ut, {
27143
+ he(dt, {
27146
27144
  src: "UserPlus",
27147
27145
  class: "icon"
27148
27146
  }),
@@ -27552,7 +27550,7 @@ const QZ = ["type", "value", "placeholder", "disabled", "readonly", "inputmode",
27552
27550
  "data-index": "today-btn"
27553
27551
  }, {
27554
27552
  prefix: Ce(() => [
27555
- he(ut, { src: "CalendarDay" })
27553
+ he(dt, { src: "CalendarDay" })
27556
27554
  ]),
27557
27555
  _: 1
27558
27556
  }, 8, ["onKeydown"])), [
@@ -27735,7 +27733,7 @@ const QZ = ["type", "value", "placeholder", "disabled", "readonly", "inputmode",
27735
27733
  onKeydown: U(qa)
27736
27734
  }, {
27737
27735
  default: Ce(({ hovered: oe }) => [
27738
- he(ut, {
27736
+ he(dt, {
27739
27737
  src: "AnglesRight",
27740
27738
  source: "remote",
27741
27739
  color: oe ? "#3C9BFA" : "#6B6B6B"
@@ -27781,7 +27779,7 @@ const QZ = ["type", "value", "placeholder", "disabled", "readonly", "inputmode",
27781
27779
  onKeydown: U(qa)
27782
27780
  }, {
27783
27781
  default: Ce(({ hovered: oe }) => [
27784
- he(ut, {
27782
+ he(dt, {
27785
27783
  src: "AnglesRight",
27786
27784
  source: "remote",
27787
27785
  color: oe ? "#3C9BFA" : "#6B6B6B"
@@ -27807,7 +27805,7 @@ const QZ = ["type", "value", "placeholder", "disabled", "readonly", "inputmode",
27807
27805
  onClick: g
27808
27806
  }, {
27809
27807
  default: Ce(({ hovered: oe }) => [
27810
- he(ut, {
27808
+ he(dt, {
27811
27809
  src: "AnglesRight",
27812
27810
  source: "remote",
27813
27811
  color: oe ? "#3C9BFA" : "#6B6B6B"
@@ -27828,7 +27826,7 @@ const QZ = ["type", "value", "placeholder", "disabled", "readonly", "inputmode",
27828
27826
  onClick: v
27829
27827
  }, {
27830
27828
  default: Ce(({ hovered: oe }) => [
27831
- he(ut, {
27829
+ he(dt, {
27832
27830
  src: "AnglesRight",
27833
27831
  source: "remote",
27834
27832
  color: oe ? "#3C9BFA" : "#6B6B6B"
@@ -28088,7 +28086,7 @@ const GX = {
28088
28086
  rounded: !0
28089
28087
  }, {
28090
28088
  default: Ce(() => [
28091
- he(ut, {
28089
+ he(dt, {
28092
28090
  src: "XMarkSolid",
28093
28091
  source: "remote",
28094
28092
  size: "8",
@@ -28098,7 +28096,7 @@ const GX = {
28098
28096
  _: 1
28099
28097
  })), [
28100
28098
  [U(o), "Clear"]
28101
- ]) : (q(), je(ut, {
28099
+ ]) : (q(), je(dt, {
28102
28100
  key: 1,
28103
28101
  src: "Calendar",
28104
28102
  source: "remote",
@@ -28524,7 +28522,7 @@ const GX = {
28524
28522
  loading: x.value
28525
28523
  }, {
28526
28524
  default: Ce(() => [
28527
- he(ut, { src: "Calendar" }),
28525
+ he(dt, { src: "Calendar" }),
28528
28526
  k[2] || (k[2] = st(" Date ", -1))
28529
28527
  ]),
28530
28528
  _: 1
@@ -28799,7 +28797,8 @@ const GX = {
28799
28797
  hover: C == E,
28800
28798
  selected: b.value === e.modelValue,
28801
28799
  label: b.label,
28802
- onSelect: (R) => d(b.value || null)
28800
+ onSelect: (R) => d(b.value || null),
28801
+ onClick: (R) => d(b.value || null)
28803
28802
  }, {
28804
28803
  label: Ce(() => [
28805
28804
  ge("div", aJ, [
@@ -28811,7 +28810,7 @@ const GX = {
28811
28810
  ])
28812
28811
  ]),
28813
28812
  _: 2
28814
- }, 1032, ["hover", "selected", "label", "onSelect"])
28813
+ }, 1032, ["hover", "selected", "label", "onSelect", "onClick"])
28815
28814
  ]),
28816
28815
  "empty-list": Ce(() => [...w[1] || (w[1] = [
28817
28816
  st("No options available.", -1)
@@ -29130,7 +29129,7 @@ const GX = {
29130
29129
  ref: a
29131
29130
  }, {
29132
29131
  icon: Ce(() => [
29133
- he(ut, {
29132
+ he(dt, {
29134
29133
  source: "rating",
29135
29134
  src: R() || "Star",
29136
29135
  size: 17
@@ -29153,7 +29152,7 @@ const GX = {
29153
29152
  }), {
29154
29153
  suffix: Ce(({}) => [
29155
29154
  ge("div", hJ, [
29156
- he(ut, {
29155
+ he(dt, {
29157
29156
  src: "ChevronDown",
29158
29157
  color: "#A6A6A6",
29159
29158
  size: "12"
@@ -29197,7 +29196,7 @@ const GX = {
29197
29196
  disabled: !p.value
29198
29197
  }, {
29199
29198
  default: Ce(() => [
29200
- he(ut, { src: "Check" })
29199
+ he(dt, { src: "Check" })
29201
29200
  ]),
29202
29201
  _: 1
29203
29202
  }, 8, ["onKeypress", "disabled"])), [
@@ -29453,7 +29452,7 @@ const GX = {
29453
29452
  loading: U(E)
29454
29453
  }, {
29455
29454
  default: Ce(() => [
29456
- he(ut, {
29455
+ he(dt, {
29457
29456
  src: "SquareRootVariable",
29458
29457
  class: "icon"
29459
29458
  }),
@@ -29507,7 +29506,7 @@ const GX = {
29507
29506
  ], 512)
29508
29507
  ], 512));
29509
29508
  }
29510
- }), RJ = /* @__PURE__ */ Rt(_J, [["__scopeId", "data-v-715ee51d"]]), DJ = /* @__PURE__ */ pt({
29509
+ }), RJ = /* @__PURE__ */ Rt(_J, [["__scopeId", "data-v-11d2f501"]]), DJ = /* @__PURE__ */ pt({
29511
29510
  __name: "DropdownWrapper",
29512
29511
  props: {
29513
29512
  placement: { default: "bottom-start" },
@@ -29822,7 +29821,7 @@ const GX = {
29822
29821
  loading: u.value
29823
29822
  }, {
29824
29823
  default: Ce(() => [
29825
- he(ut, {
29824
+ he(dt, {
29826
29825
  src: "Square",
29827
29826
  class: "icon"
29828
29827
  }),
@@ -30147,7 +30146,7 @@ const GX = {
30147
30146
  onClick: b
30148
30147
  }, {
30149
30148
  default: Ce(() => [
30150
- he(ut, {
30149
+ he(dt, {
30151
30150
  src: "XMarkSolid",
30152
30151
  source: "remote"
30153
30152
  })
@@ -30237,7 +30236,7 @@ const GX = {
30237
30236
  disabled: o.selectRowData.length > 40
30238
30237
  }, {
30239
30238
  default: Ce(() => [
30240
- he(ut, {
30239
+ he(dt, {
30241
30240
  src: "PenRuler",
30242
30241
  class: Q(Z.$style["icon-btn"])
30243
30242
  }, null, 8, ["class"])
@@ -30262,7 +30261,7 @@ const GX = {
30262
30261
  loading: K.value
30263
30262
  }, {
30264
30263
  default: Ce(() => [
30265
- he(ut, {
30264
+ he(dt, {
30266
30265
  src: "EllipsisVertical",
30267
30266
  class: Q(Z.$style.icon),
30268
30267
  source: "remote"
@@ -30528,7 +30527,7 @@ const GX = {
30528
30527
  ]
30529
30528
  }, {
30530
30529
  default: Ce(() => [
30531
- he(U(ut), {
30530
+ he(U(dt), {
30532
30531
  src: "Pen",
30533
30532
  source: "remote"
30534
30533
  })
@@ -30547,7 +30546,7 @@ const GX = {
30547
30546
  onKeydown: lo(Ft(w, ["prevent"]), ["enter"])
30548
30547
  }, {
30549
30548
  default: Ce(() => [
30550
- he(U(ut), {
30549
+ he(U(dt), {
30551
30550
  src: "XMarkSolid",
30552
30551
  source: "remote"
30553
30552
  })
@@ -30753,7 +30752,7 @@ const GX = {
30753
30752
  key: 0,
30754
30753
  class: Q([K.$style["icon-processing"], K.$style.archived])
30755
30754
  }, [
30756
- he(ut, {
30755
+ he(dt, {
30757
30756
  src: "BoxArchive",
30758
30757
  color: "#959595"
30759
30758
  })
@@ -30766,7 +30765,7 @@ const GX = {
30766
30765
  v.value && K.$style["icon-red"]
30767
30766
  ])
30768
30767
  }, [
30769
- he(ut, {
30768
+ he(dt, {
30770
30769
  src: "AnimatedHourglass",
30771
30770
  color: "inherit"
30772
30771
  })
@@ -30863,7 +30862,7 @@ const GX = {
30863
30862
  }, {
30864
30863
  default: Ce(() => [
30865
30864
  kt(w.$slots, "iconDropdown", {}, () => [
30866
- he(ut, {
30865
+ he(dt, {
30867
30866
  class: Q(w.$style["icon-dropdown"]),
30868
30867
  src: "ChevronDown",
30869
30868
  source: "remote"
@@ -30945,7 +30944,7 @@ const GX = {
30945
30944
  rounded: !0
30946
30945
  }, {
30947
30946
  default: Ce(() => [
30948
- he(ut, {
30947
+ he(dt, {
30949
30948
  src: "CircleXMark",
30950
30949
  size: "16",
30951
30950
  color: "var(--primary-color)"
@@ -31070,7 +31069,7 @@ const GX = {
31070
31069
  ge("div", {
31071
31070
  class: Q(A.$style.assigneeGroupRenderer)
31072
31071
  }, [
31073
- ((T = i.value) == null ? void 0 : T.length) === 0 ? (q(), je(ut, {
31072
+ ((T = i.value) == null ? void 0 : T.length) === 0 ? (q(), je(dt, {
31074
31073
  key: 0,
31075
31074
  src: "UserPlus",
31076
31075
  source: "remote",
@@ -31175,7 +31174,7 @@ const GX = {
31175
31174
  key: 0,
31176
31175
  class: Q(A.$style.dateRangeRenderer)
31177
31176
  }, [
31178
- h.value ? Xe("", !0) : (q(), je(ut, {
31177
+ h.value ? Xe("", !0) : (q(), je(dt, {
31179
31178
  key: 0,
31180
31179
  src: "Calendar",
31181
31180
  class: Q(A.$style.calendarIcon),
@@ -31690,7 +31689,7 @@ const GX = {
31690
31689
  onEscape: R
31691
31690
  }, {
31692
31691
  prefix: Ce(() => [
31693
- e.option.icon ? Ue((q(), je(ut, {
31692
+ e.option.icon ? Ue((q(), je(dt, {
31694
31693
  key: 0,
31695
31694
  src: e.option.icon,
31696
31695
  source: "remote"
@@ -31703,7 +31702,7 @@ const GX = {
31703
31702
  ]) : Xe("", !0)
31704
31703
  ]),
31705
31704
  suffix: Ce(() => [
31706
- e.option.subMenu ? (q(), je(ut, {
31705
+ e.option.subMenu ? (q(), je(dt, {
31707
31706
  key: 0,
31708
31707
  src: "Play",
31709
31708
  source: "remote"
@@ -31718,7 +31717,7 @@ const GX = {
31718
31717
  onHandleClick: x
31719
31718
  }, {
31720
31719
  default: Ce(() => [
31721
- he(ut, {
31720
+ he(dt, {
31722
31721
  src: "XMarkSolid",
31723
31722
  source: "remote"
31724
31723
  })
@@ -31739,7 +31738,7 @@ const GX = {
31739
31738
  onEscape: k[0] || (k[0] = (D) => r.value = !1)
31740
31739
  }, {
31741
31740
  default: Ce(() => [
31742
- he(ut, {
31741
+ he(dt, {
31743
31742
  src: "Check",
31744
31743
  source: "remote"
31745
31744
  })
@@ -31952,7 +31951,7 @@ const rN = (e, t) => {
31952
31951
  onClick: Ft(U(E), ["prevent", "stop"])
31953
31952
  }, {
31954
31953
  default: Ce(() => [
31955
- he(ut, {
31954
+ he(dt, {
31956
31955
  src: "Copy",
31957
31956
  source: "remote",
31958
31957
  size: 12
@@ -32257,7 +32256,7 @@ const rN = (e, t) => {
32257
32256
  key: 1,
32258
32257
  class: Q(T.$style["icon-metric"])
32259
32258
  }, [
32260
- he(ut, {
32259
+ he(dt, {
32261
32260
  src: "ChartPie",
32262
32261
  color: "#A6A6A6",
32263
32262
  size: "14"
@@ -32269,7 +32268,7 @@ const rN = (e, t) => {
32269
32268
  key: 2,
32270
32269
  class: Q(T.$style["icon-metric"])
32271
32270
  }, [
32272
- he(ut, {
32271
+ he(dt, {
32273
32272
  src: "Bullseye",
32274
32273
  color: "#A6A6A6",
32275
32274
  size: "14"
@@ -32282,7 +32281,7 @@ const rN = (e, t) => {
32282
32281
  }, 8, ["onClick"])
32283
32282
  ]),
32284
32283
  iconDropdown: Ce(() => [
32285
- Ue(he(ut, {
32284
+ Ue(he(dt, {
32286
32285
  src: g.value,
32287
32286
  source: "remote",
32288
32287
  color: R.value
@@ -32685,7 +32684,7 @@ const rN = (e, t) => {
32685
32684
  "aria-label": "Close popup"
32686
32685
  }, {
32687
32686
  default: Ce(() => [
32688
- he(ut, { src: "Xmark" })
32687
+ he(dt, { src: "Xmark" })
32689
32688
  ]),
32690
32689
  _: 1
32691
32690
  }, 8, ["onClick"])), [
@@ -33670,16 +33669,16 @@ const up = /* @__PURE__ */ Ru("toast", () => {
33670
33669
  ge("span", {
33671
33670
  class: Q(f.$style.snackbar__icon)
33672
33671
  }, [
33673
- !g.icon && g.type == "success" ? (q(), je(ut, {
33672
+ !g.icon && g.type == "success" ? (q(), je(dt, {
33674
33673
  key: 0,
33675
33674
  src: "CircleCheck",
33676
33675
  source: "remote"
33677
33676
  })) : Xe("", !0),
33678
- !g.icon && g.type == "interactive" ? (q(), je(ut, {
33677
+ !g.icon && g.type == "interactive" ? (q(), je(dt, {
33679
33678
  key: 1,
33680
33679
  src: "CircleCheck",
33681
33680
  source: "remote"
33682
- })) : !g.icon && g.type == "error" ? (q(), je(ut, {
33681
+ })) : !g.icon && g.type == "error" ? (q(), je(dt, {
33683
33682
  key: 2,
33684
33683
  src: "CircleXMark",
33685
33684
  source: "remote"
@@ -33687,7 +33686,7 @@ const up = /* @__PURE__ */ Ru("toast", () => {
33687
33686
  key: 3,
33688
33687
  class: Q(f.$style["icon-draw"]),
33689
33688
  innerHTML: g.icon
33690
- }, null, 10, Kee)) : g.icon && !r(g.icon) ? (q(), je(ut, {
33689
+ }, null, 10, Kee)) : g.icon && !r(g.icon) ? (q(), je(dt, {
33691
33690
  key: 4,
33692
33691
  src: g.icon,
33693
33692
  source: "remote",
@@ -33716,7 +33715,7 @@ const up = /* @__PURE__ */ Ru("toast", () => {
33716
33715
  size: "small"
33717
33716
  }), {
33718
33717
  prefix: Ce(() => [
33719
- w.btnIcon ? (q(), je(ut, {
33718
+ w.btnIcon ? (q(), je(dt, {
33720
33719
  key: 0,
33721
33720
  src: w.btnIcon,
33722
33721
  source: "remote",
@@ -33737,7 +33736,7 @@ const up = /* @__PURE__ */ Ru("toast", () => {
33737
33736
  class: Q(f.$style["copy-btn"])
33738
33737
  }, {
33739
33738
  prefix: Ce(() => [
33740
- he(ut, {
33739
+ he(dt, {
33741
33740
  src: "Copy",
33742
33741
  source: "remote",
33743
33742
  color: "var(--primary-color)",
@@ -33757,7 +33756,7 @@ const up = /* @__PURE__ */ Ru("toast", () => {
33757
33756
  size: 18
33758
33757
  }, {
33759
33758
  default: Ce(() => [
33760
- he(ut, {
33759
+ he(dt, {
33761
33760
  src: "XMarkSolid",
33762
33761
  size: "9"
33763
33762
  })
@@ -35479,7 +35478,7 @@ const Hte = /* @__PURE__ */ pt({
35479
35478
  class: "move-handler",
35480
35479
  style: hn({ cursor: o.disableDrag ? "not-allowed" : "move" })
35481
35480
  }, [
35482
- he(ut, {
35481
+ he(dt, {
35483
35482
  color: o.disableDrag ? "#D7D7D7" : "#6B6B6B",
35484
35483
  source: "remote",
35485
35484
  src: "GripVertical",
@@ -35507,7 +35506,7 @@ const Hte = /* @__PURE__ */ pt({
35507
35506
  key: 1,
35508
35507
  class: Q(h.$style["metric-icon"])
35509
35508
  }, [
35510
- he(ut, {
35509
+ he(dt, {
35511
35510
  src: "Bullseye",
35512
35511
  color: "#A6A6A6"
35513
35512
  })
@@ -35518,7 +35517,7 @@ const Hte = /* @__PURE__ */ pt({
35518
35517
  key: 2,
35519
35518
  class: Q(h.$style["metric-icon"])
35520
35519
  }, [
35521
- he(ut, {
35520
+ he(dt, {
35522
35521
  src: "ChartPie",
35523
35522
  color: "#A6A6A6"
35524
35523
  })
@@ -35641,7 +35640,7 @@ const Hte = /* @__PURE__ */ pt({
35641
35640
  onEscape: U(p)
35642
35641
  }, {
35643
35642
  prefix: Ce(() => [
35644
- he(ut, { src: "TableColumns" })
35643
+ he(dt, { src: "TableColumns" })
35645
35644
  ]),
35646
35645
  _: 1
35647
35646
  }, 8, ["disabled", "actived", "onEscape"])), [
@@ -35678,7 +35677,7 @@ const Hte = /* @__PURE__ */ pt({
35678
35677
  class: Q(P.$style["reach-limit"])
35679
35678
  }, [
35680
35679
  ge("div", ene, [
35681
- he(ut, {
35680
+ he(dt, {
35682
35681
  src: "InfoCircle",
35683
35682
  color: "#F7941D",
35684
35683
  size: 14
@@ -35899,7 +35898,7 @@ const Hte = /* @__PURE__ */ pt({
35899
35898
  }, {
35900
35899
  suffix: Ce(() => [
35901
35900
  ge("div", ine, [
35902
- he(ut, {
35901
+ he(dt, {
35903
35902
  src: "ChevronUp",
35904
35903
  source: "remote",
35905
35904
  class: Q([[D.$style["dropdown-icon"]], { [D.$style["dropdown-icon-show"]]: !P }])
@@ -36097,7 +36096,7 @@ const Hte = /* @__PURE__ */ pt({
36097
36096
  }, null, 8, ["config", "modelValue"])) : (q(), ue("div", fne, "Metric type:" + bt(u.value), 1))
36098
36097
  ], 512));
36099
36098
  }
36100
- }), gne = /* @__PURE__ */ Rt(pne, [["__scopeId", "data-v-de0dd7ce"]]), mne = /* @__PURE__ */ pt({
36099
+ }), gne = /* @__PURE__ */ Rt(pne, [["__scopeId", "data-v-b224100b"]]), mne = /* @__PURE__ */ pt({
36101
36100
  name: "EmptyData",
36102
36101
  __name: "EmptyData",
36103
36102
  props: {
@@ -36401,7 +36400,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
36401
36400
  class: Q([W.$style["icon-wrapper"], "wrapper-prefix"]),
36402
36401
  onClick: Ft(u, ["stop", "prevent"])
36403
36402
  }, [
36404
- he(ut, {
36403
+ he(dt, {
36405
36404
  src: "UserPlus",
36406
36405
  color: "#A6A6A6"
36407
36406
  })
@@ -36472,7 +36471,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
36472
36471
  ge("div", {
36473
36472
  class: Q(W.$style["unassign-icon"])
36474
36473
  }, [
36475
- he(ut, {
36474
+ he(dt, {
36476
36475
  src: "UserXMark",
36477
36476
  source: "remote"
36478
36477
  })
@@ -36656,7 +36655,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
36656
36655
  size: 18
36657
36656
  }, {
36658
36657
  default: Ce(() => [
36659
- he(ut, {
36658
+ he(dt, {
36660
36659
  src: "XMarkSolid",
36661
36660
  size: "8"
36662
36661
  })
@@ -36669,7 +36668,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
36669
36668
  ]),
36670
36669
  prefix: Ce(() => [
36671
36670
  c.value[0] === null && c.value[1] === null ? (q(), ue("div", Lne, [
36672
- he(ut, {
36671
+ he(dt, {
36673
36672
  src: "Calendar",
36674
36673
  color: "#A6A6A6"
36675
36674
  })
@@ -36865,7 +36864,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
36865
36864
  empty: jne
36866
36865
  }, qne = {
36867
36866
  $style: Kne
36868
- }, Yne = /* @__PURE__ */ Rt(Wne, [["__cssModules", qne], ["__scopeId", "data-v-cb0f9265"]]), Zne = /* @__PURE__ */ pt({
36867
+ }, Yne = /* @__PURE__ */ Rt(Wne, [["__cssModules", qne], ["__scopeId", "data-v-f8f4d70b"]]), Zne = /* @__PURE__ */ pt({
36869
36868
  __name: "CreateNewScene",
36870
36869
  emits: ["create-new-item", "focus-on-id", "search-for-code"],
36871
36870
  setup(e, { expose: t, emit: n }) {
@@ -37357,7 +37356,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
37357
37356
  key: 0,
37358
37357
  class: Q(k.$style["drop-area-content"])
37359
37358
  }, [
37360
- he(ut, {
37359
+ he(dt, {
37361
37360
  src: "Upload",
37362
37361
  size: "24",
37363
37362
  color: "#3C9BFA"
@@ -37640,7 +37639,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
37640
37639
  onEscape: d
37641
37640
  }, {
37642
37641
  suffix: Ce(() => [
37643
- he(ut, {
37642
+ he(dt, {
37644
37643
  class: Q(["wrapper-suffix2", { "icon-up": U(l) }]),
37645
37644
  src: "ChevronDown",
37646
37645
  color: "#A6A6A6",
@@ -37759,7 +37758,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
37759
37758
  size: 18
37760
37759
  }, {
37761
37760
  default: Ce(() => [
37762
- he(ut, {
37761
+ he(dt, {
37763
37762
  src: "XMarkSolid",
37764
37763
  size: "8"
37765
37764
  })
@@ -37772,7 +37771,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
37772
37771
  onClick: c,
37773
37772
  style: { width: "24px", height: "24px", display: "flex", "align-items": "center", "justify-content": "center" }
37774
37773
  }, [
37775
- he(ut, {
37774
+ he(dt, {
37776
37775
  src: "ChevronDown",
37777
37776
  color: "#A6A6A6",
37778
37777
  size: "12"
@@ -38017,7 +38016,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
38017
38016
  size: 18
38018
38017
  }, {
38019
38018
  default: Ce(() => [
38020
- he(ut, {
38019
+ he(dt, {
38021
38020
  src: "XMarkSolid",
38022
38021
  size: "8"
38023
38022
  })
@@ -38028,7 +38027,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
38028
38027
  ge("div", {
38029
38028
  class: Q(["wrapper-suffix", { "icon-up": U(i) }])
38030
38029
  }, [
38031
- he(ut, {
38030
+ he(dt, {
38032
38031
  src: "ChevronDown",
38033
38032
  size: "12",
38034
38033
  color: "#A6A6A6"
@@ -38190,7 +38189,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
38190
38189
  size: 18
38191
38190
  }, {
38192
38191
  default: Ce(() => [
38193
- he(ut, {
38192
+ he(dt, {
38194
38193
  src: "XMarkSolid",
38195
38194
  size: "8"
38196
38195
  })
@@ -38201,7 +38200,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
38201
38200
  ge("div", {
38202
38201
  class: Q(["wrapper-suffix", { "icon-up": U(a) }])
38203
38202
  }, [
38204
- he(ut, {
38203
+ he(dt, {
38205
38204
  src: "ChevronDown",
38206
38205
  size: "12",
38207
38206
  color: "#A6A6A6"
@@ -38262,7 +38261,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
38262
38261
  empty: Ioe
38263
38262
  }, Poe = {
38264
38263
  $style: Foe
38265
- }, Aoe = /* @__PURE__ */ Rt(Toe, [["__cssModules", Poe], ["__scopeId", "data-v-bbe622bf"]]), koe = { key: 0 }, Ooe = { key: 1 }, Moe = { key: 0 }, Noe = { key: 1 }, Loe = {
38264
+ }, Aoe = /* @__PURE__ */ Rt(Toe, [["__cssModules", Poe], ["__scopeId", "data-v-93ed81a5"]]), koe = { key: 0 }, Ooe = { key: 1 }, Moe = { key: 0 }, Noe = { key: 1 }, Loe = {
38266
38265
  key: 0,
38267
38266
  class: "wrapper-suffix"
38268
38267
  }, Voe = {
@@ -38366,7 +38365,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
38366
38365
  size: 18
38367
38366
  }, {
38368
38367
  default: Ce(() => [
38369
- he(ut, {
38368
+ he(dt, {
38370
38369
  src: "XMarkSolid",
38371
38370
  size: "8"
38372
38371
  })
@@ -38374,7 +38373,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
38374
38373
  _: 1
38375
38374
  })
38376
38375
  ])) : (q(), ue("div", Voe, [
38377
- he(ut, {
38376
+ he(dt, {
38378
38377
  src: "Calendar",
38379
38378
  size: "12",
38380
38379
  color: "#A6A6A6"
@@ -38663,7 +38662,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
38663
38662
  style: { height: "20px", width: "20px", display: "flex", "align-items": "center", "justify-content": "center", "margin-left": "4px" },
38664
38663
  class: "rotate-icon"
38665
38664
  }, [
38666
- he(ut, {
38665
+ he(dt, {
38667
38666
  src: "XMarkSolid",
38668
38667
  size: 9
38669
38668
  })
@@ -38918,7 +38917,7 @@ const Cy = /* @__PURE__ */ Ru("userStore", () => {
38918
38917
  onHandleEnter: p
38919
38918
  }, {
38920
38919
  icon: Ce(() => [
38921
- he(ut, {
38920
+ he(dt, {
38922
38921
  onClick: b,
38923
38922
  source: "rating",
38924
38923
  src: U(h)() || "Star",
@@ -42612,7 +42611,7 @@ const $re = async () => {
42612
42611
  class: Q(s.$style["step-title-2"])
42613
42612
  }, [
42614
42613
  i[0] || (i[0] = st(" Date format guide ", -1)),
42615
- Ue(he(U(ut), {
42614
+ Ue(he(U(dt), {
42616
42615
  src: "InfoCircle",
42617
42616
  color: "#A6A6A6"
42618
42617
  }, null, 512), [
@@ -42760,7 +42759,7 @@ const $re = async () => {
42760
42759
  onHandleClick: p
42761
42760
  }, {
42762
42761
  prefix: Ce(() => [
42763
- he(U(ut), { src: "Download" })
42762
+ he(U(dt), { src: "Download" })
42764
42763
  ]),
42765
42764
  default: Ce(() => [
42766
42765
  D[2] || (D[2] = st(" Download sample file ", -1))
@@ -43458,11 +43457,11 @@ var gu = class {
43458
43457
  function na(e) {
43459
43458
  return e == null || e === "" ? null : e;
43460
43459
  }
43461
- function ct(e) {
43460
+ function ut(e) {
43462
43461
  return e != null && e !== "";
43463
43462
  }
43464
43463
  function Mn(e) {
43465
- return !ct(e);
43464
+ return !ut(e);
43466
43465
  }
43467
43466
  function AS(e) {
43468
43467
  return e != null && typeof e.toString == "function" ? e.toString() : null;
@@ -43514,7 +43513,7 @@ function Ro(e) {
43514
43513
  const { gos: t, eRootDiv: n } = e;
43515
43514
  let o = null;
43516
43515
  const s = t.get("getDocument");
43517
- return s && ct(s) ? o = s() : n && (o = n.ownerDocument), o && ct(o) ? o : document;
43516
+ return s && ut(s) ? o = s() : n && (o = n.ownerDocument), o && ut(o) ? o : document;
43518
43517
  }
43519
43518
  function vL(e) {
43520
43519
  const t = Hn(e);
@@ -44173,7 +44172,7 @@ function sle(e, t) {
44173
44172
  }
44174
44173
  }
44175
44174
  function ns(e, t, n = !0, o = !1) {
44176
- ct(t) && sle(t, (s, i) => {
44175
+ ut(t) && sle(t, (s, i) => {
44177
44176
  let r = e[s];
44178
44177
  r !== i && (o && r == null && i != null && typeof i == "object" && i.constructor === Object && (r = {}, e[s] = r), PI(i) && PI(r) && !Array.isArray(r) ? ns(r, i, n, o) : (n || i !== void 0) && (e[s] = i));
44179
44178
  });
@@ -44815,7 +44814,7 @@ var Tu = class extends $e {
44815
44814
  gos: e,
44816
44815
  colDef: { field: t, tooltipField: n }
44817
44816
  } = this, o = e.get("suppressFieldDotNotation");
44818
- this.fieldContainsDots = ct(t) && t.includes(".") && !o, this.tooltipFieldContainsDots = ct(n) && n.includes(".") && !o;
44817
+ this.fieldContainsDots = ut(t) && t.includes(".") && !o, this.tooltipFieldContainsDots = ut(n) && n.includes(".") && !o;
44819
44818
  }
44820
44819
  initMinAndMaxWidths() {
44821
44820
  const e = this.colDef;
@@ -44985,7 +44984,7 @@ var Tu = class extends $e {
44985
44984
  }
44986
44985
  /** @deprecated v32 use col.getSort() !== undefined */
44987
44986
  isSorting() {
44988
- return ct(this.sort);
44987
+ return ut(this.sort);
44989
44988
  }
44990
44989
  getSortIndex() {
44991
44990
  return this.sortIndex;
@@ -45416,7 +45415,7 @@ var Gle = (e, t) => (n, o) => {
45416
45415
  value2: void 0
45417
45416
  };
45418
45417
  let i = !1;
45419
- return e && (e[n] !== void 0 && (s.value1 = e[n], i = !0), ct(o) && e[o] !== void 0 && (s.value2 = e[o], i = !0)), !i && t && (t[n] !== void 0 && (s.value1 = t[n]), ct(o) && t[o] !== void 0 && (s.value2 = t[o])), s;
45418
+ return e && (e[n] !== void 0 && (s.value1 = e[n], i = !0), ut(o) && e[o] !== void 0 && (s.value2 = e[o], i = !0)), !i && t && (t[n] !== void 0 && (s.value1 = t[n]), ut(o) && t[o] !== void 0 && (s.value2 = t[o])), s;
45420
45419
  }, Ule = (e, t) => {
45421
45420
  Go(e) && e.setupExpandable(), e.originalParent = t;
45422
45421
  };
@@ -45732,7 +45731,7 @@ function xi(e, t, n) {
45732
45731
  g,
45733
45732
  (R) => o.getColDefCol(R)
45734
45733
  );
45735
- if (S.length > 0 || ct(t.defaultState)) {
45734
+ if (S.length > 0 || ut(t.defaultState)) {
45736
45735
  const R = ((E = c == null ? void 0 : c.getPivotResultCols()) == null ? void 0 : E.list) ?? [];
45737
45736
  C = b(
45738
45737
  S,
@@ -47256,7 +47255,7 @@ var $l = class extends EV {
47256
47255
  }
47257
47256
  setValue(e, t) {
47258
47257
  const n = this.eInput;
47259
- return n.value !== e && (n.value = ct(e) ? e : ""), super.setValue(e, t);
47258
+ return n.value !== e && (n.value = ut(e) ? e : ""), super.setValue(e, t);
47260
47259
  }
47261
47260
  /** Used to set an initial value into the input without necessarily setting `this.value` or triggering events (e.g. to set an invalid value) */
47262
47261
  setStartValue(e) {
@@ -47364,7 +47363,7 @@ var $l = class extends EV {
47364
47363
  );
47365
47364
  }
47366
47365
  setValueOrInputValue(e, t, n) {
47367
- if (ct(n)) {
47366
+ if (ut(n)) {
47368
47367
  let o = this.isScientificNotation(n);
47369
47368
  if (o && this.eInput.validity.valid)
47370
47369
  return e(n);
@@ -48600,7 +48599,7 @@ ${i}}
48600
48599
  showTooltip() {
48601
48600
  var s, i;
48602
48601
  const e = this.getTooltipValue(), t = this.tooltipCtrl;
48603
- if (!ct(e) || t.shouldDisplayTooltip && !t.shouldDisplayTooltip()) {
48602
+ if (!ut(e) || t.shouldDisplayTooltip && !t.shouldDisplayTooltip()) {
48604
48603
  this.setToDoNothing();
48605
48604
  return;
48606
48605
  }
@@ -48873,7 +48872,7 @@ ${i}}
48873
48872
  }
48874
48873
  initialisePopupPosition(e) {
48875
48874
  const n = this.getPopupParent().getBoundingClientRect();
48876
- ct(e.style.top) || (e.style.top = `${n.top * -1}px`), ct(e.style.left) || (e.style.left = `${n.left * -1}px`);
48875
+ ut(e.style.top) || (e.style.top = `${n.top * -1}px`), ut(e.style.left) || (e.style.left = `${n.left * -1}px`);
48877
48876
  }
48878
48877
  createPopupWrapper(e, t, n, o) {
48879
48878
  const s = this.getPopupParent(), { environment: i, gos: r } = this.beans, a = fp({ tag: "div" });
@@ -50432,7 +50431,7 @@ var fde = class extends yn {
50432
50431
  );
50433
50432
  this.comp = d, l = d.getGui();
50434
50433
  } else
50435
- l = a.getGui(), ct(l) || qe(69, { guiFromFilter: l });
50434
+ l = a.getGui(), ut(l) || qe(69, { guiFromFilter: l });
50436
50435
  this.appendChild(l), e ? this.eventSvc.dispatchEvent({
50437
50436
  type: "filterOpened",
50438
50437
  column: t,
@@ -50524,12 +50523,12 @@ var YS = {
50524
50523
  }, ZS = {
50525
50524
  number: () => ({ comparator: mde }),
50526
50525
  boolean: ({ t: e }) => ({
50527
- valueFormatter: (t) => ct(t.value) ? e(String(t.value), t.value ? "True" : "False") : e("blanks", "(Blanks)")
50526
+ valueFormatter: (t) => ut(t.value) ? e(String(t.value), t.value ? "True" : "False") : e("blanks", "(Blanks)")
50528
50527
  }),
50529
50528
  date: ({ formatValue: e, t }) => ({
50530
50529
  valueFormatter: (n) => {
50531
50530
  const o = e(n);
50532
- return ct(o) ? o : t("blanks", "(Blanks)");
50531
+ return ut(o) ? o : t("blanks", "(Blanks)");
50533
50532
  },
50534
50533
  treeList: !0,
50535
50534
  treeListFormatter: (n, o) => {
@@ -50546,7 +50545,7 @@ var YS = {
50546
50545
  dateString: ({ formatValue: e, dataTypeDefinition: t, t: n }) => ({
50547
50546
  valueFormatter: (o) => {
50548
50547
  const s = e(o);
50549
- return ct(s) ? s : n("blanks", "(Blanks)");
50548
+ return ut(s) ? s : n("blanks", "(Blanks)");
50550
50549
  },
50551
50550
  treeList: !0,
50552
50551
  treeListPathGetter: (o) => yg(t.dateParser(o ?? void 0), !1),
@@ -50569,7 +50568,7 @@ var YS = {
50569
50568
  object: ({ formatValue: e, t }) => ({
50570
50569
  valueFormatter: (n) => {
50571
50570
  const o = e(n);
50572
- return ct(o) ? o : t("blanks", "(Blanks)");
50571
+ return ut(o) ? o : t("blanks", "(Blanks)");
50573
50572
  }
50574
50573
  }),
50575
50574
  text: () => {
@@ -52770,13 +52769,13 @@ var vhe = class extends $e {
52770
52769
  case Fe.LEFT:
52771
52770
  t = "LEFT";
52772
52771
  case Fe.RIGHT: {
52773
- ct(t) || (t = "RIGHT"), n.navigateHorizontally(t, !1, e) && e.preventDefault();
52772
+ ut(t) || (t = "RIGHT"), n.navigateHorizontally(t, !1, e) && e.preventDefault();
52774
52773
  break;
52775
52774
  }
52776
52775
  case Fe.UP:
52777
52776
  t = "UP";
52778
52777
  case Fe.DOWN: {
52779
- ct(t) || (t = "DOWN"), n.navigateVertically(t, e) && e.preventDefault();
52778
+ ut(t) || (t = "DOWN"), n.navigateVertically(t, e) && e.preventDefault();
52780
52779
  break;
52781
52780
  }
52782
52781
  default:
@@ -53027,7 +53026,7 @@ var vhe = class extends $e {
53027
53026
  this.addManagedListeners(this.columnOrGroup, { leftChanged: e }), this.setLeftFirstTime(), this.addManagedEventListeners({ displayedColumnsWidthChanged: e }), this.addManagedPropertyListener("domLayout", e);
53028
53027
  }
53029
53028
  setLeftFirstTime() {
53030
- const { gos: e, colAnimation: t } = this.beans, n = e.get("suppressColumnMoveAnimation"), o = ct(this.columnOrGroup.getOldLeft());
53029
+ const { gos: e, colAnimation: t } = this.beans, n = e.get("suppressColumnMoveAnimation"), o = ut(this.columnOrGroup.getOldLeft());
53031
53030
  (t == null ? void 0 : t.isActive()) && o && !n ? this.animateInLeft() : this.onLeftChanged();
53032
53031
  }
53033
53032
  animateInLeft() {
@@ -53052,7 +53051,7 @@ var vhe = class extends $e {
53052
53051
  return i + t;
53053
53052
  }
53054
53053
  setLeft(e) {
53055
- if (ct(e) && (this.eCell.style.left = `${e}px`), Xn(this.columnOrGroup)) {
53054
+ if (ut(e) && (this.eCell.style.left = `${e}px`), Xn(this.columnOrGroup)) {
53056
53055
  const t = this.columnOrGroup.getLeafColumns();
53057
53056
  if (!t.length)
53058
53057
  return;
@@ -53074,7 +53073,7 @@ var vhe = class extends $e {
53074
53073
  }
53075
53074
  shouldStopEventPropagation(e) {
53076
53075
  const { headerRowIndex: t, column: n } = this.beans.focusSvc.focusedHeader, o = n.getDefinition(), s = o == null ? void 0 : o.suppressHeaderKeyboardEvent;
53077
- if (!ct(s))
53076
+ if (!ut(s))
53078
53077
  return !1;
53079
53078
  const i = xt(this.gos, {
53080
53079
  colDef: o,
@@ -57173,7 +57172,7 @@ function Kfe(e, t) {
57173
57172
  return !1;
57174
57173
  break;
57175
57174
  default:
57176
- if (ct(t.rowPinned))
57175
+ if (ut(t.rowPinned))
57177
57176
  return t.rowPinned !== "top";
57178
57177
  break;
57179
57178
  }
@@ -58176,7 +58175,7 @@ function KC(e, t) {
58176
58175
  }
58177
58176
  var yF = 7, nE = 100, Tg = nE / 2, Spe = 5, Epe = 100, _pe = class extends $e {
58178
58177
  constructor(e) {
58179
- super(), this.pinned = e, this.needToMoveLeft = !1, this.needToMoveRight = !1, this.lastMovedInfo = null, this.isCenterContainer = !ct(e);
58178
+ super(), this.pinned = e, this.needToMoveLeft = !1, this.needToMoveRight = !1, this.lastMovedInfo = null, this.isCenterContainer = !ut(e);
58180
58179
  }
58181
58180
  postConstruct() {
58182
58181
  this.beans.ctrlsSvc.whenReady(this, (e) => {
@@ -59820,7 +59819,7 @@ var ege = class extends $e {
59820
59819
  createColumnGroup(e, t, n, o, s) {
59821
59820
  const i = e.getGroupId(), r = t.getInstanceIdForKey(i), a = NV(i, r);
59822
59821
  let l = n[a];
59823
- return l && l.getProvidedColumnGroup() !== e && (l = null), ct(l) ? l.reset() : (l = new Lf(e, i, r, o), s || this.createBean(l)), l;
59822
+ return l && l.getProvidedColumnGroup() !== e && (l = null), ut(l) ? l.reset() : (l = new Lf(e, i, r, o), s || this.createBean(l)), l;
59824
59823
  }
59825
59824
  // returns back a 2d map of ColumnGroup as follows: groupId -> instanceId -> ColumnGroup
59826
59825
  mapOldGroupsById(e) {
@@ -60741,7 +60740,7 @@ var Nge = class extends $e {
60741
60740
  return this.colsWithinViewport;
60742
60741
  const t = (i) => {
60743
60742
  const r = i.getLeft();
60744
- return ct(r) && r > this.viewportLeft;
60743
+ return ut(r) && r > this.viewportLeft;
60745
60744
  }, n = this.isColumnVirtualisationSuppressed() ? void 0 : this.isColumnInRowViewport.bind(this), { visibleCols: o } = this, s = o.centerCols;
60746
60745
  return o.getColsForRow(e, s, n, t);
60747
60746
  }
@@ -63883,7 +63882,7 @@ var eve = {
63883
63882
  * @param property GridOption property
63884
63883
  */
63885
63884
  exists(e) {
63886
- return ct(this.gridOptions[e]);
63885
+ return ut(this.gridOptions[e]);
63887
63886
  }
63888
63887
  /**
63889
63888
  * Wrap the user callback and attach the api and context to the params object on the way through.
@@ -63975,7 +63974,7 @@ var eve = {
63975
63974
  let t = e;
63976
63975
  for (; t; ) {
63977
63976
  const n = t[xF];
63978
- if (ct(n))
63977
+ if (ut(n))
63979
63978
  return n === this.instanceId;
63980
63979
  t = t.parentElement;
63981
63980
  }
@@ -64238,7 +64237,7 @@ var ave = D2(!0), lve = D2(!1), uve = class extends yn {
64238
64237
  setupLabel(e) {
64239
64238
  var s;
64240
64239
  const { displayName: t, columnGroup: n } = e, o = this.innerHeaderGroupComponent || this.isLoadingInnerComponent;
64241
- ct(t) && !o && (this.agLabel.textContent = Td(t)), this.toggleCss("ag-sticky-label", !((s = n.getColGroupDef()) != null && s.suppressStickyLabel));
64240
+ ut(t) && !o && (this.agLabel.textContent = Td(t)), this.toggleCss("ag-sticky-label", !((s = n.getColGroupDef()) != null && s.suppressStickyLabel));
64242
64241
  }
64243
64242
  destroy() {
64244
64243
  super.destroy(), this.innerHeaderGroupComponent && (this.destroyBean(this.innerHeaderGroupComponent), this.innerHeaderGroupComponent = void 0);
@@ -64393,7 +64392,7 @@ var ave = D2(!0), lve = D2(!1), uve = class extends yn {
64393
64392
  return;
64394
64393
  const { params: s, eMenu: i, eFilterButton: r } = e, a = new kl(e.getGui(), !0);
64395
64394
  e.addDestroyFunc(() => a.destroy());
64396
- const l = e.shouldSuppressMenuHide(), u = l && ct(i) && s.enableMenu;
64395
+ const l = e.shouldSuppressMenuHide(), u = l && ut(i) && s.enableMenu;
64397
64396
  let c = a;
64398
64397
  if (u && (c = new kl(i, !0), e.addDestroyFunc(() => c.destroy())), s.enableMenu || o != null && o.isHeaderContextMenuEnabled(s.column)) {
64399
64398
  const d = u ? "tap" : "longTap", h = (f) => s.showColumnMenuAfterMouseClick(f.touchStart);
@@ -66468,7 +66467,7 @@ var qve = class extends $e {
66468
66467
  setAnimateFlags(e) {
66469
66468
  if (this.rowNode.sticky || !e)
66470
66469
  return;
66471
- const t = ct(this.rowNode.oldRowTop), { visibleCols: n } = this.beans, o = n.isPinningLeft(), s = n.isPinningRight();
66470
+ const t = ut(this.rowNode.oldRowTop), { visibleCols: n } = this.beans, o = n.isPinningLeft(), s = n.isPinningRight();
66472
66471
  if (t) {
66473
66472
  const { slideInAnimation: i } = this;
66474
66473
  if (this.isFullWidth() && !this.gos.get("embedFullWidthRows")) {
@@ -67015,7 +67014,7 @@ var qve = class extends $e {
67015
67014
  return e + n * (t ? 1 : -1);
67016
67015
  }
67017
67016
  setRowTop(e) {
67018
- if (!this.printLayout && ct(e)) {
67017
+ if (!this.printLayout && ut(e)) {
67019
67018
  const t = this.applyPaginationOffset(e), s = `${this.rowNode.isRowPinned() || this.rowNode.sticky ? t : this.beans.rowContainerHeight.getRealPixelPosition(t)}px`;
67020
67019
  this.setRowTopStyle(s);
67021
67020
  }
@@ -67118,7 +67117,7 @@ var qve = class extends $e {
67118
67117
  rowPinned: r
67119
67118
  }) {
67120
67119
  const { scrollFeature: a } = this.gridBodyCon;
67121
- ct(n) && !n.isPinned() && a.ensureColumnVisible(n), ct(e) && a.ensureIndexVisible(e, t), i || a.ensureIndexVisible(o);
67120
+ ut(n) && !n.isPinned() && a.ensureColumnVisible(n), ut(e) && a.ensureIndexVisible(e, t), i || a.ensureIndexVisible(o);
67122
67121
  const { focusSvc: l, rangeSvc: u } = this.beans;
67123
67122
  l.setFocusedCell({
67124
67123
  rowIndex: o,
@@ -67278,7 +67277,7 @@ var qve = class extends $e {
67278
67277
  i.focusCell(!0);
67279
67278
  else if (i)
67280
67279
  return this.tryToFocusFullWidthRow(i, t);
67281
- return ct(i);
67280
+ return ut(i);
67282
67281
  }
67283
67282
  /**
67284
67283
  * called by the cell, when tab is pressed while editing.
@@ -67290,7 +67289,7 @@ var qve = class extends $e {
67290
67289
  for (; ; ) {
67291
67290
  e !== s && (e = s), t || (s = this.getLastCellOfColSpan(s)), s = r.getNextTabbedCell(s, t);
67292
67291
  const d = a.getCallback("tabToNextCell");
67293
- if (ct(d)) {
67292
+ if (ut(d)) {
67294
67293
  const g = d({
67295
67294
  backwards: t,
67296
67295
  editing: n,
@@ -67357,14 +67356,14 @@ var qve = class extends $e {
67357
67356
  column: n.column
67358
67357
  }), o) {
67359
67358
  const d = u.getCallback("navigateToNextCell");
67360
- if (ct(d)) {
67359
+ if (ut(d)) {
67361
67360
  const f = d({
67362
67361
  key: t,
67363
67362
  previousCellPosition: n,
67364
67363
  nextCellPosition: s || null,
67365
67364
  event: e
67366
67365
  });
67367
- ct(f) ? s = {
67366
+ ut(f) ? s = {
67368
67367
  rowPinned: f.rowPinned,
67369
67368
  rowIndex: f.rowIndex,
67370
67369
  column: f.column
@@ -68473,9 +68472,9 @@ var hye = (
68473
68472
  // and two columns provided, that identifies 4 cells, so 4 CellCtrl's returned.
68474
68473
  getCellCtrls(e, t) {
68475
68474
  let n;
68476
- ct(t) && (n = {}, t.forEach((s) => {
68475
+ ut(t) && (n = {}, t.forEach((s) => {
68477
68476
  const i = this.colModel.getCol(s);
68478
- ct(i) && (n[i.getId()] = !0);
68477
+ ut(i) && (n[i.getId()] = !0);
68479
68478
  }));
68480
68479
  const o = [];
68481
68480
  for (const s of this.getRowCtrls(e))
@@ -68613,8 +68612,8 @@ var hye = (
68613
68612
  }
68614
68613
  createOrUpdateRowCtrl(e, t, n, o) {
68615
68614
  let s, i = this.rowCtrlsByRowIndex[e];
68616
- if (i || (s = this.rowModel.getRow(e), ct(s) && ct(t) && t[s.id] && s.alreadyRendered && (i = t[s.id], t[s.id] = null)), !i)
68617
- if (s || (s = this.rowModel.getRow(e)), ct(s))
68615
+ if (i || (s = this.rowModel.getRow(e), ut(s) && ut(t) && t[s.id] && s.alreadyRendered && (i = t[s.id], t[s.id] = null)), !i)
68616
+ if (s || (s = this.rowModel.getRow(e)), ut(s))
68618
68617
  i = this.createRowCon(s, n, o);
68619
68618
  else
68620
68619
  return;
@@ -69165,7 +69164,7 @@ var Dye = "paste", Tye = class extends $e {
69165
69164
  parseValue(e, t, n, o) {
69166
69165
  var r;
69167
69166
  const s = e.getColDef(), i = s.valueParser;
69168
- if (ct(i)) {
69167
+ if (ut(i)) {
69169
69168
  const a = xt(this.gos, {
69170
69169
  node: t,
69171
69170
  data: t == null ? void 0 : t.data,
@@ -69179,7 +69178,7 @@ var Dye = "paste", Tye = class extends $e {
69179
69178
  return n;
69180
69179
  }
69181
69180
  getDeleteValue(e, t) {
69182
- return ct(e.getColDef().valueParser) ? this.parseValue(e, t, "", this.getValueForDisplay(e, t).value) ?? null : null;
69181
+ return ut(e.getColDef().valueParser) ? this.parseValue(e, t, "", this.getValueForDisplay(e, t).value) ?? null : null;
69183
69182
  }
69184
69183
  formatValue(e, t, n, o, s = !0) {
69185
69184
  const { expressionSvc: i } = this.beans;
@@ -69227,7 +69226,7 @@ var Dye = "paste", Tye = class extends $e {
69227
69226
  });
69228
69227
  a.newValue = n;
69229
69228
  let l;
69230
- if (ct(r) ? typeof r == "function" ? l = r(a) : l = (c = this.expressionSvc) == null ? void 0 : c.evaluate(r, a) : l = this.setValueUsingField(e.data, i, n, s.isFieldContainsDots()), l === void 0 && (l = !0), !l)
69229
+ if (ut(r) ? typeof r == "function" ? l = r(a) : l = (c = this.expressionSvc) == null ? void 0 : c.evaluate(r, a) : l = this.setValueUsingField(e.data, i, n, s.isFieldContainsDots()), l === void 0 && (l = !0), !l)
69231
69230
  return !1;
69232
69231
  e.resetQuickFilterAggregateText(), (d = this.valueCache) == null || d.onDataChanged();
69233
69232
  const u = this.getValue(s, e);
@@ -71374,11 +71373,11 @@ var Awe = {
71374
71373
  } = this;
71375
71374
  if (n.forEach((r, a) => {
71376
71375
  const l = this.getModelFromFilterWrapper(r);
71377
- ct(l) && (t[a] = l);
71376
+ ut(l) && (t[a] = l);
71378
71377
  }), !e)
71379
71378
  for (const r of Object.keys(o)) {
71380
71379
  const a = o[r];
71381
- ct(a) && !n.has(r) && ((i = s.getCol(r)) != null && i.isFilterAllowed()) && (t[r] = a);
71380
+ ut(a) && !n.has(r) && ((i = s.getCol(r)) != null && i.isFilterAllowed()) && (t[r] = a);
71382
71381
  }
71383
71382
  return t;
71384
71383
  }
@@ -71588,7 +71587,7 @@ var Awe = {
71588
71587
  return n ? n.isFilterActive() : Eo(this.initialModel, e.getColId()) != null;
71589
71588
  }
71590
71589
  isHandlerActive(e) {
71591
- const t = ct(Eo(this.model, e.getColId()));
71590
+ const t = ut(Eo(this.model, e.getColId()));
71592
71591
  if (t)
71593
71592
  return t;
71594
71593
  const n = this.beans.groupFilter;
@@ -72128,7 +72127,7 @@ var Awe = {
72128
72127
  }
72129
72128
  /** for handlers only */
72130
72129
  updateStoredModel(e, t) {
72131
- ct(t) ? this.model[e] = t : delete this.model[e];
72130
+ ut(t) ? this.model[e] = t : delete this.model[e];
72132
72131
  const n = this.state.get(e), o = {
72133
72132
  model: t,
72134
72133
  state: n == null ? void 0 : n.state
@@ -74237,7 +74236,7 @@ var hCe = class extends $e {
74237
74236
  e ? this.quickFilterParts = t ? t(e) : e.split(" ") : this.quickFilterParts = null;
74238
74237
  }
74239
74238
  parseFilter(e) {
74240
- return ct(e) ? e.toUpperCase() : null;
74239
+ return ut(e) ? e.toUpperCase() : null;
74241
74240
  }
74242
74241
  setFilter(e) {
74243
74242
  if (e != null && typeof e != "string") {
@@ -74257,7 +74256,7 @@ var hCe = class extends $e {
74257
74256
  doesRowPassNoCache(e, t) {
74258
74257
  return this.colsToUse.some((n) => {
74259
74258
  const o = this.getTextForColumn(n, e);
74260
- return ct(o) && o.includes(t);
74259
+ return ut(o) && o.includes(t);
74261
74260
  });
74262
74261
  }
74263
74262
  doesRowPassCache(e, t) {
@@ -74285,13 +74284,13 @@ var hCe = class extends $e {
74285
74284
  });
74286
74285
  n = o.getQuickFilterText(s);
74287
74286
  }
74288
- return ct(n) ? n.toString().toUpperCase() : null;
74287
+ return ut(n) ? n.toString().toUpperCase() : null;
74289
74288
  }
74290
74289
  getAggText(e) {
74291
74290
  const t = [];
74292
74291
  for (const n of this.colsToUse) {
74293
74292
  const o = this.getTextForColumn(n, e);
74294
- ct(o) && t.push(o);
74293
+ ut(o) && t.push(o);
74295
74294
  }
74296
74295
  return t.join(`
74297
74296
  `);
@@ -74484,7 +74483,7 @@ var hCe = class extends $e {
74484
74483
  return l = "cellEditor", f;
74485
74484
  l = "cell";
74486
74485
  const p = r.getColDef(), g = a.data;
74487
- if (p.tooltipField && ct(g))
74486
+ if (p.tooltipField && ut(g))
74488
74487
  return qh(g, p.tooltipField, r.isTooltipFieldContainsDots());
74489
74488
  const v = p.tooltipValueGetter;
74490
74489
  return v ? v(
@@ -74560,7 +74559,7 @@ var hCe = class extends $e {
74560
74559
  }
74561
74560
  initCol(e) {
74562
74561
  const { colDef: t } = e;
74563
- e.tooltipEnabled = ct(t.tooltipField) || ct(t.tooltipValueGetter) || ct(t.tooltipComponent);
74562
+ e.tooltipEnabled = ut(t.tooltipField) || ut(t.tooltipValueGetter) || ut(t.tooltipComponent);
74564
74563
  }
74565
74564
  createTooltipFeature(e, t) {
74566
74565
  return this.beans.registry.createDynamicBean("tooltipFeature", !1, e, t);
@@ -74958,7 +74957,7 @@ var hCe = class extends $e {
74958
74957
  }
74959
74958
  getValue() {
74960
74959
  const { eEditor: e, params: t } = this, n = e.getDate();
74961
- return !ct(n) && !ct(t.value) ? t.value : n ?? null;
74960
+ return !ut(n) && !ut(t.value) ? t.value : n ?? null;
74962
74961
  }
74963
74962
  getStartValue() {
74964
74963
  const { value: e } = this.params;
@@ -75026,7 +75025,7 @@ var hCe = class extends $e {
75026
75025
  }
75027
75026
  getValue() {
75028
75027
  const { params: e, eEditor: t } = this, n = this.formatDate(t.getDate());
75029
- return !ct(n) && !ct(e.value) ? e.value : e.parseValue(n ?? "");
75028
+ return !ut(n) && !ut(e.value) ? e.value : e.parseValue(n ?? "");
75030
75029
  }
75031
75030
  getStartValue() {
75032
75031
  return Os(this.parseDate(this.params.value ?? void 0) ?? null, this.includeTime ?? !1);
@@ -75082,7 +75081,7 @@ var hCe = class extends $e {
75082
75081
  }
75083
75082
  getValue() {
75084
75083
  const { eEditor: e, params: t } = this, { value: n } = t, o = e.getValue();
75085
- return !ct(o) && !ct(n) ? n : t.parseValue(o);
75084
+ return !ut(o) && !ut(n) ? n : t.parseValue(o);
75086
75085
  }
75087
75086
  getValidationElement() {
75088
75087
  return this.eEditor.getInputElement();
@@ -75137,7 +75136,7 @@ var hCe = class extends $e {
75137
75136
  }
75138
75137
  getValue() {
75139
75138
  const { eEditor: e, params: t } = this, n = e.getValue();
75140
- if (!ct(n) && !ct(t.value))
75139
+ if (!ut(n) && !ut(t.value))
75141
75140
  return t.value;
75142
75141
  let o = t.parseValue(n);
75143
75142
  if (o == null)
@@ -75251,7 +75250,7 @@ var hCe = class extends $e {
75251
75250
  }
75252
75251
  getValue() {
75253
75252
  const { eEditor: e, params: t } = this, n = e.getValue();
75254
- return !ct(n) && !ct(t.value) ? t.value : t.parseValue(n);
75253
+ return !ut(n) && !ut(t.value) ? t.value : t.parseValue(n);
75255
75254
  }
75256
75255
  getStartValue() {
75257
75256
  const e = this.params;
@@ -75259,7 +75258,7 @@ var hCe = class extends $e {
75259
75258
  }
75260
75259
  setCaret() {
75261
75260
  dl() && this.eEditor.getInputElement().focus({ preventScroll: !0 });
75262
- const e = this.eEditor, t = e.getValue(), n = ct(t) && t.length || 0;
75261
+ const e = this.eEditor, t = e.getValue(), n = ut(t) && t.length || 0;
75263
75262
  n && e.getInputElement().setSelectionRange(n, n);
75264
75263
  }
75265
75264
  }, GF = class extends My {
@@ -78557,7 +78556,7 @@ var ISe = {
78557
78556
  };
78558
78557
  }
78559
78558
  setDataAndId(e, t, n) {
78560
- ct(t) ? e.setDataAndId(t, n.toString()) : e.setDataAndId(void 0, void 0);
78559
+ ut(t) ? e.setDataAndId(t, n.toString()) : e.setDataAndId(void 0, void 0);
78561
78560
  }
78562
78561
  loadFromDatasource() {
78563
78562
  const e = this.createLoadParams();
@@ -78696,7 +78695,7 @@ var ISe = {
78696
78695
  }
78697
78696
  }
78698
78697
  setRowCount(e, t) {
78699
- this.rowCount = e, ct(t) && (this.lastRowIndexKnown = t), this.lastRowIndexKnown || this.rowCount % this.params.blockSize === 0 && this.rowCount++, this.onCacheUpdated();
78698
+ this.rowCount = e, ut(t) && (this.lastRowIndexKnown = t), this.lastRowIndexKnown || this.rowCount % this.params.blockSize === 0 && this.rowCount++, this.onCacheUpdated();
78700
78699
  }
78701
78700
  forEachNodeDeep(e) {
78702
78701
  const t = { value: 0 };
@@ -79016,7 +79015,7 @@ var LSe = class extends $e {
79016
79015
  this.refresh(e, !0);
79017
79016
  }
79018
79017
  showDelta(e, t) {
79019
- const n = Math.abs(t), o = e.formatValue(n), s = ct(o) ? o : n, i = t >= 0, r = this.eDelta;
79018
+ const n = Math.abs(t), o = e.formatValue(n), s = ut(o) ? o : n, i = t >= 0, r = this.eDelta;
79020
79019
  i ? r.textContent = HSe + s : r.textContent = $Se + s, r.classList.toggle("ag-value-change-delta-up", i), r.classList.toggle("ag-value-change-delta-down", !i);
79021
79020
  }
79022
79021
  setTimerToRemoveDelta() {
@@ -79034,7 +79033,7 @@ var LSe = class extends $e {
79034
79033
  refresh(e, t = !1) {
79035
79034
  var u;
79036
79035
  const { value: n, valueFormatted: o } = e, { eValue: s, lastValue: i, beans: r } = this;
79037
- if (n === i || (ct(o) ? s.textContent = o : ct(n) ? s.textContent = n : Po(s), (u = r.filterManager) != null && u.isSuppressFlashingCellsBecauseFiltering()))
79036
+ if (n === i || (ut(o) ? s.textContent = o : ut(n) ? s.textContent = n : Po(s), (u = r.filterManager) != null && u.isSuppressFlashingCellsBecauseFiltering()))
79038
79037
  return !1;
79039
79038
  const a = n && typeof n == "object" && "toNumber" in n ? n.toNumber() : n, l = i && typeof i == "object" && "toNumber" in i ? i.toNumber() : i;
79040
79039
  if (a === l)
@@ -79080,7 +79079,7 @@ var LSe = class extends $e {
79080
79079
  return !1;
79081
79080
  t || this.addSlideAnimation(), this.lastValue = n;
79082
79081
  const o = this.eCurrent;
79083
- return ct(e.valueFormatted) ? o.textContent = e.valueFormatted : ct(e.value) ? o.textContent = n : Po(o), !0;
79082
+ return ut(e.valueFormatted) ? o.textContent = e.valueFormatted : ut(e.value) ? o.textContent = n : Po(o), !0;
79084
79083
  }
79085
79084
  }, KSe = class extends $e {
79086
79085
  constructor() {
@@ -80123,7 +80122,7 @@ var hEe = class extends $e {
80123
80122
  this.currentPage = e;
80124
80123
  }
80125
80124
  get pageSize() {
80126
- return ct(this.pageSizeAutoCalculated) && this.gos.get("paginationAutoPageSize") ? this.pageSizeAutoCalculated : ct(this.pageSizeFromPageSizeSelector) ? this.pageSizeFromPageSizeSelector : ct(this.pageSizeFromInitialState) ? this.pageSizeFromInitialState : ct(this.pageSizeFromGridOptions) ? this.pageSizeFromGridOptions : this.defaultPageSize;
80125
+ return ut(this.pageSizeAutoCalculated) && this.gos.get("paginationAutoPageSize") ? this.pageSizeAutoCalculated : ut(this.pageSizeFromPageSizeSelector) ? this.pageSizeFromPageSizeSelector : ut(this.pageSizeFromInitialState) ? this.pageSizeFromInitialState : ut(this.pageSizeFromGridOptions) ? this.pageSizeFromGridOptions : this.defaultPageSize;
80127
80126
  }
80128
80127
  calculatePages() {
80129
80128
  this.active ? this.paginateChildRows ? this.calculatePagesAllRows() : this.calculatePagesMasterRowsOnly() : this.calculatedPagesNotActive(), this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex, this.bottomDisplayedRowIndex);
@@ -85709,7 +85708,7 @@ const bRe = {
85709
85708
  onHandleClick: d
85710
85709
  }, {
85711
85710
  prefix: Ce(() => [
85712
- he(U(ut), { src: "Download" })
85711
+ he(U(dt), { src: "Download" })
85713
85712
  ]),
85714
85713
  default: Ce(() => [
85715
85714
  A[2] || (A[2] = st(" Download file ", -1))
@@ -85865,7 +85864,7 @@ const bRe = {
85865
85864
  onEscape: U(r)
85866
85865
  }, {
85867
85866
  default: Ce(() => [
85868
- he(U(ut), { src: "ArrowUpRightFromSquare" })
85867
+ he(U(dt), { src: "ArrowUpRightFromSquare" })
85869
85868
  ]),
85870
85869
  _: 1
85871
85870
  }, 8, ["onEscape"])), [
@@ -85891,7 +85890,7 @@ const bRe = {
85891
85890
  ge("div", {
85892
85891
  class: Q(S.$style.icon)
85893
85892
  }, [
85894
- he(U(ut), {
85893
+ he(U(dt), {
85895
85894
  src: "PenRuler",
85896
85895
  color: "#A6A6A6"
85897
85896
  })
@@ -85914,7 +85913,7 @@ const bRe = {
85914
85913
  ge("div", {
85915
85914
  class: Q(S.$style.icon)
85916
85915
  }, [
85917
- he(U(ut), {
85916
+ he(U(dt), {
85918
85917
  src: "UserCheck",
85919
85918
  color: "#A6A6A6"
85920
85919
  })
@@ -85937,7 +85936,7 @@ const bRe = {
85937
85936
  ge("div", {
85938
85937
  class: Q(S.$style.icon)
85939
85938
  }, [
85940
- he(U(ut), {
85939
+ he(U(dt), {
85941
85940
  src: "ChartPie",
85942
85941
  color: "#A6A6A6"
85943
85942
  })
@@ -86460,7 +86459,7 @@ const bRe = {
86460
86459
  onClick: He
86461
86460
  }, {
86462
86461
  default: Ce(() => [
86463
- he(U(ut), { src: "ArrowsRotate" })
86462
+ he(U(dt), { src: "ArrowsRotate" })
86464
86463
  ]),
86465
86464
  _: 1
86466
86465
  }, 8, ["disabled"])), [
@@ -86573,7 +86572,7 @@ const bRe = {
86573
86572
  "beta-tag": "_beta-tag_1sow5_56"
86574
86573
  }, WRe = {
86575
86574
  $style: URe
86576
- }, zRe = /* @__PURE__ */ Rt(LRe, [["__cssModules", WRe]]), WB = "0.1.62", jRe = { key: 0 }, KRe = /* @__PURE__ */ pt({
86575
+ }, zRe = /* @__PURE__ */ Rt(LRe, [["__cssModules", WRe]]), WB = "0.1.63", jRe = { key: 0 }, KRe = /* @__PURE__ */ pt({
86577
86576
  __name: "app",
86578
86577
  setup(e) {
86579
86578
  const t = X(() => n.id.length === 0 || n.workspaceId.length === 0), n = ii({