@tapni/auth 0.0.54 → 0.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/TapniAuth.es.js +189 -197
- package/dist/TapniAuth.umd.js +3 -3
- package/package.json +1 -1
- package/src/install.js +3 -7
- package/src/mixins/auth.mixin.js +11 -15
- package/src/services/Api.js +58 -50
- package/src/services/AuthService.js +22 -20
- package/src/services/CompanyService.js +5 -4
- package/src/services/DeviceService.js +4 -3
- package/src/services/UserService.js +12 -11
- package/src/views/Callback.vue +0 -1
- package/.vscode/extensions.json +0 -3
package/dist/TapniAuth.es.js
CHANGED
|
@@ -13,12 +13,11 @@ import { Browser as be } from "@capacitor/browser";
|
|
|
13
13
|
import nt from "qr-code-styling";
|
|
14
14
|
import { sanitizeUrl as tt } from "@braintree/sanitize-url";
|
|
15
15
|
import "@tapni/capacitor-reactive-localstorage-vue3";
|
|
16
|
-
const at = "0.0.
|
|
16
|
+
const at = "0.0.51", z = (e, t = !1) => {
|
|
17
17
|
const r = at;
|
|
18
18
|
let u = "https://api.tapni.co/v1/";
|
|
19
|
-
|
|
20
|
-
l
|
|
21
|
-
let d = Be.create({
|
|
19
|
+
location.hostname.includes("dev.") && (u = "https://api-dev.tapni.co/v1/");
|
|
20
|
+
let l = Be.create({
|
|
22
21
|
baseURL: u,
|
|
23
22
|
headers: {
|
|
24
23
|
...e ? { Authorization: `Bearer ${e.token}` } : {},
|
|
@@ -26,29 +25,29 @@ const at = "0.0.54", z = (e, t = !1) => {
|
|
|
26
25
|
"X-Client-Version": r.version
|
|
27
26
|
}
|
|
28
27
|
});
|
|
29
|
-
return
|
|
30
|
-
if (["post", "put", "delete"].includes(
|
|
31
|
-
...
|
|
28
|
+
return l.interceptors.request.use(async function(d) {
|
|
29
|
+
if (["post", "put", "delete"].includes(d.method.toLowerCase()) ? d.data = {
|
|
30
|
+
...d.data,
|
|
32
31
|
...e ? {
|
|
33
32
|
lang: e.appLanguage,
|
|
34
33
|
realm: e.realm || "app"
|
|
35
34
|
} : {}
|
|
36
|
-
} :
|
|
37
|
-
...
|
|
35
|
+
} : d.method.toLowerCase() === "get" && (d.params = {
|
|
36
|
+
...d.params,
|
|
38
37
|
...e ? {
|
|
39
38
|
lang: e.appLanguage,
|
|
40
39
|
realm: e.realm || "app"
|
|
41
40
|
} : {}
|
|
42
41
|
}), e && e.token && !t) {
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
45
|
-
return
|
|
46
|
-
...
|
|
42
|
+
const h = Je(e.token);
|
|
43
|
+
if (h.exp - 30 < Math.floor(Date.now() / 1e3))
|
|
44
|
+
return D.methods.refreshTokenAction(h).then(() => (d.headers = {
|
|
45
|
+
...d.headers,
|
|
47
46
|
Authorization: `Bearer ${e.token}`
|
|
48
|
-
},
|
|
47
|
+
}, d));
|
|
49
48
|
}
|
|
50
|
-
return
|
|
51
|
-
}),
|
|
49
|
+
return d;
|
|
50
|
+
}), l;
|
|
52
51
|
}, re = {
|
|
53
52
|
getMe() {
|
|
54
53
|
return z(storage).get("/users/me");
|
|
@@ -4329,7 +4328,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
4329
4328
|
}
|
|
4330
4329
|
};
|
|
4331
4330
|
var rt = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
4332
|
-
const
|
|
4331
|
+
const D = {
|
|
4333
4332
|
mixins: [ot],
|
|
4334
4333
|
data() {
|
|
4335
4334
|
return {
|
|
@@ -4389,9 +4388,6 @@ const O = {
|
|
|
4389
4388
|
this.$route.query.redirect_uri && (this.redirect_uri = this.$route.query.redirect_uri), this.$route.query.display && (this.display = this.$route.query.display), this.$route.query.state && (this.state = this.$route.query.state), this.$route.query.response_type && (this.response_type = this.$route.query.response_type), this.$route.query.realm && (this.$storage.realm = this.$route.query.realm), v.$on("updateLang", this.updateLang), rt.NODE_ENV === "development" && (this.allowedOrigins.push("http://localhost:8082"), this.allowedOrigins.push("http://localhost:7777"), this.allowedOrigins.push("http://localhost:5173"));
|
|
4390
4389
|
},
|
|
4391
4390
|
methods: {
|
|
4392
|
-
apiRootGet() {
|
|
4393
|
-
return this.API_ROOT;
|
|
4394
|
-
},
|
|
4395
4391
|
errorHandler(e) {
|
|
4396
4392
|
if (e && e.response && e.response.data && e.response.data.error) {
|
|
4397
4393
|
if (e.response.data.error === "ACCESS_DENIED" || e.response.data.error === "TOKEN_EXPIRED")
|
|
@@ -4649,7 +4645,7 @@ const O = {
|
|
|
4649
4645
|
return r;
|
|
4650
4646
|
}, st = {
|
|
4651
4647
|
name: "AuthWelcome",
|
|
4652
|
-
mixins: [
|
|
4648
|
+
mixins: [D],
|
|
4653
4649
|
data() {
|
|
4654
4650
|
return {
|
|
4655
4651
|
loading: !0
|
|
@@ -4681,7 +4677,7 @@ const O = {
|
|
|
4681
4677
|
ft
|
|
4682
4678
|
];
|
|
4683
4679
|
function bt(e, t, r, u, l, d) {
|
|
4684
|
-
const
|
|
4680
|
+
const h = de("router-link");
|
|
4685
4681
|
return f(), k("div", ct, [
|
|
4686
4682
|
c("video", {
|
|
4687
4683
|
id: "tapniVideo",
|
|
@@ -4696,7 +4692,7 @@ function bt(e, t, r, u, l, d) {
|
|
|
4696
4692
|
c("p", _t, y(e.ssoLang[this.appLanguage].welcome_p1), 1),
|
|
4697
4693
|
T("", !0),
|
|
4698
4694
|
T("", !0),
|
|
4699
|
-
j(
|
|
4695
|
+
j(h, {
|
|
4700
4696
|
to: "register",
|
|
4701
4697
|
exact: "",
|
|
4702
4698
|
class: "button-center button button-90 google-button bg-tapni-grey pointer"
|
|
@@ -4707,7 +4703,7 @@ function bt(e, t, r, u, l, d) {
|
|
|
4707
4703
|
_: 1
|
|
4708
4704
|
}),
|
|
4709
4705
|
c("div", mt, [
|
|
4710
|
-
j(
|
|
4706
|
+
j(h, { to: "/login" }, {
|
|
4711
4707
|
default: G(() => [
|
|
4712
4708
|
I(y(e.ssoLang[this.appLanguage].already_registered) + "? ", 1),
|
|
4713
4709
|
c("b", null, y(e.ssoLang[this.appLanguage].sign_in), 1)
|
|
@@ -4868,7 +4864,7 @@ const ve = {
|
|
|
4868
4864
|
},
|
|
4869
4865
|
methods: {
|
|
4870
4866
|
async microsoftLogin(e, t = {}) {
|
|
4871
|
-
var l, d,
|
|
4867
|
+
var l, d, h;
|
|
4872
4868
|
e === "sso" ? this.microsoftSSOLoad = !0 : this.microsoftLoad = !0, Object.keys(t).length || (t = ((d = (l = this.ssoCompany.sso) == null ? void 0 : l.azure) == null ? void 0 : d.sso) || {});
|
|
4873
4869
|
const [r, u] = await L(
|
|
4874
4870
|
et.login({
|
|
@@ -4891,7 +4887,7 @@ const ve = {
|
|
|
4891
4887
|
return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(m);
|
|
4892
4888
|
if (b.data.success) {
|
|
4893
4889
|
if (this.display === "popup")
|
|
4894
|
-
return (
|
|
4890
|
+
return (h = window.parent) == null ? void 0 : h.postMessage(
|
|
4895
4891
|
{ code: b.data.auth_code, state: this.$route.query.state },
|
|
4896
4892
|
"*"
|
|
4897
4893
|
);
|
|
@@ -4921,8 +4917,8 @@ const ve = {
|
|
|
4921
4917
|
return null;
|
|
4922
4918
|
},
|
|
4923
4919
|
compareLangKeys() {
|
|
4924
|
-
const e = Object.keys(en.default.state), t = Object.keys(nn.default.state), r = Object.keys(tn.default.state), u = Object.keys(cn.default.state), l = Object.keys(on.default.state), d = Object.keys(an.default.state),
|
|
4925
|
-
console.log("In en but not in de", e.filter((b) => !t.includes(b))), console.log("In de but not in en", t.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in es", e.filter((b) => !r.includes(b))), console.log("In es but not in en", r.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in kr", e.filter((b) => !u.includes(b))), console.log("In kr but not in en", u.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in it", e.filter((b) => !l.includes(b))), console.log("In it but not in en", l.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in fr", e.filter((b) => !d.includes(b))), console.log("In fr but not in en", d.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in sr", e.filter((b) => !
|
|
4920
|
+
const e = Object.keys(en.default.state), t = Object.keys(nn.default.state), r = Object.keys(tn.default.state), u = Object.keys(cn.default.state), l = Object.keys(on.default.state), d = Object.keys(an.default.state), h = Object.keys(rn.default.state), m = Object.keys(sn.default.state);
|
|
4921
|
+
console.log("In en but not in de", e.filter((b) => !t.includes(b))), console.log("In de but not in en", t.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in es", e.filter((b) => !r.includes(b))), console.log("In es but not in en", r.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in kr", e.filter((b) => !u.includes(b))), console.log("In kr but not in en", u.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in it", e.filter((b) => !l.includes(b))), console.log("In it but not in en", l.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in fr", e.filter((b) => !d.includes(b))), console.log("In fr but not in en", d.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in sr", e.filter((b) => !h.includes(b))), console.log("In sr but not in en", h.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in tr", e.filter((b) => !m.includes(b))), console.log("In tr but not in en", m.filter((b) => !e.includes(b))), console.log();
|
|
4926
4922
|
},
|
|
4927
4923
|
base64ImageToBlob(e) {
|
|
4928
4924
|
const t = e.split(";base64,"), r = t[0].split(":")[1], u = window.atob(t[1]), l = new Uint8Array(u.length);
|
|
@@ -4939,9 +4935,9 @@ const ve = {
|
|
|
4939
4935
|
});
|
|
4940
4936
|
},
|
|
4941
4937
|
base64toFile(e, t) {
|
|
4942
|
-
for (var r = e.split(","), u = r[0].match(/:(.*?);/)[1], l = atob(r[1]), d = l.length,
|
|
4943
|
-
|
|
4944
|
-
return new File([
|
|
4938
|
+
for (var r = e.split(","), u = r[0].match(/:(.*?);/)[1], l = atob(r[1]), d = l.length, h = new Uint8Array(d); d--; )
|
|
4939
|
+
h[d] = l.charCodeAt(d);
|
|
4940
|
+
return new File([h], t, { type: u });
|
|
4945
4941
|
},
|
|
4946
4942
|
fileToBase64(e) {
|
|
4947
4943
|
new Promise((t, r) => {
|
|
@@ -4956,8 +4952,8 @@ const ve = {
|
|
|
4956
4952
|
cropCardScan(e, t) {
|
|
4957
4953
|
const r = new window.Image(), u = document.createElement("canvas"), l = u.getContext("2d");
|
|
4958
4954
|
r.src = "data:image/jpeg;base64," + e, r.onload = () => {
|
|
4959
|
-
const d = r.width,
|
|
4960
|
-
u.width = C, u.height = p, l.drawImage(r, m, b, d,
|
|
4955
|
+
const d = r.width, h = r.width / 1.65, m = 0, b = r.height / 2 - h / 2, C = d, p = h;
|
|
4956
|
+
u.width = C, u.height = p, l.drawImage(r, m, b, d, h, 0, 0, C, p);
|
|
4961
4957
|
const x = u.toDataURL();
|
|
4962
4958
|
return t(x), x;
|
|
4963
4959
|
};
|
|
@@ -4987,8 +4983,8 @@ const ve = {
|
|
|
4987
4983
|
r = r.replace(/ /g, "+");
|
|
4988
4984
|
const l = new TextEncoder(), d = new TextDecoder();
|
|
4989
4985
|
e = l.encode(e), t = l.encode(t), r = u(r, storage);
|
|
4990
|
-
const
|
|
4991
|
-
let m = await window.crypto.subtle.decrypt({ name: "AES-CBC", iv: t },
|
|
4986
|
+
const h = await window.crypto.subtle.importKey("raw", e, "AES-CBC", !0, ["encrypt", "decrypt"]);
|
|
4987
|
+
let m = await window.crypto.subtle.decrypt({ name: "AES-CBC", iv: t }, h, r);
|
|
4992
4988
|
return m = d.decode(m), m = m.replace(/ /g, "+"), m = atob(m), m;
|
|
4993
4989
|
} catch (u) {
|
|
4994
4990
|
console.log(u);
|
|
@@ -5031,9 +5027,9 @@ const ve = {
|
|
|
5031
5027
|
const t = me.getPlatform() || "web";
|
|
5032
5028
|
let r = btoa("domain=" + e.domain + "&client_id=" + e.clientID + "&platform=" + t + "&rand=" + le.generateRandomString(28)), u = le.generateRandomString(28);
|
|
5033
5029
|
localStorage.setItem("pkce_code_verifier", u);
|
|
5034
|
-
let l = await le.pkceChallengeFromVerifier(u), d = e.domain + "/v1/authorize",
|
|
5035
|
-
this.isNative ?
|
|
5036
|
-
let m = d + "?response_type=code&client_id=" + encodeURIComponent(e.clientID) + "&state=" + encodeURIComponent(r) + "&scope=" + encodeURIComponent("openid email profile") + "&redirect_uri=" + encodeURIComponent(
|
|
5030
|
+
let l = await le.pkceChallengeFromVerifier(u), d = e.domain + "/v1/authorize", h;
|
|
5031
|
+
this.isNative ? h = "tapni://t.link/callback/okta" : h = location.origin + "/callback/okta";
|
|
5032
|
+
let m = d + "?response_type=code&client_id=" + encodeURIComponent(e.clientID) + "&state=" + encodeURIComponent(r) + "&scope=" + encodeURIComponent("openid email profile") + "&redirect_uri=" + encodeURIComponent(h) + "&code_challenge=" + encodeURIComponent(l) + "&code_challenge_method=S256", b = this, C;
|
|
5037
5033
|
window.addEventListener("message", async (p) => {
|
|
5038
5034
|
if (!this.allowedOrigins.includes(p.origin))
|
|
5039
5035
|
return console.log("Origin is not allowed!");
|
|
@@ -5044,8 +5040,8 @@ const ve = {
|
|
|
5044
5040
|
let e = this.$route.query.code, t, r, u, l, d = { type: "okta" };
|
|
5045
5041
|
if (e && (d.code = e), this.$route.query.state) {
|
|
5046
5042
|
t = this.$route.query.state, t = atob(t);
|
|
5047
|
-
const
|
|
5048
|
-
r =
|
|
5043
|
+
const h = new URLSearchParams(t);
|
|
5044
|
+
r = h.get("client_id"), u = h.get("domain"), l = h.get("platform");
|
|
5049
5045
|
}
|
|
5050
5046
|
window.opener ? (window.opener.postMessage(d, location.origin), window.close()) : (this.isNative && this.isIOS && await be.close(), v.$emit("ssoEvent", { name: "setLoading", data: !0 }), e && r && u && await this.exchangeCode({ code: e, clientID: r, domain: u, platform: l }), localStorage.removeItem("pkce_code_verifier"), v.$emit("ssoEvent", { name: "setLoading", data: !1 }));
|
|
5051
5047
|
}
|
|
@@ -5077,10 +5073,10 @@ function Lt(e, t, r) {
|
|
|
5077
5073
|
return (t + r) * 3 / 4 - r;
|
|
5078
5074
|
}
|
|
5079
5075
|
function Ct(e) {
|
|
5080
|
-
var t, r = gn(e), u = r[0], l = r[1], d = new yt(Lt(e, u, l)),
|
|
5076
|
+
var t, r = gn(e), u = r[0], l = r[1], d = new yt(Lt(e, u, l)), h = 0, m = l > 0 ? u - 4 : u, b;
|
|
5081
5077
|
for (b = 0; b < m; b += 4)
|
|
5082
|
-
t = V[e.charCodeAt(b)] << 18 | V[e.charCodeAt(b + 1)] << 12 | V[e.charCodeAt(b + 2)] << 6 | V[e.charCodeAt(b + 3)], d[
|
|
5083
|
-
return l === 2 && (t = V[e.charCodeAt(b)] << 2 | V[e.charCodeAt(b + 1)] >> 4, d[
|
|
5078
|
+
t = V[e.charCodeAt(b)] << 18 | V[e.charCodeAt(b + 1)] << 12 | V[e.charCodeAt(b + 2)] << 6 | V[e.charCodeAt(b + 3)], d[h++] = t >> 16 & 255, d[h++] = t >> 8 & 255, d[h++] = t & 255;
|
|
5079
|
+
return l === 2 && (t = V[e.charCodeAt(b)] << 2 | V[e.charCodeAt(b + 1)] >> 4, d[h++] = t & 255), l === 1 && (t = V[e.charCodeAt(b)] << 10 | V[e.charCodeAt(b + 1)] << 4 | V[e.charCodeAt(b + 2)] >> 2, d[h++] = t >> 8 & 255, d[h++] = t & 255), d;
|
|
5084
5080
|
}
|
|
5085
5081
|
function St(e) {
|
|
5086
5082
|
return Q[e >> 18 & 63] + Q[e >> 12 & 63] + Q[e >> 6 & 63] + Q[e & 63];
|
|
@@ -5091,8 +5087,8 @@ function Tt(e, t, r) {
|
|
|
5091
5087
|
return l.join("");
|
|
5092
5088
|
}
|
|
5093
5089
|
function Et(e) {
|
|
5094
|
-
for (var t, r = e.length, u = r % 3, l = [], d = 16383,
|
|
5095
|
-
l.push(Tt(e,
|
|
5090
|
+
for (var t, r = e.length, u = r % 3, l = [], d = 16383, h = 0, m = r - u; h < m; h += d)
|
|
5091
|
+
l.push(Tt(e, h, h + d > m ? m : h + d));
|
|
5096
5092
|
return u === 1 ? (t = e[r - 1], l.push(
|
|
5097
5093
|
Q[t >> 2] + Q[t << 4 & 63] + "=="
|
|
5098
5094
|
)) : u === 2 && (t = (e[r - 2] << 8) + e[r - 1], l.push(
|
|
@@ -5102,27 +5098,27 @@ function Et(e) {
|
|
|
5102
5098
|
var Me = {};
|
|
5103
5099
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
5104
5100
|
Me.read = function(e, t, r, u, l) {
|
|
5105
|
-
var d,
|
|
5106
|
-
for (x += W, d =
|
|
5101
|
+
var d, h, m = l * 8 - u - 1, b = (1 << m) - 1, C = b >> 1, p = -7, x = r ? l - 1 : 0, W = r ? -1 : 1, O = e[t + x];
|
|
5102
|
+
for (x += W, d = O & (1 << -p) - 1, O >>= -p, p += m; p > 0; d = d * 256 + e[t + x], x += W, p -= 8)
|
|
5107
5103
|
;
|
|
5108
|
-
for (
|
|
5104
|
+
for (h = d & (1 << -p) - 1, d >>= -p, p += u; p > 0; h = h * 256 + e[t + x], x += W, p -= 8)
|
|
5109
5105
|
;
|
|
5110
5106
|
if (d === 0)
|
|
5111
5107
|
d = 1 - C;
|
|
5112
5108
|
else {
|
|
5113
5109
|
if (d === b)
|
|
5114
|
-
return
|
|
5115
|
-
|
|
5110
|
+
return h ? NaN : (O ? -1 : 1) * (1 / 0);
|
|
5111
|
+
h = h + Math.pow(2, u), d = d - C;
|
|
5116
5112
|
}
|
|
5117
|
-
return (
|
|
5113
|
+
return (O ? -1 : 1) * h * Math.pow(2, d - u);
|
|
5118
5114
|
};
|
|
5119
5115
|
Me.write = function(e, t, r, u, l, d) {
|
|
5120
|
-
var
|
|
5121
|
-
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (m = isNaN(t) ? 1 : 0,
|
|
5116
|
+
var h, m, b, C = d * 8 - l - 1, p = (1 << C) - 1, x = p >> 1, W = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, O = u ? 0 : d - 1, ee = u ? 1 : -1, Ce = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
5117
|
+
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (m = isNaN(t) ? 1 : 0, h = p) : (h = Math.floor(Math.log(t) / Math.LN2), t * (b = Math.pow(2, -h)) < 1 && (h--, b *= 2), h + x >= 1 ? t += W / b : t += W * Math.pow(2, 1 - x), t * b >= 2 && (h++, b /= 2), h + x >= p ? (m = 0, h = p) : h + x >= 1 ? (m = (t * b - 1) * Math.pow(2, l), h = h + x) : (m = t * Math.pow(2, x - 1) * Math.pow(2, l), h = 0)); l >= 8; e[r + O] = m & 255, O += ee, m /= 256, l -= 8)
|
|
5122
5118
|
;
|
|
5123
|
-
for (
|
|
5119
|
+
for (h = h << l | m, C += l; C > 0; e[r + O] = h & 255, O += ee, h /= 256, C -= 8)
|
|
5124
5120
|
;
|
|
5125
|
-
e[r +
|
|
5121
|
+
e[r + O - ee] |= Ce * 128;
|
|
5126
5122
|
};
|
|
5127
5123
|
/*!
|
|
5128
5124
|
* The buffer module from node.js, for the browser.
|
|
@@ -5135,7 +5131,7 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5135
5131
|
e.Buffer = p, e.SlowBuffer = Tn, e.INSPECT_MAX_BYTES = 50;
|
|
5136
5132
|
const l = 2147483647;
|
|
5137
5133
|
e.kMaxLength = l;
|
|
5138
|
-
const { Uint8Array: d, ArrayBuffer:
|
|
5134
|
+
const { Uint8Array: d, ArrayBuffer: h, SharedArrayBuffer: m } = globalThis;
|
|
5139
5135
|
p.TYPED_ARRAY_SUPPORT = b(), !p.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
5140
5136
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
5141
5137
|
);
|
|
@@ -5182,13 +5178,13 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5182
5178
|
function x(i, n, a) {
|
|
5183
5179
|
if (typeof i == "string")
|
|
5184
5180
|
return Ce(i, n);
|
|
5185
|
-
if (
|
|
5181
|
+
if (h.isView(i))
|
|
5186
5182
|
return Cn(i);
|
|
5187
5183
|
if (i == null)
|
|
5188
5184
|
throw new TypeError(
|
|
5189
5185
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
|
|
5190
5186
|
);
|
|
5191
|
-
if (H(i,
|
|
5187
|
+
if (H(i, h) || i && H(i.buffer, h) || typeof m < "u" && (H(i, m) || i && H(i.buffer, m)))
|
|
5192
5188
|
return Te(i, n, a);
|
|
5193
5189
|
if (typeof i == "number")
|
|
5194
5190
|
throw new TypeError(
|
|
@@ -5215,11 +5211,11 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5215
5211
|
if (i < 0)
|
|
5216
5212
|
throw new RangeError('The value "' + i + '" is invalid for option "size"');
|
|
5217
5213
|
}
|
|
5218
|
-
function
|
|
5214
|
+
function O(i, n, a) {
|
|
5219
5215
|
return W(i), i <= 0 ? C(i) : n !== void 0 ? typeof a == "string" ? C(i).fill(n, a) : C(i).fill(n) : C(i);
|
|
5220
5216
|
}
|
|
5221
5217
|
p.alloc = function(i, n, a) {
|
|
5222
|
-
return
|
|
5218
|
+
return O(i, n, a);
|
|
5223
5219
|
};
|
|
5224
5220
|
function ee(i) {
|
|
5225
5221
|
return W(i), C(i < 0 ? 0 : Ee(i) | 0);
|
|
@@ -5286,7 +5282,7 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5286
5282
|
if (n === a)
|
|
5287
5283
|
return 0;
|
|
5288
5284
|
let o = n.length, s = a.length;
|
|
5289
|
-
for (let _ = 0,
|
|
5285
|
+
for (let _ = 0, g = Math.min(o, s); _ < g; ++_)
|
|
5290
5286
|
if (n[_] !== a[_]) {
|
|
5291
5287
|
o = n[_], s = a[_];
|
|
5292
5288
|
break;
|
|
@@ -5321,25 +5317,25 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5321
5317
|
const s = p.allocUnsafe(a);
|
|
5322
5318
|
let _ = 0;
|
|
5323
5319
|
for (o = 0; o < n.length; ++o) {
|
|
5324
|
-
let
|
|
5325
|
-
if (H(
|
|
5326
|
-
_ +
|
|
5320
|
+
let g = n[o];
|
|
5321
|
+
if (H(g, d))
|
|
5322
|
+
_ + g.length > s.length ? (p.isBuffer(g) || (g = p.from(g)), g.copy(s, _)) : d.prototype.set.call(
|
|
5327
5323
|
s,
|
|
5328
|
-
|
|
5324
|
+
g,
|
|
5329
5325
|
_
|
|
5330
5326
|
);
|
|
5331
|
-
else if (p.isBuffer(
|
|
5332
|
-
|
|
5327
|
+
else if (p.isBuffer(g))
|
|
5328
|
+
g.copy(s, _);
|
|
5333
5329
|
else
|
|
5334
5330
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
5335
|
-
_ +=
|
|
5331
|
+
_ += g.length;
|
|
5336
5332
|
}
|
|
5337
5333
|
return s;
|
|
5338
5334
|
};
|
|
5339
5335
|
function Re(i, n) {
|
|
5340
5336
|
if (p.isBuffer(i))
|
|
5341
5337
|
return i.length;
|
|
5342
|
-
if (
|
|
5338
|
+
if (h.isView(i) || H(i, h))
|
|
5343
5339
|
return i.byteLength;
|
|
5344
5340
|
if (typeof i != "string")
|
|
5345
5341
|
throw new TypeError(
|
|
@@ -5455,14 +5451,14 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5455
5451
|
return 1;
|
|
5456
5452
|
if (a >>>= 0, o >>>= 0, s >>>= 0, _ >>>= 0, this === n)
|
|
5457
5453
|
return 0;
|
|
5458
|
-
let
|
|
5459
|
-
const A = Math.min(
|
|
5454
|
+
let g = _ - s, w = o - a;
|
|
5455
|
+
const A = Math.min(g, w), E = this.slice(s, _), P = n.slice(a, o);
|
|
5460
5456
|
for (let S = 0; S < A; ++S)
|
|
5461
5457
|
if (E[S] !== P[S]) {
|
|
5462
|
-
|
|
5458
|
+
g = E[S], w = P[S];
|
|
5463
5459
|
break;
|
|
5464
5460
|
}
|
|
5465
|
-
return
|
|
5461
|
+
return g < w ? -1 : w < g ? 1 : 0;
|
|
5466
5462
|
};
|
|
5467
5463
|
function qe(i, n, a, o, s) {
|
|
5468
5464
|
if (i.length === 0)
|
|
@@ -5483,11 +5479,11 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5483
5479
|
throw new TypeError("val must be string, number or Buffer");
|
|
5484
5480
|
}
|
|
5485
5481
|
function Ne(i, n, a, o, s) {
|
|
5486
|
-
let _ = 1,
|
|
5482
|
+
let _ = 1, g = i.length, w = n.length;
|
|
5487
5483
|
if (o !== void 0 && (o = String(o).toLowerCase(), o === "ucs2" || o === "ucs-2" || o === "utf16le" || o === "utf-16le")) {
|
|
5488
5484
|
if (i.length < 2 || n.length < 2)
|
|
5489
5485
|
return -1;
|
|
5490
|
-
_ = 2,
|
|
5486
|
+
_ = 2, g /= 2, w /= 2, a /= 2;
|
|
5491
5487
|
}
|
|
5492
5488
|
function A(P, S) {
|
|
5493
5489
|
return _ === 1 ? P[S] : P.readUInt16BE(S * _);
|
|
@@ -5495,14 +5491,14 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5495
5491
|
let E;
|
|
5496
5492
|
if (s) {
|
|
5497
5493
|
let P = -1;
|
|
5498
|
-
for (E = a; E <
|
|
5494
|
+
for (E = a; E < g; E++)
|
|
5499
5495
|
if (A(i, E) === A(n, P === -1 ? 0 : E - P)) {
|
|
5500
5496
|
if (P === -1 && (P = E), E - P + 1 === w)
|
|
5501
5497
|
return P * _;
|
|
5502
5498
|
} else
|
|
5503
5499
|
P !== -1 && (E -= E - P), P = -1;
|
|
5504
5500
|
} else
|
|
5505
|
-
for (a + w >
|
|
5501
|
+
for (a + w > g && (a = g - w), E = a; E >= 0; E--) {
|
|
5506
5502
|
let P = !0;
|
|
5507
5503
|
for (let S = 0; S < w; S++)
|
|
5508
5504
|
if (A(i, E + S) !== A(n, S)) {
|
|
@@ -5527,14 +5523,14 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5527
5523
|
o ? (o = Number(o), o > s && (o = s)) : o = s;
|
|
5528
5524
|
const _ = n.length;
|
|
5529
5525
|
o > _ / 2 && (o = _ / 2);
|
|
5530
|
-
let
|
|
5531
|
-
for (
|
|
5532
|
-
const w = parseInt(n.substr(
|
|
5526
|
+
let g;
|
|
5527
|
+
for (g = 0; g < o; ++g) {
|
|
5528
|
+
const w = parseInt(n.substr(g * 2, 2), 16);
|
|
5533
5529
|
if (Pe(w))
|
|
5534
|
-
return
|
|
5535
|
-
i[a +
|
|
5530
|
+
return g;
|
|
5531
|
+
i[a + g] = w;
|
|
5536
5532
|
}
|
|
5537
|
-
return
|
|
5533
|
+
return g;
|
|
5538
5534
|
}
|
|
5539
5535
|
function An(i, n, a, o) {
|
|
5540
5536
|
return ge(Ae(n, i.length - a), i, a, o);
|
|
@@ -5563,7 +5559,7 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5563
5559
|
if ((o === void 0 || o > _) && (o = _), n.length > 0 && (o < 0 || a < 0) || a > this.length)
|
|
5564
5560
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
5565
5561
|
s || (s = "utf8");
|
|
5566
|
-
let
|
|
5562
|
+
let g = !1;
|
|
5567
5563
|
for (; ; )
|
|
5568
5564
|
switch (s) {
|
|
5569
5565
|
case "hex":
|
|
@@ -5583,9 +5579,9 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5583
5579
|
case "utf-16le":
|
|
5584
5580
|
return xn(this, n, a, o);
|
|
5585
5581
|
default:
|
|
5586
|
-
if (
|
|
5582
|
+
if (g)
|
|
5587
5583
|
throw new TypeError("Unknown encoding: " + s);
|
|
5588
|
-
s = ("" + s).toLowerCase(),
|
|
5584
|
+
s = ("" + s).toLowerCase(), g = !0;
|
|
5589
5585
|
}
|
|
5590
5586
|
}, p.prototype.toJSON = function() {
|
|
5591
5587
|
return {
|
|
@@ -5602,37 +5598,37 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5602
5598
|
let s = n;
|
|
5603
5599
|
for (; s < a; ) {
|
|
5604
5600
|
const _ = i[s];
|
|
5605
|
-
let
|
|
5601
|
+
let g = null, w = _ > 239 ? 4 : _ > 223 ? 3 : _ > 191 ? 2 : 1;
|
|
5606
5602
|
if (s + w <= a) {
|
|
5607
5603
|
let A, E, P, S;
|
|
5608
5604
|
switch (w) {
|
|
5609
5605
|
case 1:
|
|
5610
|
-
_ < 128 && (
|
|
5606
|
+
_ < 128 && (g = _);
|
|
5611
5607
|
break;
|
|
5612
5608
|
case 2:
|
|
5613
|
-
A = i[s + 1], (A & 192) === 128 && (S = (_ & 31) << 6 | A & 63, S > 127 && (
|
|
5609
|
+
A = i[s + 1], (A & 192) === 128 && (S = (_ & 31) << 6 | A & 63, S > 127 && (g = S));
|
|
5614
5610
|
break;
|
|
5615
5611
|
case 3:
|
|
5616
|
-
A = i[s + 1], E = i[s + 2], (A & 192) === 128 && (E & 192) === 128 && (S = (_ & 15) << 12 | (A & 63) << 6 | E & 63, S > 2047 && (S < 55296 || S > 57343) && (
|
|
5612
|
+
A = i[s + 1], E = i[s + 2], (A & 192) === 128 && (E & 192) === 128 && (S = (_ & 15) << 12 | (A & 63) << 6 | E & 63, S > 2047 && (S < 55296 || S > 57343) && (g = S));
|
|
5617
5613
|
break;
|
|
5618
5614
|
case 4:
|
|
5619
|
-
A = i[s + 1], E = i[s + 2], P = i[s + 3], (A & 192) === 128 && (E & 192) === 128 && (P & 192) === 128 && (S = (_ & 15) << 18 | (A & 63) << 12 | (E & 63) << 6 | P & 63, S > 65535 && S < 1114112 && (
|
|
5615
|
+
A = i[s + 1], E = i[s + 2], P = i[s + 3], (A & 192) === 128 && (E & 192) === 128 && (P & 192) === 128 && (S = (_ & 15) << 18 | (A & 63) << 12 | (E & 63) << 6 | P & 63, S > 65535 && S < 1114112 && (g = S));
|
|
5620
5616
|
}
|
|
5621
5617
|
}
|
|
5622
|
-
|
|
5618
|
+
g === null ? (g = 65533, w = 1) : g > 65535 && (g -= 65536, o.push(g >>> 10 & 1023 | 55296), g = 56320 | g & 1023), o.push(g), s += w;
|
|
5623
5619
|
}
|
|
5624
5620
|
return Mn(o);
|
|
5625
5621
|
}
|
|
5626
|
-
const
|
|
5622
|
+
const De = 4096;
|
|
5627
5623
|
function Mn(i) {
|
|
5628
5624
|
const n = i.length;
|
|
5629
|
-
if (n <=
|
|
5625
|
+
if (n <= De)
|
|
5630
5626
|
return String.fromCharCode.apply(String, i);
|
|
5631
5627
|
let a = "", o = 0;
|
|
5632
5628
|
for (; o < n; )
|
|
5633
5629
|
a += String.fromCharCode.apply(
|
|
5634
5630
|
String,
|
|
5635
|
-
i.slice(o, o +=
|
|
5631
|
+
i.slice(o, o += De)
|
|
5636
5632
|
);
|
|
5637
5633
|
return a;
|
|
5638
5634
|
}
|
|
@@ -5679,9 +5675,9 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5679
5675
|
}
|
|
5680
5676
|
p.prototype.readUintLE = p.prototype.readUIntLE = function(n, a, o) {
|
|
5681
5677
|
n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
|
|
5682
|
-
let s = this[n], _ = 1,
|
|
5683
|
-
for (; ++
|
|
5684
|
-
s += this[n +
|
|
5678
|
+
let s = this[n], _ = 1, g = 0;
|
|
5679
|
+
for (; ++g < a && (_ *= 256); )
|
|
5680
|
+
s += this[n + g] * _;
|
|
5685
5681
|
return s;
|
|
5686
5682
|
}, p.prototype.readUintBE = p.prototype.readUIntBE = function(n, a, o) {
|
|
5687
5683
|
n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
|
|
@@ -5713,16 +5709,16 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5713
5709
|
return (BigInt(s) << BigInt(32)) + BigInt(_);
|
|
5714
5710
|
}), p.prototype.readIntLE = function(n, a, o) {
|
|
5715
5711
|
n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
|
|
5716
|
-
let s = this[n], _ = 1,
|
|
5717
|
-
for (; ++
|
|
5718
|
-
s += this[n +
|
|
5712
|
+
let s = this[n], _ = 1, g = 0;
|
|
5713
|
+
for (; ++g < a && (_ *= 256); )
|
|
5714
|
+
s += this[n + g] * _;
|
|
5719
5715
|
return _ *= 128, s >= _ && (s -= Math.pow(2, 8 * a)), s;
|
|
5720
5716
|
}, p.prototype.readIntBE = function(n, a, o) {
|
|
5721
5717
|
n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
|
|
5722
|
-
let s = a, _ = 1,
|
|
5718
|
+
let s = a, _ = 1, g = this[n + --s];
|
|
5723
5719
|
for (; s > 0 && (_ *= 256); )
|
|
5724
|
-
|
|
5725
|
-
return _ *= 128,
|
|
5720
|
+
g += this[n + --s] * _;
|
|
5721
|
+
return _ *= 128, g >= _ && (g -= Math.pow(2, 8 * a)), g;
|
|
5726
5722
|
}, p.prototype.readInt8 = function(n, a) {
|
|
5727
5723
|
return n = n >>> 0, a || M(n, 1, this.length), this[n] & 128 ? (255 - this[n] + 1) * -1 : this[n];
|
|
5728
5724
|
}, p.prototype.readInt16LE = function(n, a) {
|
|
@@ -5772,18 +5768,18 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5772
5768
|
const w = Math.pow(2, 8 * o) - 1;
|
|
5773
5769
|
q(this, n, a, o, w, 0);
|
|
5774
5770
|
}
|
|
5775
|
-
let _ = 1,
|
|
5776
|
-
for (this[a] = n & 255; ++
|
|
5777
|
-
this[a +
|
|
5771
|
+
let _ = 1, g = 0;
|
|
5772
|
+
for (this[a] = n & 255; ++g < o && (_ *= 256); )
|
|
5773
|
+
this[a + g] = n / _ & 255;
|
|
5778
5774
|
return a + o;
|
|
5779
5775
|
}, p.prototype.writeUintBE = p.prototype.writeUIntBE = function(n, a, o, s) {
|
|
5780
5776
|
if (n = +n, a = a >>> 0, o = o >>> 0, !s) {
|
|
5781
5777
|
const w = Math.pow(2, 8 * o) - 1;
|
|
5782
5778
|
q(this, n, a, o, w, 0);
|
|
5783
5779
|
}
|
|
5784
|
-
let _ = o - 1,
|
|
5785
|
-
for (this[a + _] = n & 255; --_ >= 0 && (
|
|
5786
|
-
this[a + _] = n /
|
|
5780
|
+
let _ = o - 1, g = 1;
|
|
5781
|
+
for (this[a + _] = n & 255; --_ >= 0 && (g *= 256); )
|
|
5782
|
+
this[a + _] = n / g & 255;
|
|
5787
5783
|
return a + o;
|
|
5788
5784
|
}, p.prototype.writeUint8 = p.prototype.writeUInt8 = function(n, a, o) {
|
|
5789
5785
|
return n = +n, a = a >>> 0, o || q(this, n, a, 1, 255, 0), this[a] = n & 255, a + 1;
|
|
@@ -5796,22 +5792,22 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5796
5792
|
}, p.prototype.writeUint32BE = p.prototype.writeUInt32BE = function(n, a, o) {
|
|
5797
5793
|
return n = +n, a = a >>> 0, o || q(this, n, a, 4, 4294967295, 0), this[a] = n >>> 24, this[a + 1] = n >>> 16, this[a + 2] = n >>> 8, this[a + 3] = n & 255, a + 4;
|
|
5798
5794
|
};
|
|
5799
|
-
function
|
|
5795
|
+
function Oe(i, n, a, o, s) {
|
|
5800
5796
|
Qe(n, o, s, i, a, 7);
|
|
5801
5797
|
let _ = Number(n & BigInt(4294967295));
|
|
5802
5798
|
i[a++] = _, _ = _ >> 8, i[a++] = _, _ = _ >> 8, i[a++] = _, _ = _ >> 8, i[a++] = _;
|
|
5803
|
-
let
|
|
5804
|
-
return i[a++] =
|
|
5799
|
+
let g = Number(n >> BigInt(32) & BigInt(4294967295));
|
|
5800
|
+
return i[a++] = g, g = g >> 8, i[a++] = g, g = g >> 8, i[a++] = g, g = g >> 8, i[a++] = g, a;
|
|
5805
5801
|
}
|
|
5806
5802
|
function Fe(i, n, a, o, s) {
|
|
5807
5803
|
Qe(n, o, s, i, a, 7);
|
|
5808
5804
|
let _ = Number(n & BigInt(4294967295));
|
|
5809
5805
|
i[a + 7] = _, _ = _ >> 8, i[a + 6] = _, _ = _ >> 8, i[a + 5] = _, _ = _ >> 8, i[a + 4] = _;
|
|
5810
|
-
let
|
|
5811
|
-
return i[a + 3] =
|
|
5806
|
+
let g = Number(n >> BigInt(32) & BigInt(4294967295));
|
|
5807
|
+
return i[a + 3] = g, g = g >> 8, i[a + 2] = g, g = g >> 8, i[a + 1] = g, g = g >> 8, i[a] = g, a + 8;
|
|
5812
5808
|
}
|
|
5813
5809
|
p.prototype.writeBigUInt64LE = Z(function(n, a = 0) {
|
|
5814
|
-
return
|
|
5810
|
+
return Oe(this, n, a, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
5815
5811
|
}), p.prototype.writeBigUInt64BE = Z(function(n, a = 0) {
|
|
5816
5812
|
return Fe(this, n, a, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
5817
5813
|
}), p.prototype.writeIntLE = function(n, a, o, s) {
|
|
@@ -5819,18 +5815,18 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5819
5815
|
const A = Math.pow(2, 8 * o - 1);
|
|
5820
5816
|
q(this, n, a, o, A - 1, -A);
|
|
5821
5817
|
}
|
|
5822
|
-
let _ = 0,
|
|
5823
|
-
for (this[a] = n & 255; ++_ < o && (
|
|
5824
|
-
n < 0 && w === 0 && this[a + _ - 1] !== 0 && (w = 1), this[a + _] = (n /
|
|
5818
|
+
let _ = 0, g = 1, w = 0;
|
|
5819
|
+
for (this[a] = n & 255; ++_ < o && (g *= 256); )
|
|
5820
|
+
n < 0 && w === 0 && this[a + _ - 1] !== 0 && (w = 1), this[a + _] = (n / g >> 0) - w & 255;
|
|
5825
5821
|
return a + o;
|
|
5826
5822
|
}, p.prototype.writeIntBE = function(n, a, o, s) {
|
|
5827
5823
|
if (n = +n, a = a >>> 0, !s) {
|
|
5828
5824
|
const A = Math.pow(2, 8 * o - 1);
|
|
5829
5825
|
q(this, n, a, o, A - 1, -A);
|
|
5830
5826
|
}
|
|
5831
|
-
let _ = o - 1,
|
|
5832
|
-
for (this[a + _] = n & 255; --_ >= 0 && (
|
|
5833
|
-
n < 0 && w === 0 && this[a + _ + 1] !== 0 && (w = 1), this[a + _] = (n /
|
|
5827
|
+
let _ = o - 1, g = 1, w = 0;
|
|
5828
|
+
for (this[a + _] = n & 255; --_ >= 0 && (g *= 256); )
|
|
5829
|
+
n < 0 && w === 0 && this[a + _ + 1] !== 0 && (w = 1), this[a + _] = (n / g >> 0) - w & 255;
|
|
5834
5830
|
return a + o;
|
|
5835
5831
|
}, p.prototype.writeInt8 = function(n, a, o) {
|
|
5836
5832
|
return n = +n, a = a >>> 0, o || q(this, n, a, 1, 127, -128), n < 0 && (n = 255 + n + 1), this[a] = n & 255, a + 1;
|
|
@@ -5843,7 +5839,7 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5843
5839
|
}, p.prototype.writeInt32BE = function(n, a, o) {
|
|
5844
5840
|
return n = +n, a = a >>> 0, o || q(this, n, a, 4, 2147483647, -2147483648), n < 0 && (n = 4294967295 + n + 1), this[a] = n >>> 24, this[a + 1] = n >>> 16, this[a + 2] = n >>> 8, this[a + 3] = n & 255, a + 4;
|
|
5845
5841
|
}, p.prototype.writeBigInt64LE = Z(function(n, a = 0) {
|
|
5846
|
-
return
|
|
5842
|
+
return Oe(this, n, a, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
5847
5843
|
}), p.prototype.writeBigInt64BE = Z(function(n, a = 0) {
|
|
5848
5844
|
return Fe(this, n, a, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
5849
5845
|
});
|
|
@@ -5893,8 +5889,8 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5893
5889
|
if (typeof s == "string" && !p.isEncoding(s))
|
|
5894
5890
|
throw new TypeError("Unknown encoding: " + s);
|
|
5895
5891
|
if (n.length === 1) {
|
|
5896
|
-
const
|
|
5897
|
-
(s === "utf8" &&
|
|
5892
|
+
const g = n.charCodeAt(0);
|
|
5893
|
+
(s === "utf8" && g < 128 || s === "latin1") && (n = g);
|
|
5898
5894
|
}
|
|
5899
5895
|
} else
|
|
5900
5896
|
typeof n == "number" ? n = n & 255 : typeof n == "boolean" && (n = Number(n));
|
|
@@ -5908,11 +5904,11 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5908
5904
|
for (_ = a; _ < o; ++_)
|
|
5909
5905
|
this[_] = n;
|
|
5910
5906
|
else {
|
|
5911
|
-
const
|
|
5907
|
+
const g = p.isBuffer(n) ? n : p.from(n, s), w = g.length;
|
|
5912
5908
|
if (w === 0)
|
|
5913
5909
|
throw new TypeError('The value "' + n + '" is invalid for argument "value"');
|
|
5914
5910
|
for (_ = 0; _ < o - a; ++_)
|
|
5915
|
-
this[_ + a] =
|
|
5911
|
+
this[_ + a] = g[_ % w];
|
|
5916
5912
|
}
|
|
5917
5913
|
return this;
|
|
5918
5914
|
};
|
|
@@ -5969,16 +5965,16 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5969
5965
|
n = `_${i.slice(a - 3, a)}${n}`;
|
|
5970
5966
|
return `${i.slice(0, a)}${n}`;
|
|
5971
5967
|
}
|
|
5972
|
-
function
|
|
5968
|
+
function Dn(i, n, a) {
|
|
5973
5969
|
oe(n, "offset"), (i[n] === void 0 || i[n + a] === void 0) && _e(n, i.length - (a + 1));
|
|
5974
5970
|
}
|
|
5975
5971
|
function Qe(i, n, a, o, s, _) {
|
|
5976
5972
|
if (i > a || i < n) {
|
|
5977
|
-
const
|
|
5973
|
+
const g = typeof n == "bigint" ? "n" : "";
|
|
5978
5974
|
let w;
|
|
5979
|
-
throw _ > 3 ? n === 0 || n === BigInt(0) ? w = `>= 0${
|
|
5975
|
+
throw _ > 3 ? n === 0 || n === BigInt(0) ? w = `>= 0${g} and < 2${g} ** ${(_ + 1) * 8}${g}` : w = `>= -(2${g} ** ${(_ + 1) * 8 - 1}${g}) and < 2 ** ${(_ + 1) * 8 - 1}${g}` : w = `>= ${n}${g} and <= ${a}${g}`, new ie.ERR_OUT_OF_RANGE("value", w, i);
|
|
5980
5976
|
}
|
|
5981
|
-
|
|
5977
|
+
Dn(o, s, _);
|
|
5982
5978
|
}
|
|
5983
5979
|
function oe(i, n) {
|
|
5984
5980
|
if (typeof i != "number")
|
|
@@ -5991,9 +5987,9 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5991
5987
|
i
|
|
5992
5988
|
);
|
|
5993
5989
|
}
|
|
5994
|
-
const
|
|
5990
|
+
const On = /[^+/0-9A-Za-z-_]/g;
|
|
5995
5991
|
function Fn(i) {
|
|
5996
|
-
if (i = i.split("=")[0], i = i.trim().replace(
|
|
5992
|
+
if (i = i.split("=")[0], i = i.trim().replace(On, ""), i.length < 2)
|
|
5997
5993
|
return "";
|
|
5998
5994
|
for (; i.length % 4 !== 0; )
|
|
5999
5995
|
i = i + "=";
|
|
@@ -6005,13 +6001,13 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
6005
6001
|
const o = i.length;
|
|
6006
6002
|
let s = null;
|
|
6007
6003
|
const _ = [];
|
|
6008
|
-
for (let
|
|
6009
|
-
if (a = i.charCodeAt(
|
|
6004
|
+
for (let g = 0; g < o; ++g) {
|
|
6005
|
+
if (a = i.charCodeAt(g), a > 55295 && a < 57344) {
|
|
6010
6006
|
if (!s) {
|
|
6011
6007
|
if (a > 56319) {
|
|
6012
6008
|
(n -= 3) > -1 && _.push(239, 191, 189);
|
|
6013
6009
|
continue;
|
|
6014
|
-
} else if (
|
|
6010
|
+
} else if (g + 1 === o) {
|
|
6015
6011
|
(n -= 3) > -1 && _.push(239, 191, 189);
|
|
6016
6012
|
continue;
|
|
6017
6013
|
}
|
|
@@ -6067,8 +6063,8 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
6067
6063
|
function Kn(i, n) {
|
|
6068
6064
|
let a, o, s;
|
|
6069
6065
|
const _ = [];
|
|
6070
|
-
for (let
|
|
6071
|
-
a = i.charCodeAt(
|
|
6066
|
+
for (let g = 0; g < i.length && !((n -= 2) < 0); ++g)
|
|
6067
|
+
a = i.charCodeAt(g), o = a >> 8, s = a % 256, _.push(s), _.push(o);
|
|
6072
6068
|
return _;
|
|
6073
6069
|
}
|
|
6074
6070
|
function Ge(i) {
|
|
@@ -6228,7 +6224,7 @@ const It = mn.Buffer, ze = {
|
|
|
6228
6224
|
}
|
|
6229
6225
|
}, Pt = {
|
|
6230
6226
|
name: "AuthLogin",
|
|
6231
|
-
mixins: [pn, un, _n, ve, ye, ze,
|
|
6227
|
+
mixins: [pn, un, _n, ve, ye, ze, D, At],
|
|
6232
6228
|
props: {
|
|
6233
6229
|
isModal: {
|
|
6234
6230
|
type: Boolean,
|
|
@@ -6321,7 +6317,7 @@ const It = mn.Buffer, ze = {
|
|
|
6321
6317
|
class: "responsive-image",
|
|
6322
6318
|
style: { width: "50%" }
|
|
6323
6319
|
})
|
|
6324
|
-
], -1), Ut = ["placeholder"],
|
|
6320
|
+
], -1), Ut = ["placeholder"], Dt = /* @__PURE__ */ c("em", null, null, -1), Ot = { class: "page-login-field half-bottom" }, Ft = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
|
|
6325
6321
|
/* @__PURE__ */ c("img", {
|
|
6326
6322
|
src: "https://cdn.tapni.co/icons/padlock.png",
|
|
6327
6323
|
class: "responsive-image",
|
|
@@ -6386,7 +6382,7 @@ const It = mn.Buffer, ze = {
|
|
|
6386
6382
|
class: "page-login-links"
|
|
6387
6383
|
}, wa = /* @__PURE__ */ c("div", { class: "clear" }, null, -1), za = { class: "forgot center-text pointer small-top" }, La = /* @__PURE__ */ c("br", null, null, -1), Ca = /* @__PURE__ */ c("div", { class: "clear" }, null, -1);
|
|
6388
6384
|
function Sa(e, t, r, u, l, d) {
|
|
6389
|
-
const
|
|
6385
|
+
const h = de("router-link");
|
|
6390
6386
|
return f(), k("form", {
|
|
6391
6387
|
class: "page-login content-boxed content-boxed-padding",
|
|
6392
6388
|
onSubmit: t[13] || (t[13] = U((...m) => d.submit && d.submit(...m), ["prevent"])),
|
|
@@ -6418,9 +6414,9 @@ function Sa(e, t, r, u, l, d) {
|
|
|
6418
6414
|
}, null, 40, Ut), [
|
|
6419
6415
|
[ae, l.emailOrUsername]
|
|
6420
6416
|
]),
|
|
6421
|
-
|
|
6417
|
+
Dt
|
|
6422
6418
|
]),
|
|
6423
|
-
c("div",
|
|
6419
|
+
c("div", Ot, [
|
|
6424
6420
|
Ft,
|
|
6425
6421
|
B(c("input", {
|
|
6426
6422
|
"onUpdate:modelValue": t[3] || (t[3] = (m) => l.password = m),
|
|
@@ -6526,7 +6522,7 @@ function Sa(e, t, r, u, l, d) {
|
|
|
6526
6522
|
]),
|
|
6527
6523
|
Ca
|
|
6528
6524
|
])) : (f(), k("div", ya, [
|
|
6529
|
-
d.displayRegisterLogin ? (f(), Y(
|
|
6525
|
+
d.displayRegisterLogin ? (f(), Y(h, {
|
|
6530
6526
|
key: 0,
|
|
6531
6527
|
class: "forgot float-right",
|
|
6532
6528
|
to: "/register"
|
|
@@ -6536,7 +6532,7 @@ function Sa(e, t, r, u, l, d) {
|
|
|
6536
6532
|
]),
|
|
6537
6533
|
_: 1
|
|
6538
6534
|
})) : T("", !0),
|
|
6539
|
-
d.displayResetPasswordLogin ? (f(), Y(
|
|
6535
|
+
d.displayResetPasswordLogin ? (f(), Y(h, {
|
|
6540
6536
|
key: 1,
|
|
6541
6537
|
class: "create float-left",
|
|
6542
6538
|
to: "/reset"
|
|
@@ -6552,7 +6548,7 @@ function Sa(e, t, r, u, l, d) {
|
|
|
6552
6548
|
}
|
|
6553
6549
|
const hn = /* @__PURE__ */ $(Pt, [["render", Sa]]), Ta = {
|
|
6554
6550
|
name: "AuthRegister",
|
|
6555
|
-
mixins: [pn, un, _n, ve,
|
|
6551
|
+
mixins: [pn, un, _n, ve, D],
|
|
6556
6552
|
props: {
|
|
6557
6553
|
isModal: {
|
|
6558
6554
|
type: Boolean,
|
|
@@ -6634,13 +6630,13 @@ const hn = /* @__PURE__ */ $(Pt, [["render", Sa]]), Ta = {
|
|
|
6634
6630
|
class: "responsive-image",
|
|
6635
6631
|
style: { width: "60%" }
|
|
6636
6632
|
})
|
|
6637
|
-
], -1), qa = ["placeholder"], Na = /* @__PURE__ */ c("em", null, null, -1), Ua = { class: "page-login-field half-top" },
|
|
6633
|
+
], -1), qa = ["placeholder"], Na = /* @__PURE__ */ c("em", null, null, -1), Ua = { class: "page-login-field half-top" }, Da = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
|
|
6638
6634
|
/* @__PURE__ */ c("img", {
|
|
6639
6635
|
src: "https://cdn.tapni.co/icons/user.png",
|
|
6640
6636
|
class: "responsive-image",
|
|
6641
6637
|
style: { width: "50%" }
|
|
6642
6638
|
})
|
|
6643
|
-
], -1),
|
|
6639
|
+
], -1), Oa = ["placeholder", "disabled"], Fa = /* @__PURE__ */ c("em", null, null, -1), Va = { class: "page-login-field half-top half-bottom" }, Ka = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
|
|
6644
6640
|
/* @__PURE__ */ c("img", {
|
|
6645
6641
|
src: "https://cdn.tapni.co/icons/padlock.png",
|
|
6646
6642
|
class: "responsive-image",
|
|
@@ -6687,7 +6683,7 @@ const hn = /* @__PURE__ */ $(Pt, [["render", Sa]]), Ta = {
|
|
|
6687
6683
|
class: "page-login-links"
|
|
6688
6684
|
}, gi = /* @__PURE__ */ c("div", { class: "clear" }, null, -1), hi = { class: "forgot center-text pointer small-top" }, fi = /* @__PURE__ */ c("br", null, null, -1), ki = /* @__PURE__ */ c("div", { class: "clear" }, null, -1);
|
|
6689
6685
|
function bi(e, t, r, u, l, d) {
|
|
6690
|
-
const
|
|
6686
|
+
const h = de("router-link");
|
|
6691
6687
|
return f(), k("form", {
|
|
6692
6688
|
class: "page-login content-boxed content-boxed-padding",
|
|
6693
6689
|
onSubmit: t[12] || (t[12] = U((...m) => d.submit && d.submit(...m), ["prevent"])),
|
|
@@ -6724,7 +6720,7 @@ function bi(e, t, r, u, l, d) {
|
|
|
6724
6720
|
Na
|
|
6725
6721
|
]),
|
|
6726
6722
|
c("div", Ua, [
|
|
6727
|
-
|
|
6723
|
+
Da,
|
|
6728
6724
|
B(c("input", {
|
|
6729
6725
|
"onUpdate:modelValue": t[3] || (t[3] = (m) => l.username = m),
|
|
6730
6726
|
onKeydown: t[4] || (t[4] = te(U(() => {
|
|
@@ -6738,7 +6734,7 @@ function bi(e, t, r, u, l, d) {
|
|
|
6738
6734
|
required: "",
|
|
6739
6735
|
disabled: l.usernameRegister,
|
|
6740
6736
|
class: R({ "input-disabled": l.usernameRegister })
|
|
6741
|
-
}, null, 42,
|
|
6737
|
+
}, null, 42, Oa), [
|
|
6742
6738
|
[ae, l.username]
|
|
6743
6739
|
]),
|
|
6744
6740
|
Fa
|
|
@@ -6824,7 +6820,7 @@ function bi(e, t, r, u, l, d) {
|
|
|
6824
6820
|
]),
|
|
6825
6821
|
ki
|
|
6826
6822
|
])) : (f(), k("div", mi, [
|
|
6827
|
-
j(
|
|
6823
|
+
j(h, {
|
|
6828
6824
|
class: "create float-right",
|
|
6829
6825
|
to: "/verify"
|
|
6830
6826
|
}, {
|
|
@@ -6833,7 +6829,7 @@ function bi(e, t, r, u, l, d) {
|
|
|
6833
6829
|
]),
|
|
6834
6830
|
_: 1
|
|
6835
6831
|
}),
|
|
6836
|
-
j(
|
|
6832
|
+
j(h, {
|
|
6837
6833
|
class: "forgot float-left",
|
|
6838
6834
|
to: "/login"
|
|
6839
6835
|
}, {
|
|
@@ -6848,7 +6844,7 @@ function bi(e, t, r, u, l, d) {
|
|
|
6848
6844
|
}
|
|
6849
6845
|
const fn = /* @__PURE__ */ $(Ta, [["render", bi]]), vi = {
|
|
6850
6846
|
name: "AuthVerify",
|
|
6851
|
-
mixins: [
|
|
6847
|
+
mixins: [D],
|
|
6852
6848
|
props: {
|
|
6853
6849
|
isModal: {
|
|
6854
6850
|
type: Boolean,
|
|
@@ -6941,12 +6937,12 @@ const fn = /* @__PURE__ */ $(Ta, [["render", bi]]), vi = {
|
|
|
6941
6937
|
}, Mi = {
|
|
6942
6938
|
key: 1,
|
|
6943
6939
|
class: "button--loading button__loader"
|
|
6944
|
-
}, Ri = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), qi = { class: "close-text center-text half-top color-black" }, Ni = ["innerHTML"], Ui = /* @__PURE__ */ K(() => /* @__PURE__ */ c("a", { href: "mailto:support@tapni.com?subject=Email Verification" }, " support@tapni.com", -1)),
|
|
6940
|
+
}, Ri = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), qi = { class: "close-text center-text half-top color-black" }, Ni = ["innerHTML"], Ui = /* @__PURE__ */ K(() => /* @__PURE__ */ c("a", { href: "mailto:support@tapni.com?subject=Email Verification" }, " support@tapni.com", -1)), Di = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), Oi = {
|
|
6945
6941
|
key: 1,
|
|
6946
6942
|
class: "page-login-links"
|
|
6947
6943
|
}, Fi = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "clear" }, null, -1)), Vi = { class: "forgot center-text pointer small-top" }, Ki = /* @__PURE__ */ K(() => /* @__PURE__ */ c("br", null, null, -1)), $i = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "clear" }, null, -1));
|
|
6948
6944
|
function Hi(e, t, r, u, l, d) {
|
|
6949
|
-
const
|
|
6945
|
+
const h = de("router-link");
|
|
6950
6946
|
return f(), k("form", {
|
|
6951
6947
|
class: "page-login content-boxed content-boxed-padding",
|
|
6952
6948
|
onSubmit: t[6] || (t[6] = U((...m) => d.submit && d.submit(...m), ["prevent"])),
|
|
@@ -7000,7 +6996,7 @@ function Hi(e, t, r, u, l, d) {
|
|
|
7000
6996
|
}, null, 8, Ni),
|
|
7001
6997
|
Ui
|
|
7002
6998
|
]),
|
|
7003
|
-
|
|
6999
|
+
Di,
|
|
7004
7000
|
r.isModal ? (f(), k("div", {
|
|
7005
7001
|
key: 2,
|
|
7006
7002
|
class: "page-login-links",
|
|
@@ -7012,8 +7008,8 @@ function Hi(e, t, r, u, l, d) {
|
|
|
7012
7008
|
I(" " + y(e.ssoLang[this.appLanguage].create_new_account), 1)
|
|
7013
7009
|
]),
|
|
7014
7010
|
$i
|
|
7015
|
-
])) : (f(), k("div",
|
|
7016
|
-
j(
|
|
7011
|
+
])) : (f(), k("div", Oi, [
|
|
7012
|
+
j(h, {
|
|
7017
7013
|
class: "create float-right",
|
|
7018
7014
|
to: "/register"
|
|
7019
7015
|
}, {
|
|
@@ -7022,7 +7018,7 @@ function Hi(e, t, r, u, l, d) {
|
|
|
7022
7018
|
]),
|
|
7023
7019
|
_: 1
|
|
7024
7020
|
}),
|
|
7025
|
-
j(
|
|
7021
|
+
j(h, {
|
|
7026
7022
|
class: "forgot float-left",
|
|
7027
7023
|
to: "/login"
|
|
7028
7024
|
}, {
|
|
@@ -7037,7 +7033,7 @@ function Hi(e, t, r, u, l, d) {
|
|
|
7037
7033
|
}
|
|
7038
7034
|
const kn = /* @__PURE__ */ $(vi, [["render", Hi], ["__scopeId", "data-v-af1531aa"]]), Qi = {
|
|
7039
7035
|
name: "AuthReset",
|
|
7040
|
-
mixins: [
|
|
7036
|
+
mixins: [D],
|
|
7041
7037
|
data() {
|
|
7042
7038
|
return {
|
|
7043
7039
|
loading: !0,
|
|
@@ -7145,7 +7141,7 @@ const kn = /* @__PURE__ */ $(vi, [["render", Hi], ["__scopeId", "data-v-af1531aa
|
|
|
7145
7141
|
class: "button--loading button__loader"
|
|
7146
7142
|
}, So = /* @__PURE__ */ X(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), To = { class: "close-text center-text half-top color-black" }, Eo = ["innerHTML"], Io = ["href"];
|
|
7147
7143
|
function Ao(e, t, r, u, l, d) {
|
|
7148
|
-
const
|
|
7144
|
+
const h = de("router-link");
|
|
7149
7145
|
return l.passwordChange ? (f(), k("form", {
|
|
7150
7146
|
key: 1,
|
|
7151
7147
|
class: "page-login content-boxed content-boxed-padding",
|
|
@@ -7245,7 +7241,7 @@ function Ao(e, t, r, u, l, d) {
|
|
|
7245
7241
|
]),
|
|
7246
7242
|
so,
|
|
7247
7243
|
c("div", co, [
|
|
7248
|
-
j(
|
|
7244
|
+
j(h, {
|
|
7249
7245
|
class: "create float-right",
|
|
7250
7246
|
to: "/verify"
|
|
7251
7247
|
}, {
|
|
@@ -7254,7 +7250,7 @@ function Ao(e, t, r, u, l, d) {
|
|
|
7254
7250
|
]),
|
|
7255
7251
|
_: 1
|
|
7256
7252
|
}),
|
|
7257
|
-
j(
|
|
7253
|
+
j(h, {
|
|
7258
7254
|
class: "forgot float-left",
|
|
7259
7255
|
to: "/login"
|
|
7260
7256
|
}, {
|
|
@@ -7269,7 +7265,7 @@ function Ao(e, t, r, u, l, d) {
|
|
|
7269
7265
|
}
|
|
7270
7266
|
const bn = /* @__PURE__ */ $(Qi, [["render", Ao], ["__scopeId", "data-v-4f85b89a"]]), Po = {
|
|
7271
7267
|
name: "AuthCallback",
|
|
7272
|
-
mixins: [ye, ze,
|
|
7268
|
+
mixins: [ye, ze, D],
|
|
7273
7269
|
data() {
|
|
7274
7270
|
return {};
|
|
7275
7271
|
},
|
|
@@ -7301,7 +7297,7 @@ function Ro(e, t, r, u, l, d) {
|
|
|
7301
7297
|
Bo,
|
|
7302
7298
|
I(" " + y(e.ssoLang[this.appLanguage].if_redirect_not_directly) + ", ", 1),
|
|
7303
7299
|
c("span", {
|
|
7304
|
-
onClick: t[0] || (t[0] = (...
|
|
7300
|
+
onClick: t[0] || (t[0] = (...h) => d.inAppRedirect && d.inAppRedirect(...h)),
|
|
7305
7301
|
style: { color: "blue", cursor: "pointer" }
|
|
7306
7302
|
}, y(e.ssoLang[this.appLanguage].click_here), 1),
|
|
7307
7303
|
I(".")
|
|
@@ -7310,7 +7306,7 @@ function Ro(e, t, r, u, l, d) {
|
|
|
7310
7306
|
}
|
|
7311
7307
|
const vn = /* @__PURE__ */ $(Po, [["render", Ro]]), qo = {
|
|
7312
7308
|
name: "ModalOverlay",
|
|
7313
|
-
mixins: [
|
|
7309
|
+
mixins: [D],
|
|
7314
7310
|
data() {
|
|
7315
7311
|
return {
|
|
7316
7312
|
toggle: !1
|
|
@@ -7336,12 +7332,12 @@ const vn = /* @__PURE__ */ $(Po, [["render", Ro]]), qo = {
|
|
|
7336
7332
|
function No(e, t, r, u, l, d) {
|
|
7337
7333
|
return f(), k("div", {
|
|
7338
7334
|
class: R({ "pointer delete-menu": !0, "delete-menu-active": l.toggle }),
|
|
7339
|
-
onClick: t[0] || (t[0] = (...
|
|
7335
|
+
onClick: t[0] || (t[0] = (...h) => d.toggleEmit && d.toggleEmit(...h))
|
|
7340
7336
|
}, null, 2);
|
|
7341
7337
|
}
|
|
7342
7338
|
const yn = /* @__PURE__ */ $(qo, [["render", No], ["__scopeId", "data-v-a128c2fa"]]), Uo = {
|
|
7343
7339
|
name: "SSO",
|
|
7344
|
-
mixins: [ve, ye, ze,
|
|
7340
|
+
mixins: [ve, ye, ze, D],
|
|
7345
7341
|
data() {
|
|
7346
7342
|
return {
|
|
7347
7343
|
toggle: !1,
|
|
@@ -7382,14 +7378,14 @@ const yn = /* @__PURE__ */ $(qo, [["render", No], ["__scopeId", "data-v-a128c2fa
|
|
|
7382
7378
|
this.toggle = !this.toggle;
|
|
7383
7379
|
}
|
|
7384
7380
|
}
|
|
7385
|
-
},
|
|
7381
|
+
}, Do = (e) => (pe("data-v-11f19a09"), e = e(), ue(), e), Oo = /* @__PURE__ */ Do(() => /* @__PURE__ */ c("i", { class: "font-17 color-black" }, [
|
|
7386
7382
|
/* @__PURE__ */ c("img", {
|
|
7387
7383
|
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
7388
7384
|
class: "responsive-image",
|
|
7389
7385
|
style: { width: "45%" }
|
|
7390
7386
|
})
|
|
7391
7387
|
], -1)), Fo = [
|
|
7392
|
-
|
|
7388
|
+
Oo
|
|
7393
7389
|
], Vo = { class: "bold center-text color-black half-top half-bottom" }, Ko = ["placeholder"], $o = {
|
|
7394
7390
|
type: "submit",
|
|
7395
7391
|
class: "button black-button white-button button-full",
|
|
@@ -7400,12 +7396,12 @@ const yn = /* @__PURE__ */ $(qo, [["render", No], ["__scopeId", "data-v-a128c2fa
|
|
|
7400
7396
|
};
|
|
7401
7397
|
function Go(e, t, r, u, l, d) {
|
|
7402
7398
|
return f(), k("form", {
|
|
7403
|
-
onSubmit: t[3] || (t[3] = U((...
|
|
7399
|
+
onSubmit: t[3] || (t[3] = U((...h) => d.submit && d.submit(...h), ["prevent"])),
|
|
7404
7400
|
class: R(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": l.toggle }]),
|
|
7405
7401
|
style: { height: "auto", "margin-top": "-172.5px" }
|
|
7406
7402
|
}, [
|
|
7407
7403
|
c("a", {
|
|
7408
|
-
onClick: t[0] || (t[0] = (...
|
|
7404
|
+
onClick: t[0] || (t[0] = (...h) => d.forceClose && d.forceClose(...h)),
|
|
7409
7405
|
class: "color-black pull-right pointer",
|
|
7410
7406
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
7411
7407
|
}, Fo),
|
|
@@ -7413,7 +7409,7 @@ function Go(e, t, r, u, l, d) {
|
|
|
7413
7409
|
c("div", null, [
|
|
7414
7410
|
B(c("input", {
|
|
7415
7411
|
type: "text",
|
|
7416
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
7412
|
+
"onUpdate:modelValue": t[1] || (t[1] = (h) => l.email = h),
|
|
7417
7413
|
placeholder: e.ssoLang[this.appLanguage].email,
|
|
7418
7414
|
autocomplete: "off",
|
|
7419
7415
|
autocorrect: "off",
|
|
@@ -7435,7 +7431,7 @@ function Go(e, t, r, u, l, d) {
|
|
|
7435
7431
|
}
|
|
7436
7432
|
const wn = /* @__PURE__ */ $(Uo, [["render", Go], ["__scopeId", "data-v-11f19a09"]]), Wo = {
|
|
7437
7433
|
name: "SSOPick",
|
|
7438
|
-
mixins: [ve, ye, ze,
|
|
7434
|
+
mixins: [ve, ye, ze, D],
|
|
7439
7435
|
data() {
|
|
7440
7436
|
return {
|
|
7441
7437
|
toggle: !1,
|
|
@@ -7496,7 +7492,7 @@ const wn = /* @__PURE__ */ $(Uo, [["render", Go], ["__scopeId", "data-v-11f19a09
|
|
|
7496
7492
|
class: "button--loading button__loader"
|
|
7497
7493
|
};
|
|
7498
7494
|
function cr(e, t, r, u, l, d) {
|
|
7499
|
-
var
|
|
7495
|
+
var h, m, b;
|
|
7500
7496
|
return f(), k("form", {
|
|
7501
7497
|
onSubmit: t[4] || (t[4] = U(() => {
|
|
7502
7498
|
}, ["prevent"])),
|
|
@@ -7509,7 +7505,7 @@ function cr(e, t, r, u, l, d) {
|
|
|
7509
7505
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
7510
7506
|
}, Xo),
|
|
7511
7507
|
c("h3", Zo, y(e.ssoLang[e.appLanguage].select_sign_method), 1),
|
|
7512
|
-
(
|
|
7508
|
+
(h = l.sso) != null && h.azure ? (f(), k("a", {
|
|
7513
7509
|
key: 0,
|
|
7514
7510
|
onClick: t[1] || (t[1] = (C) => d.ssoLogin("azure")),
|
|
7515
7511
|
class: "button-center button black-button button-90 google-button pointer"
|
|
@@ -7537,7 +7533,7 @@ function cr(e, t, r, u, l, d) {
|
|
|
7537
7533
|
}
|
|
7538
7534
|
const zn = /* @__PURE__ */ $(Wo, [["render", cr], ["__scopeId", "data-v-4f821f65"]]), lr = {
|
|
7539
7535
|
name: "LinkIcon",
|
|
7540
|
-
mixins: [
|
|
7536
|
+
mixins: [D],
|
|
7541
7537
|
props: {
|
|
7542
7538
|
linkAdding: {
|
|
7543
7539
|
type: Boolean,
|
|
@@ -7609,7 +7605,7 @@ const zn = /* @__PURE__ */ $(Wo, [["render", cr], ["__scopeId", "data-v-4f821f65
|
|
|
7609
7605
|
methods: {}
|
|
7610
7606
|
}, dr = ["src", "alt"], pr = ["src", "alt"], ur = ["src", "alt"], _r = ["src", "alt"];
|
|
7611
7607
|
function mr(e, t, r, u, l, d) {
|
|
7612
|
-
var
|
|
7608
|
+
var h, m;
|
|
7613
7609
|
return f(), k("a", {
|
|
7614
7610
|
class: R(["disable-select", r.linkStyle + (r.disabled ? " opacity-50" : "")]),
|
|
7615
7611
|
style: ce(
|
|
@@ -7622,7 +7618,7 @@ function mr(e, t, r, u, l, d) {
|
|
|
7622
7618
|
"pulse pulse-border": r.pulse,
|
|
7623
7619
|
"link-drag": r.editing
|
|
7624
7620
|
}),
|
|
7625
|
-
style: ce({ ...(
|
|
7621
|
+
style: ce({ ...(h = r.customLinkStyle) == null ? void 0 : h.linkIcon })
|
|
7626
7622
|
}, [
|
|
7627
7623
|
!r.data.custom_icon && r.data.type !== "customlink" ? (f(), k("img", {
|
|
7628
7624
|
key: 0,
|
|
@@ -7670,7 +7666,7 @@ const gr = /* @__PURE__ */ $(lr, [["render", mr]]), hr = {
|
|
|
7670
7666
|
GOOGLE_ANALYTICS_ID: ""
|
|
7671
7667
|
}, fr = {
|
|
7672
7668
|
name: "Language",
|
|
7673
|
-
mixins: [
|
|
7669
|
+
mixins: [D],
|
|
7674
7670
|
components: { LinkIcon: gr },
|
|
7675
7671
|
data() {
|
|
7676
7672
|
return {
|
|
@@ -7711,7 +7707,7 @@ const gr = /* @__PURE__ */ $(lr, [["render", mr]]), hr = {
|
|
|
7711
7707
|
br
|
|
7712
7708
|
], yr = { class: "bold center-text color-black small-bottom" };
|
|
7713
7709
|
function wr(e, t, r, u, l, d) {
|
|
7714
|
-
const
|
|
7710
|
+
const h = de("LinkIcon");
|
|
7715
7711
|
return f(), k("div", {
|
|
7716
7712
|
class: R(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": l.toggle }]),
|
|
7717
7713
|
style: { height: "auto", "max-height": "92vh", "margin-top": "-172.5px" }
|
|
@@ -7722,56 +7718,56 @@ function wr(e, t, r, u, l, d) {
|
|
|
7722
7718
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
7723
7719
|
}, vr),
|
|
7724
7720
|
c("h3", yr, y(e.ssoLang[e.appLanguage].app_language), 1),
|
|
7725
|
-
j(
|
|
7721
|
+
j(h, {
|
|
7726
7722
|
onClick: t[1] || (t[1] = (m) => d.updateLanguage("en")),
|
|
7727
7723
|
"link-style": "link-grid",
|
|
7728
7724
|
data: { type: "lang/en", text: e.ssoLang[this.appLanguage].english },
|
|
7729
7725
|
editing: !1,
|
|
7730
7726
|
class: R({ "add-button": !0 })
|
|
7731
7727
|
}, null, 8, ["data"]),
|
|
7732
|
-
j(
|
|
7728
|
+
j(h, {
|
|
7733
7729
|
onClick: t[2] || (t[2] = (m) => d.updateLanguage("es")),
|
|
7734
7730
|
"link-style": "link-grid",
|
|
7735
7731
|
data: { type: "lang/es", text: e.ssoLang[this.appLanguage].spanish },
|
|
7736
7732
|
editing: !1,
|
|
7737
7733
|
class: R({ "add-button": !0 })
|
|
7738
7734
|
}, null, 8, ["data"]),
|
|
7739
|
-
j(
|
|
7735
|
+
j(h, {
|
|
7740
7736
|
onClick: t[3] || (t[3] = (m) => d.updateLanguage("de")),
|
|
7741
7737
|
"link-style": "link-grid",
|
|
7742
7738
|
data: { type: "lang/de", text: e.ssoLang[this.appLanguage].german },
|
|
7743
7739
|
editing: !1,
|
|
7744
7740
|
class: R({ "add-button": !0 })
|
|
7745
7741
|
}, null, 8, ["data"]),
|
|
7746
|
-
j(
|
|
7742
|
+
j(h, {
|
|
7747
7743
|
onClick: t[4] || (t[4] = (m) => d.updateLanguage("it")),
|
|
7748
7744
|
"link-style": "link-grid",
|
|
7749
7745
|
data: { type: "lang/it", text: e.ssoLang[this.appLanguage].italian },
|
|
7750
7746
|
editing: !1,
|
|
7751
7747
|
class: R({ "add-button": !0 })
|
|
7752
7748
|
}, null, 8, ["data"]),
|
|
7753
|
-
j(
|
|
7749
|
+
j(h, {
|
|
7754
7750
|
onClick: t[5] || (t[5] = (m) => d.updateLanguage("fr")),
|
|
7755
7751
|
"link-style": "link-grid",
|
|
7756
7752
|
data: { type: "lang/fr", text: e.ssoLang[this.appLanguage].french },
|
|
7757
7753
|
editing: !1,
|
|
7758
7754
|
class: R({ "add-button": !0 })
|
|
7759
7755
|
}, null, 8, ["data"]),
|
|
7760
|
-
j(
|
|
7756
|
+
j(h, {
|
|
7761
7757
|
onClick: t[6] || (t[6] = (m) => d.updateLanguage("kr")),
|
|
7762
7758
|
"link-style": "link-grid",
|
|
7763
7759
|
data: { type: "lang/kr", text: e.ssoLang[this.appLanguage].korean },
|
|
7764
7760
|
editing: !1,
|
|
7765
7761
|
class: R({ "add-button": !0 })
|
|
7766
7762
|
}, null, 8, ["data"]),
|
|
7767
|
-
j(
|
|
7763
|
+
j(h, {
|
|
7768
7764
|
onClick: t[7] || (t[7] = (m) => d.updateLanguage("sr")),
|
|
7769
7765
|
"link-style": "link-grid",
|
|
7770
7766
|
data: { type: "lang/sr", text: e.ssoLang[this.appLanguage].serbian },
|
|
7771
7767
|
editing: !1,
|
|
7772
7768
|
class: R({ "add-button": !0 })
|
|
7773
7769
|
}, null, 8, ["data"]),
|
|
7774
|
-
j(
|
|
7770
|
+
j(h, {
|
|
7775
7771
|
onClick: t[8] || (t[8] = (m) => d.updateLanguage("tr")),
|
|
7776
7772
|
"link-style": "link-grid",
|
|
7777
7773
|
data: { type: "lang/tr", text: e.ssoLang[this.appLanguage].turkish },
|
|
@@ -7813,7 +7809,7 @@ const Lr = { id: "ssoapp" }, Cr = {
|
|
|
7813
7809
|
Rr
|
|
7814
7810
|
], Nr = {
|
|
7815
7811
|
name: "TapniAuth",
|
|
7816
|
-
mixins: [
|
|
7812
|
+
mixins: [D],
|
|
7817
7813
|
data() {
|
|
7818
7814
|
return {
|
|
7819
7815
|
isSetup: !1
|
|
@@ -7924,12 +7920,8 @@ const Lr = { id: "ssoapp" }, Cr = {
|
|
|
7924
7920
|
}
|
|
7925
7921
|
}), ns = {
|
|
7926
7922
|
TapniAuth: Ze,
|
|
7927
|
-
install: (e
|
|
7928
|
-
|
|
7929
|
-
created() {
|
|
7930
|
-
this.API_ROOT = t.API_ROOT;
|
|
7931
|
-
}
|
|
7932
|
-
}), e.component("TapniAuth", Ze);
|
|
7923
|
+
install: (e) => {
|
|
7924
|
+
e.component("TapniAuth", Ze);
|
|
7933
7925
|
}
|
|
7934
7926
|
};
|
|
7935
7927
|
export {
|