@ranty/ranty-sdk 3.16.1 → 3.17.0-beta.1
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.
|
@@ -333,7 +333,7 @@ ap[ev] = !0, ap.elementProperties = /* @__PURE__ */ new Map(), ap.elementStyles
|
|
|
333
333
|
var yy;
|
|
334
334
|
const gm = window, OA = gm.trustedTypes, hx = OA ? OA.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, tv = "$lit$", pd = `lit$${(Math.random() + "").slice(9)}$`, cB = "?" + pd, d8 = `<${cB}>`, Kl = document, Zp = () => Kl.createComment(""), $p = (t) => t === null || typeof t != "object" && typeof t != "function", AB = Array.isArray, l8 = (t) => AB(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", by = `[
|
|
335
335
|
\f\r]`, dp = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, gx = /-->/g, fx = />/g, pl = RegExp(`>|${by}(?:([^\\s"'>=/]+)(${by}*=${by}*(?:[^
|
|
336
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), mx = /'/g, yx = /"/g, uB = /^(?:script|style|textarea|title)$/i, c8 = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }), I = c8(1), Gl = Symbol.for("lit-noChange"),
|
|
336
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), mx = /'/g, yx = /"/g, uB = /^(?:script|style|textarea|title)$/i, c8 = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }), I = c8(1), Gl = Symbol.for("lit-noChange"), Yt = Symbol.for("lit-nothing"), bx = /* @__PURE__ */ new WeakMap(), Rl = Kl.createTreeWalker(Kl, 129, null, !1);
|
|
337
337
|
function pB(t, e) {
|
|
338
338
|
if (!Array.isArray(t) || !t.hasOwnProperty("raw"))
|
|
339
339
|
throw Error("invalid template strings array");
|
|
@@ -443,7 +443,7 @@ let u8 = class {
|
|
|
443
443
|
}, J2 = class gB {
|
|
444
444
|
constructor(e, n, s, r) {
|
|
445
445
|
var i;
|
|
446
|
-
this.type = 2, this._$AH =
|
|
446
|
+
this.type = 2, this._$AH = Yt, this._$AN = void 0, this._$AA = e, this._$AB = n, this._$AM = s, this.options = r, this._$Cp = (i = r == null ? void 0 : r.isConnected) === null || i === void 0 || i;
|
|
447
447
|
}
|
|
448
448
|
get _$AU() {
|
|
449
449
|
var e, n;
|
|
@@ -461,7 +461,7 @@ let u8 = class {
|
|
|
461
461
|
return this._$AB;
|
|
462
462
|
}
|
|
463
463
|
_$AI(e, n = this) {
|
|
464
|
-
e = NA(this, e, n), $p(e) ? e ===
|
|
464
|
+
e = NA(this, e, n), $p(e) ? e === Yt || e == null || e === "" ? (this._$AH !== Yt && this._$AR(), this._$AH = Yt) : e !== this._$AH && e !== Gl && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) : l8(e) ? this.T(e) : this._(e);
|
|
465
465
|
}
|
|
466
466
|
k(e) {
|
|
467
467
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -470,7 +470,7 @@ let u8 = class {
|
|
|
470
470
|
this._$AH !== e && (this._$AR(), this._$AH = this.k(e));
|
|
471
471
|
}
|
|
472
472
|
_(e) {
|
|
473
|
-
this._$AH !==
|
|
473
|
+
this._$AH !== Yt && $p(this._$AH) ? this._$AA.nextSibling.data = e : this.$(Kl.createTextNode(e)), this._$AH = e;
|
|
474
474
|
}
|
|
475
475
|
g(e) {
|
|
476
476
|
var n;
|
|
@@ -507,7 +507,7 @@ let u8 = class {
|
|
|
507
507
|
}
|
|
508
508
|
}, g0 = class {
|
|
509
509
|
constructor(e, n, s, r, i) {
|
|
510
|
-
this.type = 1, this._$AH =
|
|
510
|
+
this.type = 1, this._$AH = Yt, this._$AN = void 0, this.element = e, this.name = n, this._$AM = r, this.options = i, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = Yt;
|
|
511
511
|
}
|
|
512
512
|
get tagName() {
|
|
513
513
|
return this.element.tagName;
|
|
@@ -524,19 +524,19 @@ let u8 = class {
|
|
|
524
524
|
const a = e;
|
|
525
525
|
let d, l;
|
|
526
526
|
for (e = i[0], d = 0; d < i.length - 1; d++)
|
|
527
|
-
l = NA(this, a[s + d], n, d), l === Gl && (l = this._$AH[d]), o || (o = !$p(l) || l !== this._$AH[d]), l ===
|
|
527
|
+
l = NA(this, a[s + d], n, d), l === Gl && (l = this._$AH[d]), o || (o = !$p(l) || l !== this._$AH[d]), l === Yt ? e = Yt : e !== Yt && (e += (l != null ? l : "") + i[d + 1]), this._$AH[d] = l;
|
|
528
528
|
}
|
|
529
529
|
o && !r && this.j(e);
|
|
530
530
|
}
|
|
531
531
|
j(e) {
|
|
532
|
-
e ===
|
|
532
|
+
e === Yt ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e != null ? e : "");
|
|
533
533
|
}
|
|
534
534
|
}, p8 = class extends g0 {
|
|
535
535
|
constructor() {
|
|
536
536
|
super(...arguments), this.type = 3;
|
|
537
537
|
}
|
|
538
538
|
j(e) {
|
|
539
|
-
this.element[this.name] = e ===
|
|
539
|
+
this.element[this.name] = e === Yt ? void 0 : e;
|
|
540
540
|
}
|
|
541
541
|
};
|
|
542
542
|
const h8 = OA ? OA.emptyScript : "";
|
|
@@ -545,7 +545,7 @@ let g8 = class extends g0 {
|
|
|
545
545
|
super(...arguments), this.type = 4;
|
|
546
546
|
}
|
|
547
547
|
j(e) {
|
|
548
|
-
e && e !==
|
|
548
|
+
e && e !== Yt ? this.element.setAttribute(this.name, h8) : this.element.removeAttribute(this.name);
|
|
549
549
|
}
|
|
550
550
|
}, f8 = class extends g0 {
|
|
551
551
|
constructor(e, n, s, r, i) {
|
|
@@ -553,9 +553,9 @@ let g8 = class extends g0 {
|
|
|
553
553
|
}
|
|
554
554
|
_$AI(e, n = this) {
|
|
555
555
|
var s;
|
|
556
|
-
if ((e = (s = NA(this, e, n, 0)) !== null && s !== void 0 ? s :
|
|
556
|
+
if ((e = (s = NA(this, e, n, 0)) !== null && s !== void 0 ? s : Yt) === Gl)
|
|
557
557
|
return;
|
|
558
|
-
const r = this._$AH, i = e ===
|
|
558
|
+
const r = this._$AH, i = e === Yt && r !== Yt || e.capture !== r.capture || e.once !== r.once || e.passive !== r.passive, o = e !== Yt && (r === Yt || i);
|
|
559
559
|
i && this.element.removeEventListener(this.name, this, r), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
560
560
|
}
|
|
561
561
|
handleEvent(e) {
|
|
@@ -925,7 +925,7 @@ function ie(t) {
|
|
|
925
925
|
*/
|
|
926
926
|
var Cy;
|
|
927
927
|
((Cy = window.HTMLSlotElement) === null || Cy === void 0 ? void 0 : Cy.prototype.assignedElements) != null;
|
|
928
|
-
const x8 = "@ranty/ranty-sdk", C8 = "3.
|
|
928
|
+
const x8 = "@ranty/ranty-sdk", C8 = "3.17.0-beta.1", B8 = "Ranty sdk", E8 = "dist/index.js", k8 = {
|
|
929
929
|
".": "./dist/index.js"
|
|
930
930
|
}, S8 = "types/index.d.ts", I8 = [
|
|
931
931
|
"dist",
|
|
@@ -5874,7 +5874,7 @@ const $x = {
|
|
|
5874
5874
|
[ct.PLANS]: "Elegí la cantidad de cuotas",
|
|
5875
5875
|
[ct.SUMMARY]: "Resumen del pago"
|
|
5876
5876
|
}, bj = "INSTALLMENT_PLANS_NOT_FOUND", vj = "Por ahora, no aceptamos pagos con tarjetas de esta marca.", ns = "Plan Z", wj = "ZETA", pw = "Plan Z", hw = "Plan Simple", gw = "Sin Interés";
|
|
5877
|
-
var B0 = /* @__PURE__ */ ((t) => (t.payment_link = "Link de pago", t.dynamic_qr = "QR", t.web_checkout = "WEB CHECKOUT", t.static_qr = "QR", t.ecommerce = "E-Commerce", t.mit = "MIT", t))(B0 || {}), ur = /* @__PURE__ */ ((t) => (t.CARD_PAYMENT = "card_payment", t.TRANSFER_PAYMENT = "transfer_payment", t))(ur || {}), th = /* @__PURE__ */ ((t) => (t.CREDIT = "CREDIT", t.DEBIT = "DEBIT", t))(th || {}), As = /* @__PURE__ */ ((t) => (t.DINAMIC_QR = "dynamic_qr", t.WEB_CHECKOUT = "web_checkout", t.PAYMENT_LINK = "payment_link", t.STATIC_QR = "static_qr", t.ECOMMERCE = "ecommerce", t.MIT = "mit", t))(As || {}),
|
|
5877
|
+
var B0 = /* @__PURE__ */ ((t) => (t.payment_link = "Link de pago", t.dynamic_qr = "QR", t.web_checkout = "WEB CHECKOUT", t.static_qr = "QR", t.ecommerce = "E-Commerce", t.mit = "MIT", t))(B0 || {}), ur = /* @__PURE__ */ ((t) => (t.CARD_PAYMENT = "card_payment", t.TRANSFER_PAYMENT = "transfer_payment", t))(ur || {}), th = /* @__PURE__ */ ((t) => (t.CREDIT = "CREDIT", t.DEBIT = "DEBIT", t))(th || {}), As = /* @__PURE__ */ ((t) => (t.DINAMIC_QR = "dynamic_qr", t.WEB_CHECKOUT = "web_checkout", t.PAYMENT_LINK = "payment_link", t.STATIC_QR = "static_qr", t.ECOMMERCE = "ecommerce", t.MIT = "mit", t))(As || {}), Jt = /* @__PURE__ */ ((t) => (t.PENDING = "PENDING", t.PROCESSING = "PROCESSING", t.EXPIRED = "EXPIRED", t.PROCESSED = "PROCESSED", t.FAILURE_PROCESSED = "FAILURE_PROCESSED", t.SUCCESS_PROCESSED = "SUCCESS_PROCESSED", t.BLOCKED = "BLOCKED", t.APPROVED = "APPROVED", t.REJECTED = "REJECTED", t.ON_REVIEW = "ON_REVIEW", t.CANCELLED = "CANCELLED", t.DISABLED = "DISABLED", t))(Jt || {}), wm = /* @__PURE__ */ ((t) => (t.OPERATIONAL = "operational", t.DEGRADED_PERFORMANCE = "degraded_performance", t.OUT_OF_SERVICE = "out_of_service", t))(wm || {});
|
|
5878
5878
|
const _m = "card_on_file";
|
|
5879
5879
|
var mv = /* @__PURE__ */ ((t) => (t.USER_NEW = "USER_NEW", t.USER_REGISTERED = "USER_REGISTERED", t))(mv || {}), fd = /* @__PURE__ */ ((t) => (t.PAY_NO_TOKENIZED = "PAY_NO_TOKENIZED", t.PAY_TOKENIZED = "PAY_TOKENIZED", t.PAY_CARD_ENROLLED = "PAY_CARD_ENROLLED", t.PAY_NEW_CARD_ENROLLED = "PAY_NEW_CARD_ENROLLED", t))(fd || {});
|
|
5880
5880
|
const El = "Volver a la tienda", Ii = "https://ranty-sdk-js.naranjax.com/images/", ms = {
|
|
@@ -6123,12 +6123,12 @@ const El = "Volver a la tienda", Ii = "https://ranty-sdk-js.naranjax.com/images/
|
|
|
6123
6123
|
Ue({}, _j)
|
|
6124
6124
|
]
|
|
6125
6125
|
}, Xl = (t) => ln.messages.find(
|
|
6126
|
-
(n) => n.status ===
|
|
6126
|
+
(n) => n.status === Jt.FAILURE_PROCESSED && n.status_reason && n.status_reason.includes(t)
|
|
6127
6127
|
) || Jr, cc = (t) => {
|
|
6128
6128
|
const e = ln.messages.find(
|
|
6129
6129
|
(n) => {
|
|
6130
6130
|
var s;
|
|
6131
|
-
return n.status ===
|
|
6131
|
+
return n.status === Jt.SUCCESS_PROCESSED && t === As.ECOMMERCE ? (s = n.name) == null ? void 0 : s.includes("-external") : void 0;
|
|
6132
6132
|
}
|
|
6133
6133
|
);
|
|
6134
6134
|
return localStorage.getItem("initialPaymentWallet") && localStorage.removeItem("initialPaymentWallet"), e || nh;
|
|
@@ -6137,13 +6137,13 @@ const El = "Volver a la tienda", Ii = "https://ranty-sdk-js.naranjax.com/images/
|
|
|
6137
6137
|
return localStorage.getItem("initialPaymentWallet") === "true" || n ? cc(t) : ln.messages.find(
|
|
6138
6138
|
(r) => {
|
|
6139
6139
|
var i, o;
|
|
6140
|
-
return (r.status ===
|
|
6140
|
+
return (r.status === Jt.SUCCESS_PROCESSED || Jt.PROCESSED) && t === As.ECOMMERCE ? (i = r.name) == null ? void 0 : i.includes("link-used-external") : (o = r.name) == null ? void 0 : o.includes("link-used");
|
|
6141
6141
|
}
|
|
6142
6142
|
) || nh;
|
|
6143
6143
|
}, E0 = (t) => ln.messages.find(
|
|
6144
6144
|
(n) => {
|
|
6145
6145
|
var s;
|
|
6146
|
-
return n.status ===
|
|
6146
|
+
return n.status === Jt.BLOCKED && t === As.ECOMMERCE ? (s = n.name) == null ? void 0 : s.includes("-external") : void 0;
|
|
6147
6147
|
}
|
|
6148
6148
|
) || yv, xj = (t) => ln.messages.find((e) => e.name === t) || Xf, xm = (t, e) => t.reason_code === "risky_payment" ? Bj(t, e) : t.name === "APPROVED" ? Ej(t, e) : t.name === "REJECTED" ? Cj(t) : Jr, Cj = (t) => ln.messages.find(
|
|
6149
6149
|
(n) => {
|
|
@@ -6569,9 +6569,9 @@ const da = new Dj(), Oj = (t) => {
|
|
|
6569
6569
|
throw new Error("Payment request not found");
|
|
6570
6570
|
return qj(t) ? Nj(t) : t;
|
|
6571
6571
|
}, a6 = (t, e) => e.data ? e.data.status.reason_code === "risky_payment" ? Je(Ue({}, t), {
|
|
6572
|
-
status:
|
|
6573
|
-
}) : t.payment_attemps >= t.payment_retries_allowed && e.data.status.name ===
|
|
6574
|
-
status:
|
|
6572
|
+
status: Jt.BLOCKED
|
|
6573
|
+
}) : t.payment_attemps >= t.payment_retries_allowed && e.data.status.name === Jt.REJECTED ? Je(Ue({}, t), {
|
|
6574
|
+
status: Jt.BLOCKED
|
|
6575
6575
|
}) : t : t, Kj = [
|
|
6576
6576
|
"http://localhost:4200",
|
|
6577
6577
|
"http://localhost:5173",
|
|
@@ -6583,6 +6583,10 @@ const da = new Dj(), Oj = (t) => {
|
|
|
6583
6583
|
type: t.toUpperCase(),
|
|
6584
6584
|
description: e
|
|
6585
6585
|
};
|
|
6586
|
+
if (typeof e == "object" && e !== null) {
|
|
6587
|
+
const { reason_code: i } = e;
|
|
6588
|
+
i && (r.description = i, r.details = e);
|
|
6589
|
+
}
|
|
6586
6590
|
if (n) {
|
|
6587
6591
|
const i = Oj(n);
|
|
6588
6592
|
l5(i) && window.postMessage(r, i);
|
|
@@ -10252,10 +10256,10 @@ function _D(t, e, n, s) {
|
|
|
10252
10256
|
}
|
|
10253
10257
|
const Np = KR(_D);
|
|
10254
10258
|
KF(Po(), "DD_LOGS", Np);
|
|
10255
|
-
const xD = "@ranty/ranty-sdk", CD = "3.
|
|
10259
|
+
const xD = "@nx-ranty/ranty-sdk", CD = "3.17.0-beta.1", BD = 3, ED = !0, kD = {
|
|
10256
10260
|
"": {
|
|
10257
|
-
name: "@ranty/ranty-sdk",
|
|
10258
|
-
version: "3.
|
|
10261
|
+
name: "@nx-ranty/ranty-sdk",
|
|
10262
|
+
version: "3.17.0-beta.1",
|
|
10259
10263
|
license: "ISC",
|
|
10260
10264
|
dependencies: {
|
|
10261
10265
|
"@datadog/browser-logs": "^6.17.0",
|
|
@@ -22276,6 +22280,12 @@ const xD = "@ranty/ranty-sdk", CD = "3.16.1", BD = 3, ED = !0, kD = {
|
|
|
22276
22280
|
dev: !0,
|
|
22277
22281
|
license: "MIT"
|
|
22278
22282
|
},
|
|
22283
|
+
"node_modules/@types/pako": {
|
|
22284
|
+
version: "2.0.4",
|
|
22285
|
+
resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/@types/pako/-/pako-2.0.4.tgz",
|
|
22286
|
+
integrity: "sha512-VWDCbrLeVXJM9fihYodcLiIv0ku+AlOa/TQ1SvYOaBuyrSKgEcro95LJyIsJ4vSo6BXIxOKxiJAat04CmST9Fw==",
|
|
22287
|
+
license: "MIT"
|
|
22288
|
+
},
|
|
22279
22289
|
"node_modules/@types/pretty-hrtime": {
|
|
22280
22290
|
version: "1.0.3",
|
|
22281
22291
|
resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/@types/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz",
|
|
@@ -22887,17 +22897,6 @@ const xD = "@ranty/ranty-sdk", CD = "3.16.1", BD = 3, ED = !0, kD = {
|
|
|
22887
22897
|
resolved: "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
|
22888
22898
|
integrity: "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
|
22889
22899
|
},
|
|
22890
|
-
"node_modules/atob": {
|
|
22891
|
-
version: "2.1.2",
|
|
22892
|
-
resolved: "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz",
|
|
22893
|
-
integrity: "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==",
|
|
22894
|
-
bin: {
|
|
22895
|
-
atob: "bin/atob.js"
|
|
22896
|
-
},
|
|
22897
|
-
engines: {
|
|
22898
|
-
node: ">= 4.5.0"
|
|
22899
|
-
}
|
|
22900
|
-
},
|
|
22901
22900
|
"node_modules/available-typed-arrays": {
|
|
22902
22901
|
version: "1.0.7",
|
|
22903
22902
|
resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",
|
|
@@ -23323,17 +23322,6 @@ const xD = "@ranty/ranty-sdk", CD = "3.16.1", BD = 3, ED = !0, kD = {
|
|
|
23323
23322
|
"node-int64": "^0.4.0"
|
|
23324
23323
|
}
|
|
23325
23324
|
},
|
|
23326
|
-
"node_modules/btoa": {
|
|
23327
|
-
version: "1.2.1",
|
|
23328
|
-
resolved: "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz",
|
|
23329
|
-
integrity: "sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g==",
|
|
23330
|
-
bin: {
|
|
23331
|
-
btoa: "bin/btoa.js"
|
|
23332
|
-
},
|
|
23333
|
-
engines: {
|
|
23334
|
-
node: ">= 0.4.0"
|
|
23335
|
-
}
|
|
23336
|
-
},
|
|
23337
23325
|
"node_modules/buffer": {
|
|
23338
23326
|
version: "4.9.2",
|
|
23339
23327
|
resolved: "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz",
|
|
@@ -25633,6 +25621,23 @@ const xD = "@ranty/ranty-sdk", CD = "3.16.1", BD = 3, ED = !0, kD = {
|
|
|
25633
25621
|
integrity: "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
|
|
25634
25622
|
dev: !0
|
|
25635
25623
|
},
|
|
25624
|
+
"node_modules/fast-png": {
|
|
25625
|
+
version: "6.4.0",
|
|
25626
|
+
resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/fast-png/-/fast-png-6.4.0.tgz",
|
|
25627
|
+
integrity: "sha512-kAqZq1TlgBjZcLr5mcN6NP5Rv4V2f22z00c3g8vRrwkcqjerx7BEhPbOnWCPqaHUl2XWQBJQvOT/FQhdMT7X/Q==",
|
|
25628
|
+
license: "MIT",
|
|
25629
|
+
dependencies: {
|
|
25630
|
+
"@types/pako": "^2.0.3",
|
|
25631
|
+
iobuffer: "^5.3.2",
|
|
25632
|
+
pako: "^2.1.0"
|
|
25633
|
+
}
|
|
25634
|
+
},
|
|
25635
|
+
"node_modules/fast-png/node_modules/pako": {
|
|
25636
|
+
version: "2.1.0",
|
|
25637
|
+
resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/pako/-/pako-2.1.0.tgz",
|
|
25638
|
+
integrity: "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==",
|
|
25639
|
+
license: "(MIT AND Zlib)"
|
|
25640
|
+
},
|
|
25636
25641
|
"node_modules/fast-xml-parser": {
|
|
25637
25642
|
version: "4.5.3",
|
|
25638
25643
|
resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/fast-xml-parser/-/fast-xml-parser-4.5.3.tgz",
|
|
@@ -26699,6 +26704,12 @@ const xD = "@ranty/ranty-sdk", CD = "3.16.1", BD = 3, ED = !0, kD = {
|
|
|
26699
26704
|
"loose-envify": "^1.0.0"
|
|
26700
26705
|
}
|
|
26701
26706
|
},
|
|
26707
|
+
"node_modules/iobuffer": {
|
|
26708
|
+
version: "5.4.0",
|
|
26709
|
+
resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/iobuffer/-/iobuffer-5.4.0.tgz",
|
|
26710
|
+
integrity: "sha512-DRebOWuqDvxunfkNJAlc3IzWIPD5xVxwUNbHr7xKB8E6aLJxIPfNX3CoMJghcFjpv6RWQsrcJbghtEwSPoJqMA==",
|
|
26711
|
+
license: "MIT"
|
|
26712
|
+
},
|
|
26702
26713
|
"node_modules/ipaddr.js": {
|
|
26703
26714
|
version: "1.9.1",
|
|
26704
26715
|
resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
|
|
@@ -27975,14 +27986,13 @@ const xD = "@ranty/ranty-sdk", CD = "3.16.1", BD = 3, ED = !0, kD = {
|
|
|
27975
27986
|
}
|
|
27976
27987
|
},
|
|
27977
27988
|
"node_modules/jspdf": {
|
|
27978
|
-
version: "3.0.
|
|
27979
|
-
resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/jspdf/-/jspdf-3.0.
|
|
27980
|
-
integrity: "sha512-
|
|
27989
|
+
version: "3.0.2",
|
|
27990
|
+
resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/jspdf/-/jspdf-3.0.2.tgz",
|
|
27991
|
+
integrity: "sha512-G0fQDJ5fAm6UW78HG6lNXyq09l0PrA1rpNY5i+ly17Zb1fMMFSmS+3lw4cnrAPGyouv2Y0ylujbY2Ieq3DSlKA==",
|
|
27981
27992
|
license: "MIT",
|
|
27982
27993
|
dependencies: {
|
|
27983
|
-
"@babel/runtime": "^7.26.
|
|
27984
|
-
|
|
27985
|
-
btoa: "^1.2.1",
|
|
27994
|
+
"@babel/runtime": "^7.26.9",
|
|
27995
|
+
"fast-png": "^6.2.0",
|
|
27986
27996
|
fflate: "^0.8.1"
|
|
27987
27997
|
},
|
|
27988
27998
|
optionalDependencies: {
|
|
@@ -36918,7 +36928,7 @@ var vs = function() {
|
|
|
36918
36928
|
return e;
|
|
36919
36929
|
}, vs.apply(this, arguments);
|
|
36920
36930
|
};
|
|
36921
|
-
function
|
|
36931
|
+
function zt(t, e, n, s) {
|
|
36922
36932
|
function r(i) {
|
|
36923
36933
|
return i instanceof n ? i : new n(function(o) {
|
|
36924
36934
|
o(i);
|
|
@@ -36945,7 +36955,7 @@ function Ht(t, e, n, s) {
|
|
|
36945
36955
|
l((s = s.apply(t, e || [])).next());
|
|
36946
36956
|
});
|
|
36947
36957
|
}
|
|
36948
|
-
function
|
|
36958
|
+
function Ht(t, e) {
|
|
36949
36959
|
var n = { label: 0, sent: function() {
|
|
36950
36960
|
if (i[0] & 1)
|
|
36951
36961
|
throw i[1];
|
|
@@ -37055,10 +37065,10 @@ function iL(t) {
|
|
|
37055
37065
|
function Ll(t) {
|
|
37056
37066
|
return t.redirectSignIn !== void 0;
|
|
37057
37067
|
}
|
|
37058
|
-
var
|
|
37068
|
+
var Vt;
|
|
37059
37069
|
(function(t) {
|
|
37060
37070
|
t.NoConfig = "noConfig", t.MissingAuthConfig = "missingAuthConfig", t.EmptyUsername = "emptyUsername", t.InvalidUsername = "invalidUsername", t.EmptyPassword = "emptyPassword", t.EmptyCode = "emptyCode", t.SignUpError = "signUpError", t.NoMFA = "noMFA", t.InvalidMFA = "invalidMFA", t.EmptyChallengeResponse = "emptyChallengeResponse", t.NoUserSession = "noUserSession", t.Default = "default", t.DeviceConfig = "deviceConfig", t.NetworkError = "networkError", t.AutoSignInError = "autoSignInError";
|
|
37061
|
-
})(
|
|
37071
|
+
})(Vt || (Vt = {}));
|
|
37062
37072
|
function oL(t) {
|
|
37063
37073
|
return !!t.username;
|
|
37064
37074
|
}
|
|
@@ -40136,9 +40146,9 @@ var qQ = "_self", VQ = function(t) {
|
|
|
40136
40146
|
}).join("&"), m = "https://" + n + "/oauth2/authorize?" + p;
|
|
40137
40147
|
sA.debug("Redirecting to " + m), this._urlOpener(m, s);
|
|
40138
40148
|
}, t.prototype._handleCodeFlow = function(e) {
|
|
40139
|
-
return
|
|
40149
|
+
return zt(this, void 0, void 0, function() {
|
|
40140
40150
|
var n, s, r, i, o, a, d, l, c, u, h, p, m, y, _, v;
|
|
40141
|
-
return
|
|
40151
|
+
return Ht(this, function(x) {
|
|
40142
40152
|
switch (x.label) {
|
|
40143
40153
|
case 0:
|
|
40144
40154
|
return n = (Ad(e).query || "").split("&").map(function(j) {
|
|
@@ -40181,9 +40191,9 @@ var qQ = "_self", VQ = function(t) {
|
|
|
40181
40191
|
});
|
|
40182
40192
|
});
|
|
40183
40193
|
}, t.prototype._handleImplicitFlow = function(e) {
|
|
40184
|
-
return
|
|
40194
|
+
return zt(this, void 0, void 0, function() {
|
|
40185
40195
|
var n, s, r;
|
|
40186
|
-
return
|
|
40196
|
+
return Ht(this, function(i) {
|
|
40187
40197
|
return n = (Ad(e).hash || "#").substr(1).split("&").map(function(o) {
|
|
40188
40198
|
return o.split("=");
|
|
40189
40199
|
}).reduce(function(o, a) {
|
|
@@ -40200,9 +40210,9 @@ var qQ = "_self", VQ = function(t) {
|
|
|
40200
40210
|
});
|
|
40201
40211
|
});
|
|
40202
40212
|
}, t.prototype.handleAuthResponse = function(e) {
|
|
40203
|
-
return
|
|
40213
|
+
return zt(this, void 0, void 0, function() {
|
|
40204
40214
|
var n, s, r, i, o, a, d;
|
|
40205
|
-
return
|
|
40215
|
+
return Ht(this, function(l) {
|
|
40206
40216
|
switch (l.label) {
|
|
40207
40217
|
case 0:
|
|
40208
40218
|
if (l.trys.push([0, 5, , 6]), n = e ? vs(vs({}, (Ad(e).hash || "#").substr(1).split("&").map(function(c) {
|
|
@@ -40244,9 +40254,9 @@ var qQ = "_self", VQ = function(t) {
|
|
|
40244
40254
|
return s;
|
|
40245
40255
|
}
|
|
40246
40256
|
}, t.prototype.signOut = function() {
|
|
40247
|
-
return
|
|
40257
|
+
return zt(this, void 0, void 0, function() {
|
|
40248
40258
|
var e, n, s;
|
|
40249
|
-
return
|
|
40259
|
+
return Ht(this, function(r) {
|
|
40250
40260
|
return e = "https://" + this._config.domain + "/logout?", n = Ll(this._config) ? this._cognitoClientId : this._config.oauth.clientID, s = Ll(this._config) ? this._config.redirectSignOut : this._config.returnTo, e += Object.entries({
|
|
40251
40261
|
client_id: n,
|
|
40252
40262
|
logout_uri: encodeURIComponent(s)
|
|
@@ -40474,7 +40484,7 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
40474
40484
|
}
|
|
40475
40485
|
if (Nt("configured", null, "The Auth category has been configured successfully"), !this.autoSignInInitiated && typeof this._storage.getItem == "function") {
|
|
40476
40486
|
var q = this.isTrueStorageValue("amplify-polling-started");
|
|
40477
|
-
q && (Nt("autoSignIn_failure", null,
|
|
40487
|
+
q && (Nt("autoSignIn_failure", null, Vt.AutoSignInError), this._storage.removeItem("amplify-auto-sign-in")), this._storage.removeItem("amplify-polling-started");
|
|
40478
40488
|
}
|
|
40479
40489
|
return this._config;
|
|
40480
40490
|
}, t.prototype.signUp = function(e) {
|
|
@@ -40505,12 +40515,12 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
40505
40515
|
}));
|
|
40506
40516
|
})), p = (i = e.autoSignIn) !== null && i !== void 0 ? i : { enabled: !1 }, p.enabled && (this._storage.setItem("amplify-auto-sign-in", "true"), m = (o = p.validationData) !== null && o !== void 0 ? o : {}, y = (a = p.clientMetaData) !== null && a !== void 0 ? a : {});
|
|
40507
40517
|
} else
|
|
40508
|
-
return this.rejectAuthError(
|
|
40518
|
+
return this.rejectAuthError(Vt.SignUpError);
|
|
40509
40519
|
return d ? l ? (Le.debug("signUp attrs:", c), Le.debug("signUp validation data:", u), new Promise(function(N, q) {
|
|
40510
40520
|
n.userPool.signUp(d, l, c, u, function(D, K) {
|
|
40511
40521
|
D ? (Nt("signUp_failure", D, d + " failed to signup"), q(D)) : (Nt("signUp", K, d + " has signed up successfully"), p.enabled && n.handleAutoSignIn(d, l, m, y, K), N(K));
|
|
40512
40522
|
}, h);
|
|
40513
|
-
})) : this.rejectAuthError(
|
|
40523
|
+
})) : this.rejectAuthError(Vt.EmptyPassword) : this.rejectAuthError(Vt.EmptyUsername);
|
|
40514
40524
|
}, t.prototype.handleAutoSignIn = function(e, n, s, r, i) {
|
|
40515
40525
|
this.autoSignInInitiated = !0;
|
|
40516
40526
|
var o = new X5({
|
|
@@ -40533,9 +40543,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
40533
40543
|
Date.now() - s > oM ? (clearInterval(r), Nt("autoSignIn_failure", null, "Please confirm your account and use your credentials to sign in."), n._storage.removeItem("amplify-auto-sign-in")) : n.signInAfterUserConfirmed(e, null, r);
|
|
40534
40544
|
}, 5e3);
|
|
40535
40545
|
}, t.prototype.signInAfterUserConfirmed = function(e, n, s) {
|
|
40536
|
-
return
|
|
40546
|
+
return zt(this, void 0, void 0, function() {
|
|
40537
40547
|
var r, i, o = this;
|
|
40538
|
-
return
|
|
40548
|
+
return Ht(this, function(a) {
|
|
40539
40549
|
switch (a.label) {
|
|
40540
40550
|
case 0:
|
|
40541
40551
|
r = this.createCognitoUser(e.getUsername()), a.label = 1;
|
|
@@ -40562,9 +40572,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
40562
40572
|
if (!this.userPool)
|
|
40563
40573
|
return this.rejectNoUserPool();
|
|
40564
40574
|
if (!e)
|
|
40565
|
-
return this.rejectAuthError(
|
|
40575
|
+
return this.rejectAuthError(Vt.EmptyUsername);
|
|
40566
40576
|
if (!n)
|
|
40567
|
-
return this.rejectAuthError(
|
|
40577
|
+
return this.rejectAuthError(Vt.EmptyCode);
|
|
40568
40578
|
var i = this.createCognitoUser(e), o = s && typeof s.forceAliasCreation == "boolean" ? s.forceAliasCreation : !0, a;
|
|
40569
40579
|
return s && s.clientMetadata ? a = s.clientMetadata : this._config.clientMetadata && (a = this._config.clientMetadata), new Promise(function(d, l) {
|
|
40570
40580
|
i.confirmRegistration(n, o, function(c, u) {
|
|
@@ -40573,7 +40583,7 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
40573
40583
|
else {
|
|
40574
40584
|
Nt("confirmSignUp", u, e + " has been confirmed successfully");
|
|
40575
40585
|
var h = r.isTrueStorageValue("amplify-auto-sign-in");
|
|
40576
|
-
h && !r.autoSignInInitiated && (Nt("autoSignIn_failure", null,
|
|
40586
|
+
h && !r.autoSignInInitiated && (Nt("autoSignIn_failure", null, Vt.AutoSignInError), r._storage.removeItem("amplify-auto-sign-in")), d(u);
|
|
40577
40587
|
}
|
|
40578
40588
|
}, a);
|
|
40579
40589
|
});
|
|
@@ -40584,7 +40594,7 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
40584
40594
|
if (n === void 0 && (n = this._config.clientMetadata), !this.userPool)
|
|
40585
40595
|
return this.rejectNoUserPool();
|
|
40586
40596
|
if (!e)
|
|
40587
|
-
return this.rejectAuthError(
|
|
40597
|
+
return this.rejectAuthError(Vt.EmptyUsername);
|
|
40588
40598
|
var s = this.createCognitoUser(e);
|
|
40589
40599
|
return new Promise(function(r, i) {
|
|
40590
40600
|
s.resendConfirmationCode(function(o, a) {
|
|
@@ -40600,9 +40610,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
40600
40610
|
else if (oL(e))
|
|
40601
40611
|
typeof n != "undefined" && Le.warn("The password should be defined under the first parameter object!"), r = e.username, i = e.password, o = e.validationData;
|
|
40602
40612
|
else
|
|
40603
|
-
return this.rejectAuthError(
|
|
40613
|
+
return this.rejectAuthError(Vt.InvalidUsername);
|
|
40604
40614
|
if (!r)
|
|
40605
|
-
return this.rejectAuthError(
|
|
40615
|
+
return this.rejectAuthError(Vt.EmptyUsername);
|
|
40606
40616
|
var a = new X5({
|
|
40607
40617
|
Username: r,
|
|
40608
40618
|
Password: i,
|
|
@@ -40614,9 +40624,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
40614
40624
|
var r = this, i = this;
|
|
40615
40625
|
return {
|
|
40616
40626
|
onSuccess: function(o) {
|
|
40617
|
-
return
|
|
40627
|
+
return zt(r, void 0, void 0, function() {
|
|
40618
40628
|
var a, d, l, c;
|
|
40619
|
-
return
|
|
40629
|
+
return Ht(this, function(u) {
|
|
40620
40630
|
switch (u.label) {
|
|
40621
40631
|
case 0:
|
|
40622
40632
|
Le.debug(o), delete e.challengeName, delete e.challengeParam, u.label = 1;
|
|
@@ -40705,9 +40715,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
40705
40715
|
return new Promise(function(i, o) {
|
|
40706
40716
|
var a = s._config.clientMetadata, d = n ? n.bypassCache : !1;
|
|
40707
40717
|
e.getUserData(function(l, c) {
|
|
40708
|
-
return
|
|
40718
|
+
return zt(s, void 0, void 0, function() {
|
|
40709
40719
|
var u, h;
|
|
40710
|
-
return
|
|
40720
|
+
return Ht(this, function(p) {
|
|
40711
40721
|
switch (p.label) {
|
|
40712
40722
|
case 0:
|
|
40713
40723
|
if (!l)
|
|
@@ -40760,9 +40770,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
40760
40770
|
var s = this;
|
|
40761
40771
|
return new Promise(function(r, i) {
|
|
40762
40772
|
e.getUserData(function(o, a) {
|
|
40763
|
-
return
|
|
40773
|
+
return zt(s, void 0, void 0, function() {
|
|
40764
40774
|
var d;
|
|
40765
|
-
return
|
|
40775
|
+
return Ht(this, function(l) {
|
|
40766
40776
|
switch (l.label) {
|
|
40767
40777
|
case 0:
|
|
40768
40778
|
if (!o)
|
|
@@ -40797,9 +40807,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
40797
40807
|
}, n);
|
|
40798
40808
|
});
|
|
40799
40809
|
}, t.prototype.setPreferredMFA = function(e, n) {
|
|
40800
|
-
return
|
|
40810
|
+
return zt(this, void 0, void 0, function() {
|
|
40801
40811
|
var s, r, i, o, a, d, l, c = this;
|
|
40802
|
-
return
|
|
40812
|
+
return Ht(this, function(u) {
|
|
40803
40813
|
switch (u.label) {
|
|
40804
40814
|
case 0:
|
|
40805
40815
|
return s = this._config.clientMetadata, [4, this._getUserData(e, {
|
|
@@ -40846,7 +40856,7 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
40846
40856
|
Enabled: !1
|
|
40847
40857
|
};
|
|
40848
40858
|
else
|
|
40849
|
-
return [2, this.rejectAuthError(
|
|
40859
|
+
return [2, this.rejectAuthError(Vt.InvalidMFA)];
|
|
40850
40860
|
return d && d.length !== 0 && d.forEach(function(h) {
|
|
40851
40861
|
h === "SMS_MFA" ? i = {
|
|
40852
40862
|
PreferredMfa: !1,
|
|
@@ -40857,16 +40867,16 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
40857
40867
|
});
|
|
40858
40868
|
}), [3, 7];
|
|
40859
40869
|
case 6:
|
|
40860
|
-
return Le.debug("no validmfa method provided"), [2, this.rejectAuthError(
|
|
40870
|
+
return Le.debug("no validmfa method provided"), [2, this.rejectAuthError(Vt.NoMFA)];
|
|
40861
40871
|
case 7:
|
|
40862
40872
|
return [2, new Promise(function(h, p) {
|
|
40863
40873
|
e.setUserMfaPreference(i, o, function(m, y) {
|
|
40864
40874
|
if (m)
|
|
40865
40875
|
return Le.debug("Set user mfa preference error", m), p(m);
|
|
40866
40876
|
Le.debug("Set user mfa success", y), Le.debug("Caching the latest user data into local"), e.getUserData(function(_, v) {
|
|
40867
|
-
return
|
|
40877
|
+
return zt(c, void 0, void 0, function() {
|
|
40868
40878
|
var x;
|
|
40869
|
-
return
|
|
40879
|
+
return Ht(this, function(j) {
|
|
40870
40880
|
switch (j.label) {
|
|
40871
40881
|
case 0:
|
|
40872
40882
|
if (!_)
|
|
@@ -40948,14 +40958,14 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
40948
40958
|
}, t.prototype.confirmSignIn = function(e, n, s, r) {
|
|
40949
40959
|
var i = this;
|
|
40950
40960
|
if (r === void 0 && (r = this._config.clientMetadata), !n)
|
|
40951
|
-
return this.rejectAuthError(
|
|
40961
|
+
return this.rejectAuthError(Vt.EmptyCode);
|
|
40952
40962
|
var o = this;
|
|
40953
40963
|
return new Promise(function(a, d) {
|
|
40954
40964
|
e.sendMFACode(n, {
|
|
40955
40965
|
onSuccess: function(l) {
|
|
40956
|
-
return
|
|
40966
|
+
return zt(i, void 0, void 0, function() {
|
|
40957
40967
|
var c, u, h, p;
|
|
40958
|
-
return
|
|
40968
|
+
return Ht(this, function(m) {
|
|
40959
40969
|
switch (m.label) {
|
|
40960
40970
|
case 0:
|
|
40961
40971
|
Le.debug(l), m.label = 1;
|
|
@@ -40997,14 +41007,14 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
40997
41007
|
}, t.prototype.completeNewPassword = function(e, n, s, r) {
|
|
40998
41008
|
var i = this;
|
|
40999
41009
|
if (s === void 0 && (s = {}), r === void 0 && (r = this._config.clientMetadata), !n)
|
|
41000
|
-
return this.rejectAuthError(
|
|
41010
|
+
return this.rejectAuthError(Vt.EmptyPassword);
|
|
41001
41011
|
var o = this;
|
|
41002
41012
|
return new Promise(function(a, d) {
|
|
41003
41013
|
e.completeNewPasswordChallenge(n, s, {
|
|
41004
41014
|
onSuccess: function(l) {
|
|
41005
|
-
return
|
|
41015
|
+
return zt(i, void 0, void 0, function() {
|
|
41006
41016
|
var c, u;
|
|
41007
|
-
return
|
|
41017
|
+
return Ht(this, function(h) {
|
|
41008
41018
|
switch (h.label) {
|
|
41009
41019
|
case 0:
|
|
41010
41020
|
Le.debug(l), h.label = 1;
|
|
@@ -41048,7 +41058,7 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41048
41058
|
var r = this;
|
|
41049
41059
|
return s === void 0 && (s = this._config.clientMetadata), this.userPool ? n ? new Promise(function(i, o) {
|
|
41050
41060
|
e.sendCustomChallengeAnswer(n, r.authCallbacks(e, i, o), s);
|
|
41051
|
-
}) : this.rejectAuthError(
|
|
41061
|
+
}) : this.rejectAuthError(Vt.EmptyChallengeResponse) : this.rejectNoUserPool();
|
|
41052
41062
|
}, t.prototype.deleteUserAttributes = function(e, n) {
|
|
41053
41063
|
var s = this;
|
|
41054
41064
|
return new Promise(function(r, i) {
|
|
@@ -41059,9 +41069,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41059
41069
|
});
|
|
41060
41070
|
});
|
|
41061
41071
|
}, t.prototype.deleteUser = function() {
|
|
41062
|
-
return
|
|
41072
|
+
return zt(this, void 0, void 0, function() {
|
|
41063
41073
|
var e, n, s = this;
|
|
41064
|
-
return
|
|
41074
|
+
return Ht(this, function(r) {
|
|
41065
41075
|
switch (r.label) {
|
|
41066
41076
|
case 0:
|
|
41067
41077
|
return r.trys.push([0, 2, , 3]), [4, this._storageSync];
|
|
@@ -41071,15 +41081,15 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41071
41081
|
throw e = r.sent(), Le.debug("Failed to sync cache info into memory", e), new Error(e);
|
|
41072
41082
|
case 3:
|
|
41073
41083
|
return n = this._oAuthHandler && this._storage.getItem("amplify-signin-with-hostedUI") === "true", [2, new Promise(function(i, o) {
|
|
41074
|
-
return
|
|
41084
|
+
return zt(s, void 0, void 0, function() {
|
|
41075
41085
|
var a, d = this;
|
|
41076
|
-
return
|
|
41086
|
+
return Ht(this, function(l) {
|
|
41077
41087
|
if (this.userPool)
|
|
41078
41088
|
if (a = this.userPool.getCurrentUser(), a)
|
|
41079
41089
|
a.getSession(function(c, u) {
|
|
41080
|
-
return
|
|
41090
|
+
return zt(d, void 0, void 0, function() {
|
|
41081
41091
|
var h, p = this;
|
|
41082
|
-
return
|
|
41092
|
+
return Ht(this, function(m) {
|
|
41083
41093
|
switch (m.label) {
|
|
41084
41094
|
case 0:
|
|
41085
41095
|
if (!c)
|
|
@@ -41205,9 +41215,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41205
41215
|
}, t.prototype.isSessionInvalid = function(e) {
|
|
41206
41216
|
return this.isUserDisabledError(e) || this.isUserDoesNotExistError(e) || this.isTokenRevokedError(e) || this.isRefreshTokenRevokedError(e) || this.isRefreshTokenExpiredError(e) || this.isPasswordResetRequiredError(e);
|
|
41207
41217
|
}, t.prototype.cleanUpInvalidSession = function(e) {
|
|
41208
|
-
return
|
|
41218
|
+
return zt(this, void 0, void 0, function() {
|
|
41209
41219
|
var n = this;
|
|
41210
|
-
return
|
|
41220
|
+
return Ht(this, function(s) {
|
|
41211
41221
|
switch (s.label) {
|
|
41212
41222
|
case 0:
|
|
41213
41223
|
e.signOut(), this.user = null, s.label = 1;
|
|
@@ -41231,9 +41241,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41231
41241
|
var n = this;
|
|
41232
41242
|
return this.userPool ? new Promise(function(s, r) {
|
|
41233
41243
|
n._storageSync.then(function() {
|
|
41234
|
-
return
|
|
41244
|
+
return zt(n, void 0, void 0, function() {
|
|
41235
41245
|
var i, o, a, d, l, c, u, h = this;
|
|
41236
|
-
return
|
|
41246
|
+
return Ht(this, function(p) {
|
|
41237
41247
|
switch (p.label) {
|
|
41238
41248
|
case 0:
|
|
41239
41249
|
return this.isOAuthInProgress() ? (Le.debug("OAuth signIn in progress, waiting for resolution..."), [4, new Promise(function(m) {
|
|
@@ -41264,9 +41274,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41264
41274
|
case 6:
|
|
41265
41275
|
if (d = this._config.clientMetadata, l = o.getAccessToken().decodePayload().scope, c = l === void 0 ? "" : l, c.split(" ").includes(aC))
|
|
41266
41276
|
i.getUserData(function(m, y) {
|
|
41267
|
-
return
|
|
41277
|
+
return zt(h, void 0, void 0, function() {
|
|
41268
41278
|
var _, v, x, j, N, q, D;
|
|
41269
|
-
return
|
|
41279
|
+
return Ht(this, function(K) {
|
|
41270
41280
|
switch (K.label) {
|
|
41271
41281
|
case 0:
|
|
41272
41282
|
if (!m)
|
|
@@ -41323,9 +41333,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41323
41333
|
}, t.prototype.isOAuthInProgress = function() {
|
|
41324
41334
|
return this.oAuthFlowInProgress;
|
|
41325
41335
|
}, t.prototype.currentAuthenticatedUser = function(e) {
|
|
41326
|
-
return
|
|
41336
|
+
return zt(this, void 0, void 0, function() {
|
|
41327
41337
|
var n, s, r, i, o;
|
|
41328
|
-
return
|
|
41338
|
+
return Ht(this, function(a) {
|
|
41329
41339
|
switch (a.label) {
|
|
41330
41340
|
case 0:
|
|
41331
41341
|
Le.debug("getting current authenticated user"), n = null, a.label = 1;
|
|
@@ -41369,18 +41379,18 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41369
41379
|
});
|
|
41370
41380
|
}) : Promise.reject(new Error("No User Pool in the configuration."));
|
|
41371
41381
|
}, t.prototype._userSession = function(e) {
|
|
41372
|
-
return
|
|
41382
|
+
return zt(this, void 0, void 0, function() {
|
|
41373
41383
|
var n, s, r = this;
|
|
41374
|
-
return
|
|
41384
|
+
return Ht(this, function(i) {
|
|
41375
41385
|
switch (i.label) {
|
|
41376
41386
|
case 0:
|
|
41377
41387
|
if (!e)
|
|
41378
|
-
return Le.debug("the user is null"), [2, this.rejectAuthError(
|
|
41388
|
+
return Le.debug("the user is null"), [2, this.rejectAuthError(Vt.NoUserSession)];
|
|
41379
41389
|
n = this._config.clientMetadata, this.inflightSessionPromiseCounter === 0 && (this.inflightSessionPromise = new Promise(function(o, a) {
|
|
41380
41390
|
e.getSession(function(d, l) {
|
|
41381
|
-
return
|
|
41391
|
+
return zt(r, void 0, void 0, function() {
|
|
41382
41392
|
var c;
|
|
41383
|
-
return
|
|
41393
|
+
return Ht(this, function(u) {
|
|
41384
41394
|
switch (u.label) {
|
|
41385
41395
|
case 0:
|
|
41386
41396
|
if (!d)
|
|
@@ -41432,9 +41442,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41432
41442
|
}, t.prototype.userSession = function(e) {
|
|
41433
41443
|
return this._userSession(e);
|
|
41434
41444
|
}, t.prototype.currentUserCredentials = function() {
|
|
41435
|
-
return
|
|
41445
|
+
return zt(this, void 0, void 0, function() {
|
|
41436
41446
|
var e, n, s = this;
|
|
41437
|
-
return
|
|
41447
|
+
return Ht(this, function(r) {
|
|
41438
41448
|
switch (r.label) {
|
|
41439
41449
|
case 0:
|
|
41440
41450
|
Le.debug("Getting current user credentials"), r.label = 1;
|
|
@@ -41482,7 +41492,7 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41482
41492
|
i(o);
|
|
41483
41493
|
}
|
|
41484
41494
|
});
|
|
41485
|
-
}) : this.rejectAuthError(
|
|
41495
|
+
}) : this.rejectAuthError(Vt.EmptyCode);
|
|
41486
41496
|
}, t.prototype.verifyCurrentUserAttribute = function(e) {
|
|
41487
41497
|
var n = this;
|
|
41488
41498
|
return n.currentUserPoolUser().then(function(s) {
|
|
@@ -41494,9 +41504,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41494
41504
|
return s.verifyUserAttributeSubmit(r, e, n);
|
|
41495
41505
|
});
|
|
41496
41506
|
}, t.prototype.cognitoIdentitySignOut = function(e, n) {
|
|
41497
|
-
return
|
|
41507
|
+
return zt(this, void 0, void 0, function() {
|
|
41498
41508
|
var s, r, i = this;
|
|
41499
|
-
return
|
|
41509
|
+
return Ht(this, function(o) {
|
|
41500
41510
|
switch (o.label) {
|
|
41501
41511
|
case 0:
|
|
41502
41512
|
return o.trys.push([0, 2, , 3]), [4, this._storageSync];
|
|
@@ -41510,9 +41520,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41510
41520
|
Le.debug("user global sign out", n);
|
|
41511
41521
|
var l = i._config.clientMetadata;
|
|
41512
41522
|
n.getSession(function(c, u) {
|
|
41513
|
-
return
|
|
41523
|
+
return zt(i, void 0, void 0, function() {
|
|
41514
41524
|
var h, p = this;
|
|
41515
|
-
return
|
|
41525
|
+
return Ht(this, function(m) {
|
|
41516
41526
|
switch (m.label) {
|
|
41517
41527
|
case 0:
|
|
41518
41528
|
if (!c)
|
|
@@ -41571,9 +41581,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41571
41581
|
return e(Error("Signout timeout fail"));
|
|
41572
41582
|
}, 3e3);
|
|
41573
41583
|
}, t.prototype.signOut = function(e) {
|
|
41574
|
-
return e === void 0 && (e = {}),
|
|
41584
|
+
return e === void 0 && (e = {}), zt(this, void 0, void 0, function() {
|
|
41575
41585
|
var n, s;
|
|
41576
|
-
return
|
|
41586
|
+
return Ht(this, function(r) {
|
|
41577
41587
|
switch (r.label) {
|
|
41578
41588
|
case 0:
|
|
41579
41589
|
return r.trys.push([0, 2, , 3]), [4, this.cleanCachedItems()];
|
|
@@ -41610,8 +41620,8 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41610
41620
|
});
|
|
41611
41621
|
});
|
|
41612
41622
|
}, t.prototype.cleanCachedItems = function() {
|
|
41613
|
-
return
|
|
41614
|
-
return
|
|
41623
|
+
return zt(this, void 0, void 0, function() {
|
|
41624
|
+
return Ht(this, function(e) {
|
|
41615
41625
|
switch (e.label) {
|
|
41616
41626
|
case 0:
|
|
41617
41627
|
return [4, this.Credentials.clear()];
|
|
@@ -41636,7 +41646,7 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41636
41646
|
if (n === void 0 && (n = this._config.clientMetadata), !this.userPool)
|
|
41637
41647
|
return this.rejectNoUserPool();
|
|
41638
41648
|
if (!e)
|
|
41639
|
-
return this.rejectAuthError(
|
|
41649
|
+
return this.rejectAuthError(Vt.EmptyUsername);
|
|
41640
41650
|
var s = this.createCognitoUser(e);
|
|
41641
41651
|
return new Promise(function(r, i) {
|
|
41642
41652
|
s.forgotPassword({
|
|
@@ -41655,11 +41665,11 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41655
41665
|
if (r === void 0 && (r = this._config.clientMetadata), !this.userPool)
|
|
41656
41666
|
return this.rejectNoUserPool();
|
|
41657
41667
|
if (!e)
|
|
41658
|
-
return this.rejectAuthError(
|
|
41668
|
+
return this.rejectAuthError(Vt.EmptyUsername);
|
|
41659
41669
|
if (!n)
|
|
41660
|
-
return this.rejectAuthError(
|
|
41670
|
+
return this.rejectAuthError(Vt.EmptyCode);
|
|
41661
41671
|
if (!s)
|
|
41662
|
-
return this.rejectAuthError(
|
|
41672
|
+
return this.rejectAuthError(Vt.EmptyPassword);
|
|
41663
41673
|
var i = this.createCognitoUser(e);
|
|
41664
41674
|
return new Promise(function(o, a) {
|
|
41665
41675
|
i.confirmPassword(n, s, {
|
|
@@ -41672,9 +41682,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41672
41682
|
}, r);
|
|
41673
41683
|
});
|
|
41674
41684
|
}, t.prototype.currentUserInfo = function() {
|
|
41675
|
-
return
|
|
41685
|
+
return zt(this, void 0, void 0, function() {
|
|
41676
41686
|
var e, d, n, s, r, i, o, a, d;
|
|
41677
|
-
return
|
|
41687
|
+
return Ht(this, function(l) {
|
|
41678
41688
|
switch (l.label) {
|
|
41679
41689
|
case 0:
|
|
41680
41690
|
return e = this.Credentials.getCredSource(), !e || e === "aws" || e === "userPool" ? [4, this.currentUserPoolUser().catch(function(c) {
|
|
@@ -41711,9 +41721,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41711
41721
|
});
|
|
41712
41722
|
});
|
|
41713
41723
|
}, t.prototype.federatedSignIn = function(e, n, s) {
|
|
41714
|
-
return
|
|
41724
|
+
return zt(this, void 0, void 0, function() {
|
|
41715
41725
|
var r, d, i, o, a, d, l, c, u, h, p, m;
|
|
41716
|
-
return
|
|
41726
|
+
return Ht(this, function(y) {
|
|
41717
41727
|
switch (y.label) {
|
|
41718
41728
|
case 0:
|
|
41719
41729
|
if (!this._config.identityPoolId && !this._config.userPoolId)
|
|
@@ -41744,9 +41754,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41744
41754
|
});
|
|
41745
41755
|
});
|
|
41746
41756
|
}, t.prototype._handleAuthResponse = function(e) {
|
|
41747
|
-
return
|
|
41757
|
+
return zt(this, void 0, void 0, function() {
|
|
41748
41758
|
var n, s, r, i, o, a, d, l, c, u, h, p, m, y;
|
|
41749
|
-
return
|
|
41759
|
+
return Ht(this, function(_) {
|
|
41750
41760
|
switch (_.label) {
|
|
41751
41761
|
case 0:
|
|
41752
41762
|
if (this.oAuthFlowInProgress)
|
|
@@ -41830,16 +41840,16 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41830
41840
|
}, t.prototype._isValidAuthStorage = function(e) {
|
|
41831
41841
|
return !!e && typeof e.getItem == "function" && typeof e.setItem == "function" && typeof e.removeItem == "function" && typeof e.clear == "function";
|
|
41832
41842
|
}, t.prototype.noUserPoolErrorHandler = function(e) {
|
|
41833
|
-
return e && (!e.userPoolId || !e.identityPoolId) ?
|
|
41843
|
+
return e && (!e.userPoolId || !e.identityPoolId) ? Vt.MissingAuthConfig : Vt.NoConfig;
|
|
41834
41844
|
}, t.prototype.rejectAuthError = function(e) {
|
|
41835
41845
|
return Promise.reject(new rd(e));
|
|
41836
41846
|
}, t.prototype.rejectNoUserPool = function() {
|
|
41837
41847
|
var e = this.noUserPoolErrorHandler(this._config);
|
|
41838
41848
|
return Promise.reject(new tM(e));
|
|
41839
41849
|
}, t.prototype.rememberDevice = function() {
|
|
41840
|
-
return
|
|
41850
|
+
return zt(this, void 0, void 0, function() {
|
|
41841
41851
|
var e, n;
|
|
41842
|
-
return
|
|
41852
|
+
return Ht(this, function(s) {
|
|
41843
41853
|
switch (s.label) {
|
|
41844
41854
|
case 0:
|
|
41845
41855
|
return s.trys.push([0, 2, , 3]), [4, this.currentUserPoolUser()];
|
|
@@ -41854,7 +41864,7 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41854
41864
|
r(o);
|
|
41855
41865
|
},
|
|
41856
41866
|
onFailure: function(o) {
|
|
41857
|
-
o.code === "InvalidParameterException" ? i(new rd(
|
|
41867
|
+
o.code === "InvalidParameterException" ? i(new rd(Vt.DeviceConfig)) : o.code === "NetworkError" ? i(new rd(Vt.NetworkError)) : i(o);
|
|
41858
41868
|
}
|
|
41859
41869
|
});
|
|
41860
41870
|
})];
|
|
@@ -41862,9 +41872,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41862
41872
|
});
|
|
41863
41873
|
});
|
|
41864
41874
|
}, t.prototype.forgetDevice = function() {
|
|
41865
|
-
return
|
|
41875
|
+
return zt(this, void 0, void 0, function() {
|
|
41866
41876
|
var e, n;
|
|
41867
|
-
return
|
|
41877
|
+
return Ht(this, function(s) {
|
|
41868
41878
|
switch (s.label) {
|
|
41869
41879
|
case 0:
|
|
41870
41880
|
return s.trys.push([0, 2, , 3]), [4, this.currentUserPoolUser()];
|
|
@@ -41879,7 +41889,7 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41879
41889
|
r(o);
|
|
41880
41890
|
},
|
|
41881
41891
|
onFailure: function(o) {
|
|
41882
|
-
o.code === "InvalidParameterException" ? i(new rd(
|
|
41892
|
+
o.code === "InvalidParameterException" ? i(new rd(Vt.DeviceConfig)) : o.code === "NetworkError" ? i(new rd(Vt.NetworkError)) : i(o);
|
|
41883
41893
|
}
|
|
41884
41894
|
});
|
|
41885
41895
|
})];
|
|
@@ -41887,9 +41897,9 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41887
41897
|
});
|
|
41888
41898
|
});
|
|
41889
41899
|
}, t.prototype.fetchDevices = function() {
|
|
41890
|
-
return
|
|
41900
|
+
return zt(this, void 0, void 0, function() {
|
|
41891
41901
|
var e, n;
|
|
41892
|
-
return
|
|
41902
|
+
return Ht(this, function(s) {
|
|
41893
41903
|
switch (s.label) {
|
|
41894
41904
|
case 0:
|
|
41895
41905
|
return s.trys.push([0, 2, , 3]), [4, this.currentUserPoolUser()];
|
|
@@ -41914,7 +41924,7 @@ var eM = new Yi("AuthError"), rd = (
|
|
|
41914
41924
|
r(d);
|
|
41915
41925
|
},
|
|
41916
41926
|
onFailure: function(a) {
|
|
41917
|
-
a.code === "InvalidParameterException" ? i(new rd(
|
|
41927
|
+
a.code === "InvalidParameterException" ? i(new rd(Vt.DeviceConfig)) : a.code === "NetworkError" ? i(new rd(Vt.NetworkError)) : i(a);
|
|
41918
41928
|
}
|
|
41919
41929
|
};
|
|
41920
41930
|
e.listDevices(iM, null, o);
|
|
@@ -42738,7 +42748,7 @@ const SM = `@import"normalize.css";form{margin:inherit}.clickeable{cursor:pointe
|
|
|
42738
42748
|
* Copyright 2018 Google LLC
|
|
42739
42749
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42740
42750
|
*/
|
|
42741
|
-
const Hp = (t) => t != null ? t :
|
|
42751
|
+
const Hp = (t) => t != null ? t : Yt;
|
|
42742
42752
|
var IM = Object.defineProperty, TM = Object.getOwnPropertyDescriptor, Fo = (t, e, n, s) => {
|
|
42743
42753
|
for (var r = s > 1 ? void 0 : s ? TM(e, n) : e, i = t.length - 1, o; i >= 0; i--)
|
|
42744
42754
|
(o = t[i]) && (r = (s ? o(e, n, r) : o(r)) || r);
|
|
@@ -44092,7 +44102,7 @@ let Ni = class t extends Ve {
|
|
|
44092
44102
|
payment_type: r.payment_type,
|
|
44093
44103
|
payment_request: r.payment_request_id
|
|
44094
44104
|
}
|
|
44095
|
-
}), this.stateStatus.status ===
|
|
44105
|
+
}), this.stateStatus.status === Jt.SUCCESS_PROCESSED ? Ge(Jt.SUCCESS_PROCESSED, "") : Ge((s == null ? void 0 : s.name) || Jt.FAILURE_PROCESSED, r.status.reason_code || ""), this.createEvent("button-pushed", dt.STATUS);
|
|
44096
44106
|
});
|
|
44097
44107
|
}
|
|
44098
44108
|
directPaymentTransparent() {
|
|
@@ -44204,7 +44214,7 @@ let Ni = class t extends Ve {
|
|
|
44204
44214
|
payment_type: a.payment_type,
|
|
44205
44215
|
payment_request: a.payment_request_id
|
|
44206
44216
|
}
|
|
44207
|
-
}), this.stateStatus.status ===
|
|
44217
|
+
}), this.stateStatus.status === Jt.SUCCESS_PROCESSED ? Ge(Jt.SUCCESS_PROCESSED, "") : Ge((o == null ? void 0 : o.name) || Jt.FAILURE_PROCESSED, a.status.reason_code || ""), this.createEvent("button-pushed", dt.STATUS);
|
|
44208
44218
|
} catch (o) {
|
|
44209
44219
|
Ge("DIRECT_PAYMENT_TOKENIZED_ERROR", "Direct payment tokenized failed."), this.defaultMessageError(), G.error(
|
|
44210
44220
|
"directPaymentTokenized",
|
|
@@ -44353,7 +44363,7 @@ let Ni = class t extends Ve {
|
|
|
44353
44363
|
return de(this, null, function* () {
|
|
44354
44364
|
try {
|
|
44355
44365
|
const e = yield Xs(this.stateScof.statePaymentRequest.id);
|
|
44356
|
-
if (this.stateScof.statePaymentRequest = e.response, e.response.status ===
|
|
44366
|
+
if (this.stateScof.statePaymentRequest = e.response, e.response.status === Jt.SUCCESS_PROCESSED) {
|
|
44357
44367
|
let n = ln.messages.find((s) => s.status === e.response.status);
|
|
44358
44368
|
n = cc(e.response.payment_type), Ge(n.status, ""), n && (this.stateStatus.title = n.title, this.stateStatus.subtitle = n.subtitle, this.stateStatus.icon = n.icon, this.stateStatus.status = n.status, this.stateStatus.name = n.name, this.stateStatus.returnButton = n.returnButton, this.stateStatus.nameReturnButton = n.nameReturnButton, this.stateScof.isActiveWs = !1, this.stateScof.isExtendedWs = !1, this.createEvent("button-pushed", dt.STATUS));
|
|
44359
44369
|
return;
|
|
@@ -44805,11 +44815,11 @@ let T9 = class {
|
|
|
44805
44815
|
*/
|
|
44806
44816
|
let t2 = class extends T9 {
|
|
44807
44817
|
constructor(e) {
|
|
44808
|
-
if (super(e), this.et =
|
|
44818
|
+
if (super(e), this.et = Yt, e.type !== S9.CHILD)
|
|
44809
44819
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
44810
44820
|
}
|
|
44811
44821
|
render(e) {
|
|
44812
|
-
if (e ===
|
|
44822
|
+
if (e === Yt || e == null)
|
|
44813
44823
|
return this.ft = void 0, this.et = e;
|
|
44814
44824
|
if (e === Gl)
|
|
44815
44825
|
return e;
|
|
@@ -45265,7 +45275,7 @@ let Qi = class extends Ve {
|
|
|
45265
45275
|
var s;
|
|
45266
45276
|
const e = t.transactions[0].auth_data ? t.transactions[0].auth_data.code : "";
|
|
45267
45277
|
let n = ln.messages.find((r) => r.status === this.statusMessage);
|
|
45268
|
-
return e && (t.status ===
|
|
45278
|
+
return e && (t.status === Jt.FAILURE_PROCESSED && ((s = t.transactions[0].auth_data) != null && s.code) && (n = Xl(e), Ge(n.status, e), Tr(t) && (n = Xl(`rejected${Ph(t)}`), Ge(n.status, e))), t.status === Jt.SUCCESS_PROCESSED && (n = cc(t.payment_type), Ge(n.status, "")), t.status === Jt.BLOCKED && (n = E0(t.payment_type), Ge(n.status, e))), n;
|
|
45269
45279
|
}
|
|
45270
45280
|
webSocket() {
|
|
45271
45281
|
return de(this, null, function* () {
|
|
@@ -47431,7 +47441,8 @@ let nc = class t extends Ve {
|
|
|
47431
47441
|
}, this.props = {
|
|
47432
47442
|
publicKey: null,
|
|
47433
47443
|
code: null,
|
|
47434
|
-
code_challengue: null
|
|
47444
|
+
code_challengue: null,
|
|
47445
|
+
client_id: null
|
|
47435
47446
|
}, this.status = {
|
|
47436
47447
|
title: null,
|
|
47437
47448
|
subtitle: null,
|
|
@@ -47538,7 +47549,7 @@ let sc = class extends Ve {
|
|
|
47538
47549
|
src="https://ranty-sdk-js.naranjax.com/images/icon-${this.icon}.svg"
|
|
47539
47550
|
alt="logo-${this.icon}"
|
|
47540
47551
|
class="icon"
|
|
47541
|
-
/>` :
|
|
47552
|
+
/>` : Yt}
|
|
47542
47553
|
</div>
|
|
47543
47554
|
|
|
47544
47555
|
<div class="content">
|
|
@@ -47768,7 +47779,7 @@ let jr = class extends Ve {
|
|
|
47768
47779
|
var s;
|
|
47769
47780
|
const e = t.transactions[0].auth_data ? t.transactions[0].auth_data.code : "";
|
|
47770
47781
|
let n = ln.messages.find((r) => r.status === this.statusMessage);
|
|
47771
|
-
return e && (t.status ===
|
|
47782
|
+
return e && (t.status === Jt.FAILURE_PROCESSED && ((s = t.transactions[0].auth_data) != null && s.code) && (n = Xl(e), Ge(n.status, e), Tr(t) && (n = Xl(`rejected${Ph(t)}`), Ge(n.status, e))), t.status === Jt.SUCCESS_PROCESSED && (n = cc(t.payment_type), Ge(n.status, "")), t.status === Jt.BLOCKED && (n = E0(t.payment_type), Ge(n.status, e))), n;
|
|
47772
47783
|
}
|
|
47773
47784
|
webSocket() {
|
|
47774
47785
|
return de(this, null, function* () {
|
|
@@ -47859,14 +47870,14 @@ let jr = class extends Ve {
|
|
|
47859
47870
|
subtitle="${this.messageAlert.subtitle}"
|
|
47860
47871
|
icon="warning"
|
|
47861
47872
|
></component-alert>
|
|
47862
|
-
</div>` : I`${
|
|
47873
|
+
</div>` : I`${Yt}`;
|
|
47863
47874
|
}
|
|
47864
47875
|
routerState() {
|
|
47865
47876
|
var t, e, n, s, r, i;
|
|
47866
47877
|
return I`
|
|
47867
47878
|
${this.isShowToast ? I`<div class="alert-container">
|
|
47868
47879
|
<component-notify> ${this.messageToast} </component-notify>
|
|
47869
|
-
</div>` :
|
|
47880
|
+
</div>` : Yt}
|
|
47870
47881
|
${this.state.page === ze.LOADING || this.state.page === ze.QR || this.state.page === ze.STATUS ? I`<div class="container ${this.isShowAlert ? "alert" : ""}">${this.showAlertComponent()}</div>
|
|
47871
47882
|
${mC(this.state.page)} ` : I` <div class="container">
|
|
47872
47883
|
<div class="container-text">
|
|
@@ -47875,15 +47886,15 @@ let jr = class extends Ve {
|
|
|
47875
47886
|
${(e = (t = this.settings) == null ? void 0 : t.customerProperties) != null && e.show_title && ((s = (n = this.payfacContext.paymentRequest) == null ? void 0 : n.seller) != null && s.fantasy_name) ? I`${M9(
|
|
47876
47887
|
this.state.page,
|
|
47877
47888
|
this.payfacContext.paymentRequest.seller.fantasy_name
|
|
47878
|
-
)}` :
|
|
47889
|
+
)}` : Yt}
|
|
47879
47890
|
</p>
|
|
47880
47891
|
</h1>
|
|
47881
|
-
${this.isMobileDevice() ?
|
|
47892
|
+
${this.isMobileDevice() ? Yt : I`<h2 class="container__subtitle">${yC(this.state.page)}</h2>`}
|
|
47882
47893
|
</div>
|
|
47883
47894
|
${this.showAlertComponent()}
|
|
47884
47895
|
|
|
47885
47896
|
<div class="container__content">
|
|
47886
|
-
${this.isMobileDevice() ? I`<h2 class="container__subtitle">${yC(this.state.page)}</h2>` :
|
|
47897
|
+
${this.isMobileDevice() ? I`<h2 class="container__subtitle">${yC(this.state.page)}</h2>` : Yt}
|
|
47887
47898
|
${mC(this.state.page)}
|
|
47888
47899
|
</div>
|
|
47889
47900
|
|
|
@@ -47892,8 +47903,8 @@ let jr = class extends Ve {
|
|
|
47892
47903
|
.items="${this.payfacContext.paymentRequest.transactions[0].products}"
|
|
47893
47904
|
.total_amount="${this.payfacContext.paymentRequest.transactions[0].amount.value}"
|
|
47894
47905
|
.payfacContext="${this.payfacContext}"
|
|
47895
|
-
></card-payment>` :
|
|
47896
|
-
</div>` :
|
|
47906
|
+
></card-payment>` : Yt}
|
|
47907
|
+
</div>` : Yt}
|
|
47897
47908
|
</div>`}
|
|
47898
47909
|
`;
|
|
47899
47910
|
}
|
|
@@ -50179,7 +50190,7 @@ let ic = class extends Ve {
|
|
|
50179
50190
|
associationAccount() {
|
|
50180
50191
|
var l, c;
|
|
50181
50192
|
const s = window.screenX || window.screenLeft, r = window.outerWidth || document.documentElement.clientWidth, i = s + r - 375 - 400, o = (window.innerHeight - 584) / 2, a = window.open(
|
|
50182
|
-
`${(l = this.state.pcpSelected) == null ? void 0 : l.authorization_url}/?client_id
|
|
50193
|
+
`${(l = this.state.pcpSelected) == null ? void 0 : l.authorization_url}/?client_id=${this.props.client_id}&code_challenge=${this.props.code_challengue}&code_challenge_method=S256&user_identifier=23897019789&state=${this.payfacContext.paymentRequest.id}`,
|
|
50183
50194
|
"modoConnectionWindow",
|
|
50184
50195
|
`width=375,height=584,top=${o},left=${i},resizable=no`
|
|
50185
50196
|
);
|
|
@@ -52033,7 +52044,7 @@ let To = class t extends Ve {
|
|
|
52033
52044
|
return de(this, null, function* () {
|
|
52034
52045
|
try {
|
|
52035
52046
|
const e = yield Xs(this.payfacContext.paymentRequest.id);
|
|
52036
|
-
if (this.payfacContext.paymentRequest = e.response, e.response.status ===
|
|
52047
|
+
if (this.payfacContext.paymentRequest = e.response, e.response.status === Jt.SUCCESS_PROCESSED) {
|
|
52037
52048
|
let n = ln.messages.find((s) => s.status === e.response.status);
|
|
52038
52049
|
n = cc(e.response.payment_type), Ge(n.status, ""), n && (Object.assign(this.status, n), this.state.isActiveWs = !1, this.state.isExtendedWs = !1, this.createEvent("button-pushed", ze.STATUS));
|
|
52039
52050
|
return;
|
|
@@ -52149,7 +52160,7 @@ let To = class t extends Ve {
|
|
|
52149
52160
|
payment_request: a.payment_request_id,
|
|
52150
52161
|
payment_sync: this.payfacContext.paymentSync
|
|
52151
52162
|
}
|
|
52152
|
-
}), this.
|
|
52163
|
+
}), this._sendPaymentResultPostMessage(a, o), this.createEvent("button-pushed", ze.STATUS);
|
|
52153
52164
|
} catch (r) {
|
|
52154
52165
|
G.error(
|
|
52155
52166
|
"transparentPaymentPunkuError",
|
|
@@ -52171,6 +52182,17 @@ let To = class t extends Ve {
|
|
|
52171
52182
|
}
|
|
52172
52183
|
});
|
|
52173
52184
|
}
|
|
52185
|
+
_sendPaymentResultPostMessage(e, n) {
|
|
52186
|
+
var r;
|
|
52187
|
+
const s = {
|
|
52188
|
+
payment_id: e.id,
|
|
52189
|
+
payment_request_id: (r = this.payfacContext.paymentRequest) == null ? void 0 : r.id,
|
|
52190
|
+
payment_status: e.status,
|
|
52191
|
+
reason_code: e.status.reason_code || "",
|
|
52192
|
+
payment_type: e.payment_type
|
|
52193
|
+
};
|
|
52194
|
+
this.status.status === Jt.SUCCESS_PROCESSED ? Ge(Jt.SUCCESS_PROCESSED, s) : Ge((n == null ? void 0 : n.name) || Jt.FAILURE_PROCESSED, s);
|
|
52195
|
+
}
|
|
52174
52196
|
getDataSCOF(e) {
|
|
52175
52197
|
return de(this, null, function* () {
|
|
52176
52198
|
var n, s, r;
|
|
@@ -52232,7 +52254,7 @@ let To = class t extends Ve {
|
|
|
52232
52254
|
this.state.a2aEnabled = r.a2a_enabled, this.state.userAccountsData = {
|
|
52233
52255
|
list: r.user_accounts_data,
|
|
52234
52256
|
selected: null
|
|
52235
|
-
}, this.props.code = r.code, this.props.code_challengue = r.code_challenge;
|
|
52257
|
+
}, this.props.code = r.code, this.props.code_challengue = r.code_challenge, this.props.client_id = r.client_id;
|
|
52236
52258
|
} catch (r) {
|
|
52237
52259
|
G.error(
|
|
52238
52260
|
"getDataA2AError",
|
|
@@ -52306,7 +52328,7 @@ let To = class t extends Ve {
|
|
|
52306
52328
|
payment_id: a.id,
|
|
52307
52329
|
payment_sync: this.payfacContext.paymentSync
|
|
52308
52330
|
}
|
|
52309
|
-
}), this.
|
|
52331
|
+
}), this._sendPaymentResultPostMessage(a, o), this.createEvent("button-pushed", ze.STATUS);
|
|
52310
52332
|
} catch (o) {
|
|
52311
52333
|
Ge("DIRECT_PAYMENT_PUNKU_TOKENIZED_ERROR", "Direct payment tokenized failed."), Object.assign(this.status, Jr), G.error(
|
|
52312
52334
|
"directPaymentTokenized",
|
|
@@ -56353,24 +56375,24 @@ var BW = function(t, e) {
|
|
|
56353
56375
|
var v = Math.max.apply(Math, _);
|
|
56354
56376
|
v > 1 && (i /= v, o /= v, d /= v, l /= v, u /= v, h /= v, m /= v, y /= v);
|
|
56355
56377
|
var x = s.width - d, j = s.height - h, N = s.width - u, q = s.height - y, D = n.borderTopWidth, K = n.borderRightWidth, z = n.borderBottomWidth, $ = n.borderLeftWidth, ue = hn(n.paddingTop, e.bounds.width), R = hn(n.paddingRight, e.bounds.width), M = hn(n.paddingBottom, e.bounds.width), J = hn(n.paddingLeft, e.bounds.width);
|
|
56356
|
-
this.topLeftBorderDoubleOuterBox = i > 0 || o > 0 ? bn(s.left + $ / 3, s.top + D / 3, i - $ / 3, o - D / 3,
|
|
56378
|
+
this.topLeftBorderDoubleOuterBox = i > 0 || o > 0 ? bn(s.left + $ / 3, s.top + D / 3, i - $ / 3, o - D / 3, Wt.TOP_LEFT) : new tt(s.left + $ / 3, s.top + D / 3), this.topRightBorderDoubleOuterBox = i > 0 || o > 0 ? bn(s.left + x, s.top + D / 3, d - K / 3, l - D / 3, Wt.TOP_RIGHT) : new tt(s.left + s.width - K / 3, s.top + D / 3), this.bottomRightBorderDoubleOuterBox = u > 0 || h > 0 ? bn(s.left + N, s.top + j, u - K / 3, h - z / 3, Wt.BOTTOM_RIGHT) : new tt(s.left + s.width - K / 3, s.top + s.height - z / 3), this.bottomLeftBorderDoubleOuterBox = m > 0 || y > 0 ? bn(s.left + $ / 3, s.top + q, m - $ / 3, y - z / 3, Wt.BOTTOM_LEFT) : new tt(s.left + $ / 3, s.top + s.height - z / 3), this.topLeftBorderDoubleInnerBox = i > 0 || o > 0 ? bn(s.left + $ * 2 / 3, s.top + D * 2 / 3, i - $ * 2 / 3, o - D * 2 / 3, Wt.TOP_LEFT) : new tt(s.left + $ * 2 / 3, s.top + D * 2 / 3), this.topRightBorderDoubleInnerBox = i > 0 || o > 0 ? bn(s.left + x, s.top + D * 2 / 3, d - K * 2 / 3, l - D * 2 / 3, Wt.TOP_RIGHT) : new tt(s.left + s.width - K * 2 / 3, s.top + D * 2 / 3), this.bottomRightBorderDoubleInnerBox = u > 0 || h > 0 ? bn(s.left + N, s.top + j, u - K * 2 / 3, h - z * 2 / 3, Wt.BOTTOM_RIGHT) : new tt(s.left + s.width - K * 2 / 3, s.top + s.height - z * 2 / 3), this.bottomLeftBorderDoubleInnerBox = m > 0 || y > 0 ? bn(s.left + $ * 2 / 3, s.top + q, m - $ * 2 / 3, y - z * 2 / 3, Wt.BOTTOM_LEFT) : new tt(s.left + $ * 2 / 3, s.top + s.height - z * 2 / 3), this.topLeftBorderStroke = i > 0 || o > 0 ? bn(s.left + $ / 2, s.top + D / 2, i - $ / 2, o - D / 2, Wt.TOP_LEFT) : new tt(s.left + $ / 2, s.top + D / 2), this.topRightBorderStroke = i > 0 || o > 0 ? bn(s.left + x, s.top + D / 2, d - K / 2, l - D / 2, Wt.TOP_RIGHT) : new tt(s.left + s.width - K / 2, s.top + D / 2), this.bottomRightBorderStroke = u > 0 || h > 0 ? bn(s.left + N, s.top + j, u - K / 2, h - z / 2, Wt.BOTTOM_RIGHT) : new tt(s.left + s.width - K / 2, s.top + s.height - z / 2), this.bottomLeftBorderStroke = m > 0 || y > 0 ? bn(s.left + $ / 2, s.top + q, m - $ / 2, y - z / 2, Wt.BOTTOM_LEFT) : new tt(s.left + $ / 2, s.top + s.height - z / 2), this.topLeftBorderBox = i > 0 || o > 0 ? bn(s.left, s.top, i, o, Wt.TOP_LEFT) : new tt(s.left, s.top), this.topRightBorderBox = d > 0 || l > 0 ? bn(s.left + x, s.top, d, l, Wt.TOP_RIGHT) : new tt(s.left + s.width, s.top), this.bottomRightBorderBox = u > 0 || h > 0 ? bn(s.left + N, s.top + j, u, h, Wt.BOTTOM_RIGHT) : new tt(s.left + s.width, s.top + s.height), this.bottomLeftBorderBox = m > 0 || y > 0 ? bn(s.left, s.top + q, m, y, Wt.BOTTOM_LEFT) : new tt(s.left, s.top + s.height), this.topLeftPaddingBox = i > 0 || o > 0 ? bn(s.left + $, s.top + D, Math.max(0, i - $), Math.max(0, o - D), Wt.TOP_LEFT) : new tt(s.left + $, s.top + D), this.topRightPaddingBox = d > 0 || l > 0 ? bn(s.left + Math.min(x, s.width - K), s.top + D, x > s.width + K ? 0 : Math.max(0, d - K), Math.max(0, l - D), Wt.TOP_RIGHT) : new tt(s.left + s.width - K, s.top + D), this.bottomRightPaddingBox = u > 0 || h > 0 ? bn(s.left + Math.min(N, s.width - $), s.top + Math.min(j, s.height - z), Math.max(0, u - K), Math.max(0, h - z), Wt.BOTTOM_RIGHT) : new tt(s.left + s.width - K, s.top + s.height - z), this.bottomLeftPaddingBox = m > 0 || y > 0 ? bn(s.left + $, s.top + Math.min(q, s.height - z), Math.max(0, m - $), Math.max(0, y - z), Wt.BOTTOM_LEFT) : new tt(s.left + $, s.top + s.height - z), this.topLeftContentBox = i > 0 || o > 0 ? bn(s.left + $ + J, s.top + D + ue, Math.max(0, i - ($ + J)), Math.max(0, o - (D + ue)), Wt.TOP_LEFT) : new tt(s.left + $ + J, s.top + D + ue), this.topRightContentBox = d > 0 || l > 0 ? bn(s.left + Math.min(x, s.width + $ + J), s.top + D + ue, x > s.width + $ + J ? 0 : d - $ + J, l - (D + ue), Wt.TOP_RIGHT) : new tt(s.left + s.width - (K + R), s.top + D + ue), this.bottomRightContentBox = u > 0 || h > 0 ? bn(s.left + Math.min(N, s.width - ($ + J)), s.top + Math.min(j, s.height + D + ue), Math.max(0, u - (K + R)), h - (z + M), Wt.BOTTOM_RIGHT) : new tt(s.left + s.width - (K + R), s.top + s.height - (z + M)), this.bottomLeftContentBox = m > 0 || y > 0 ? bn(s.left + $ + J, s.top + q, Math.max(0, m - ($ + J)), y - (z + M), Wt.BOTTOM_LEFT) : new tt(s.left + $ + J, s.top + s.height - (z + M));
|
|
56357
56379
|
}
|
|
56358
56380
|
return t;
|
|
56359
56381
|
}()
|
|
56360
|
-
),
|
|
56382
|
+
), Wt;
|
|
56361
56383
|
(function(t) {
|
|
56362
56384
|
t[t.TOP_LEFT = 0] = "TOP_LEFT", t[t.TOP_RIGHT = 1] = "TOP_RIGHT", t[t.BOTTOM_RIGHT = 2] = "BOTTOM_RIGHT", t[t.BOTTOM_LEFT = 3] = "BOTTOM_LEFT";
|
|
56363
|
-
})(
|
|
56385
|
+
})(Wt || (Wt = {}));
|
|
56364
56386
|
var bn = function(t, e, n, s, r) {
|
|
56365
56387
|
var i = 4 * ((Math.sqrt(2) - 1) / 3), o = n * i, a = s * i, d = t + n, l = e + s;
|
|
56366
56388
|
switch (r) {
|
|
56367
|
-
case
|
|
56389
|
+
case Wt.TOP_LEFT:
|
|
56368
56390
|
return new Pf(new tt(t, l), new tt(t, l - a), new tt(d - o, e), new tt(d, e));
|
|
56369
|
-
case
|
|
56391
|
+
case Wt.TOP_RIGHT:
|
|
56370
56392
|
return new Pf(new tt(t, e), new tt(t + o, e), new tt(d, l - a), new tt(d, l));
|
|
56371
|
-
case
|
|
56393
|
+
case Wt.BOTTOM_RIGHT:
|
|
56372
56394
|
return new Pf(new tt(d, e), new tt(d, e + a), new tt(t + o, l), new tt(t, l));
|
|
56373
|
-
case
|
|
56395
|
+
case Wt.BOTTOM_LEFT:
|
|
56374
56396
|
default:
|
|
56375
56397
|
return new Pf(new tt(d, l), new tt(d - o, l), new tt(t, e + a), new tt(t, e));
|
|
56376
56398
|
}
|
|
@@ -58392,7 +58414,7 @@ function ft(t) {
|
|
|
58392
58414
|
throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");
|
|
58393
58415
|
return st[f] = k;
|
|
58394
58416
|
};
|
|
58395
|
-
var kt, et, Zn,
|
|
58417
|
+
var kt, et, Zn, Mt, ui, rn = {}, yn = {}, so = [], Kt = {}, $d = {}, xn = {}, pi = {}, Ho = null, Cn = 0, _t = [], Gt = new U3(p), el = t.hotfixes || [], hs = {}, ro = {}, io = [], mt = function f(k, Y, se, he, je, Qe) {
|
|
58396
58418
|
if (!(this instanceof f))
|
|
58397
58419
|
return new f(k, Y, se, he, je, Qe);
|
|
58398
58420
|
isNaN(k) && (k = 1), isNaN(Y) && (Y = 0), isNaN(se) && (se = 0), isNaN(he) && (he = 1), isNaN(je) && (je = 0), isNaN(Qe) && (Qe = 0), this._matrix = [k, Y, se, he, je, Qe];
|
|
@@ -58484,8 +58506,8 @@ function ft(t) {
|
|
|
58484
58506
|
p.unitMatrix = p.identityMatrix = oo;
|
|
58485
58507
|
var ir = function(f, k) {
|
|
58486
58508
|
if (!$d[f]) {
|
|
58487
|
-
var Y = (k instanceof Fl ? "Sh" : "P") + (Object.keys(
|
|
58488
|
-
k.id = Y, $d[f] = Y,
|
|
58509
|
+
var Y = (k instanceof Fl ? "Sh" : "P") + (Object.keys(Kt).length + 1).toString(10);
|
|
58510
|
+
k.id = Y, $d[f] = Y, Kt[Y] = k, Gt.publish("addPattern", k);
|
|
58489
58511
|
}
|
|
58490
58512
|
};
|
|
58491
58513
|
p.ShadingPattern = Fl, p.TilingPattern = BA, p.addShadingPattern = function(f, k) {
|
|
@@ -58494,7 +58516,7 @@ function ft(t) {
|
|
|
58494
58516
|
z("beginTilingPattern()"), hg(f.boundingBox[0], f.boundingBox[1], f.boundingBox[2] - f.boundingBox[0], f.boundingBox[3] - f.boundingBox[1], f.matrix);
|
|
58495
58517
|
}, p.endTilingPattern = function(f, k) {
|
|
58496
58518
|
z("endTilingPattern()"), k.stream = De[H].join(`
|
|
58497
|
-
`), ir(f, k),
|
|
58519
|
+
`), ir(f, k), Gt.publish("endTilingPattern", k), io.pop().restore();
|
|
58498
58520
|
};
|
|
58499
58521
|
var $n = p.__private__.newObject = function() {
|
|
58500
58522
|
var f = Hn();
|
|
@@ -58602,7 +58624,7 @@ function ft(t) {
|
|
|
58602
58624
|
X(">>"), pt.data.length !== 0 && (X("stream"), X(nt(pt.data)), X("endstream"));
|
|
58603
58625
|
}, lo = p.__private__.putPage = function(f) {
|
|
58604
58626
|
var k = f.number, Y = f.data, se = f.objId, he = f.contentsObjId;
|
|
58605
|
-
vr(se, !0), X("<</Type /Page"), X("/Parent " + f.rootDictionaryObjId + " 0 R"), X("/Resources " + f.resourceDictionaryObjId + " 0 R"), X("/MediaBox [" + parseFloat(K(f.mediaBox.bottomLeftX)) + " " + parseFloat(K(f.mediaBox.bottomLeftY)) + " " + K(f.mediaBox.topRightX) + " " + K(f.mediaBox.topRightY) + "]"), f.cropBox !== null && X("/CropBox [" + K(f.cropBox.bottomLeftX) + " " + K(f.cropBox.bottomLeftY) + " " + K(f.cropBox.topRightX) + " " + K(f.cropBox.topRightY) + "]"), f.bleedBox !== null && X("/BleedBox [" + K(f.bleedBox.bottomLeftX) + " " + K(f.bleedBox.bottomLeftY) + " " + K(f.bleedBox.topRightX) + " " + K(f.bleedBox.topRightY) + "]"), f.trimBox !== null && X("/TrimBox [" + K(f.trimBox.bottomLeftX) + " " + K(f.trimBox.bottomLeftY) + " " + K(f.trimBox.topRightX) + " " + K(f.trimBox.topRightY) + "]"), f.artBox !== null && X("/ArtBox [" + K(f.artBox.bottomLeftX) + " " + K(f.artBox.bottomLeftY) + " " + K(f.artBox.topRightX) + " " + K(f.artBox.topRightY) + "]"), typeof f.userUnit == "number" && f.userUnit !== 1 && X("/UserUnit " + f.userUnit),
|
|
58627
|
+
vr(se, !0), X("<</Type /Page"), X("/Parent " + f.rootDictionaryObjId + " 0 R"), X("/Resources " + f.resourceDictionaryObjId + " 0 R"), X("/MediaBox [" + parseFloat(K(f.mediaBox.bottomLeftX)) + " " + parseFloat(K(f.mediaBox.bottomLeftY)) + " " + K(f.mediaBox.topRightX) + " " + K(f.mediaBox.topRightY) + "]"), f.cropBox !== null && X("/CropBox [" + K(f.cropBox.bottomLeftX) + " " + K(f.cropBox.bottomLeftY) + " " + K(f.cropBox.topRightX) + " " + K(f.cropBox.topRightY) + "]"), f.bleedBox !== null && X("/BleedBox [" + K(f.bleedBox.bottomLeftX) + " " + K(f.bleedBox.bottomLeftY) + " " + K(f.bleedBox.topRightX) + " " + K(f.bleedBox.topRightY) + "]"), f.trimBox !== null && X("/TrimBox [" + K(f.trimBox.bottomLeftX) + " " + K(f.trimBox.bottomLeftY) + " " + K(f.trimBox.topRightX) + " " + K(f.trimBox.topRightY) + "]"), f.artBox !== null && X("/ArtBox [" + K(f.artBox.bottomLeftX) + " " + K(f.artBox.bottomLeftY) + " " + K(f.artBox.topRightX) + " " + K(f.artBox.topRightY) + "]"), typeof f.userUnit == "number" && f.userUnit !== 1 && X("/UserUnit " + f.userUnit), Gt.publish("putPage", { objId: se, pageContext: _t[k], pageNumber: k, page: Y }), X("/Contents " + he + " 0 R"), X(">>"), X("endobj");
|
|
58606
58628
|
var je = Y.join(`
|
|
58607
58629
|
`);
|
|
58608
58630
|
return j === x.ADVANCED && (je += `
|
|
@@ -58617,9 +58639,9 @@ Q`), vr(he, !0), Lr({ data: je, filters: ao(), objectId: he }), X("endobj"), se;
|
|
|
58617
58639
|
var se = "/Kids [";
|
|
58618
58640
|
for (k = 0; k < Cn; k++)
|
|
58619
58641
|
se += Y[k] + " 0 R ";
|
|
58620
|
-
X(se + "]"), X("/Count " + Cn), X(">>"), X("endobj"),
|
|
58642
|
+
X(se + "]"), X("/Count " + Cn), X(">>"), X("endobj"), Gt.publish("postPutPages");
|
|
58621
58643
|
}, xc = function(f) {
|
|
58622
|
-
|
|
58644
|
+
Gt.publish("putFont", { font: f, out: X, newObject: $n, putStream: Lr }), f.isAlreadyPutted !== !0 && (f.objectNumber = $n(), X("<<"), X("/Type /Font"), X("/BaseFont /" + wA(f.postScriptName)), X("/Subtype /Type1"), typeof f.encoding == "string" && X("/Encoding /" + f.encoding), X("/FirstChar 32"), X("/LastChar 255"), X(">>"), X("endobj"));
|
|
58623
58645
|
}, Cc = function() {
|
|
58624
58646
|
for (var f in rn)
|
|
58625
58647
|
rn.hasOwnProperty(f) && (u === !1 || u === !0 && h.hasOwnProperty(f)) && xc(rn[f]);
|
|
@@ -58665,8 +58687,8 @@ Q`), vr(he, !0), Lr({ data: je, filters: ao(), objectId: he }), X("endobj"), se;
|
|
|
58665
58687
|
he.push({ key: "Type", value: "/Pattern" }), he.push({ key: "PatternType", value: "1" }), he.push({ key: "PaintType", value: "1" }), he.push({ key: "TilingType", value: "1" }), he.push({ key: "BBox", value: "[" + f.boundingBox.map(K).join(" ") + "]" }), he.push({ key: "XStep", value: K(f.xStep) }), he.push({ key: "YStep", value: K(f.yStep) }), he.push({ key: "Resources", value: Y + " 0 R" }), f.matrix && he.push({ key: "Matrix", value: "[" + f.matrix.toString() + "]" }), Lr({ data: f.stream, additionalKeyValues: he, objectId: f.objectNumber }), X("endobj");
|
|
58666
58688
|
}, kc = function(f) {
|
|
58667
58689
|
var k;
|
|
58668
|
-
for (k in
|
|
58669
|
-
|
|
58690
|
+
for (k in Kt)
|
|
58691
|
+
Kt.hasOwnProperty(k) && (Kt[k] instanceof Fl ? E1(Kt[k]) : Kt[k] instanceof BA && k1(Kt[k], f));
|
|
58670
58692
|
}, Xh = function(f) {
|
|
58671
58693
|
for (var k in f.objectNumber = $n(), X("<<"), f)
|
|
58672
58694
|
switch (k) {
|
|
@@ -58684,7 +58706,7 @@ Q`), vr(he, !0), Lr({ data: je, filters: ao(), objectId: he }), X("endobj"), se;
|
|
|
58684
58706
|
}, Tu = function() {
|
|
58685
58707
|
for (var f in X("/XObject <<"), hs)
|
|
58686
58708
|
hs.hasOwnProperty(f) && hs[f].objectNumber >= 0 && X("/" + f + " " + hs[f].objectNumber + " 0 R");
|
|
58687
|
-
|
|
58709
|
+
Gt.publish("putXobjectDict"), X(">>");
|
|
58688
58710
|
}, I1 = function() {
|
|
58689
58711
|
ks.oid = $n(), X("<<"), X("/Filter /Standard"), X("/V " + ks.v), X("/R " + ks.r), X("/U <" + ks.toHexString(ks.U) + ">"), X("/O <" + ks.toHexString(ks.O) + ">"), X("/P " + ks.P), X(">>"), X("endobj");
|
|
58690
58712
|
}, Zh = function() {
|
|
@@ -58692,41 +58714,41 @@ Q`), vr(he, !0), Lr({ data: je, filters: ao(), objectId: he }), X("endobj"), se;
|
|
|
58692
58714
|
rn.hasOwnProperty(f) && (u === !1 || u === !0 && h.hasOwnProperty(f)) && X("/" + f + " " + rn[f].objectNumber + " 0 R");
|
|
58693
58715
|
X(">>");
|
|
58694
58716
|
}, T1 = function() {
|
|
58695
|
-
if (Object.keys(
|
|
58696
|
-
for (var f in X("/Shading <<"),
|
|
58697
|
-
|
|
58698
|
-
|
|
58717
|
+
if (Object.keys(Kt).length > 0) {
|
|
58718
|
+
for (var f in X("/Shading <<"), Kt)
|
|
58719
|
+
Kt.hasOwnProperty(f) && Kt[f] instanceof Fl && Kt[f].objectNumber >= 0 && X("/" + f + " " + Kt[f].objectNumber + " 0 R");
|
|
58720
|
+
Gt.publish("putShadingPatternDict"), X(">>");
|
|
58699
58721
|
}
|
|
58700
58722
|
}, Sc = function(f) {
|
|
58701
|
-
if (Object.keys(
|
|
58702
|
-
for (var k in X("/Pattern <<"),
|
|
58703
|
-
|
|
58704
|
-
|
|
58723
|
+
if (Object.keys(Kt).length > 0) {
|
|
58724
|
+
for (var k in X("/Pattern <<"), Kt)
|
|
58725
|
+
Kt.hasOwnProperty(k) && Kt[k] instanceof p.TilingPattern && Kt[k].objectNumber >= 0 && Kt[k].objectNumber < f && X("/" + k + " " + Kt[k].objectNumber + " 0 R");
|
|
58726
|
+
Gt.publish("putTilingPatternDict"), X(">>");
|
|
58705
58727
|
}
|
|
58706
58728
|
}, j1 = function() {
|
|
58707
58729
|
if (Object.keys(xn).length > 0) {
|
|
58708
58730
|
var f;
|
|
58709
58731
|
for (f in X("/ExtGState <<"), xn)
|
|
58710
58732
|
xn.hasOwnProperty(f) && xn[f].objectNumber >= 0 && X("/" + f + " " + xn[f].objectNumber + " 0 R");
|
|
58711
|
-
|
|
58733
|
+
Gt.publish("putGStateDict"), X(">>");
|
|
58712
58734
|
}
|
|
58713
58735
|
}, Tn = function(f) {
|
|
58714
58736
|
vr(f.resourcesOid, !0), X("<<"), X("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"), Zh(), T1(), Sc(f.objectOid), j1(), Tu(), X(">>"), X("endobj");
|
|
58715
58737
|
}, $h = function() {
|
|
58716
58738
|
var f = [];
|
|
58717
|
-
Cc(), S1(), Ec(), kc(f),
|
|
58739
|
+
Cc(), S1(), Ec(), kc(f), Gt.publish("putResources"), f.forEach(Tn), Tn({ resourcesOid: gi, objectOid: Number.MAX_SAFE_INTEGER }), Gt.publish("postPutResources");
|
|
58718
58740
|
}, eg = function() {
|
|
58719
|
-
|
|
58741
|
+
Gt.publish("putAdditionalObjects");
|
|
58720
58742
|
for (var f = 0; f < Me.length; f++) {
|
|
58721
58743
|
var k = Me[f];
|
|
58722
58744
|
vr(k.objId, !0), X(k.content), X("endobj");
|
|
58723
58745
|
}
|
|
58724
|
-
|
|
58746
|
+
Gt.publish("postPutAdditionalObjects");
|
|
58725
58747
|
}, tg = function(f) {
|
|
58726
58748
|
yn[f.fontName] = yn[f.fontName] || {}, yn[f.fontName][f.fontStyle] = f.id;
|
|
58727
58749
|
}, ju = function(f, k, Y, se, he) {
|
|
58728
58750
|
var je = { id: "F" + (Object.keys(rn).length + 1).toString(10), postScriptName: f, fontName: k, fontStyle: Y, encoding: se, isStandardFont: he || !1, metadata: {} };
|
|
58729
|
-
return
|
|
58751
|
+
return Gt.publish("addFont", { font: je, instance: this }), rn[je.id] = je, tg(je), je.id;
|
|
58730
58752
|
}, U1 = function(f) {
|
|
58731
58753
|
for (var k = 0, Y = w.length; k < Y; k++) {
|
|
58732
58754
|
var se = ju.call(this, f[k][0], f[k][1], f[k][2], w[k][3], !0);
|
|
@@ -58734,7 +58756,7 @@ Q`), vr(he, !0), Lr({ data: je, filters: ao(), objectId: he }), X("endobj"), se;
|
|
|
58734
58756
|
var he = f[k][0].split("-");
|
|
58735
58757
|
tg({ id: se, fontName: he[0], fontStyle: he[1] || "" });
|
|
58736
58758
|
}
|
|
58737
|
-
|
|
58759
|
+
Gt.publish("addFonts", { fonts: rn, dictionary: yn });
|
|
58738
58760
|
}, yi = function(f) {
|
|
58739
58761
|
return f.foo = function() {
|
|
58740
58762
|
try {
|
|
@@ -58779,7 +58801,7 @@ Q`), vr(he, !0), Lr({ data: je, filters: ao(), objectId: he }), X("endobj"), se;
|
|
|
58779
58801
|
case "p":
|
|
58780
58802
|
se > he && (r = [he, se]);
|
|
58781
58803
|
}
|
|
58782
|
-
Uu(r), lg(Du), X(bi), Nu !== 0 && X(Nu + " J"), Lu !== 0 && X(Lu + " j"),
|
|
58804
|
+
Uu(r), lg(Du), X(bi), Nu !== 0 && X(Nu + " J"), Lu !== 0 && X(Lu + " j"), Gt.publish("addPage", { pageNumber: Cn });
|
|
58783
58805
|
}, P1 = function(f) {
|
|
58784
58806
|
f > 0 && f <= Cn && (De.splice(f, 1), _t.splice(f, 1), Cn--, H > Cn && (H = Cn), this.setPage(H));
|
|
58785
58807
|
}, sg = function(f) {
|
|
@@ -58829,7 +58851,7 @@ Q`), vr(he, !0), Lr({ data: je, filters: ao(), objectId: he }), X("endobj"), se;
|
|
|
58829
58851
|
case "tworight":
|
|
58830
58852
|
X("/PageLayout /TwoColumnRight");
|
|
58831
58853
|
}
|
|
58832
|
-
Ce && X("/PageMode /" + Ce),
|
|
58854
|
+
Ce && X("/PageMode /" + Ce), Gt.publish("putCatalog"), X(">>"), X("endobj");
|
|
58833
58855
|
}, D1 = p.__private__.putTrailer = function() {
|
|
58834
58856
|
X("trailer"), X("<<"), X("/Size " + (re + 1)), X("/Root " + re + " 0 R"), X("/Info " + (re - 1) + " 0 R"), c !== null && X("/Encrypt " + ks.oid + " 0 R"), X("/ID [ <" + fe + "> <" + fe + "> ]"), X(">>");
|
|
58835
58857
|
}, O1 = p.__private__.putHeader = function() {
|
|
@@ -58840,7 +58862,7 @@ Q`), vr(he, !0), Lr({ data: je, filters: ao(), objectId: he }), X("endobj"), se;
|
|
|
58840
58862
|
for (var k = 1; k <= re; k++)
|
|
58841
58863
|
typeof pe[k] == "function" ? X((f + pe[k]()).slice(-10) + " 00000 n ") : pe[k] !== void 0 ? X((f + pe[k]).slice(-10) + " 00000 n ") : X("0000000000 00000 n ");
|
|
58842
58864
|
}, Vo = p.__private__.buildDocument = function() {
|
|
58843
|
-
At(), ke(ve),
|
|
58865
|
+
At(), ke(ve), Gt.publish("buildDocument"), O1(), tl(), eg(), $h(), c !== null && I1(), R1(), Pu();
|
|
58844
58866
|
var f = _e;
|
|
58845
58867
|
return N1(), D1(), X("startxref"), X("" + f), X("%%EOF"), ke(De[H]), ve.join(`
|
|
58846
58868
|
`);
|
|
@@ -59038,7 +59060,7 @@ Q`), vr(he, !0), Lr({ data: je, filters: ao(), objectId: he }), X("endobj"), se;
|
|
|
59038
59060
|
}
|
|
59039
59061
|
if ((xt = se.maxWidth || 0) > 0 && (typeof f == "string" ? f = qn.splitTextToSize(f, xt) : Object.prototype.toString.call(f) === "[object Array]" && (f = f.reduce(function(un, pn) {
|
|
59040
59062
|
return un.concat(qn.splitTextToSize(pn, xt));
|
|
59041
|
-
}, []))), je = { text: f, x: k, y: Y, options: se, mutex: { pdfEscape: or, activeFontKey: kt, fonts: rn, activeFontSize: C } },
|
|
59063
|
+
}, []))), je = { text: f, x: k, y: Y, options: se, mutex: { pdfEscape: or, activeFontKey: kt, fonts: rn, activeFontSize: C } }, Gt.publish("preProcessText", je), f = je.text, nt = (se = je.options).angle, !(Bn instanceof mt) && nt && typeof nt == "number") {
|
|
59042
59064
|
nt *= Math.PI / 180, se.rotationDirection === 0 && (nt = -nt), j === x.ADVANCED && (nt = -nt);
|
|
59043
59065
|
var Mc = Math.cos(nt), Wu = Math.sin(nt);
|
|
59044
59066
|
Bn = new mt(Mc, Wu, -Wu, Mc, 0, 0);
|
|
@@ -59131,7 +59153,7 @@ Q`), vr(he, !0), Lr({ data: je, filters: ao(), objectId: he }), X("endobj"), se;
|
|
|
59131
59153
|
var bg = typeof se.R2L == "boolean" ? se.R2L : me;
|
|
59132
59154
|
bg === !0 && (f = Vu(f, function(un, pn, Un) {
|
|
59133
59155
|
return [un.split("").reverse().join(""), pn, Un];
|
|
59134
|
-
})), je = { text: f, x: k, y: Y, options: se, mutex: { pdfEscape: or, activeFontKey: kt, fonts: rn, activeFontSize: C } },
|
|
59156
|
+
})), je = { text: f, x: k, y: Y, options: se, mutex: { pdfEscape: or, activeFontKey: kt, fonts: rn, activeFontSize: C } }, Gt.publish("postProcessText", je), f = je.text, vi = je.mutex.isHex || !1;
|
|
59135
59157
|
var Xu = rn[kt].encoding;
|
|
59136
59158
|
Xu !== "WinAnsiEncoding" && Xu !== "StandardEncoding" || (f = Vu(f, function(un, pn, Un) {
|
|
59137
59159
|
return [gg(un), pn, Un];
|
|
@@ -59225,7 +59247,7 @@ T* `) : f.join(` Tj
|
|
|
59225
59247
|
return ir(Qe, je), je;
|
|
59226
59248
|
}
|
|
59227
59249
|
var H1 = function(f, k) {
|
|
59228
|
-
var Y = $d[f.key], se =
|
|
59250
|
+
var Y = $d[f.key], se = Kt[Y];
|
|
59229
59251
|
if (se instanceof Fl)
|
|
59230
59252
|
X("q"), X(q1(k)), se.gState && p.setGState(se.gState), X(f.matrix.toString() + " cm"), X("/" + Y + " sh"), X("Q");
|
|
59231
59253
|
else if (se instanceof BA) {
|
|
@@ -59415,7 +59437,7 @@ T* `) : f.join(` Tj
|
|
|
59415
59437
|
var he = "GS" + (Object.keys(xn).length + 1).toString(10);
|
|
59416
59438
|
xn[he] = k, k.id = he;
|
|
59417
59439
|
}
|
|
59418
|
-
return f && (pi[f] = k.id),
|
|
59440
|
+
return f && (pi[f] = k.id), Gt.publish("addGState", k), k;
|
|
59419
59441
|
}
|
|
59420
59442
|
};
|
|
59421
59443
|
p.addGState = function(f, k) {
|
|
@@ -59465,19 +59487,19 @@ T* `) : f.join(` Tj
|
|
|
59465
59487
|
isNaN(Qe) || (je = parseFloat(Qe));
|
|
59466
59488
|
} }), this;
|
|
59467
59489
|
}, Mu = function() {
|
|
59468
|
-
this.page = Cn, this.currentPage = H, this.pages = De.slice(0), this.pagesContext = _t.slice(0), this.x = Zn, this.y =
|
|
59490
|
+
this.page = Cn, this.currentPage = H, this.pages = De.slice(0), this.pagesContext = _t.slice(0), this.x = Zn, this.y = Mt, this.matrix = ui, this.width = il(H), this.height = Ha(H), this.outputDestination = Ke, this.id = "", this.objectNumber = -1;
|
|
59469
59491
|
};
|
|
59470
59492
|
Mu.prototype.restore = function() {
|
|
59471
|
-
Cn = this.page, H = this.currentPage, _t = this.pagesContext, De = this.pages, Zn = this.x,
|
|
59493
|
+
Cn = this.page, H = this.currentPage, _t = this.pagesContext, De = this.pages, Zn = this.x, Mt = this.y, ui = this.matrix, zu(H, this.width), Hu(H, this.height), Ke = this.outputDestination;
|
|
59472
59494
|
};
|
|
59473
59495
|
var hg = function(f, k, Y, se, he) {
|
|
59474
|
-
io.push(new Mu()), Cn = H = 0, De = [], Zn = f,
|
|
59496
|
+
io.push(new Mu()), Cn = H = 0, De = [], Zn = f, Mt = k, ui = he, Uu([Y, se]);
|
|
59475
59497
|
}, Y1 = function(f) {
|
|
59476
59498
|
if (ro[f])
|
|
59477
59499
|
io.pop().restore();
|
|
59478
59500
|
else {
|
|
59479
59501
|
var k = new Mu(), Y = "Xo" + (Object.keys(hs).length + 1).toString(10);
|
|
59480
|
-
k.id = Y, ro[f] = Y, hs[Y] = k,
|
|
59502
|
+
k.id = Y, ro[f] = Y, hs[Y] = k, Gt.publish("addFormObject", k), io.pop().restore();
|
|
59481
59503
|
}
|
|
59482
59504
|
};
|
|
59483
59505
|
for (var Dc in p.beginFormObject = function(f, k, Y, se, he) {
|
|
@@ -59504,7 +59526,7 @@ T* `) : f.join(` Tj
|
|
|
59504
59526
|
var Y, se, he;
|
|
59505
59527
|
for (he = k.length - 1; he !== -1; he--)
|
|
59506
59528
|
Y = k[he][0], se = k[he][1], f.subscribe.apply(f, [Y].concat(typeof se == "function" ? [se] : se));
|
|
59507
|
-
}(
|
|
59529
|
+
}(Gt, ft.API.events) : p[Dc] = ft.API[Dc]);
|
|
59508
59530
|
var il = p.getPageWidth = function(f) {
|
|
59509
59531
|
return (_t[f = f || H].mediaBox.topRightX - _t[f].mediaBox.bottomLeftX) / et;
|
|
59510
59532
|
}, zu = p.setPageWidth = function(f, k) {
|
|
@@ -59514,7 +59536,7 @@ T* `) : f.join(` Tj
|
|
|
59514
59536
|
}, Hu = p.setPageHeight = function(f, k) {
|
|
59515
59537
|
_t[f].mediaBox.topRightY = k * et + _t[f].mediaBox.bottomLeftY;
|
|
59516
59538
|
};
|
|
59517
|
-
return p.internal = { pdfEscape: or, getStyle: ag, getFont: V1, getFontSize: ee, getCharSpace: W1, getTextColor: G1, getLineHeight: cg, getLineHeightFactor: ug, getLineWidth: Pc, write: bt, getHorizontalCoordinate: Ao, getVerticalCoordinate: Ko, getCoordinateString: K1, getVerticalCoordinateString: za, collections: {}, newObject: $n, newAdditionalObject: _c, newObjectDeferred: Hn, newObjectDeferredBegin: vr, getFilters: ao, putStream: Lr, events:
|
|
59539
|
+
return p.internal = { pdfEscape: or, getStyle: ag, getFont: V1, getFontSize: ee, getCharSpace: W1, getTextColor: G1, getLineHeight: cg, getLineHeightFactor: ug, getLineWidth: Pc, write: bt, getHorizontalCoordinate: Ao, getVerticalCoordinate: Ko, getCoordinateString: K1, getVerticalCoordinateString: za, collections: {}, newObject: $n, newAdditionalObject: _c, newObjectDeferred: Hn, newObjectDeferredBegin: vr, getFilters: ao, putStream: Lr, events: Gt, scaleFactor: et, pageSize: { getWidth: function() {
|
|
59518
59540
|
return il(H);
|
|
59519
59541
|
}, setWidth: function(f) {
|
|
59520
59542
|
zu(H, f);
|
|
@@ -59530,7 +59552,7 @@ T* `) : f.join(` Tj
|
|
|
59530
59552
|
return Ha(H);
|
|
59531
59553
|
}, set: function(f) {
|
|
59532
59554
|
Hu(H, f);
|
|
59533
|
-
}, enumerable: !0, configurable: !0 }), U1.call(p, w), kt = "F1", ng(r, n),
|
|
59555
|
+
}, enumerable: !0, configurable: !0 }), U1.call(p, w), kt = "F1", ng(r, n), Gt.publish("initialized"), p;
|
|
59534
59556
|
}
|
|
59535
59557
|
vA.prototype.lsbFirstWord = function(t) {
|
|
59536
59558
|
return String.fromCharCode(t >> 0 & 255, t >> 8 & 255, t >> 16 & 255, t >> 24 & 255);
|
|
@@ -61253,23 +61275,23 @@ var Lf, N3, L3, Wb = ["times"];
|
|
|
61253
61275
|
var C = X[6], Q = /^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(w)[2];
|
|
61254
61276
|
w = Math.floor(Q === "px" ? parseFloat(w) * this.pdf.internal.scaleFactor : Q === "em" ? parseFloat(w) * this.pdf.getFontSize() : parseFloat(w) * this.pdf.internal.scaleFactor), this.pdf.setFontSize(w);
|
|
61255
61277
|
var ee = function(st) {
|
|
61256
|
-
var kt, et, Zn = [],
|
|
61257
|
-
if (
|
|
61278
|
+
var kt, et, Zn = [], Mt = st.trim();
|
|
61279
|
+
if (Mt === "")
|
|
61258
61280
|
return Wb;
|
|
61259
|
-
if (
|
|
61260
|
-
return [R3[
|
|
61261
|
-
for (;
|
|
61262
|
-
switch (et = null, kt = (
|
|
61281
|
+
if (Mt in R3)
|
|
61282
|
+
return [R3[Mt]];
|
|
61283
|
+
for (; Mt !== ""; ) {
|
|
61284
|
+
switch (et = null, kt = (Mt = O3(Mt)).charAt(0)) {
|
|
61263
61285
|
case '"':
|
|
61264
61286
|
case "'":
|
|
61265
|
-
et = $Y(
|
|
61287
|
+
et = $Y(Mt.substring(1), kt);
|
|
61266
61288
|
break;
|
|
61267
61289
|
default:
|
|
61268
|
-
et = eJ(
|
|
61290
|
+
et = eJ(Mt);
|
|
61269
61291
|
}
|
|
61270
|
-
if (et === null || (Zn.push(et[0]), (
|
|
61292
|
+
if (et === null || (Zn.push(et[0]), (Mt = O3(et[1])) !== "" && Mt.charAt(0) !== ","))
|
|
61271
61293
|
return Wb;
|
|
61272
|
-
|
|
61294
|
+
Mt = Mt.replace(/^,/, "");
|
|
61273
61295
|
}
|
|
61274
61296
|
return Zn;
|
|
61275
61297
|
}(C);
|
|
@@ -61503,10 +61525,10 @@ var Lf, N3, L3, Wb = ["times"];
|
|
|
61503
61525
|
var Zn = this.path;
|
|
61504
61526
|
X = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = x(X, this.posX + this.margin[3], -et + vt + this.ctx.prevPageLastElemOffset), q.call(this, "fill", !0), this.path = Zn;
|
|
61505
61527
|
}
|
|
61506
|
-
var
|
|
61507
|
-
|
|
61528
|
+
var Mt = JSON.parse(JSON.stringify(C));
|
|
61529
|
+
Mt = x([Mt], this.posX + this.margin[3], -et + vt + this.ctx.prevPageLastElemOffset)[0];
|
|
61508
61530
|
var ui = (ot > Ce || ot < $e) && y.call(this);
|
|
61509
|
-
ui && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], ut, kt, null).clip().discardPath()), this.pdf.addImage(S, "JPEG",
|
|
61531
|
+
ui && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], ut, kt, null).clip().discardPath()), this.pdf.addImage(S, "JPEG", Mt.x, Mt.y, Mt.w, Mt.h, null, null, O), ui && this.pdf.restoreGraphicsState();
|
|
61510
61532
|
}
|
|
61511
61533
|
else
|
|
61512
61534
|
this.pdf.addImage(S, "JPEG", C.x, C.y, C.w, C.h, null, null, O);
|
|
@@ -61718,8 +61740,8 @@ var Lf, N3, L3, Wb = ["times"];
|
|
|
61718
61740
|
var kt = this.autoPaging !== "text";
|
|
61719
61741
|
if (kt || st.y + st.h <= me) {
|
|
61720
61742
|
if (kt || st.y >= Q && st.x <= $e) {
|
|
61721
|
-
var et = kt ? S.text : this.pdf.splitTextToSize(S.text, S.maxWidth || $e - st.x)[0], Zn = x([JSON.parse(JSON.stringify(Ke))], this.posX + this.margin[3], -ut + Q + this.ctx.prevPageLastElemOffset)[0],
|
|
61722
|
-
|
|
61743
|
+
var et = kt ? S.text : this.pdf.splitTextToSize(S.text, S.maxWidth || $e - st.x)[0], Zn = x([JSON.parse(JSON.stringify(Ke))], this.posX + this.margin[3], -ut + Q + this.ctx.prevPageLastElemOffset)[0], Mt = kt && (C > O || C < w) && y.call(this);
|
|
61744
|
+
Mt && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], ot, Ce, null).clip().discardPath()), this.pdf.text(et, Zn.x, Zn.y, { angle: S.angle, align: H, renderingMode: S.renderingMode }), Mt && this.pdf.restoreGraphicsState();
|
|
61723
61745
|
}
|
|
61724
61746
|
} else
|
|
61725
61747
|
st.y < me && (this.ctx.prevPageLastElemOffset += me - st.y);
|
|
@@ -62719,11 +62741,11 @@ function Yb(t) {
|
|
|
62719
62741
|
var Q, ee, me, Ce, $e, ot, ut, vt, st, kt, et = 0;
|
|
62720
62742
|
for (st = 0; st < 8; ++st) {
|
|
62721
62743
|
Q = w[et], ee = w[et + 1], me = w[et + 2], Ce = w[et + 3], $e = w[et + 4], ot = w[et + 5], ut = w[et + 6];
|
|
62722
|
-
var Zn = Q + (vt = w[et + 7]),
|
|
62744
|
+
var Zn = Q + (vt = w[et + 7]), Mt = Q - vt, ui = ee + ut, rn = ee - ut, yn = me + ot, so = me - ot, Kt = Ce + $e, $d = Ce - $e, xn = Zn + Kt, pi = Zn - Kt, Ho = ui + yn, Cn = ui - yn;
|
|
62723
62745
|
w[et] = xn + Ho, w[et + 4] = xn - Ho;
|
|
62724
62746
|
var _t = 0.707106781 * (Cn + pi);
|
|
62725
62747
|
w[et + 2] = pi + _t, w[et + 6] = pi - _t;
|
|
62726
|
-
var
|
|
62748
|
+
var Gt = 0.382683433 * ((xn = $d + so) - (Cn = rn + Mt)), el = 0.5411961 * xn + Gt, hs = 1.306562965 * Cn + Gt, ro = 0.707106781 * (Ho = so + rn), io = Mt + ro, mt = Mt - ro;
|
|
62727
62749
|
w[et + 5] = mt + el, w[et + 3] = mt - el, w[et + 1] = io + hs, w[et + 7] = io - hs, et += 8;
|
|
62728
62750
|
}
|
|
62729
62751
|
for (et = 0, st = 0; st < 8; ++st) {
|
|
@@ -63120,7 +63142,7 @@ function q3(t) {
|
|
|
63120
63142
|
B[E++] = U >> 16 & 255, B[E++] = U >> 8 & 255, B[E++] = U >> 0 & 255, B[E++] = U >> 24 & 255;
|
|
63121
63143
|
}
|
|
63122
63144
|
}
|
|
63123
|
-
function
|
|
63145
|
+
function Mt(A, g, b, B, E) {
|
|
63124
63146
|
for (b = g + b; g < b; ) {
|
|
63125
63147
|
var U = (P = A[g++]) >> 16 & 240 | P >> 12 & 15, P = P >> 0 & 240 | P >> 28 & 15;
|
|
63126
63148
|
B[E++] = U, B[E++] = P;
|
|
@@ -63148,7 +63170,7 @@ function q3(t) {
|
|
|
63148
63170
|
function so(A, g) {
|
|
63149
63171
|
z[g][0] = z[A + "0"], z[g][1] = z[A + "1"], z[g][2] = z[A + "2"], z[g][3] = z[A + "3"], z[g][4] = z[A + "4"], z[g][5] = z[A + "5"], z[g][6] = z[A + "6"], z[g][7] = z[A + "7"], z[g][8] = z[A + "8"], z[g][9] = z[A + "9"], z[g][10] = z[A + "10"], z[g][11] = z[A + "11"], z[g][12] = z[A + "12"], z[g][13] = z[A + "13"], z[g][14] = z[A + "0"], z[g][15] = z[A + "0"];
|
|
63150
63172
|
}
|
|
63151
|
-
function
|
|
63173
|
+
function Kt(A) {
|
|
63152
63174
|
return A == $1 || A == ey || A == Eg || A == ty;
|
|
63153
63175
|
}
|
|
63154
63176
|
function $d() {
|
|
@@ -63169,7 +63191,7 @@ function q3(t) {
|
|
|
63169
63191
|
function _t(A) {
|
|
63170
63192
|
return alert("todo:WebPSamplerProcessPlane"), A.T;
|
|
63171
63193
|
}
|
|
63172
|
-
function
|
|
63194
|
+
function Gt(A, g) {
|
|
63173
63195
|
var b = A.T, B = g.ba.f.RGBA, E = B.eb, U = B.fb + A.ka * B.A, P = Vr[g.ba.S], F = A.y, L = A.O, V = A.f, oe = A.N, ye = A.ea, be = A.W, Ae = g.cc, Re = g.dc, Se = g.Mc, ae = g.Nc, ce = A.ka, Pe = A.ka + A.T, Ne = A.U, Fe = Ne + 1 >> 1;
|
|
63174
63196
|
for (ce == 0 ? P(F, L, null, null, V, oe, ye, be, V, oe, ye, be, E, U, null, null, Ne) : (P(g.ec, g.fc, F, L, Ae, Re, Se, ae, V, oe, ye, be, E, U - B.A, E, U, Ne), ++b); ce + 2 < Pe; ce += 2)
|
|
63175
63197
|
Ae = V, Re = oe, Se = ye, ae = be, oe += A.Rc, be += A.Rc, U += 2 * B.A, P(F, (L += 2 * A.fa) - A.fa, F, L, Ae, Re, Se, ae, V, oe, ye, be, E, U - B.A, E, U, Ne);
|
|
@@ -63183,22 +63205,22 @@ function q3(t) {
|
|
|
63183
63205
|
var L = [0], V = A.ka;
|
|
63184
63206
|
L[0] = A.T, A.Kb && (V == 0 ? --L[0] : (--V, E[0] -= A.width), A.j + A.ka + A.T == A.o && (L[0] = A.o - A.j - V));
|
|
63185
63207
|
var oe = g.eb;
|
|
63186
|
-
V = g.fb + V * g.A, A = pn(B, E[0], A.width, U, L, oe, V + (F ? 0 : 3), g.A), e(b == L), A &&
|
|
63208
|
+
V = g.fb + V * g.A, A = pn(B, E[0], A.width, U, L, oe, V + (F ? 0 : 3), g.A), e(b == L), A && Kt(P) && Hr(oe, V, F, U, L, g.A);
|
|
63187
63209
|
}
|
|
63188
63210
|
return 0;
|
|
63189
63211
|
}
|
|
63190
63212
|
function hs(A) {
|
|
63191
|
-
var g = A.ma, b = g.ba.S, B = 11 > b, E = b == xg || b == Cg || b == Bg || b == Z1 || b == 12 ||
|
|
63213
|
+
var g = A.ma, b = g.ba.S, B = 11 > b, E = b == xg || b == Cg || b == Bg || b == Z1 || b == 12 || Kt(b);
|
|
63192
63214
|
if (g.memory = null, g.Ib = null, g.Jb = null, g.Nd = null, !Ku(g.Oa, A, E ? 11 : 12))
|
|
63193
63215
|
return 0;
|
|
63194
|
-
if (E &&
|
|
63216
|
+
if (E && Kt(b) && Qe(), A.da)
|
|
63195
63217
|
alert("todo:use_scaling");
|
|
63196
63218
|
else {
|
|
63197
63219
|
if (B) {
|
|
63198
63220
|
if (g.Ib = _t, A.Kb) {
|
|
63199
63221
|
if (b = A.U + 1 >> 1, g.memory = i(A.U + 2 * b), g.memory == null)
|
|
63200
63222
|
return 0;
|
|
63201
|
-
g.ec = g.memory, g.fc = 0, g.cc = g.ec, g.dc = g.fc + A.U, g.Mc = g.cc, g.Nc = g.dc + b, g.Ib =
|
|
63223
|
+
g.ec = g.memory, g.fc = 0, g.cc = g.ec, g.dc = g.fc + A.U, g.Mc = g.cc, g.Nc = g.dc + b, g.Ib = Gt, Qe();
|
|
63202
63224
|
}
|
|
63203
63225
|
} else
|
|
63204
63226
|
alert("todo:EmitYUV");
|
|
@@ -63258,10 +63280,10 @@ function q3(t) {
|
|
|
63258
63280
|
var Se = oe, ae = ye, ce = L, Pe = F, Ne = (Ze = V).Ea;
|
|
63259
63281
|
Se == 0 && (J1(be, Ae, null, null, 1, ce, Pe), ot(be, Ae + 1, 0, 0, Ne - 1, ce, Pe + 1), Ae += Ne, Pe += Ne, ++Se);
|
|
63260
63282
|
for (var Fe = 1 << Ze.b, rt = Fe - 1, Xe = O(Ne, Ze.b), ht = Ze.K, Ze = Ze.w + (Se >> Ze.b) * Xe; Se < ae; ) {
|
|
63261
|
-
var
|
|
63283
|
+
var qt = ht, Xt = Ze, Qt = 1;
|
|
63262
63284
|
for (Yu(be, Ae, ce, Pe - Ne, 1, ce, Pe); Qt < Ne; ) {
|
|
63263
63285
|
var Dt = (Qt & ~rt) + Fe;
|
|
63264
|
-
Dt > Ne && (Dt = Ne), (0, qa[
|
|
63286
|
+
Dt > Ne && (Dt = Ne), (0, qa[qt[Xt++] >> 8 & 15])(be, Ae + +Qt, ce, Pe + Qt - Ne, Dt - Qt, ce, Pe + Qt), Qt = Dt;
|
|
63265
63287
|
}
|
|
63266
63288
|
Ae += Ne, Pe += Ne, ++Se & rt || (Ze += Xe);
|
|
63267
63289
|
}
|
|
@@ -63269,9 +63291,9 @@ function q3(t) {
|
|
|
63269
63291
|
break;
|
|
63270
63292
|
case 1:
|
|
63271
63293
|
for (Re = be, ae = Ae, Ne = (be = V.Ea) - (Pe = be & ~(ce = (Ae = 1 << V.b) - 1)), Se = O(be, V.b), Fe = V.K, V = V.w + (oe >> V.b) * Se; oe < ye; ) {
|
|
63272
|
-
for (rt = Fe, Xe = V, ht = new Q(), Ze = ae + Pe,
|
|
63294
|
+
for (rt = Fe, Xe = V, ht = new Q(), Ze = ae + Pe, qt = ae + be; ae < Ze; )
|
|
63273
63295
|
vt(rt[Xe++], ht), ol(ht, Re, ae, Ae, L, F), ae += Ae, F += Ae;
|
|
63274
|
-
ae <
|
|
63296
|
+
ae < qt && (vt(rt[Xe++], ht), ol(ht, Re, ae, Ne, L, F), ae += Ne, F += Ne), ++oe & ce || (V += Se);
|
|
63275
63297
|
}
|
|
63276
63298
|
break;
|
|
63277
63299
|
case 3:
|
|
@@ -63449,7 +63471,7 @@ function q3(t) {
|
|
|
63449
63471
|
}
|
|
63450
63472
|
function Lr() {
|
|
63451
63473
|
var A = new Y1();
|
|
63452
|
-
return A == null ? null : (A.a = 0, A.xb = R_, so("Predictor", "VP8LPredictors"), so("Predictor", "VP8LPredictors_C"), so("PredictorAdd", "VP8LPredictorsAdd"), so("PredictorAdd", "VP8LPredictorsAdd_C"), fg = ut, ol = st, dr = et, Qs = Zn, Va =
|
|
63474
|
+
return A == null ? null : (A.a = 0, A.xb = R_, so("Predictor", "VP8LPredictors"), so("Predictor", "VP8LPredictors_C"), so("PredictorAdd", "VP8LPredictorsAdd"), so("PredictorAdd", "VP8LPredictorsAdd_C"), fg = ut, ol = st, dr = et, Qs = Zn, Va = Mt, Go = ui, Wo = rn, z.VP8LMapColor32b = zc, z.VP8LMapColor8b = yg, A);
|
|
63453
63475
|
}
|
|
63454
63476
|
function lo(A, g, b, B, E) {
|
|
63455
63477
|
var U = 1, P = [A], F = [g], L = B.m, V = B.s, oe = null, ye = 0;
|
|
@@ -63469,14 +63491,14 @@ function q3(t) {
|
|
|
63469
63491
|
case 3:
|
|
63470
63492
|
var Ne, Fe = le(ae, 8) + 1, rt = 16 < Fe ? 0 : 4 < Fe ? 1 : 2 < Fe ? 2 : 3;
|
|
63471
63493
|
if (be[0] = O(ce.Ea, rt), ce.b = rt, Ne = Se = lo(Fe, 1, 0, Re, ce.K)) {
|
|
63472
|
-
var Xe, ht = Fe, Ze = ce,
|
|
63494
|
+
var Xe, ht = Fe, Ze = ce, qt = 1 << (8 >> Ze.b), Xt = i(qt);
|
|
63473
63495
|
if (Xt == null)
|
|
63474
63496
|
Ne = 0;
|
|
63475
63497
|
else {
|
|
63476
63498
|
var Qt = Ze.K[0], Dt = Ze.w;
|
|
63477
63499
|
for (Xt[0] = Ze.K[0][0], Xe = 1; Xe < 1 * ht; ++Xe)
|
|
63478
63500
|
Xt[Xe] = w(Qt[Dt + Xe], Xt[Xe - 1]);
|
|
63479
|
-
for (; Xe < 4 *
|
|
63501
|
+
for (; Xe < 4 * qt; ++Xe)
|
|
63480
63502
|
Xt[Xe] = 0;
|
|
63481
63503
|
Ze.K[0] = null, Ze.K[0] = Xt, Ne = 1;
|
|
63482
63504
|
}
|
|
@@ -63887,7 +63909,7 @@ function q3(t) {
|
|
|
63887
63909
|
for (Se = 0; Se < Pe.za; ++Se) {
|
|
63888
63910
|
var Ne = ce, Fe = Pe, rt = Fe.Ac, Xe = Fe.Bc + 4 * Se, ht = Fe.zc, Ze = Fe.ya[Fe.aa + Se];
|
|
63889
63911
|
if (Fe.Qa.Bb ? Ze.$b = _e(Ne, Fe.Pa.jb[0]) ? 2 + _e(Ne, Fe.Pa.jb[2]) : _e(Ne, Fe.Pa.jb[1]) : Ze.$b = 0, Fe.kc && (Ze.Ad = _e(Ne, Fe.Bd)), Ze.Za = !_e(Ne, 145) + 0, Ze.Za) {
|
|
63890
|
-
var
|
|
63912
|
+
var qt = Ze.Ob, Xt = 0;
|
|
63891
63913
|
for (Fe = 0; 4 > Fe; ++Fe) {
|
|
63892
63914
|
var Qt, Dt = ht[0 + Fe];
|
|
63893
63915
|
for (Qt = 0; 4 > Qt; ++Qt) {
|
|
@@ -63896,7 +63918,7 @@ function q3(t) {
|
|
|
63896
63918
|
on = F_[2 * on + _e(Ne, Dt[on])];
|
|
63897
63919
|
Dt = -on, rt[Xe + Qt] = Dt;
|
|
63898
63920
|
}
|
|
63899
|
-
s(
|
|
63921
|
+
s(qt, Xt, rt, Xe, 4), Xt += 4, ht[0 + Fe] = Dt;
|
|
63900
63922
|
}
|
|
63901
63923
|
} else
|
|
63902
63924
|
Dt = _e(Ne, 156) ? _e(Ne, 128) ? 1 : 3 : _e(Ne, 163) ? 2 : 0, Ze.Ob[0] = Dt, r(rt, Xe, Dt, 4), r(ht, 0, Dt, 4);
|
|
@@ -63909,17 +63931,17 @@ function q3(t) {
|
|
|
63909
63931
|
Ne.la = rt.la = 0, Se.Za || (Ne.Na = rt.Na = 0), Se.Hc = 0, Se.Gc = 0, Se.ia = 0;
|
|
63910
63932
|
else {
|
|
63911
63933
|
var tn, St;
|
|
63912
|
-
if (Ne = rt, rt = Pe, Xe = ce.Pa.Xc, ht = ce.ya[ce.aa + ce.ja], Ze = ce.pb[ht.$b], Fe = ht.ad,
|
|
63934
|
+
if (Ne = rt, rt = Pe, Xe = ce.Pa.Xc, ht = ce.ya[ce.aa + ce.ja], Ze = ce.pb[ht.$b], Fe = ht.ad, qt = 0, Xt = ce.rb[ce.sb - 1], Dt = Qt = 0, r(Fe, qt, 0, 384), ht.Za)
|
|
63913
63935
|
var Vn = 0, lr = Xe[3];
|
|
63914
63936
|
else {
|
|
63915
63937
|
on = i(16);
|
|
63916
63938
|
var Kn = Ne.Na + Xt.Na;
|
|
63917
63939
|
if (Kn = ep(rt, Xe[1], Kn, Ze.Eb, 0, on, 0), Ne.Na = Xt.Na = (0 < Kn) + 0, 1 < Kn)
|
|
63918
|
-
Hc(on, 0, Fe,
|
|
63940
|
+
Hc(on, 0, Fe, qt);
|
|
63919
63941
|
else {
|
|
63920
63942
|
var cr = on[0] + 3 >> 3;
|
|
63921
63943
|
for (on = 0; 256 > on; on += 16)
|
|
63922
|
-
Fe[
|
|
63944
|
+
Fe[qt + on] = cr;
|
|
63923
63945
|
}
|
|
63924
63946
|
Vn = 1, lr = Xe[0];
|
|
63925
63947
|
}
|
|
@@ -63927,13 +63949,13 @@ function q3(t) {
|
|
|
63927
63949
|
for (on = 0; 4 > on; ++on) {
|
|
63928
63950
|
var Cr = 1 & xr;
|
|
63929
63951
|
for (cr = St = 0; 4 > cr; ++cr)
|
|
63930
|
-
Zt = Zt >> 1 | (Cr = (Kn = ep(rt, lr, Kn = Cr + (1 & Zt), Ze.Sc, Vn, Fe,
|
|
63952
|
+
Zt = Zt >> 1 | (Cr = (Kn = ep(rt, lr, Kn = Cr + (1 & Zt), Ze.Sc, Vn, Fe, qt)) > Vn) << 7, St = St << 2 | (3 < Kn ? 3 : 1 < Kn ? 2 : Fe[qt + 0] != 0), qt += 16;
|
|
63931
63953
|
Zt >>= 4, xr = xr >> 1 | Cr << 7, Qt = (Qt << 8 | St) >>> 0;
|
|
63932
63954
|
}
|
|
63933
63955
|
for (lr = Zt, Vn = xr >> 4, tn = 0; 4 > tn; tn += 2) {
|
|
63934
63956
|
for (St = 0, Zt = Ne.la >> 4 + tn, xr = Xt.la >> 4 + tn, on = 0; 2 > on; ++on) {
|
|
63935
63957
|
for (Cr = 1 & xr, cr = 0; 2 > cr; ++cr)
|
|
63936
|
-
Kn = Cr + (1 & Zt), Zt = Zt >> 1 | (Cr = 0 < (Kn = ep(rt, Xe[2], Kn, Ze.Qc, 0, Fe,
|
|
63958
|
+
Kn = Cr + (1 & Zt), Zt = Zt >> 1 | (Cr = 0 < (Kn = ep(rt, Xe[2], Kn, Ze.Qc, 0, Fe, qt))) << 3, St = St << 2 | (3 < Kn ? 3 : 1 < Kn ? 2 : Fe[qt + 0] != 0), qt += 16;
|
|
63937
63959
|
Zt >>= 2, xr = xr >> 1 | Cr << 5;
|
|
63938
63960
|
}
|
|
63939
63961
|
Dt |= St << 4 * tn, lr |= Zt << 4 << tn, Vn |= (240 & xr) << tn;
|
|
@@ -63945,7 +63967,7 @@ function q3(t) {
|
|
|
63945
63967
|
}
|
|
63946
63968
|
if (ju(Ae), ce = Re, Pe = 1, Se = (ae = Ae).D, Ne = 0 < ae.L && ae.M >= ae.zb && ae.M <= ae.Va, ae.Aa == 0)
|
|
63947
63969
|
e: {
|
|
63948
|
-
if (Se.M = ae.M, Se.uc = Ne, Vu(ae, Se), Pe = 1, Se = (St = ae.D).Nb, Ne = (Dt = Ig[ae.L]) * ae.R, rt = Dt / 2 * ae.B, on = 16 * Se * ae.R, cr = 8 * Se * ae.B, Xe = ae.sa, ht = ae.ta - Ne + on, Ze = ae.qa, Fe = ae.ra - rt + cr,
|
|
63970
|
+
if (Se.M = ae.M, Se.uc = Ne, Vu(ae, Se), Pe = 1, Se = (St = ae.D).Nb, Ne = (Dt = Ig[ae.L]) * ae.R, rt = Dt / 2 * ae.B, on = 16 * Se * ae.R, cr = 8 * Se * ae.B, Xe = ae.sa, ht = ae.ta - Ne + on, Ze = ae.qa, Fe = ae.ra - rt + cr, qt = ae.Ha, Xt = ae.Ia - rt + cr, xr = (Zt = St.M) == 0, Qt = Zt >= ae.Va - 1, ae.Aa == 2 && Vu(ae, St), St.uc)
|
|
63949
63971
|
for (Cr = (Kn = ae).D.M, e(Kn.D.uc), St = Kn.yb; St < Kn.Hb; ++St) {
|
|
63950
63972
|
Vn = St, lr = Cr;
|
|
63951
63973
|
var os = (fs = (En = Kn).D).Nb;
|
|
@@ -63960,13 +63982,13 @@ function q3(t) {
|
|
|
63960
63982
|
}
|
|
63961
63983
|
}
|
|
63962
63984
|
if (ae.ia && alert("todo:DitherRow"), ce.put != null) {
|
|
63963
|
-
if (St = 16 * Zt, Zt = 16 * (Zt + 1), xr ? (ce.y = ae.sa, ce.O = ae.ta + on, ce.f = ae.qa, ce.N = ae.ra + cr, ce.ea = ae.Ha, ce.W = ae.Ia + cr) : (St -= Dt, ce.y = Xe, ce.O = ht, ce.f = Ze, ce.N = Fe, ce.ea =
|
|
63985
|
+
if (St = 16 * Zt, Zt = 16 * (Zt + 1), xr ? (ce.y = ae.sa, ce.O = ae.ta + on, ce.f = ae.qa, ce.N = ae.ra + cr, ce.ea = ae.Ha, ce.W = ae.Ia + cr) : (St -= Dt, ce.y = Xe, ce.O = ht, ce.f = Ze, ce.N = Fe, ce.ea = qt, ce.W = Xt), Qt || (Zt -= Dt), Zt > ce.o && (Zt = ce.o), ce.F = null, ce.J = null, ae.Fa != null && 0 < ae.Fa.length && St < Zt && (ce.J = Hu(ae, ce, St, Zt - St), ce.F = ae.mb, ce.F == null && ce.F.length == 0)) {
|
|
63964
63986
|
Pe = Tn(ae, 3, "Could not decode alpha data.");
|
|
63965
63987
|
break e;
|
|
63966
63988
|
}
|
|
63967
63989
|
St < ce.j && (Dt = ce.j - St, St = ce.j, e(!(1 & Dt)), ce.O += ae.R * Dt, ce.N += ae.B * (Dt >> 1), ce.W += ae.B * (Dt >> 1), ce.F != null && (ce.J += ce.width * Dt)), St < Zt && (ce.O += ce.v, ce.N += ce.v >> 1, ce.W += ce.v >> 1, ce.F != null && (ce.J += ce.v), ce.ka = St - ce.j, ce.U = ce.va - ce.v, ce.T = Zt - St, Pe = ce.put(ce));
|
|
63968
63990
|
}
|
|
63969
|
-
Se + 1 != ae.Ic || Qt || (s(ae.sa, ae.ta - Ne, Xe, ht + 16 * ae.R, Ne), s(ae.qa, ae.ra - rt, Ze, Fe + 8 * ae.B, rt), s(ae.Ha, ae.Ia - rt,
|
|
63991
|
+
Se + 1 != ae.Ic || Qt || (s(ae.sa, ae.ta - Ne, Xe, ht + 16 * ae.R, Ne), s(ae.qa, ae.ra - rt, Ze, Fe + 8 * ae.B, rt), s(ae.Ha, ae.Ia - rt, qt, Xt + 8 * ae.B, rt));
|
|
63970
63992
|
}
|
|
63971
63993
|
if (!Pe)
|
|
63972
63994
|
return Tn(Ae, 6, "Output aborted.");
|
|
@@ -64425,8 +64447,8 @@ function q3(t) {
|
|
|
64425
64447
|
e(B != null);
|
|
64426
64448
|
var Ze = 3 * Xe + ht + 131074 >> 2;
|
|
64427
64449
|
for (g(B[E + 0], 255 & Ze, Ze >> 16, Se, ae), U != null && (Ze = 3 * ht + Xe + 131074 >> 2, g(U[P + 0], 255 & Ze, Ze >> 16, ce, Pe)), Fe = 1; Fe <= rt; ++Fe) {
|
|
64428
|
-
var
|
|
64429
|
-
Ze = Dt + Xe >> 1, Xe = (Qt = Qt + 2 * (Xe + Xt) >> 3) +
|
|
64450
|
+
var qt = F[L + Fe] | V[oe + Fe] << 16, Xt = ye[be + Fe] | Ae[Re + Fe] << 16, Qt = Xe + qt + ht + Xt + 524296, Dt = Qt + 2 * (qt + ht) >> 3;
|
|
64451
|
+
Ze = Dt + Xe >> 1, Xe = (Qt = Qt + 2 * (Xe + Xt) >> 3) + qt >> 1, g(B[E + 2 * Fe - 1], 255 & Ze, Ze >> 16, Se, ae + (2 * Fe - 1) * b), g(B[E + 2 * Fe - 0], 255 & Xe, Xe >> 16, Se, ae + (2 * Fe - 0) * b), U != null && (Ze = Qt + ht >> 1, Xe = Dt + Xt >> 1, g(U[P + 2 * Fe - 1], 255 & Ze, Ze >> 16, ce, Pe + (2 * Fe - 1) * b), g(U[P + 2 * Fe + 0], 255 & Xe, Xe >> 16, ce, Pe + (2 * Fe + 0) * b)), Xe = qt, ht = Xt;
|
|
64430
64452
|
}
|
|
64431
64453
|
1 & Ne || (Ze = 3 * Xe + ht + 131074 >> 2, g(B[E + Ne - 1], 255 & Ze, Ze >> 16, Se, ae + (Ne - 1) * b), U != null && (Ze = 3 * ht + Xe + 131074 >> 2, g(U[P + Ne - 1], 255 & Ze, Ze >> 16, ce, Pe + (Ne - 1) * b)));
|
|
64432
64454
|
};
|
|
@@ -64596,9 +64618,9 @@ function q3(t) {
|
|
|
64596
64618
|
Xe = A, ae = g, ce = b;
|
|
64597
64619
|
var Ze = Ae.gb;
|
|
64598
64620
|
Ne = Ae.na, Fe = Ae.P, rt = Ae.Sa, ht = 22, e(Xe != null), e(ce != null), Pe = ae[0];
|
|
64599
|
-
var
|
|
64621
|
+
var qt = ce[0];
|
|
64600
64622
|
for (e(Ne != null), e(rt != null), Ne[0] = null, Fe[0] = null, rt[0] = 0; ; ) {
|
|
64601
|
-
if (ae[0] = Pe, ce[0] =
|
|
64623
|
+
if (ae[0] = Pe, ce[0] = qt, 8 > qt) {
|
|
64602
64624
|
ae = 7;
|
|
64603
64625
|
break e;
|
|
64604
64626
|
}
|
|
@@ -64616,11 +64638,11 @@ function q3(t) {
|
|
|
64616
64638
|
ae = 0;
|
|
64617
64639
|
break e;
|
|
64618
64640
|
}
|
|
64619
|
-
if (
|
|
64641
|
+
if (qt[0] < Qt) {
|
|
64620
64642
|
ae = 7;
|
|
64621
64643
|
break e;
|
|
64622
64644
|
}
|
|
64623
|
-
n(Xe, Pe, "ALPH") || (Ne[0] = Xe, Fe[0] = Pe + 8, rt[0] = Xt), Pe += Qt,
|
|
64645
|
+
n(Xe, Pe, "ALPH") || (Ne[0] = Xe, Fe[0] = Pe + 8, rt[0] = Xt), Pe += Qt, qt -= Qt;
|
|
64624
64646
|
}
|
|
64625
64647
|
}
|
|
64626
64648
|
if (b = b[0], Ae.na = Ae.na[0], Ae.P = Ae.P[0], Ae.Sa = Ae.Sa[0], ae != 0)
|
|
@@ -64839,7 +64861,7 @@ function q3(t) {
|
|
|
64839
64861
|
}
|
|
64840
64862
|
if (!tl(B, b.width) || b.da)
|
|
64841
64863
|
break n;
|
|
64842
|
-
if ((b.da ||
|
|
64864
|
+
if ((b.da || Kt(B.ca.S)) && he(), 11 > B.ca.S || (alert("todo:WebPInitConvertARGBToYUV"), B.ca.f.kb.F != null && he()), B.Pb && 0 < B.s.ua && B.s.vb.X == null && !At(B.s.vb, B.s.Wa.Xa)) {
|
|
64843
64865
|
B.a = 1;
|
|
64844
64866
|
break n;
|
|
64845
64867
|
}
|
|
@@ -65362,7 +65384,7 @@ function(t) {
|
|
|
65362
65384
|
*/
|
|
65363
65385
|
function(t) {
|
|
65364
65386
|
function e() {
|
|
65365
|
-
return (yt.canvg ? Promise.resolve(yt.canvg) : import("./index.es-
|
|
65387
|
+
return (yt.canvg ? Promise.resolve(yt.canvg) : import("./index.es-10848758.js")).catch(function(n) {
|
|
65366
65388
|
return Promise.reject(new Error("Could not load canvg: " + n));
|
|
65367
65389
|
}).then(function(n) {
|
|
65368
65390
|
return n.default ? n.default : n;
|
|
@@ -68047,7 +68069,7 @@ let wh = class extends Ve {
|
|
|
68047
68069
|
style="height: 18px;"
|
|
68048
68070
|
/>
|
|
68049
68071
|
</div>
|
|
68050
|
-
` :
|
|
68072
|
+
` : Yt}
|
|
68051
68073
|
${this.brands.map((t) => this._renderBrand(t))}
|
|
68052
68074
|
</div>
|
|
68053
68075
|
`;
|
|
@@ -70734,7 +70756,7 @@ let Vi = class extends Ve {
|
|
|
70734
70756
|
let e = ln.messages.find((n) => n.status === this.statusMessage);
|
|
70735
70757
|
if (this.isShowCardPayment = !1, this.statusMessage !== "WS_DISCONNECTED") {
|
|
70736
70758
|
const n = this.state.statePaymentRequest, s = n.transactions[0].auth_data.code;
|
|
70737
|
-
n.status ===
|
|
70759
|
+
n.status === Jt.FAILURE_PROCESSED && ((t = n.transactions[0].auth_data) != null && t.code) && (e = Xl(s), Ge(e.status, s), Tr(n) && (e = Xl(`rejected${Ph(n)}`), Ge(e.status, s))), n.status === Jt.SUCCESS_PROCESSED && (e = cc(n.payment_type), Ge(e.status, "")), n.status === Jt.BLOCKED && (e = E0(n.payment_type), Ge(e.status, s));
|
|
70738
70760
|
}
|
|
70739
70761
|
e && (this.status.title = e.title, this.status.subtitle = e.subtitle, this.status.icon = e.icon, this.status.status = e.status, this.status.name = e.name, this.status.returnButton = e.returnButton, this.status.nameReturnButton = e.nameReturnButton), this.state.page = ct.STATUS, this.requestUpdate(), this.routerState(), this.state.isActiveWs = !1;
|
|
70740
70762
|
}
|
|
@@ -72114,7 +72136,7 @@ let Uo = class t extends Ve {
|
|
|
72114
72136
|
return de(this, null, function* () {
|
|
72115
72137
|
try {
|
|
72116
72138
|
const e = yield Xs(this.state.statePaymentRequest.id);
|
|
72117
|
-
if (this.state.statePaymentRequest = e.response, e.response.status ===
|
|
72139
|
+
if (this.state.statePaymentRequest = e.response, e.response.status === Jt.SUCCESS_PROCESSED) {
|
|
72118
72140
|
let n = ln.messages.find((s) => s.status === e.response.status);
|
|
72119
72141
|
n = cc(e.response.payment_type), Ge(n.status, ""), n && (this.status.title = n.title, this.status.subtitle = n.subtitle, this.status.icon = n.icon, this.status.status = n.status, this.status.name = n.name, this.status.returnButton = n.returnButton, this.status.nameReturnButton = n.nameReturnButton, this.state.isActiveWs = !1, this.state.isExtendedWs = !1, this.createEvent("button-pushed", ct.STATUS));
|
|
72120
72142
|
return;
|