@zyzgroup/core-web 0.0.39 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/zyzgroup_core_web.iife.js +14 -14
- package/dist/zyzgroup_core_web.iife.js.map +1 -1
- package/dist/zyzgroup_core_web.js +821 -904
- package/dist/zyzgroup_core_web.js.map +1 -1
- package/dist/zyzgroup_core_web.umd.cjs +14 -14
- package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/types/shape/AnimateOperation.d.ts.map +1 -1
- package/types/shape/lib/Matrix.d.ts +12 -10
- package/types/shape/lib/Matrix.d.ts.map +1 -1
|
@@ -144,7 +144,7 @@ function Pd(r) {
|
|
|
144
144
|
return e;
|
|
145
145
|
}
|
|
146
146
|
var Ri = /* @__PURE__ */ ((r) => (r.UNKNOWN = "", r.HTML = "text/html", r.CSS = "text/css", r.JPEG = "image/jpeg", r.PNG = "image/png", r.GIF = "image/gif", r.WEBP = "image/webp", r.SVG = "image/svg+xml", r.MPEG = "audio/mpeg", r.OGG = "audio/ogg", r.MP4 = "video/mp4", r.JSON = "application/json", r.JAVASCRIPT = "application/javascript", r.ECMASCRIPT = "application/ecmascript", r.EXCEL = "application/vnb.ms-excel", r.XWWW = "application/x-www-form-urlencoded", r.CSV = "application/x-csv", r.PDF = "application/pdf", r.ZIP = "application/zip", r.TGZ = "application/x-gtar", r.TAR_GZ = "application/x-gzip", r.XML = "text/xml", r.TEXT = "text/plain", r))(Ri || {});
|
|
147
|
-
const
|
|
147
|
+
const ta = (r, e = 16) => (r = r.toLowerCase(), (r.indexOf("0b") == 0 || r.indexOf("0o") == 0 || r.indexOf("0x") == 0) && (r = r.slice(2)), parseInt(r, e));
|
|
148
148
|
function u6() {
|
|
149
149
|
const r = Uint32Array.of(305419896), e = new Uint8Array(r.buffer);
|
|
150
150
|
switch (e[0] * 16777216 + e[1] * 65536 + e[2] * 256 + e[3]) {
|
|
@@ -1710,7 +1710,7 @@ var Q0 = function(r, e) {
|
|
|
1710
1710
|
Object.prototype.hasOwnProperty.call(i, s) && (t[s] = i[s]);
|
|
1711
1711
|
}, Q0(r, e);
|
|
1712
1712
|
};
|
|
1713
|
-
function
|
|
1713
|
+
function hs(r, e) {
|
|
1714
1714
|
if (typeof e != "function" && e !== null)
|
|
1715
1715
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
1716
1716
|
Q0(r, e);
|
|
@@ -1906,7 +1906,7 @@ function el(r) {
|
|
|
1906
1906
|
r();
|
|
1907
1907
|
}
|
|
1908
1908
|
var X1 = function(r) {
|
|
1909
|
-
|
|
1909
|
+
hs(e, r);
|
|
1910
1910
|
function e(t) {
|
|
1911
1911
|
var i = r.call(this) || this;
|
|
1912
1912
|
return i.isStopped = !1, t ? (i.destination = t, xd(t) && t.add(i)) : i.destination = Ov, i;
|
|
@@ -1972,7 +1972,7 @@ var Rv = function() {
|
|
|
1972
1972
|
}
|
|
1973
1973
|
}, r;
|
|
1974
1974
|
}(), e1 = function(r) {
|
|
1975
|
-
|
|
1975
|
+
hs(e, r);
|
|
1976
1976
|
function e(t, i, s) {
|
|
1977
1977
|
var a = r.call(this) || this, n;
|
|
1978
1978
|
if (Li(t) || !t)
|
|
@@ -2090,7 +2090,7 @@ function Fv(r) {
|
|
|
2090
2090
|
return r && r instanceof X1 || Lv(r) && xd(r);
|
|
2091
2091
|
}
|
|
2092
2092
|
(function(r) {
|
|
2093
|
-
|
|
2093
|
+
hs(e, r);
|
|
2094
2094
|
function e(t, i, s, a, n, o) {
|
|
2095
2095
|
var l = r.call(this, t) || this;
|
|
2096
2096
|
return l.onFinalize = n, l.shouldUnsubscribe = o, l._next = i ? function(h) {
|
|
@@ -2130,7 +2130,7 @@ var Uv = Y1(function(r) {
|
|
|
2130
2130
|
r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
2131
2131
|
};
|
|
2132
2132
|
}), Gv = function(r) {
|
|
2133
|
-
|
|
2133
|
+
hs(e, r);
|
|
2134
2134
|
function e() {
|
|
2135
2135
|
var t = r.call(this) || this;
|
|
2136
2136
|
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
|
@@ -2210,7 +2210,7 @@ var Uv = Y1(function(r) {
|
|
|
2210
2210
|
return new of(t, i);
|
|
2211
2211
|
}, e;
|
|
2212
2212
|
}(af), of = function(r) {
|
|
2213
|
-
|
|
2213
|
+
hs(e, r);
|
|
2214
2214
|
function e(t, i) {
|
|
2215
2215
|
var s = r.call(this) || this;
|
|
2216
2216
|
return s.destination = t, s.source = i, s;
|
|
@@ -2234,7 +2234,7 @@ var Uv = Y1(function(r) {
|
|
|
2234
2234
|
},
|
|
2235
2235
|
delegate: void 0
|
|
2236
2236
|
}, Bv = function(r) {
|
|
2237
|
-
|
|
2237
|
+
hs(e, r);
|
|
2238
2238
|
function e(t, i) {
|
|
2239
2239
|
return r.call(this) || this;
|
|
2240
2240
|
}
|
|
@@ -2253,7 +2253,7 @@ var Uv = Y1(function(r) {
|
|
|
2253
2253
|
},
|
|
2254
2254
|
delegate: void 0
|
|
2255
2255
|
}, Vv = function(r) {
|
|
2256
|
-
|
|
2256
|
+
hs(e, r);
|
|
2257
2257
|
function e(t, i) {
|
|
2258
2258
|
var s = r.call(this, t, i) || this;
|
|
2259
2259
|
return s.scheduler = t, s.work = i, s.pending = !1, s;
|
|
@@ -2302,7 +2302,7 @@ var Uv = Y1(function(r) {
|
|
|
2302
2302
|
return t === void 0 && (t = 0), new this.schedulerActionCtor(this, e).schedule(i, t);
|
|
2303
2303
|
}, r.now = jv.now, r;
|
|
2304
2304
|
}(), Hv = function(r) {
|
|
2305
|
-
|
|
2305
|
+
hs(e, r);
|
|
2306
2306
|
function e(t, i) {
|
|
2307
2307
|
i === void 0 && (i = lf.now);
|
|
2308
2308
|
var s = r.call(this, t, i) || this;
|
|
@@ -2390,10 +2390,10 @@ function ke(r) {
|
|
|
2390
2390
|
});
|
|
2391
2391
|
}), t;
|
|
2392
2392
|
}
|
|
2393
|
-
var K1 = { exports: {} },
|
|
2393
|
+
var K1 = { exports: {} }, fa = typeof Reflect == "object" ? Reflect : null, uf = fa && typeof fa.apply == "function" ? fa.apply : function(r, e, t) {
|
|
2394
2394
|
return Function.prototype.apply.call(r, e, t);
|
|
2395
2395
|
}, tl;
|
|
2396
|
-
|
|
2396
|
+
fa && typeof fa.ownKeys == "function" ? tl = fa.ownKeys : Object.getOwnPropertySymbols ? tl = function(r) {
|
|
2397
2397
|
return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r));
|
|
2398
2398
|
} : tl = function(r) {
|
|
2399
2399
|
return Object.getOwnPropertyNames(r);
|
|
@@ -2972,7 +2972,7 @@ function r1(r, e) {
|
|
|
2972
2972
|
value: e || null
|
|
2973
2973
|
}), r;
|
|
2974
2974
|
}
|
|
2975
|
-
var i1 = { exports: {} }, Z1 = {}, Fi = {},
|
|
2975
|
+
var i1 = { exports: {} }, Z1 = {}, Fi = {}, Is = {}, J1 = {}, Q1 = {}, x1 = {};
|
|
2976
2976
|
(function(r) {
|
|
2977
2977
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.regexpCode = r.getEsmExportName = r.getProperty = r.safeStringify = r.stringify = r.strConcat = r.addCodeArg = r.str = r._ = r.nil = r._Code = r.Name = r.IDENTIFIER = r._CodeOrName = void 0;
|
|
2978
2978
|
class e {
|
|
@@ -4035,8 +4035,8 @@ const d3 = /* @__PURE__ */ Sr(J1), c3 = /* @__PURE__ */ Pe({
|
|
|
4035
4035
|
__proto__: null,
|
|
4036
4036
|
default: d3
|
|
4037
4037
|
}, [J1]), go = /* @__PURE__ */ ke(c3);
|
|
4038
|
-
Object.defineProperty(
|
|
4039
|
-
var uc =
|
|
4038
|
+
Object.defineProperty(Is, "__esModule", { value: !0 });
|
|
4039
|
+
var uc = Is.boolOrEmptySchema = fc = Is.topBoolOrEmptySchema = void 0;
|
|
4040
4040
|
const p3 = go, g3 = Qe, v3 = Hi, m3 = {
|
|
4041
4041
|
message: "boolean schema is false"
|
|
4042
4042
|
};
|
|
@@ -4044,12 +4044,12 @@ function b3(r) {
|
|
|
4044
4044
|
const { gen: e, schema: t, validateName: i } = r;
|
|
4045
4045
|
t === !1 ? dc(r, !1) : typeof t == "object" && t.$async === !0 ? e.return(v3.default.data) : (e.assign((0, g3._)`${i}.errors`, null), e.return(!0));
|
|
4046
4046
|
}
|
|
4047
|
-
var fc =
|
|
4047
|
+
var fc = Is.topBoolOrEmptySchema = b3;
|
|
4048
4048
|
function y3(r, e) {
|
|
4049
4049
|
const { gen: t, schema: i } = r;
|
|
4050
4050
|
i === !1 ? (t.var(e, !1), dc(r)) : t.var(e, !0);
|
|
4051
4051
|
}
|
|
4052
|
-
uc =
|
|
4052
|
+
uc = Is.boolOrEmptySchema = y3;
|
|
4053
4053
|
function dc(r, e) {
|
|
4054
4054
|
const { gen: t, data: i } = r, s = {
|
|
4055
4055
|
gen: t,
|
|
@@ -4068,19 +4068,19 @@ const _3 = /* @__PURE__ */ Pe({
|
|
|
4068
4068
|
get boolOrEmptySchema() {
|
|
4069
4069
|
return uc;
|
|
4070
4070
|
},
|
|
4071
|
-
default:
|
|
4071
|
+
default: Is,
|
|
4072
4072
|
get topBoolOrEmptySchema() {
|
|
4073
4073
|
return fc;
|
|
4074
4074
|
}
|
|
4075
|
-
}, [
|
|
4076
|
-
var ih = {},
|
|
4077
|
-
Object.defineProperty(
|
|
4078
|
-
var cc =
|
|
4075
|
+
}, [Is]), T3 = /* @__PURE__ */ ke(_3);
|
|
4076
|
+
var ih = {}, Os = {};
|
|
4077
|
+
Object.defineProperty(Os, "__esModule", { value: !0 });
|
|
4078
|
+
var cc = Os.getRules = pc = Os.isJSONType = void 0;
|
|
4079
4079
|
const C3 = ["string", "number", "integer", "boolean", "null", "object", "array"], w3 = new Set(C3);
|
|
4080
4080
|
function S3(r) {
|
|
4081
4081
|
return typeof r == "string" && w3.has(r);
|
|
4082
4082
|
}
|
|
4083
|
-
var pc =
|
|
4083
|
+
var pc = Os.isJSONType = S3;
|
|
4084
4084
|
function z3() {
|
|
4085
4085
|
const r = {
|
|
4086
4086
|
number: { type: "number", rules: [] },
|
|
@@ -4096,17 +4096,17 @@ function z3() {
|
|
|
4096
4096
|
keywords: {}
|
|
4097
4097
|
};
|
|
4098
4098
|
}
|
|
4099
|
-
cc =
|
|
4099
|
+
cc = Os.getRules = z3;
|
|
4100
4100
|
const P3 = /* @__PURE__ */ Pe({
|
|
4101
4101
|
__proto__: null,
|
|
4102
|
-
default:
|
|
4102
|
+
default: Os,
|
|
4103
4103
|
get getRules() {
|
|
4104
4104
|
return cc;
|
|
4105
4105
|
},
|
|
4106
4106
|
get isJSONType() {
|
|
4107
4107
|
return pc;
|
|
4108
4108
|
}
|
|
4109
|
-
}, [
|
|
4109
|
+
}, [Os]), gc = /* @__PURE__ */ ke(P3);
|
|
4110
4110
|
var Ui = {};
|
|
4111
4111
|
Object.defineProperty(Ui, "__esModule", { value: !0 });
|
|
4112
4112
|
var vc = Ui.shouldUseRule = yc = Ui.shouldUseGroup = mc = Ui.schemaHasRulesForType = void 0;
|
|
@@ -4289,7 +4289,7 @@ const A3 = /* @__PURE__ */ Sr(ih), M3 = /* @__PURE__ */ Pe({
|
|
|
4289
4289
|
var hn = {};
|
|
4290
4290
|
Object.defineProperty(hn, "__esModule", { value: !0 });
|
|
4291
4291
|
var Cc = hn.assignDefaults = void 0;
|
|
4292
|
-
const
|
|
4292
|
+
const ra = Qe, R3 = ft;
|
|
4293
4293
|
function I3(r, e) {
|
|
4294
4294
|
const { properties: t, items: i } = r.schema;
|
|
4295
4295
|
if (e === "object" && t)
|
|
@@ -4303,13 +4303,13 @@ function pf(r, e, t) {
|
|
|
4303
4303
|
const { gen: i, compositeRule: s, data: a, opts: n } = r;
|
|
4304
4304
|
if (t === void 0)
|
|
4305
4305
|
return;
|
|
4306
|
-
const o = (0,
|
|
4306
|
+
const o = (0, ra._)`${a}${(0, ra.getProperty)(e)}`;
|
|
4307
4307
|
if (s) {
|
|
4308
4308
|
(0, R3.checkStrictMode)(r, `default is ignored for: ${o}`);
|
|
4309
4309
|
return;
|
|
4310
4310
|
}
|
|
4311
|
-
let l = (0,
|
|
4312
|
-
n.useDefaults === "empty" && (l = (0,
|
|
4311
|
+
let l = (0, ra._)`${o} === undefined`;
|
|
4312
|
+
n.useDefaults === "empty" && (l = (0, ra._)`${l} || ${o} === null || ${o} === ""`), i.if(l, (0, ra._)`${o} = ${(0, ra.stringify)(t)}`);
|
|
4313
4313
|
}
|
|
4314
4314
|
const O3 = /* @__PURE__ */ Pe({
|
|
4315
4315
|
__proto__: null,
|
|
@@ -4470,7 +4470,7 @@ const q3 = /* @__PURE__ */ Pe({
|
|
|
4470
4470
|
}, [vt]), oi = /* @__PURE__ */ ke(q3);
|
|
4471
4471
|
Object.defineProperty(ni, "__esModule", { value: !0 });
|
|
4472
4472
|
var Fc = ni.validateKeywordUsage = Bc = ni.validSchemaType = Gc = ni.funcKeywordCode = Uc = ni.macroKeywordCode = void 0;
|
|
4473
|
-
const dr = Qe,
|
|
4473
|
+
const dr = Qe, ws = Hi, Y3 = oi, X3 = go;
|
|
4474
4474
|
function K3(r, e) {
|
|
4475
4475
|
const { gen: t, keyword: i, schema: s, parentSchema: a, it: n } = r, o = e.macro.call(n.self, s, a, n), l = jc(t, i, o);
|
|
4476
4476
|
n.opts.validateSchema !== !1 && n.self.validateSchema(o, !0);
|
|
@@ -4507,7 +4507,7 @@ function Z3(r, e) {
|
|
|
4507
4507
|
return i.assign(_, null), g(dr.nil), _;
|
|
4508
4508
|
}
|
|
4509
4509
|
function g(_ = e.async ? (0, dr._)`await ` : dr.nil) {
|
|
4510
|
-
const T = l.opts.passContext ?
|
|
4510
|
+
const T = l.opts.passContext ? ws.default.this : ws.default.self, m = !("compile" in e && !o || e.schema === !1);
|
|
4511
4511
|
i.assign(d, (0, dr._)`${_}${(0, Y3.callValidateCode)(r, u, T, m)}`, e.modifying);
|
|
4512
4512
|
}
|
|
4513
4513
|
function y(_) {
|
|
@@ -4523,7 +4523,7 @@ function gf(r) {
|
|
|
4523
4523
|
function J3(r, e) {
|
|
4524
4524
|
const { gen: t } = r;
|
|
4525
4525
|
t.if((0, dr._)`Array.isArray(${e})`, () => {
|
|
4526
|
-
t.assign(
|
|
4526
|
+
t.assign(ws.default.vErrors, (0, dr._)`${ws.default.vErrors} === null ? ${e} : ${ws.default.vErrors}.concat(${e})`).assign(ws.default.errors, (0, dr._)`${ws.default.vErrors}.length`), (0, X3.extendErrors)(r);
|
|
4527
4527
|
}, () => r.error());
|
|
4528
4528
|
}
|
|
4529
4529
|
function Q3({ schemaEnv: r }, e) {
|
|
@@ -4803,7 +4803,7 @@ function xc(r) {
|
|
|
4803
4803
|
return e;
|
|
4804
4804
|
}
|
|
4805
4805
|
function e4(r, e = "", t) {
|
|
4806
|
-
t !== !1 && (e =
|
|
4806
|
+
t !== !1 && (e = da(e));
|
|
4807
4807
|
const i = r.parse(e);
|
|
4808
4808
|
return r4(r, i);
|
|
4809
4809
|
}
|
|
@@ -4813,19 +4813,19 @@ function r4(r, e) {
|
|
|
4813
4813
|
}
|
|
4814
4814
|
var i4 = cr._getFullPath = r4;
|
|
4815
4815
|
const _8 = /#\/?$/;
|
|
4816
|
-
function
|
|
4816
|
+
function da(r) {
|
|
4817
4817
|
return r ? r.replace(_8, "") : "";
|
|
4818
4818
|
}
|
|
4819
|
-
var s4 = cr.normalizeId =
|
|
4819
|
+
var s4 = cr.normalizeId = da;
|
|
4820
4820
|
function T8(r, e, t) {
|
|
4821
|
-
return t =
|
|
4821
|
+
return t = da(t), r.resolve(e, t);
|
|
4822
4822
|
}
|
|
4823
4823
|
var a4 = cr.resolveUrl = T8;
|
|
4824
4824
|
const C8 = /^[a-z_][-a-z0-9._]*$/i;
|
|
4825
4825
|
function w8(r, e) {
|
|
4826
4826
|
if (typeof r == "boolean")
|
|
4827
4827
|
return {};
|
|
4828
|
-
const { schemaId: t, uriResolver: i } = this.opts, s =
|
|
4828
|
+
const { schemaId: t, uriResolver: i } = this.opts, s = da(r[t] || e), a = { "": s }, n = e4(i, s, !1), o = {}, l = /* @__PURE__ */ new Set();
|
|
4829
4829
|
return v8(r, { allKeys: !0 }, (d, c, f, p) => {
|
|
4830
4830
|
if (p === void 0)
|
|
4831
4831
|
return;
|
|
@@ -4834,11 +4834,11 @@ function w8(r, e) {
|
|
|
4834
4834
|
typeof d[t] == "string" && (y = _.call(this, d[t])), T.call(this, d.$anchor), T.call(this, d.$dynamicAnchor), a[c] = y;
|
|
4835
4835
|
function _(m) {
|
|
4836
4836
|
const w = this.opts.uriResolver.resolve;
|
|
4837
|
-
if (m =
|
|
4837
|
+
if (m = da(y ? w(y, m) : m), l.has(m))
|
|
4838
4838
|
throw u(m);
|
|
4839
4839
|
l.add(m);
|
|
4840
4840
|
let I = this.refs[m];
|
|
4841
|
-
return typeof I == "string" && (I = this.refs[I]), typeof I == "object" ? h(d, I.schema, m) : m !==
|
|
4841
|
+
return typeof I == "string" && (I = this.refs[I]), typeof I == "object" ? h(d, I.schema, m) : m !== da(g) && (m[0] === "#" ? (h(d, o[m], m), o[m] = d) : this.refs[m] = g), m;
|
|
4842
4842
|
}
|
|
4843
4843
|
function T(m) {
|
|
4844
4844
|
if (typeof m == "string") {
|
|
@@ -5230,7 +5230,7 @@ const em = /* @__PURE__ */ Pe({
|
|
|
5230
5230
|
var Rr = {};
|
|
5231
5231
|
Object.defineProperty(Rr, "__esModule", { value: !0 });
|
|
5232
5232
|
var _4 = Rr.resolveSchema = z4 = Rr.getCompilingSchema = w4 = Rr.resolveRef = C4 = Rr.compileSchema = T4 = Rr.SchemaEnv = void 0;
|
|
5233
|
-
const ti = Qe, tm = uh,
|
|
5233
|
+
const ti = Qe, tm = uh, _s = Hi, ai = Ll, _f = ft, rm = vo;
|
|
5234
5234
|
class Fl {
|
|
5235
5235
|
constructor(e) {
|
|
5236
5236
|
var t;
|
|
@@ -5255,10 +5255,10 @@ function ch(r) {
|
|
|
5255
5255
|
const h = {
|
|
5256
5256
|
gen: n,
|
|
5257
5257
|
allErrors: this.opts.allErrors,
|
|
5258
|
-
data:
|
|
5259
|
-
parentData:
|
|
5260
|
-
parentDataProperty:
|
|
5261
|
-
dataNames: [
|
|
5258
|
+
data: _s.default.data,
|
|
5259
|
+
parentData: _s.default.parentData,
|
|
5260
|
+
parentDataProperty: _s.default.parentDataProperty,
|
|
5261
|
+
dataNames: [_s.default.data],
|
|
5262
5262
|
dataPathArr: [ti.nil],
|
|
5263
5263
|
dataLevel: 0,
|
|
5264
5264
|
dataTypes: [],
|
|
@@ -5280,8 +5280,8 @@ function ch(r) {
|
|
|
5280
5280
|
try {
|
|
5281
5281
|
this._compilations.add(r), (0, rm.validateFunctionCode)(h), n.optimize(this.opts.code.optimize);
|
|
5282
5282
|
const d = n.toString();
|
|
5283
|
-
u = `${n.scopeRefs(
|
|
5284
|
-
const c = new Function(`${
|
|
5283
|
+
u = `${n.scopeRefs(_s.default.scope)}return ${d}`, this.opts.code.process && (u = this.opts.code.process(u, r));
|
|
5284
|
+
const c = new Function(`${_s.default.self}`, `${_s.default.scope}`, u)(this, this.scope.get());
|
|
5285
5285
|
if (this.scope.value(l, { ref: c }), c.errors = null, c.schema = r.schema, c.schemaEnv = r, r.$async && (c.$async = !0), this.opts.code.source === !0 && (c.source = { validateName: l, validateCode: d, scopeValues: n._values }), this.opts.unevaluated) {
|
|
5286
5286
|
const { props: f, items: p } = h;
|
|
5287
5287
|
c.evaluated = {
|
|
@@ -5876,7 +5876,7 @@ var gh = {}, a1 = { exports: {} };
|
|
|
5876
5876
|
domainHost: $r.domainHost,
|
|
5877
5877
|
parse: $r.parse,
|
|
5878
5878
|
serialize: $r.serialize
|
|
5879
|
-
}, Dr = {}, Xr = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", Ct = "[0-9A-Fa-f]", Er = s(s("%[EFef]" + Ct + "%" + Ct + Ct + "%" + Ct + Ct) + "|" + s("%[89A-Fa-f]" + Ct + "%" + Ct + Ct) + "|" + s("%" + Ct + Ct)), ur = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", Ti = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", Kr = i(Ti, '[\\"\\\\]'), hi = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]", mr = new RegExp(Xr, "g"), Mt = new RegExp(Er, "g"),
|
|
5879
|
+
}, Dr = {}, Xr = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", Ct = "[0-9A-Fa-f]", Er = s(s("%[EFef]" + Ct + "%" + Ct + Ct + "%" + Ct + Ct) + "|" + s("%[89A-Fa-f]" + Ct + "%" + Ct + Ct) + "|" + s("%" + Ct + Ct)), ur = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", Ti = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", Kr = i(Ti, '[\\"\\\\]'), hi = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]", mr = new RegExp(Xr, "g"), Mt = new RegExp(Er, "g"), Zs = new RegExp(i("[^]", ur, "[\\.]", '[\\"]', Kr), "g"), Zr = new RegExp(i("[^]", Xr, hi), "g"), Jr = Zr;
|
|
5880
5880
|
function br(W) {
|
|
5881
5881
|
var Z = q(W);
|
|
5882
5882
|
return Z.match(mr) ? Z : W;
|
|
@@ -5925,7 +5925,7 @@ var gh = {}, a1 = { exports: {} };
|
|
|
5925
5925
|
var J = W, oe = o(W.to);
|
|
5926
5926
|
if (oe) {
|
|
5927
5927
|
for (var le = 0, $e = oe.length; le < $e; ++le) {
|
|
5928
|
-
var Ie = String(oe[le]), rt = Ie.lastIndexOf("@"), wt = Ie.slice(0, rt).replace(Mt, br).replace(Mt, n).replace(
|
|
5928
|
+
var Ie = String(oe[le]), rt = Ie.lastIndexOf("@"), wt = Ie.slice(0, rt).replace(Mt, br).replace(Mt, n).replace(Zs, H), lt = Ie.slice(rt + 1);
|
|
5929
5929
|
try {
|
|
5930
5930
|
lt = Z.iri ? j.toUnicode(lt) : j.toASCII(It(lt, Z).toLowerCase());
|
|
5931
5931
|
} catch (Ge) {
|
|
@@ -6443,10 +6443,10 @@ const km = /* @__PURE__ */ Pe({
|
|
|
6443
6443
|
__proto__: null,
|
|
6444
6444
|
default: Pm
|
|
6445
6445
|
}, [bh]), Em = /* @__PURE__ */ ke(km);
|
|
6446
|
-
var
|
|
6447
|
-
Object.defineProperty(
|
|
6448
|
-
var E4 =
|
|
6449
|
-
const Am = dh, Tf = oi, Cr = Qe,
|
|
6446
|
+
var $s = {};
|
|
6447
|
+
Object.defineProperty($s, "__esModule", { value: !0 });
|
|
6448
|
+
var E4 = $s.callRef = M4 = $s.getValidate = void 0;
|
|
6449
|
+
const Am = dh, Tf = oi, Cr = Qe, ia = Hi, Cf = ph, Ro = ft, Mm = {
|
|
6450
6450
|
keyword: "$ref",
|
|
6451
6451
|
schemaType: "string",
|
|
6452
6452
|
code(r) {
|
|
@@ -6485,9 +6485,9 @@ function A4(r, e) {
|
|
|
6485
6485
|
const { gen: t } = r;
|
|
6486
6486
|
return e.validate ? t.scopeValue("validate", { ref: e.validate }) : (0, Cr._)`${t.scopeValue("wrapper", { ref: e })}.validate`;
|
|
6487
6487
|
}
|
|
6488
|
-
var M4 =
|
|
6488
|
+
var M4 = $s.getValidate = A4;
|
|
6489
6489
|
function il(r, e, t, i) {
|
|
6490
|
-
const { gen: s, it: a } = r, { allErrors: n, schemaEnv: o, opts: l } = a, h = l.passContext ?
|
|
6490
|
+
const { gen: s, it: a } = r, { allErrors: n, schemaEnv: o, opts: l } = a, h = l.passContext ? ia.default.this : Cr.nil;
|
|
6491
6491
|
i ? u() : d();
|
|
6492
6492
|
function u() {
|
|
6493
6493
|
if (!o.$async)
|
|
@@ -6504,7 +6504,7 @@ function il(r, e, t, i) {
|
|
|
6504
6504
|
}
|
|
6505
6505
|
function c(p) {
|
|
6506
6506
|
const g = (0, Cr._)`${p}.errors`;
|
|
6507
|
-
s.assign(
|
|
6507
|
+
s.assign(ia.default.vErrors, (0, Cr._)`${ia.default.vErrors} === null ? ${g} : ${ia.default.vErrors}.concat(${g})`), s.assign(ia.default.errors, (0, Cr._)`${ia.default.vErrors}.length`);
|
|
6508
6508
|
}
|
|
6509
6509
|
function f(p) {
|
|
6510
6510
|
var g;
|
|
@@ -6527,8 +6527,8 @@ function il(r, e, t, i) {
|
|
|
6527
6527
|
}
|
|
6528
6528
|
}
|
|
6529
6529
|
}
|
|
6530
|
-
E4 =
|
|
6531
|
-
var Rm =
|
|
6530
|
+
E4 = $s.callRef = il;
|
|
6531
|
+
var Rm = $s.default = Mm;
|
|
6532
6532
|
const Im = /* @__PURE__ */ Pe({
|
|
6533
6533
|
__proto__: null,
|
|
6534
6534
|
get callRef() {
|
|
@@ -6538,7 +6538,7 @@ const Im = /* @__PURE__ */ Pe({
|
|
|
6538
6538
|
get getValidate() {
|
|
6539
6539
|
return M4;
|
|
6540
6540
|
}
|
|
6541
|
-
}, [
|
|
6541
|
+
}, [$s]), Om = /* @__PURE__ */ ke(Im);
|
|
6542
6542
|
Object.defineProperty(mh, "__esModule", { value: !0 });
|
|
6543
6543
|
const $m = Em, Dm = Om, Nm = [
|
|
6544
6544
|
"$schema",
|
|
@@ -6618,12 +6618,12 @@ const Jm = /* @__PURE__ */ Pe({
|
|
|
6618
6618
|
default: Zm
|
|
6619
6619
|
}, [wh]), Qm = /* @__PURE__ */ ke(Jm);
|
|
6620
6620
|
Object.defineProperty(Ch, "__esModule", { value: !0 });
|
|
6621
|
-
const
|
|
6621
|
+
const Ss = Qe, xm = ft, eb = Qm, tb = {
|
|
6622
6622
|
message({ keyword: r, schemaCode: e }) {
|
|
6623
6623
|
const t = r === "maxLength" ? "more" : "fewer";
|
|
6624
|
-
return (0,
|
|
6624
|
+
return (0, Ss.str)`must NOT have ${t} than ${e} characters`;
|
|
6625
6625
|
},
|
|
6626
|
-
params: ({ schemaCode: r }) => (0,
|
|
6626
|
+
params: ({ schemaCode: r }) => (0, Ss._)`{limit: ${r}}`
|
|
6627
6627
|
}, rb = {
|
|
6628
6628
|
keyword: ["maxLength", "minLength"],
|
|
6629
6629
|
type: "string",
|
|
@@ -6631,8 +6631,8 @@ const zs = Qe, xm = ft, eb = Qm, tb = {
|
|
|
6631
6631
|
$data: !0,
|
|
6632
6632
|
error: tb,
|
|
6633
6633
|
code(r) {
|
|
6634
|
-
const { keyword: e, data: t, schemaCode: i, it: s } = r, a = e === "maxLength" ?
|
|
6635
|
-
r.fail$data((0,
|
|
6634
|
+
const { keyword: e, data: t, schemaCode: i, it: s } = r, a = e === "maxLength" ? Ss.operators.GT : Ss.operators.LT, n = s.opts.unicode === !1 ? (0, Ss._)`${t}.length` : (0, Ss._)`${(0, xm.useFunc)(r.gen, eb.default)}(${t})`;
|
|
6635
|
+
r.fail$data((0, Ss._)`${n} ${a} ${i}`);
|
|
6636
6636
|
}
|
|
6637
6637
|
};
|
|
6638
6638
|
var ib = Ch.default = rb;
|
|
@@ -6881,42 +6881,42 @@ const Kb = /* @__PURE__ */ Pe({
|
|
|
6881
6881
|
default: Xb
|
|
6882
6882
|
}, [Ih]), Zb = /* @__PURE__ */ ke(Kb);
|
|
6883
6883
|
Object.defineProperty(yh, "__esModule", { value: !0 });
|
|
6884
|
-
const Jb = Hm, Qb = Km, xb = ab,
|
|
6884
|
+
const Jb = Hm, Qb = Km, xb = ab, e9 = fb, t9 = vb, r9 = Cb, i9 = kb, s9 = Nb, a9 = Vb, n9 = Zb, o9 = [
|
|
6885
6885
|
// number
|
|
6886
6886
|
Jb.default,
|
|
6887
6887
|
Qb.default,
|
|
6888
6888
|
// string
|
|
6889
6889
|
xb.default,
|
|
6890
|
-
|
|
6890
|
+
e9.default,
|
|
6891
6891
|
// object
|
|
6892
|
-
|
|
6893
|
-
|
|
6892
|
+
t9.default,
|
|
6893
|
+
r9.default,
|
|
6894
6894
|
// array
|
|
6895
|
-
|
|
6896
|
-
|
|
6895
|
+
i9.default,
|
|
6896
|
+
s9.default,
|
|
6897
6897
|
// any
|
|
6898
6898
|
{ keyword: "type", schemaType: ["string", "array"] },
|
|
6899
6899
|
{ keyword: "nullable", schemaType: "boolean" },
|
|
6900
|
-
|
|
6901
|
-
|
|
6900
|
+
a9.default,
|
|
6901
|
+
n9.default
|
|
6902
6902
|
];
|
|
6903
|
-
var
|
|
6904
|
-
const
|
|
6903
|
+
var l9 = yh.default = o9;
|
|
6904
|
+
const h9 = /* @__PURE__ */ Pe({
|
|
6905
6905
|
__proto__: null,
|
|
6906
|
-
default:
|
|
6907
|
-
}, [yh]),
|
|
6906
|
+
default: l9
|
|
6907
|
+
}, [yh]), u9 = /* @__PURE__ */ ke(h9);
|
|
6908
6908
|
var Oh = {}, mo = {};
|
|
6909
6909
|
Object.defineProperty(mo, "__esModule", { value: !0 });
|
|
6910
6910
|
var O4 = mo.validateAdditionalItems = void 0;
|
|
6911
|
-
const
|
|
6912
|
-
message: ({ params: { len: r } }) => (0,
|
|
6913
|
-
params: ({ params: { len: r } }) => (0,
|
|
6914
|
-
},
|
|
6911
|
+
const zs = Qe, o1 = ft, f9 = {
|
|
6912
|
+
message: ({ params: { len: r } }) => (0, zs.str)`must NOT have more than ${r} items`,
|
|
6913
|
+
params: ({ params: { len: r } }) => (0, zs._)`{limit: ${r}}`
|
|
6914
|
+
}, d9 = {
|
|
6915
6915
|
keyword: "additionalItems",
|
|
6916
6916
|
type: "array",
|
|
6917
6917
|
schemaType: ["boolean", "object"],
|
|
6918
6918
|
before: "uniqueItems",
|
|
6919
|
-
error:
|
|
6919
|
+
error: f9,
|
|
6920
6920
|
code(r) {
|
|
6921
6921
|
const { parentSchema: e, it: t } = r, { items: i } = e;
|
|
6922
6922
|
if (!Array.isArray(i)) {
|
|
@@ -6929,32 +6929,32 @@ const Ps = Qe, o1 = ft, fy = {
|
|
|
6929
6929
|
function $4(r, e) {
|
|
6930
6930
|
const { gen: t, schema: i, data: s, keyword: a, it: n } = r;
|
|
6931
6931
|
n.items = !0;
|
|
6932
|
-
const o = t.const("len", (0,
|
|
6932
|
+
const o = t.const("len", (0, zs._)`${s}.length`);
|
|
6933
6933
|
if (i === !1)
|
|
6934
|
-
r.setParams({ len: e.length }), r.pass((0,
|
|
6934
|
+
r.setParams({ len: e.length }), r.pass((0, zs._)`${o} <= ${e.length}`);
|
|
6935
6935
|
else if (typeof i == "object" && !(0, o1.alwaysValidSchema)(n, i)) {
|
|
6936
|
-
const h = t.var("valid", (0,
|
|
6937
|
-
t.if((0,
|
|
6936
|
+
const h = t.var("valid", (0, zs._)`${o} <= ${e.length}`);
|
|
6937
|
+
t.if((0, zs.not)(h), () => l(h)), r.ok(h);
|
|
6938
6938
|
}
|
|
6939
6939
|
function l(h) {
|
|
6940
6940
|
t.forRange("i", e.length, o, (u) => {
|
|
6941
|
-
r.subschema({ keyword: a, dataProp: u, dataPropType: o1.Type.Num }, h), n.allErrors || t.if((0,
|
|
6941
|
+
r.subschema({ keyword: a, dataProp: u, dataPropType: o1.Type.Num }, h), n.allErrors || t.if((0, zs.not)(h), () => t.break());
|
|
6942
6942
|
});
|
|
6943
6943
|
}
|
|
6944
6944
|
}
|
|
6945
6945
|
O4 = mo.validateAdditionalItems = $4;
|
|
6946
|
-
var
|
|
6947
|
-
const
|
|
6946
|
+
var c9 = mo.default = d9;
|
|
6947
|
+
const p9 = /* @__PURE__ */ Pe({
|
|
6948
6948
|
__proto__: null,
|
|
6949
|
-
default:
|
|
6949
|
+
default: c9,
|
|
6950
6950
|
get validateAdditionalItems() {
|
|
6951
6951
|
return O4;
|
|
6952
6952
|
}
|
|
6953
|
-
}, [mo]), D4 = /* @__PURE__ */ ke(
|
|
6953
|
+
}, [mo]), D4 = /* @__PURE__ */ ke(p9);
|
|
6954
6954
|
var $h = {}, bo = {};
|
|
6955
6955
|
Object.defineProperty(bo, "__esModule", { value: !0 });
|
|
6956
6956
|
var N4 = bo.validateTuple = void 0;
|
|
6957
|
-
const wf = Qe, sl = ft,
|
|
6957
|
+
const wf = Qe, sl = ft, g9 = oi, v9 = {
|
|
6958
6958
|
keyword: "items",
|
|
6959
6959
|
type: "array",
|
|
6960
6960
|
schemaType: ["object", "array", "boolean"],
|
|
@@ -6963,7 +6963,7 @@ const wf = Qe, sl = ft, gy = oi, vy = {
|
|
|
6963
6963
|
const { schema: e, it: t } = r;
|
|
6964
6964
|
if (Array.isArray(e))
|
|
6965
6965
|
return L4(r, "additionalItems", e);
|
|
6966
|
-
t.items = !0, !(0, sl.alwaysValidSchema)(t, e) && r.ok((0,
|
|
6966
|
+
t.items = !0, !(0, sl.alwaysValidSchema)(t, e) && r.ok((0, g9.validateArray)(r));
|
|
6967
6967
|
}
|
|
6968
6968
|
};
|
|
6969
6969
|
function L4(r, e, t = r.schema) {
|
|
@@ -6986,60 +6986,60 @@ function L4(r, e, t = r.schema) {
|
|
|
6986
6986
|
}
|
|
6987
6987
|
}
|
|
6988
6988
|
N4 = bo.validateTuple = L4;
|
|
6989
|
-
var
|
|
6990
|
-
const
|
|
6989
|
+
var m9 = bo.default = v9;
|
|
6990
|
+
const b9 = /* @__PURE__ */ Pe({
|
|
6991
6991
|
__proto__: null,
|
|
6992
|
-
default:
|
|
6992
|
+
default: m9,
|
|
6993
6993
|
get validateTuple() {
|
|
6994
6994
|
return N4;
|
|
6995
6995
|
}
|
|
6996
|
-
}, [bo]), F4 = /* @__PURE__ */ ke(
|
|
6996
|
+
}, [bo]), F4 = /* @__PURE__ */ ke(b9);
|
|
6997
6997
|
Object.defineProperty($h, "__esModule", { value: !0 });
|
|
6998
|
-
const
|
|
6998
|
+
const y9 = F4, _9 = {
|
|
6999
6999
|
keyword: "prefixItems",
|
|
7000
7000
|
type: "array",
|
|
7001
7001
|
schemaType: ["array"],
|
|
7002
7002
|
before: "uniqueItems",
|
|
7003
|
-
code: (r) => (0,
|
|
7003
|
+
code: (r) => (0, y9.validateTuple)(r, "items")
|
|
7004
7004
|
};
|
|
7005
|
-
var
|
|
7006
|
-
const
|
|
7005
|
+
var T9 = $h.default = _9;
|
|
7006
|
+
const C9 = /* @__PURE__ */ Pe({
|
|
7007
7007
|
__proto__: null,
|
|
7008
|
-
default:
|
|
7009
|
-
}, [$h]),
|
|
7008
|
+
default: T9
|
|
7009
|
+
}, [$h]), w9 = /* @__PURE__ */ ke(C9);
|
|
7010
7010
|
var Dh = {};
|
|
7011
7011
|
Object.defineProperty(Dh, "__esModule", { value: !0 });
|
|
7012
|
-
const Sf = Qe,
|
|
7012
|
+
const Sf = Qe, S9 = ft, z9 = oi, P9 = D4, k9 = {
|
|
7013
7013
|
message: ({ params: { len: r } }) => (0, Sf.str)`must NOT have more than ${r} items`,
|
|
7014
7014
|
params: ({ params: { len: r } }) => (0, Sf._)`{limit: ${r}}`
|
|
7015
|
-
},
|
|
7015
|
+
}, E9 = {
|
|
7016
7016
|
keyword: "items",
|
|
7017
7017
|
type: "array",
|
|
7018
7018
|
schemaType: ["object", "boolean"],
|
|
7019
7019
|
before: "uniqueItems",
|
|
7020
|
-
error:
|
|
7020
|
+
error: k9,
|
|
7021
7021
|
code(r) {
|
|
7022
7022
|
const { schema: e, parentSchema: t, it: i } = r, { prefixItems: s } = t;
|
|
7023
|
-
i.items = !0, !(0,
|
|
7023
|
+
i.items = !0, !(0, S9.alwaysValidSchema)(i, e) && (s ? (0, P9.validateAdditionalItems)(r, s) : r.ok((0, z9.validateArray)(r)));
|
|
7024
7024
|
}
|
|
7025
7025
|
};
|
|
7026
|
-
var
|
|
7027
|
-
const
|
|
7026
|
+
var A9 = Dh.default = E9;
|
|
7027
|
+
const M9 = /* @__PURE__ */ Pe({
|
|
7028
7028
|
__proto__: null,
|
|
7029
|
-
default:
|
|
7030
|
-
}, [Dh]),
|
|
7029
|
+
default: A9
|
|
7030
|
+
}, [Dh]), R9 = /* @__PURE__ */ ke(M9);
|
|
7031
7031
|
var Nh = {};
|
|
7032
7032
|
Object.defineProperty(Nh, "__esModule", { value: !0 });
|
|
7033
|
-
const Vr = Qe, Io = ft,
|
|
7033
|
+
const Vr = Qe, Io = ft, I9 = {
|
|
7034
7034
|
message: ({ params: { min: r, max: e } }) => e === void 0 ? (0, Vr.str)`must contain at least ${r} valid item(s)` : (0, Vr.str)`must contain at least ${r} and no more than ${e} valid item(s)`,
|
|
7035
7035
|
params: ({ params: { min: r, max: e } }) => e === void 0 ? (0, Vr._)`{minContains: ${r}}` : (0, Vr._)`{minContains: ${r}, maxContains: ${e}}`
|
|
7036
|
-
},
|
|
7036
|
+
}, O9 = {
|
|
7037
7037
|
keyword: "contains",
|
|
7038
7038
|
type: "array",
|
|
7039
7039
|
schemaType: ["object", "boolean"],
|
|
7040
7040
|
before: "uniqueItems",
|
|
7041
7041
|
trackErrors: !0,
|
|
7042
|
-
error:
|
|
7042
|
+
error: I9,
|
|
7043
7043
|
code(r) {
|
|
7044
7044
|
const { gen: e, schema: t, parentSchema: i, data: s, it: a } = r;
|
|
7045
7045
|
let n, o;
|
|
@@ -7081,11 +7081,11 @@ const Vr = Qe, Io = ft, Iy = {
|
|
|
7081
7081
|
}
|
|
7082
7082
|
}
|
|
7083
7083
|
};
|
|
7084
|
-
var $
|
|
7085
|
-
const
|
|
7084
|
+
var $9 = Nh.default = O9;
|
|
7085
|
+
const D9 = /* @__PURE__ */ Pe({
|
|
7086
7086
|
__proto__: null,
|
|
7087
|
-
default: $
|
|
7088
|
-
}, [Nh]),
|
|
7087
|
+
default: $9
|
|
7088
|
+
}, [Nh]), N9 = /* @__PURE__ */ ke(D9);
|
|
7089
7089
|
var Lh = {};
|
|
7090
7090
|
(function(r) {
|
|
7091
7091
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.validateSchemaDeps = r.validatePropertyDeps = r.error = void 0;
|
|
@@ -7157,23 +7157,23 @@ var Lh = {};
|
|
|
7157
7157
|
}
|
|
7158
7158
|
r.validateSchemaDeps = o, r.default = s;
|
|
7159
7159
|
})(Lh);
|
|
7160
|
-
const
|
|
7160
|
+
const L9 = /* @__PURE__ */ Sr(Lh), F9 = /* @__PURE__ */ Pe({
|
|
7161
7161
|
__proto__: null,
|
|
7162
|
-
default:
|
|
7163
|
-
}, [Lh]),
|
|
7162
|
+
default: L9
|
|
7163
|
+
}, [Lh]), U9 = /* @__PURE__ */ ke(F9);
|
|
7164
7164
|
var Fh = {};
|
|
7165
7165
|
Object.defineProperty(Fh, "__esModule", { value: !0 });
|
|
7166
|
-
const U4 = Qe,
|
|
7166
|
+
const U4 = Qe, G9 = ft, j9 = {
|
|
7167
7167
|
message: "property name must be valid",
|
|
7168
7168
|
params: ({ params: r }) => (0, U4._)`{propertyName: ${r.propertyName}}`
|
|
7169
|
-
},
|
|
7169
|
+
}, B9 = {
|
|
7170
7170
|
keyword: "propertyNames",
|
|
7171
7171
|
type: "object",
|
|
7172
7172
|
schemaType: ["object", "boolean"],
|
|
7173
|
-
error:
|
|
7173
|
+
error: j9,
|
|
7174
7174
|
code(r) {
|
|
7175
7175
|
const { gen: e, schema: t, data: i, it: s } = r;
|
|
7176
|
-
if ((0,
|
|
7176
|
+
if ((0, G9.alwaysValidSchema)(s, t))
|
|
7177
7177
|
return;
|
|
7178
7178
|
const a = e.name("valid");
|
|
7179
7179
|
e.forIn("key", i, (n) => {
|
|
@@ -7189,23 +7189,23 @@ const U4 = Qe, Gy = ft, jy = {
|
|
|
7189
7189
|
}), r.ok(a);
|
|
7190
7190
|
}
|
|
7191
7191
|
};
|
|
7192
|
-
var
|
|
7193
|
-
const
|
|
7192
|
+
var V9 = Fh.default = B9;
|
|
7193
|
+
const H9 = /* @__PURE__ */ Pe({
|
|
7194
7194
|
__proto__: null,
|
|
7195
|
-
default:
|
|
7196
|
-
}, [Fh]),
|
|
7195
|
+
default: V9
|
|
7196
|
+
}, [Fh]), W9 = /* @__PURE__ */ ke(H9);
|
|
7197
7197
|
var Uh = {};
|
|
7198
7198
|
Object.defineProperty(Uh, "__esModule", { value: !0 });
|
|
7199
|
-
const Oo = oi, ri = Qe,
|
|
7199
|
+
const Oo = oi, ri = Qe, q9 = Hi, $o = ft, Y9 = {
|
|
7200
7200
|
message: "must NOT have additional properties",
|
|
7201
7201
|
params: ({ params: r }) => (0, ri._)`{additionalProperty: ${r.additionalProperty}}`
|
|
7202
|
-
},
|
|
7202
|
+
}, X9 = {
|
|
7203
7203
|
keyword: "additionalProperties",
|
|
7204
7204
|
type: ["object"],
|
|
7205
7205
|
schemaType: ["boolean", "object"],
|
|
7206
7206
|
allowUndefined: !0,
|
|
7207
7207
|
trackErrors: !0,
|
|
7208
|
-
error:
|
|
7208
|
+
error: Y9,
|
|
7209
7209
|
code(r) {
|
|
7210
7210
|
const { gen: e, schema: t, parentSchema: i, data: s, errsCount: a, it: n } = r;
|
|
7211
7211
|
if (!a)
|
|
@@ -7214,7 +7214,7 @@ const Oo = oi, ri = Qe, qy = Hi, $o = ft, Yy = {
|
|
|
7214
7214
|
if (n.props = !0, l.removeAdditional !== "all" && (0, $o.alwaysValidSchema)(n, t))
|
|
7215
7215
|
return;
|
|
7216
7216
|
const h = (0, Oo.allSchemaProperties)(i.properties), u = (0, Oo.allSchemaProperties)(i.patternProperties);
|
|
7217
|
-
d(), r.ok((0, ri._)`${a} === ${
|
|
7217
|
+
d(), r.ok((0, ri._)`${a} === ${q9.default.errors}`);
|
|
7218
7218
|
function d() {
|
|
7219
7219
|
e.forIn("key", s, (y) => {
|
|
7220
7220
|
!h.length && !u.length ? p(y) : e.if(c(y), () => p(y));
|
|
@@ -7262,20 +7262,20 @@ const Oo = oi, ri = Qe, qy = Hi, $o = ft, Yy = {
|
|
|
7262
7262
|
}
|
|
7263
7263
|
}
|
|
7264
7264
|
};
|
|
7265
|
-
var
|
|
7266
|
-
const
|
|
7265
|
+
var K9 = Uh.default = X9;
|
|
7266
|
+
const Z9 = /* @__PURE__ */ Pe({
|
|
7267
7267
|
__proto__: null,
|
|
7268
|
-
default:
|
|
7269
|
-
}, [Uh]), G4 = /* @__PURE__ */ ke(
|
|
7268
|
+
default: K9
|
|
7269
|
+
}, [Uh]), G4 = /* @__PURE__ */ ke(Z9);
|
|
7270
7270
|
var Gh = {};
|
|
7271
7271
|
Object.defineProperty(Gh, "__esModule", { value: !0 });
|
|
7272
|
-
const
|
|
7272
|
+
const J9 = vo, zf = oi, p0 = ft, Pf = G4, Q9 = {
|
|
7273
7273
|
keyword: "properties",
|
|
7274
7274
|
type: "object",
|
|
7275
7275
|
schemaType: "object",
|
|
7276
7276
|
code(r) {
|
|
7277
7277
|
const { gen: e, schema: t, parentSchema: i, data: s, it: a } = r;
|
|
7278
|
-
a.opts.removeAdditional === "all" && i.additionalProperties === void 0 && Pf.default.code(new
|
|
7278
|
+
a.opts.removeAdditional === "all" && i.additionalProperties === void 0 && Pf.default.code(new J9.KeywordCxt(a, Pf.default, "additionalProperties"));
|
|
7279
7279
|
const n = (0, zf.allSchemaProperties)(t);
|
|
7280
7280
|
for (const d of n)
|
|
7281
7281
|
a.definedProperties.add(d);
|
|
@@ -7298,14 +7298,14 @@ const Jy = vo, zf = oi, p0 = ft, Pf = G4, Qy = {
|
|
|
7298
7298
|
}
|
|
7299
7299
|
}
|
|
7300
7300
|
};
|
|
7301
|
-
var
|
|
7302
|
-
const
|
|
7301
|
+
var x9 = Gh.default = Q9;
|
|
7302
|
+
const ey = /* @__PURE__ */ Pe({
|
|
7303
7303
|
__proto__: null,
|
|
7304
|
-
default:
|
|
7305
|
-
}, [Gh]),
|
|
7304
|
+
default: x9
|
|
7305
|
+
}, [Gh]), ty = /* @__PURE__ */ ke(ey);
|
|
7306
7306
|
var jh = {};
|
|
7307
7307
|
Object.defineProperty(jh, "__esModule", { value: !0 });
|
|
7308
|
-
const kf = oi, Do = Qe, Ef = ft, Af = ft,
|
|
7308
|
+
const kf = oi, Do = Qe, Ef = ft, Af = ft, ry = {
|
|
7309
7309
|
keyword: "patternProperties",
|
|
7310
7310
|
type: "object",
|
|
7311
7311
|
schemaType: "object",
|
|
@@ -7340,20 +7340,20 @@ const kf = oi, Do = Qe, Ef = ft, Af = ft, r9 = {
|
|
|
7340
7340
|
}
|
|
7341
7341
|
}
|
|
7342
7342
|
};
|
|
7343
|
-
var
|
|
7344
|
-
const
|
|
7343
|
+
var iy = jh.default = ry;
|
|
7344
|
+
const sy = /* @__PURE__ */ Pe({
|
|
7345
7345
|
__proto__: null,
|
|
7346
|
-
default:
|
|
7347
|
-
}, [jh]),
|
|
7346
|
+
default: iy
|
|
7347
|
+
}, [jh]), ay = /* @__PURE__ */ ke(sy);
|
|
7348
7348
|
var Bh = {};
|
|
7349
7349
|
Object.defineProperty(Bh, "__esModule", { value: !0 });
|
|
7350
|
-
const
|
|
7350
|
+
const ny = ft, oy = {
|
|
7351
7351
|
keyword: "not",
|
|
7352
7352
|
schemaType: ["object", "boolean"],
|
|
7353
7353
|
trackErrors: !0,
|
|
7354
7354
|
code(r) {
|
|
7355
7355
|
const { gen: e, schema: t, it: i } = r;
|
|
7356
|
-
if ((0,
|
|
7356
|
+
if ((0, ny.alwaysValidSchema)(i, t)) {
|
|
7357
7357
|
r.fail();
|
|
7358
7358
|
return;
|
|
7359
7359
|
}
|
|
@@ -7367,35 +7367,35 @@ const n9 = ft, o9 = {
|
|
|
7367
7367
|
},
|
|
7368
7368
|
error: { message: "must NOT be valid" }
|
|
7369
7369
|
};
|
|
7370
|
-
var
|
|
7371
|
-
const
|
|
7370
|
+
var ly = Bh.default = oy;
|
|
7371
|
+
const hy = /* @__PURE__ */ Pe({
|
|
7372
7372
|
__proto__: null,
|
|
7373
|
-
default:
|
|
7374
|
-
}, [Bh]),
|
|
7373
|
+
default: ly
|
|
7374
|
+
}, [Bh]), uy = /* @__PURE__ */ ke(hy);
|
|
7375
7375
|
var Vh = {};
|
|
7376
7376
|
Object.defineProperty(Vh, "__esModule", { value: !0 });
|
|
7377
|
-
const
|
|
7377
|
+
const fy = oi, dy = {
|
|
7378
7378
|
keyword: "anyOf",
|
|
7379
7379
|
schemaType: "array",
|
|
7380
7380
|
trackErrors: !0,
|
|
7381
|
-
code:
|
|
7381
|
+
code: fy.validateUnion,
|
|
7382
7382
|
error: { message: "must match a schema in anyOf" }
|
|
7383
7383
|
};
|
|
7384
|
-
var
|
|
7385
|
-
const
|
|
7384
|
+
var cy = Vh.default = dy;
|
|
7385
|
+
const py = /* @__PURE__ */ Pe({
|
|
7386
7386
|
__proto__: null,
|
|
7387
|
-
default:
|
|
7388
|
-
}, [Vh]),
|
|
7387
|
+
default: cy
|
|
7388
|
+
}, [Vh]), gy = /* @__PURE__ */ ke(py);
|
|
7389
7389
|
var Hh = {};
|
|
7390
7390
|
Object.defineProperty(Hh, "__esModule", { value: !0 });
|
|
7391
|
-
const al = Qe,
|
|
7391
|
+
const al = Qe, vy = ft, my = {
|
|
7392
7392
|
message: "must match exactly one schema in oneOf",
|
|
7393
7393
|
params: ({ params: r }) => (0, al._)`{passingSchemas: ${r.passing}}`
|
|
7394
|
-
},
|
|
7394
|
+
}, by = {
|
|
7395
7395
|
keyword: "oneOf",
|
|
7396
7396
|
schemaType: "array",
|
|
7397
7397
|
trackErrors: !0,
|
|
7398
|
-
error:
|
|
7398
|
+
error: my,
|
|
7399
7399
|
code(r) {
|
|
7400
7400
|
const { gen: e, schema: t, parentSchema: i, it: s } = r;
|
|
7401
7401
|
if (!Array.isArray(t))
|
|
@@ -7407,7 +7407,7 @@ const al = Qe, v9 = ft, m9 = {
|
|
|
7407
7407
|
function h() {
|
|
7408
7408
|
a.forEach((u, d) => {
|
|
7409
7409
|
let c;
|
|
7410
|
-
(0,
|
|
7410
|
+
(0, vy.alwaysValidSchema)(s, u) ? e.var(l, !0) : c = r.subschema({
|
|
7411
7411
|
keyword: "oneOf",
|
|
7412
7412
|
schemaProp: d,
|
|
7413
7413
|
compositeRule: !0
|
|
@@ -7418,14 +7418,14 @@ const al = Qe, v9 = ft, m9 = {
|
|
|
7418
7418
|
}
|
|
7419
7419
|
}
|
|
7420
7420
|
};
|
|
7421
|
-
var
|
|
7422
|
-
const
|
|
7421
|
+
var yy = Hh.default = by;
|
|
7422
|
+
const _y = /* @__PURE__ */ Pe({
|
|
7423
7423
|
__proto__: null,
|
|
7424
|
-
default:
|
|
7425
|
-
}, [Hh]),
|
|
7424
|
+
default: yy
|
|
7425
|
+
}, [Hh]), Ty = /* @__PURE__ */ ke(_y);
|
|
7426
7426
|
var Wh = {};
|
|
7427
7427
|
Object.defineProperty(Wh, "__esModule", { value: !0 });
|
|
7428
|
-
const
|
|
7428
|
+
const Cy = ft, wy = {
|
|
7429
7429
|
keyword: "allOf",
|
|
7430
7430
|
schemaType: "array",
|
|
7431
7431
|
code(r) {
|
|
@@ -7434,28 +7434,28 @@ const C9 = ft, w9 = {
|
|
|
7434
7434
|
throw new Error("ajv implementation error");
|
|
7435
7435
|
const s = e.name("valid");
|
|
7436
7436
|
t.forEach((a, n) => {
|
|
7437
|
-
if ((0,
|
|
7437
|
+
if ((0, Cy.alwaysValidSchema)(i, a))
|
|
7438
7438
|
return;
|
|
7439
7439
|
const o = r.subschema({ keyword: "allOf", schemaProp: n }, s);
|
|
7440
7440
|
r.ok(s), r.mergeEvaluated(o);
|
|
7441
7441
|
});
|
|
7442
7442
|
}
|
|
7443
7443
|
};
|
|
7444
|
-
var
|
|
7445
|
-
const
|
|
7444
|
+
var Sy = Wh.default = wy;
|
|
7445
|
+
const zy = /* @__PURE__ */ Pe({
|
|
7446
7446
|
__proto__: null,
|
|
7447
|
-
default:
|
|
7448
|
-
}, [Wh]),
|
|
7447
|
+
default: Sy
|
|
7448
|
+
}, [Wh]), Py = /* @__PURE__ */ ke(zy);
|
|
7449
7449
|
var qh = {};
|
|
7450
7450
|
Object.defineProperty(qh, "__esModule", { value: !0 });
|
|
7451
|
-
const vl = Qe, j4 = ft,
|
|
7451
|
+
const vl = Qe, j4 = ft, ky = {
|
|
7452
7452
|
message: ({ params: r }) => (0, vl.str)`must match "${r.ifClause}" schema`,
|
|
7453
7453
|
params: ({ params: r }) => (0, vl._)`{failingKeyword: ${r.ifClause}}`
|
|
7454
|
-
},
|
|
7454
|
+
}, Ey = {
|
|
7455
7455
|
keyword: "if",
|
|
7456
7456
|
schemaType: ["object", "boolean"],
|
|
7457
7457
|
trackErrors: !0,
|
|
7458
|
-
error:
|
|
7458
|
+
error: ky,
|
|
7459
7459
|
code(r) {
|
|
7460
7460
|
const { gen: e, parentSchema: t, it: i } = r;
|
|
7461
7461
|
t.then === void 0 && t.else === void 0 && (0, j4.checkStrictMode)(i, '"if" without "then" and "else" is ignored');
|
|
@@ -7490,46 +7490,46 @@ function Mf(r, e) {
|
|
|
7490
7490
|
const t = r.schema[e];
|
|
7491
7491
|
return t !== void 0 && !(0, j4.alwaysValidSchema)(r, t);
|
|
7492
7492
|
}
|
|
7493
|
-
var
|
|
7494
|
-
const
|
|
7493
|
+
var Ay = qh.default = Ey;
|
|
7494
|
+
const My = /* @__PURE__ */ Pe({
|
|
7495
7495
|
__proto__: null,
|
|
7496
|
-
default:
|
|
7497
|
-
}, [qh]),
|
|
7496
|
+
default: Ay
|
|
7497
|
+
}, [qh]), Ry = /* @__PURE__ */ ke(My);
|
|
7498
7498
|
var Yh = {};
|
|
7499
7499
|
Object.defineProperty(Yh, "__esModule", { value: !0 });
|
|
7500
|
-
const
|
|
7500
|
+
const Iy = ft, Oy = {
|
|
7501
7501
|
keyword: ["then", "else"],
|
|
7502
7502
|
schemaType: ["object", "boolean"],
|
|
7503
7503
|
code({ keyword: r, parentSchema: e, it: t }) {
|
|
7504
|
-
e.if === void 0 && (0,
|
|
7504
|
+
e.if === void 0 && (0, Iy.checkStrictMode)(t, `"${r}" without "if" is ignored`);
|
|
7505
7505
|
}
|
|
7506
7506
|
};
|
|
7507
|
-
var $
|
|
7508
|
-
const
|
|
7507
|
+
var $y = Yh.default = Oy;
|
|
7508
|
+
const Dy = /* @__PURE__ */ Pe({
|
|
7509
7509
|
__proto__: null,
|
|
7510
|
-
default: $
|
|
7511
|
-
}, [Yh]),
|
|
7510
|
+
default: $y
|
|
7511
|
+
}, [Yh]), Ny = /* @__PURE__ */ ke(Dy);
|
|
7512
7512
|
Object.defineProperty(Oh, "__esModule", { value: !0 });
|
|
7513
|
-
const
|
|
7514
|
-
function
|
|
7513
|
+
const Ly = D4, Fy = w9, Uy = F4, Gy = R9, jy = N9, By = U9, Vy = W9, Hy = G4, Wy = ty, qy = ay, Yy = uy, Xy = gy, Ky = Ty, Zy = Py, Jy = Ry, Qy = Ny;
|
|
7514
|
+
function xy(r = !1) {
|
|
7515
7515
|
const e = [
|
|
7516
7516
|
// any
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
|
|
7517
|
+
Yy.default,
|
|
7518
|
+
Xy.default,
|
|
7519
|
+
Ky.default,
|
|
7520
|
+
Zy.default,
|
|
7521
|
+
Jy.default,
|
|
7522
|
+
Qy.default,
|
|
7523
7523
|
// object
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7524
|
+
Vy.default,
|
|
7525
|
+
Hy.default,
|
|
7526
|
+
By.default,
|
|
7527
|
+
Wy.default,
|
|
7528
|
+
qy.default
|
|
7529
7529
|
];
|
|
7530
|
-
return r ? e.push(
|
|
7530
|
+
return r ? e.push(Fy.default, Gy.default) : e.push(Ly.default, Uy.default), e.push(jy.default), e;
|
|
7531
7531
|
}
|
|
7532
|
-
var e7 = Oh.default =
|
|
7532
|
+
var e7 = Oh.default = xy;
|
|
7533
7533
|
const t7 = /* @__PURE__ */ Pe({
|
|
7534
7534
|
__proto__: null,
|
|
7535
7535
|
default: e7
|
|
@@ -7611,9 +7611,9 @@ const f7 = /* @__PURE__ */ Pe({
|
|
|
7611
7611
|
__proto__: null,
|
|
7612
7612
|
default: u7
|
|
7613
7613
|
}, [Xh]), d7 = /* @__PURE__ */ ke(f7);
|
|
7614
|
-
var
|
|
7615
|
-
Object.defineProperty(
|
|
7616
|
-
var B4 =
|
|
7614
|
+
var Ds = {};
|
|
7615
|
+
Object.defineProperty(Ds, "__esModule", { value: !0 });
|
|
7616
|
+
var B4 = Ds.contentVocabulary = V4 = Ds.metadataVocabulary = void 0, V4 = Ds.metadataVocabulary = [
|
|
7617
7617
|
"title",
|
|
7618
7618
|
"description",
|
|
7619
7619
|
"default",
|
|
@@ -7622,7 +7622,7 @@ var B4 = Ns.contentVocabulary = V4 = Ns.metadataVocabulary = void 0, V4 = Ns.met
|
|
|
7622
7622
|
"writeOnly",
|
|
7623
7623
|
"examples"
|
|
7624
7624
|
];
|
|
7625
|
-
B4 =
|
|
7625
|
+
B4 = Ds.contentVocabulary = [
|
|
7626
7626
|
"contentMediaType",
|
|
7627
7627
|
"contentEncoding",
|
|
7628
7628
|
"contentSchema"
|
|
@@ -7632,13 +7632,13 @@ const c7 = /* @__PURE__ */ Pe({
|
|
|
7632
7632
|
get contentVocabulary() {
|
|
7633
7633
|
return B4;
|
|
7634
7634
|
},
|
|
7635
|
-
default:
|
|
7635
|
+
default: Ds,
|
|
7636
7636
|
get metadataVocabulary() {
|
|
7637
7637
|
return V4;
|
|
7638
7638
|
}
|
|
7639
|
-
}, [
|
|
7639
|
+
}, [Ds]), p7 = /* @__PURE__ */ ke(c7);
|
|
7640
7640
|
Object.defineProperty(vh, "__esModule", { value: !0 });
|
|
7641
|
-
const g7 = Um, v7 =
|
|
7641
|
+
const g7 = Um, v7 = u9, m7 = r7, b7 = d7, Rf = p7, y7 = [
|
|
7642
7642
|
g7.default,
|
|
7643
7643
|
v7.default,
|
|
7644
7644
|
(0, m7.default)(),
|
|
@@ -7662,9 +7662,9 @@ const w7 = /* @__PURE__ */ Sr(Jh), S7 = /* @__PURE__ */ Pe({
|
|
|
7662
7662
|
default: w7
|
|
7663
7663
|
}, [Jh]), z7 = /* @__PURE__ */ ke(S7);
|
|
7664
7664
|
Object.defineProperty(Zh, "__esModule", { value: !0 });
|
|
7665
|
-
const
|
|
7665
|
+
const ha = Qe, l1 = z7, If = ph, P7 = ft, k7 = {
|
|
7666
7666
|
message: ({ params: { discrError: r, tagName: e } }) => r === l1.DiscrError.Tag ? `tag "${e}" must be string` : `value of tag "${e}" must be in oneOf`,
|
|
7667
|
-
params: ({ params: { discrError: r, tag: e, tagName: t } }) => (0,
|
|
7667
|
+
params: ({ params: { discrError: r, tag: e, tagName: t } }) => (0, ha._)`{error: ${r}, tag: ${t}, tagValue: ${e}}`
|
|
7668
7668
|
}, E7 = {
|
|
7669
7669
|
keyword: "discriminator",
|
|
7670
7670
|
type: "object",
|
|
@@ -7681,18 +7681,18 @@ const ua = Qe, l1 = z7, If = ph, P7 = ft, k7 = {
|
|
|
7681
7681
|
throw new Error("discriminator: mapping is not supported");
|
|
7682
7682
|
if (!n)
|
|
7683
7683
|
throw new Error("discriminator: requires oneOf keyword");
|
|
7684
|
-
const l = e.let("valid", !1), h = e.const("tag", (0,
|
|
7685
|
-
e.if((0,
|
|
7684
|
+
const l = e.let("valid", !1), h = e.const("tag", (0, ha._)`${t}${(0, ha.getProperty)(o)}`);
|
|
7685
|
+
e.if((0, ha._)`typeof ${h} == "string"`, () => u(), () => r.error(!1, { discrError: l1.DiscrError.Tag, tag: h, tagName: o })), r.ok(l);
|
|
7686
7686
|
function u() {
|
|
7687
7687
|
const f = c();
|
|
7688
7688
|
e.if(!1);
|
|
7689
7689
|
for (const p in f)
|
|
7690
|
-
e.elseIf((0,
|
|
7690
|
+
e.elseIf((0, ha._)`${h} === ${p}`), e.assign(l, d(f[p]));
|
|
7691
7691
|
e.else(), r.error(!1, { discrError: l1.DiscrError.Mapping, tag: h, tagName: o }), e.endIf();
|
|
7692
7692
|
}
|
|
7693
7693
|
function d(f) {
|
|
7694
7694
|
const p = e.name("valid"), g = r.subschema({ keyword: "oneOf", schemaProp: f }, p);
|
|
7695
|
-
return r.mergeEvaluated(g,
|
|
7695
|
+
return r.mergeEvaluated(g, ha.Name), p;
|
|
7696
7696
|
}
|
|
7697
7697
|
function c() {
|
|
7698
7698
|
var f;
|
|
@@ -10223,9 +10223,9 @@ var ip = { exports: {} };
|
|
|
10223
10223
|
touchmove: H,
|
|
10224
10224
|
touchend: q,
|
|
10225
10225
|
touchcancel: Q
|
|
10226
|
-
},
|
|
10226
|
+
}, Zs = "touchstart", Zr = "touchstart touchmove touchend touchcancel";
|
|
10227
10227
|
function Jr() {
|
|
10228
|
-
this.evTarget =
|
|
10228
|
+
this.evTarget = Zs, this.evWin = Zr, this.started = !1, Ze.apply(this, arguments);
|
|
10229
10229
|
}
|
|
10230
10230
|
T(Jr, Ze, {
|
|
10231
10231
|
handler: function(C) {
|
|
@@ -10796,7 +10796,7 @@ var ip = { exports: {} };
|
|
|
10796
10796
|
}
|
|
10797
10797
|
});
|
|
10798
10798
|
function Ur(v, C) {
|
|
10799
|
-
return C = C || {}, C.recognizers = I(C.recognizers, Ur.defaults.preset), new
|
|
10799
|
+
return C = C || {}, C.recognizers = I(C.recognizers, Ur.defaults.preset), new bs(v, C);
|
|
10800
10800
|
}
|
|
10801
10801
|
Ur.VERSION = "2.0.7", Ur.defaults = {
|
|
10802
10802
|
/**
|
|
@@ -10894,14 +10894,14 @@ var ip = { exports: {} };
|
|
|
10894
10894
|
tapHighlightColor: "rgba(0,0,0,0)"
|
|
10895
10895
|
}
|
|
10896
10896
|
};
|
|
10897
|
-
var
|
|
10898
|
-
function
|
|
10897
|
+
var ms = 1, Yt = 2;
|
|
10898
|
+
function bs(v, C) {
|
|
10899
10899
|
this.options = g({}, Ur.defaults, C || {}), this.options.inputTarget = this.options.inputTarget || v, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = v, this.input = ut(this), this.touchAction = new De(this, this.options.touchAction), b(this, !0), f(this.options.recognizers, function(R) {
|
|
10900
10900
|
var L = this.add(new R[0](R[1]));
|
|
10901
10901
|
R[2] && L.recognizeWith(R[2]), R[3] && L.requireFailure(R[3]);
|
|
10902
10902
|
}, this);
|
|
10903
10903
|
}
|
|
10904
|
-
|
|
10904
|
+
bs.prototype = {
|
|
10905
10905
|
/**
|
|
10906
10906
|
* set options
|
|
10907
10907
|
* @param {Object} options
|
|
@@ -10917,7 +10917,7 @@ var ip = { exports: {} };
|
|
|
10917
10917
|
* @param {Boolean} [force]
|
|
10918
10918
|
*/
|
|
10919
10919
|
stop: function(v) {
|
|
10920
|
-
this.session.stopped = v ? Yt :
|
|
10920
|
+
this.session.stopped = v ? Yt : ms;
|
|
10921
10921
|
},
|
|
10922
10922
|
/**
|
|
10923
10923
|
* run the recognizers!
|
|
@@ -11061,7 +11061,7 @@ var ip = { exports: {} };
|
|
|
11061
11061
|
DIRECTION_HORIZONTAL: Ee,
|
|
11062
11062
|
DIRECTION_VERTICAL: Fe,
|
|
11063
11063
|
DIRECTION_ALL: Be,
|
|
11064
|
-
Manager:
|
|
11064
|
+
Manager: bs,
|
|
11065
11065
|
Input: Ze,
|
|
11066
11066
|
TouchAction: De,
|
|
11067
11067
|
TouchInput: Nr,
|
|
@@ -11181,11 +11181,14 @@ const Nf = [1, 0, 0, 1, 0, 0], Lf = [
|
|
|
11181
11181
|
];
|
|
11182
11182
|
class pr {
|
|
11183
11183
|
value;
|
|
11184
|
+
matrix3d;
|
|
11185
|
+
// 是否已转变过3d
|
|
11186
|
+
isEverTo3d = !1;
|
|
11184
11187
|
constructor(e = Nf) {
|
|
11185
|
-
this.value = Array.from(e);
|
|
11188
|
+
this.value = Array.from(e), this.matrix3d = this.toMatrix3D();
|
|
11186
11189
|
}
|
|
11187
11190
|
unit() {
|
|
11188
|
-
return this.value = Array.from(Nf), this;
|
|
11191
|
+
return this.value = Array.from(Nf), this.matrix3d = this.toMatrix3D(), this;
|
|
11189
11192
|
}
|
|
11190
11193
|
transformPoint(e, t, i = 0, s = 0) {
|
|
11191
11194
|
const a = e - i, n = t - s;
|
|
@@ -11202,7 +11205,7 @@ class pr {
|
|
|
11202
11205
|
// b d 0 ty
|
|
11203
11206
|
// 0 0 1 0
|
|
11204
11207
|
// 0 0 0 1
|
|
11205
|
-
toMatrix3D(e) {
|
|
11208
|
+
toMatrix3D(e = this.matrix3d) {
|
|
11206
11209
|
const t = [
|
|
11207
11210
|
this.value[0],
|
|
11208
11211
|
this.value[1],
|
|
@@ -11221,7 +11224,7 @@ class pr {
|
|
|
11221
11224
|
0,
|
|
11222
11225
|
1
|
|
11223
11226
|
];
|
|
11224
|
-
return e ? (e.value = t, e) : new
|
|
11227
|
+
return e ? (e.value = t, e) : new ca(t);
|
|
11225
11228
|
}
|
|
11226
11229
|
offset(e = 0, t = 0) {
|
|
11227
11230
|
return [this.value[4] - e, this.value[5] - t];
|
|
@@ -11246,7 +11249,7 @@ class pr {
|
|
|
11246
11249
|
*/
|
|
11247
11250
|
// 相对值
|
|
11248
11251
|
translate(e, t) {
|
|
11249
|
-
return this.multiply([1, 0, 0, 1, e, t]);
|
|
11252
|
+
return this.matrix3d.translate(e, t, 0), this.multiply([1, 0, 0, 1, e, t]);
|
|
11250
11253
|
}
|
|
11251
11254
|
// 绝对值
|
|
11252
11255
|
translateTo(e, t) {
|
|
@@ -11260,10 +11263,10 @@ class pr {
|
|
|
11260
11263
|
return this.translate(0, e);
|
|
11261
11264
|
}
|
|
11262
11265
|
translateZ(e) {
|
|
11263
|
-
return this.
|
|
11266
|
+
return this.isEverTo3d = !0, this.matrix3d.translate(0, 0, e);
|
|
11264
11267
|
}
|
|
11265
11268
|
translate3d(e, t, i) {
|
|
11266
|
-
return this.
|
|
11269
|
+
return this.isEverTo3d = !0, this.matrix3d.translate(e, t, i);
|
|
11267
11270
|
}
|
|
11268
11271
|
/**
|
|
11269
11272
|
(cos, -sin, 0)
|
|
@@ -11274,23 +11277,23 @@ class pr {
|
|
|
11274
11277
|
return this.multiply([a, n, -n, a, t, i]), this.translate(-t, -i), this;
|
|
11275
11278
|
}
|
|
11276
11279
|
rotateX(e) {
|
|
11277
|
-
return this.
|
|
11280
|
+
return this.isEverTo3d = !0, this.matrix3d.rotate("x", e);
|
|
11278
11281
|
}
|
|
11279
11282
|
rotateY(e) {
|
|
11280
|
-
return this.
|
|
11283
|
+
return this.isEverTo3d = !0, this.matrix3d.rotate("y", e);
|
|
11281
11284
|
}
|
|
11282
11285
|
rotateZ(e) {
|
|
11283
|
-
return this.
|
|
11286
|
+
return this.isEverTo3d = !0, this.matrix3d.rotate("z", e);
|
|
11284
11287
|
}
|
|
11285
11288
|
rotate3d(e, t, i) {
|
|
11286
|
-
return this.
|
|
11289
|
+
return this.isEverTo3d = !0, this.matrix3d.rotate("x", e).rotate("y", t).rotate("z", i);
|
|
11287
11290
|
}
|
|
11288
11291
|
/**
|
|
11289
11292
|
(sx, 0, 0)
|
|
11290
11293
|
(0, sy, 0)
|
|
11291
11294
|
*/
|
|
11292
11295
|
scale(e, t = e, i = 0, s = 0) {
|
|
11293
|
-
return this.translate(i, s), this.multiply([e, 0, 0, t, 0, 0]), this.translate(-i, -s), this;
|
|
11296
|
+
return this.matrix3d.scale(e, t, 1), this.translate(i, s), this.multiply([e, 0, 0, t, 0, 0]), this.translate(-i, -s), this;
|
|
11294
11297
|
}
|
|
11295
11298
|
scaleX(e) {
|
|
11296
11299
|
return this.scale(e, 1);
|
|
@@ -11299,10 +11302,10 @@ class pr {
|
|
|
11299
11302
|
return this.scale(1, e);
|
|
11300
11303
|
}
|
|
11301
11304
|
scaleZ(e) {
|
|
11302
|
-
return this.
|
|
11305
|
+
return this.isEverTo3d = !0, this.matrix3d.scale(1, 1, e);
|
|
11303
11306
|
}
|
|
11304
11307
|
scale3d(e, t, i) {
|
|
11305
|
-
return this.
|
|
11308
|
+
return this.isEverTo3d = !0, this.matrix3d.scale(e, t, i);
|
|
11306
11309
|
}
|
|
11307
11310
|
/**
|
|
11308
11311
|
(1, tx, 0)
|
|
@@ -11356,7 +11359,7 @@ class pr {
|
|
|
11356
11359
|
}
|
|
11357
11360
|
toTransformString() {
|
|
11358
11361
|
const e = this.split();
|
|
11359
|
-
return e.isSimple ? (e.scalex = +e.scalex.toFixed(4), e.scaley = +e.scaley.toFixed(4), e.rotate = +e.rotate.toFixed(4), (e.dx && e.dy ? "t" + [e.dx, e.dy] : "") + (e.scalex != 1 || e.scaley != 1 ? "s" + [e.scalex, e.scaley, 0, 0] : "") + (e.rotate ? "r" + [e.rotate, 0, 0] : "")) : "
|
|
11362
|
+
return e.isSimple ? (e.scalex = +e.scalex.toFixed(4), e.scaley = +e.scaley.toFixed(4), e.rotate = +e.rotate.toFixed(4), (e.dx && e.dy ? "t" + [e.dx, e.dy] : "") + (e.scalex != 1 || e.scaley != 1 ? "s" + [e.scalex, e.scaley, 0, 0] : "") + (e.rotate ? "r" + [e.rotate, 0, 0] : "")) : "matrix" + [
|
|
11360
11363
|
this.value[0],
|
|
11361
11364
|
this.value[1],
|
|
11362
11365
|
this.value[2],
|
|
@@ -11366,13 +11369,16 @@ class pr {
|
|
|
11366
11369
|
];
|
|
11367
11370
|
}
|
|
11368
11371
|
toString() {
|
|
11369
|
-
return `matrix(${this.value.map((e) => Rd(e, 6)).join(",")})`;
|
|
11372
|
+
return this.isEverTo3d ? this.toMatrix3DString() : `matrix(${this.value.map((e) => Rd(e, 6)).join(",")})`;
|
|
11373
|
+
}
|
|
11374
|
+
toMatrix3DString() {
|
|
11375
|
+
return this.matrix3d.toString();
|
|
11370
11376
|
}
|
|
11371
11377
|
toFilter() {
|
|
11372
11378
|
return "progid:DXImageTransform.Microsoft.Matrix(M11=" + this.value[0] + ", M12=" + this.value[2] + ", M21=" + this.value[1] + ", M22=" + this.value[3] + ", Dx=" + this.value[4] + ", Dy=" + this.value[5] + ", sizingmethod='auto expand')";
|
|
11373
11379
|
}
|
|
11374
11380
|
}
|
|
11375
|
-
class
|
|
11381
|
+
class ca {
|
|
11376
11382
|
value;
|
|
11377
11383
|
constructor(e = Lf) {
|
|
11378
11384
|
this.value = Array.from(e);
|
|
@@ -11440,12 +11446,12 @@ class as {
|
|
|
11440
11446
|
}
|
|
11441
11447
|
translate(e = 0, t = 0, i = 0) {
|
|
11442
11448
|
return this.multiply(
|
|
11443
|
-
new
|
|
11449
|
+
new ca([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, e, t, i, 1])
|
|
11444
11450
|
);
|
|
11445
11451
|
}
|
|
11446
11452
|
scale(e = 1, t = 1, i = 1) {
|
|
11447
11453
|
return this.multiply(
|
|
11448
|
-
new
|
|
11454
|
+
new ca([e, 0, 0, 0, 0, t, 0, 0, 0, 0, i, 0, 0, 0, 0, 1])
|
|
11449
11455
|
);
|
|
11450
11456
|
}
|
|
11451
11457
|
rotate(e, t) {
|
|
@@ -11513,14 +11519,14 @@ class as {
|
|
|
11513
11519
|
];
|
|
11514
11520
|
break;
|
|
11515
11521
|
}
|
|
11516
|
-
return this.multiply(new
|
|
11522
|
+
return this.multiply(new ca(n));
|
|
11517
11523
|
}
|
|
11518
11524
|
toString() {
|
|
11519
11525
|
return `matrix3d(${this.value.map((e) => Rd(e, 6)).join(",")})`;
|
|
11520
11526
|
}
|
|
11521
11527
|
}
|
|
11522
11528
|
function eu(r) {
|
|
11523
|
-
|
|
11529
|
+
const e = new pr();
|
|
11524
11530
|
return r.replace(
|
|
11525
11531
|
// /([a-z]+)\(?([^)a-z]+)\)?/gi,
|
|
11526
11532
|
/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z]*\s*,?\s*)+)\)?/gi,
|
|
@@ -11576,7 +11582,7 @@ function eu(r) {
|
|
|
11576
11582
|
e.scaleZ(a[0]);
|
|
11577
11583
|
break;
|
|
11578
11584
|
case "scale3d":
|
|
11579
|
-
e
|
|
11585
|
+
e.scale3d(a[0], a[1], a[2]);
|
|
11580
11586
|
break;
|
|
11581
11587
|
case "skew":
|
|
11582
11588
|
e.skew(a[0], a[1] ?? 0);
|
|
@@ -11605,99 +11611,7 @@ function eu(r) {
|
|
|
11605
11611
|
]);
|
|
11606
11612
|
break;
|
|
11607
11613
|
case "matrix3d":
|
|
11608
|
-
e.multiply(new
|
|
11609
|
-
break;
|
|
11610
|
-
}
|
|
11611
|
-
return "";
|
|
11612
|
-
}
|
|
11613
|
-
), e;
|
|
11614
|
-
}
|
|
11615
|
-
function RR(r) {
|
|
11616
|
-
const e = new as();
|
|
11617
|
-
return r.replace(
|
|
11618
|
-
/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z]*\s*,?\s*)+)\)?/gi,
|
|
11619
|
-
function(t, i, s) {
|
|
11620
|
-
s.indexOf(",") >= 0 ? s = s.split(/\s*,\s*/) : s = s.split(/\s+/);
|
|
11621
|
-
const a = [];
|
|
11622
|
-
for (let n = 0, o = s.length; n < o; n++)
|
|
11623
|
-
s[n].trim() && a.push(parseFloat("" + s[n]));
|
|
11624
|
-
switch (i.toLowerCase()) {
|
|
11625
|
-
case "t":
|
|
11626
|
-
case "translate":
|
|
11627
|
-
e.translate(a[0], a[1]);
|
|
11628
|
-
break;
|
|
11629
|
-
case "translatex":
|
|
11630
|
-
e.translate(a[0]);
|
|
11631
|
-
break;
|
|
11632
|
-
case "translatey":
|
|
11633
|
-
e.translate(0, a[0]);
|
|
11634
|
-
break;
|
|
11635
|
-
case "translatez":
|
|
11636
|
-
e.translate(0, 0, a[0]);
|
|
11637
|
-
break;
|
|
11638
|
-
case "translate3d":
|
|
11639
|
-
e.translate(a[0], a[1], a[2]);
|
|
11640
|
-
break;
|
|
11641
|
-
case "r":
|
|
11642
|
-
case "rotate":
|
|
11643
|
-
e.toMatrix().rotate(a[0], a[1] ?? 0, a[2] ?? 0).toMatrix3D(e);
|
|
11644
|
-
break;
|
|
11645
|
-
case "rotatex":
|
|
11646
|
-
e.rotate("x", a[0]);
|
|
11647
|
-
break;
|
|
11648
|
-
case "rotatey":
|
|
11649
|
-
e.rotate("y", a[0]);
|
|
11650
|
-
break;
|
|
11651
|
-
case "rotatez":
|
|
11652
|
-
e.rotate("z", a[0]);
|
|
11653
|
-
break;
|
|
11654
|
-
case "rotate3d":
|
|
11655
|
-
e.rotate("x", a[0]).rotate("y", a[0]).rotate("z", a[0]);
|
|
11656
|
-
break;
|
|
11657
|
-
case "s":
|
|
11658
|
-
case "scale":
|
|
11659
|
-
e.scale(a[0], a[1] ?? a[0]);
|
|
11660
|
-
break;
|
|
11661
|
-
case "scalex":
|
|
11662
|
-
e.scale(a[0], 1);
|
|
11663
|
-
break;
|
|
11664
|
-
case "scaley":
|
|
11665
|
-
e.scale(1, a[0]);
|
|
11666
|
-
break;
|
|
11667
|
-
case "scalez":
|
|
11668
|
-
e.scale(1, 1, a[0]);
|
|
11669
|
-
break;
|
|
11670
|
-
case "scale3d":
|
|
11671
|
-
e.scale(a[0], a[1], a[2]);
|
|
11672
|
-
break;
|
|
11673
|
-
case "skew":
|
|
11674
|
-
e.toMatrix().skew(a[0], a[1] ?? 0).toMatrix3D(e);
|
|
11675
|
-
break;
|
|
11676
|
-
case "skewx":
|
|
11677
|
-
e.toMatrix().skewX(a[0]).toMatrix3D(e);
|
|
11678
|
-
break;
|
|
11679
|
-
case "skewy":
|
|
11680
|
-
e.toMatrix().skewY(a[0]).toMatrix3D(e);
|
|
11681
|
-
break;
|
|
11682
|
-
case "skewz":
|
|
11683
|
-
e.toMatrix().skewZ(a[0]).toMatrix3D(e);
|
|
11684
|
-
break;
|
|
11685
|
-
case "skew3d":
|
|
11686
|
-
e.toMatrix().skew3d(a[0], a[1], a[2]).toMatrix3D(e);
|
|
11687
|
-
break;
|
|
11688
|
-
case "m":
|
|
11689
|
-
case "matrix":
|
|
11690
|
-
e.toMatrix().multiply([
|
|
11691
|
-
a[0],
|
|
11692
|
-
a[1],
|
|
11693
|
-
a[2],
|
|
11694
|
-
a[3],
|
|
11695
|
-
a[4],
|
|
11696
|
-
a[5]
|
|
11697
|
-
]).toMatrix3D(e);
|
|
11698
|
-
break;
|
|
11699
|
-
case "matrix3d":
|
|
11700
|
-
e.multiply(new as(a));
|
|
11614
|
+
e.matrix3d.multiply(new ca(a));
|
|
11701
11615
|
break;
|
|
11702
11616
|
}
|
|
11703
11617
|
return "";
|
|
@@ -11792,7 +11706,7 @@ function m1(r) {
|
|
|
11792
11706
|
return a;
|
|
11793
11707
|
});
|
|
11794
11708
|
}
|
|
11795
|
-
function
|
|
11709
|
+
function RR(r) {
|
|
11796
11710
|
var e = 0, t = 0, i = 0, s = 0;
|
|
11797
11711
|
return r.map(function(a) {
|
|
11798
11712
|
a = a.slice();
|
|
@@ -14286,7 +14200,7 @@ var cp = { exports: {} };
|
|
|
14286
14200
|
}, Mt = function(b) {
|
|
14287
14201
|
var S = At(b);
|
|
14288
14202
|
return S.toString = l._path2string, S;
|
|
14289
|
-
},
|
|
14203
|
+
}, Zs = l._pathToRelative = function(b) {
|
|
14290
14204
|
var S = Ct(b);
|
|
14291
14205
|
if (S.rel)
|
|
14292
14206
|
return Mt(S.rel);
|
|
@@ -14400,16 +14314,16 @@ var cp = { exports: {} };
|
|
|
14400
14314
|
var ze = A * A, ve = v * v, _e = (R == L ? -1 : 1) * Y.sqrt(ne((ze * ve - ze * de * de - ve * ge * ge) / (ze * de * de + ve * ge * ge))), me = _e * A * de / v + (b + F) / 2, We = _e * -v * ge / A + (S + B) / 2, je = Y.asin(((S - We) / v).toFixed(9)), qe = Y.asin(((B - We) / v).toFixed(9));
|
|
14401
14315
|
(je = b < me ? Ce - je : je) < 0 && (je = 2 * Ce + je), (qe = F < me ? Ce - qe : qe) < 0 && (qe = 2 * Ce + qe), L && je > qe && (je -= 2 * Ce), !L && qe > je && (qe -= 2 * Ce);
|
|
14402
14316
|
}
|
|
14403
|
-
var
|
|
14404
|
-
if (ne(
|
|
14317
|
+
var Js = qe - je;
|
|
14318
|
+
if (ne(Js) > ue) {
|
|
14405
14319
|
var Ia = qe, Tr = F, ui = B;
|
|
14406
14320
|
qe = je + ue * (L && qe > je ? 1 : -1), F = me + A * Y.cos(qe), B = We + v * Y.sin(qe), ie = Ci(F, B, A, v, C, 0, L, Tr, ui, [qe, Ia, me, We]);
|
|
14407
14321
|
}
|
|
14408
|
-
|
|
14409
|
-
var
|
|
14410
|
-
if (
|
|
14411
|
-
return [
|
|
14412
|
-
for (var ju = [], Zi = 0, n6 = (ie = [
|
|
14322
|
+
Js = qe - je;
|
|
14323
|
+
var Qs = Y.cos(je), xs = Y.sin(je), ko = Y.cos(qe), ki = Y.sin(qe), ys = Y.tan(Js / 4), Eo = 4 / 3 * A * ys, Lu = 4 / 3 * v * ys, Fu = [b, S], ea = [b + Eo * xs, S - Lu * Qs], Uu = [F + Eo * ki, B - Lu * ko], Gu = [F, B];
|
|
14324
|
+
if (ea[0] = 2 * Fu[0] - ea[0], ea[1] = 2 * Fu[1] - ea[1], X)
|
|
14325
|
+
return [ea, Uu, Gu][m](ie);
|
|
14326
|
+
for (var ju = [], Zi = 0, n6 = (ie = [ea, Uu, Gu][m](ie).join()[$](",")).length; Zi < n6; Zi++)
|
|
14413
14327
|
ju[Zi] = Zi % 2 ? fe(ie[Zi - 1], ie[Zi], ae).y : fe(ie[Zi], ie[Zi + 1], ae).x;
|
|
14414
14328
|
return ju;
|
|
14415
14329
|
}, Qr = function(b, S, A, v, C, R, L, F, B) {
|
|
@@ -14546,7 +14460,7 @@ var cp = { exports: {} };
|
|
|
14546
14460
|
var C;
|
|
14547
14461
|
if ((C = v != null || l.is(b, "object") ? b : g.doc.getElementById(b)) != null)
|
|
14548
14462
|
return C.tagName ? S == null ? { container: C, width: C.style.pixelWidth || C.offsetWidth, height: C.style.pixelHeight || C.offsetHeight } : { container: C, width: S, height: A } : { container: 1, x: b, y: S, width: A, height: v };
|
|
14549
|
-
}, l.pathToRelative =
|
|
14463
|
+
}, l.pathToRelative = Zs, l._engine = {}, l.path2curve = wi, l.matrix = function(b, S, A, v, C, R) {
|
|
14550
14464
|
return new le(b, S, A, v, C, R);
|
|
14551
14465
|
}, function(b) {
|
|
14552
14466
|
function S(v) {
|
|
@@ -14733,7 +14647,7 @@ var cp = { exports: {} };
|
|
|
14733
14647
|
return this.__set__ && this.__set__.push(v), v;
|
|
14734
14648
|
}, u.set = function(b) {
|
|
14735
14649
|
!l.is(b, "array") && (b = Array.prototype.splice.call(arguments, 0, arguments.length));
|
|
14736
|
-
var S = new
|
|
14650
|
+
var S = new ms(b);
|
|
14737
14651
|
return this.__set__ && this.__set__.push(S), S.paper = this, S.type = "set", S;
|
|
14738
14652
|
}, u.setStart = function(b) {
|
|
14739
14653
|
this.__set__ = b || this.set();
|
|
@@ -15044,35 +14958,35 @@ var cp = { exports: {} };
|
|
|
15044
14958
|
}
|
|
15045
14959
|
break;
|
|
15046
14960
|
case "transform":
|
|
15047
|
-
var
|
|
14961
|
+
var Js = S._, Ia = oe(Js[ve], fe[ve]);
|
|
15048
14962
|
if (Ia)
|
|
15049
14963
|
for (ie[ve] = Ia.from, fe[ve] = Ia.to, ge[ve] = [], ge[ve].real = !0, he = 0, ze = ie[ve].length; he < ze; he++)
|
|
15050
14964
|
for (ge[ve][he] = [ie[ve][he][0]], je = 1, qe = ie[ve][he].length; je < qe; je++)
|
|
15051
14965
|
ge[ve][he][je] = (fe[ve][he][je] - ie[ve][he][je]) / ae;
|
|
15052
14966
|
else {
|
|
15053
|
-
var Tr = S.matrix || new le(), ui = { _: { transform:
|
|
14967
|
+
var Tr = S.matrix || new le(), ui = { _: { transform: Js.transform }, getBBox: function() {
|
|
15054
14968
|
return S.getBBox(1);
|
|
15055
14969
|
} };
|
|
15056
14970
|
ie[ve] = [Tr.a, Tr.b, Tr.c, Tr.d, Tr.e, Tr.f], Z(ui, fe[ve]), fe[ve] = ui._.transform, ge[ve] = [(ui.matrix.a - Tr.a) / ae, (ui.matrix.b - Tr.b) / ae, (ui.matrix.c - Tr.c) / ae, (ui.matrix.d - Tr.d) / ae, (ui.matrix.e - Tr.e) / ae, (ui.matrix.f - Tr.f) / ae];
|
|
15057
14971
|
}
|
|
15058
14972
|
break;
|
|
15059
14973
|
case "csv":
|
|
15060
|
-
var
|
|
14974
|
+
var Qs = O(L[ve])[$](d), xs = O(ie[ve])[$](d);
|
|
15061
14975
|
if (ve == "clip-rect")
|
|
15062
|
-
for (ie[ve] =
|
|
15063
|
-
ge[ve][he] = (
|
|
15064
|
-
fe[ve] =
|
|
14976
|
+
for (ie[ve] = xs, ge[ve] = [], he = xs.length; he--; )
|
|
14977
|
+
ge[ve][he] = (Qs[he] - ie[ve][he]) / ae;
|
|
14978
|
+
fe[ve] = Qs;
|
|
15065
14979
|
break;
|
|
15066
14980
|
default:
|
|
15067
|
-
for (
|
|
15068
|
-
ge[ve][he] = ((
|
|
14981
|
+
for (Qs = [][m](L[ve]), xs = [][m](ie[ve]), ge[ve] = [], he = S.paper.customAttributes[ve].length; he--; )
|
|
14982
|
+
ge[ve][he] = ((Qs[he] || 0) - (xs[he] || 0)) / ae;
|
|
15069
14983
|
}
|
|
15070
14984
|
var ko = L.easing, ki = l.easing_formulas[ko];
|
|
15071
14985
|
if (!ki)
|
|
15072
14986
|
if ((ki = O(ko).match(P)) && ki.length == 5) {
|
|
15073
|
-
var
|
|
14987
|
+
var ys = ki;
|
|
15074
14988
|
ki = function(Eo) {
|
|
15075
|
-
return Qt(Eo, +
|
|
14989
|
+
return Qt(Eo, +ys[1], +ys[2], +ys[3], +ys[4], ae);
|
|
15076
14990
|
};
|
|
15077
14991
|
} else
|
|
15078
14992
|
ki = Be;
|
|
@@ -15160,14 +15074,14 @@ var cp = { exports: {} };
|
|
|
15160
15074
|
}, o.on("raphael.remove", zi), o.on("raphael.clear", zi), De.toString = function() {
|
|
15161
15075
|
return "Raphaël’s object";
|
|
15162
15076
|
};
|
|
15163
|
-
var Pi, Lr, Fr, Ur,
|
|
15077
|
+
var Pi, Lr, Fr, Ur, ms = function(b) {
|
|
15164
15078
|
if (this.items = [], this.length = 0, this.type = "set", b)
|
|
15165
15079
|
for (var S = 0, A = b.length; S < A; S++)
|
|
15166
|
-
!b[S] || b[S].constructor != De.constructor && b[S].constructor !=
|
|
15167
|
-
}, Yt =
|
|
15168
|
-
for (var
|
|
15080
|
+
!b[S] || b[S].constructor != De.constructor && b[S].constructor != ms || (this[this.items.length] = this.items[this.items.length] = b[S], this.length++);
|
|
15081
|
+
}, Yt = ms.prototype;
|
|
15082
|
+
for (var bs in Yt.push = function() {
|
|
15169
15083
|
for (var b, S, A = 0, v = arguments.length; A < v; A++)
|
|
15170
|
-
!(b = arguments[A]) || b.constructor != De.constructor && b.constructor !=
|
|
15084
|
+
!(b = arguments[A]) || b.constructor != De.constructor && b.constructor != ms || (this[S = this.items.length] = this.items[S] = b, this.length++);
|
|
15171
15085
|
return this;
|
|
15172
15086
|
}, Yt.pop = function() {
|
|
15173
15087
|
return this.length && delete this[this.length--], this.items.pop();
|
|
@@ -15177,14 +15091,14 @@ var cp = { exports: {} };
|
|
|
15177
15091
|
return this;
|
|
15178
15092
|
return this;
|
|
15179
15093
|
}, De)
|
|
15180
|
-
De[p](
|
|
15094
|
+
De[p](bs) && (Yt[bs] = function(b) {
|
|
15181
15095
|
return function() {
|
|
15182
15096
|
var S = arguments;
|
|
15183
15097
|
return this.forEach(function(A) {
|
|
15184
15098
|
A[b][T](A, S);
|
|
15185
15099
|
});
|
|
15186
15100
|
};
|
|
15187
|
-
}(
|
|
15101
|
+
}(bs));
|
|
15188
15102
|
return Yt.attr = function(b, S) {
|
|
15189
15103
|
if (b && l.is(b, se) && l.is(b[0], "object"))
|
|
15190
15104
|
for (var A = 0, v = b.length; A < v; A++)
|
|
@@ -15210,7 +15124,7 @@ var cp = { exports: {} };
|
|
|
15210
15124
|
this.items[b + v] = this[b + v] = v < F ? L[v] : C[v - F];
|
|
15211
15125
|
for (v = this.items.length = this.length -= S - F; this[v]; )
|
|
15212
15126
|
delete this[v++];
|
|
15213
|
-
return new
|
|
15127
|
+
return new ms(R);
|
|
15214
15128
|
}, Yt.exclude = function(b) {
|
|
15215
15129
|
for (var S = 0, A = this.length; S < A; S++)
|
|
15216
15130
|
if (this[S] == b)
|
|
@@ -16002,7 +15916,7 @@ You are running Raphaël ` + this.version;
|
|
|
16002
15916
|
if (N && (D.path = o._getPath[E.type](E), E._.dirty = 1), P.href && (z.href = P.href), P.title && (z.title = P.title), P.target && (z.target = P.target), P.cursor && (j.cursor = P.cursor), "blur" in P && E.blur(P.blur), (P.path && E.type == "path" || N) && (z.path = function(Lt) {
|
|
16003
15917
|
var Dr = /[ahqstv]/gi, Xr = o._pathToAbsolute;
|
|
16004
15918
|
if (h(Lt).match(Dr) && (Xr = o._path2curve), Dr = /[clmz]/g, Xr == o._pathToAbsolute && !h(Lt).match(Dr)) {
|
|
16005
|
-
var Ct = h(Lt).replace(I, function(
|
|
15919
|
+
var Ct = h(Lt).replace(I, function(Zs, Zr, Jr) {
|
|
16006
15920
|
var br = [], Ci = Zr.toLowerCase() == "m", Qr = w[Zr];
|
|
16007
15921
|
return Jr.replace(O, function(Nr) {
|
|
16008
15922
|
Ci && br.length == 2 && (Qr += br + w[Zr == "m" ? "l" : "L"], br = []), br.push(c(Nr * G));
|
|
@@ -16363,7 +16277,7 @@ lr.easing_formulas.swing = function(r) {
|
|
|
16363
16277
|
lr.easing_formulas.may_cause_seizures = function(r) {
|
|
16364
16278
|
return r + 0.2 * Math.random() - 0.1;
|
|
16365
16279
|
};
|
|
16366
|
-
function
|
|
16280
|
+
function IR(r, e, t) {
|
|
16367
16281
|
let i;
|
|
16368
16282
|
return r && typeof r == "object" && r.canvas ? i = r : r && (typeof r == "string" || r instanceof HTMLElement) ? i = lr(r, e, t) : i = lr(0, 0, e, t), i;
|
|
16369
16283
|
}
|
|
@@ -16457,7 +16371,7 @@ lr.installCustomAttributes = function(r) {
|
|
|
16457
16371
|
};
|
|
16458
16372
|
};
|
|
16459
16373
|
const Xf = lr;
|
|
16460
|
-
class
|
|
16374
|
+
class Ps {
|
|
16461
16375
|
pgs = [];
|
|
16462
16376
|
history = [];
|
|
16463
16377
|
save() {
|
|
@@ -16478,10 +16392,10 @@ class ks {
|
|
|
16478
16392
|
}), [Math.ceil(e), Math.ceil(t)];
|
|
16479
16393
|
}
|
|
16480
16394
|
static fromRawSVG(e) {
|
|
16481
|
-
return
|
|
16395
|
+
return Ps.fromRawSVGUseRappar(e);
|
|
16482
16396
|
}
|
|
16483
16397
|
static fromRawSVGUseRappar(e) {
|
|
16484
|
-
const t = new
|
|
16398
|
+
const t = new Ps(), i = B_(e);
|
|
16485
16399
|
for (let s = 0, a = i.length; s < a; s++) {
|
|
16486
16400
|
const n = i[s];
|
|
16487
16401
|
if (n.type == "viewbox" && n.width && n.height)
|
|
@@ -16582,13 +16496,13 @@ class ks {
|
|
|
16582
16496
|
);
|
|
16583
16497
|
}
|
|
16584
16498
|
toDownloadSVGElement(e, t = "shape") {
|
|
16585
|
-
return
|
|
16499
|
+
return Ps.toDownloadSVGElement(e, t), this;
|
|
16586
16500
|
}
|
|
16587
16501
|
static toDownloadSVGString(e, t = "shape") {
|
|
16588
16502
|
Of(q4(e), `${t}.svg`);
|
|
16589
16503
|
}
|
|
16590
16504
|
toDownloadSVGString(e, t = "shape") {
|
|
16591
|
-
return
|
|
16505
|
+
return Ps.toDownloadSVGString(e, t), this;
|
|
16592
16506
|
}
|
|
16593
16507
|
static getSVGDOM(e) {
|
|
16594
16508
|
if (e instanceof HTMLObjectElement || e instanceof HTMLIFrameElement)
|
|
@@ -16597,7 +16511,7 @@ class ks {
|
|
|
16597
16511
|
return e.getSVGDocument();
|
|
16598
16512
|
}
|
|
16599
16513
|
}
|
|
16600
|
-
const Y_ =
|
|
16514
|
+
const Y_ = Ps;
|
|
16601
16515
|
class pp {
|
|
16602
16516
|
canvas;
|
|
16603
16517
|
context;
|
|
@@ -16789,7 +16703,7 @@ class pp {
|
|
|
16789
16703
|
}
|
|
16790
16704
|
toSVGOperation() {
|
|
16791
16705
|
const { raw: e } = this.toRawSVG();
|
|
16792
|
-
return
|
|
16706
|
+
return Ps.fromRawSVG(e);
|
|
16793
16707
|
}
|
|
16794
16708
|
}
|
|
16795
16709
|
(function() {
|
|
@@ -16809,7 +16723,7 @@ const gp = (r) => {
|
|
|
16809
16723
|
r(t, i);
|
|
16810
16724
|
}
|
|
16811
16725
|
return window.requestAnimationFrame(e);
|
|
16812
|
-
},
|
|
16726
|
+
}, OR = () => Math.random() * 16777215, $R = () => `#${Math.random().toString(16).slice(2, 8).padEnd(6, "0")}`, DR = () => `#${(~~(Math.random() * (1 << 24))).toString(16)}`, X_ = function(r) {
|
|
16813
16727
|
let e = "00000" + (r | 0).toString(16);
|
|
16814
16728
|
return e = "#" + e.substring(e.length - 6), e;
|
|
16815
16729
|
}, K_ = function(r, e = 1) {
|
|
@@ -16820,11 +16734,11 @@ const gp = (r) => {
|
|
|
16820
16734
|
}, vp = function(r, e = 1) {
|
|
16821
16735
|
const t = tu(r);
|
|
16822
16736
|
return K_(t, e);
|
|
16823
|
-
},
|
|
16737
|
+
}, NR = (r) => {
|
|
16824
16738
|
const t = /rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(r);
|
|
16825
16739
|
return t ? "#" + ((1 << 24) + (parseInt(t[1]) << 16) + (parseInt(t[2]) << 8) + parseInt(t[3])).toString(16).slice(1) : "";
|
|
16826
16740
|
};
|
|
16827
|
-
function
|
|
16741
|
+
function LR(r, e, t, i) {
|
|
16828
16742
|
let s, a, n;
|
|
16829
16743
|
r = r / 360, e = e / 100, t = t / 100;
|
|
16830
16744
|
const o = Math.floor(r * 6), l = r * 6 - o, h = t * (1 - e), u = t * (1 - l * e), d = t * (1 - (1 - l) * e);
|
|
@@ -16856,7 +16770,7 @@ function FR(r, e, t, i) {
|
|
|
16856
16770
|
a: i ?? 1
|
|
16857
16771
|
};
|
|
16858
16772
|
}
|
|
16859
|
-
function
|
|
16773
|
+
function FR(r, e, t, i) {
|
|
16860
16774
|
const s = Math.max(r, e, t), a = Math.min(r, e, t), n = s - a, o = s === 0 ? 0 : n / s, l = s / 255;
|
|
16861
16775
|
let h;
|
|
16862
16776
|
switch (s) {
|
|
@@ -16881,13 +16795,13 @@ function UR(r, e, t, i) {
|
|
|
16881
16795
|
a: i ?? 1
|
|
16882
16796
|
};
|
|
16883
16797
|
}
|
|
16884
|
-
function
|
|
16798
|
+
function UR(r, e) {
|
|
16885
16799
|
let t = parseInt(r.substring(1, 3), 16), i = parseInt(r.substring(3, 5), 16), s = parseInt(r.substring(5, 7), 16);
|
|
16886
16800
|
t == 0 && (t = 32), i == 0 && (i = 32), s == 0 && (s = 32), t = t * (100 + e) / 100, i = i * (100 + e) / 100, s = s * (100 + e) / 100, t = t < 255 ? t : 255, i = i < 255 ? i : 255, s = s < 255 ? s : 255, t = Math.round(t), i = Math.round(i), s = Math.round(s);
|
|
16887
16801
|
const a = t.toString(16).length == 1 ? "0" + t.toString(16) : t.toString(16), n = i.toString(16).length == 1 ? "0" + i.toString(16) : i.toString(16), o = s.toString(16).length == 1 ? "0" + s.toString(16) : s.toString(16);
|
|
16888
16802
|
return "#" + a + n + o;
|
|
16889
16803
|
}
|
|
16890
|
-
class
|
|
16804
|
+
class GR extends hc {
|
|
16891
16805
|
container;
|
|
16892
16806
|
ctx;
|
|
16893
16807
|
config;
|
|
@@ -17563,7 +17477,7 @@ function za(r) {
|
|
|
17563
17477
|
for (; --e >= 0; )
|
|
17564
17478
|
r[e] = 0;
|
|
17565
17479
|
}
|
|
17566
|
-
const x_ = 0, bp = 1, eT = 2, tT = 3, rT = 258, ru = 29, yo = 256, pn = yo + 1 + ru, ga = 30, iu = 19, yp = 2 * pn + 1,
|
|
17480
|
+
const x_ = 0, bp = 1, eT = 2, tT = 3, rT = 258, ru = 29, yo = 256, pn = yo + 1 + ru, ga = 30, iu = 19, yp = 2 * pn + 1, ks = 15, T0 = 16, iT = 7, su = 256, _p = 16, Tp = 17, Cp = 18, C1 = (
|
|
17567
17481
|
/* extra bits for each length code */
|
|
17568
17482
|
new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0])
|
|
17569
17483
|
), ol = (
|
|
@@ -17613,7 +17527,7 @@ const kp = (r) => r < 256 ? gn[r] : gn[256 + (r >>> 7)], mn = (r, e) => {
|
|
|
17613
17527
|
}, oT = (r, e) => {
|
|
17614
17528
|
const t = e.dyn_tree, i = e.max_code, s = e.stat_desc.static_tree, a = e.stat_desc.has_stree, n = e.stat_desc.extra_bits, o = e.stat_desc.extra_base, l = e.stat_desc.max_length;
|
|
17615
17529
|
let h, u, d, c, f, p, g = 0;
|
|
17616
|
-
for (c = 0; c <=
|
|
17530
|
+
for (c = 0; c <= ks; c++)
|
|
17617
17531
|
r.bl_count[c] = 0;
|
|
17618
17532
|
for (t[r.heap[r.heap_max] * 2 + 1] = 0, h = r.heap_max + 1; h < yp; h++)
|
|
17619
17533
|
u = r.heap[h], c = t[t[u * 2 + 1] * 2 + 1] + 1, c > l && (c = l, g++), t[u * 2 + 1] = c, !(u > i) && (r.bl_count[c]++, f = 0, u >= o && (f = n[u - o]), p = t[u * 2], r.opt_len += p * (c + f), a && (r.static_len += p * (s[u * 2 + 1] + f)));
|
|
@@ -17628,9 +17542,9 @@ const kp = (r) => r < 256 ? gn[r] : gn[256 + (r >>> 7)], mn = (r, e) => {
|
|
|
17628
17542
|
d = r.heap[--h], !(d > i) && (t[d * 2 + 1] !== c && (r.opt_len += (c - t[d * 2 + 1]) * t[d * 2], t[d * 2 + 1] = c), u--);
|
|
17629
17543
|
}
|
|
17630
17544
|
}, Ap = (r, e, t) => {
|
|
17631
|
-
const i = new Array(
|
|
17545
|
+
const i = new Array(ks + 1);
|
|
17632
17546
|
let s = 0, a, n;
|
|
17633
|
-
for (a = 1; a <=
|
|
17547
|
+
for (a = 1; a <= ks; a++)
|
|
17634
17548
|
s = s + t[a - 1] << 1, i[a] = s;
|
|
17635
17549
|
for (n = 0; n <= e; n++) {
|
|
17636
17550
|
let o = r[n * 2 + 1];
|
|
@@ -17638,7 +17552,7 @@ const kp = (r) => r < 256 ? gn[r] : gn[256 + (r >>> 7)], mn = (r, e) => {
|
|
|
17638
17552
|
}
|
|
17639
17553
|
}, lT = () => {
|
|
17640
17554
|
let r, e, t, i, s;
|
|
17641
|
-
const a = new Array(
|
|
17555
|
+
const a = new Array(ks + 1);
|
|
17642
17556
|
for (t = 0, i = 0; i < ru - 1; i++)
|
|
17643
17557
|
for (au[i] = t, r = 0; r < 1 << C1[i]; r++)
|
|
17644
17558
|
vn[t++] = i;
|
|
@@ -17648,7 +17562,7 @@ const kp = (r) => r < 256 ? gn[r] : gn[256 + (r >>> 7)], mn = (r, e) => {
|
|
|
17648
17562
|
for (s >>= 7; i < ga; i++)
|
|
17649
17563
|
for (yl[i] = s << 7, r = 0; r < 1 << ol[i] - 7; r++)
|
|
17650
17564
|
gn[256 + s++] = i;
|
|
17651
|
-
for (e = 0; e <=
|
|
17565
|
+
for (e = 0; e <= ks; e++)
|
|
17652
17566
|
a[e] = 0;
|
|
17653
17567
|
for (r = 0; r <= 143; )
|
|
17654
17568
|
Oi[r * 2 + 1] = 8, r++, a[8]++;
|
|
@@ -17660,7 +17574,7 @@ const kp = (r) => r < 256 ? gn[r] : gn[256 + (r >>> 7)], mn = (r, e) => {
|
|
|
17660
17574
|
Oi[r * 2 + 1] = 8, r++, a[8]++;
|
|
17661
17575
|
for (Ap(Oi, pn + 1, a), r = 0; r < ga; r++)
|
|
17662
17576
|
xa[r * 2 + 1] = 5, xa[r * 2] = Ep(r, 5);
|
|
17663
|
-
Sp = new C0(Oi, C1, yo + 1, pn,
|
|
17577
|
+
Sp = new C0(Oi, C1, yo + 1, pn, ks), zp = new C0(xa, ol, 0, ga, ks), Pp = new C0(new Array(0), sT, 0, iu, iT);
|
|
17664
17578
|
}, Mp = (r) => {
|
|
17665
17579
|
let e;
|
|
17666
17580
|
for (e = 0; e < pn; e++)
|
|
@@ -17811,7 +17725,7 @@ const wT = () => {
|
|
|
17811
17725
|
r = r >>> 8 ^ s[(r ^ e[n]) & 255];
|
|
17812
17726
|
return r ^ -1;
|
|
17813
17727
|
};
|
|
17814
|
-
var xt = zT,
|
|
17728
|
+
var xt = zT, Ns = {
|
|
17815
17729
|
2: "need dictionary",
|
|
17816
17730
|
/* Z_NEED_DICT 2 */
|
|
17817
17731
|
1: "stream end",
|
|
@@ -17830,7 +17744,7 @@ var xt = zT, Ls = {
|
|
|
17830
17744
|
/* Z_BUF_ERROR (-5) */
|
|
17831
17745
|
"-6": "incompatible version"
|
|
17832
17746
|
/* Z_VERSION_ERROR (-6) */
|
|
17833
|
-
},
|
|
17747
|
+
}, js = {
|
|
17834
17748
|
/* Allowed flush values; see deflate() and inflate() below for details */
|
|
17835
17749
|
Z_NO_FLUSH: 0,
|
|
17836
17750
|
Z_PARTIAL_FLUSH: 1,
|
|
@@ -17870,8 +17784,8 @@ var xt = zT, Ls = {
|
|
|
17870
17784
|
Z_DEFLATED: 8
|
|
17871
17785
|
//Z_NULL: null // Use -1 or null inline, depending on var type
|
|
17872
17786
|
};
|
|
17873
|
-
const { _tr_init: PT, _tr_stored_block: S1, _tr_flush_block: kT, _tr_tally:
|
|
17874
|
-
Z_NO_FLUSH:
|
|
17787
|
+
const { _tr_init: PT, _tr_stored_block: S1, _tr_flush_block: kT, _tr_tally: as, _tr_align: ET } = TT, {
|
|
17788
|
+
Z_NO_FLUSH: ns,
|
|
17875
17789
|
Z_PARTIAL_FLUSH: AT,
|
|
17876
17790
|
Z_FULL_FLUSH: MT,
|
|
17877
17791
|
Z_FINISH: Hr,
|
|
@@ -17889,7 +17803,7 @@ const { _tr_init: PT, _tr_stored_block: S1, _tr_flush_block: kT, _tr_tally: ns,
|
|
|
17889
17803
|
Z_DEFAULT_STRATEGY: NT,
|
|
17890
17804
|
Z_UNKNOWN: LT,
|
|
17891
17805
|
Z_DEFLATED: Gl
|
|
17892
|
-
} =
|
|
17806
|
+
} = js, FT = 9, UT = 15, GT = 8, jT = 29, BT = 256, z1 = BT + 1 + jT, VT = 30, HT = 19, WT = 2 * z1 + 1, qT = 15, st = 3, ss = 258, mi = ss + st + 1, YT = 32, ya = 42, nu = 57, P1 = 69, k1 = 73, E1 = 91, A1 = 103, Es = 113, Ba = 666, gr = 1, Pa = 2, Ls = 3, ka = 4, XT = 3, As = (r, e) => (r.msg = Ns[e], e), a2 = (r) => r * 2 - (r > 4 ? 9 : 0), rs = (r) => {
|
|
17893
17807
|
let e = r.length;
|
|
17894
17808
|
for (; --e >= 0; )
|
|
17895
17809
|
r[e] = 0;
|
|
@@ -17904,7 +17818,7 @@ const { _tr_init: PT, _tr_stored_block: S1, _tr_flush_block: kT, _tr_tally: ns,
|
|
|
17904
17818
|
t = r.prev[--i], r.prev[i] = t >= s ? t - s : 0;
|
|
17905
17819
|
while (--e);
|
|
17906
17820
|
};
|
|
17907
|
-
let ZT = (r, e, t) => (e << r.hash_shift ^ t) & r.hash_mask,
|
|
17821
|
+
let ZT = (r, e, t) => (e << r.hash_shift ^ t) & r.hash_mask, os = ZT;
|
|
17908
17822
|
const Mr = (r) => {
|
|
17909
17823
|
const e = r.state;
|
|
17910
17824
|
let t = e.pending;
|
|
@@ -17944,70 +17858,70 @@ const Mr = (r) => {
|
|
|
17944
17858
|
if (i = r.window_size - r.lookahead - r.strstart, r.strstart >= e + (e - mi) && (r.window.set(r.window.subarray(e, e + e - i), 0), r.match_start -= e, r.strstart -= e, r.block_start -= e, r.insert > r.strstart && (r.insert = r.strstart), KT(r), i += e), r.strm.avail_in === 0)
|
|
17945
17859
|
break;
|
|
17946
17860
|
if (t = M1(r.strm, r.window, r.strstart + r.lookahead, i), r.lookahead += t, r.lookahead + r.insert >= st)
|
|
17947
|
-
for (s = r.strstart - r.insert, r.ins_h = r.window[s], r.ins_h =
|
|
17861
|
+
for (s = r.strstart - r.insert, r.ins_h = r.window[s], r.ins_h = os(r, r.ins_h, r.window[s + 1]); r.insert && (r.ins_h = os(r, r.ins_h, r.window[s + st - 1]), r.prev[s & r.w_mask] = r.head[r.ins_h], r.head[r.ins_h] = s, s++, r.insert--, !(r.lookahead + r.insert < st)); )
|
|
17948
17862
|
;
|
|
17949
17863
|
} while (r.lookahead < mi && r.strm.avail_in !== 0);
|
|
17950
17864
|
}, $p = (r, e) => {
|
|
17951
17865
|
let t = r.pending_buf_size - 5 > r.w_size ? r.w_size : r.pending_buf_size - 5, i, s, a, n = 0, o = r.strm.avail_in;
|
|
17952
17866
|
do {
|
|
17953
|
-
if (i = 65535, a = r.bi_valid + 42 >> 3, r.strm.avail_out < a || (a = r.strm.avail_out - a, s = r.strstart - r.block_start, i > s + r.strm.avail_in && (i = s + r.strm.avail_in), i > a && (i = a), i < t && (i === 0 && e !== Hr || e ===
|
|
17867
|
+
if (i = 65535, a = r.bi_valid + 42 >> 3, r.strm.avail_out < a || (a = r.strm.avail_out - a, s = r.strstart - r.block_start, i > s + r.strm.avail_in && (i = s + r.strm.avail_in), i > a && (i = a), i < t && (i === 0 && e !== Hr || e === ns || i !== s + r.strm.avail_in)))
|
|
17954
17868
|
break;
|
|
17955
17869
|
n = e === Hr && i === s + r.strm.avail_in ? 1 : 0, S1(r, 0, 0, n), r.pending_buf[r.pending - 4] = i, r.pending_buf[r.pending - 3] = i >> 8, r.pending_buf[r.pending - 2] = ~i, r.pending_buf[r.pending - 1] = ~i >> 8, Mr(r.strm), s && (s > i && (s = i), r.strm.output.set(r.window.subarray(r.block_start, r.block_start + s), r.strm.next_out), r.strm.next_out += s, r.strm.avail_out -= s, r.strm.total_out += s, r.block_start += s, i -= s), i && (M1(r.strm, r.strm.output, r.strm.next_out, i), r.strm.next_out += i, r.strm.avail_out -= i, r.strm.total_out += i);
|
|
17956
17870
|
} while (n === 0);
|
|
17957
|
-
return o -= r.strm.avail_in, o && (o >= r.w_size ? (r.matches = 2, r.window.set(r.strm.input.subarray(r.strm.next_in - r.w_size, r.strm.next_in), 0), r.strstart = r.w_size, r.insert = r.strstart) : (r.window_size - r.strstart <= o && (r.strstart -= r.w_size, r.window.set(r.window.subarray(r.w_size, r.w_size + r.strstart), 0), r.matches < 2 && r.matches++, r.insert > r.strstart && (r.insert = r.strstart)), r.window.set(r.strm.input.subarray(r.strm.next_in - o, r.strm.next_in), r.strstart), r.strstart += o, r.insert += o > r.w_size - r.insert ? r.w_size - r.insert : o), r.block_start = r.strstart), r.high_water < r.strstart && (r.high_water = r.strstart), n ? ka : e !==
|
|
17871
|
+
return o -= r.strm.avail_in, o && (o >= r.w_size ? (r.matches = 2, r.window.set(r.strm.input.subarray(r.strm.next_in - r.w_size, r.strm.next_in), 0), r.strstart = r.w_size, r.insert = r.strstart) : (r.window_size - r.strstart <= o && (r.strstart -= r.w_size, r.window.set(r.window.subarray(r.w_size, r.w_size + r.strstart), 0), r.matches < 2 && r.matches++, r.insert > r.strstart && (r.insert = r.strstart)), r.window.set(r.strm.input.subarray(r.strm.next_in - o, r.strm.next_in), r.strstart), r.strstart += o, r.insert += o > r.w_size - r.insert ? r.w_size - r.insert : o), r.block_start = r.strstart), r.high_water < r.strstart && (r.high_water = r.strstart), n ? ka : e !== ns && e !== Hr && r.strm.avail_in === 0 && r.strstart === r.block_start ? Pa : (a = r.window_size - r.strstart, r.strm.avail_in > a && r.block_start >= r.w_size && (r.block_start -= r.w_size, r.strstart -= r.w_size, r.window.set(r.window.subarray(r.w_size, r.w_size + r.strstart), 0), r.matches < 2 && r.matches++, a += r.w_size, r.insert > r.strstart && (r.insert = r.strstart)), a > r.strm.avail_in && (a = r.strm.avail_in), a && (M1(r.strm, r.window, r.strstart, a), r.strstart += a, r.insert += a > r.w_size - r.insert ? r.w_size - r.insert : a), r.high_water < r.strstart && (r.high_water = r.strstart), a = r.bi_valid + 42 >> 3, a = r.pending_buf_size - a > 65535 ? 65535 : r.pending_buf_size - a, t = a > r.w_size ? r.w_size : a, s = r.strstart - r.block_start, (s >= t || (s || e === Hr) && e !== ns && r.strm.avail_in === 0 && s <= a) && (i = s > a ? a : s, n = e === Hr && r.strm.avail_in === 0 && i === s ? 1 : 0, S1(r, r.block_start, i, n), r.block_start += i, Mr(r.strm)), n ? Ls : gr);
|
|
17958
17872
|
}, P0 = (r, e) => {
|
|
17959
17873
|
let t, i;
|
|
17960
17874
|
for (; ; ) {
|
|
17961
17875
|
if (r.lookahead < mi) {
|
|
17962
|
-
if (_a(r), r.lookahead < mi && e ===
|
|
17876
|
+
if (_a(r), r.lookahead < mi && e === ns)
|
|
17963
17877
|
return gr;
|
|
17964
17878
|
if (r.lookahead === 0)
|
|
17965
17879
|
break;
|
|
17966
17880
|
}
|
|
17967
|
-
if (t = 0, r.lookahead >= st && (r.ins_h =
|
|
17968
|
-
if (i =
|
|
17881
|
+
if (t = 0, r.lookahead >= st && (r.ins_h = os(r, r.ins_h, r.window[r.strstart + st - 1]), t = r.prev[r.strstart & r.w_mask] = r.head[r.ins_h], r.head[r.ins_h] = r.strstart), t !== 0 && r.strstart - t <= r.w_size - mi && (r.match_length = Op(r, t)), r.match_length >= st)
|
|
17882
|
+
if (i = as(r, r.strstart - r.match_start, r.match_length - st), r.lookahead -= r.match_length, r.match_length <= r.max_lazy_match && r.lookahead >= st) {
|
|
17969
17883
|
r.match_length--;
|
|
17970
17884
|
do
|
|
17971
|
-
r.strstart++, r.ins_h =
|
|
17885
|
+
r.strstart++, r.ins_h = os(r, r.ins_h, r.window[r.strstart + st - 1]), t = r.prev[r.strstart & r.w_mask] = r.head[r.ins_h], r.head[r.ins_h] = r.strstart;
|
|
17972
17886
|
while (--r.match_length !== 0);
|
|
17973
17887
|
r.strstart++;
|
|
17974
17888
|
} else
|
|
17975
|
-
r.strstart += r.match_length, r.match_length = 0, r.ins_h = r.window[r.strstart], r.ins_h =
|
|
17889
|
+
r.strstart += r.match_length, r.match_length = 0, r.ins_h = r.window[r.strstart], r.ins_h = os(r, r.ins_h, r.window[r.strstart + 1]);
|
|
17976
17890
|
else
|
|
17977
|
-
i =
|
|
17891
|
+
i = as(r, 0, r.window[r.strstart]), r.lookahead--, r.strstart++;
|
|
17978
17892
|
if (i && (Or(r, !1), r.strm.avail_out === 0))
|
|
17979
17893
|
return gr;
|
|
17980
17894
|
}
|
|
17981
|
-
return r.insert = r.strstart < st - 1 ? r.strstart : st - 1, e === Hr ? (Or(r, !0), r.strm.avail_out === 0 ?
|
|
17982
|
-
},
|
|
17895
|
+
return r.insert = r.strstart < st - 1 ? r.strstart : st - 1, e === Hr ? (Or(r, !0), r.strm.avail_out === 0 ? Ls : ka) : r.sym_next && (Or(r, !1), r.strm.avail_out === 0) ? gr : Pa;
|
|
17896
|
+
}, sa = (r, e) => {
|
|
17983
17897
|
let t, i, s;
|
|
17984
17898
|
for (; ; ) {
|
|
17985
17899
|
if (r.lookahead < mi) {
|
|
17986
|
-
if (_a(r), r.lookahead < mi && e ===
|
|
17900
|
+
if (_a(r), r.lookahead < mi && e === ns)
|
|
17987
17901
|
return gr;
|
|
17988
17902
|
if (r.lookahead === 0)
|
|
17989
17903
|
break;
|
|
17990
17904
|
}
|
|
17991
|
-
if (t = 0, r.lookahead >= st && (r.ins_h =
|
|
17992
|
-
s = r.strstart + r.lookahead - st, i =
|
|
17905
|
+
if (t = 0, r.lookahead >= st && (r.ins_h = os(r, r.ins_h, r.window[r.strstart + st - 1]), t = r.prev[r.strstart & r.w_mask] = r.head[r.ins_h], r.head[r.ins_h] = r.strstart), r.prev_length = r.match_length, r.prev_match = r.match_start, r.match_length = st - 1, t !== 0 && r.prev_length < r.max_lazy_match && r.strstart - t <= r.w_size - mi && (r.match_length = Op(r, t), r.match_length <= 5 && (r.strategy === OT || r.match_length === st && r.strstart - r.match_start > 4096) && (r.match_length = st - 1)), r.prev_length >= st && r.match_length <= r.prev_length) {
|
|
17906
|
+
s = r.strstart + r.lookahead - st, i = as(r, r.strstart - 1 - r.prev_match, r.prev_length - st), r.lookahead -= r.prev_length - 1, r.prev_length -= 2;
|
|
17993
17907
|
do
|
|
17994
|
-
++r.strstart <= s && (r.ins_h =
|
|
17908
|
+
++r.strstart <= s && (r.ins_h = os(r, r.ins_h, r.window[r.strstart + st - 1]), t = r.prev[r.strstart & r.w_mask] = r.head[r.ins_h], r.head[r.ins_h] = r.strstart);
|
|
17995
17909
|
while (--r.prev_length !== 0);
|
|
17996
17910
|
if (r.match_available = 0, r.match_length = st - 1, r.strstart++, i && (Or(r, !1), r.strm.avail_out === 0))
|
|
17997
17911
|
return gr;
|
|
17998
17912
|
} else if (r.match_available) {
|
|
17999
|
-
if (i =
|
|
17913
|
+
if (i = as(r, 0, r.window[r.strstart - 1]), i && Or(r, !1), r.strstart++, r.lookahead--, r.strm.avail_out === 0)
|
|
18000
17914
|
return gr;
|
|
18001
17915
|
} else
|
|
18002
17916
|
r.match_available = 1, r.strstart++, r.lookahead--;
|
|
18003
17917
|
}
|
|
18004
|
-
return r.match_available && (i =
|
|
17918
|
+
return r.match_available && (i = as(r, 0, r.window[r.strstart - 1]), r.match_available = 0), r.insert = r.strstart < st - 1 ? r.strstart : st - 1, e === Hr ? (Or(r, !0), r.strm.avail_out === 0 ? Ls : ka) : r.sym_next && (Or(r, !1), r.strm.avail_out === 0) ? gr : Pa;
|
|
18005
17919
|
}, JT = (r, e) => {
|
|
18006
17920
|
let t, i, s, a;
|
|
18007
17921
|
const n = r.window;
|
|
18008
17922
|
for (; ; ) {
|
|
18009
17923
|
if (r.lookahead <= ss) {
|
|
18010
|
-
if (_a(r), r.lookahead <= ss && e ===
|
|
17924
|
+
if (_a(r), r.lookahead <= ss && e === ns)
|
|
18011
17925
|
return gr;
|
|
18012
17926
|
if (r.lookahead === 0)
|
|
18013
17927
|
break;
|
|
@@ -18019,22 +17933,22 @@ const Mr = (r) => {
|
|
|
18019
17933
|
while (i === n[++s] && i === n[++s] && i === n[++s] && i === n[++s] && i === n[++s] && i === n[++s] && i === n[++s] && i === n[++s] && s < a);
|
|
18020
17934
|
r.match_length = ss - (a - s), r.match_length > r.lookahead && (r.match_length = r.lookahead);
|
|
18021
17935
|
}
|
|
18022
|
-
if (r.match_length >= st ? (t =
|
|
17936
|
+
if (r.match_length >= st ? (t = as(r, 1, r.match_length - st), r.lookahead -= r.match_length, r.strstart += r.match_length, r.match_length = 0) : (t = as(r, 0, r.window[r.strstart]), r.lookahead--, r.strstart++), t && (Or(r, !1), r.strm.avail_out === 0))
|
|
18023
17937
|
return gr;
|
|
18024
17938
|
}
|
|
18025
|
-
return r.insert = 0, e === Hr ? (Or(r, !0), r.strm.avail_out === 0 ?
|
|
17939
|
+
return r.insert = 0, e === Hr ? (Or(r, !0), r.strm.avail_out === 0 ? Ls : ka) : r.sym_next && (Or(r, !1), r.strm.avail_out === 0) ? gr : Pa;
|
|
18026
17940
|
}, QT = (r, e) => {
|
|
18027
17941
|
let t;
|
|
18028
17942
|
for (; ; ) {
|
|
18029
17943
|
if (r.lookahead === 0 && (_a(r), r.lookahead === 0)) {
|
|
18030
|
-
if (e ===
|
|
17944
|
+
if (e === ns)
|
|
18031
17945
|
return gr;
|
|
18032
17946
|
break;
|
|
18033
17947
|
}
|
|
18034
|
-
if (r.match_length = 0, t =
|
|
17948
|
+
if (r.match_length = 0, t = as(r, 0, r.window[r.strstart]), r.lookahead--, r.strstart++, t && (Or(r, !1), r.strm.avail_out === 0))
|
|
18035
17949
|
return gr;
|
|
18036
17950
|
}
|
|
18037
|
-
return r.insert = 0, e === Hr ? (Or(r, !0), r.strm.avail_out === 0 ?
|
|
17951
|
+
return r.insert = 0, e === Hr ? (Or(r, !0), r.strm.avail_out === 0 ? Ls : ka) : r.sym_next && (Or(r, !1), r.strm.avail_out === 0) ? gr : Pa;
|
|
18038
17952
|
};
|
|
18039
17953
|
function fi(r, e, t, i, s) {
|
|
18040
17954
|
this.good_length = r, this.max_lazy = e, this.nice_length = t, this.max_chain = i, this.func = s;
|
|
@@ -18049,17 +17963,17 @@ const Va = [
|
|
|
18049
17963
|
/* 2 */
|
|
18050
17964
|
new fi(4, 6, 32, 32, P0),
|
|
18051
17965
|
/* 3 */
|
|
18052
|
-
new fi(4, 4, 16, 16,
|
|
17966
|
+
new fi(4, 4, 16, 16, sa),
|
|
18053
17967
|
/* 4 lazy matches */
|
|
18054
|
-
new fi(8, 16, 32, 32,
|
|
17968
|
+
new fi(8, 16, 32, 32, sa),
|
|
18055
17969
|
/* 5 */
|
|
18056
|
-
new fi(8, 16, 128, 128,
|
|
17970
|
+
new fi(8, 16, 128, 128, sa),
|
|
18057
17971
|
/* 6 */
|
|
18058
|
-
new fi(8, 32, 128, 256,
|
|
17972
|
+
new fi(8, 32, 128, 256, sa),
|
|
18059
17973
|
/* 7 */
|
|
18060
|
-
new fi(32, 128, 258, 1024,
|
|
17974
|
+
new fi(32, 128, 258, 1024, sa),
|
|
18061
17975
|
/* 8 */
|
|
18062
|
-
new fi(32, 258, 258, 4096,
|
|
17976
|
+
new fi(32, 258, 258, 4096, sa)
|
|
18063
17977
|
/* 9 max compression */
|
|
18064
17978
|
], xT = (r) => {
|
|
18065
17979
|
r.window_size = 2 * r.w_size, rs(r.head), r.max_lazy_match = Va[r.level].max_lazy, r.good_match = Va[r.level].good_length, r.nice_match = Va[r.level].nice_length, r.max_chain_length = Va[r.level].max_chain, r.strstart = 0, r.block_start = 0, r.lookahead = 0, r.insert = 0, r.match_length = r.prev_length = st - 1, r.match_available = 0, r.ins_h = 0;
|
|
@@ -18073,16 +17987,16 @@ const _o = (r) => {
|
|
|
18073
17987
|
const e = r.state;
|
|
18074
17988
|
return !e || e.strm !== r || e.status !== ya && //#ifdef GZIP
|
|
18075
17989
|
e.status !== nu && //#endif
|
|
18076
|
-
e.status !== P1 && e.status !== k1 && e.status !== E1 && e.status !== A1 && e.status !==
|
|
17990
|
+
e.status !== P1 && e.status !== k1 && e.status !== E1 && e.status !== A1 && e.status !== Es && e.status !== Ba ? 1 : 0;
|
|
18077
17991
|
}, Dp = (r) => {
|
|
18078
17992
|
if (_o(r))
|
|
18079
|
-
return
|
|
17993
|
+
return As(r, vi);
|
|
18080
17994
|
r.total_in = r.total_out = 0, r.data_type = LT;
|
|
18081
17995
|
const e = r.state;
|
|
18082
17996
|
return e.pending = 0, e.pending_out = 0, e.wrap < 0 && (e.wrap = -e.wrap), e.status = //#ifdef GZIP
|
|
18083
17997
|
e.wrap === 2 ? nu : (
|
|
18084
17998
|
//#endif
|
|
18085
|
-
e.wrap ? ya :
|
|
17999
|
+
e.wrap ? ya : Es
|
|
18086
18000
|
), r.adler = e.wrap === 2 ? 0 : 1, e.last_flush = -2, PT(e), sr;
|
|
18087
18001
|
}, Np = (r) => {
|
|
18088
18002
|
const e = Dp(r);
|
|
@@ -18092,27 +18006,27 @@ const _o = (r) => {
|
|
|
18092
18006
|
return vi;
|
|
18093
18007
|
let n = 1;
|
|
18094
18008
|
if (e === IT && (e = 6), i < 0 ? (n = 0, i = -i) : i > 15 && (n = 2, i -= 16), s < 1 || s > FT || t !== Gl || i < 8 || i > 15 || e < 0 || e > 9 || a < 0 || a > DT || i === 8 && n !== 1)
|
|
18095
|
-
return
|
|
18009
|
+
return As(r, vi);
|
|
18096
18010
|
i === 8 && (i = 9);
|
|
18097
18011
|
const o = new eC();
|
|
18098
18012
|
return r.state = o, o.strm = r, o.status = ya, o.wrap = n, o.gzhead = null, o.w_bits = i, o.w_size = 1 << o.w_bits, o.w_mask = o.w_size - 1, o.hash_bits = s + 7, o.hash_size = 1 << o.hash_bits, o.hash_mask = o.hash_size - 1, o.hash_shift = ~~((o.hash_bits + st - 1) / st), o.window = new Uint8Array(o.w_size * 2), o.head = new Uint16Array(o.hash_size), o.prev = new Uint16Array(o.w_size), o.lit_bufsize = 1 << s + 6, o.pending_buf_size = o.lit_bufsize * 4, o.pending_buf = new Uint8Array(o.pending_buf_size), o.sym_buf = o.lit_bufsize, o.sym_end = (o.lit_bufsize - 1) * 3, o.level = e, o.strategy = a, o.method = t, Np(r);
|
|
18099
18013
|
}, rC = (r, e) => Lp(r, e, Gl, UT, GT, NT), iC = (r, e) => {
|
|
18100
18014
|
if (_o(r) || e > i2 || e < 0)
|
|
18101
|
-
return r ?
|
|
18015
|
+
return r ? As(r, vi) : vi;
|
|
18102
18016
|
const t = r.state;
|
|
18103
18017
|
if (!r.output || r.avail_in !== 0 && !r.input || t.status === Ba && e !== Hr)
|
|
18104
|
-
return
|
|
18018
|
+
return As(r, r.avail_out === 0 ? z0 : vi);
|
|
18105
18019
|
const i = t.last_flush;
|
|
18106
18020
|
if (t.last_flush = e, t.pending !== 0) {
|
|
18107
18021
|
if (Mr(r), r.avail_out === 0)
|
|
18108
18022
|
return t.last_flush = -1, sr;
|
|
18109
18023
|
} else if (r.avail_in === 0 && a2(e) <= a2(i) && e !== Hr)
|
|
18110
|
-
return
|
|
18024
|
+
return As(r, z0);
|
|
18111
18025
|
if (t.status === Ba && r.avail_in !== 0)
|
|
18112
|
-
return
|
|
18113
|
-
if (t.status === ya && t.wrap === 0 && (t.status =
|
|
18026
|
+
return As(r, z0);
|
|
18027
|
+
if (t.status === ya && t.wrap === 0 && (t.status = Es), t.status === ya) {
|
|
18114
18028
|
let s = Gl + (t.w_bits - 8 << 4) << 8, a = -1;
|
|
18115
|
-
if (t.strategy >= Uo || t.level < 2 ? a = 0 : t.level < 6 ? a = 1 : t.level === 6 ? a = 2 : a = 3, s |= a << 6, t.strstart !== 0 && (s |= YT), s += 31 - s % 31, La(t, s), t.strstart !== 0 && (La(t, r.adler >>> 16), La(t, r.adler & 65535)), r.adler = 1, t.status =
|
|
18029
|
+
if (t.strategy >= Uo || t.level < 2 ? a = 0 : t.level < 6 ? a = 1 : t.level === 6 ? a = 2 : a = 3, s |= a << 6, t.strstart !== 0 && (s |= YT), s += 31 - s % 31, La(t, s), t.strstart !== 0 && (La(t, r.adler >>> 16), La(t, r.adler & 65535)), r.adler = 1, t.status = Es, Mr(r), t.pending !== 0)
|
|
18116
18030
|
return t.last_flush = -1, sr;
|
|
18117
18031
|
}
|
|
18118
18032
|
if (t.status === nu) {
|
|
@@ -18121,7 +18035,7 @@ const _o = (r) => {
|
|
|
18121
18035
|
t,
|
|
18122
18036
|
(t.gzhead.text ? 1 : 0) + (t.gzhead.hcrc ? 2 : 0) + (t.gzhead.extra ? 4 : 0) + (t.gzhead.name ? 8 : 0) + (t.gzhead.comment ? 16 : 0)
|
|
18123
18037
|
), pt(t, t.gzhead.time & 255), pt(t, t.gzhead.time >> 8 & 255), pt(t, t.gzhead.time >> 16 & 255), pt(t, t.gzhead.time >> 24 & 255), pt(t, t.level === 9 ? 2 : t.strategy >= Uo || t.level < 2 ? 4 : 0), pt(t, t.gzhead.os & 255), t.gzhead.extra && t.gzhead.extra.length && (pt(t, t.gzhead.extra.length & 255), pt(t, t.gzhead.extra.length >> 8 & 255)), t.gzhead.hcrc && (r.adler = xt(r.adler, t.pending_buf, t.pending, 0)), t.gzindex = 0, t.status = P1;
|
|
18124
|
-
else if (pt(t, 0), pt(t, 0), pt(t, 0), pt(t, 0), pt(t, 0), pt(t, t.level === 9 ? 2 : t.strategy >= Uo || t.level < 2 ? 4 : 0), pt(t, XT), t.status =
|
|
18038
|
+
else if (pt(t, 0), pt(t, 0), pt(t, 0), pt(t, 0), pt(t, 0), pt(t, t.level === 9 ? 2 : t.strategy >= Uo || t.level < 2 ? 4 : 0), pt(t, XT), t.status = Es, Mr(r), t.pending !== 0)
|
|
18125
18039
|
return t.last_flush = -1, sr;
|
|
18126
18040
|
}
|
|
18127
18041
|
if (t.status === P1) {
|
|
@@ -18174,12 +18088,12 @@ const _o = (r) => {
|
|
|
18174
18088
|
return t.last_flush = -1, sr;
|
|
18175
18089
|
pt(t, r.adler & 255), pt(t, r.adler >> 8 & 255), r.adler = 0;
|
|
18176
18090
|
}
|
|
18177
|
-
if (t.status =
|
|
18091
|
+
if (t.status = Es, Mr(r), t.pending !== 0)
|
|
18178
18092
|
return t.last_flush = -1, sr;
|
|
18179
18093
|
}
|
|
18180
|
-
if (r.avail_in !== 0 || t.lookahead !== 0 || e !==
|
|
18094
|
+
if (r.avail_in !== 0 || t.lookahead !== 0 || e !== ns && t.status !== Ba) {
|
|
18181
18095
|
let s = t.level === 0 ? $p(t, e) : t.strategy === Uo ? QT(t, e) : t.strategy === $T ? JT(t, e) : Va[t.level].func(t, e);
|
|
18182
|
-
if ((s ===
|
|
18096
|
+
if ((s === Ls || s === ka) && (t.status = Ba), s === gr || s === Ls)
|
|
18183
18097
|
return r.avail_out === 0 && (t.last_flush = -1), sr;
|
|
18184
18098
|
if (s === Pa && (e === AT ? ET(t) : e !== i2 && (S1(t, 0, 0, !1), e === MT && (rs(t.head), t.lookahead === 0 && (t.strstart = 0, t.block_start = 0, t.insert = 0))), Mr(r), r.avail_out === 0))
|
|
18185
18099
|
return t.last_flush = -1, sr;
|
|
@@ -18189,7 +18103,7 @@ const _o = (r) => {
|
|
|
18189
18103
|
if (_o(r))
|
|
18190
18104
|
return vi;
|
|
18191
18105
|
const e = r.state.status;
|
|
18192
|
-
return r.state = null, e ===
|
|
18106
|
+
return r.state = null, e === Es ? As(r, RT) : sr;
|
|
18193
18107
|
}, aC = (r, e) => {
|
|
18194
18108
|
let t = e.length;
|
|
18195
18109
|
if (_o(r))
|
|
@@ -18206,7 +18120,7 @@ const _o = (r) => {
|
|
|
18206
18120
|
for (r.avail_in = t, r.next_in = 0, r.input = e, _a(i); i.lookahead >= st; ) {
|
|
18207
18121
|
let l = i.strstart, h = i.lookahead - (st - 1);
|
|
18208
18122
|
do
|
|
18209
|
-
i.ins_h =
|
|
18123
|
+
i.ins_h = os(i, i.ins_h, i.window[l + st - 1]), i.prev[l & i.w_mask] = i.head[i.ins_h], i.head[i.ins_h] = l, l++;
|
|
18210
18124
|
while (--h);
|
|
18211
18125
|
i.strstart = l, i.lookahead = st - 1, _a(i);
|
|
18212
18126
|
}
|
|
@@ -18329,7 +18243,7 @@ const Gp = Object.prototype.toString, {
|
|
|
18329
18243
|
Z_DEFAULT_COMPRESSION: EC,
|
|
18330
18244
|
Z_DEFAULT_STRATEGY: AC,
|
|
18331
18245
|
Z_DEFLATED: MC
|
|
18332
|
-
} =
|
|
18246
|
+
} = js;
|
|
18333
18247
|
function To(r) {
|
|
18334
18248
|
this.options = jl.assign({
|
|
18335
18249
|
level: EC,
|
|
@@ -18350,11 +18264,11 @@ function To(r) {
|
|
|
18350
18264
|
e.strategy
|
|
18351
18265
|
);
|
|
18352
18266
|
if (t !== _l)
|
|
18353
|
-
throw new Error(
|
|
18267
|
+
throw new Error(Ns[t]);
|
|
18354
18268
|
if (e.header && en.deflateSetHeader(this.strm, e.header), e.dictionary) {
|
|
18355
18269
|
let i;
|
|
18356
18270
|
if (typeof e.dictionary == "string" ? i = _n.string2buf(e.dictionary) : Gp.call(e.dictionary) === "[object ArrayBuffer]" ? i = new Uint8Array(e.dictionary) : i = e.dictionary, t = en.deflateSetDictionary(this.strm, i), t !== _l)
|
|
18357
|
-
throw new Error(
|
|
18271
|
+
throw new Error(Ns[t]);
|
|
18358
18272
|
this._dict_set = !0;
|
|
18359
18273
|
}
|
|
18360
18274
|
}
|
|
@@ -18392,7 +18306,7 @@ To.prototype.onEnd = function(r) {
|
|
|
18392
18306
|
function ou(r, e) {
|
|
18393
18307
|
const t = new To(e);
|
|
18394
18308
|
if (t.push(r, !0), t.err)
|
|
18395
|
-
throw t.msg ||
|
|
18309
|
+
throw t.msg || Ns[t.err];
|
|
18396
18310
|
return t.result;
|
|
18397
18311
|
}
|
|
18398
18312
|
function RC(r, e) {
|
|
@@ -18401,7 +18315,7 @@ function RC(r, e) {
|
|
|
18401
18315
|
function IC(r, e) {
|
|
18402
18316
|
return e = e || {}, e.gzip = !0, ou(r, e);
|
|
18403
18317
|
}
|
|
18404
|
-
var OC = To, $C = ou, DC = RC, NC = IC, LC =
|
|
18318
|
+
var OC = To, $C = ou, DC = RC, NC = IC, LC = js, FC = {
|
|
18405
18319
|
Deflate: OC,
|
|
18406
18320
|
deflate: $C,
|
|
18407
18321
|
deflateRaw: DC,
|
|
@@ -18499,7 +18413,7 @@ var GC = function(e, t) {
|
|
|
18499
18413
|
} while (i < s && a < o);
|
|
18500
18414
|
I = p >> 3, i -= I, p -= I << 3, f &= (1 << p) - 1, e.next_in = i, e.next_out = a, e.avail_in = i < s ? 5 + (s - i) : 5 - (i - s), e.avail_out = a < o ? 257 + (o - a) : 257 - (a - o), V.hold = f, V.bits = p;
|
|
18501
18415
|
};
|
|
18502
|
-
const
|
|
18416
|
+
const aa = 15, n2 = 852, o2 = 592, l2 = 0, k0 = 1, h2 = 2, jC = new Uint16Array([
|
|
18503
18417
|
/* Length codes 257..285 base */
|
|
18504
18418
|
3,
|
|
18505
18419
|
4,
|
|
@@ -18636,24 +18550,24 @@ const na = 15, n2 = 852, o2 = 592, l2 = 0, k0 = 1, h2 = 2, jC = new Uint16Array(
|
|
|
18636
18550
|
]), WC = (r, e, t, i, s, a, n, o) => {
|
|
18637
18551
|
const l = o.bits;
|
|
18638
18552
|
let h = 0, u = 0, d = 0, c = 0, f = 0, p = 0, g = 0, y = 0, _ = 0, T = 0, m, w, I, k, O, $ = null, G;
|
|
18639
|
-
const U = new Uint16Array(
|
|
18553
|
+
const U = new Uint16Array(aa + 1), V = new Uint16Array(aa + 1);
|
|
18640
18554
|
let Y = null, ee, x, ne;
|
|
18641
|
-
for (h = 0; h <=
|
|
18555
|
+
for (h = 0; h <= aa; h++)
|
|
18642
18556
|
U[h] = 0;
|
|
18643
18557
|
for (u = 0; u < i; u++)
|
|
18644
18558
|
U[e[t + u]]++;
|
|
18645
|
-
for (f = l, c =
|
|
18559
|
+
for (f = l, c = aa; c >= 1 && U[c] === 0; c--)
|
|
18646
18560
|
;
|
|
18647
18561
|
if (f > c && (f = c), c === 0)
|
|
18648
18562
|
return s[a++] = 1 << 24 | 64 << 16 | 0, s[a++] = 1 << 24 | 64 << 16 | 0, o.bits = 1, 0;
|
|
18649
18563
|
for (d = 1; d < c && U[d] === 0; d++)
|
|
18650
18564
|
;
|
|
18651
|
-
for (f < d && (f = d), y = 1, h = 1; h <=
|
|
18565
|
+
for (f < d && (f = d), y = 1, h = 1; h <= aa; h++)
|
|
18652
18566
|
if (y <<= 1, y -= U[h], y < 0)
|
|
18653
18567
|
return -1;
|
|
18654
18568
|
if (y > 0 && (r === l2 || c !== 1))
|
|
18655
18569
|
return -1;
|
|
18656
|
-
for (V[1] = 0, h = 1; h <
|
|
18570
|
+
for (V[1] = 0, h = 1; h < aa; h++)
|
|
18657
18571
|
V[h + 1] = V[h] + U[h];
|
|
18658
18572
|
for (u = 0; u < i; u++)
|
|
18659
18573
|
e[t + u] !== 0 && (n[V[e[t + u]]++] = u);
|
|
@@ -18686,7 +18600,7 @@ const qC = 0, jp = 1, Bp = 2, {
|
|
|
18686
18600
|
Z_FINISH: u2,
|
|
18687
18601
|
Z_BLOCK: YC,
|
|
18688
18602
|
Z_TREES: jo,
|
|
18689
|
-
Z_OK:
|
|
18603
|
+
Z_OK: Fs,
|
|
18690
18604
|
Z_STREAM_END: XC,
|
|
18691
18605
|
Z_NEED_DICT: KC,
|
|
18692
18606
|
Z_STREAM_ERROR: qr,
|
|
@@ -18694,28 +18608,28 @@ const qC = 0, jp = 1, Bp = 2, {
|
|
|
18694
18608
|
Z_MEM_ERROR: Hp,
|
|
18695
18609
|
Z_BUF_ERROR: ZC,
|
|
18696
18610
|
Z_DEFLATED: f2
|
|
18697
|
-
} =
|
|
18611
|
+
} = js, Bl = 16180, d2 = 16181, c2 = 16182, p2 = 16183, g2 = 16184, v2 = 16185, m2 = 16186, b2 = 16187, y2 = 16188, _2 = 16189, Tl = 16190, Ai = 16191, E0 = 16192, T2 = 16193, A0 = 16194, C2 = 16195, w2 = 16196, S2 = 16197, z2 = 16198, Bo = 16199, Vo = 16200, P2 = 16201, k2 = 16202, E2 = 16203, A2 = 16204, M2 = 16205, M0 = 16206, R2 = 16207, I2 = 16208, Pt = 16209, Wp = 16210, qp = 16211, JC = 852, QC = 592, xC = 15, ew = xC, O2 = (r) => (r >>> 24 & 255) + (r >>> 8 & 65280) + ((r & 65280) << 8) + ((r & 255) << 24);
|
|
18698
18612
|
function tw() {
|
|
18699
18613
|
this.strm = null, this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Uint16Array(320), this.work = new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
18700
18614
|
}
|
|
18701
|
-
const
|
|
18615
|
+
const Bs = (r) => {
|
|
18702
18616
|
if (!r)
|
|
18703
18617
|
return 1;
|
|
18704
18618
|
const e = r.state;
|
|
18705
18619
|
return !e || e.strm !== r || e.mode < Bl || e.mode > qp ? 1 : 0;
|
|
18706
18620
|
}, Yp = (r) => {
|
|
18707
|
-
if (
|
|
18621
|
+
if (Bs(r))
|
|
18708
18622
|
return qr;
|
|
18709
18623
|
const e = r.state;
|
|
18710
|
-
return r.total_in = r.total_out = e.total = 0, r.msg = "", e.wrap && (r.adler = e.wrap & 1), e.mode = Bl, e.last = 0, e.havedict = 0, e.flags = -1, e.dmax = 32768, e.head = null, e.hold = 0, e.bits = 0, e.lencode = e.lendyn = new Int32Array(JC), e.distcode = e.distdyn = new Int32Array(QC), e.sane = 1, e.back = -1,
|
|
18624
|
+
return r.total_in = r.total_out = e.total = 0, r.msg = "", e.wrap && (r.adler = e.wrap & 1), e.mode = Bl, e.last = 0, e.havedict = 0, e.flags = -1, e.dmax = 32768, e.head = null, e.hold = 0, e.bits = 0, e.lencode = e.lendyn = new Int32Array(JC), e.distcode = e.distdyn = new Int32Array(QC), e.sane = 1, e.back = -1, Fs;
|
|
18711
18625
|
}, Xp = (r) => {
|
|
18712
|
-
if (
|
|
18626
|
+
if (Bs(r))
|
|
18713
18627
|
return qr;
|
|
18714
18628
|
const e = r.state;
|
|
18715
18629
|
return e.wsize = 0, e.whave = 0, e.wnext = 0, Yp(r);
|
|
18716
18630
|
}, Kp = (r, e) => {
|
|
18717
18631
|
let t;
|
|
18718
|
-
if (
|
|
18632
|
+
if (Bs(r))
|
|
18719
18633
|
return qr;
|
|
18720
18634
|
const i = r.state;
|
|
18721
18635
|
return e < 0 ? (t = 0, e = -e) : (t = (e >> 4) + 5, e < 48 && (e &= 15)), e && (e < 8 || e > 15) ? qr : (i.window !== null && i.wbits !== e && (i.window = null), i.wrap = t, i.wbits = e, Xp(r));
|
|
@@ -18725,7 +18639,7 @@ const Vs = (r) => {
|
|
|
18725
18639
|
const t = new tw();
|
|
18726
18640
|
r.state = t, t.strm = r, t.window = null, t.mode = Bl;
|
|
18727
18641
|
const i = Kp(r, e);
|
|
18728
|
-
return i !==
|
|
18642
|
+
return i !== Fs && (r.state = null), i;
|
|
18729
18643
|
}, rw = (r) => Zp(r, ew);
|
|
18730
18644
|
let $2 = !0, R0, I0;
|
|
18731
18645
|
const iw = (r) => {
|
|
@@ -18757,9 +18671,9 @@ const iw = (r) => {
|
|
|
18757
18671
|
/* permutation of code lengths */
|
|
18758
18672
|
new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15])
|
|
18759
18673
|
);
|
|
18760
|
-
if (
|
|
18674
|
+
if (Bs(r) || !r.output || !r.input && r.avail_in !== 0)
|
|
18761
18675
|
return qr;
|
|
18762
|
-
t = r.state, t.mode === Ai && (t.mode = E0), n = r.next_out, s = r.output, l = r.avail_out, a = r.next_in, i = r.input, o = r.avail_in, h = t.hold, u = t.bits, d = o, c = l, $ =
|
|
18676
|
+
t = r.state, t.mode === Ai && (t.mode = E0), n = r.next_out, s = r.output, l = r.avail_out, a = r.next_in, i = r.input, o = r.avail_in, h = t.hold, u = t.bits, d = o, c = l, $ = Fs;
|
|
18763
18677
|
e:
|
|
18764
18678
|
for (; ; )
|
|
18765
18679
|
switch (t.mode) {
|
|
@@ -19178,21 +19092,21 @@ const iw = (r) => {
|
|
|
19178
19092
|
return qr;
|
|
19179
19093
|
}
|
|
19180
19094
|
return r.next_out = n, r.avail_out = l, r.next_in = a, r.avail_in = o, t.hold = h, t.bits = u, (t.wsize || c !== r.avail_out && t.mode < Pt && (t.mode < M0 || e !== u2)) && Jp(r, r.output, r.next_out, c - r.avail_out), d -= r.avail_in, c -= r.avail_out, r.total_in += d, r.total_out += c, t.total += c, t.wrap & 4 && c && (r.adler = t.check = /*UPDATE_CHECK(state.check, strm.next_out - _out, _out);*/
|
|
19181
|
-
t.flags ? xt(t.check, s, c, r.next_out - c) : bn(t.check, s, c, r.next_out - c)), r.data_type = t.bits + (t.last ? 64 : 0) + (t.mode === Ai ? 128 : 0) + (t.mode === Bo || t.mode === A0 ? 256 : 0), (d === 0 && c === 0 || e === u2) && $ ===
|
|
19095
|
+
t.flags ? xt(t.check, s, c, r.next_out - c) : bn(t.check, s, c, r.next_out - c)), r.data_type = t.bits + (t.last ? 64 : 0) + (t.mode === Ai ? 128 : 0) + (t.mode === Bo || t.mode === A0 ? 256 : 0), (d === 0 && c === 0 || e === u2) && $ === Fs && ($ = ZC), $;
|
|
19182
19096
|
}, aw = (r) => {
|
|
19183
|
-
if (
|
|
19097
|
+
if (Bs(r))
|
|
19184
19098
|
return qr;
|
|
19185
19099
|
let e = r.state;
|
|
19186
|
-
return e.window && (e.window = null), r.state = null,
|
|
19100
|
+
return e.window && (e.window = null), r.state = null, Fs;
|
|
19187
19101
|
}, nw = (r, e) => {
|
|
19188
|
-
if (
|
|
19102
|
+
if (Bs(r))
|
|
19189
19103
|
return qr;
|
|
19190
19104
|
const t = r.state;
|
|
19191
|
-
return t.wrap & 2 ? (t.head = e, e.done = !1,
|
|
19105
|
+
return t.wrap & 2 ? (t.head = e, e.done = !1, Fs) : qr;
|
|
19192
19106
|
}, ow = (r, e) => {
|
|
19193
19107
|
const t = e.length;
|
|
19194
19108
|
let i, s, a;
|
|
19195
|
-
return
|
|
19109
|
+
return Bs(r) || (i = r.state, i.wrap !== 0 && i.mode !== Tl) ? qr : i.mode === Tl && (s = 1, s = bn(s, e, t, 0), s !== i.check) ? Vp : (a = Jp(r, e, t, t), a ? (i.mode = Wp, Hp) : (i.havedict = 1, Fs));
|
|
19196
19110
|
};
|
|
19197
19111
|
var lw = Xp, hw = Kp, uw = Yp, fw = rw, dw = Zp, cw = sw, pw = aw, gw = nw, vw = ow, mw = "pako inflate (from Nodeca project)", $i = {
|
|
19198
19112
|
inflateReset: lw,
|
|
@@ -19219,7 +19133,7 @@ const Qp = Object.prototype.toString, {
|
|
|
19219
19133
|
Z_STREAM_ERROR: Cw,
|
|
19220
19134
|
Z_DATA_ERROR: D2,
|
|
19221
19135
|
Z_MEM_ERROR: ww
|
|
19222
|
-
} =
|
|
19136
|
+
} = js;
|
|
19223
19137
|
function Co(r) {
|
|
19224
19138
|
this.options = jl.assign({
|
|
19225
19139
|
chunkSize: 1024 * 64,
|
|
@@ -19233,9 +19147,9 @@ function Co(r) {
|
|
|
19233
19147
|
e.windowBits
|
|
19234
19148
|
);
|
|
19235
19149
|
if (t !== Tn)
|
|
19236
|
-
throw new Error(
|
|
19150
|
+
throw new Error(Ns[t]);
|
|
19237
19151
|
if (this.header = new yw(), $i.inflateGetHeader(this.strm, this.header), e.dictionary && (typeof e.dictionary == "string" ? e.dictionary = _n.string2buf(e.dictionary) : Qp.call(e.dictionary) === "[object ArrayBuffer]" && (e.dictionary = new Uint8Array(e.dictionary)), e.raw && (t = $i.inflateSetDictionary(this.strm, e.dictionary), t !== Tn)))
|
|
19238
|
-
throw new Error(
|
|
19152
|
+
throw new Error(Ns[t]);
|
|
19239
19153
|
}
|
|
19240
19154
|
Co.prototype.push = function(r, e) {
|
|
19241
19155
|
const t = this.strm, i = this.options.chunkSize, s = this.options.dictionary;
|
|
@@ -19276,13 +19190,13 @@ Co.prototype.onEnd = function(r) {
|
|
|
19276
19190
|
function lu(r, e) {
|
|
19277
19191
|
const t = new Co(e);
|
|
19278
19192
|
if (t.push(r), t.err)
|
|
19279
|
-
throw t.msg ||
|
|
19193
|
+
throw t.msg || Ns[t.err];
|
|
19280
19194
|
return t.result;
|
|
19281
19195
|
}
|
|
19282
19196
|
function Sw(r, e) {
|
|
19283
19197
|
return e = e || {}, e.raw = !0, lu(r, e);
|
|
19284
19198
|
}
|
|
19285
|
-
var zw = Co, Pw = lu, kw = Sw, Ew = lu, Aw =
|
|
19199
|
+
var zw = Co, Pw = lu, kw = Sw, Ew = lu, Aw = js, Mw = {
|
|
19286
19200
|
Inflate: zw,
|
|
19287
19201
|
inflate: Pw,
|
|
19288
19202
|
inflateRaw: kw,
|
|
@@ -19290,7 +19204,7 @@ var zw = Co, Pw = lu, kw = Sw, Ew = lu, Aw = Bs, Mw = {
|
|
|
19290
19204
|
constants: Aw
|
|
19291
19205
|
};
|
|
19292
19206
|
const { Deflate: Rw, deflate: Iw, deflateRaw: Ow, gzip: $w } = FC, { Inflate: Dw, inflate: Nw, inflateRaw: Lw, ungzip: Fw } = Mw;
|
|
19293
|
-
var Uw = Rw, Gw = Iw, jw = Ow, Bw = $w, Vw = Dw, Hw = Nw, Ww = Lw, qw = Fw, Yw =
|
|
19207
|
+
var Uw = Rw, Gw = Iw, jw = Ow, Bw = $w, Vw = Dw, Hw = Nw, Ww = Lw, qw = Fw, Yw = js, Xw = {
|
|
19294
19208
|
Deflate: Uw,
|
|
19295
19209
|
deflate: Gw,
|
|
19296
19210
|
deflateRaw: jw,
|
|
@@ -20566,7 +20480,7 @@ const Ho = /* @__PURE__ */ new Map(), xp = (r, e) => {
|
|
|
20566
20480
|
}, t.onerror = function(i) {
|
|
20567
20481
|
e(i, null);
|
|
20568
20482
|
}, t.src = r;
|
|
20569
|
-
},
|
|
20483
|
+
}, jR = (r, e) => {
|
|
20570
20484
|
for (let t = 0, i = r.length; t < i; t++) {
|
|
20571
20485
|
const s = r[t], { type: a } = s;
|
|
20572
20486
|
if (a.split("/")[0] !== "image")
|
|
@@ -20615,13 +20529,13 @@ const Ho = /* @__PURE__ */ new Map(), xp = (r, e) => {
|
|
|
20615
20529
|
);
|
|
20616
20530
|
return e(null, n);
|
|
20617
20531
|
});
|
|
20618
|
-
},
|
|
20532
|
+
}, BR = (r, e = 0, t = 0) => {
|
|
20619
20533
|
const i = document.createElement("canvas"), s = i.getContext("2d");
|
|
20620
20534
|
return i.width = e, i.height = t, s.drawImage(r, 0, 0, e, t), s.getImageData(0, 0, e, t);
|
|
20621
|
-
},
|
|
20535
|
+
}, VR = (r, e = 0, t = 0) => {
|
|
20622
20536
|
const i = document.createElement("canvas"), s = i.getContext("2d");
|
|
20623
20537
|
return i.width = e, i.height = t, s.drawImage(r, 0, 0, e, t), s.getImageData(0, 0, e, t);
|
|
20624
|
-
},
|
|
20538
|
+
}, HR = (r) => {
|
|
20625
20539
|
const e = r.width, t = r.height, i = e * t * 3, s = i + 54, a = [
|
|
20626
20540
|
// WORD bfType -- The file type signature; must be "BM"
|
|
20627
20541
|
66,
|
|
@@ -20723,10 +20637,10 @@ const Ho = /* @__PURE__ */ new Map(), xp = (r, e) => {
|
|
|
20723
20637
|
return btoa(g);
|
|
20724
20638
|
}
|
|
20725
20639
|
return f(a.concat(n)) + f(h);
|
|
20726
|
-
},
|
|
20640
|
+
}, WR = (r) => {
|
|
20727
20641
|
const { width: e, height: t } = r, i = document.createElement("canvas"), s = i.getContext("2d");
|
|
20728
20642
|
return i.width = e, i.height = t, s.putImageData(r, 0, 0, 0, 0, e, t), i.toDataURL("image/png");
|
|
20729
|
-
},
|
|
20643
|
+
}, qR = (r, e, t) => {
|
|
20730
20644
|
const { width: i, height: s } = r, a = document.createElement("canvas"), n = a.getContext("2d");
|
|
20731
20645
|
a.width = i, a.height = s, n.putImageData(r, 0, 0, 0, 0, i, s);
|
|
20732
20646
|
const o = `image/${e ? e.toLowerCase() : "png"}`;
|
|
@@ -20742,7 +20656,7 @@ const Ho = /* @__PURE__ */ new Map(), xp = (r, e) => {
|
|
|
20742
20656
|
t.onload = function(i) {
|
|
20743
20657
|
i.target ? e(null, i.target.result) : e("can't readAsDataURL", null);
|
|
20744
20658
|
}, t.readAsDataURL(r);
|
|
20745
|
-
},
|
|
20659
|
+
}, YR = (r, e) => {
|
|
20746
20660
|
e5(r, function(t, i) {
|
|
20747
20661
|
if (i) {
|
|
20748
20662
|
const s = new Image();
|
|
@@ -20751,7 +20665,7 @@ const Ho = /* @__PURE__ */ new Map(), xp = (r, e) => {
|
|
|
20751
20665
|
e(t);
|
|
20752
20666
|
});
|
|
20753
20667
|
};
|
|
20754
|
-
function
|
|
20668
|
+
function XR(r) {
|
|
20755
20669
|
const e = [], t = [], i = [];
|
|
20756
20670
|
let s = 0;
|
|
20757
20671
|
for (let l = 0, h = r.data.length; l < h; l += 4)
|
|
@@ -20776,7 +20690,7 @@ function D0(r) {
|
|
|
20776
20690
|
return;
|
|
20777
20691
|
return t[n];
|
|
20778
20692
|
}
|
|
20779
|
-
const
|
|
20693
|
+
const KR = (r) => {
|
|
20780
20694
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20781
20695
|
for (let n = 0; n < i; n++)
|
|
20782
20696
|
for (let o = 0; o < t; o++) {
|
|
@@ -20784,7 +20698,7 @@ const ZR = (r) => {
|
|
|
20784
20698
|
s[l] = e[(n * t + t - o - 1) * 4], s[l + 1] = e[(n * t + t - o - 1) * 4 + 1], s[l + 2] = e[(n * t + t - o - 1) * 4 + 2], s[l + 3] = e[(n * t + t - o - 1) * 4 + 3];
|
|
20785
20699
|
}
|
|
20786
20700
|
return new ImageData(s, t, i);
|
|
20787
|
-
},
|
|
20701
|
+
}, ZR = (r) => {
|
|
20788
20702
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20789
20703
|
for (let n = 0; n < i; n++)
|
|
20790
20704
|
for (let o = 0; o < t; o++) {
|
|
@@ -20792,7 +20706,7 @@ const ZR = (r) => {
|
|
|
20792
20706
|
s[l] = e[((i - n - 1) * t + o) * 4], s[l + 1] = e[((i - n - 1) * t + o) * 4 + 1], s[l + 2] = e[((i - n - 1) * t + o) * 4 + 2], s[l + 3] = e[((i - n - 1) * t + o) * 4 + 3];
|
|
20793
20707
|
}
|
|
20794
20708
|
return new ImageData(s, t, i);
|
|
20795
|
-
},
|
|
20709
|
+
}, JR = (r) => {
|
|
20796
20710
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20797
20711
|
for (let n = 0; n < t; n++)
|
|
20798
20712
|
for (let o = 0; o < i; o++) {
|
|
@@ -20800,7 +20714,7 @@ const ZR = (r) => {
|
|
|
20800
20714
|
s[l] = e[(o * t + t - n - 1) * 4], s[l + 1] = e[(o * t + t - n - 1) * 4 + 1], s[l + 2] = e[(o * t + t - n - 1) * 4 + 2], s[l + 3] = e[(o * t + t - n - 1) * 4 + 3];
|
|
20801
20715
|
}
|
|
20802
20716
|
return new ImageData(s, i, t);
|
|
20803
|
-
},
|
|
20717
|
+
}, QR = (r) => {
|
|
20804
20718
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20805
20719
|
for (let n = 0; n < t; n++)
|
|
20806
20720
|
for (let o = 0; o < i; o++) {
|
|
@@ -20808,7 +20722,7 @@ const ZR = (r) => {
|
|
|
20808
20722
|
s[l] = e[((i - o - 1) * t + n) * 4], s[l + 1] = e[((i - o - 1) * t + n) * 4 + 1], s[l + 2] = e[((i - o - 1) * t + n) * 4 + 2], s[l + 3] = e[((i - o - 1) * t + n) * 4 + 3];
|
|
20809
20723
|
}
|
|
20810
20724
|
return new ImageData(s, i, t);
|
|
20811
|
-
},
|
|
20725
|
+
}, xR = (r) => {
|
|
20812
20726
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20813
20727
|
for (let n = 0; n < i; n++)
|
|
20814
20728
|
for (let o = 0; o < t; o++) {
|
|
@@ -20816,7 +20730,7 @@ const ZR = (r) => {
|
|
|
20816
20730
|
s[l] = h, s[l + 1] = h, s[l + 2] = h, s[l + 3] = e[l + 3];
|
|
20817
20731
|
}
|
|
20818
20732
|
return new ImageData(s, t, i);
|
|
20819
|
-
},
|
|
20733
|
+
}, eI = (r) => {
|
|
20820
20734
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20821
20735
|
for (let n = 0; n < i; n++)
|
|
20822
20736
|
for (let o = 0; o < t; o++) {
|
|
@@ -20824,7 +20738,7 @@ const ZR = (r) => {
|
|
|
20824
20738
|
s[l] = h, s[l + 1] = h, s[l + 2] = h, s[l + 3] = e[l + 3];
|
|
20825
20739
|
}
|
|
20826
20740
|
return new ImageData(s, t, i);
|
|
20827
|
-
},
|
|
20741
|
+
}, tI = (r) => {
|
|
20828
20742
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20829
20743
|
for (let n = 0; n < i; n++)
|
|
20830
20744
|
for (let o = 0; o < t; o++) {
|
|
@@ -20832,7 +20746,7 @@ const ZR = (r) => {
|
|
|
20832
20746
|
s[l] = u, s[l + 1] = u, s[l + 2] = u, s[l + 3] = e[l + 3];
|
|
20833
20747
|
}
|
|
20834
20748
|
return new ImageData(s, t, i);
|
|
20835
|
-
},
|
|
20749
|
+
}, rI = (r) => {
|
|
20836
20750
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20837
20751
|
for (let n = 0; n < i; n++)
|
|
20838
20752
|
for (let o = 0; o < t; o++) {
|
|
@@ -20840,7 +20754,7 @@ const ZR = (r) => {
|
|
|
20840
20754
|
s[l] = 255 - e[l], s[l + 1] = 255 - e[l + 1], s[l + 2] = 255 - e[l + 2], s[l + 3] = e[l + 3];
|
|
20841
20755
|
}
|
|
20842
20756
|
return new ImageData(s, t, i);
|
|
20843
|
-
},
|
|
20757
|
+
}, iI = (r) => {
|
|
20844
20758
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20845
20759
|
for (let n = 0; n < i; n++)
|
|
20846
20760
|
for (let o = 0; o < t; o++) {
|
|
@@ -20848,7 +20762,7 @@ const ZR = (r) => {
|
|
|
20848
20762
|
s[l] = e[l], s[l + 1] = 0, s[l + 2] = 0, s[l + 3] = e[l + 3];
|
|
20849
20763
|
}
|
|
20850
20764
|
return new ImageData(s, t, i);
|
|
20851
|
-
},
|
|
20765
|
+
}, sI = (r) => {
|
|
20852
20766
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20853
20767
|
for (let n = 0; n < i; n++)
|
|
20854
20768
|
for (let o = 0; o < t; o++) {
|
|
@@ -20856,7 +20770,7 @@ const ZR = (r) => {
|
|
|
20856
20770
|
s[l] = 0, s[l + 1] = e[l + 1], s[l + 2] = 0, s[l + 3] = e[l + 3];
|
|
20857
20771
|
}
|
|
20858
20772
|
return new ImageData(s, t, i);
|
|
20859
|
-
},
|
|
20773
|
+
}, aI = (r) => {
|
|
20860
20774
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20861
20775
|
for (let n = 0; n < i; n++)
|
|
20862
20776
|
for (let o = 0; o < t; o++) {
|
|
@@ -20864,7 +20778,7 @@ const ZR = (r) => {
|
|
|
20864
20778
|
s[l] = 0, s[l + 1] = 0, s[l + 2] = e[l + 2], s[l + 3] = e[l + 3];
|
|
20865
20779
|
}
|
|
20866
20780
|
return new ImageData(s, t, i);
|
|
20867
|
-
},
|
|
20781
|
+
}, nI = (r) => {
|
|
20868
20782
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20869
20783
|
for (let n = 0; n < i; n++)
|
|
20870
20784
|
for (let o = 0; o < t; o++) {
|
|
@@ -20872,7 +20786,7 @@ const ZR = (r) => {
|
|
|
20872
20786
|
s[l] = e[l], s[l + 1] = e[l + 1], s[l + 2] = 0, s[l + 3] = e[l + 3];
|
|
20873
20787
|
}
|
|
20874
20788
|
return new ImageData(s, t, i);
|
|
20875
|
-
},
|
|
20789
|
+
}, oI = (r) => {
|
|
20876
20790
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20877
20791
|
for (let n = 0; n < i; n++)
|
|
20878
20792
|
for (let o = 0; o < t; o++) {
|
|
@@ -20880,7 +20794,7 @@ const ZR = (r) => {
|
|
|
20880
20794
|
s[l] = e[l], s[l + 1] = 0, s[l + 2] = e[l + 1], s[l + 3] = e[l + 3];
|
|
20881
20795
|
}
|
|
20882
20796
|
return new ImageData(s, t, i);
|
|
20883
|
-
},
|
|
20797
|
+
}, lI = (r) => {
|
|
20884
20798
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20885
20799
|
for (let n = 0; n < i; n++)
|
|
20886
20800
|
for (let o = 0; o < t; o++) {
|
|
@@ -20888,7 +20802,7 @@ const ZR = (r) => {
|
|
|
20888
20802
|
s[l] = 0, s[l + 1] = e[l + 1], s[l + 2] = e[l + 1], s[l + 3] = e[l + 3];
|
|
20889
20803
|
}
|
|
20890
20804
|
return new ImageData(s, t, i);
|
|
20891
|
-
},
|
|
20805
|
+
}, hI = (r) => {
|
|
20892
20806
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20893
20807
|
for (let n = 0; n < i; n++)
|
|
20894
20808
|
for (let o = 0; o < t; o++) {
|
|
@@ -20896,7 +20810,7 @@ const ZR = (r) => {
|
|
|
20896
20810
|
s[l] = e[l], s[l + 1] = h, s[l + 2] = h, s[l + 3] = e[l + 3];
|
|
20897
20811
|
}
|
|
20898
20812
|
return new ImageData(s, t, i);
|
|
20899
|
-
},
|
|
20813
|
+
}, uI = (r) => {
|
|
20900
20814
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20901
20815
|
for (let n = 0; n < i; n++)
|
|
20902
20816
|
for (let o = 0; o < t; o++) {
|
|
@@ -20904,7 +20818,7 @@ const ZR = (r) => {
|
|
|
20904
20818
|
s[l] = h, s[l + 1] = e[l + 1], s[l + 2] = h, s[l + 3] = e[l + 3];
|
|
20905
20819
|
}
|
|
20906
20820
|
return new ImageData(s, t, i);
|
|
20907
|
-
},
|
|
20821
|
+
}, fI = (r) => {
|
|
20908
20822
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20909
20823
|
for (let n = 0; n < i; n++)
|
|
20910
20824
|
for (let o = 0; o < t; o++) {
|
|
@@ -20912,7 +20826,7 @@ const ZR = (r) => {
|
|
|
20912
20826
|
s[l] = h, s[l + 1] = h, s[l + 2] = e[l + 2], s[l + 3] = e[l + 3];
|
|
20913
20827
|
}
|
|
20914
20828
|
return new ImageData(s, t, i);
|
|
20915
|
-
},
|
|
20829
|
+
}, dI = (r) => t5(r, [-1, -1, -1, -1, 9, -1, -1, -1, -1]), cI = (r) => t5(r, [-1, -1, -1, -1, 8, -1, -1, -1, -1]), pI = (r) => {
|
|
20916
20830
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20917
20831
|
for (let n = 0; n < i; n++)
|
|
20918
20832
|
for (let o = 0; o < t; o++) {
|
|
@@ -20920,7 +20834,7 @@ const ZR = (r) => {
|
|
|
20920
20834
|
s[l] = e[l], s[l + 1] = e[l + 1], s[l + 2] = e[l + 2], s[l + 3] = 255;
|
|
20921
20835
|
}
|
|
20922
20836
|
return new ImageData(s, t, i);
|
|
20923
|
-
},
|
|
20837
|
+
}, gI = (r) => {
|
|
20924
20838
|
const { data: e, width: t, height: i } = r, s = new Uint8ClampedArray(e.length);
|
|
20925
20839
|
for (let n = 0; n < i; n++)
|
|
20926
20840
|
for (let o = 0; o < t; o++) {
|
|
@@ -20941,7 +20855,7 @@ const ZR = (r) => {
|
|
|
20941
20855
|
}
|
|
20942
20856
|
}
|
|
20943
20857
|
return new ImageData(s, t, i);
|
|
20944
|
-
},
|
|
20858
|
+
}, vI = (r, e, t, i, s, a = !1, n) => {
|
|
20945
20859
|
const { data: o, width: l, height: h } = r;
|
|
20946
20860
|
let u = s, d = i, c = e, f = t;
|
|
20947
20861
|
if (u < 0 ? u = 0 : u > l && (u = l), d < 0 ? d = 0 : d > h && (d = h), c < 1 ? c = 1 : c > l && (c = l), f < 1 ? f = 1 : f > h && (f = h), u + c > l && (c = l - u), d + f > h && (f = h - d), a) {
|
|
@@ -20961,7 +20875,7 @@ const ZR = (r) => {
|
|
|
20961
20875
|
}
|
|
20962
20876
|
return new ImageData(p, c, f);
|
|
20963
20877
|
}
|
|
20964
|
-
},
|
|
20878
|
+
}, mI = (r, e, t, i) => {
|
|
20965
20879
|
const { data: s, width: a, height: n } = r;
|
|
20966
20880
|
let o = e;
|
|
20967
20881
|
o > Math.floor(a / 2) && (o = Math.floor(a / 2)), o > Math.floor(n / 2) && (o = Math.floor(n / 2)), o < 0 && (o = 0);
|
|
@@ -20981,12 +20895,12 @@ const ZR = (r) => {
|
|
|
20981
20895
|
))), Math.round(f) > o ? (l[c] = 255, l[c + 1] = 255, l[c + 2] = 255, l[c + 3] = i || t.toUpperCase() === "PNG" ? 0 : 255) : (l[c] = s[c], l[c + 1] = s[c + 1], l[c + 2] = s[c + 2], l[c + 3] = i || t.toUpperCase() === "PNG" ? s[c + 3] : 255);
|
|
20982
20896
|
}
|
|
20983
20897
|
return new ImageData(l, a, n);
|
|
20984
|
-
},
|
|
20898
|
+
}, bI = (r, e, t, i, s, a = 1e4) => {
|
|
20985
20899
|
const n = new Image();
|
|
20986
20900
|
n.src = r;
|
|
20987
20901
|
const o = document.createElement("canvas"), l = o.getContext("2d");
|
|
20988
20902
|
return o.width = a, o.height = a, l.drawImage(n, 0, 0, e, t, 0, 0, i, s), l.getImageData(0, 0, i, s);
|
|
20989
|
-
},
|
|
20903
|
+
}, yI = (r, e) => {
|
|
20990
20904
|
const { data: t, width: i, height: s } = r, a = new Uint8ClampedArray(t.length);
|
|
20991
20905
|
for (let o = 0; o < s; o++)
|
|
20992
20906
|
for (let l = 0; l < i; l++) {
|
|
@@ -21003,7 +20917,7 @@ const ZR = (r) => {
|
|
|
21003
20917
|
), a[h + 3] = t[h + 3];
|
|
21004
20918
|
}
|
|
21005
20919
|
return new ImageData(a, i, s);
|
|
21006
|
-
},
|
|
20920
|
+
}, _I = (r, e, t = !1) => {
|
|
21007
20921
|
const { data: i, width: s, height: a } = r, n = new Uint8ClampedArray(i.length);
|
|
21008
20922
|
for (let l = 0; l < a; l++)
|
|
21009
20923
|
for (let h = 0; h < s; h++) {
|
|
@@ -21013,7 +20927,7 @@ const ZR = (r) => {
|
|
|
21013
20927
|
t ? d = Math.max(Math.min(Math.floor(255 * e), 255), 0) : d = Math.max(Math.min(Math.floor(d + 255 * e), 255), 0), n[u + 3] = d;
|
|
21014
20928
|
}
|
|
21015
20929
|
return new ImageData(n, s, a);
|
|
21016
|
-
},
|
|
20930
|
+
}, TI = (r, e, t, i) => {
|
|
21017
20931
|
const { data: s, width: a, height: n } = r, {
|
|
21018
20932
|
data: o,
|
|
21019
20933
|
width: l,
|
|
@@ -21043,7 +20957,7 @@ const ZR = (r) => {
|
|
|
21043
20957
|
}
|
|
21044
20958
|
}
|
|
21045
20959
|
return new ImageData(c, a, n);
|
|
21046
|
-
},
|
|
20960
|
+
}, CI = (r, e, t, i, s, a = 10) => {
|
|
21047
20961
|
const { data: n, width: o, height: l } = r;
|
|
21048
20962
|
let h = s, u = i, d = e, c = t;
|
|
21049
20963
|
h < 0 ? h = 0 : h > o && (h = o), u < 0 ? u = 0 : u > l && (u = l), d < 1 ? d = 1 : d > o && (d = o), c < 1 ? c = 1 : c > l && (c = l), h + d > o && (d = o - h), u + c > l && (c = l - u);
|
|
@@ -21065,7 +20979,7 @@ const ZR = (r) => {
|
|
|
21065
20979
|
f[_] = n[_], f[_ + 1] = n[_ + 1], f[_ + 2] = n[_ + 2], f[_ + 3] = n[_ + 3];
|
|
21066
20980
|
}
|
|
21067
20981
|
return new ImageData(f, o, l);
|
|
21068
|
-
},
|
|
20982
|
+
}, wI = async (r, e, t, i, s, a) => {
|
|
21069
20983
|
const n = s / 100;
|
|
21070
20984
|
if (["JPG", "JPEG"].includes(i.toUpperCase())) {
|
|
21071
20985
|
const o = new Image();
|
|
@@ -21087,7 +21001,7 @@ const ZR = (r) => {
|
|
|
21087
21001
|
), h = new Blob([l]);
|
|
21088
21002
|
a && a(h);
|
|
21089
21003
|
}
|
|
21090
|
-
},
|
|
21004
|
+
}, SI = (r, e, t = {
|
|
21091
21005
|
backgroundColor: { r: 0, g: 0, b: 0, a: 255 },
|
|
21092
21006
|
changeIntoColor: { r: 0, g: 0, b: 0, a: 0 }
|
|
21093
21007
|
}) => {
|
|
@@ -21214,7 +21128,7 @@ const ZR = (r) => {
|
|
|
21214
21128
|
i[l * r + o] = h;
|
|
21215
21129
|
},
|
|
21216
21130
|
write(o) {
|
|
21217
|
-
o.writeString("GIF87a"), o.writeShort(r), o.writeShort(r), o.writeByte(128), o.writeByte(0), o.writeByte(0), o.writeByte(
|
|
21131
|
+
o.writeString("GIF87a"), o.writeShort(r), o.writeShort(r), o.writeByte(128), o.writeByte(0), o.writeByte(0), o.writeByte(ta("0x" + e[1] + e[2])), o.writeByte(ta("0x" + e[3] + e[4])), o.writeByte(ta("0x" + e[5] + e[6])), o.writeByte(ta("0x" + t[1] + t[2])), o.writeByte(ta("0x" + t[3] + t[4])), o.writeByte(ta("0x" + t[5] + t[6])), o.writeString(","), o.writeShort(0), o.writeShort(0), o.writeShort(r), o.writeShort(r), o.writeByte(0);
|
|
21218
21132
|
const l = 2, h = a(l);
|
|
21219
21133
|
o.writeByte(l);
|
|
21220
21134
|
let u = 0;
|
|
@@ -21762,7 +21676,7 @@ class Qw {
|
|
|
21762
21676
|
e.put(this.data.charCodeAt(t), 8);
|
|
21763
21677
|
}
|
|
21764
21678
|
}
|
|
21765
|
-
class
|
|
21679
|
+
class Ms {
|
|
21766
21680
|
static PAD0 = 236;
|
|
21767
21681
|
static PAD1 = 17;
|
|
21768
21682
|
typeNumber;
|
|
@@ -21818,7 +21732,7 @@ class Rs {
|
|
|
21818
21732
|
for (let s = 0; s < this.moduleCount; s++)
|
|
21819
21733
|
this.modules[i][s] = null;
|
|
21820
21734
|
}
|
|
21821
|
-
this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(e, t), this.typeNumber >= 7 && this.setupTypeNumber(e), this.dataCache == null && (this.dataCache =
|
|
21735
|
+
this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(e, t), this.typeNumber >= 7 && this.setupTypeNumber(e), this.dataCache == null && (this.dataCache = Ms.createData(
|
|
21822
21736
|
this.typeNumber,
|
|
21823
21737
|
this.errorCorrectLevel,
|
|
21824
21738
|
this.dataList
|
|
@@ -21924,9 +21838,9 @@ class Rs {
|
|
|
21924
21838
|
);
|
|
21925
21839
|
for (a.getLengthInBits() + 4 <= n * 8 && a.put(0, 4); a.getLengthInBits() % 8 != 0; )
|
|
21926
21840
|
a.putBit(!1);
|
|
21927
|
-
for (; !(a.getLengthInBits() >= n * 8 || (a.put(
|
|
21928
|
-
a.put(
|
|
21929
|
-
return
|
|
21841
|
+
for (; !(a.getLengthInBits() >= n * 8 || (a.put(Ms.PAD0, 8), a.getLengthInBits() >= n * 8)); )
|
|
21842
|
+
a.put(Ms.PAD1, 8);
|
|
21843
|
+
return Ms.createBytes(a, s);
|
|
21930
21844
|
}
|
|
21931
21845
|
static createBytes(e, t) {
|
|
21932
21846
|
let i = 0, s = 0, a = 0;
|
|
@@ -21959,8 +21873,8 @@ class Rs {
|
|
|
21959
21873
|
}
|
|
21960
21874
|
}
|
|
21961
21875
|
const L2 = Math.ceil, rn = Math.floor, F2 = Math.round;
|
|
21962
|
-
function
|
|
21963
|
-
const t = Pd(r), i = e?.ecc || "H", s = e?.size || 256, a = -1, n = e?.padding || 0, o = e?.color || "#000000", l = e?.background || "#ffffff", h = new
|
|
21876
|
+
function zI(r, e) {
|
|
21877
|
+
const t = Pd(r), i = e?.ecc || "H", s = e?.size || 256, a = -1, n = e?.padding || 0, o = e?.color || "#000000", l = e?.background || "#ffffff", h = new Ms(a, i);
|
|
21964
21878
|
h.addData(t), h.make();
|
|
21965
21879
|
const u = h.getModuleCount(), d = (s - n * 2) / u, c = n, f = s - n;
|
|
21966
21880
|
return Jw(s, o, l, function(p, g) {
|
|
@@ -21971,8 +21885,8 @@ function PI(r, e) {
|
|
|
21971
21885
|
return 1;
|
|
21972
21886
|
});
|
|
21973
21887
|
}
|
|
21974
|
-
function
|
|
21975
|
-
const t = e.x || 0, i = e.y || 0, s = Pd(r), a = e.ctx, n = e.ecc || "H", o = typeof e.size == "number" ? rn(e.size) : 256, l = e.padding || 0, h = -1, u = e.color || "#000000", d = e.background || "#ffffff", c = new
|
|
21888
|
+
function PI(r, e) {
|
|
21889
|
+
const t = e.x || 0, i = e.y || 0, s = Pd(r), a = e.ctx, n = e.ecc || "H", o = typeof e.size == "number" ? rn(e.size) : 256, l = e.padding || 0, h = -1, u = e.color || "#000000", d = e.background || "#ffffff", c = new Ms(h, n);
|
|
21976
21890
|
c.addData(s), c.make();
|
|
21977
21891
|
const f = c.getModuleCount(), p = (o - l * 2) / f;
|
|
21978
21892
|
a.fillStyle = d, a.fillRect(t, i, o, o);
|
|
@@ -22010,7 +21924,7 @@ function i5() {
|
|
|
22010
21924
|
r = new XMLHttpRequest();
|
|
22011
21925
|
return r;
|
|
22012
21926
|
}
|
|
22013
|
-
function
|
|
21927
|
+
function kI(r) {
|
|
22014
21928
|
if (!r.action)
|
|
22015
21929
|
return {
|
|
22016
21930
|
url: "",
|
|
@@ -22090,7 +22004,7 @@ Content-Type: ` + c?.type + `\r
|
|
|
22090
22004
|
boundary: a
|
|
22091
22005
|
};
|
|
22092
22006
|
}
|
|
22093
|
-
function
|
|
22007
|
+
function EI(r) {
|
|
22094
22008
|
return new Promise((e, t) => {
|
|
22095
22009
|
const {
|
|
22096
22010
|
method: i = "GET",
|
|
@@ -22169,7 +22083,7 @@ function AI(r) {
|
|
|
22169
22083
|
`) : u.send(JSON.stringify(a))) : (u.open(d, s, !0), c(), u.send(JSON.stringify(a)));
|
|
22170
22084
|
});
|
|
22171
22085
|
}
|
|
22172
|
-
function
|
|
22086
|
+
function AI(r, e) {
|
|
22173
22087
|
const t = i5();
|
|
22174
22088
|
t.open("HEAD", r), t.filepath = r, t.callback = e, t.onload = function() {
|
|
22175
22089
|
const i = parseFloat(
|
|
@@ -22198,10 +22112,10 @@ class xw {
|
|
|
22198
22112
|
this.subscribers.forEach((e) => e());
|
|
22199
22113
|
}
|
|
22200
22114
|
}
|
|
22201
|
-
function
|
|
22115
|
+
function MI(r) {
|
|
22202
22116
|
Cl = r, r(), Cl = null;
|
|
22203
22117
|
}
|
|
22204
|
-
function
|
|
22118
|
+
function RI(r) {
|
|
22205
22119
|
return Object.keys(r).forEach((e) => {
|
|
22206
22120
|
let t = r[e];
|
|
22207
22121
|
const i = R1(r, e);
|
|
@@ -22215,7 +22129,7 @@ function II(r) {
|
|
|
22215
22129
|
});
|
|
22216
22130
|
}), r;
|
|
22217
22131
|
}
|
|
22218
|
-
function
|
|
22132
|
+
function II(r) {
|
|
22219
22133
|
return new Proxy(r, {
|
|
22220
22134
|
get(e, t, i) {
|
|
22221
22135
|
return R1(r, t).depend(), Reflect.get(e, t, i);
|
|
@@ -22233,7 +22147,7 @@ typeof self > "u" && typeof process < "u" && process.hrtime ? Wa = function() {
|
|
|
22233
22147
|
} : typeof self < "u" && self.performance !== void 0 && self.performance.now !== void 0 ? Wa = self.performance.now.bind(self.performance) : Date.now !== void 0 ? Wa = Date.now : Wa = function() {
|
|
22234
22148
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
22235
22149
|
};
|
|
22236
|
-
const
|
|
22150
|
+
const ua = Wa;
|
|
22237
22151
|
class wo {
|
|
22238
22152
|
static _nextId = 0;
|
|
22239
22153
|
static nextId() {
|
|
@@ -22404,7 +22318,7 @@ const va = {
|
|
|
22404
22318
|
return e * Math.random() + t * r(i);
|
|
22405
22319
|
};
|
|
22406
22320
|
}
|
|
22407
|
-
},
|
|
22321
|
+
}, Rs = {
|
|
22408
22322
|
Utils: {
|
|
22409
22323
|
Linear: function(r, e, t) {
|
|
22410
22324
|
return (e - r) * t + r;
|
|
@@ -22421,7 +22335,7 @@ const va = {
|
|
|
22421
22335
|
};
|
|
22422
22336
|
}(),
|
|
22423
22337
|
Bernstein: function(r, e) {
|
|
22424
|
-
const t =
|
|
22338
|
+
const t = Rs.Utils.Factorial;
|
|
22425
22339
|
return t(r) / t(e) / t(r - e);
|
|
22426
22340
|
},
|
|
22427
22341
|
// 卡特穆尔·罗姆
|
|
@@ -22432,13 +22346,13 @@ const va = {
|
|
|
22432
22346
|
},
|
|
22433
22347
|
// 线性
|
|
22434
22348
|
Linear: function(r, e) {
|
|
22435
|
-
const t = r.length - 1, i = t * e, s = Math.floor(i), a =
|
|
22349
|
+
const t = r.length - 1, i = t * e, s = Math.floor(i), a = Rs.Utils.Linear;
|
|
22436
22350
|
return e < 0 ? a(r[0], r[1], i) : e > 1 ? a(r[t], r[t - 1], t - i) : a(r[s], r[s + 1 > t ? t : s + 1], i - s);
|
|
22437
22351
|
},
|
|
22438
22352
|
// 贝塞尔
|
|
22439
22353
|
Bezier: function(r, e) {
|
|
22440
22354
|
let t = 0;
|
|
22441
|
-
const i = r.length - 1, s = Math.pow, a =
|
|
22355
|
+
const i = r.length - 1, s = Math.pow, a = Rs.Utils.Bernstein;
|
|
22442
22356
|
for (let n = 0; n <= i; n++)
|
|
22443
22357
|
t += s(1 - e, i - n) * s(e, n) * r[n] * a(i, n);
|
|
22444
22358
|
return t;
|
|
@@ -22447,7 +22361,7 @@ const va = {
|
|
|
22447
22361
|
CatmullRom: function(r, e) {
|
|
22448
22362
|
const t = r.length - 1;
|
|
22449
22363
|
let i = t * e, s = Math.floor(i);
|
|
22450
|
-
const a =
|
|
22364
|
+
const a = Rs.Utils.CatmullRom;
|
|
22451
22365
|
return r[0] === r[t] ? (e < 0 && (s = Math.floor(i = t * (1 + e))), a(
|
|
22452
22366
|
r[(s - 1 + t) % t],
|
|
22453
22367
|
r[s],
|
|
@@ -22478,7 +22392,7 @@ let s5 = class {
|
|
|
22478
22392
|
remove(e) {
|
|
22479
22393
|
delete this._tweens[e.getId()], delete this._tweensAddedDuringUpdate[e.getId()];
|
|
22480
22394
|
}
|
|
22481
|
-
update(e =
|
|
22395
|
+
update(e = ua(), t = !1) {
|
|
22482
22396
|
let i = Object.keys(this._tweens);
|
|
22483
22397
|
if (i.length === 0)
|
|
22484
22398
|
return !1;
|
|
@@ -22531,7 +22445,7 @@ let eS = class {
|
|
|
22531
22445
|
// 缓动函数
|
|
22532
22446
|
_easingFunction = va.Linear.None;
|
|
22533
22447
|
// 插值函数
|
|
22534
|
-
_interpolationFunction =
|
|
22448
|
+
_interpolationFunction = Rs.Linear;
|
|
22535
22449
|
// 链式动画数组
|
|
22536
22450
|
_chainedTweens = [];
|
|
22537
22451
|
// 链式动画是否已停止
|
|
@@ -22569,7 +22483,7 @@ let eS = class {
|
|
|
22569
22483
|
duration(e = 1e3) {
|
|
22570
22484
|
return this._durationTime = e, this;
|
|
22571
22485
|
}
|
|
22572
|
-
start(e =
|
|
22486
|
+
start(e = ua()) {
|
|
22573
22487
|
if (this._isPlaying)
|
|
22574
22488
|
return this;
|
|
22575
22489
|
if (this._group && this._group.add(this), this._repeat = this._initialRepeat, this._reversed) {
|
|
@@ -22617,10 +22531,10 @@ let eS = class {
|
|
|
22617
22531
|
end() {
|
|
22618
22532
|
return this._goToEnd = !0, this.update(1 / 0), this;
|
|
22619
22533
|
}
|
|
22620
|
-
pause(e =
|
|
22534
|
+
pause(e = ua()) {
|
|
22621
22535
|
return this._isPaused || !this._isPlaying ? this : (this._isPaused = !0, this._pauseStartTime = e, this._group && this._group.remove(this), this);
|
|
22622
22536
|
}
|
|
22623
|
-
resume(e =
|
|
22537
|
+
resume(e = ua()) {
|
|
22624
22538
|
return !this._isPaused || !this._isPlaying ? this : (this._isPaused = !1, this._startTime += e - this._pauseStartTime, this._pauseStartTime = 0, this._group && this._group.add(this), this);
|
|
22625
22539
|
}
|
|
22626
22540
|
stopChainedTweens() {
|
|
@@ -22646,7 +22560,7 @@ let eS = class {
|
|
|
22646
22560
|
easing(e = va.Linear.None) {
|
|
22647
22561
|
return this._easingFunction = e, this;
|
|
22648
22562
|
}
|
|
22649
|
-
interpolation(e =
|
|
22563
|
+
interpolation(e = Rs.Linear) {
|
|
22650
22564
|
return this._interpolationFunction = e, this;
|
|
22651
22565
|
}
|
|
22652
22566
|
chain(...e) {
|
|
@@ -22673,7 +22587,7 @@ let eS = class {
|
|
|
22673
22587
|
/**
|
|
22674
22588
|
* @returns true if the tween is still playing after the update, false otherwise
|
|
22675
22589
|
*/
|
|
22676
|
-
update(e =
|
|
22590
|
+
update(e = ua(), t = !0) {
|
|
22677
22591
|
if (this._isPaused)
|
|
22678
22592
|
return !0;
|
|
22679
22593
|
let i, s;
|
|
@@ -22731,11 +22645,11 @@ let eS = class {
|
|
|
22731
22645
|
typeof i == "string" ? this._valuesStartRepeat[e] = this._valuesStartRepeat[e] + parseFloat(i) : this._valuesStartRepeat[e] = i, this._valuesEnd[e] = t;
|
|
22732
22646
|
}
|
|
22733
22647
|
};
|
|
22734
|
-
const tS = wo.nextId, rS = Yr.getAll.bind(Yr), iS = Yr.removeAll.bind(Yr), sS = Yr.add.bind(Yr), aS = Yr.remove.bind(Yr), nS = Yr.update.bind(Yr),
|
|
22735
|
-
now:
|
|
22648
|
+
const tS = wo.nextId, rS = Yr.getAll.bind(Yr), iS = Yr.removeAll.bind(Yr), sS = Yr.add.bind(Yr), aS = Yr.remove.bind(Yr), nS = Yr.update.bind(Yr), DI = {
|
|
22649
|
+
now: ua,
|
|
22736
22650
|
Sequence: wo,
|
|
22737
22651
|
Easing: va,
|
|
22738
|
-
Interpolation:
|
|
22652
|
+
Interpolation: Rs,
|
|
22739
22653
|
Group: s5,
|
|
22740
22654
|
Tween: eS,
|
|
22741
22655
|
nextId: tS,
|
|
@@ -22778,7 +22692,7 @@ class Vl extends Tt {
|
|
|
22778
22692
|
this.app.ctx.save(), e?.(this.app), t?.(this.app), this.app.ctx.translate(this.x, this.y), this.app.ctx.rotate(this.rotate), this.app.ctx.scale(this.scale, this.scale), i(this.app), this.app.ctx.restore();
|
|
22779
22693
|
}
|
|
22780
22694
|
}
|
|
22781
|
-
class
|
|
22695
|
+
class NI extends Vl {
|
|
22782
22696
|
constructor(e, t = { x: 0, y: 0 }) {
|
|
22783
22697
|
super(e, t);
|
|
22784
22698
|
}
|
|
@@ -22794,7 +22708,7 @@ class LI extends Vl {
|
|
|
22794
22708
|
});
|
|
22795
22709
|
}
|
|
22796
22710
|
}
|
|
22797
|
-
class
|
|
22711
|
+
class LI extends Vl {
|
|
22798
22712
|
radius;
|
|
22799
22713
|
constructor(e, t = {
|
|
22800
22714
|
x: 0,
|
|
@@ -22815,7 +22729,7 @@ class FI extends Vl {
|
|
|
22815
22729
|
});
|
|
22816
22730
|
}
|
|
22817
22731
|
}
|
|
22818
|
-
class
|
|
22732
|
+
class FI extends Vl {
|
|
22819
22733
|
toX;
|
|
22820
22734
|
toY;
|
|
22821
22735
|
c1x;
|
|
@@ -22956,7 +22870,7 @@ class UI extends Vl {
|
|
|
22956
22870
|
}
|
|
22957
22871
|
}
|
|
22958
22872
|
}
|
|
22959
|
-
class
|
|
22873
|
+
class UI extends Vl {
|
|
22960
22874
|
width;
|
|
22961
22875
|
height;
|
|
22962
22876
|
borderRadius;
|
|
@@ -23031,7 +22945,7 @@ class oS {
|
|
|
23031
22945
|
this.brightness = Math.min(Math.max(e, 0), 1);
|
|
23032
22946
|
}
|
|
23033
22947
|
}
|
|
23034
|
-
class
|
|
22948
|
+
class GI {
|
|
23035
22949
|
x;
|
|
23036
22950
|
y;
|
|
23037
22951
|
width;
|
|
@@ -23045,7 +22959,7 @@ class jI {
|
|
|
23045
22959
|
e.save(), e.translate(this.x, this.y), e.rotate(this.rotation), e.lineWidth = 1, e.strokeStyle = "#ffffff", t?.(e), e.beginPath(), e.moveTo(10, 0), e.lineTo(-10, 10), e.lineTo(-5, 0), e.lineTo(-10, -10), e.lineTo(10, 0), e.closePath(), e.stroke(), this.showFlame && (e.beginPath(), e.moveTo(-7.5, -5), e.lineTo(-15, 0), e.lineTo(-7.5, 5), e.closePath(), e.stroke()), e.restore();
|
|
23046
22960
|
}
|
|
23047
22961
|
}
|
|
23048
|
-
class
|
|
22962
|
+
class jI {
|
|
23049
22963
|
x;
|
|
23050
22964
|
y;
|
|
23051
22965
|
scaleX;
|
|
@@ -23061,7 +22975,7 @@ class BI {
|
|
|
23061
22975
|
e.save(), e.translate(this.x, this.y), e.scale(this.scaleX, this.scaleY), e.lineWidth = this.lineWidth, e.strokeStyle = vp(this.color, this.alpha), t?.(e), e.beginPath(), e.moveTo(0, 0), e.lineTo(0, this.branch[0]), e.moveTo(0, this.branch[1]), e.lineTo(this.branch[2], this.branch[3]), e.moveTo(0, this.branch[4]), e.lineTo(this.branch[5], this.branch[6]), e.stroke(), e.restore();
|
|
23062
22976
|
}
|
|
23063
22977
|
}
|
|
23064
|
-
class
|
|
22978
|
+
class BI {
|
|
23065
22979
|
x;
|
|
23066
22980
|
y;
|
|
23067
22981
|
z;
|
|
@@ -23101,7 +23015,7 @@ class VI {
|
|
|
23101
23015
|
return this.vpY + (this.cY + this.y) * e;
|
|
23102
23016
|
}
|
|
23103
23017
|
}
|
|
23104
|
-
class
|
|
23018
|
+
class VI {
|
|
23105
23019
|
pointA;
|
|
23106
23020
|
pointB;
|
|
23107
23021
|
pointC;
|
|
@@ -23125,7 +23039,7 @@ class HI {
|
|
|
23125
23039
|
return e * s > t * i;
|
|
23126
23040
|
}
|
|
23127
23041
|
}
|
|
23128
|
-
class
|
|
23042
|
+
class HI {
|
|
23129
23043
|
pointA;
|
|
23130
23044
|
pointB;
|
|
23131
23045
|
pointC;
|
|
@@ -23171,7 +23085,7 @@ class WI {
|
|
|
23171
23085
|
return Math.acos(s / (a * n)) / Math.PI * this.light.brightness;
|
|
23172
23086
|
}
|
|
23173
23087
|
}
|
|
23174
|
-
class
|
|
23088
|
+
class WI {
|
|
23175
23089
|
min;
|
|
23176
23090
|
max;
|
|
23177
23091
|
value;
|
|
@@ -23237,7 +23151,7 @@ class qI {
|
|
|
23237
23151
|
);
|
|
23238
23152
|
}
|
|
23239
23153
|
}
|
|
23240
|
-
class
|
|
23154
|
+
class qI {
|
|
23241
23155
|
x;
|
|
23242
23156
|
y;
|
|
23243
23157
|
width;
|
|
@@ -23261,7 +23175,7 @@ class YI {
|
|
|
23261
23175
|
};
|
|
23262
23176
|
}
|
|
23263
23177
|
}
|
|
23264
|
-
class
|
|
23178
|
+
class YI {
|
|
23265
23179
|
R;
|
|
23266
23180
|
r;
|
|
23267
23181
|
O;
|
|
@@ -23281,7 +23195,7 @@ class XI {
|
|
|
23281
23195
|
e.stroke(), e.restore();
|
|
23282
23196
|
}
|
|
23283
23197
|
}
|
|
23284
|
-
class
|
|
23198
|
+
class XI {
|
|
23285
23199
|
r;
|
|
23286
23200
|
constructor(e) {
|
|
23287
23201
|
this.r = e;
|
|
@@ -23293,7 +23207,7 @@ class KI {
|
|
|
23293
23207
|
e.closePath(), e.fill(), e.restore();
|
|
23294
23208
|
}
|
|
23295
23209
|
}
|
|
23296
|
-
class
|
|
23210
|
+
class KI {
|
|
23297
23211
|
startX;
|
|
23298
23212
|
startY;
|
|
23299
23213
|
width;
|
|
@@ -23313,14 +23227,14 @@ class ZI {
|
|
|
23313
23227
|
a(), e.restore();
|
|
23314
23228
|
}
|
|
23315
23229
|
}
|
|
23316
|
-
class
|
|
23230
|
+
class ZI {
|
|
23317
23231
|
constructor() {
|
|
23318
23232
|
}
|
|
23319
23233
|
draw(e, t) {
|
|
23320
23234
|
e.save(), t?.(e), e.beginPath(), e.arc(75, 75, 50, 0, Math.PI * 2, !0), e.moveTo(110, 75), e.arc(75, 75, 35, 0, Math.PI, !1), e.moveTo(65, 65), e.arc(60, 65, 5, 0, Math.PI * 2, !0), e.moveTo(95, 65), e.arc(90, 65, 5, 0, Math.PI * 2, !0), e.stroke(), e.restore();
|
|
23321
23235
|
}
|
|
23322
23236
|
}
|
|
23323
|
-
class
|
|
23237
|
+
class JI {
|
|
23324
23238
|
constructor() {
|
|
23325
23239
|
}
|
|
23326
23240
|
draw(e, t) {
|
|
@@ -32983,7 +32897,7 @@ const hS = {
|
|
|
32983
32897
|
direction: "normal",
|
|
32984
32898
|
fill: "freeze"
|
|
32985
32899
|
};
|
|
32986
|
-
class
|
|
32900
|
+
class QI {
|
|
32987
32901
|
objects = [];
|
|
32988
32902
|
actions = [];
|
|
32989
32903
|
constructor() {
|
|
@@ -33001,7 +32915,11 @@ class xI {
|
|
|
33001
32915
|
}), this;
|
|
33002
32916
|
}
|
|
33003
32917
|
toCSS(e, ...t) {
|
|
33004
|
-
switch (this["_" + e](...t), this.objects[0].dom?.parent().css({
|
|
32918
|
+
switch (this["_" + e](...t), this.objects[0].dom?.parent().css({
|
|
32919
|
+
position: "relative",
|
|
32920
|
+
perspective: "1000px",
|
|
32921
|
+
overflow: "hidden"
|
|
32922
|
+
}), e) {
|
|
33005
32923
|
default:
|
|
33006
32924
|
this.objects.forEach((i, s) => {
|
|
33007
32925
|
i.dom?.css({
|
|
@@ -33019,7 +32937,7 @@ class xI {
|
|
|
33019
32937
|
let n = [], o = [];
|
|
33020
32938
|
Array.isArray(i.attributeName) ? (n = i.attributeName, o = i.values) : i.attributeName && (n = [i.attributeName], o = [i.values]);
|
|
33021
32939
|
const l = i.keyTimes.length, h = eu(a.dom?.css("transform") ?? "");
|
|
33022
|
-
i.keyTimes.forEach((u, d) => {
|
|
32940
|
+
console.log(`** ${s} **`), i.keyTimes.forEach((u, d) => {
|
|
33023
32941
|
const c = {
|
|
33024
32942
|
_matrix: h
|
|
33025
32943
|
};
|
|
@@ -33609,7 +33527,7 @@ class wl {
|
|
|
33609
33527
|
document.addEventListener("click", t), document.addEventListener("touchend", t);
|
|
33610
33528
|
}
|
|
33611
33529
|
}
|
|
33612
|
-
class
|
|
33530
|
+
class xI {
|
|
33613
33531
|
localVideoUtil;
|
|
33614
33532
|
remoteVideoUtil;
|
|
33615
33533
|
localPeerConnection = null;
|
|
@@ -33732,7 +33650,7 @@ ${e.sdp}.`), this.remotePeerConnection && (this.trace("remotePeerConnection setL
|
|
|
33732
33650
|
return e === this.localPeerConnection ? "localPeerConnection" : "remotePeerConnection";
|
|
33733
33651
|
}
|
|
33734
33652
|
}
|
|
33735
|
-
class
|
|
33653
|
+
class eO {
|
|
33736
33654
|
canvas;
|
|
33737
33655
|
gl;
|
|
33738
33656
|
constructor(e) {
|
|
@@ -33752,7 +33670,7 @@ const N0 = function(r, e) {
|
|
|
33752
33670
|
}, fS = function(r) {
|
|
33753
33671
|
return /(auto|scroll)/.test(uS(r));
|
|
33754
33672
|
};
|
|
33755
|
-
function
|
|
33673
|
+
function tO(r) {
|
|
33756
33674
|
if (!(r instanceof HTMLElement || r instanceof SVGElement))
|
|
33757
33675
|
return;
|
|
33758
33676
|
const e = a5(r.parentElement, []);
|
|
@@ -35116,8 +35034,8 @@ const ZS = /* @__PURE__ */ zr(pu), JS = /* @__PURE__ */ Ne({
|
|
|
35116
35034
|
}, [pu]), gu = /* @__PURE__ */ Le(JS);
|
|
35117
35035
|
Object.defineProperty(wn, "__esModule", { value: !0 });
|
|
35118
35036
|
var k5 = wn.Node = void 0;
|
|
35119
|
-
const it = Dt, So = xe, qo = ql,
|
|
35120
|
-
var ll = "absoluteOpacity", Yo = "allEventListeners", Ii = "absoluteTransform", H2 = "absoluteScale",
|
|
35037
|
+
const it = Dt, So = xe, qo = ql, Ts = et, jr = gu, Gt = tt;
|
|
35038
|
+
var ll = "absoluteOpacity", Yo = "allEventListeners", Ii = "absoluteTransform", H2 = "absoluteScale", Cs = "canvas", QS = "Change", xS = "children", ez = "konva", I1 = "listening", W2 = "mouseenter", q2 = "mouseleave", Y2 = "set", X2 = "Shape", hl = " ", K2 = "stage", ts = "transform", tz = "Stage", O1 = "visible", rz = [
|
|
35121
35039
|
"xChange.konva",
|
|
35122
35040
|
"yChange.konva",
|
|
35123
35041
|
"scaleXChange.konva",
|
|
@@ -35153,15 +35071,15 @@ let iz = 1, Ke = class $1 {
|
|
|
35153
35071
|
return this._getCache(e, i);
|
|
35154
35072
|
}
|
|
35155
35073
|
_getCanvasCache() {
|
|
35156
|
-
return this._cache.get(
|
|
35074
|
+
return this._cache.get(Cs);
|
|
35157
35075
|
}
|
|
35158
35076
|
_clearSelfAndDescendantCache(e) {
|
|
35159
35077
|
this._clearCache(e), e === Ii && this.fire("absoluteTransformChange");
|
|
35160
35078
|
}
|
|
35161
35079
|
clearCache() {
|
|
35162
|
-
if (this._cache.has(
|
|
35163
|
-
const { scene: e, filter: t, hit: i } = this._cache.get(
|
|
35164
|
-
it.Util.releaseCanvas(e, t, i), this._cache.delete(
|
|
35080
|
+
if (this._cache.has(Cs)) {
|
|
35081
|
+
const { scene: e, filter: t, hit: i } = this._cache.get(Cs);
|
|
35082
|
+
it.Util.releaseCanvas(e, t, i), this._cache.delete(Cs);
|
|
35165
35083
|
}
|
|
35166
35084
|
return this._clearSelfAndDescendantCache(), this._requestDraw(), this;
|
|
35167
35085
|
}
|
|
@@ -35191,7 +35109,7 @@ let iz = 1, Ke = class $1 {
|
|
|
35191
35109
|
width: s,
|
|
35192
35110
|
height: a
|
|
35193
35111
|
}), g = c.getContext(), y = p.getContext();
|
|
35194
|
-
return p.isCache = !0, c.isCache = !0, this._cache.delete(
|
|
35112
|
+
return p.isCache = !0, c.isCache = !0, this._cache.delete(Cs), this._filterUpToDate = !1, t.imageSmoothingEnabled === !1 && (c.getContext()._context.imageSmoothingEnabled = !1, f.getContext()._context.imageSmoothingEnabled = !1), g.save(), y.save(), g.translate(-o, -l), y.translate(-o, -l), this._isUnderCache = !0, this._clearSelfAndDescendantCache(ll), this._clearSelfAndDescendantCache(H2), this.drawScene(c, this), this.drawHit(p, this), this._isUnderCache = !1, g.restore(), y.restore(), u && (g.save(), g.beginPath(), g.rect(0, 0, s, a), g.closePath(), g.setAttr("strokeStyle", "red"), g.setAttr("lineWidth", 5), g.stroke(), g.restore()), this._cache.set(Cs, {
|
|
35195
35113
|
scene: c,
|
|
35196
35114
|
filter: f,
|
|
35197
35115
|
hit: p,
|
|
@@ -35200,7 +35118,7 @@ let iz = 1, Ke = class $1 {
|
|
|
35200
35118
|
}), this._requestDraw(), this;
|
|
35201
35119
|
}
|
|
35202
35120
|
isCached() {
|
|
35203
|
-
return this._cache.has(
|
|
35121
|
+
return this._cache.has(Cs);
|
|
35204
35122
|
}
|
|
35205
35123
|
getClientRect(e) {
|
|
35206
35124
|
throw new Error('abstract "getClientRect" method call');
|
|
@@ -35363,7 +35281,7 @@ let iz = 1, Ke = class $1 {
|
|
|
35363
35281
|
jr.DD._dragElements.forEach((n) => {
|
|
35364
35282
|
n.dragStatus === "dragging" && (n.node.nodeType === "Stage" || n.node.getLayer() === i) && (s = !0);
|
|
35365
35283
|
});
|
|
35366
|
-
var a = !t && !
|
|
35284
|
+
var a = !t && !Ts.Konva.hitOnDragEnabled && s;
|
|
35367
35285
|
return this.isListening() && this.isVisible() && !a;
|
|
35368
35286
|
}
|
|
35369
35287
|
show() {
|
|
@@ -35610,7 +35528,7 @@ let iz = 1, Ke = class $1 {
|
|
|
35610
35528
|
_getTransform() {
|
|
35611
35529
|
var e, t, i = this._cache.get(ts) || new it.Transform();
|
|
35612
35530
|
i.reset();
|
|
35613
|
-
var s = this.x(), a = this.y(), n =
|
|
35531
|
+
var s = this.x(), a = this.y(), n = Ts.Konva.getAngle(this.rotation()), o = (e = this.attrs.scaleX) !== null && e !== void 0 ? e : 1, l = (t = this.attrs.scaleY) !== null && t !== void 0 ? t : 1, h = this.attrs.skewX || 0, u = this.attrs.skewY || 0, d = this.attrs.offsetX || 0, c = this.attrs.offsetY || 0;
|
|
35614
35532
|
return (s !== 0 || a !== 0) && i.translate(s, a), n !== 0 && i.rotate(n), (h !== 0 || u !== 0) && i.skew(h, u), (o !== 1 || l !== 1) && i.scale(o, l), (d !== 0 || c !== 0) && i.translate(-1 * d, -1 * c), i.dirty = !1, i;
|
|
35615
35533
|
}
|
|
35616
35534
|
clone(e) {
|
|
@@ -35680,7 +35598,7 @@ let iz = 1, Ke = class $1 {
|
|
|
35680
35598
|
return this.nodeType;
|
|
35681
35599
|
}
|
|
35682
35600
|
getDragDistance() {
|
|
35683
|
-
return this.attrs.dragDistance !== void 0 ? this.attrs.dragDistance : this.parent ? this.parent.getDragDistance() :
|
|
35601
|
+
return this.attrs.dragDistance !== void 0 ? this.attrs.dragDistance : this.parent ? this.parent.getDragDistance() : Ts.Konva.dragDistance;
|
|
35684
35602
|
}
|
|
35685
35603
|
_off(e, t, i) {
|
|
35686
35604
|
var s = this.eventListeners[e], a, n, o;
|
|
@@ -35724,7 +35642,7 @@ let iz = 1, Ke = class $1 {
|
|
|
35724
35642
|
return it.Util._isFunction(i) ? i.call(this, t) : this._setAttr(e, t), this;
|
|
35725
35643
|
}
|
|
35726
35644
|
_requestDraw() {
|
|
35727
|
-
if (
|
|
35645
|
+
if (Ts.Konva.autoDrawEnabled) {
|
|
35728
35646
|
const e = this.getLayer() || this.getStage();
|
|
35729
35647
|
e?.batchDraw();
|
|
35730
35648
|
}
|
|
@@ -35827,7 +35745,7 @@ let iz = 1, Ke = class $1 {
|
|
|
35827
35745
|
}
|
|
35828
35746
|
_listenDrag() {
|
|
35829
35747
|
this._dragCleanup(), this.on("mousedown.konva touchstart.konva", function(e) {
|
|
35830
|
-
var t = e.evt.button !== void 0, i = !t ||
|
|
35748
|
+
var t = e.evt.button !== void 0, i = !t || Ts.Konva.dragButtons.indexOf(e.evt.button) >= 0;
|
|
35831
35749
|
if (i && !this.isDragging()) {
|
|
35832
35750
|
var s = !1;
|
|
35833
35751
|
jr.DD._dragElements.forEach((a) => {
|
|
@@ -35868,8 +35786,8 @@ let iz = 1, Ke = class $1 {
|
|
|
35868
35786
|
}
|
|
35869
35787
|
static _createNode(e, t) {
|
|
35870
35788
|
var i = $1.prototype.getClassName.call(e), s = e.children, a, n, o;
|
|
35871
|
-
t && (e.attrs.container = t),
|
|
35872
|
-
const l =
|
|
35789
|
+
t && (e.attrs.container = t), Ts.Konva[i] || (it.Util.warn('Can not find a node with class name "' + i + '". Fallback to "Shape".'), i = "Shape");
|
|
35790
|
+
const l = Ts.Konva[i];
|
|
35873
35791
|
if (a = new l(e.attrs), s)
|
|
35874
35792
|
for (n = s.length, o = 0; o < n; o++)
|
|
35875
35793
|
a.add($1._createNode(s[o]));
|
|
@@ -35945,7 +35863,7 @@ var Sn = {};
|
|
|
35945
35863
|
Object.defineProperty(Sn, "__esModule", { value: !0 });
|
|
35946
35864
|
var E5 = Sn.Container = void 0;
|
|
35947
35865
|
const Ea = xe, L0 = jt, Yl = tt;
|
|
35948
|
-
class
|
|
35866
|
+
class Vs extends L0.Node {
|
|
35949
35867
|
constructor() {
|
|
35950
35868
|
super(...arguments), this.children = [];
|
|
35951
35869
|
}
|
|
@@ -36132,18 +36050,18 @@ class Hs extends L0.Node {
|
|
|
36132
36050
|
}, i ? h : this._transformedRect(h, s);
|
|
36133
36051
|
}
|
|
36134
36052
|
}
|
|
36135
|
-
E5 = Sn.Container =
|
|
36136
|
-
Ea.Factory.addComponentsGetterSetter(
|
|
36053
|
+
E5 = Sn.Container = Vs;
|
|
36054
|
+
Ea.Factory.addComponentsGetterSetter(Vs, "clip", [
|
|
36137
36055
|
"x",
|
|
36138
36056
|
"y",
|
|
36139
36057
|
"width",
|
|
36140
36058
|
"height"
|
|
36141
36059
|
]);
|
|
36142
|
-
Ea.Factory.addGetterSetter(
|
|
36143
|
-
Ea.Factory.addGetterSetter(
|
|
36144
|
-
Ea.Factory.addGetterSetter(
|
|
36145
|
-
Ea.Factory.addGetterSetter(
|
|
36146
|
-
Ea.Factory.addGetterSetter(
|
|
36060
|
+
Ea.Factory.addGetterSetter(Vs, "clipX", void 0, (0, Yl.getNumberValidator)());
|
|
36061
|
+
Ea.Factory.addGetterSetter(Vs, "clipY", void 0, (0, Yl.getNumberValidator)());
|
|
36062
|
+
Ea.Factory.addGetterSetter(Vs, "clipWidth", void 0, (0, Yl.getNumberValidator)());
|
|
36063
|
+
Ea.Factory.addGetterSetter(Vs, "clipHeight", void 0, (0, Yl.getNumberValidator)());
|
|
36064
|
+
Ea.Factory.addGetterSetter(Vs, "clipFunc");
|
|
36147
36065
|
const az = /* @__PURE__ */ Ne({
|
|
36148
36066
|
__proto__: null,
|
|
36149
36067
|
get Container() {
|
|
@@ -36926,7 +36844,7 @@ const pz = /* @__PURE__ */ zr(bu), gz = /* @__PURE__ */ Ne({
|
|
|
36926
36844
|
}, [bu]), tr = /* @__PURE__ */ Le(gz);
|
|
36927
36845
|
Object.defineProperty(Pn, "__esModule", { value: !0 });
|
|
36928
36846
|
var L5 = Pn.Layer = void 0;
|
|
36929
|
-
const Mi = Dt, F0 = Xl,
|
|
36847
|
+
const Mi = Dt, F0 = Xl, na = jt, yu = xe, Z2 = ql, vz = tt, mz = tr, bz = et;
|
|
36930
36848
|
var yz = "#", _z = "beforeDraw", Tz = "draw", F5 = [
|
|
36931
36849
|
{ x: 0, y: 0 },
|
|
36932
36850
|
{ x: -1, y: -1 },
|
|
@@ -36964,19 +36882,19 @@ class Aa extends F0.Container {
|
|
|
36964
36882
|
return t && t.content && (t.content.removeChild(this.getNativeCanvasElement()), e < t.children.length - 1 ? t.content.insertBefore(this.getNativeCanvasElement(), t.children[e + 1].getCanvas()._canvas) : t.content.appendChild(this.getNativeCanvasElement())), this;
|
|
36965
36883
|
}
|
|
36966
36884
|
moveToTop() {
|
|
36967
|
-
|
|
36885
|
+
na.Node.prototype.moveToTop.call(this);
|
|
36968
36886
|
var e = this.getStage();
|
|
36969
36887
|
return e && e.content && (e.content.removeChild(this.getNativeCanvasElement()), e.content.appendChild(this.getNativeCanvasElement())), !0;
|
|
36970
36888
|
}
|
|
36971
36889
|
moveUp() {
|
|
36972
|
-
var e =
|
|
36890
|
+
var e = na.Node.prototype.moveUp.call(this);
|
|
36973
36891
|
if (!e)
|
|
36974
36892
|
return !1;
|
|
36975
36893
|
var t = this.getStage();
|
|
36976
36894
|
return !t || !t.content ? !1 : (t.content.removeChild(this.getNativeCanvasElement()), this.index < t.children.length - 1 ? t.content.insertBefore(this.getNativeCanvasElement(), t.children[this.index + 1].getCanvas()._canvas) : t.content.appendChild(this.getNativeCanvasElement()), !0);
|
|
36977
36895
|
}
|
|
36978
36896
|
moveDown() {
|
|
36979
|
-
if (
|
|
36897
|
+
if (na.Node.prototype.moveDown.call(this)) {
|
|
36980
36898
|
var e = this.getStage();
|
|
36981
36899
|
if (e) {
|
|
36982
36900
|
var t = e.children;
|
|
@@ -36987,7 +36905,7 @@ class Aa extends F0.Container {
|
|
|
36987
36905
|
return !1;
|
|
36988
36906
|
}
|
|
36989
36907
|
moveToBottom() {
|
|
36990
|
-
if (
|
|
36908
|
+
if (na.Node.prototype.moveToBottom.call(this)) {
|
|
36991
36909
|
var e = this.getStage();
|
|
36992
36910
|
if (e) {
|
|
36993
36911
|
var t = e.children;
|
|
@@ -37002,7 +36920,7 @@ class Aa extends F0.Container {
|
|
|
37002
36920
|
}
|
|
37003
36921
|
remove() {
|
|
37004
36922
|
var e = this.getNativeCanvasElement();
|
|
37005
|
-
return
|
|
36923
|
+
return na.Node.prototype.remove.call(this), e && e.parentNode && Mi.Util._isInDocument(e) && e.parentNode.removeChild(e), this;
|
|
37006
36924
|
}
|
|
37007
36925
|
getStage() {
|
|
37008
36926
|
return this.parent;
|
|
@@ -37015,7 +36933,7 @@ class Aa extends F0.Container {
|
|
|
37015
36933
|
t !== "Group" && t !== "Shape" && Mi.Util.throw("You may only add groups and shapes to a layer.");
|
|
37016
36934
|
}
|
|
37017
36935
|
_toKonvaCanvas(e) {
|
|
37018
|
-
return e = e || {}, e.width = e.width || this.getWidth(), e.height = e.height || this.getHeight(), e.x = e.x !== void 0 ? e.x : this.x(), e.y = e.y !== void 0 ? e.y : this.y(),
|
|
36936
|
+
return e = e || {}, e.width = e.width || this.getWidth(), e.height = e.height || this.getHeight(), e.x = e.x !== void 0 ? e.x : this.x(), e.y = e.y !== void 0 ? e.y : this.y(), na.Node.prototype._toKonvaCanvas.call(this, e);
|
|
37019
36937
|
}
|
|
37020
36938
|
_checkVisibility() {
|
|
37021
36939
|
this.visible() ? this.canvas._canvas.style.display = "block" : this.canvas._canvas.style.display = "none";
|
|
@@ -37580,7 +37498,7 @@ function x2(r, e) {
|
|
|
37580
37498
|
a = D1(r[s - 2], r[s - 1], r[s], r[s + 1], r[s + 2], r[s + 3], e), !isNaN(a[0]) && (i.push(a[0]), i.push(a[1]), i.push(r[s]), i.push(r[s + 1]), i.push(a[2]), i.push(a[3]));
|
|
37581
37499
|
return i;
|
|
37582
37500
|
}
|
|
37583
|
-
class
|
|
37501
|
+
class us extends Hz.Shape {
|
|
37584
37502
|
constructor(e) {
|
|
37585
37503
|
super(e), this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva", function() {
|
|
37586
37504
|
this._clearCache("tensionPoints");
|
|
@@ -37655,14 +37573,14 @@ class fs extends Hz.Shape {
|
|
|
37655
37573
|
};
|
|
37656
37574
|
}
|
|
37657
37575
|
}
|
|
37658
|
-
H5 = In.Line =
|
|
37659
|
-
|
|
37660
|
-
|
|
37661
|
-
(0, Wz._registerNode)(
|
|
37662
|
-
Jl.Factory.addGetterSetter(
|
|
37663
|
-
Jl.Factory.addGetterSetter(
|
|
37664
|
-
Jl.Factory.addGetterSetter(
|
|
37665
|
-
Jl.Factory.addGetterSetter(
|
|
37576
|
+
H5 = In.Line = us;
|
|
37577
|
+
us.prototype.className = "Line";
|
|
37578
|
+
us.prototype._attrsAffectingSize = ["points", "bezier", "tension"];
|
|
37579
|
+
(0, Wz._registerNode)(us);
|
|
37580
|
+
Jl.Factory.addGetterSetter(us, "closed", !1);
|
|
37581
|
+
Jl.Factory.addGetterSetter(us, "bezier", !1);
|
|
37582
|
+
Jl.Factory.addGetterSetter(us, "tension", 0, (0, W5.getNumberValidator)());
|
|
37583
|
+
Jl.Factory.addGetterSetter(us, "points", [], (0, W5.getNumberArrayValidator)());
|
|
37666
37584
|
const qz = /* @__PURE__ */ Ne({
|
|
37667
37585
|
__proto__: null,
|
|
37668
37586
|
get Line() {
|
|
@@ -38426,7 +38344,7 @@ const Yz = /* @__PURE__ */ zr(zu), Xz = /* @__PURE__ */ Ne({
|
|
|
38426
38344
|
}, [zu]), Kz = /* @__PURE__ */ Le(Xz);
|
|
38427
38345
|
Object.defineProperty(On, "__esModule", { value: !0 });
|
|
38428
38346
|
var Y5 = On.Path = void 0;
|
|
38429
|
-
const Zz = xe, Jz = tr, Qz = et,
|
|
38347
|
+
const Zz = xe, Jz = tr, Qz = et, oa = Kz;
|
|
38430
38348
|
class Xt extends Jz.Shape {
|
|
38431
38349
|
constructor(e) {
|
|
38432
38350
|
super(e), this.dataArray = [], this.pathLength = 0, this._readDataAttribute(), this.on("dataChange.konva", function() {
|
|
@@ -38533,9 +38451,9 @@ class Xt extends Jz.Shape {
|
|
|
38533
38451
|
case "L":
|
|
38534
38452
|
return Xt.getPointOnLine(e, n.start.x, n.start.y, o[0], o[1]);
|
|
38535
38453
|
case "C":
|
|
38536
|
-
return Xt.getPointOnCubicBezier((0,
|
|
38454
|
+
return Xt.getPointOnCubicBezier((0, oa.t2length)(e, Xt.getPathLength(t), (g) => (0, oa.getCubicArcLength)([n.start.x, o[0], o[2], o[4]], [n.start.y, o[1], o[3], o[5]], g)), n.start.x, n.start.y, o[0], o[1], o[2], o[3], o[4], o[5]);
|
|
38537
38455
|
case "Q":
|
|
38538
|
-
return Xt.getPointOnQuadraticBezier((0,
|
|
38456
|
+
return Xt.getPointOnQuadraticBezier((0, oa.t2length)(e, Xt.getPathLength(t), (g) => (0, oa.getQuadraticArcLength)([n.start.x, o[0], o[2]], [n.start.y, o[1], o[3]], g)), n.start.x, n.start.y, o[0], o[1], o[2], o[3]);
|
|
38539
38457
|
case "A":
|
|
38540
38458
|
var l = o[0], h = o[1], u = o[2], d = o[3], c = o[4], f = o[5], p = o[6];
|
|
38541
38459
|
return c += f * e / n.pathLength, Xt.getPointOnEllipticalArc(l, h, u, d, c, p);
|
|
@@ -38745,9 +38663,9 @@ class Xt extends Jz.Shape {
|
|
|
38745
38663
|
case "L":
|
|
38746
38664
|
return h.getLineLength(e, t, s[0], s[1]);
|
|
38747
38665
|
case "C":
|
|
38748
|
-
return (0,
|
|
38666
|
+
return (0, oa.getCubicArcLength)([e, s[0], s[2], s[4]], [t, s[1], s[3], s[5]], 1);
|
|
38749
38667
|
case "Q":
|
|
38750
|
-
return (0,
|
|
38668
|
+
return (0, oa.getQuadraticArcLength)([e, s[0], s[2]], [t, s[1], s[3]], 1);
|
|
38751
38669
|
case "A":
|
|
38752
38670
|
a = 0;
|
|
38753
38671
|
var u = s[4], d = s[5], c = s[4] + d, f = Math.PI / 180;
|
|
@@ -38791,7 +38709,7 @@ const xz = /* @__PURE__ */ Ne({
|
|
|
38791
38709
|
Object.defineProperty(Rn, "__esModule", { value: !0 });
|
|
38792
38710
|
var X5 = Rn.Arrow = void 0;
|
|
38793
38711
|
const Ql = xe, eP = q5, K5 = tt, tP = et, ed = Pu;
|
|
38794
|
-
class
|
|
38712
|
+
class Hs extends eP.Line {
|
|
38795
38713
|
_sceneFunc(e) {
|
|
38796
38714
|
super._sceneFunc(e);
|
|
38797
38715
|
var t = Math.PI * 2, i = this.points(), s = i, a = this.tension() !== 0 && i.length > 4;
|
|
@@ -38826,13 +38744,13 @@ class Ws extends eP.Line {
|
|
|
38826
38744
|
};
|
|
38827
38745
|
}
|
|
38828
38746
|
}
|
|
38829
|
-
X5 = Rn.Arrow =
|
|
38830
|
-
|
|
38831
|
-
(0, tP._registerNode)(
|
|
38832
|
-
Ql.Factory.addGetterSetter(
|
|
38833
|
-
Ql.Factory.addGetterSetter(
|
|
38834
|
-
Ql.Factory.addGetterSetter(
|
|
38835
|
-
Ql.Factory.addGetterSetter(
|
|
38747
|
+
X5 = Rn.Arrow = Hs;
|
|
38748
|
+
Hs.prototype.className = "Arrow";
|
|
38749
|
+
(0, tP._registerNode)(Hs);
|
|
38750
|
+
Ql.Factory.addGetterSetter(Hs, "pointerLength", 10, (0, K5.getNumberValidator)());
|
|
38751
|
+
Ql.Factory.addGetterSetter(Hs, "pointerWidth", 10, (0, K5.getNumberValidator)());
|
|
38752
|
+
Ql.Factory.addGetterSetter(Hs, "pointerAtBeginning", !1);
|
|
38753
|
+
Ql.Factory.addGetterSetter(Hs, "pointerAtEnding", !0);
|
|
38836
38754
|
const rP = /* @__PURE__ */ Ne({
|
|
38837
38755
|
__proto__: null,
|
|
38838
38756
|
get Arrow() {
|
|
@@ -38878,7 +38796,7 @@ var Dn = {};
|
|
|
38878
38796
|
Object.defineProperty(Dn, "__esModule", { value: !0 });
|
|
38879
38797
|
var J5 = Dn.Ellipse = void 0;
|
|
38880
38798
|
const ku = xe, uP = tr, Q5 = tt, fP = et;
|
|
38881
|
-
class
|
|
38799
|
+
class fs extends uP.Shape {
|
|
38882
38800
|
_sceneFunc(e) {
|
|
38883
38801
|
var t = this.radiusX(), i = this.radiusY();
|
|
38884
38802
|
e.beginPath(), e.save(), t !== i && e.scale(1, i / t), e.arc(0, 0, t, 0, Math.PI * 2, !1), e.restore(), e.closePath(), e.fillStrokeShape(this);
|
|
@@ -38896,14 +38814,14 @@ class ds extends uP.Shape {
|
|
|
38896
38814
|
this.radiusY(e / 2);
|
|
38897
38815
|
}
|
|
38898
38816
|
}
|
|
38899
|
-
J5 = Dn.Ellipse =
|
|
38900
|
-
|
|
38901
|
-
|
|
38902
|
-
|
|
38903
|
-
(0, fP._registerNode)(
|
|
38904
|
-
ku.Factory.addComponentsGetterSetter(
|
|
38905
|
-
ku.Factory.addGetterSetter(
|
|
38906
|
-
ku.Factory.addGetterSetter(
|
|
38817
|
+
J5 = Dn.Ellipse = fs;
|
|
38818
|
+
fs.prototype.className = "Ellipse";
|
|
38819
|
+
fs.prototype._centroid = !0;
|
|
38820
|
+
fs.prototype._attrsAffectingSize = ["radiusX", "radiusY"];
|
|
38821
|
+
(0, fP._registerNode)(fs);
|
|
38822
|
+
ku.Factory.addComponentsGetterSetter(fs, "radius", ["x", "y"]);
|
|
38823
|
+
ku.Factory.addGetterSetter(fs, "radiusX", 0, (0, Q5.getNumberValidator)());
|
|
38824
|
+
ku.Factory.addGetterSetter(fs, "radiusY", 0, (0, Q5.getNumberValidator)());
|
|
38907
38825
|
const dP = /* @__PURE__ */ Ne({
|
|
38908
38826
|
__proto__: null,
|
|
38909
38827
|
get Ellipse() {
|
|
@@ -38914,7 +38832,7 @@ const dP = /* @__PURE__ */ Ne({
|
|
|
38914
38832
|
var Nn = {};
|
|
38915
38833
|
Object.defineProperty(Nn, "__esModule", { value: !0 });
|
|
38916
38834
|
var x5 = Nn.Image = void 0;
|
|
38917
|
-
const j0 = Dt,
|
|
38835
|
+
const j0 = Dt, Ws = xe, pP = tr, gP = et, zo = tt;
|
|
38918
38836
|
let yi = class eg extends pP.Shape {
|
|
38919
38837
|
constructor(e) {
|
|
38920
38838
|
super(e), this.on("imageChange.konva", () => {
|
|
@@ -38974,13 +38892,13 @@ let yi = class eg extends pP.Shape {
|
|
|
38974
38892
|
x5 = Nn.Image = yi;
|
|
38975
38893
|
yi.prototype.className = "Image";
|
|
38976
38894
|
(0, gP._registerNode)(yi);
|
|
38977
|
-
|
|
38978
|
-
|
|
38979
|
-
|
|
38980
|
-
|
|
38981
|
-
|
|
38982
|
-
|
|
38983
|
-
|
|
38895
|
+
Ws.Factory.addGetterSetter(yi, "cornerRadius", 0, (0, zo.getNumberOrArrayOfNumbersValidator)(4));
|
|
38896
|
+
Ws.Factory.addGetterSetter(yi, "image");
|
|
38897
|
+
Ws.Factory.addComponentsGetterSetter(yi, "crop", ["x", "y", "width", "height"]);
|
|
38898
|
+
Ws.Factory.addGetterSetter(yi, "cropX", 0, (0, zo.getNumberValidator)());
|
|
38899
|
+
Ws.Factory.addGetterSetter(yi, "cropY", 0, (0, zo.getNumberValidator)());
|
|
38900
|
+
Ws.Factory.addGetterSetter(yi, "cropWidth", 0, (0, zo.getNumberValidator)());
|
|
38901
|
+
Ws.Factory.addGetterSetter(yi, "cropHeight", 0, (0, zo.getNumberValidator)());
|
|
38984
38902
|
const vP = /* @__PURE__ */ Ne({
|
|
38985
38903
|
__proto__: null,
|
|
38986
38904
|
get Image() {
|
|
@@ -38988,9 +38906,9 @@ const vP = /* @__PURE__ */ Ne({
|
|
|
38988
38906
|
},
|
|
38989
38907
|
default: Nn
|
|
38990
38908
|
}, [Nn]), mP = /* @__PURE__ */ Le(vP);
|
|
38991
|
-
var
|
|
38992
|
-
Object.defineProperty(
|
|
38993
|
-
var tg =
|
|
38909
|
+
var Us = {};
|
|
38910
|
+
Object.defineProperty(Us, "__esModule", { value: !0 });
|
|
38911
|
+
var tg = Us.Tag = sg = Us.Label = void 0;
|
|
38994
38912
|
const xl = xe, bP = tr, yP = Cu, Eu = tt, rg = et;
|
|
38995
38913
|
var ig = [
|
|
38996
38914
|
"fontFamily",
|
|
@@ -39059,10 +38977,10 @@ class Au extends yP.Group {
|
|
|
39059
38977
|
}
|
|
39060
38978
|
}
|
|
39061
38979
|
}
|
|
39062
|
-
var sg =
|
|
38980
|
+
var sg = Us.Label = Au;
|
|
39063
38981
|
Au.prototype.className = "Label";
|
|
39064
38982
|
(0, rg._registerNode)(Au);
|
|
39065
|
-
class
|
|
38983
|
+
class qs extends bP.Shape {
|
|
39066
38984
|
_sceneFunc(e) {
|
|
39067
38985
|
var t = this.width(), i = this.height(), s = this.pointerDirection(), a = this.pointerWidth(), n = this.pointerHeight(), o = this.cornerRadius();
|
|
39068
38986
|
let l = 0, h = 0, u = 0, d = 0;
|
|
@@ -39078,13 +38996,13 @@ class Ys extends bP.Shape {
|
|
|
39078
38996
|
};
|
|
39079
38997
|
}
|
|
39080
38998
|
}
|
|
39081
|
-
tg =
|
|
39082
|
-
|
|
39083
|
-
(0, rg._registerNode)(
|
|
39084
|
-
xl.Factory.addGetterSetter(
|
|
39085
|
-
xl.Factory.addGetterSetter(
|
|
39086
|
-
xl.Factory.addGetterSetter(
|
|
39087
|
-
xl.Factory.addGetterSetter(
|
|
38999
|
+
tg = Us.Tag = qs;
|
|
39000
|
+
qs.prototype.className = "Tag";
|
|
39001
|
+
(0, rg._registerNode)(qs);
|
|
39002
|
+
xl.Factory.addGetterSetter(qs, "pointerDirection", TP);
|
|
39003
|
+
xl.Factory.addGetterSetter(qs, "pointerWidth", 0, (0, Eu.getNumberValidator)());
|
|
39004
|
+
xl.Factory.addGetterSetter(qs, "pointerHeight", 0, (0, Eu.getNumberValidator)());
|
|
39005
|
+
xl.Factory.addGetterSetter(qs, "cornerRadius", 0, (0, Eu.getNumberOrArrayOfNumbersValidator)(4));
|
|
39088
39006
|
const wP = /* @__PURE__ */ Ne({
|
|
39089
39007
|
__proto__: null,
|
|
39090
39008
|
get Label() {
|
|
@@ -39093,8 +39011,8 @@ const wP = /* @__PURE__ */ Ne({
|
|
|
39093
39011
|
get Tag() {
|
|
39094
39012
|
return tg;
|
|
39095
39013
|
},
|
|
39096
|
-
default:
|
|
39097
|
-
}, [
|
|
39014
|
+
default: Us
|
|
39015
|
+
}, [Us]), SP = /* @__PURE__ */ Le(wP);
|
|
39098
39016
|
var Ln = {};
|
|
39099
39017
|
Object.defineProperty(Ln, "__esModule", { value: !0 });
|
|
39100
39018
|
var ag = Ln.Rect = void 0;
|
|
@@ -39120,7 +39038,7 @@ var Fn = {};
|
|
|
39120
39038
|
Object.defineProperty(Fn, "__esModule", { value: !0 });
|
|
39121
39039
|
var og = Fn.RegularPolygon = void 0;
|
|
39122
39040
|
const lg = xe, RP = tr, hg = tt, IP = et;
|
|
39123
|
-
class
|
|
39041
|
+
class Ys extends RP.Shape {
|
|
39124
39042
|
_sceneFunc(e) {
|
|
39125
39043
|
const t = this._getPoints();
|
|
39126
39044
|
e.beginPath(), e.moveTo(t[0].x, t[0].y);
|
|
@@ -39162,13 +39080,13 @@ class Xs extends RP.Shape {
|
|
|
39162
39080
|
this.radius(e / 2);
|
|
39163
39081
|
}
|
|
39164
39082
|
}
|
|
39165
|
-
og = Fn.RegularPolygon =
|
|
39166
|
-
|
|
39167
|
-
|
|
39168
|
-
|
|
39169
|
-
(0, IP._registerNode)(
|
|
39170
|
-
lg.Factory.addGetterSetter(
|
|
39171
|
-
lg.Factory.addGetterSetter(
|
|
39083
|
+
og = Fn.RegularPolygon = Ys;
|
|
39084
|
+
Ys.prototype.className = "RegularPolygon";
|
|
39085
|
+
Ys.prototype._centroid = !0;
|
|
39086
|
+
Ys.prototype._attrsAffectingSize = ["radius"];
|
|
39087
|
+
(0, IP._registerNode)(Ys);
|
|
39088
|
+
lg.Factory.addGetterSetter(Ys, "radius", 0, (0, hg.getNumberValidator)());
|
|
39089
|
+
lg.Factory.addGetterSetter(Ys, "sides", 0, (0, hg.getNumberValidator)());
|
|
39172
39090
|
const OP = /* @__PURE__ */ Ne({
|
|
39173
39091
|
__proto__: null,
|
|
39174
39092
|
get RegularPolygon() {
|
|
@@ -39181,7 +39099,7 @@ Object.defineProperty(Un, "__esModule", { value: !0 });
|
|
|
39181
39099
|
var ug = Un.Ring = void 0;
|
|
39182
39100
|
const fg = xe, DP = tr, dg = tt, NP = et;
|
|
39183
39101
|
var td = Math.PI * 2;
|
|
39184
|
-
class
|
|
39102
|
+
class Xs extends DP.Shape {
|
|
39185
39103
|
_sceneFunc(e) {
|
|
39186
39104
|
e.beginPath(), e.arc(0, 0, this.innerRadius(), 0, td, !1), e.moveTo(this.outerRadius(), 0), e.arc(0, 0, this.outerRadius(), td, 0, !0), e.closePath(), e.fillStrokeShape(this);
|
|
39187
39105
|
}
|
|
@@ -39198,13 +39116,13 @@ class Ks extends DP.Shape {
|
|
|
39198
39116
|
this.outerRadius(e / 2);
|
|
39199
39117
|
}
|
|
39200
39118
|
}
|
|
39201
|
-
ug = Un.Ring =
|
|
39202
|
-
|
|
39203
|
-
|
|
39204
|
-
|
|
39205
|
-
(0, NP._registerNode)(
|
|
39206
|
-
fg.Factory.addGetterSetter(
|
|
39207
|
-
fg.Factory.addGetterSetter(
|
|
39119
|
+
ug = Un.Ring = Xs;
|
|
39120
|
+
Xs.prototype.className = "Ring";
|
|
39121
|
+
Xs.prototype._centroid = !0;
|
|
39122
|
+
Xs.prototype._attrsAffectingSize = ["innerRadius", "outerRadius"];
|
|
39123
|
+
(0, NP._registerNode)(Xs);
|
|
39124
|
+
fg.Factory.addGetterSetter(Xs, "innerRadius", 0, (0, dg.getNumberValidator)());
|
|
39125
|
+
fg.Factory.addGetterSetter(Xs, "outerRadius", 0, (0, dg.getNumberValidator)());
|
|
39208
39126
|
const LP = /* @__PURE__ */ Ne({
|
|
39209
39127
|
__proto__: null,
|
|
39210
39128
|
get Ring() {
|
|
@@ -39215,7 +39133,7 @@ const LP = /* @__PURE__ */ Ne({
|
|
|
39215
39133
|
var Gn = {};
|
|
39216
39134
|
Object.defineProperty(Gn, "__esModule", { value: !0 });
|
|
39217
39135
|
var cg = Gn.Sprite = void 0;
|
|
39218
|
-
const
|
|
39136
|
+
const Ks = xe, UP = tr, GP = wu, pg = tt, jP = et;
|
|
39219
39137
|
class _i extends UP.Shape {
|
|
39220
39138
|
constructor(e) {
|
|
39221
39139
|
super(e), this._updated = !0, this.anim = new GP.Animation(() => {
|
|
@@ -39276,13 +39194,13 @@ class _i extends UP.Shape {
|
|
|
39276
39194
|
cg = Gn.Sprite = _i;
|
|
39277
39195
|
_i.prototype.className = "Sprite";
|
|
39278
39196
|
(0, jP._registerNode)(_i);
|
|
39279
|
-
|
|
39280
|
-
|
|
39281
|
-
|
|
39282
|
-
|
|
39283
|
-
|
|
39284
|
-
|
|
39285
|
-
|
|
39197
|
+
Ks.Factory.addGetterSetter(_i, "animation");
|
|
39198
|
+
Ks.Factory.addGetterSetter(_i, "animations");
|
|
39199
|
+
Ks.Factory.addGetterSetter(_i, "frameOffsets");
|
|
39200
|
+
Ks.Factory.addGetterSetter(_i, "image");
|
|
39201
|
+
Ks.Factory.addGetterSetter(_i, "frameIndex", 0, (0, pg.getNumberValidator)());
|
|
39202
|
+
Ks.Factory.addGetterSetter(_i, "frameRate", 17, (0, pg.getNumberValidator)());
|
|
39203
|
+
Ks.Factory.backCompat(_i, {
|
|
39286
39204
|
index: "frameIndex",
|
|
39287
39205
|
getIndex: "getFrameIndex",
|
|
39288
39206
|
setIndex: "setFrameIndex"
|
|
@@ -39298,7 +39216,7 @@ var jn = {};
|
|
|
39298
39216
|
Object.defineProperty(jn, "__esModule", { value: !0 });
|
|
39299
39217
|
var gg = jn.Star = void 0;
|
|
39300
39218
|
const Mu = xe, HP = tr, Ru = tt, WP = et;
|
|
39301
|
-
class
|
|
39219
|
+
class ds extends HP.Shape {
|
|
39302
39220
|
_sceneFunc(e) {
|
|
39303
39221
|
var t = this.innerRadius(), i = this.outerRadius(), s = this.numPoints();
|
|
39304
39222
|
e.beginPath(), e.moveTo(0, 0 - i);
|
|
@@ -39321,14 +39239,14 @@ class cs extends HP.Shape {
|
|
|
39321
39239
|
this.outerRadius(e / 2);
|
|
39322
39240
|
}
|
|
39323
39241
|
}
|
|
39324
|
-
gg = jn.Star =
|
|
39325
|
-
|
|
39326
|
-
|
|
39327
|
-
|
|
39328
|
-
(0, WP._registerNode)(
|
|
39329
|
-
Mu.Factory.addGetterSetter(
|
|
39330
|
-
Mu.Factory.addGetterSetter(
|
|
39331
|
-
Mu.Factory.addGetterSetter(
|
|
39242
|
+
gg = jn.Star = ds;
|
|
39243
|
+
ds.prototype.className = "Star";
|
|
39244
|
+
ds.prototype._centroid = !0;
|
|
39245
|
+
ds.prototype._attrsAffectingSize = ["innerRadius", "outerRadius"];
|
|
39246
|
+
(0, WP._registerNode)(ds);
|
|
39247
|
+
Mu.Factory.addGetterSetter(ds, "numPoints", 5, (0, Ru.getNumberValidator)());
|
|
39248
|
+
Mu.Factory.addGetterSetter(ds, "innerRadius", 0, (0, Ru.getNumberValidator)());
|
|
39249
|
+
Mu.Factory.addGetterSetter(ds, "outerRadius", 0, (0, Ru.getNumberValidator)());
|
|
39332
39250
|
const qP = /* @__PURE__ */ Ne({
|
|
39333
39251
|
__proto__: null,
|
|
39334
39252
|
get Star() {
|
|
@@ -39336,14 +39254,14 @@ const qP = /* @__PURE__ */ Ne({
|
|
|
39336
39254
|
},
|
|
39337
39255
|
default: jn
|
|
39338
39256
|
}, [jn]), YP = /* @__PURE__ */ Le(qP);
|
|
39339
|
-
var
|
|
39340
|
-
Object.defineProperty(
|
|
39341
|
-
var vg =
|
|
39342
|
-
const G1 = Dt, hr = xe, XP = tr,
|
|
39257
|
+
var Gs = {};
|
|
39258
|
+
Object.defineProperty(Gs, "__esModule", { value: !0 });
|
|
39259
|
+
var vg = Gs.Text = bg = Gs.stringToArray = void 0;
|
|
39260
|
+
const G1 = Dt, hr = xe, XP = tr, cs = tt, KP = et;
|
|
39343
39261
|
function mg(r) {
|
|
39344
39262
|
return Array.from(r);
|
|
39345
39263
|
}
|
|
39346
|
-
var bg =
|
|
39264
|
+
var bg = Gs.stringToArray = mg, la = "auto", ZP = "center", yg = "inherit", Fa = "justify", JP = "Change.konva", QP = "2d", rd = "-", _g = "left", xP = "text", ek = "Text", tk = "top", rk = "bottom", id = "middle", Tg = "normal", ik = "px ", Xo = " ", sk = "right", sd = "rtl", ak = "word", nk = "char", ad = "none", B0 = "…", Cg = [
|
|
39347
39265
|
"direction",
|
|
39348
39266
|
"fontFamily",
|
|
39349
39267
|
"fontSize",
|
|
@@ -39426,11 +39344,11 @@ class Nt extends XP.Shape {
|
|
|
39426
39344
|
return this._setAttr(xP, t), this;
|
|
39427
39345
|
}
|
|
39428
39346
|
getWidth() {
|
|
39429
|
-
var e = this.attrs.width ===
|
|
39347
|
+
var e = this.attrs.width === la || this.attrs.width === void 0;
|
|
39430
39348
|
return e ? this.getTextWidth() + this.padding() * 2 : this.attrs.width;
|
|
39431
39349
|
}
|
|
39432
39350
|
getHeight() {
|
|
39433
|
-
var e = this.attrs.height ===
|
|
39351
|
+
var e = this.attrs.height === la || this.attrs.height === void 0;
|
|
39434
39352
|
return e ? this.fontSize() * this.textArr.length * this.lineHeight() + this.padding() * 2 : this.attrs.height;
|
|
39435
39353
|
}
|
|
39436
39354
|
getTextWidth() {
|
|
@@ -39464,7 +39382,7 @@ class Nt extends XP.Shape {
|
|
|
39464
39382
|
}
|
|
39465
39383
|
_setTextData() {
|
|
39466
39384
|
var e = this.text().split(`
|
|
39467
|
-
`), t = +this.fontSize(), i = 0, s = this.lineHeight() * t, a = this.attrs.width, n = this.attrs.height, o = a !==
|
|
39385
|
+
`), t = +this.fontSize(), i = 0, s = this.lineHeight() * t, a = this.attrs.width, n = this.attrs.height, o = a !== la && a !== void 0, l = n !== la && n !== void 0, h = this.padding(), u = a - h * 2, d = n - h * 2, c = 0, f = this.wrap(), p = f !== ad, g = f !== nk && p, y = this.ellipsis();
|
|
39468
39386
|
this.textArr = [], V0().font = this._getContextFont();
|
|
39469
39387
|
for (var _ = y ? this._getTextWidth(B0) : 0, T = 0, m = e.length; T < m; ++T) {
|
|
39470
39388
|
var w = e[T], I = this._getTextWidth(w);
|
|
@@ -39500,11 +39418,11 @@ class Nt extends XP.Shape {
|
|
|
39500
39418
|
this.textHeight = t, this.textWidth = i;
|
|
39501
39419
|
}
|
|
39502
39420
|
_shouldHandleEllipsis(e) {
|
|
39503
|
-
var t = +this.fontSize(), i = this.lineHeight() * t, s = this.attrs.height, a = s !==
|
|
39421
|
+
var t = +this.fontSize(), i = this.lineHeight() * t, s = this.attrs.height, a = s !== la && s !== void 0, n = this.padding(), o = s - n * 2, l = this.wrap(), h = l !== ad;
|
|
39504
39422
|
return !h || a && e + i > o;
|
|
39505
39423
|
}
|
|
39506
39424
|
_tryToAddEllipsisToLastLine() {
|
|
39507
|
-
var e = this.attrs.width, t = e !==
|
|
39425
|
+
var e = this.attrs.width, t = e !== la && e !== void 0, i = this.padding(), s = e - i * 2, a = this.ellipsis(), n = this.textArr[this.textArr.length - 1];
|
|
39508
39426
|
if (!(!n || !a)) {
|
|
39509
39427
|
if (t) {
|
|
39510
39428
|
var o = this._getTextWidth(n.text + B0) < s;
|
|
@@ -39521,7 +39439,7 @@ class Nt extends XP.Shape {
|
|
|
39521
39439
|
return e && t ? !0 : super._useBufferCanvas();
|
|
39522
39440
|
}
|
|
39523
39441
|
}
|
|
39524
|
-
vg =
|
|
39442
|
+
vg = Gs.Text = Nt;
|
|
39525
39443
|
Nt.prototype._fillFunc = hk;
|
|
39526
39444
|
Nt.prototype._strokeFunc = uk;
|
|
39527
39445
|
Nt.prototype.className = ek;
|
|
@@ -39534,32 +39452,32 @@ Nt.prototype._attrsAffectingSize = [
|
|
|
39534
39452
|
"letterSpacing"
|
|
39535
39453
|
];
|
|
39536
39454
|
(0, KP._registerNode)(Nt);
|
|
39537
|
-
hr.Factory.overWriteSetter(Nt, "width", (0,
|
|
39538
|
-
hr.Factory.overWriteSetter(Nt, "height", (0,
|
|
39455
|
+
hr.Factory.overWriteSetter(Nt, "width", (0, cs.getNumberOrAutoValidator)());
|
|
39456
|
+
hr.Factory.overWriteSetter(Nt, "height", (0, cs.getNumberOrAutoValidator)());
|
|
39539
39457
|
hr.Factory.addGetterSetter(Nt, "direction", yg);
|
|
39540
39458
|
hr.Factory.addGetterSetter(Nt, "fontFamily", "Arial");
|
|
39541
|
-
hr.Factory.addGetterSetter(Nt, "fontSize", 12, (0,
|
|
39459
|
+
hr.Factory.addGetterSetter(Nt, "fontSize", 12, (0, cs.getNumberValidator)());
|
|
39542
39460
|
hr.Factory.addGetterSetter(Nt, "fontStyle", Tg);
|
|
39543
39461
|
hr.Factory.addGetterSetter(Nt, "fontVariant", Tg);
|
|
39544
|
-
hr.Factory.addGetterSetter(Nt, "padding", 0, (0,
|
|
39462
|
+
hr.Factory.addGetterSetter(Nt, "padding", 0, (0, cs.getNumberValidator)());
|
|
39545
39463
|
hr.Factory.addGetterSetter(Nt, "align", _g);
|
|
39546
39464
|
hr.Factory.addGetterSetter(Nt, "verticalAlign", tk);
|
|
39547
|
-
hr.Factory.addGetterSetter(Nt, "lineHeight", 1, (0,
|
|
39465
|
+
hr.Factory.addGetterSetter(Nt, "lineHeight", 1, (0, cs.getNumberValidator)());
|
|
39548
39466
|
hr.Factory.addGetterSetter(Nt, "wrap", ak);
|
|
39549
|
-
hr.Factory.addGetterSetter(Nt, "ellipsis", !1, (0,
|
|
39550
|
-
hr.Factory.addGetterSetter(Nt, "letterSpacing", 0, (0,
|
|
39551
|
-
hr.Factory.addGetterSetter(Nt, "text", "", (0,
|
|
39467
|
+
hr.Factory.addGetterSetter(Nt, "ellipsis", !1, (0, cs.getBooleanValidator)());
|
|
39468
|
+
hr.Factory.addGetterSetter(Nt, "letterSpacing", 0, (0, cs.getNumberValidator)());
|
|
39469
|
+
hr.Factory.addGetterSetter(Nt, "text", "", (0, cs.getStringValidator)());
|
|
39552
39470
|
hr.Factory.addGetterSetter(Nt, "textDecoration", "");
|
|
39553
39471
|
const dk = /* @__PURE__ */ Ne({
|
|
39554
39472
|
__proto__: null,
|
|
39555
39473
|
get Text() {
|
|
39556
39474
|
return vg;
|
|
39557
39475
|
},
|
|
39558
|
-
default:
|
|
39476
|
+
default: Gs,
|
|
39559
39477
|
get stringToArray() {
|
|
39560
39478
|
return bg;
|
|
39561
39479
|
}
|
|
39562
|
-
}, [
|
|
39480
|
+
}, [Gs]), wg = /* @__PURE__ */ Le(dk);
|
|
39563
39481
|
var Bn = {};
|
|
39564
39482
|
Object.defineProperty(Bn, "__esModule", { value: !0 });
|
|
39565
39483
|
var Sg = Bn.TextPath = void 0;
|
|
@@ -39730,7 +39648,7 @@ const vk = /* @__PURE__ */ Ne({
|
|
|
39730
39648
|
var Vn = {};
|
|
39731
39649
|
Object.defineProperty(Vn, "__esModule", { value: !0 });
|
|
39732
39650
|
var Ag = Vn.Transformer = void 0;
|
|
39733
|
-
const bt = Dt, gt = xe, nd = jt, bk = tr, yk = ng, od = Cu, si = et,
|
|
39651
|
+
const bt = Dt, gt = xe, nd = jt, bk = tr, yk = ng, od = Cu, si = et, ps = tt, _k = et;
|
|
39734
39652
|
var Mg = "tr-konva", Tk = [
|
|
39735
39653
|
"resizeEnabledChange",
|
|
39736
39654
|
"rotateAnchorOffsetChange",
|
|
@@ -40335,27 +40253,27 @@ function Ak(r) {
|
|
|
40335
40253
|
ht.prototype.className = "Transformer";
|
|
40336
40254
|
(0, _k._registerNode)(ht);
|
|
40337
40255
|
gt.Factory.addGetterSetter(ht, "enabledAnchors", zl, Ak);
|
|
40338
|
-
gt.Factory.addGetterSetter(ht, "flipEnabled", !0, (0,
|
|
40256
|
+
gt.Factory.addGetterSetter(ht, "flipEnabled", !0, (0, ps.getBooleanValidator)());
|
|
40339
40257
|
gt.Factory.addGetterSetter(ht, "resizeEnabled", !0);
|
|
40340
|
-
gt.Factory.addGetterSetter(ht, "anchorSize", 10, (0,
|
|
40258
|
+
gt.Factory.addGetterSetter(ht, "anchorSize", 10, (0, ps.getNumberValidator)());
|
|
40341
40259
|
gt.Factory.addGetterSetter(ht, "rotateEnabled", !0);
|
|
40342
40260
|
gt.Factory.addGetterSetter(ht, "rotationSnaps", []);
|
|
40343
|
-
gt.Factory.addGetterSetter(ht, "rotateAnchorOffset", 50, (0,
|
|
40261
|
+
gt.Factory.addGetterSetter(ht, "rotateAnchorOffset", 50, (0, ps.getNumberValidator)());
|
|
40344
40262
|
gt.Factory.addGetterSetter(ht, "rotateAnchorCursor", "crosshair");
|
|
40345
|
-
gt.Factory.addGetterSetter(ht, "rotationSnapTolerance", 5, (0,
|
|
40263
|
+
gt.Factory.addGetterSetter(ht, "rotationSnapTolerance", 5, (0, ps.getNumberValidator)());
|
|
40346
40264
|
gt.Factory.addGetterSetter(ht, "borderEnabled", !0);
|
|
40347
40265
|
gt.Factory.addGetterSetter(ht, "anchorStroke", "rgb(0, 161, 255)");
|
|
40348
|
-
gt.Factory.addGetterSetter(ht, "anchorStrokeWidth", 1, (0,
|
|
40266
|
+
gt.Factory.addGetterSetter(ht, "anchorStrokeWidth", 1, (0, ps.getNumberValidator)());
|
|
40349
40267
|
gt.Factory.addGetterSetter(ht, "anchorFill", "white");
|
|
40350
|
-
gt.Factory.addGetterSetter(ht, "anchorCornerRadius", 0, (0,
|
|
40268
|
+
gt.Factory.addGetterSetter(ht, "anchorCornerRadius", 0, (0, ps.getNumberValidator)());
|
|
40351
40269
|
gt.Factory.addGetterSetter(ht, "borderStroke", "rgb(0, 161, 255)");
|
|
40352
|
-
gt.Factory.addGetterSetter(ht, "borderStrokeWidth", 1, (0,
|
|
40270
|
+
gt.Factory.addGetterSetter(ht, "borderStrokeWidth", 1, (0, ps.getNumberValidator)());
|
|
40353
40271
|
gt.Factory.addGetterSetter(ht, "borderDash");
|
|
40354
40272
|
gt.Factory.addGetterSetter(ht, "keepRatio", !0);
|
|
40355
40273
|
gt.Factory.addGetterSetter(ht, "shiftBehavior", "default");
|
|
40356
40274
|
gt.Factory.addGetterSetter(ht, "centeredScaling", !1);
|
|
40357
40275
|
gt.Factory.addGetterSetter(ht, "ignoreStroke", !1);
|
|
40358
|
-
gt.Factory.addGetterSetter(ht, "padding", 0, (0,
|
|
40276
|
+
gt.Factory.addGetterSetter(ht, "padding", 0, (0, ps.getNumberValidator)());
|
|
40359
40277
|
gt.Factory.addGetterSetter(ht, "node");
|
|
40360
40278
|
gt.Factory.addGetterSetter(ht, "nodes");
|
|
40361
40279
|
gt.Factory.addGetterSetter(ht, "boundBoxFunc");
|
|
@@ -41008,7 +40926,7 @@ const xk = /* @__PURE__ */ Ne({
|
|
|
41008
40926
|
var Xn = {};
|
|
41009
40927
|
Object.defineProperty(Xn, "__esModule", { value: !0 });
|
|
41010
40928
|
var Lg = Xn.Emboss = void 0;
|
|
41011
|
-
const
|
|
40929
|
+
const ls = xe, r0 = jt, tE = Dt, Fg = tt, rE = function(r) {
|
|
41012
40930
|
var e = this.embossStrength() * 10, t = this.embossWhiteLevel() * 255, i = this.embossDirection(), s = this.embossBlend(), a = 0, n = 0, o = r.data, l = r.width, h = r.height, u = l * 4, d = h;
|
|
41013
40931
|
switch (i) {
|
|
41014
40932
|
case "top-left":
|
|
@@ -41057,10 +40975,10 @@ const hs = xe, r0 = jt, tE = Dt, Fg = tt, rE = function(r) {
|
|
|
41057
40975
|
} while (--d);
|
|
41058
40976
|
};
|
|
41059
40977
|
Lg = Xn.Emboss = rE;
|
|
41060
|
-
|
|
41061
|
-
|
|
41062
|
-
|
|
41063
|
-
|
|
40978
|
+
ls.Factory.addGetterSetter(r0.Node, "embossStrength", 0.5, (0, Fg.getNumberValidator)(), ls.Factory.afterSetFilter);
|
|
40979
|
+
ls.Factory.addGetterSetter(r0.Node, "embossWhiteLevel", 0.5, (0, Fg.getNumberValidator)(), ls.Factory.afterSetFilter);
|
|
40980
|
+
ls.Factory.addGetterSetter(r0.Node, "embossDirection", "top-left", null, ls.Factory.afterSetFilter);
|
|
40981
|
+
ls.Factory.addGetterSetter(r0.Node, "embossBlend", !1, null, ls.Factory.afterSetFilter);
|
|
41064
40982
|
const iE = /* @__PURE__ */ Ne({
|
|
41065
40983
|
__proto__: null,
|
|
41066
40984
|
get Emboss() {
|
|
@@ -41669,7 +41587,7 @@ const yM = (r, e) => {
|
|
|
41669
41587
|
}, _M = (r, e) => r.attrs.id === r.attrs.id && r._id === e._id, sn = (r) => r.reduce(
|
|
41670
41588
|
(e, t) => [...e, ...t.toArray()],
|
|
41671
41589
|
[]
|
|
41672
|
-
),
|
|
41590
|
+
), rO = (r) => {
|
|
41673
41591
|
r.sort(function(t, i) {
|
|
41674
41592
|
return t - i;
|
|
41675
41593
|
});
|
|
@@ -41684,7 +41602,7 @@ const yM = (r, e) => {
|
|
|
41684
41602
|
x: r[4],
|
|
41685
41603
|
y: r[5]
|
|
41686
41604
|
};
|
|
41687
|
-
},
|
|
41605
|
+
}, iO = (r, e) => {
|
|
41688
41606
|
const t = r.getTransform().getMatrix(), i = e.getTransform().getMatrix(), s = t[0], a = t[1], n = t[2], o = t[3], l = t[4], h = t[5], u = i[0], d = i[1], c = i[2], f = i[3], p = i[4], g = i[5], y = u * f, _ = d * c, T = (c * a - s * f) / (_ - y), m = (u * a - s * d) / (y - _), w = (c * o - n * f) / (_ - y), I = (u * o - n * d) / (y - _), k = (c * (h - g) + f * (p - l)) / (_ - y), O = (u * (h - g) + d * (p - l)) / (y - _);
|
|
41689
41607
|
return TM([T, m, w, I, k, O]);
|
|
41690
41608
|
};
|
|
@@ -41797,12 +41715,12 @@ class wM extends i6 {
|
|
|
41797
41715
|
this.app.off("mouseDown", this.onMousedown), this.app.off("mouseMove", this.onMousemove), this.app.off("mouseUp", this.onMouseup), this.app.off("mouseClick", this.onClick), this.app.off("mouseDoubleClick", this.onDoubleClick), this.currentTool = null;
|
|
41798
41716
|
}
|
|
41799
41717
|
}
|
|
41800
|
-
var SM = Object.defineProperty, zM = Object.getOwnPropertyDescriptor,
|
|
41718
|
+
var SM = Object.defineProperty, zM = Object.getOwnPropertyDescriptor, gs = (r, e, t, i) => {
|
|
41801
41719
|
for (var s = i > 1 ? void 0 : i ? zM(e, t) : e, a = r.length - 1, n; a >= 0; a--)
|
|
41802
41720
|
(n = r[a]) && (s = (i ? n(e, t, s) : n(s)) || s);
|
|
41803
41721
|
return i && s && SM(e, t, s), s;
|
|
41804
41722
|
};
|
|
41805
|
-
class
|
|
41723
|
+
class sO {
|
|
41806
41724
|
name = "alignmentPlugin";
|
|
41807
41725
|
alignment;
|
|
41808
41726
|
app;
|
|
@@ -41907,7 +41825,7 @@ class aO {
|
|
|
41907
41825
|
return this.options.enabled && (this.alignment?.enabled ?? !1);
|
|
41908
41826
|
}
|
|
41909
41827
|
}
|
|
41910
|
-
function
|
|
41828
|
+
function vs(r, e, t) {
|
|
41911
41829
|
const i = t.value;
|
|
41912
41830
|
return t.value = function(...s) {
|
|
41913
41831
|
if (this.enabled)
|
|
@@ -42028,29 +41946,29 @@ class Ki {
|
|
|
42028
41946
|
);
|
|
42029
41947
|
}
|
|
42030
41948
|
}
|
|
42031
|
-
|
|
42032
|
-
|
|
41949
|
+
gs([
|
|
41950
|
+
vs
|
|
42033
41951
|
], Ki.prototype, "alignLeft", 1);
|
|
42034
|
-
|
|
42035
|
-
|
|
41952
|
+
gs([
|
|
41953
|
+
vs
|
|
42036
41954
|
], Ki.prototype, "alignRight", 1);
|
|
42037
|
-
|
|
42038
|
-
|
|
41955
|
+
gs([
|
|
41956
|
+
vs
|
|
42039
41957
|
], Ki.prototype, "alignTop", 1);
|
|
42040
|
-
|
|
42041
|
-
|
|
41958
|
+
gs([
|
|
41959
|
+
vs
|
|
42042
41960
|
], Ki.prototype, "alignBottom", 1);
|
|
42043
|
-
|
|
42044
|
-
|
|
41961
|
+
gs([
|
|
41962
|
+
vs
|
|
42045
41963
|
], Ki.prototype, "alignCenterX", 1);
|
|
42046
|
-
|
|
42047
|
-
|
|
41964
|
+
gs([
|
|
41965
|
+
vs
|
|
42048
41966
|
], Ki.prototype, "alignCenterY", 1);
|
|
42049
|
-
|
|
42050
|
-
|
|
41967
|
+
gs([
|
|
41968
|
+
vs
|
|
42051
41969
|
], Ki.prototype, "dispersionX", 1);
|
|
42052
|
-
|
|
42053
|
-
|
|
41970
|
+
gs([
|
|
41971
|
+
vs
|
|
42054
41972
|
], Ki.prototype, "dispersionY", 1);
|
|
42055
41973
|
class PM {
|
|
42056
41974
|
app;
|
|
@@ -42268,7 +42186,7 @@ const kM = {
|
|
|
42268
42186
|
fill: "#4e86e350"
|
|
42269
42187
|
}
|
|
42270
42188
|
};
|
|
42271
|
-
class
|
|
42189
|
+
class aO {
|
|
42272
42190
|
name = "selectorPlugin";
|
|
42273
42191
|
selector;
|
|
42274
42192
|
app;
|
|
@@ -42491,7 +42409,7 @@ class $M {
|
|
|
42491
42409
|
this.undoStack = [], this.redoStack = [], this.app.emit("stackChanged", this.undoStack, this.redoStack);
|
|
42492
42410
|
}
|
|
42493
42411
|
}
|
|
42494
|
-
class
|
|
42412
|
+
class nO {
|
|
42495
42413
|
name = "historyPlugin";
|
|
42496
42414
|
history;
|
|
42497
42415
|
app;
|
|
@@ -42576,7 +42494,7 @@ class oO {
|
|
|
42576
42494
|
!this.app || !this.history || this.history.execute(new OM(this.app, { nodes: t, group: e }));
|
|
42577
42495
|
};
|
|
42578
42496
|
}
|
|
42579
|
-
class
|
|
42497
|
+
class oO {
|
|
42580
42498
|
name = "diamondTool";
|
|
42581
42499
|
hooks;
|
|
42582
42500
|
config;
|
|
@@ -42618,7 +42536,7 @@ class lO {
|
|
|
42618
42536
|
this.diamond = null, this.startPointer.setXY(0, 0);
|
|
42619
42537
|
}
|
|
42620
42538
|
}
|
|
42621
|
-
class
|
|
42539
|
+
class lO {
|
|
42622
42540
|
name = "drawingTool";
|
|
42623
42541
|
config;
|
|
42624
42542
|
hooks;
|
|
@@ -42655,7 +42573,7 @@ class hO {
|
|
|
42655
42573
|
this.line = null, this.points = [];
|
|
42656
42574
|
}
|
|
42657
42575
|
}
|
|
42658
|
-
class
|
|
42576
|
+
class hO {
|
|
42659
42577
|
name = "ellipseTool";
|
|
42660
42578
|
config;
|
|
42661
42579
|
hooks;
|
|
@@ -42699,7 +42617,7 @@ class uO {
|
|
|
42699
42617
|
this.ellipse = null, this.startPointer.setXY(0, 0);
|
|
42700
42618
|
}
|
|
42701
42619
|
}
|
|
42702
|
-
class
|
|
42620
|
+
class uO {
|
|
42703
42621
|
name = "imageTool";
|
|
42704
42622
|
config;
|
|
42705
42623
|
hooks;
|
|
@@ -42728,7 +42646,7 @@ class fO {
|
|
|
42728
42646
|
this.image = null, this.imageElement = new Image();
|
|
42729
42647
|
}
|
|
42730
42648
|
}
|
|
42731
|
-
class
|
|
42649
|
+
class fO {
|
|
42732
42650
|
name = "lineTool";
|
|
42733
42651
|
config;
|
|
42734
42652
|
hooks;
|
|
@@ -42758,7 +42676,7 @@ class dO {
|
|
|
42758
42676
|
this.line = null, this.points = [];
|
|
42759
42677
|
}
|
|
42760
42678
|
}
|
|
42761
|
-
class
|
|
42679
|
+
class dO {
|
|
42762
42680
|
name = "rectTool";
|
|
42763
42681
|
config;
|
|
42764
42682
|
hooks;
|
|
@@ -42794,7 +42712,7 @@ class cO {
|
|
|
42794
42712
|
this.rectangle = null, this.startPointer.setXY(0, 0);
|
|
42795
42713
|
}
|
|
42796
42714
|
}
|
|
42797
|
-
class
|
|
42715
|
+
class cO {
|
|
42798
42716
|
name = "selectTool";
|
|
42799
42717
|
hooks;
|
|
42800
42718
|
constructor(e) {
|
|
@@ -42836,7 +42754,7 @@ const DM = (r, e, t) => {
|
|
|
42836
42754
|
window.addEventListener("click", c);
|
|
42837
42755
|
});
|
|
42838
42756
|
};
|
|
42839
|
-
class
|
|
42757
|
+
class pO {
|
|
42840
42758
|
name = "textTool";
|
|
42841
42759
|
config;
|
|
42842
42760
|
hooks;
|
|
@@ -42861,7 +42779,7 @@ class gO {
|
|
|
42861
42779
|
this.textNode = null;
|
|
42862
42780
|
}
|
|
42863
42781
|
}
|
|
42864
|
-
class
|
|
42782
|
+
class gO {
|
|
42865
42783
|
name = "eraserTool";
|
|
42866
42784
|
hooks;
|
|
42867
42785
|
targetMap = /* @__PURE__ */ new Map();
|
|
@@ -42905,7 +42823,7 @@ const NM = {
|
|
|
42905
42823
|
factor: 0.1
|
|
42906
42824
|
}
|
|
42907
42825
|
};
|
|
42908
|
-
class
|
|
42826
|
+
class vO extends hc {
|
|
42909
42827
|
stage;
|
|
42910
42828
|
mainLayer;
|
|
42911
42829
|
config;
|
|
@@ -43206,7 +43124,7 @@ const s6 = [], Sd = {};
|
|
|
43206
43124
|
function a6(r) {
|
|
43207
43125
|
s6.push(r);
|
|
43208
43126
|
}
|
|
43209
|
-
function
|
|
43127
|
+
function mO(r, e = !1) {
|
|
43210
43128
|
const t = o_();
|
|
43211
43129
|
if (Sd[t])
|
|
43212
43130
|
return;
|
|
@@ -43258,7 +43176,7 @@ function bO(r, e = !1) {
|
|
|
43258
43176
|
})
|
|
43259
43177
|
), Sd[t] = !0;
|
|
43260
43178
|
}
|
|
43261
|
-
function
|
|
43179
|
+
function bO(r) {
|
|
43262
43180
|
return new Promise((e, t) => {
|
|
43263
43181
|
wx.checkJsApi({
|
|
43264
43182
|
jsApiList: [r],
|
|
@@ -43271,74 +43189,74 @@ function yO(r) {
|
|
|
43271
43189
|
});
|
|
43272
43190
|
});
|
|
43273
43191
|
}
|
|
43274
|
-
function
|
|
43192
|
+
function yO(r) {
|
|
43275
43193
|
a6(function() {
|
|
43276
43194
|
wx.updateAppMessageShareData(r);
|
|
43277
43195
|
});
|
|
43278
43196
|
}
|
|
43279
|
-
function
|
|
43197
|
+
function _O(r) {
|
|
43280
43198
|
a6(function() {
|
|
43281
43199
|
wx.updateTimelineShareData(r);
|
|
43282
43200
|
});
|
|
43283
43201
|
}
|
|
43284
|
-
function
|
|
43202
|
+
function TO(r) {
|
|
43285
43203
|
wx.chooseImage(r);
|
|
43286
43204
|
}
|
|
43287
|
-
function
|
|
43205
|
+
function CO(r) {
|
|
43288
43206
|
wx.previewImage(r);
|
|
43289
43207
|
}
|
|
43290
|
-
function
|
|
43208
|
+
function wO(r) {
|
|
43291
43209
|
wx.uploadImage(r);
|
|
43292
43210
|
}
|
|
43293
|
-
function
|
|
43211
|
+
function SO(r) {
|
|
43294
43212
|
wx.downloadImage(r);
|
|
43295
43213
|
}
|
|
43296
|
-
function
|
|
43214
|
+
function zO(r) {
|
|
43297
43215
|
wx.getLocalImgData(r);
|
|
43298
43216
|
}
|
|
43299
|
-
function
|
|
43217
|
+
function PO() {
|
|
43300
43218
|
wx.startRecord();
|
|
43301
43219
|
}
|
|
43302
|
-
function
|
|
43220
|
+
function kO(r) {
|
|
43303
43221
|
wx.stopRecord(r);
|
|
43304
43222
|
}
|
|
43305
|
-
function
|
|
43223
|
+
function EO(r) {
|
|
43306
43224
|
wx.onVoiceRecordEnd(r);
|
|
43307
43225
|
}
|
|
43308
|
-
function
|
|
43226
|
+
function AO(r) {
|
|
43309
43227
|
wx.playVoice(r);
|
|
43310
43228
|
}
|
|
43311
|
-
function
|
|
43229
|
+
function MO(r) {
|
|
43312
43230
|
wx.pauseVoice(r);
|
|
43313
43231
|
}
|
|
43314
|
-
function
|
|
43232
|
+
function RO(r) {
|
|
43315
43233
|
wx.stopVoice(r);
|
|
43316
43234
|
}
|
|
43317
|
-
function
|
|
43235
|
+
function IO(r) {
|
|
43318
43236
|
wx.onVoicePlayEnd(r);
|
|
43319
43237
|
}
|
|
43320
|
-
function
|
|
43238
|
+
function OO(r) {
|
|
43321
43239
|
wx.uploadVoice(r);
|
|
43322
43240
|
}
|
|
43323
|
-
function
|
|
43241
|
+
function $O(r) {
|
|
43324
43242
|
wx.downloadVoice(r);
|
|
43325
43243
|
}
|
|
43326
|
-
function
|
|
43244
|
+
function DO(r) {
|
|
43327
43245
|
wx.translateVoice(r);
|
|
43328
43246
|
}
|
|
43329
|
-
function
|
|
43247
|
+
function NO(r) {
|
|
43330
43248
|
wx.getNetworkType(r);
|
|
43331
43249
|
}
|
|
43332
|
-
function
|
|
43250
|
+
function LO(r) {
|
|
43333
43251
|
wx.openLocation(r);
|
|
43334
43252
|
}
|
|
43335
|
-
function
|
|
43253
|
+
function FO(r) {
|
|
43336
43254
|
wx.getLocation(r);
|
|
43337
43255
|
}
|
|
43338
|
-
function
|
|
43256
|
+
function UO(r) {
|
|
43339
43257
|
wx.scanQRCode(r);
|
|
43340
43258
|
}
|
|
43341
|
-
function
|
|
43259
|
+
function GO(r, e, t) {
|
|
43342
43260
|
function i() {
|
|
43343
43261
|
WeixinJSBridge.invoke("getBrandWCPayRequest", r, function(s) {
|
|
43344
43262
|
s.err_msg == "get_brand_wcpay_request:ok" ? e() : t(s.err_msg);
|
|
@@ -43346,7 +43264,7 @@ function jO(r, e, t) {
|
|
|
43346
43264
|
}
|
|
43347
43265
|
typeof WeixinJSBridge > "u" ? document.addEventListener ? document.addEventListener("WeixinJSBridgeReady", i, !1) : document.attachEvent && (document.attachEvent("WeixinJSBridgeReady", i), document.attachEvent("onWeixinJSBridgeReady", i)) : i();
|
|
43348
43266
|
}
|
|
43349
|
-
function
|
|
43267
|
+
function jO(r) {
|
|
43350
43268
|
window.AlipayJSBridge ? r && r() : document.addEventListener("AlipayJSBridgeReady", r, !1);
|
|
43351
43269
|
}
|
|
43352
43270
|
function Po(r, e) {
|
|
@@ -43388,7 +43306,7 @@ function Po(r, e) {
|
|
|
43388
43306
|
}
|
|
43389
43307
|
return `${r.error}(${t}): ${r.errorMessage}`;
|
|
43390
43308
|
}
|
|
43391
|
-
function
|
|
43309
|
+
function BO(r, e, t) {
|
|
43392
43310
|
ap.tradePay(
|
|
43393
43311
|
Object.assign(r, {
|
|
43394
43312
|
// fail: (res: commonFailOption) => {
|
|
@@ -43420,7 +43338,7 @@ function VO(r, e, t) {
|
|
|
43420
43338
|
}
|
|
43421
43339
|
);
|
|
43422
43340
|
}
|
|
43423
|
-
function
|
|
43341
|
+
function VO(r, e, t) {
|
|
43424
43342
|
ap.scan(
|
|
43425
43343
|
Object.assign(r, {
|
|
43426
43344
|
fail: (i) => {
|
|
@@ -43432,7 +43350,7 @@ function HO(r, e, t) {
|
|
|
43432
43350
|
}
|
|
43433
43351
|
);
|
|
43434
43352
|
}
|
|
43435
|
-
function
|
|
43353
|
+
function HO(r, e, t) {
|
|
43436
43354
|
ap.getLocation(
|
|
43437
43355
|
Object.assign(r, {
|
|
43438
43356
|
fail: (i) => {
|
|
@@ -43444,7 +43362,7 @@ function WO(r, e, t) {
|
|
|
43444
43362
|
}
|
|
43445
43363
|
);
|
|
43446
43364
|
}
|
|
43447
|
-
function
|
|
43365
|
+
function WO(r, e, t) {
|
|
43448
43366
|
ap.openLocation(
|
|
43449
43367
|
Object.assign(r, {
|
|
43450
43368
|
fail: (i) => {
|
|
@@ -43456,7 +43374,7 @@ function qO(r, e, t) {
|
|
|
43456
43374
|
}
|
|
43457
43375
|
);
|
|
43458
43376
|
}
|
|
43459
|
-
function
|
|
43377
|
+
function qO(r, e, t) {
|
|
43460
43378
|
ap.chooseImage(
|
|
43461
43379
|
Object.assign(r, {
|
|
43462
43380
|
fail: (i) => {
|
|
@@ -43468,7 +43386,7 @@ function YO(r, e, t) {
|
|
|
43468
43386
|
}
|
|
43469
43387
|
);
|
|
43470
43388
|
}
|
|
43471
|
-
function
|
|
43389
|
+
function YO(r, e, t) {
|
|
43472
43390
|
ap.previewImage(
|
|
43473
43391
|
Object.assign(r, {
|
|
43474
43392
|
fail: (i) => {
|
|
@@ -43481,14 +43399,14 @@ function XO(r, e, t) {
|
|
|
43481
43399
|
);
|
|
43482
43400
|
}
|
|
43483
43401
|
export {
|
|
43484
|
-
|
|
43485
|
-
|
|
43402
|
+
sO as AlignmentPlugin,
|
|
43403
|
+
QI as AnimateOperation,
|
|
43486
43404
|
pp as CanvasOperation,
|
|
43487
43405
|
ml as CustomCanvasContext,
|
|
43488
43406
|
_0 as CustomCanvasGradient,
|
|
43489
43407
|
qf as CustomCanvasPattern,
|
|
43490
43408
|
NM as DEFAULT_APP_CONFIG,
|
|
43491
|
-
|
|
43409
|
+
GR as DOMCanvas,
|
|
43492
43410
|
ER as DOMEvent,
|
|
43493
43411
|
Et as DOMKey,
|
|
43494
43412
|
kR as DOMMedia,
|
|
@@ -43499,89 +43417,89 @@ export {
|
|
|
43499
43417
|
H7 as DOMToString,
|
|
43500
43418
|
TR as DOMUtil,
|
|
43501
43419
|
xw as Dep,
|
|
43502
|
-
|
|
43503
|
-
|
|
43504
|
-
|
|
43505
|
-
|
|
43506
|
-
|
|
43420
|
+
oO as DiamondTool,
|
|
43421
|
+
lO as DrawingTool,
|
|
43422
|
+
hO as EllipseTool,
|
|
43423
|
+
gO as EraserTool,
|
|
43424
|
+
LR as HSVToRGBObject,
|
|
43507
43425
|
$M as History,
|
|
43508
|
-
|
|
43509
|
-
|
|
43510
|
-
|
|
43511
|
-
|
|
43426
|
+
nO as HistoryPlugin,
|
|
43427
|
+
uO as ImageTool,
|
|
43428
|
+
vO as KonvaApp,
|
|
43429
|
+
fO as LineTool,
|
|
43512
43430
|
pr as Matrix,
|
|
43513
|
-
|
|
43431
|
+
ca as Matrix3D,
|
|
43514
43432
|
pa as PathGroup,
|
|
43515
43433
|
Tt as Point,
|
|
43516
43434
|
bl as Polygon,
|
|
43517
|
-
|
|
43518
|
-
|
|
43519
|
-
|
|
43435
|
+
Ms as QRCode,
|
|
43436
|
+
NR as RGBStringToHexString,
|
|
43437
|
+
FR as RGBToHSVObject,
|
|
43520
43438
|
dn as Rect,
|
|
43521
|
-
|
|
43522
|
-
|
|
43523
|
-
|
|
43439
|
+
dO as RectTool,
|
|
43440
|
+
Ps as SVGOperation,
|
|
43441
|
+
cO as SelectTool,
|
|
43524
43442
|
PM as Selector,
|
|
43525
|
-
|
|
43526
|
-
|
|
43527
|
-
|
|
43528
|
-
|
|
43443
|
+
aO as SelectorPlugin,
|
|
43444
|
+
KI as ShapeArmyAnts,
|
|
43445
|
+
NI as ShapeArrow,
|
|
43446
|
+
LI as ShapeBall,
|
|
43529
43447
|
oS as ShapeLight,
|
|
43530
|
-
|
|
43531
|
-
|
|
43532
|
-
|
|
43533
|
-
|
|
43534
|
-
|
|
43535
|
-
|
|
43536
|
-
|
|
43537
|
-
|
|
43538
|
-
|
|
43539
|
-
|
|
43540
|
-
|
|
43541
|
-
|
|
43542
|
-
|
|
43543
|
-
|
|
43544
|
-
|
|
43448
|
+
FI as ShapeLine,
|
|
43449
|
+
BI as ShapePoint3d,
|
|
43450
|
+
UI as ShapeRect,
|
|
43451
|
+
qI as ShapeSegment,
|
|
43452
|
+
GI as ShapeShip,
|
|
43453
|
+
WI as ShapeSlider,
|
|
43454
|
+
ZI as ShapeSmileFace,
|
|
43455
|
+
YI as ShapeSpirograph,
|
|
43456
|
+
XI as ShapeStar,
|
|
43457
|
+
JI as ShapeTiger,
|
|
43458
|
+
jI as ShapeTree,
|
|
43459
|
+
VI as ShapeTriangle,
|
|
43460
|
+
HI as ShapeTriangleLight,
|
|
43461
|
+
DI as TWEEN,
|
|
43462
|
+
pO as TextTool,
|
|
43545
43463
|
g1 as Vector,
|
|
43546
43464
|
wl as VideoUtil,
|
|
43547
|
-
|
|
43548
|
-
|
|
43465
|
+
eO as WebGLRenderer,
|
|
43466
|
+
xI as WebRTCClient,
|
|
43549
43467
|
HM as WebSocketClient,
|
|
43550
43468
|
Xf as YZRaphael,
|
|
43551
43469
|
m1 as absolutize,
|
|
43552
|
-
|
|
43470
|
+
TI as addWatermark,
|
|
43553
43471
|
a6 as addWxJsReadyFnBeforeConfig,
|
|
43554
|
-
|
|
43555
|
-
|
|
43556
|
-
|
|
43557
|
-
|
|
43558
|
-
|
|
43559
|
-
|
|
43560
|
-
|
|
43561
|
-
|
|
43472
|
+
EI as ajax,
|
|
43473
|
+
qO as aliJsChooseImage,
|
|
43474
|
+
HO as aliJsGetLocation,
|
|
43475
|
+
WO as aliJsOpenLocation,
|
|
43476
|
+
YO as aliJsPreviewImage,
|
|
43477
|
+
jO as aliJsReady,
|
|
43478
|
+
VO as aliJsScan,
|
|
43479
|
+
BO as aliJsTradePay,
|
|
43562
43480
|
f_ as angle,
|
|
43563
43481
|
gp as animateInWeb,
|
|
43564
43482
|
f1 as appendURLSearchString,
|
|
43565
43483
|
cR as base64URLDecode,
|
|
43566
43484
|
dR as base64URLEncode,
|
|
43567
|
-
|
|
43568
|
-
|
|
43569
|
-
|
|
43570
|
-
|
|
43571
|
-
|
|
43485
|
+
YR as blobToRawImage,
|
|
43486
|
+
yI as changeBrightness,
|
|
43487
|
+
_I as changeDiaphaneity,
|
|
43488
|
+
bI as changeSize,
|
|
43489
|
+
bO as checkWxJsApi,
|
|
43572
43490
|
PR as clearCookies,
|
|
43573
43491
|
X_ as colorNumberToHexString,
|
|
43574
43492
|
K_ as colorNumberToRGBString,
|
|
43575
|
-
|
|
43493
|
+
wI as compression,
|
|
43576
43494
|
i5 as createXMLHttpRequest,
|
|
43577
43495
|
u_ as distance,
|
|
43578
43496
|
ep as dquery,
|
|
43579
|
-
|
|
43497
|
+
PI as drawQRCodeToCanvas,
|
|
43580
43498
|
e5 as fileOrBlobToDataURL,
|
|
43581
43499
|
Y7 as fileToArrayBufferPromise,
|
|
43582
43500
|
sn as flatPoints,
|
|
43583
|
-
|
|
43584
|
-
|
|
43501
|
+
KR as flipSideToSide,
|
|
43502
|
+
ZR as flipUpsideDown,
|
|
43585
43503
|
x4 as formDataToSearchString,
|
|
43586
43504
|
K4 as getBrowserClient,
|
|
43587
43505
|
QM as getBrowserClientVersion,
|
|
@@ -43596,16 +43514,16 @@ export {
|
|
|
43596
43514
|
x7 as getElementTopInPage,
|
|
43597
43515
|
X7 as getFileExtensionFromFile,
|
|
43598
43516
|
UM as getFileTypeFromFile,
|
|
43599
|
-
|
|
43600
|
-
|
|
43601
|
-
|
|
43602
|
-
|
|
43603
|
-
|
|
43517
|
+
jR as getFilesImageInfo,
|
|
43518
|
+
kI as getFormSubmitData,
|
|
43519
|
+
iO as getGroupCoords,
|
|
43520
|
+
SI as getImageDataByAIData,
|
|
43521
|
+
VR as getImageDataFromBitmap,
|
|
43604
43522
|
Kw as getImageDataFromUrl,
|
|
43605
|
-
|
|
43606
|
-
|
|
43523
|
+
BR as getImageDataFromVideo,
|
|
43524
|
+
XR as getImageMainColor,
|
|
43607
43525
|
r_ as getInternetExplorerVersion,
|
|
43608
|
-
|
|
43526
|
+
rO as getMiddleValue,
|
|
43609
43527
|
ii as getMousePositionInElement,
|
|
43610
43528
|
e_ as getMousePositionInPage,
|
|
43611
43529
|
ZM as getMousePositionInViewport,
|
|
@@ -43615,9 +43533,9 @@ export {
|
|
|
43615
43533
|
un as getPageScroll,
|
|
43616
43534
|
WM as getPageSize,
|
|
43617
43535
|
N_ as getPointAtLength,
|
|
43618
|
-
|
|
43536
|
+
IR as getRaphael,
|
|
43619
43537
|
xp as getRawImageInfo,
|
|
43620
|
-
|
|
43538
|
+
tO as getScrollParent,
|
|
43621
43539
|
tR as getTimeZone,
|
|
43622
43540
|
D_ as getTotalLength,
|
|
43623
43541
|
Q4 as getURL,
|
|
@@ -43632,11 +43550,11 @@ export {
|
|
|
43632
43550
|
i_ as hasWindow,
|
|
43633
43551
|
tu as hexStringToColorNumber,
|
|
43634
43552
|
vp as hexStringToRGBString,
|
|
43635
|
-
|
|
43636
|
-
|
|
43637
|
-
|
|
43638
|
-
|
|
43639
|
-
|
|
43553
|
+
AI as ifWebFileHasChanged,
|
|
43554
|
+
HR as imageDataToBitmap,
|
|
43555
|
+
qR as imageDataToBlob,
|
|
43556
|
+
WR as imageDataToDataURL,
|
|
43557
|
+
mO as injectWxJsConfig,
|
|
43640
43558
|
a_ as isAliBrowser,
|
|
43641
43559
|
uR as isAliMiniProgram,
|
|
43642
43560
|
t_ as isAndroid,
|
|
@@ -43655,13 +43573,13 @@ export {
|
|
|
43655
43573
|
pR as isURL,
|
|
43656
43574
|
s_ as isWxBrowser,
|
|
43657
43575
|
hR as isWxMiniProgram,
|
|
43658
|
-
|
|
43659
|
-
|
|
43576
|
+
pI as jpgToPng,
|
|
43577
|
+
JR as leftRotate,
|
|
43660
43578
|
Of as linkExport,
|
|
43661
43579
|
Df as localstorage,
|
|
43662
|
-
|
|
43580
|
+
cI as marginSharpen,
|
|
43663
43581
|
BM as microTask,
|
|
43664
|
-
|
|
43582
|
+
CI as mosaic,
|
|
43665
43583
|
nl as mount,
|
|
43666
43584
|
c1 as norm,
|
|
43667
43585
|
b1 as normalize,
|
|
@@ -43670,76 +43588,75 @@ export {
|
|
|
43670
43588
|
_R as onHistoryChange,
|
|
43671
43589
|
bR as onURLChange,
|
|
43672
43590
|
Jw as outputGifBase64,
|
|
43673
|
-
|
|
43591
|
+
zI as outputQRCodeBase64,
|
|
43674
43592
|
v1 as parse,
|
|
43675
43593
|
eu as parseTransformToMatrix,
|
|
43676
|
-
RR as parseTransformToMatrix3D,
|
|
43677
43594
|
n_ as parseURL,
|
|
43678
43595
|
K7 as patch,
|
|
43679
43596
|
Z7 as patchDOM,
|
|
43680
|
-
|
|
43597
|
+
gI as pngToJpg,
|
|
43681
43598
|
TM as qrDecompose,
|
|
43682
|
-
|
|
43683
|
-
|
|
43684
|
-
|
|
43685
|
-
|
|
43599
|
+
mI as radiusClip,
|
|
43600
|
+
$R as randomColorHexString,
|
|
43601
|
+
DR as randomColorHexString2,
|
|
43602
|
+
OR as randomColorNumber,
|
|
43686
43603
|
B_ as rappar,
|
|
43687
|
-
|
|
43688
|
-
|
|
43604
|
+
RI as reactiveVue2,
|
|
43605
|
+
II as reactiveVue3,
|
|
43689
43606
|
Y4 as readFileInBrowser,
|
|
43690
43607
|
l_ as recordToSearchString,
|
|
43691
43608
|
mR as recordToSearchString2,
|
|
43692
|
-
|
|
43693
|
-
|
|
43694
|
-
|
|
43609
|
+
vI as rectClip,
|
|
43610
|
+
RR as relative,
|
|
43611
|
+
QR as rightRotate,
|
|
43695
43612
|
gR as searchStringToRecord,
|
|
43696
43613
|
vR as searchStringToRecord2,
|
|
43697
43614
|
q7 as selectFileInBrowser,
|
|
43698
43615
|
wR as setCookie,
|
|
43699
43616
|
fR as setRem,
|
|
43700
|
-
|
|
43617
|
+
UR as shadeColor,
|
|
43701
43618
|
yM as shapeArrayEqual,
|
|
43702
|
-
|
|
43619
|
+
dI as sharpen,
|
|
43703
43620
|
q4 as stringToBlob,
|
|
43704
43621
|
FM as stringToDOM,
|
|
43705
|
-
|
|
43706
|
-
|
|
43707
|
-
|
|
43708
|
-
|
|
43622
|
+
tI as toBlackAndWhite,
|
|
43623
|
+
aI as toBlue,
|
|
43624
|
+
lI as toBlueAndGreen,
|
|
43625
|
+
fI as toBlueAndGrey,
|
|
43709
43626
|
h_ as toDegree,
|
|
43710
|
-
|
|
43711
|
-
|
|
43712
|
-
|
|
43713
|
-
|
|
43714
|
-
|
|
43627
|
+
sI as toGreen,
|
|
43628
|
+
uI as toGreenAndGrey,
|
|
43629
|
+
xR as toGrey,
|
|
43630
|
+
eI as toGrey2,
|
|
43631
|
+
rI as toOpposite,
|
|
43715
43632
|
d1 as toRadian,
|
|
43716
|
-
|
|
43717
|
-
|
|
43718
|
-
|
|
43719
|
-
|
|
43633
|
+
iI as toRed,
|
|
43634
|
+
oI as toRedAndBlue,
|
|
43635
|
+
nI as toRedAndGreen,
|
|
43636
|
+
hI as toRedAndGrey,
|
|
43720
43637
|
o_ as trimURLHash,
|
|
43721
|
-
|
|
43722
|
-
|
|
43723
|
-
|
|
43724
|
-
|
|
43725
|
-
|
|
43726
|
-
|
|
43727
|
-
|
|
43728
|
-
|
|
43729
|
-
|
|
43730
|
-
|
|
43731
|
-
|
|
43732
|
-
|
|
43733
|
-
|
|
43734
|
-
|
|
43735
|
-
|
|
43736
|
-
|
|
43737
|
-
|
|
43738
|
-
|
|
43739
|
-
|
|
43740
|
-
|
|
43741
|
-
|
|
43742
|
-
|
|
43743
|
-
|
|
43638
|
+
MI as watchEffect,
|
|
43639
|
+
TO as wxJsChooseImage,
|
|
43640
|
+
SO as wxJsDownloadImage,
|
|
43641
|
+
$O as wxJsDownloadVoice,
|
|
43642
|
+
zO as wxJsGetLocalImgData,
|
|
43643
|
+
FO as wxJsGetLocation,
|
|
43644
|
+
NO as wxJsGetNetworkType,
|
|
43645
|
+
IO as wxJsOnVoicePlayEnd,
|
|
43646
|
+
EO as wxJsOnVoiceRecordEnd,
|
|
43647
|
+
LO as wxJsOpenLocation,
|
|
43648
|
+
MO as wxJsPauseVoice,
|
|
43649
|
+
GO as wxJsPay,
|
|
43650
|
+
AO as wxJsPlayVoice,
|
|
43651
|
+
CO as wxJsPreviewImage,
|
|
43652
|
+
UO as wxJsScanQRCode,
|
|
43653
|
+
PO as wxJsStartRecord,
|
|
43654
|
+
kO as wxJsStopRecord,
|
|
43655
|
+
RO as wxJsStopVoice,
|
|
43656
|
+
DO as wxJsTranslateVoice,
|
|
43657
|
+
yO as wxJsUpdateAppMessageShareData,
|
|
43658
|
+
_O as wxJsUpdateTimelineShareData,
|
|
43659
|
+
wO as wxJsUploadImage,
|
|
43660
|
+
OO as wxJsUploadVoice
|
|
43744
43661
|
};
|
|
43745
43662
|
//# sourceMappingURL=zyzgroup_core_web.js.map
|