test(es/minifier): Add snapshots for the mangler (#4823)

I found a way to make the name mangler parallel, but I want to ensure that we don't break anything.
This commit is contained in:
Donny/강동윤 2022-05-27 16:32:23 +09:00 committed by GitHub
parent 23bc98b17d
commit 7f69b9c80f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2428 changed files with 218193 additions and 3 deletions

View File

@ -28,6 +28,7 @@ crates/swc_webpack_ast/tests/
# Generated by testing system # Generated by testing system
output/ output/
output.js output.js
output.*.js
output.full.js output.full.js
output.mjs output.mjs
index.g.js index.g.js

View File

@ -0,0 +1,55 @@
function a(a, b) {
if (!(a instanceof b)) {
throw new TypeError("Cannot call a class as a function");
}
}
function b(d, c) {
for(var b = 0; b < c.length; b++){
var a = c[b];
a.enumerable = a.enumerable || false;
a.configurable = true;
if ("value" in a) a.writable = true;
Object.defineProperty(d, a.key, a);
}
}
function c(a, c, d) {
if (c) b(a.prototype, c);
if (d) b(a, d);
return a;
}
function d(a, b, c) {
if (b in a) {
Object.defineProperty(a, b, {
value: c,
enumerable: true,
configurable: true,
writable: true
});
} else {
a[b] = c;
}
return a;
}
var e = function b() {
"use strict";
a(this, b);
};
module.exports = (function() {
var b = (function() {
"use strict";
function b() {
a(this, b);
}
c(b, [
{
key: "it",
value: function a() {
this.bb = new b.MyA();
}
},
]);
return b;
})();
d(b, "MyA", e);
return b;
})();

View File

@ -0,0 +1,8 @@
class a {
}
module.exports = class b {
static MyA = a;
it() {
this.bb = new b.MyA();
}
};

View File

@ -0,0 +1,10 @@
function b(a) {
return a != null;
}
function a(a, c) {
if (a == null || b(a)) {
return true;
}
return false;
}
module.exports = a;

View File

@ -0,0 +1,83 @@
function a(a) {
return a();
}
const b = (a)=>true;
const c = {};
const d = {};
a(function(b, a) {
Object.defineProperty(a, "__esModule", {
value: true
});
});
a(function(a) {
a.exports = {
findConfig: function d(e) {
var b = function(b) {
if (2) {
throw new Error("");
} else if (c) {
throw new Error("");
} else if (1) {
throw new Error("");
} else if (true) {
return a.exports.findConfig(null);
} else if (true) {
return a.exports.findConfig(null);
}
};
return b;
}
};
});
a(function(b, a) {
Object.defineProperty(a, "__esModule", {
value: true
});
});
a(function(b, c) {
function a(a) {
return a && a.__esModule ? a : {
default: a
};
}
a();
var d = a();
});
a(function(b, a) {
a.default = null;
b.exports = a.default;
});
a(function(b, a) {
a.default = void 0;
});
var e = a(function(b, a) {
a.default = void 0;
function c(a) {
return a && a.__esModule ? a : {
default: a
};
}
b.exports = a.default;
});
a(function(b, a) {
a.default = void 0;
b.exports = a.default;
});
a(function(b, a) {
a.default = void 0;
a.default = String;
});
a(function(b, a) {
a.default = void 0;
var c = null;
a.default = String;
});
a(function(b, a) {
a.__esModule = true;
});
a(function(b, a) {
a.__esModule = true;
});
a(function(b, a) {
a.__esModule = true;
});

View File

@ -0,0 +1,83 @@
function a(a) {
return a();
}
const b = (a)=>true;
const c = {};
const d = {};
a(function(b, a) {
Object.defineProperty(a, "__esModule", {
value: true
});
});
a(function(a) {
a.exports = {
findConfig: function d(e) {
var b = function(b) {
if (2) {
throw new Error("");
} else if (c) {
throw new Error("");
} else if (1) {
throw new Error("");
} else if (true) {
return a.exports.findConfig(null);
} else if (true) {
return a.exports.findConfig(null);
}
};
return b;
}
};
});
a(function(b, a) {
Object.defineProperty(a, "__esModule", {
value: true
});
});
a(function(b, c) {
function a(a) {
return a && a.__esModule ? a : {
default: a
};
}
a();
var d = a();
});
a(function(b, a) {
a.default = null;
b.exports = a.default;
});
a(function(b, a) {
a.default = void 0;
});
var e = a(function(b, a) {
a.default = void 0;
function c(a) {
return a && a.__esModule ? a : {
default: a
};
}
b.exports = a.default;
});
a(function(b, a) {
a.default = void 0;
b.exports = a.default;
});
a(function(b, a) {
a.default = void 0;
a.default = String;
});
a(function(b, a) {
a.default = void 0;
var c = null;
a.default = String;
});
a(function(b, a) {
a.__esModule = true;
});
a(function(b, a) {
a.__esModule = true;
});
a(function(b, a) {
a.__esModule = true;
});

View File

@ -0,0 +1,83 @@
function a(a) {
return a();
}
const b = (a)=>true;
const c = {};
const d = {};
a(function(b, a) {
Object.defineProperty(a, "__esModule", {
value: true
});
});
a(function(a) {
a.exports = {
findConfig: function d(e) {
var b = function(b) {
if (2) {
throw new Error("");
} else if (c) {
throw new Error("");
} else if (1) {
throw new Error("");
} else if (true) {
return a.exports.findConfig(null);
} else if (true) {
return a.exports.findConfig(null);
}
};
return b;
}
};
});
a(function(b, a) {
Object.defineProperty(a, "__esModule", {
value: true
});
});
a(function(b, c) {
function a(a) {
return a && a.__esModule ? a : {
default: a
};
}
a();
var d = a();
});
a(function(b, a) {
a.default = null;
b.exports = a.default;
});
a(function(b, a) {
a.default = void 0;
});
var e = a(function(b, a) {
a.default = void 0;
function c(a) {
return a && a.__esModule ? a : {
default: a
};
}
b.exports = a.default;
});
a(function(b, a) {
a.default = void 0;
b.exports = a.default;
});
a(function(b, a) {
a.default = void 0;
a.default = String;
});
a(function(b, a) {
a.default = void 0;
var c = null;
a.default = String;
});
a(function(b, a) {
a.__esModule = true;
});
a(function(b, a) {
a.__esModule = true;
});
a(function(b, a) {
a.__esModule = true;
});

View File

@ -0,0 +1,14 @@
function a(a, b) {
if (b.val === a.val) {
return 0;
}
if (typeof a.val === "object" && typeof b.val === "object") {
if (a.key === undefined || b.key === undefined) {
return 1;
}
if (a.key === b.key) {
return 0;
}
}
return 1;
}

View File

@ -0,0 +1,9 @@
let a = [
1
];
let b;
while(a.length > 0){
b = a.sort();
a = [];
b.forEach((a)=>console.log(a));
}

View File

@ -0,0 +1,7 @@
function a(a, b) {
if (a) {
if (b) return;
foo();
}
bar();
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
(()=>{
"use strict";
var c = globalThis;
function d(a) {}
var a = somethingGlobal;
const b = a;
b();
})();

View File

@ -0,0 +1,13 @@
function a(c, d) {
var a;
if (c > 0) {
var b = "hello";
} else {
var b = "howdy";
}
if (d > 0) {
a = b.substr(0, 2);
}
return a;
}
module.exports = a;

View File

@ -0,0 +1,217 @@
(function(c) {
"use strict";
var b = (function() {
try {
if (c.URLSearchParams && new c.URLSearchParams("foo=bar").get("foo") === "bar") {
return c.URLSearchParams;
}
} catch (a) {}
return null;
})(), f = b && new b({
a: 1
}).toString() === "a=1", g = b && new b("s=%2B").get("s") === "+", m = "__URLSearchParams__", i = b ? (function() {
var a = new b();
a.append("s", " &");
return a.toString() === "s=+%26";
})() : true, d = h.prototype, j = !!(c.Symbol && c.Symbol.iterator);
if (b && f && g && i) {
return;
}
function h(a) {
a = a || "";
if (a instanceof URLSearchParams || a instanceof h) {
a = a.toString();
}
this[m] = q(a);
}
d.append = function(a, b) {
r(this[m], a, b);
};
d["delete"] = function(a) {
delete this[m][a];
};
d.get = function(a) {
var b = this[m];
return this.has(a) ? b[a][0] : null;
};
d.getAll = function(a) {
var b = this[m];
return this.has(a) ? b[a].slice(0) : [];
};
d.has = function(a) {
return t(this[m], a);
};
d.set = function c(a, b) {
this[m][a] = [
"" + b
];
};
d.toString = function() {
var d = this[m], e = [], a, b, f, c;
for(b in d){
f = n(b);
for(a = 0, c = d[b]; a < c.length; a++){
e.push(f + "=" + n(c[a]));
}
}
return e.join("&");
};
var k = !g;
var l = !k && b && !f && c.Proxy;
var e;
if (l) {
e = new Proxy(b, {
construct: function(a, b) {
return new a(new h(b[0]).toString());
}
});
e.toString = Function.prototype.toString.bind(h);
} else {
e = h;
}
Object.defineProperty(c, "URLSearchParams", {
value: e
});
var a = c.URLSearchParams.prototype;
a.polyfill = true;
a.forEach = a.forEach || function(b, c) {
var a = q(this.toString());
Object.getOwnPropertyNames(a).forEach(function(d) {
a[d].forEach(function(a) {
b.call(c, a, d, this);
}, this);
}, this);
};
a.sort = a.sort || function() {
var d = q(this.toString()), b = [], e, a, c;
for(e in d){
b.push(e);
}
b.sort();
for(a = 0; a < b.length; a++){
this["delete"](b[a]);
}
for(a = 0; a < b.length; a++){
var f = b[a], g = d[f];
for(c = 0; c < g.length; c++){
this.append(f, g[c]);
}
}
};
a.keys = a.keys || function() {
var a = [];
this.forEach(function(c, b) {
a.push(b);
});
return p(a);
};
a.values = a.values || function() {
var a = [];
this.forEach(function(b) {
a.push(b);
});
return p(a);
};
a.entries = a.entries || function() {
var a = [];
this.forEach(function(b, c) {
a.push([
c,
b
]);
});
return p(a);
};
if (j) {
a[c.Symbol.iterator] = a[c.Symbol.iterator] || a.entries;
}
function n(a) {
var b = {
"!": "%21",
"'": "%27",
"(": "%28",
")": "%29",
"~": "%7E",
"%20": "+",
"%00": "\x00"
};
return encodeURIComponent(a).replace(/[!'\(\)~]|%20|%00/g, function(a) {
return b[a];
});
}
function o(a) {
return a.replace(/[ +]/g, "%20").replace(/(%[a-f0-9]{2})+/gi, function(a) {
return decodeURIComponent(a);
});
}
function p(b) {
var a = {
next: function() {
var a = b.shift();
return {
done: a === undefined,
value: a
};
}
};
if (j) {
a[c.Symbol.iterator] = function() {
return a;
};
}
return a;
}
function q(a) {
var b = {};
if (typeof a === "object") {
if (s(a)) {
for(var e = 0; e < a.length; e++){
var d = a[e];
if (s(d) && d.length === 2) {
r(b, d[0], d[1]);
} else {
throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");
}
}
} else {
for(var f in a){
if (a.hasOwnProperty(f)) {
r(b, f, a[f]);
}
}
}
} else {
if (a.indexOf("?") === 0) {
a = a.slice(1);
}
var i = a.split("&");
for(var g = 0; g < i.length; g++){
var c = i[g], h = c.indexOf("=");
if (-1 < h) {
r(b, o(c.slice(0, h)), o(c.slice(h + 1)));
} else {
if (c) {
r(b, o(c), "");
}
}
}
}
return b;
}
function r(b, c, a) {
var d = typeof a === "string" ? a : a !== null && a !== undefined && typeof a.toString === "function" ? a.toString() : JSON.stringify(a);
if (t(b, c)) {
b[c].push(d);
} else {
b[c] = [
d
];
}
}
function s(a) {
return (!!a && "[object Array]" === Object.prototype.toString.call(a));
}
function t(a, b) {
return Object.prototype.hasOwnProperty.call(a, b);
}
})(typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : this);

View File

@ -0,0 +1,20 @@
var a = function(a) {
return $6aPrw.atTheBeginningOfBlock(a) && $6aPrw.atTheEndOfBlock(a);
};
function b() {
c(state);
}
function c(b) {
if (!a(b) || $0204f19a3843e92f$export$7abbbf8335ec653(b)) {
return b;
} else {
return $04186525b01d7539$var$range();
}
}
function d() {
this.x = d;
this.insertFile = function() {
b();
};
}
console.log(cls);

View File

@ -0,0 +1,5 @@
expose(()=>c);
var b = require("70jDX");
var a;
a = b.default;
var c = a;

View File

@ -0,0 +1,5 @@
(function() {
var a = {};
a.b = 1;
a = null;
})();

View File

@ -0,0 +1,2 @@
const a = Math.random();
console.log(a === -1 / 0);

View File

@ -0,0 +1,2 @@
const a = Math.random();
console.log(1 / a == -1 / 0);

View File

@ -0,0 +1,7 @@
export default function a() {
console.log(123);
console.log.apply(console, arguments);
console.a.b.c(console, arguments);
console.any();
console.warn();
};

View File

@ -0,0 +1,6 @@
export default function a(a) {
const b = ()=>{
return "test";
};
return a`${b()}`;
};

View File

@ -0,0 +1,4 @@
export var webpackJsonpCallback = function(c, b) {
var a = b[2];
if (a) var d = a(__webpack_require__);
};

View File

@ -0,0 +1,25 @@
(()=>{
var b = {
746: (e, f, g)=>{
const h = Object.prototype.hasOwnProperty;
const b = 4;
const a = b * 12;
const c = b * 60;
const d = a / 3;
const i = c - a;
const j = (a - d) / 2;
}
};
__webpack_require__.m = b;
(()=>{
__webpack_require__.O = (c, b, d, e)=>{
for(var a = 0; a < b.length; a++){
Object.keys(__webpack_require__.O).every((c)=>__webpack_require__.O[c](b[a]));
}
};
})();
var a = __webpack_require__.O(undefined, [
532
], ()=>__webpack_require__(746));
a = __webpack_require__.O(a);
})();

View File

@ -0,0 +1,10 @@
export const IndexPage = (a)=>{
if (a === "loading") {
return 1;
} else if (a === "error") {
return 2;
} else {
return 3;
}
return 4;
};

View File

@ -0,0 +1,4 @@
var a = 0;
a = 2000;
console.log(a++);
export default a;

View File

@ -0,0 +1,15 @@
const a = (e, f, b, g)=>{
let a = (e & 0xffff) | 0, c = ((e >>> 16) & 0xffff) | 0, d = 0;
while(b !== 0){
d = b > 2000 ? 2000 : b;
b -= d;
do {
a = (a + f[g++]) | 0;
c = (c + a) | 0;
}while (--d)
a %= 65521;
c %= 65521;
}
return a | (c << 16) | 0;
};
export default a;

View File

@ -0,0 +1,5 @@
const a = "a" === "a";
if (a) {
console.log("Hey!");
}
console.log(a);

View File

@ -0,0 +1,4 @@
export var a;
export var b;
var c;
var d;

View File

@ -0,0 +1 @@
export const foo = (a)=>`${a + 1}-${a}`;

View File

@ -0,0 +1,4 @@
bar(new RegExp(""));
bar(new RegExp("", "u"));
bar(new RegExp("a"));
bar(new RegExp("a", "u"));

View File

@ -0,0 +1,9 @@
foo({
bar: function c(a, b) {
if (!(b ? a.quxA : a.quxB) && !(b ? a.corgeA : a.corgeB) && (b ? a.get("waldo") : a.waldo)) {
pass();
} else if (!(b ? a.quxA : a.quxB) && !(b ? a.get("waldo") : a.waldo) && (b ? a.corgeA : a.corgeB)) {
pass();
}
}
});

View File

@ -0,0 +1,12 @@
export function foo(a) {
switch(a){
case ENUM_VALUE:
{
const { data: b } = a;
call(b);
break;
}
default:
break;
}
}

View File

@ -0,0 +1,9 @@
B.c = {
get foo () {
for(var a = 1; a < 10; a++){}
}
};
var b;
export function setGetChildNodes(a) {
b = a;
}

View File

@ -0,0 +1,3 @@
export default function a() {
throw new Error(`Failed to recognize value \`${value}\` for property ` + `\`${property}\`.`);
};

View File

@ -0,0 +1,33 @@
import d, { extend as e } from "./define.js";
import { Color as f, rgbConvert as j, Rgb as k, darker as l, brighter as m } from "./color.js";
import { deg2rad as n, rad2deg as o } from "./math.js";
var g = -0.14861, a = +1.78277, h = -0.29227, b = -0.90649, c = +1.97294, p = c * b, q = c * a, r = a * h - b * g;
function s(a) {
if (a instanceof Cubehelix) return new Cubehelix(a.h, a.s, a.l, a.opacity);
if (!(a instanceof k)) a = j(a);
var n = a.r / 255, i = a.g / 255, l = a.b / 255, d = (r * l + p * n - q * i) / (r + p - q), e = l - d, f = (c * (i - d) - h * e) / b, m = Math.sqrt(f * f + e * e) / (c * d * (1 - d)), g = m ? Math.atan2(f, e) * o - 120 : NaN;
return new Cubehelix(g < 0 ? g + 360 : g, m, d, a.opacity);
}
export default function i(a, c, d, b) {
return arguments.length === 1 ? s(a) : new Cubehelix(a, c, d, b == null ? 1 : b);
};
export function Cubehelix(a, b, c, d) {
this.h = +a;
this.s = +b;
this.l = +c;
this.opacity = +d;
}
d(Cubehelix, i, e(f, {
brighter: function(a) {
a = a == null ? m : Math.pow(m, a);
return new Cubehelix(this.h, this.s, this.l * a, this.opacity);
},
darker: function(a) {
a = a == null ? l : Math.pow(l, a);
return new Cubehelix(this.h, this.s, this.l * a, this.opacity);
},
rgb: function() {
var i = isNaN(this.h) ? 0 : (this.h + 120) * n, d = +this.l, e = isNaN(this.s) ? 0 : this.s * d * (1 - d), f = Math.cos(i), j = Math.sin(i);
return new k(255 * (d + e * (g * f + a * j)), 255 * (d + e * (h * f + b * j)), 255 * (d + e * (c * f)), this.opacity);
}
}));

View File

@ -0,0 +1,552 @@
import { timeDay as a, timeSunday as b, timeMonday as c, timeThursday as d, timeYear as e, utcDay as f, utcSunday as g, utcMonday as h, utcThursday as i, utcYear as j } from "d3-time";
function k(a) {
if (0 <= a.y && a.y < 100) {
var b = new Date(-1, a.m, a.d, a.H, a.M, a.S, a.L);
b.setFullYear(a.y);
return b;
}
return new Date(a.y, a.m, a.d, a.H, a.M, a.S, a.L);
}
function l(a) {
if (0 <= a.y && a.y < 100) {
var b = new Date(Date.UTC(-1, a.m, a.d, a.H, a.M, a.S, a.L));
b.setUTCFullYear(a.y);
return b;
}
return new Date(Date.UTC(a.y, a.m, a.d, a.H, a.M, a.S, a.L));
}
function m(a, b, c) {
return {
y: a,
m: b,
d: c,
H: 0,
M: 0,
S: 0,
L: 0
};
}
export default function n(b) {
var g = b.dateTime, i = b.date, j = b.time, n = b.periods, p = b.days, q = b.shortDays, r = b.months, s = b.shortMonths;
var t = u(n), _ = v(n), at = u(p), aF = v(p), aG = u(q), aH = v(q), aI = u(r), aJ = v(r), aK = u(s), aL = v(s);
var d = {
a: aY,
A: aZ,
b: a$,
B: a_,
c: null,
d: Q,
e: Q,
f: V,
g: ae,
G: ag,
H: R,
I: S,
j: T,
L: U,
m: W,
M: X,
p: a0,
q: a1,
Q: aD,
s: aE,
S: Y,
u: Z,
U: $,
V: aa,
w: ab,
W: ac,
x: null,
X: null,
y: ad,
Y: af,
Z: ah,
"%": aC
};
var e = {
a: a2,
A: a3,
b: a4,
B: a5,
c: null,
d: ai,
e: ai,
f: an,
g: ay,
G: aA,
H: aj,
I: ak,
j: al,
L: am,
m: ao,
M: ap,
p: a6,
q: a7,
Q: aD,
s: aE,
S: aq,
u: ar,
U: as,
V: au,
w: av,
W: aw,
x: null,
X: null,
y: ax,
Y: az,
Z: aB,
"%": aC
};
var aM = {
a: aR,
A: aS,
b: aT,
B: aU,
c: aV,
d: G,
e: G,
f: M,
g: C,
G: B,
H: I,
I: I,
j: H,
L: L,
m: F,
M: J,
p: aQ,
q: E,
Q: O,
s: P,
S: K,
u: x,
U: y,
V: z,
w: w,
W: A,
x: aW,
X: aX,
y: C,
Y: B,
Z: D,
"%": N
};
d.x = aN(i, d);
d.X = aN(j, d);
d.c = aN(g, d);
e.x = aN(i, e);
e.X = aN(j, e);
e.c = aN(g, e);
function aN(a, b) {
return function(e) {
var f = [], c = -1, g = 0, j = a.length, d, h, i;
if (!(e instanceof Date)) e = new Date(+e);
while(++c < j){
if (a.charCodeAt(c) === 37) {
f.push(a.slice(g, c));
if ((h = o[(d = a.charAt(++c))]) != null) d = a.charAt(++c);
else h = d === "e" ? " " : "0";
if ((i = b[d])) d = i(e, h);
f.push(d);
g = c + 1;
}
}
f.push(a.slice(g, c));
return f.join("");
};
}
function aO(b, d) {
return function(j) {
var e = m(1900, undefined, 1), n = aP(e, b, (j += ""), 0), g, i;
if (n != j.length) return null;
if ("Q" in e) return new Date(e.Q);
if ("s" in e) return new Date(e.s * 1000 + ("L" in e ? e.L : 0));
if (d && !("Z" in e)) e.Z = 0;
if ("p" in e) e.H = (e.H % 12) + e.p * 12;
if (e.m === undefined) e.m = "q" in e ? e.q : 0;
if ("V" in e) {
if (e.V < 1 || e.V > 53) return null;
if (!("w" in e)) e.w = 1;
if ("Z" in e) {
(g = l(m(e.y, 0, 1))), (i = g.getUTCDay());
g = i > 4 || i === 0 ? h.ceil(g) : h(g);
g = f.offset(g, (e.V - 1) * 7);
e.y = g.getUTCFullYear();
e.m = g.getUTCMonth();
e.d = g.getUTCDate() + ((e.w + 6) % 7);
} else {
(g = k(m(e.y, 0, 1))), (i = g.getDay());
g = i > 4 || i === 0 ? c.ceil(g) : c(g);
g = a.offset(g, (e.V - 1) * 7);
e.y = g.getFullYear();
e.m = g.getMonth();
e.d = g.getDate() + ((e.w + 6) % 7);
}
} else if ("W" in e || "U" in e) {
if (!("w" in e)) e.w = "u" in e ? e.u % 7 : "W" in e ? 1 : 0;
i = "Z" in e ? l(m(e.y, 0, 1)).getUTCDay() : k(m(e.y, 0, 1)).getDay();
e.m = 0;
e.d = "W" in e ? ((e.w + 6) % 7) + e.W * 7 - ((i + 5) % 7) : e.w + e.U * 7 - ((i + 6) % 7);
}
if ("Z" in e) {
e.H += (e.Z / 100) | 0;
e.M += e.Z % 100;
return l(e);
}
return k(e);
};
}
function aP(g, c, e, b) {
var d = 0, h = c.length, i = e.length, a, f;
while(d < h){
if (b >= i) return -1;
a = c.charCodeAt(d++);
if (a === 37) {
a = c.charAt(d++);
f = aM[a in o ? c.charAt(d++) : a];
if (!f || (b = f(g, e, b)) < 0) return -1;
} else if (a != e.charCodeAt(b++)) {
return -1;
}
}
return b;
}
function aQ(c, d, b) {
var a = t.exec(d.slice(b));
return a ? ((c.p = _.get(a[0].toLowerCase())), b + a[0].length) : -1;
}
function aR(c, d, b) {
var a = aG.exec(d.slice(b));
return a ? ((c.w = aH.get(a[0].toLowerCase())), b + a[0].length) : -1;
}
function aS(c, d, b) {
var a = at.exec(d.slice(b));
return a ? ((c.w = aF.get(a[0].toLowerCase())), b + a[0].length) : -1;
}
function aT(c, d, b) {
var a = aK.exec(d.slice(b));
return a ? ((c.m = aL.get(a[0].toLowerCase())), b + a[0].length) : -1;
}
function aU(c, d, b) {
var a = aI.exec(d.slice(b));
return a ? ((c.m = aJ.get(a[0].toLowerCase())), b + a[0].length) : -1;
}
function aV(a, b, c) {
return aP(a, g, b, c);
}
function aW(a, b, c) {
return aP(a, i, b, c);
}
function aX(a, b, c) {
return aP(a, j, b, c);
}
function aY(a) {
return q[a.getDay()];
}
function aZ(a) {
return p[a.getDay()];
}
function a$(a) {
return s[a.getMonth()];
}
function a_(a) {
return r[a.getMonth()];
}
function a0(a) {
return n[+(a.getHours() >= 12)];
}
function a1(a) {
return 1 + ~~(a.getMonth() / 3);
}
function a2(a) {
return q[a.getUTCDay()];
}
function a3(a) {
return p[a.getUTCDay()];
}
function a4(a) {
return s[a.getUTCMonth()];
}
function a5(a) {
return r[a.getUTCMonth()];
}
function a6(a) {
return n[+(a.getUTCHours() >= 12)];
}
function a7(a) {
return 1 + ~~(a.getUTCMonth() / 3);
}
return {
format: function(b) {
var a = aN((b += ""), d);
a.toString = function() {
return b;
};
return a;
},
parse: function(b) {
var a = aO((b += ""), false);
a.toString = function() {
return b;
};
return a;
},
utcFormat: function(b) {
var a = aN((b += ""), e);
a.toString = function() {
return b;
};
return a;
},
utcParse: function(b) {
var a = aO((b += ""), true);
a.toString = function() {
return b;
};
return a;
}
};
};
var o = {
"-": "",
_: " ",
0: "0"
}, p = /^\s*\d+/, q = /^%/, r = /[\\^$*+?|[\]().{}]/g;
function s(a, f, c) {
var d = a < 0 ? "-" : "", b = (d ? -a : a) + "", e = b.length;
return (d + (e < c ? new Array(c - e + 1).join(f) + b : b));
}
function t(a) {
return a.replace(r, "\\$&");
}
function u(a) {
return new RegExp("^(?:" + a.map(t).join("|") + ")", "i");
}
function v(a) {
return new Map(a.map((a, b)=>[
a.toLowerCase(),
b
]));
}
function w(c, d, a) {
var b = p.exec(d.slice(a, a + 1));
return b ? ((c.w = +b[0]), a + b[0].length) : -1;
}
function x(c, d, a) {
var b = p.exec(d.slice(a, a + 1));
return b ? ((c.u = +b[0]), a + b[0].length) : -1;
}
function y(c, d, a) {
var b = p.exec(d.slice(a, a + 2));
return b ? ((c.U = +b[0]), a + b[0].length) : -1;
}
function z(c, d, a) {
var b = p.exec(d.slice(a, a + 2));
return b ? ((c.V = +b[0]), a + b[0].length) : -1;
}
function A(c, d, a) {
var b = p.exec(d.slice(a, a + 2));
return b ? ((c.W = +b[0]), a + b[0].length) : -1;
}
function B(c, d, a) {
var b = p.exec(d.slice(a, a + 4));
return b ? ((c.y = +b[0]), a + b[0].length) : -1;
}
function C(c, d, b) {
var a = p.exec(d.slice(b, b + 2));
return a ? ((c.y = +a[0] + (+a[0] > 68 ? 1900 : 2000)), b + a[0].length) : -1;
}
function D(c, d, b) {
var a = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(d.slice(b, b + 6));
return a ? ((c.Z = a[1] ? 0 : -(a[2] + (a[3] || "00"))), b + a[0].length) : -1;
}
function E(c, d, a) {
var b = p.exec(d.slice(a, a + 1));
return b ? ((c.q = b[0] * 3 - 3), a + b[0].length) : -1;
}
function F(c, d, a) {
var b = p.exec(d.slice(a, a + 2));
return b ? ((c.m = b[0] - 1), a + b[0].length) : -1;
}
function G(c, d, a) {
var b = p.exec(d.slice(a, a + 2));
return b ? ((c.d = +b[0]), a + b[0].length) : -1;
}
function H(c, d, a) {
var b = p.exec(d.slice(a, a + 3));
return b ? ((c.m = 0), (c.d = +b[0]), a + b[0].length) : -1;
}
function I(c, d, a) {
var b = p.exec(d.slice(a, a + 2));
return b ? ((c.H = +b[0]), a + b[0].length) : -1;
}
function J(c, d, a) {
var b = p.exec(d.slice(a, a + 2));
return b ? ((c.M = +b[0]), a + b[0].length) : -1;
}
function K(c, d, a) {
var b = p.exec(d.slice(a, a + 2));
return b ? ((c.S = +b[0]), a + b[0].length) : -1;
}
function L(c, d, a) {
var b = p.exec(d.slice(a, a + 3));
return b ? ((c.L = +b[0]), a + b[0].length) : -1;
}
function M(c, d, a) {
var b = p.exec(d.slice(a, a + 6));
return b ? ((c.L = Math.floor(b[0] / 1000)), a + b[0].length) : -1;
}
function N(d, c, a) {
var b = q.exec(c.slice(a, a + 1));
return b ? a + b[0].length : -1;
}
function O(c, d, b) {
var a = p.exec(d.slice(b));
return a ? ((c.Q = +a[0]), b + a[0].length) : -1;
}
function P(c, d, b) {
var a = p.exec(d.slice(b));
return a ? ((c.s = +a[0]), b + a[0].length) : -1;
}
function Q(a, b) {
return s(a.getDate(), b, 2);
}
function R(a, b) {
return s(a.getHours(), b, 2);
}
function S(a, b) {
return s(a.getHours() % 12 || 12, b, 2);
}
function T(b, c) {
return s(1 + a.count(e(b), b), c, 3);
}
function U(a, b) {
return s(a.getMilliseconds(), b, 3);
}
function V(a, b) {
return U(a, b) + "000";
}
function W(a, b) {
return s(a.getMonth() + 1, b, 2);
}
function X(a, b) {
return s(a.getMinutes(), b, 2);
}
function Y(a, b) {
return s(a.getSeconds(), b, 2);
}
function Z(b) {
var a = b.getDay();
return a === 0 ? 7 : a;
}
function $(a, c) {
return s(b.count(e(a) - 1, a), c, 2);
}
function _(a) {
var b = a.getDay();
return b >= 4 || b === 0 ? d(a) : d.ceil(a);
}
function aa(a, b) {
a = _(a);
return s(d.count(e(a), a) + (e(a).getDay() === 4), b, 2);
}
function ab(a) {
return a.getDay();
}
function ac(a, b) {
return s(c.count(e(a) - 1, a), b, 2);
}
function ad(a, b) {
return s(a.getFullYear() % 100, b, 2);
}
function ae(a, b) {
a = _(a);
return s(a.getFullYear() % 100, b, 2);
}
function af(a, b) {
return s(a.getFullYear() % 10000, b, 4);
}
function ag(a, c) {
var b = a.getDay();
a = b >= 4 || b === 0 ? d(a) : d.ceil(a);
return s(a.getFullYear() % 10000, c, 4);
}
function ah(b) {
var a = b.getTimezoneOffset();
return ((a > 0 ? "-" : ((a *= -1), "+")) + s((a / 60) | 0, "0", 2) + s(a % 60, "0", 2));
}
function ai(a, b) {
return s(a.getUTCDate(), b, 2);
}
function aj(a, b) {
return s(a.getUTCHours(), b, 2);
}
function ak(a, b) {
return s(a.getUTCHours() % 12 || 12, b, 2);
}
function al(a, b) {
return s(1 + f.count(j(a), a), b, 3);
}
function am(a, b) {
return s(a.getUTCMilliseconds(), b, 3);
}
function an(a, b) {
return am(a, b) + "000";
}
function ao(a, b) {
return s(a.getUTCMonth() + 1, b, 2);
}
function ap(a, b) {
return s(a.getUTCMinutes(), b, 2);
}
function aq(a, b) {
return s(a.getUTCSeconds(), b, 2);
}
function ar(b) {
var a = b.getUTCDay();
return a === 0 ? 7 : a;
}
function as(a, b) {
return s(g.count(j(a) - 1, a), b, 2);
}
function at(a) {
var b = a.getUTCDay();
return b >= 4 || b === 0 ? i(a) : i.ceil(a);
}
function au(a, b) {
a = at(a);
return s(i.count(j(a), a) + (j(a).getUTCDay() === 4), b, 2);
}
function av(a) {
return a.getUTCDay();
}
function aw(a, b) {
return s(h.count(j(a) - 1, a), b, 2);
}
function ax(a, b) {
return s(a.getUTCFullYear() % 100, b, 2);
}
function ay(a, b) {
a = at(a);
return s(a.getUTCFullYear() % 100, b, 2);
}
function az(a, b) {
return s(a.getUTCFullYear() % 10000, b, 4);
}
function aA(a, c) {
var b = a.getUTCDay();
a = b >= 4 || b === 0 ? i(a) : i.ceil(a);
return s(a.getUTCFullYear() % 10000, c, 4);
}
function aB() {
return "+0000";
}
function aC() {
return "%";
}
function aD(a) {
return +a;
}
function aE(a) {
return Math.floor(+a / 1000);
}

View File

@ -0,0 +1,259 @@
var a = p;
var c = /[A-Z]|^ms/g;
var d = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
var b = {
animationIterationCount: 1,
borderImageOutset: 1,
borderImageSlice: 1,
borderImageWidth: 1,
boxFlex: 1,
boxFlexGroup: 1,
boxOrdinalGroup: 1,
columnCount: 1,
columns: 1,
flex: 1,
flexGrow: 1,
flexPositive: 1,
flexShrink: 1,
flexNegative: 1,
flexOrder: 1,
gridRow: 1,
gridRowEnd: 1,
gridRowSpan: 1,
gridRowStart: 1,
gridColumn: 1,
gridColumnEnd: 1,
gridColumnSpan: 1,
gridColumnStart: 1,
msGridRow: 1,
msGridRowSpan: 1,
msGridColumn: 1,
msGridColumnSpan: 1,
fontWeight: 1,
lineHeight: 1,
opacity: 1,
order: 1,
orphans: 1,
tabSize: 1,
widows: 1,
zIndex: 1,
zoom: 1,
WebkitLineClamp: 1,
fillOpacity: 1,
floodOpacity: 1,
stopOpacity: 1,
strokeDasharray: 1,
strokeDashoffset: 1,
strokeMiterlimit: 1,
strokeOpacity: 1,
strokeWidth: 1
};
var e = b;
var f = function b(a) {
return a.charCodeAt(1) === 45;
};
var g = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
var h;
var i = l;
function j(c, d, a) {
if (a == null) {
return "";
}
if (a.__emotion_styles !== undefined) {
if (false) {}
return a;
}
switch(typeof a){
case "boolean":
{
return "";
}
case "object":
{
if (a.anim === 1) {
h = {
name: a.name,
styles: a.styles,
next: h
};
return a.name;
}
if (a.styles !== undefined) {
var b = a.next;
if (b !== undefined) {
while(b !== undefined){
h = {
name: b.name,
styles: b.styles,
next: h
};
b = b.next;
}
}
var f = a.styles + ";";
if (false) {}
return f;
}
return k(c, d, a);
}
case "function":
{
if (c !== undefined) {
var g = h;
var i = a(c);
h = g;
return j(c, d, i);
} else if (false) {}
break;
}
case "string":
if (false) {
var l, m;
}
break;
}
if (d == null) {
return a;
}
var e = d[a];
return e !== undefined ? e : a;
}
export function serializeStyles(a, e, f) {
if (a.length === 1 && typeof a[0] === "object" && a[0] !== null && a[0].styles !== undefined) {
return a[0];
}
var k = true;
var b = "";
h = undefined;
var c = a[0];
if (c == null || c.raw === undefined) {
k = false;
b += j(f, e, c);
} else {
if (false) {}
b += c[0];
}
for(var d = 1; d < a.length; d++){
b += j(f, e, a[d]);
if (k) {
if (false) {}
b += c[d];
}
}
var o;
if (false) {}
g.lastIndex = 0;
var l = "";
var m;
while((m = g.exec(b)) !== null){
l += "-" + m[1];
}
var n = i(b) + l;
if (false) {}
return {
name: n,
styles: b,
next: h
};
}
function k(h, c, e) {
var d = "";
if (Array.isArray(e)) {
for(var g = 0; g < e.length; g++){
d += j(h, c, e[g]) + ";";
}
} else {
for(var b in e){
var a = e[b];
if (typeof a !== "object") {
if (c != null && c[a] !== undefined) {
d += b + "{" + c[a] + "}";
} else if (m(a)) {
d += n(b) + ":" + o(b, a) + ";";
}
} else {
if (b === "NO_COMPONENT_SELECTOR" && "production" !== "production") {}
if (Array.isArray(a) && typeof a[0] === "string" && (c == null || c[a[0]] === undefined)) {
for(var f = 0; f < a.length; f++){
if (m(a[f])) {
d += n(b) + ":" + o(b, a[f]) + ";";
}
}
} else {
var i = j(h, c, a);
switch(b){
case "animation":
case "animationName":
{
d += n(b) + ":" + i + ";";
break;
}
default:
{
if (false) {}
d += b + "{" + i + "}";
}
}
}
}
}
}
return d;
}
function l(b) {
var a = 0;
var c, d = 0, e = b.length;
for(; e >= 4; ++d, e -= 4){
c = (b.charCodeAt(d) & 0xff) | ((b.charCodeAt(++d) & 0xff) << 8) | ((b.charCodeAt(++d) & 0xff) << 16) | ((b.charCodeAt(++d) & 0xff) << 24);
c = (c & 0xffff) * 0x5bd1e995 + (((c >>> 16) * 0xe995) << 16);
c ^= c >>> 24;
a = ((c & 0xffff) * 0x5bd1e995 + (((c >>> 16) * 0xe995) << 16)) ^ ((a & 0xffff) * 0x5bd1e995 + (((a >>> 16) * 0xe995) << 16));
}
switch(e){
case 3:
a ^= (b.charCodeAt(d + 2) & 0xff) << 16;
case 2:
a ^= (b.charCodeAt(d + 1) & 0xff) << 8;
case 1:
a ^= b.charCodeAt(d) & 0xff;
a = (a & 0xffff) * 0x5bd1e995 + (((a >>> 16) * 0xe995) << 16);
}
a ^= a >>> 13;
a = (a & 0xffff) * 0x5bd1e995 + (((a >>> 16) * 0xe995) << 16);
return ((a ^ (a >>> 15)) >>> 0).toString(36);
}
function m(a) {
return a != null && typeof a !== "boolean";
}
var n = a(function(a) {
return f(a) ? a : a.replace(c, "-$&").toLowerCase();
});
var o = function c(b, a) {
switch(b){
case "animation":
case "animationName":
{
if (typeof a === "string") {
return a.replace(d, function(c, a, b) {
h = {
name: a,
styles: b,
next: h
};
return a;
});
}
}
}
if (e[b] !== 1 && !f(b) && typeof a === "number" && a !== 0) {
return a + "px";
}
return a;
};
function p(a) {
var b = Object.create(null);
return function(c) {
if (b[c] === undefined) b[c] = a(c);
return b[c];
};
}

View File

@ -0,0 +1,14 @@
export function treeSubTree(e, d) {
let a = d instanceof Path ? d : new Path(d);
let b = e, c = pathGetFront(a);
while(c !== null){
const f = safeGet(b.node.children, c) || {
children: {},
childCount: 0
};
b = new Tree(c, b, f);
a = pathPopFront(a);
c = pathGetFront(a);
}
return b;
}

View File

@ -0,0 +1,230 @@
"use strict";
var b = require("@firebase/util");
var m = require("tslib");
var n = require("@firebase/component");
var e = require("@firebase/app");
var f = require("@firebase/logger");
function g(a) {
if (a && a.__esModule) return a;
var b = Object.create(null);
if (a) {
Object.keys(a).forEach(function(c) {
if (c !== "default") {
var d = Object.getOwnPropertyDescriptor(a, c);
Object.defineProperty(b, c, d.get ? d : {
enumerable: true,
get: function() {
return a[c];
}
});
}
});
}
b["default"] = a;
return Object.freeze(b);
}
var o = g(e);
var p = (function() {
function a(a, b) {
var c = this;
this._delegate = a;
this.firebase = b;
e._addComponent(a, new n.Component("app-compat", function() {
return c;
}, "PUBLIC"));
this.container = a.container;
}
Object.defineProperty(a.prototype, "automaticDataCollectionEnabled", {
get: function() {
return this._delegate.automaticDataCollectionEnabled;
},
set: function(a) {
this._delegate.automaticDataCollectionEnabled = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(a.prototype, "name", {
get: function() {
return this._delegate.name;
},
enumerable: false,
configurable: true
});
Object.defineProperty(a.prototype, "options", {
get: function() {
return this._delegate.options;
},
enumerable: false,
configurable: true
});
a.prototype.delete = function() {
var a = this;
return new Promise(function(b) {
a._delegate.checkDestroyed();
b();
}).then(function() {
a.firebase.INTERNAL.removeApp(a.name);
return e.deleteApp(a._delegate);
});
};
a.prototype._getService = function(d, b) {
var c;
if (b === void 0) {
b = e._DEFAULT_ENTRY_NAME;
}
this._delegate.checkDestroyed();
var a = this._delegate.container.getProvider(d);
if (!a.isInitialized() && ((c = a.getComponent()) === null || c === void 0 ? void 0 : c.instantiationMode) === "EXPLICIT") {
a.initialize();
}
return a.getImmediate({
identifier: b
});
};
a.prototype._removeServiceInstance = function(b, a) {
if (a === void 0) {
a = e._DEFAULT_ENTRY_NAME;
}
this._delegate.container.getProvider(b).clearInstance(a);
};
a.prototype._addComponent = function(a) {
e._addComponent(this._delegate, a);
};
a.prototype._addOrOverwriteComponent = function(a) {
e._addOrOverwriteComponent(this._delegate, a);
};
a.prototype.toJSON = function() {
return {
name: this.name,
automaticDataCollectionEnabled: this.automaticDataCollectionEnabled,
options: this.options
};
};
return a;
})();
var a;
var h = ((a = {}), (a["no-app"] = "No Firebase App '{$appName}' has been created - " + "call Firebase App.initializeApp()"), (a["invalid-app-argument"] = "firebase.{$appName}() takes either no argument or a " + "Firebase App instance."), a);
var q = new b.ErrorFactory("app-compat", "Firebase", h);
function r(c) {
var e = {};
var a = {
__esModule: true,
initializeApp: g,
app: d,
registerVersion: o.registerVersion,
setLogLevel: o.setLogLevel,
onLog: o.onLog,
apps: null,
SDK_VERSION: o.SDK_VERSION,
INTERNAL: {
registerComponent: i,
removeApp: f,
useAsService: j,
modularAPIs: o
}
};
a["default"] = a;
Object.defineProperty(a, "apps", {
get: h
});
function f(a) {
delete e[a];
}
function d(a) {
a = a || o._DEFAULT_ENTRY_NAME;
if (!b.contains(e, a)) {
throw q.create("no-app", {
appName: a
});
}
return e[a];
}
d["App"] = c;
function g(h, f) {
if (f === void 0) {
f = {};
}
var d = o.initializeApp(h, f);
if (b.contains(e, d.name)) {
return e[d.name];
}
var g = new c(d, a);
e[d.name] = g;
return g;
}
function h() {
return Object.keys(e).map(function(a) {
return e[a];
});
}
function i(e) {
var h = e.name;
var f = h.replace("-compat", "");
if (o._registerComponent(e) && e.type === "PUBLIC") {
var g = function(a) {
if (a === void 0) {
a = d();
}
if (typeof a[f] !== "function") {
throw q.create("invalid-app-argument", {
appName: h
});
}
return a[f]();
};
if (e.serviceProps !== undefined) {
b.deepExtend(g, e.serviceProps);
}
a[f] = g;
c.prototype[f] = function() {
var b = [];
for(var a = 0; a < arguments.length; a++){
b[a] = arguments[a];
}
var c = this._getService.bind(this, h);
return c.apply(this, e.multipleInstances ? b : []);
};
}
return e.type === "PUBLIC" ? a[f] : null;
}
function j(c, a) {
if (a === "serverAuth") {
return null;
}
var b = a;
return b;
}
return a;
}
function i() {
var a = r(p);
a.INTERNAL = m.__assign(m.__assign({}, a.INTERNAL), {
createFirebaseNamespace: i,
extendNamespace: c,
createSubscribe: b.createSubscribe,
ErrorFactory: b.ErrorFactory,
deepExtend: b.deepExtend
});
function c(c) {
b.deepExtend(a, c);
}
return a;
}
var j = i();
var c = new f.Logger("@firebase/app-compat");
var s = "@firebase/app-compat";
var t = "0.1.5";
function k(a) {
e.registerVersion(s, t, a);
}
if (b.isBrowser() && self.firebase !== undefined) {
c.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");
var d = self.firebase.SDK_VERSION;
if (d && d.indexOf("LITE") >= 0) {
c.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ");
}
}
var l = j;
k();
module.exports = l;

View File

@ -0,0 +1,83 @@
push({
"": function() {
(function() {
function za() {
if (/$/) try {
return eval(a);
} catch (b) {}
}
function Rb(a) {
return p() ? JSON : za();
}
h.get = function(b) {
return null == b ? null : Rb(b);
};
})();
},
"App.jsx": function() {
var b = "";
var c = "";
var d = "";
var e = "";
var f = "";
var g = "";
var i = "";
var j = "";
var k = "";
var l = "";
var m = "";
var n = "";
var o = "";
var q = "";
var r = "";
var s = "";
var t = "";
var u = "";
var v = "";
var w = "";
var x = "";
var y = "";
var z = "";
var A = "";
var B = "";
var C = "";
var D = "";
var E = "";
var F = "";
var H = "";
var G = {
shadowmap_pars_vertex: b,
shadowmap_vertex: c,
shadowmask_pars_fragment: d,
skinbase_vertex: e,
skinning_pars_vertex: f,
skinning_vertex: g,
skinnormal_vertex: i,
specularmap_fragment: j,
specularmap_pars_fragment: k,
tonemapping_fragment: l,
tonemapping_pars_fragment: m,
uv_pars_fragment: n,
uv_pars_vertex: o,
uv_vertex: q,
uv2_pars_fragment: r,
uv2_pars_vertex: s,
uv2_vertex: t,
worldpos_vertex: u,
cube_frag: v,
cube_vert: w,
depth_frag: x,
depth_vert: y,
distanceRGBA_frag: z,
distanceRGBA_vert: A,
equirect_frag: B,
equirect_vert: C,
linedashed_frag: D,
linedashed_vert: E,
meshphong_frag: F
};
ShaderLib.physical = {
x: G.meshphysical_frag
};
}
});

View File

@ -0,0 +1,10 @@
const b = 3;
const c = 4;
const d = "3";
const e = "4";
const f = {};
const g = {};
const h = true;
const a = false;
const i = null;
console.log(b === c, d === e, f === g, h === a, a === i);

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,25 @@
export default function a(b) {
var a = 0;
var c, d = 0, e = b.length;
for(; e >= 4; ++d, e -= 4){
c = (b.charCodeAt(d) & 0xff) | ((b.charCodeAt(++d) & 0xff) << 8) | ((b.charCodeAt(++d) & 0xff) << 16) | ((b.charCodeAt(++d) & 0xff) << 24);
c = (c & 0xffff) * 0x5bd1e995 + (((c >>> 16) * 0xe995) << 16);
c ^= c >>> 24;
a = ((c & 0xffff) * 0x5bd1e995 + (((c >>> 16) * 0xe995) << 16)) ^ ((a & 0xffff) * 0x5bd1e995 + (((a >>> 16) * 0xe995) << 16));
}
switch(e){
case 3:
a ^= (b.charCodeAt(d + 2) & 0xff) << 16;
case 2:
a ^= (b.charCodeAt(d + 1) & 0xff) << 8;
case 1:
a ^= b.charCodeAt(d) & 0xff;
a = (a & 0xffff) * 0x5bd1e995 + (((a >>> 16) * 0xe995) << 16);
}
a ^= a >>> 13;
a = (a & 0xffff) * 0x5bd1e995 + (((a >>> 16) * 0xe995) << 16);
return ((a ^ (a >>> 15)) >>> 0).toString(36);
};
function b(a) {
return a != null && typeof a !== "boolean";
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,284 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var d = i(require("react"));
var a = g(require("prop-types"));
var e = g(require("./Item"));
var f = g(require("./compareObjects"));
function g(a) {
return a && a.__esModule ? a : {
default: a
};
}
function h() {
if (typeof WeakMap !== "function") return null;
var a = new WeakMap();
h = function b() {
return a;
};
return a;
}
function i(a) {
if (a && a.__esModule) {
return a;
}
if (a === null || (j(a) !== "object" && typeof a !== "function")) {
return {
default: a
};
}
var b = h();
if (b && b.has(a)) {
return b.get(a);
}
var c = {};
var f = Object.defineProperty && Object.getOwnPropertyDescriptor;
for(var d in a){
if (Object.prototype.hasOwnProperty.call(a, d)) {
var e = f ? Object.getOwnPropertyDescriptor(a, d) : null;
if (e && (e.get || e.set)) {
Object.defineProperty(c, d, e);
} else {
c[d] = a[d];
}
}
}
c["default"] = a;
if (b) {
b.set(a, c);
}
return c;
}
function j(a) {
"@babel/helpers - typeof";
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
j = function b(a) {
return typeof a;
};
} else {
j = function b(a) {
return a && typeof Symbol === "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
};
}
return j(a);
}
function k() {
k = Object.assign || function(d) {
for(var a = 1; a < arguments.length; a++){
var b = arguments[a];
for(var c in b){
if (Object.prototype.hasOwnProperty.call(b, c)) {
d[c] = b[c];
}
}
}
return d;
};
return k.apply(this, arguments);
}
function l(c, d) {
var a = Object.keys(c);
if (Object.getOwnPropertySymbols) {
var b = Object.getOwnPropertySymbols(c);
if (d) b = b.filter(function(a) {
return Object.getOwnPropertyDescriptor(c, a).enumerable;
});
a.push.apply(a, b);
}
return a;
}
function m(d) {
for(var a = 1; a < arguments.length; a++){
var b = arguments[a] != null ? arguments[a] : {};
if (a % 2) {
l(Object(b), true).forEach(function(a) {
c(d, a, b[a]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(d, Object.getOwnPropertyDescriptors(b));
} else {
l(Object(b)).forEach(function(a) {
Object.defineProperty(d, a, Object.getOwnPropertyDescriptor(b, a));
});
}
}
return d;
}
function n(a, b) {
if (!(a instanceof b)) {
throw new TypeError("Cannot call a class as a function");
}
}
function o(d, c) {
for(var b = 0; b < c.length; b++){
var a = c[b];
a.enumerable = a.enumerable || false;
a.configurable = true;
if ("value" in a) a.writable = true;
Object.defineProperty(d, a.key, a);
}
}
function p(a, b, c) {
if (b) o(a.prototype, b);
if (c) o(a, c);
return a;
}
function q(a) {
return function() {
var c = u(a), b;
if (t()) {
var d = u(this).constructor;
b = Reflect.construct(c, arguments, d);
} else {
b = c.apply(this, arguments);
}
return r(this, b);
};
}
function r(b, a) {
if (a && (j(a) === "object" || typeof a === "function")) {
return a;
}
return s(b);
}
function s(a) {
if (a === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return a;
}
function t() {
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Date.prototype.toString.call(Reflect.construct(Date, [], function() {}));
return true;
} catch (a) {
return false;
}
}
function u(a) {
u = Object.setPrototypeOf ? Object.getPrototypeOf : function b(a) {
return a.__proto__ || Object.getPrototypeOf(a);
};
return u(a);
}
function v(b, a) {
if (typeof a !== "function" && a !== null) {
throw new TypeError("Super expression must either be null or a function");
}
b.prototype = Object.create(a && a.prototype, {
constructor: {
value: b,
writable: true,
configurable: true
}
});
if (a) w(b, a);
}
function w(a, b) {
w = Object.setPrototypeOf || function c(a, b) {
a.__proto__ = b;
return a;
};
return w(a, b);
}
function c(a, b, c) {
if (b in a) {
Object.defineProperty(a, b, {
value: c,
enumerable: true,
configurable: true,
writable: true
});
} else {
a[b] = c;
}
return a;
}
var b = (function(b) {
v(a, b);
var g = q(a);
function a() {
var d;
n(this, a);
for(var e = arguments.length, f = new Array(e), b = 0; b < e; b++){
f[b] = arguments[b];
}
d = g.call.apply(g, [
this
].concat(f));
c(s(d), "storeHighlightedItemReference", function(a) {
d.props.onHighlightedItemChange(a === null ? null : a.item);
});
return d;
}
p(a, [
{
key: "shouldComponentUpdate",
value: function b(a) {
return (0, f["default"])(a, this.props, [
"itemProps",
]);
}
},
{
key: "render",
value: function j() {
var l = this;
var a = this.props, f = a.items, g = a.itemProps, n = a.renderItem, o = a.renderItemData, b = a.sectionIndex, p = a.highlightedItemIndex, q = a.getItemId, h = a.theme, c = a.keyPrefix;
var i = b === null ? c : "".concat(c, "section-").concat(b, "-");
var r = typeof g === "function";
return d["default"].createElement("ul", k({
role: "listbox"
}, h("".concat(i, "items-list"), "itemsList")), f.map(function(j, a) {
var s = a === 0;
var c = a === p;
var t = "".concat(i, "item-").concat(a);
var u = r ? g({
sectionIndex: b,
itemIndex: a
}) : g;
var f = m({
id: q(b, a),
"aria-selected": c
}, h(t, "item", s && "itemFirst", c && "itemHighlighted"), {}, u);
if (c) {
f.ref = l.storeHighlightedItemReference;
}
return d["default"].createElement(e["default"], k({}, f, {
sectionIndex: b,
isHighlighted: c,
itemIndex: a,
item: j,
renderItem: n,
renderItemData: o
}));
}));
}
},
]);
return a;
})(d.Component);
exports["default"] = b;
c(b, "propTypes", {
items: a["default"].array.isRequired,
itemProps: a["default"].oneOfType([
a["default"].object,
a["default"].func,
]),
renderItem: a["default"].func.isRequired,
renderItemData: a["default"].object.isRequired,
sectionIndex: a["default"].number,
highlightedItemIndex: a["default"].number,
onHighlightedItemChange: a["default"].func.isRequired,
getItemId: a["default"].func.isRequired,
theme: a["default"].func.isRequired,
keyPrefix: a["default"].string.isRequired
});
c(b, "defaultProps", {
sectionIndex: null
});

View File

@ -0,0 +1,173 @@
import { jsx as d } from "react/jsx-runtime";
import e, { Component as c } from "react";
import a from "prop-types";
import f from "./Item";
import g from "./compareObjects";
function h(a) {
if (a === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return a;
}
function i(a, b) {
if (!(a instanceof b)) {
throw new TypeError("Cannot call a class as a function");
}
}
function j(d, c) {
for(var b = 0; b < c.length; b++){
var a = c[b];
a.enumerable = a.enumerable || false;
a.configurable = true;
if ("value" in a) a.writable = true;
Object.defineProperty(d, a.key, a);
}
}
function k(a, b, c) {
if (b) j(a.prototype, b);
if (c) j(a, c);
return a;
}
function l(a, b, c) {
if (b in a) {
Object.defineProperty(a, b, {
value: c,
enumerable: true,
configurable: true,
writable: true
});
} else {
a[b] = c;
}
return a;
}
function m(a) {
m = Object.setPrototypeOf ? Object.getPrototypeOf : function b(a) {
return a.__proto__ || Object.getPrototypeOf(a);
};
return m(a);
}
function n(b, a) {
if (typeof a !== "function" && a !== null) {
throw new TypeError("Super expression must either be null or a function");
}
b.prototype = Object.create(a && a.prototype, {
constructor: {
value: b,
writable: true,
configurable: true
}
});
if (a) q(b, a);
}
function o(d) {
for(var a = 1; a < arguments.length; a++){
var c = arguments[a] != null ? arguments[a] : {};
var b = Object.keys(c);
if (typeof Object.getOwnPropertySymbols === "function") {
b = b.concat(Object.getOwnPropertySymbols(c).filter(function(a) {
return Object.getOwnPropertyDescriptor(c, a).enumerable;
}));
}
b.forEach(function(a) {
l(d, a, c[a]);
});
}
return d;
}
function p(b, a) {
if (a && (r(a) === "object" || typeof a === "function")) {
return a;
}
return h(b);
}
function q(a, b) {
q = Object.setPrototypeOf || function c(a, b) {
a.__proto__ = b;
return a;
};
return q(a, b);
}
var r = function(a) {
return a && typeof Symbol !== "undefined" && a.constructor === Symbol ? "symbol" : typeof a;
};
var b = (function(b) {
"use strict";
n(a, b);
function a() {
i(this, a);
var b;
b = p(this, m(a).apply(this, arguments));
b.storeHighlightedItemReference = function(a) {
b.props.onHighlightedItemChange(a === null ? null : a.item);
};
return b;
}
k(a, [
{
key: "shouldComponentUpdate",
value: function b(a) {
return g(a, this.props, [
"itemProps"
]);
}
},
{
key: "render",
value: function j() {
var k = this;
var a = this.props, e = a.items, g = a.itemProps, l = a.renderItem, m = a.renderItemData, b = a.sectionIndex, n = a.highlightedItemIndex, p = a.getItemId, h = a.theme, c = a.keyPrefix;
var i = b === null ? c : "".concat(c, "section-").concat(b, "-");
var q = typeof g === "function";
return d("ul", o({
role: "listbox"
}, h("".concat(i, "items-list"), "itemsList"), {
children: e.map(function(j, a) {
var r = a === 0;
var c = a === n;
var s = "".concat(i, "item-").concat(a);
var t = q ? g({
sectionIndex: b,
itemIndex: a
}) : g;
var e = o({
id: p(b, a),
"aria-selected": c
}, h(s, "item", r && "itemFirst", c && "itemHighlighted"), t);
if (c) {
e.ref = k.storeHighlightedItemReference;
}
return d(f, o({}, e, {
sectionIndex: b,
isHighlighted: c,
itemIndex: a,
item: j,
renderItem: l,
renderItemData: m
}));
})
}));
}
},
]);
return a;
})(c);
b.propTypes = {
items: a.array.isRequired,
itemProps: a.oneOfType([
a.object,
a.func
]),
renderItem: a.func.isRequired,
renderItemData: a.object.isRequired,
sectionIndex: a.number,
highlightedItemIndex: a.number,
onHighlightedItemChange: a.func.isRequired,
getItemId: a.func.isRequired,
theme: a.func.isRequired,
keyPrefix: a.string.isRequired
};
b.defaultProps = {
sectionIndex: null
};
export { b as default };

View File

@ -0,0 +1,15 @@
export function formatNumber(f) {
var g, a, d, b, i = f < 0 ? "-" : "";
g = Math.abs(f).toFixed(s.options.decimalPlaces);
var e = (g += "").split(".");
if (((a = e[0]), (d = e.length > 1 ? s.options.decimal + e[1] : ""), s.options.useGrouping)) {
b = "";
for(var c = 0, h = a.length; c < h; ++c)0 !== c && c % 3 == 0 && (b = s.options.separator + b), (b = a[h - c - 1] + b);
a = b;
}
return (s.options.numerals && s.options.numerals.length && ((a = a.replace(/[0-9]/g, function(a) {
return s.options.numerals[+a];
})), (d = d.replace(/[0-9]/g, function(a) {
return s.options.numerals[+a];
}))), i + s.options.prefix + a + d + s.options.suffix);
}

View File

@ -0,0 +1,29 @@
import { defer as a } from "./utils";
export default function b(c) {
const d = [];
let e = false;
function b() {
if (e) {
return;
}
e = true;
a(()=>{
e = false;
c();
});
}
return {
registerWidget (a) {
d.push(a);
b();
return function c() {
d.splice(d.indexOf(a), 1);
b();
};
},
update: b,
getWidgets () {
return d;
}
};
};

View File

@ -0,0 +1,366 @@
import a from "algoliasearch-helper";
import b from "./createWidgetsManager";
import c from "./createStore";
import { HIGHLIGHT_TAGS as d } from "./highlight";
import { hasMultipleIndices as e } from "./indexUtils";
import { version as f } from "react";
import g from "./version";
function h(a) {
if (typeof a.addAlgoliaAgent === "function") {
a.addAlgoliaAgent(`react (${f})`);
a.addAlgoliaAgent(`react-instantsearch (${g})`);
}
}
const i = (a)=>e({
ais: a.props.contextValue,
multiIndexContext: a.props.indexContextValue
});
const j = (a, b)=>a.props.indexContextValue.targetedIndex === b;
const k = (a)=>Boolean(a.props.indexId);
const l = (a, b)=>a.props.indexId === b;
const m = (c, d)=>{
const a = k(c);
const b = k(d);
if (a && !b) {
return -1;
}
if (!a && b) {
return 1;
}
return 0;
};
function n(a) {
const b = (a)=>Object.prototype.toString.call(a) === "[object Object]" || Object.prototype.toString.call(a) === "[object Array]";
const c = (a, ...b)=>{
let c = 0;
return a.replace(/%s/g, ()=>encodeURIComponent(b[c++]));
};
return Object.keys(a).map((d)=>c("%s=%s", d, b(a[d]) ? JSON.stringify(a[d]) : a[d])).join("&");
}
export default function o({ indexName: g , initialState: q = {} , searchClient: e , resultsState: f , stalledSearchDelay: C , }) {
const o = a(e, g, {
...d
});
h(e);
o.on("search", K).on("result", I({
indexId: g
})).on("error", J);
let D = false;
let E = null;
let F = o.state;
const r = b(P);
L(e, f);
const s = c({
widgets: q,
metadata: p(f),
results: O(f),
error: null,
searching: false,
isSearchStalled: true,
searchingForFacetValues: false
});
function t() {
D = true;
}
function u(a) {
h(a);
o.setClient(a);
H();
}
function v() {
o.clearCache();
H();
}
function G(a) {
return r.getWidgets().filter((a)=>Boolean(a.getMetadata)).map((b)=>b.getMetadata(a));
}
function w() {
const a = r.getWidgets().filter((a)=>Boolean(a.getSearchParameters)).filter((a)=>!i(a) && !k(a)).reduce((a, b)=>b.getSearchParameters(a), F);
const b = r.getWidgets().filter((a)=>Boolean(a.getSearchParameters)).filter((a)=>{
const b = i(a) && j(a, g);
const c = k(a) && l(a, g);
return b || c;
}).sort(m).reduce((a, b)=>b.getSearchParameters(a), a);
const c = r.getWidgets().filter((a)=>Boolean(a.getSearchParameters)).filter((a)=>{
const b = i(a) && !j(a, g);
const c = k(a) && !l(a, g);
return (b || c);
}).sort(m).reduce((b, a)=>{
const c = i(a) ? a.props.indexContextValue.targetedIndex : a.props.indexId;
const d = b[c] || [];
return {
...b,
[c]: d.concat(a)
};
}, {});
const d = Object.keys(c).map((b)=>({
parameters: c[b].reduce((a, b)=>b.getSearchParameters(a), a),
indexId: b
}));
return {
mainParameters: b,
derivedParameters: d
};
}
function H() {
if (!D) {
const { mainParameters: a , derivedParameters: b } = w(o.state);
o.derivedHelpers.slice().forEach((a)=>{
a.detach();
});
b.forEach(({ indexId: a , parameters: c })=>{
const b = o.derive(()=>c);
b.on("result", I({
indexId: a
})).on("error", J);
});
o.setState(a);
o.search();
}
}
function I({ indexId: a }) {
return (c)=>{
const d = s.getState();
const e = !o.derivedHelpers.length;
let b = d.results ? d.results : {};
b = !e && b.getFacetByName ? {} : b;
if (!e) {
b = {
...b,
[a]: c.results
};
} else {
b = c.results;
}
const f = s.getState();
let g = f.isSearchStalled;
if (!o.hasPendingRequests()) {
clearTimeout(E);
E = null;
g = false;
}
const { resultsFacetValues: i , ...h } = f;
s.setState({
...h,
results: b,
isSearchStalled: g,
searching: false,
error: null
});
};
}
function J({ error: c }) {
const a = s.getState();
let b = a.isSearchStalled;
if (!o.hasPendingRequests()) {
clearTimeout(E);
b = false;
}
const { resultsFacetValues: e , ...d } = a;
s.setState({
...d,
isSearchStalled: b,
error: c,
searching: false
});
}
function K() {
if (!E) {
E = setTimeout(()=>{
const { resultsFacetValues: b , ...a } = s.getState();
s.setState({
...a,
isSearchStalled: true
});
}, C);
}
}
function L(a, b) {
if (!b) {
return;
}
if ((!a.transporter || a._cacheHydrated) && (!a._useCache || typeof a.addAlgoliaAgent !== "function")) {
return;
}
if (a.transporter && !a._cacheHydrated) {
a._cacheHydrated = true;
const c = a.search;
a.search = (b, ...d)=>{
const e = b.map((a)=>({
...a,
params: n(a.params)
}));
return a.transporter.responsesCache.get({
method: "search",
args: [
e,
...d
]
}, ()=>{
return c(b, ...d);
});
};
}
if (Array.isArray(b.results)) {
M(a, b.results);
return;
}
N(a, b);
}
function M(a, b) {
if (a.transporter) {
a.transporter.responsesCache.set({
method: "search",
args: [
b.reduce((a, b)=>a.concat(b.rawResults.map((a)=>({
indexName: a.index,
params: a.params
}))), []),
]
}, {
results: b.reduce((a, b)=>a.concat(b.rawResults), [])
});
return;
}
const c = `/1/indexes/*/queries_body_${JSON.stringify({
requests: b.reduce((a, b)=>a.concat(b.rawResults.map((a)=>({
indexName: a.index,
params: a.params
}))), [])
})}`;
a.cache = {
...a.cache,
[c]: JSON.stringify({
results: b.reduce((a, b)=>a.concat(b.rawResults), [])
})
};
}
function N(a, b) {
if (a.transporter) {
a.transporter.responsesCache.set({
method: "search",
args: [
b.rawResults.map((a)=>({
indexName: a.index,
params: a.params
})),
]
}, {
results: b.rawResults
});
return;
}
const c = `/1/indexes/*/queries_body_${JSON.stringify({
requests: b.rawResults.map((a)=>({
indexName: a.index,
params: a.params
}))
})}`;
a.cache = {
...a.cache,
[c]: JSON.stringify({
results: b.rawResults
})
};
}
function O(b) {
if (!b) {
return null;
}
if (Array.isArray(b.results)) {
return b.results.reduce((c, b)=>({
...c,
[b._internalIndexId]: new a.SearchResults(new a.SearchParameters(b.state), b.rawResults)
}), {});
}
return new a.SearchResults(new a.SearchParameters(b.state), b.rawResults);
}
function P() {
const a = G(s.getState().widgets);
s.setState({
...s.getState(),
metadata: a,
searching: true
});
H();
}
function x(a) {
const b = s.getState().widgets;
return r.getWidgets().filter((a)=>Boolean(a.transitionState)).reduce((a, c)=>c.transitionState(b, a), a);
}
function y(a) {
const b = G(a);
s.setState({
...s.getState(),
widgets: a,
metadata: b,
searching: true
});
H();
}
function z({ facetName: a , query: b , maxFacetHits: c = 10 }) {
const d = Math.max(1, Math.min(c, 100));
s.setState({
...s.getState(),
searchingForFacetValues: true
});
o.searchForFacetValues(a, b, d).then((c)=>{
s.setState({
...s.getState(),
error: null,
searchingForFacetValues: false,
resultsFacetValues: {
...s.getState().resultsFacetValues,
[a]: c.facetHits,
query: b
}
});
}, (a)=>{
s.setState({
...s.getState(),
searchingForFacetValues: false,
error: a
});
}).catch((a)=>{
setTimeout(()=>{
throw a;
});
});
}
function A(a) {
F = F.setIndex(a);
}
function B() {
return s.getState().metadata.reduce((a, b)=>typeof b.id !== "undefined" ? a.concat(b.id) : a, []);
}
return {
store: s,
widgetsManager: r,
getWidgetsIds: B,
getSearchParameters: w,
onSearchForFacetValues: z,
onExternalStateUpdate: y,
transitionState: x,
updateClient: u,
updateIndex: A,
clearCache: v,
skipSearch: t
};
};
function p(a) {
if (!a) {
return [];
}
return a.metadata.map((a)=>({
value: ()=>({}),
...a,
items: a.items && a.items.map((a)=>({
value: ()=>({}),
...a,
items: a.items && a.items.map((a)=>({
value: ()=>({}),
...a
}))
}))
}));
}

View File

@ -0,0 +1,394 @@
import a from "algoliasearch-helper";
import b from "./createStore";
import { HIGHLIGHT_TAGS as c } from "./highlight";
import { hasMultipleIndices as d } from "./indexUtils";
import { version as e } from "react";
import f from "./version";
import { defer as g } from "./utils";
function h(b) {
const c = [];
let d = false;
function a() {
if (d) {
return;
}
d = true;
g(()=>{
d = false;
b();
});
}
return {
registerWidget (b) {
c.push(b);
a();
return function d() {
c.splice(c.indexOf(b), 1);
a();
};
},
update: a,
getWidgets () {
return c;
}
};
}
function i(a) {
if (typeof a.addAlgoliaAgent === "function") {
a.addAlgoliaAgent(`react (${e})`);
a.addAlgoliaAgent(`react-instantsearch (${f})`);
}
}
const j = (a)=>d({
ais: a.props.contextValue,
multiIndexContext: a.props.indexContextValue
});
const k = (a, b)=>a.props.indexContextValue.targetedIndex === b;
const l = (a)=>Boolean(a.props.indexId);
const m = (a, b)=>a.props.indexId === b;
const n = (c, d)=>{
const a = l(c);
const b = l(d);
if (a && !b) {
return -1;
}
if (!a && b) {
return 1;
}
return 0;
};
function o(a) {
const b = (a)=>Object.prototype.toString.call(a) === "[object Object]" || Object.prototype.toString.call(a) === "[object Array]";
const c = (a, ...b)=>{
let c = 0;
return a.replace(/%s/g, ()=>encodeURIComponent(b[c++]));
};
return Object.keys(a).map((d)=>c("%s=%s", d, b(a[d]) ? JSON.stringify(a[d]) : a[d])).join("&");
}
export default function p({ indexName: f , initialState: p = {} , searchClient: d , resultsState: e , stalledSearchDelay: C , }) {
const g = a(d, f, {
...c
});
i(d);
g.on("search", K).on("result", I({
indexId: f
})).on("error", J);
let D = false;
let E = null;
let F = g.state;
const r = h(P);
L(d, e);
const s = b({
widgets: p,
metadata: q(e),
results: O(e),
error: null,
searching: false,
isSearchStalled: true,
searchingForFacetValues: false
});
function t() {
D = true;
}
function u(a) {
i(a);
g.setClient(a);
H();
}
function v() {
g.clearCache();
H();
}
function G(a) {
return r.getWidgets().filter((a)=>Boolean(a.getMetadata)).map((b)=>b.getMetadata(a));
}
function w() {
const a = r.getWidgets().filter((a)=>Boolean(a.getSearchParameters)).filter((a)=>!j(a) && !l(a)).reduce((a, b)=>b.getSearchParameters(a), F);
const b = r.getWidgets().filter((a)=>Boolean(a.getSearchParameters)).filter((a)=>{
const b = j(a) && k(a, f);
const c = l(a) && m(a, f);
return b || c;
}).sort(n).reduce((a, b)=>b.getSearchParameters(a), a);
const c = r.getWidgets().filter((a)=>Boolean(a.getSearchParameters)).filter((a)=>{
const b = j(a) && !k(a, f);
const c = l(a) && !m(a, f);
return (b || c);
}).sort(n).reduce((b, a)=>{
const c = j(a) ? a.props.indexContextValue.targetedIndex : a.props.indexId;
const d = b[c] || [];
return {
...b,
[c]: d.concat(a)
};
}, {});
const d = Object.keys(c).map((b)=>({
parameters: c[b].reduce((a, b)=>b.getSearchParameters(a), a),
indexId: b
}));
return {
mainParameters: b,
derivedParameters: d
};
}
function H() {
if (!D) {
const { mainParameters: a , derivedParameters: b } = w(g.state);
g.derivedHelpers.slice().forEach((a)=>{
a.detach();
});
b.forEach(({ indexId: a , parameters: c })=>{
const b = g.derive(()=>c);
b.on("result", I({
indexId: a
})).on("error", J);
});
g.setState(a);
g.search();
}
}
function I({ indexId: a }) {
return (c)=>{
const d = s.getState();
const e = !g.derivedHelpers.length;
let b = d.results ? d.results : {};
b = !e && b.getFacetByName ? {} : b;
if (!e) {
b = {
...b,
[a]: c.results
};
} else {
b = c.results;
}
const f = s.getState();
let h = f.isSearchStalled;
if (!g.hasPendingRequests()) {
clearTimeout(E);
E = null;
h = false;
}
const { resultsFacetValues: j , ...i } = f;
s.setState({
...i,
results: b,
isSearchStalled: h,
searching: false,
error: null
});
};
}
function J({ error: c }) {
const a = s.getState();
let b = a.isSearchStalled;
if (!g.hasPendingRequests()) {
clearTimeout(E);
b = false;
}
const { resultsFacetValues: e , ...d } = a;
s.setState({
...d,
isSearchStalled: b,
error: c,
searching: false
});
}
function K() {
if (!E) {
E = setTimeout(()=>{
const { resultsFacetValues: b , ...a } = s.getState();
s.setState({
...a,
isSearchStalled: true
});
}, C);
}
}
function L(a, b) {
if (!b) {
return;
}
if ((!a.transporter || a._cacheHydrated) && (!a._useCache || typeof a.addAlgoliaAgent !== "function")) {
return;
}
if (a.transporter && !a._cacheHydrated) {
a._cacheHydrated = true;
const c = a.search;
a.search = (b, ...d)=>{
const e = b.map((a)=>({
...a,
params: o(a.params)
}));
return a.transporter.responsesCache.get({
method: "search",
args: [
e,
...d
]
}, ()=>{
return c(b, ...d);
});
};
}
if (Array.isArray(b.results)) {
M(a, b.results);
return;
}
N(a, b);
}
function M(a, b) {
if (a.transporter) {
a.transporter.responsesCache.set({
method: "search",
args: [
b.reduce((a, b)=>a.concat(b.rawResults.map((a)=>({
indexName: a.index,
params: a.params
}))), []),
]
}, {
results: b.reduce((a, b)=>a.concat(b.rawResults), [])
});
return;
}
const c = `/1/indexes/*/queries_body_${JSON.stringify({
requests: b.reduce((a, b)=>a.concat(b.rawResults.map((a)=>({
indexName: a.index,
params: a.params
}))), [])
})}`;
a.cache = {
...a.cache,
[c]: JSON.stringify({
results: b.reduce((a, b)=>a.concat(b.rawResults), [])
})
};
}
function N(a, b) {
if (a.transporter) {
a.transporter.responsesCache.set({
method: "search",
args: [
b.rawResults.map((a)=>({
indexName: a.index,
params: a.params
})),
]
}, {
results: b.rawResults
});
return;
}
const c = `/1/indexes/*/queries_body_${JSON.stringify({
requests: b.rawResults.map((a)=>({
indexName: a.index,
params: a.params
}))
})}`;
a.cache = {
...a.cache,
[c]: JSON.stringify({
results: b.rawResults
})
};
}
function O(b) {
if (!b) {
return null;
}
if (Array.isArray(b.results)) {
return b.results.reduce((c, b)=>({
...c,
[b._internalIndexId]: new a.SearchResults(new a.SearchParameters(b.state), b.rawResults)
}), {});
}
return new a.SearchResults(new a.SearchParameters(b.state), b.rawResults);
}
function P() {
const a = G(s.getState().widgets);
s.setState({
...s.getState(),
metadata: a,
searching: true
});
H();
}
function x(a) {
const b = s.getState().widgets;
return r.getWidgets().filter((a)=>Boolean(a.transitionState)).reduce((a, c)=>c.transitionState(b, a), a);
}
function y(a) {
const b = G(a);
s.setState({
...s.getState(),
widgets: a,
metadata: b,
searching: true
});
H();
}
function z({ facetName: a , query: b , maxFacetHits: c = 10 }) {
const d = Math.max(1, Math.min(c, 100));
s.setState({
...s.getState(),
searchingForFacetValues: true
});
g.searchForFacetValues(a, b, d).then((c)=>{
s.setState({
...s.getState(),
error: null,
searchingForFacetValues: false,
resultsFacetValues: {
...s.getState().resultsFacetValues,
[a]: c.facetHits,
query: b
}
});
}, (a)=>{
s.setState({
...s.getState(),
searchingForFacetValues: false,
error: a
});
}).catch((a)=>{
setTimeout(()=>{
throw a;
});
});
}
function A(a) {
F = F.setIndex(a);
}
function B() {
return s.getState().metadata.reduce((a, b)=>typeof b.id !== "undefined" ? a.concat(b.id) : a, []);
}
return {
store: s,
widgetsManager: r,
getWidgetsIds: B,
getSearchParameters: w,
onSearchForFacetValues: z,
onExternalStateUpdate: y,
transitionState: x,
updateClient: u,
updateIndex: A,
clearCache: v,
skipSearch: t
};
};
function q(a) {
if (!a) {
return [];
}
return a.metadata.map((a)=>({
value: ()=>({}),
...a,
items: a.items && a.items.map((a)=>({
value: ()=>({}),
...a,
items: a.items && a.items.map((a)=>({
value: ()=>({}),
...a
}))
}))
}));
}

View File

@ -0,0 +1,449 @@
import * as a from "@swc/helpers";
import b from "algoliasearch-helper";
import c from "./createWidgetsManager";
import { HIGHLIGHT_TAGS as d } from "./highlight";
import { hasMultipleIndices as e } from "./indexUtils";
import { version as f } from "react";
import g from "./version";
function h(a) {
if (typeof a.addAlgoliaAgent === "function") {
a.addAlgoliaAgent("react (".concat(f, ")"));
a.addAlgoliaAgent("react-instantsearch (".concat(g, ")"));
}
}
var i = function(a) {
return e({
ais: a.props.contextValue,
multiIndexContext: a.props.indexContextValue
});
};
var j = function(a, b) {
return a.props.indexContextValue.targetedIndex === b;
};
var k = function(a) {
return Boolean(a.props.indexId);
};
var l = function(a, b) {
return a.props.indexId === b;
};
var m = function(c, d) {
var a = k(c);
var b = k(d);
if (a && !b) {
return -1;
}
if (!a && b) {
return 1;
}
return 0;
};
function n(a) {
var b = function(a) {
return (Object.prototype.toString.call(a) === "[object Object]" || Object.prototype.toString.call(a) === "[object Array]");
};
var c = function(c) {
for(var b = arguments.length, d = new Array(b > 1 ? b - 1 : 0), a = 1; a < b; a++){
d[a - 1] = arguments[a];
}
var e = 0;
return c.replace(/%s/g, function() {
return encodeURIComponent(d[e++]);
});
};
return Object.keys(a).map(function(d) {
return c("%s=%s", d, b(a[d]) ? JSON.stringify(a[d]) : a[d]);
}).join("&");
}
var o;
export default function p(e) {
var p = e.indexName, r = e.initialState, t = r === void 0 ? {} : r, f = e.searchClient, g = e.resultsState, M = e.stalledSearchDelay;
var u = function b(a) {
var c = a;
var d = [];
return {
getState: function() {
return c;
},
setState: function(a) {
c = a;
d.forEach(function(a) {
return a();
});
},
subscribe: function(a) {
d.push(a);
return function b() {
d.splice(d.indexOf(a), 1);
};
}
};
};
var v = function a() {
R = true;
};
var w = function b(a) {
h(a);
s.setClient(a);
O();
};
var x = function a() {
s.clearCache();
O();
};
var N = function a(b) {
return K.getWidgets().filter(function(a) {
return Boolean(a.getMetadata);
}).map(function(a) {
return a.getMetadata(b);
});
};
var y = function f() {
var b = K.getWidgets().filter(function(a) {
return Boolean(a.getSearchParameters);
}).filter(function(a) {
return !i(a) && !k(a);
}).reduce(function(a, b) {
return b.getSearchParameters(a);
}, T);
var c = K.getWidgets().filter(function(a) {
return Boolean(a.getSearchParameters);
}).filter(function(a) {
var b = i(a) && j(a, p);
var c = k(a) && l(a, p);
return b || c;
}).sort(m).reduce(function(a, b) {
return b.getSearchParameters(a);
}, b);
var d = K.getWidgets().filter(function(a) {
return Boolean(a.getSearchParameters);
}).filter(function(a) {
var b = i(a) && !j(a, p);
var c = k(a) && !l(a, p);
return (b || c);
}).sort(m).reduce(function(c, b) {
var d = i(b) ? b.props.indexContextValue.targetedIndex : b.props.indexId;
var e = c[d] || [];
return a.objectSpread({}, c, a.defineProperty({}, d, e.concat(b)));
}, {});
var e = Object.keys(d).map(function(a) {
return {
parameters: d[a].reduce(function(a, b) {
return b.getSearchParameters(a);
}, b),
indexId: a
};
});
return {
mainParameters: c,
derivedParameters: e
};
};
var O = function d() {
if (!R) {
var a = y(s.state), b = a.mainParameters, c = a.derivedParameters;
s.derivedHelpers.slice().forEach(function(a) {
a.detach();
});
c.forEach(function(a) {
var b = a.indexId, d = a.parameters;
var c = s.derive(function() {
return d;
});
c.on("result", z({
indexId: b
})).on("error", A);
});
s.setState(b);
s.search();
}
};
var z = function c(b) {
var d = b.indexId;
return function(e) {
var f = L.getState();
var g = !s.derivedHelpers.length;
var b = f.results ? f.results : {};
b = !g && b.getFacetByName ? {} : b;
if (!g) {
b = a.objectSpread({}, b, a.defineProperty({}, d, e.results));
} else {
b = e.results;
}
var c = L.getState();
var h = c.isSearchStalled;
if (!s.hasPendingRequests()) {
clearTimeout(S);
S = null;
h = false;
}
var j = c.resultsFacetValues, i = a.objectWithoutProperties(c, [
"resultsFacetValues"
]);
L.setState(a.objectSpread({}, i, {
results: b,
isSearchStalled: h,
searching: false,
error: null
}));
};
};
var A = function g(d) {
var e = d.error;
var b = L.getState();
var c = b.isSearchStalled;
if (!s.hasPendingRequests()) {
clearTimeout(S);
c = false;
}
var h = b.resultsFacetValues, f = a.objectWithoutProperties(b, [
"resultsFacetValues",
]);
L.setState(a.objectSpread({}, f, {
isSearchStalled: c,
error: e,
searching: false
}));
};
var B = function b() {
if (!S) {
S = setTimeout(function() {
var b = L.getState(), d = b.resultsFacetValues, c = a.objectWithoutProperties(b, [
"resultsFacetValues",
]);
L.setState(a.objectSpread({}, c, {
isSearchStalled: true
}));
}, M);
}
};
var C = function d(b, c) {
if (!c) {
return;
}
if ((!b.transporter || b._cacheHydrated) && (!b._useCache || typeof b.addAlgoliaAgent !== "function")) {
return;
}
if (b.transporter && !b._cacheHydrated) {
b._cacheHydrated = true;
var e = b.search;
b.search = function(g) {
for(var d = arguments.length, f = new Array(d > 1 ? d - 1 : 0), c = 1; c < d; c++){
f[c - 1] = arguments[c];
}
var h = g.map(function(b) {
return a.objectSpread({}, b, {
params: n(b.params)
});
});
return b.transporter.responsesCache.get({
method: "search",
args: [
h
].concat(a.toConsumableArray(f))
}, function() {
return e.apply(void 0, [
g
].concat(a.toConsumableArray(f)));
});
};
}
if (Array.isArray(c.results)) {
P(b, c.results);
return;
}
Q(b, c);
};
var P = function e(b, c) {
if (b.transporter) {
b.transporter.responsesCache.set({
method: "search",
args: [
c.reduce(function(a, b) {
return a.concat(b.rawResults.map(function(a) {
return {
indexName: a.index,
params: a.params
};
}));
}, []),
]
}, {
results: c.reduce(function(a, b) {
return a.concat(b.rawResults);
}, [])
});
return;
}
var d = "/1/indexes/*/queries_body_".concat(JSON.stringify({
requests: c.reduce(function(a, b) {
return a.concat(b.rawResults.map(function(a) {
return {
indexName: a.index,
params: a.params
};
}));
}, [])
}));
b.cache = a.objectSpread({}, b.cache, a.defineProperty({}, d, JSON.stringify({
results: c.reduce(function(a, b) {
return a.concat(b.rawResults);
}, [])
})));
};
var Q = function e(b, c) {
if (b.transporter) {
b.transporter.responsesCache.set({
method: "search",
args: [
c.rawResults.map(function(a) {
return {
indexName: a.index,
params: a.params
};
}),
]
}, {
results: c.rawResults
});
return;
}
var d = "/1/indexes/*/queries_body_".concat(JSON.stringify({
requests: c.rawResults.map(function(a) {
return {
indexName: a.index,
params: a.params
};
})
}));
b.cache = a.objectSpread({}, b.cache, a.defineProperty({}, d, JSON.stringify({
results: c.rawResults
})));
};
var D = function d(c) {
if (!c) {
return null;
}
if (Array.isArray(c.results)) {
return c.results.reduce(function(d, c) {
return a.objectSpread({}, d, a.defineProperty({}, c._internalIndexId, new b.SearchResults(new b.SearchParameters(c.state), c.rawResults)));
}, {});
}
return new b.SearchResults(new b.SearchParameters(c.state), c.rawResults);
};
var E = function c() {
var b = N(L.getState().widgets);
L.setState(a.objectSpread({}, L.getState(), {
metadata: b,
searching: true
}));
O();
};
var F = function b(a) {
var c = L.getState().widgets;
return K.getWidgets().filter(function(a) {
return Boolean(a.transitionState);
}).reduce(function(a, b) {
return b.transitionState(c, a);
}, a);
};
var G = function d(b) {
var c = N(b);
L.setState(a.objectSpread({}, L.getState(), {
widgets: b,
metadata: c,
searching: true
}));
O();
};
var H = function h(b) {
var d = b.facetName, e = b.query, c = b.maxFacetHits, f = c === void 0 ? 10 : c;
var g = Math.max(1, Math.min(f, 100));
L.setState(a.objectSpread({}, L.getState(), {
searchingForFacetValues: true
}));
s.searchForFacetValues(d, e, g).then(function(b) {
L.setState(a.objectSpread({}, L.getState(), {
error: null,
searchingForFacetValues: false,
resultsFacetValues: a.objectSpread({}, L.getState().resultsFacetValues, ((o = {}), a.defineProperty(o, d, b.facetHits), a.defineProperty(o, "query", e), o))
}));
}, function(b) {
L.setState(a.objectSpread({}, L.getState(), {
searchingForFacetValues: false,
error: b
}));
}).catch(function(a) {
setTimeout(function() {
throw a;
});
});
};
var I = function b(a) {
T = T.setIndex(a);
};
var J = function a() {
return L.getState().metadata.reduce(function(a, b) {
return typeof b.id !== "undefined" ? a.concat(b.id) : a;
}, []);
};
var s = b(f, p, a.objectSpread({}, d));
h(f);
s.on("search", B).on("result", z({
indexId: p
})).on("error", A);
var R = false;
var S = null;
var T = s.state;
var K = c(E);
C(f, g);
var L = u({
widgets: t,
metadata: q(g),
results: D(g),
error: null,
searching: false,
isSearchStalled: true,
searchingForFacetValues: false
});
return {
store: L,
widgetsManager: K,
getWidgetsIds: J,
getSearchParameters: y,
onSearchForFacetValues: H,
onExternalStateUpdate: G,
transitionState: F,
updateClient: w,
updateIndex: I,
clearCache: x,
skipSearch: v
};
};
function q(b) {
if (!b) {
return [];
}
return b.metadata.map(function(b) {
return a.objectSpread({
value: function() {
return {};
}
}, b, {
items: b.items && b.items.map(function(b) {
return a.objectSpread({
value: function() {
return {};
}
}, b, {
items: b.items && b.items.map(function(b) {
return a.objectSpread({
value: function() {
return {};
}
}, b);
})
});
})
});
});
}

View File

@ -0,0 +1,12 @@
import { jsx as a, Fragment as b } from "react/jsx-runtime";
import { useRouter as c } from "next/router";
import { useProject as d } from "@swr/use-project";
import e from "@swr/use-team";
export default function f() {
var g = c().query, h = g.project;
var i = d(h), f = i.data;
var j = e(), m = j.teamSlug;
var k = f === null || f === void 0 ? void 0 : f.id;
var l = useProjectBranches(k), n = l.data;
return a(b, {});
};

View File

@ -0,0 +1,13 @@
function a(b, c) {
var f = (0, authenticate.LP)();
var d = (0, use_team.ZP)(), a = d.team;
var e = a === null || a === void 0 ? void 0 : a.id;
return (0, index_esm.ZP)(b ? "".concat(api_endpoints.Ms, "/git-branches").concat((0, qs.c)({
projectId: b,
teamId: e
})) : "", function(a) {
return (0, fetch_api.Z)(a, f, {
throwOnHTTPError: true
});
}, c);
}

View File

@ -0,0 +1,35 @@
"use strict";
__webpack_require__.d(__webpack_exports__, {
Z: function() {
return EnvironmentsSelector;
}
});
var a = __webpack_require__(86677);
var b = __webpack_require__(45205);
var c = __webpack_require__(502);
var d = __webpack_require__(78869);
var e = __webpack_require__(16966);
var f = __webpack_require__(96236);
var g = __webpack_require__(70326);
function h(h, i) {
var l = (0, e.LP)();
var j = (0, c.ZP)(), a = j.team;
var k = a === null || a === void 0 ? void 0 : a.id;
return (0, b.ZP)(h ? "".concat(f.Ms, "/git-branches").concat((0, g.c)({
projectId: h,
teamId: k
})) : "", function(a) {
return (0, d.Z)(a, l, {
throwOnHTTPError: true
});
}, i);
}
var i = __webpack_require__(76246);
export function EnvironmentsSelector(l) {
var d = (0, a.useRouter)().query, e = d.project;
var f = (0, i.useProject)(e), b = f.data;
var g = (0, c.ZP)(), m = g.teamSlug;
var j = b === null || b === void 0 ? void 0 : b.id;
var k = h(j), n = k.data;
return {};
}

View File

@ -0,0 +1,21 @@
"use strict";
var a = __webpack_require__(86677);
var b = __webpack_require__(45205);
var c = __webpack_require__(502);
var d = __webpack_require__(78869);
var e = __webpack_require__(16966);
var f = __webpack_require__(96236);
var g = __webpack_require__(70326);
export function useProjectBranches(h, i) {
var l = (0, e.LP)();
var j = (0, c.ZP)(), a = j.team;
var k = a === null || a === void 0 ? void 0 : a.id;
return (0, b.ZP)(h ? "".concat(f.Ms, "/git-branches").concat((0, g.c)({
projectId: h,
teamId: k
})) : "", function(a) {
return (0, d.Z)(a, l, {
throwOnHTTPError: true
});
}, i);
}

View File

@ -0,0 +1,31 @@
const a = "const1";
const b = "const2";
function c() {
const [c, d] = useState(undefined);
useEffect(()=>{
if (GLOBALS.get(a) && GLOBALS.get(b)) {
d(true);
} else {
d(false);
}
}, []);
return c;
}
function d() {
const [a, b] = useState({});
useEffect(()=>{
b(JSON.parse(GLOBALS.get(CONST1) || "{}"));
}, []);
return a;
}
export function HeaderCTA() {
const b = d();
const a = c();
if (a === undefined) {
return null;
}
if (a) {
return use(b.field);
}
return pure();
}

View File

@ -0,0 +1,3 @@
export default function() {
return new RegExp("{.[^}]+}\n*", "g");
};

View File

@ -0,0 +1,119 @@
import { MS as a, MOZ as b, WEBKIT as c } from "./Enum.js";
import { strlen as d, indexof as e, replace as f } from "./Utility.js";
function g(a, b) {
return ((((((((b << 2) ^ h(a, 0)) << 2) ^ h(a, 1)) << 2) ^ h(a, 2)) << 2) ^ h(a, 3));
}
function h(a, b) {
return a.charCodeAt(b) | 0;
}
export function prefix(i, j) {
switch(g(i, j)){
case 5103:
return c + "print-" + i + i;
case 5737:
case 4201:
case 3177:
case 3433:
case 1641:
case 4457:
case 2921:
case 5572:
case 6356:
case 5844:
case 3191:
case 6645:
case 3005:
case 6391:
case 5879:
case 5623:
case 6135:
case 4599:
case 4855:
case 4215:
case 6389:
case 5109:
case 5365:
case 5621:
case 3829:
return c + i + i;
case 5349:
case 4246:
case 4810:
case 6968:
case 2756:
return c + i + b + i + a + i + i;
case 6828:
case 4268:
return c + i + a + i + i;
case 6165:
return c + i + a + "flex-" + i + i;
case 5187:
return (c + i + f(i, /(\w+).+(:[^]+)/, c + "box-$1$2" + a + "flex-$1$2") + i);
case 5443:
return (c + i + a + "flex-item-" + f(i, /flex-|-self/, "") + i);
case 4675:
return (c + i + a + "flex-line-pack" + f(i, /align-content|flex-|-self/, "") + i);
case 5548:
return (c + i + a + f(i, "shrink", "negative") + i);
case 5292:
return (c + i + a + f(i, "basis", "preferred-size") + i);
case 6060:
return (c + "box-" + f(i, "-grow", "") + c + i + a + f(i, "grow", "positive") + i);
case 4554:
return (c + f(i, /([^-])(transform)/g, "$1" + c + "$2") + i);
case 6187:
return (f(f(f(i, /(zoom-|grab)/, c + "$1"), /(image-set)/, c + "$1"), i, "") + i);
case 5495:
case 3959:
return f(i, /(image-set\([^]*)/, c + "$1" + "$`$1");
case 4968:
return (f(f(i, /(.+:)(flex-)?(.*)/, c + "box-pack:$3" + a + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + c + i + i);
case 4095:
case 3583:
case 4068:
case 2532:
return f(i, /(.+)-inline(.+)/, c + "$1$2") + i;
case 8116:
case 7059:
case 5753:
case 5535:
case 5445:
case 5701:
case 4933:
case 4677:
case 5533:
case 5789:
case 5021:
case 4765:
if (d(i) - 1 - j > 6) switch(h(i, j + 1)){
case 109:
if (h(i, j + 4) !== 45) break;
case 102:
return (f(i, /(.+:)(.+)-([^]+)/, "$1" + c + "$2-$3" + "$1" + b + (h(i, j + 3) == 108 ? "$3" : "$2-$3")) + i);
case 115:
return ~e(i, "stretch") ? prefix(f(i, "stretch", "fill-available"), j) + i : i;
}
break;
case 4949:
if (h(i, j + 1) !== 115) break;
case 6444:
switch(h(i, d(i) - 3 - (~e(i, "!important") && 10))){
case 107:
return f(i, ":", ":" + c) + i;
case 101:
return (f(i, /(.+:)([^;!]+)(;|!.+)?/, "$1" + c + (h(i, 14) === 45 ? "inline-" : "") + "box$3" + "$1" + c + "$2$3" + "$1" + a + "$2box$3") + i);
}
break;
case 5936:
switch(h(i, j + 11)){
case 114:
return (c + i + a + f(i, /[svh]\w+-[tblr]{2}/, "tb") + i);
case 108:
return (c + i + a + f(i, /[svh]\w+-[tblr]{2}/, "tb-rl") + i);
case 45:
return (c + i + a + f(i, /[svh]\w+-[tblr]{2}/, "lr") + i);
}
return c + i + a + i + i;
}
return i;
}

View File

@ -0,0 +1,119 @@
import { MS as a, MOZ as b, WEBKIT as c } from "./Enum.js.js";
import { strlen as d, indexof as e, replace as f } from "./Utility.js.js";
function g(a, b) {
return a.charCodeAt(b) | 0;
}
export function prefix(h, i) {
function j(a, b) {
return ((((((((b << 2) ^ g(a, 0)) << 2) ^ g(a, 1)) << 2) ^ g(a, 2)) << 2) ^ g(a, 3));
}
switch(j(h, i)){
case 5103:
return c + "print-" + h + h;
case 5737:
case 4201:
case 3177:
case 3433:
case 1641:
case 4457:
case 2921:
case 5572:
case 6356:
case 5844:
case 3191:
case 6645:
case 3005:
case 6391:
case 5879:
case 5623:
case 6135:
case 4599:
case 4855:
case 4215:
case 6389:
case 5109:
case 5365:
case 5621:
case 3829:
return c + h + h;
case 5349:
case 4246:
case 4810:
case 6968:
case 2756:
return c + h + b + h + a + h + h;
case 6828:
case 4268:
return c + h + a + h + h;
case 6165:
return c + h + a + "flex-" + h + h;
case 5187:
return (c + h + f(h, /(\w+).+(:[^]+)/, c + "box-$1$2" + a + "flex-$1$2") + h);
case 5443:
return (c + h + a + "flex-item-" + f(h, /flex-|-self/, "") + h);
case 4675:
return (c + h + a + "flex-line-pack" + f(h, /align-content|flex-|-self/, "") + h);
case 5548:
return (c + h + a + f(h, "shrink", "negative") + h);
case 5292:
return (c + h + a + f(h, "basis", "preferred-size") + h);
case 6060:
return (c + "box-" + f(h, "-grow", "") + c + h + a + f(h, "grow", "positive") + h);
case 4554:
return (c + f(h, /([^-])(transform)/g, "$1" + c + "$2") + h);
case 6187:
return (f(f(f(h, /(zoom-|grab)/, c + "$1"), /(image-set)/, c + "$1"), h, "") + h);
case 5495:
case 3959:
return f(h, /(image-set\([^]*)/, c + "$1" + "$`$1");
case 4968:
return (f(f(h, /(.+:)(flex-)?(.*)/, c + "box-pack:$3" + a + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + c + h + h);
case 4095:
case 3583:
case 4068:
case 2532:
return f(h, /(.+)-inline(.+)/, c + "$1$2") + h;
case 8116:
case 7059:
case 5753:
case 5535:
case 5445:
case 5701:
case 4933:
case 4677:
case 5533:
case 5789:
case 5021:
case 4765:
if (d(h) - 1 - i > 6) switch(g(h, i + 1)){
case 109:
if (g(h, i + 4) !== 45) break;
case 102:
return (f(h, /(.+:)(.+)-([^]+)/, "$1" + c + "$2-$3" + "$1" + b + (g(h, i + 3) == 108 ? "$3" : "$2-$3")) + h);
case 115:
return ~e(h, "stretch") ? prefix(f(h, "stretch", "fill-available"), i) + h : h;
}
break;
case 4949:
if (g(h, i + 1) !== 115) break;
case 6444:
switch(g(h, d(h) - 3 - (~e(h, "!important") && 10))){
case 107:
return f(h, ":", ":" + c) + h;
case 101:
return (f(h, /(.+:)([^;!]+)(;|!.+)?/, "$1" + c + (g(h, 14) === 45 ? "inline-" : "") + "box$3" + "$1" + c + "$2$3" + "$1" + a + "$2box$3") + h);
}
break;
case 5936:
switch(g(h, i + 11)){
case 114:
return (c + h + a + f(h, /[svh]\w+-[tblr]{2}/, "tb") + h);
case 108:
return (c + h + a + f(h, /[svh]\w+-[tblr]{2}/, "tb-rl") + h);
case 45:
return (c + h + a + f(h, /[svh]\w+-[tblr]{2}/, "lr") + h);
}
return c + h + a + h + h;
}
return h;
}

View File

@ -0,0 +1 @@
const a = new RegExp("^/(?!_next).*$");

View File

@ -0,0 +1,3 @@
const a = new String(":root {--a-b:4px}");
a.__hash = "34c3f159e306f9e9";
export default a;

View File

@ -0,0 +1,50 @@
import { a as b, b as c } from "./utils";
if (typeof window !== "undefined") {
require("intersection-observer");
}
const a = (function g() {
const h = new Map();
function a(a) {
return i(a) || new IntersectionObserver(k, a);
}
function i(e = {}) {
const f = c(e);
for (const a of h.keys()){
if (b(a, f)) {
return a;
}
}
return null;
}
function j(a) {
return !h.has(a) ? h.set(a, new Map()).get(a) : h.get(a);
}
function e(a, b, c) {
const e = j(a);
e.set(b, c);
a.observe(b);
}
function f(a, b) {
const c = j(a);
c.delete(b);
a.unobserve(b);
}
function k(c, e) {
for (let a of c){
const f = j(e);
const b = f.get(a.target);
if (b) {
b(a);
}
}
}
return {
d: a,
l: e,
q: f
};
})();
export default a;
export const { d } = a;
export const { l } = a;
export const { q } = a;

View File

@ -0,0 +1,13 @@
function a() {
var d;
var e, b, f;
_classCallCheck(this, a);
for(var g = arguments.length, h = Array(g), c = 0; c < g; c++){
h[c] = arguments[c];
}
return ((f = ((e = ((b = _possibleConstructorReturn(this, (d = a.__proto__ || Object.getPrototypeOf(a)).call.apply(d, [
this
].concat(h)))), b)), (b.storeHighlightedItemReference = function(a) {
b.props.onHighlightedItemChange(a === null ? null : a.item);
}), e)), _possibleConstructorReturn(b, f));
}

View File

@ -0,0 +1,113 @@
const b = 1000;
const c = b * 60;
const d = c * 60;
const a = d * 24;
const f = a * 7;
const g = a * 365.25;
function e(a, c) {
try {
if (typeof a === "string" && a.length > 0) {
return h(a);
} else if (typeof a === "number" && isFinite(a)) {
return c?.long ? j(a) : i(a);
}
throw new Error("Value is not a string or number.");
} catch (b) {
const d = l(b) ? `${b.message}. value=${JSON.stringify(a)}` : "An unknown error has occured.";
throw new Error(d);
}
}
function h(h) {
h = String(h);
if (h.length > 100) {
throw new Error("Value exceeds the maximum length of 100 characters.");
}
const i = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);
if (!i) {
return NaN;
}
const e = parseFloat(i[1]);
const j = (i[2] || "ms").toLowerCase();
switch(j){
case "years":
case "year":
case "yrs":
case "yr":
case "y":
return e * g;
case "weeks":
case "week":
case "w":
return e * f;
case "days":
case "day":
case "d":
return e * a;
case "hours":
case "hour":
case "hrs":
case "hr":
case "h":
return e * d;
case "minutes":
case "minute":
case "mins":
case "min":
case "m":
return e * c;
case "seconds":
case "second":
case "secs":
case "sec":
case "s":
return e * b;
case "milliseconds":
case "millisecond":
case "msecs":
case "msec":
case "ms":
return e;
default:
throw new Error(`The unit ${j} was matched, but no matching case exists.`);
}
}
export default e;
function i(e) {
const f = Math.abs(e);
if (f >= a) {
return `${Math.round(e / a)}d`;
}
if (f >= d) {
return `${Math.round(e / d)}h`;
}
if (f >= c) {
return `${Math.round(e / c)}m`;
}
if (f >= b) {
return `${Math.round(e / b)}s`;
}
return `${e}ms`;
}
function j(f) {
const e = Math.abs(f);
if (e >= a) {
return k(f, e, a, "day");
}
if (e >= d) {
return k(f, e, d, "hour");
}
if (e >= c) {
return k(f, e, c, "minute");
}
if (e >= b) {
return k(f, e, b, "second");
}
return `${f} ms`;
}
function k(b, c, a, d) {
const e = c >= a * 1.5;
return `${Math.round(b / a)} ${d}${e ? "s" : ""}`;
}
function l(a) {
return typeof a === "object" && a !== null && "message" in a;
}

View File

@ -0,0 +1,157 @@
import { jsx as c, jsxs as d, Fragment as e } from "react/jsx-runtime";
import * as b from "react";
import f from "invariant";
import { injectScript as g } from "./utils/injectscript";
import { preventGoogleFonts as h } from "./utils/prevent-google-fonts";
import { isBrowser as i } from "./utils/isbrowser";
import { makeLoadScriptUrl as j } from "./utils/make-load-script-url";
let k = false;
export function DefaultLoadingElement() {
return c("div", {
children: `Loading...`
});
}
export const defaultLoadScriptProps = {
id: "script-loader",
version: "weekly"
};
class a extends b.PureComponent {
componentDidMount() {
if (i) {
if (window.google && window.google.maps && !k) {
console.error("google api is already presented");
return;
}
this.isCleaningUp().then(this.injectScript).catch(function b(a) {
console.error("Error at injecting script after cleaning up: ", a);
});
}
}
componentDidUpdate(a) {
if (this.props.libraries !== a.libraries) {
console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables");
}
if (i && a.language !== this.props.language) {
this.cleanup();
this.setState(function a() {
return {
loaded: false
};
}, this.cleanupCallback);
}
}
componentWillUnmount() {
if (i) {
this.cleanup();
const a = ()=>{
if (!this.check.current) {
delete window.google;
k = false;
}
};
window.setTimeout(a, 1);
if (this.props.onUnmount) {
this.props.onUnmount();
}
}
}
render() {
return d(e, {
children: [
c("div", {
ref: this.check
}),
this.state.loaded ? this.props.children : this.props.loadingElement || c(DefaultLoadingElement, {}),
]
});
}
constructor(...a){
super(...a);
this.check = b.createRef();
this.state = {
loaded: false
};
this.cleanupCallback = ()=>{
delete window.google.maps;
this.injectScript();
};
this.isCleaningUp = async ()=>{
function a(a) {
if (!k) {
a();
} else {
if (i) {
const b = window.setInterval(function c() {
if (!k) {
window.clearInterval(b);
a();
}
}, 1);
}
}
return;
}
return new Promise(a);
};
this.cleanup = ()=>{
k = true;
const a = document.getElementById(this.props.id);
if (a && a.parentNode) {
a.parentNode.removeChild(a);
}
Array.prototype.slice.call(document.getElementsByTagName("script")).filter(function b(a) {
return (typeof a.src === "string" && a.src.includes("maps.googleapis"));
}).forEach(function b(a) {
if (a.parentNode) {
a.parentNode.removeChild(a);
}
});
Array.prototype.slice.call(document.getElementsByTagName("link")).filter(function b(a) {
return (a.href === "https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans");
}).forEach(function b(a) {
if (a.parentNode) {
a.parentNode.removeChild(a);
}
});
Array.prototype.slice.call(document.getElementsByTagName("style")).filter(function b(a) {
return (a.innerText !== undefined && a.innerText.length > 0 && a.innerText.includes(".gm-"));
}).forEach(function b(a) {
if (a.parentNode) {
a.parentNode.removeChild(a);
}
});
};
this.injectScript = ()=>{
if (this.props.preventGoogleFontsLoading) {
h();
}
f(!!this.props.id, 'LoadScript requires "id" prop to be a string: %s', this.props.id);
const a = {
id: this.props.id,
nonce: this.props.nonce,
url: j(this.props)
};
g(a).then(()=>{
if (this.props.onLoad) {
this.props.onLoad();
}
this.setState(function a() {
return {
loaded: true
};
});
return;
}).catch((a)=>{
if (this.props.onError) {
this.props.onError(a);
}
console.error(`
There has been an Error with loading Google Maps API script, please check that you provided correct google API key (${this.props.googleMapsApiKey || "-"}) or Client ID (${this.props.googleMapsClientId || "-"}) to <LoadScript />
Otherwise it is a Network issue.
`);
});
};
}
}
a.defaultProps = defaultLoadScriptProps;
export default a;

View File

@ -0,0 +1,40 @@
import b from "styled-jsx/style";
const a = ({ right: a = false , top: d = false , sidebar: f , sidebarWidth: c = 230 , hideOnMobile: g = false , breakpoint: e = 730 , children: h , })=>React.createElement("main", {
className: b.dynamic([
[
"4507deac72c40d6c",
[
a ? "row-reverse" : "row",
c,
e,
d ? "column" : "column-reverse",
],
],
])
}, React.createElement(Sidebar, {
width: c,
right: a,
hide: g,
breakpoint: e
}, f), React.createElement("div", {
className: b.dynamic([
[
"4507deac72c40d6c",
[
a ? "row-reverse" : "row",
c,
e,
d ? "column" : "column-reverse",
],
],
])
}, h), React.createElement(b, {
id: "4507deac72c40d6c",
dynamic: [
a ? "row-reverse" : "row",
c,
e,
d ? "column" : "column-reverse",
]
}, `main.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-direction:${a ? "row-reverse" : "row"};-ms-flex-direction:${a ? "row-reverse" : "row"};flex-direction:${a ? "row-reverse" : "row"};-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:var(--geist-gap-double)}div.__jsx-style-dynamic-selector{width:100%;max-width:-webkit-calc(100% - ${c}px - var(--geist-gap-double));max-width:-moz-calc(100% - ${c}px - var(--geist-gap-double));max-width:calc(100% - ${c}px - var(--geist-gap-double))}@media(max-width:${e}px){main.__jsx-style-dynamic-selector{-webkit-flex-direction:${d ? "column" : "column-reverse"};-ms-flex-direction:${d ? "column" : "column-reverse"};flex-direction:${d ? "column" : "column-reverse"}}div.__jsx-style-dynamic-selector{max-width:unset}}`));
a({});

View File

@ -0,0 +1,26 @@
function a() {
return new b();
}
class b extends BaseSchema {
matches(d, a) {
let e = false;
let b;
let c;
if (a) {
if (typeof a === "object") {
({ excludeEmptyString: e = false , message: b , name: c } = a);
} else {
b = a;
}
}
return this.test({
name: c || "matches",
message: b || string.matches,
params: {
regex: d
},
test: (a)=>isAbsent(a) || (a === "" && e) || a.search(d) !== -1
});
}
}
a.prototype = b.prototype;

View File

@ -0,0 +1,376 @@
(function() {
"use strict";
var b, c, a, d, e, f, g, h, i = function(a, b) {
return function() {
return a.apply(b, arguments);
};
}, j = function(b, a) {
for(var c in a){
if (k.call(a, c)) b[c] = a[c];
}
function d() {
this.constructor = b;
}
d.prototype = a.prototype;
b.prototype = new d();
b.__super__ = a.prototype;
return b;
}, k = {}.hasOwnProperty;
g = require("sax");
a = require("events");
b = require("./bom");
f = require("./processors");
h = require("timers").setImmediate;
c = require("./defaults").defaults;
d = function(a) {
return (typeof a === "object" && a != null && Object.keys(a).length === 0);
};
e = function(c, b, f) {
var a, d, e;
for(a = 0, d = c.length; a < d; a++){
e = c[a];
b = e(b, f);
}
return b;
};
exports.Parser = (function(l) {
j(a, l);
function a(b) {
this.parseStringPromise = i(this.parseStringPromise, this);
this.parseString = i(this.parseString, this);
this.reset = i(this.reset, this);
this.assignOrPush = i(this.assignOrPush, this);
this.processAsync = i(this.processAsync, this);
var a, d, e;
if (!(this instanceof exports.Parser)) {
return new exports.Parser(b);
}
this.options = {};
d = c["0.2"];
for(a in d){
if (!k.call(d, a)) continue;
e = d[a];
this.options[a] = e;
}
for(a in b){
if (!k.call(b, a)) continue;
e = b[a];
this.options[a] = e;
}
if (this.options.xmlns) {
this.options.xmlnskey = this.options.attrkey + "ns";
}
if (this.options.normalizeTags) {
if (!this.options.tagNameProcessors) {
this.options.tagNameProcessors = [];
}
this.options.tagNameProcessors.unshift(f.normalize);
}
this.reset();
}
a.prototype.processAsync = function() {
var a, b;
try {
if (this.remaining.length <= this.options.chunkSize) {
a = this.remaining;
this.remaining = "";
this.saxParser = this.saxParser.write(a);
return this.saxParser.close();
} else {
a = this.remaining.substr(0, this.options.chunkSize);
this.remaining = this.remaining.substr(this.options.chunkSize, this.remaining.length);
this.saxParser = this.saxParser.write(a);
return h(this.processAsync);
}
} catch (c) {
b = c;
if (!this.saxParser.errThrown) {
this.saxParser.errThrown = true;
return this.emit(b);
}
}
};
a.prototype.assignOrPush = function(a, b, c) {
if (!(b in a)) {
if (!this.options.explicitArray) {
return (a[b] = c);
} else {
return (a[b] = [
c
]);
}
} else {
if (!(a[b] instanceof Array)) {
a[b] = [
a[b]
];
}
return a[b].push(c);
}
};
a.prototype.reset = function() {
var b, c, a, f;
this.removeAllListeners();
this.saxParser = g.parser(this.options.strict, {
trim: false,
normalize: false,
xmlns: this.options.xmlns
});
this.saxParser.errThrown = false;
this.saxParser.onerror = (function(a) {
return function(b) {
a.saxParser.resume();
if (!a.saxParser.errThrown) {
a.saxParser.errThrown = true;
return a.emit("error", b);
}
};
})(this);
this.saxParser.onend = (function(a) {
return function() {
if (!a.saxParser.ended) {
a.saxParser.ended = true;
return a.emit("end", a.resultObject);
}
};
})(this);
this.saxParser.ended = false;
this.EXPLICIT_CHARKEY = this.options.explicitCharkey;
this.resultObject = null;
f = [];
b = this.options.attrkey;
c = this.options.charkey;
this.saxParser.onopentag = (function(a) {
return function(g) {
var h, i, d, j, l;
d = {};
d[c] = "";
if (!a.options.ignoreAttrs) {
l = g.attributes;
for(h in l){
if (!k.call(l, h)) continue;
if (!(b in d) && !a.options.mergeAttrs) {
d[b] = {};
}
i = a.options.attrValueProcessors ? e(a.options.attrValueProcessors, g.attributes[h], h) : g.attributes[h];
j = a.options.attrNameProcessors ? e(a.options.attrNameProcessors, h) : h;
if (a.options.mergeAttrs) {
a.assignOrPush(d, j, i);
} else {
d[b][j] = i;
}
}
}
d["#name"] = a.options.tagNameProcessors ? e(a.options.tagNameProcessors, g.name) : g.name;
if (a.options.xmlns) {
d[a.options.xmlnskey] = {
uri: g.uri,
local: g.local
};
}
return f.push(d);
};
})(this);
this.saxParser.onclosetag = (function(a) {
return function() {
var m, n, j, h, i, b, l, o, g, p;
b = f.pop();
i = b["#name"];
if (!a.options.explicitChildren || !a.options.preserveChildrenOrder) {
delete b["#name"];
}
if (b.cdata === true) {
m = b.cdata;
delete b.cdata;
}
g = f[f.length - 1];
if (b[c].match(/^\s*$/) && !m) {
n = b[c];
delete b[c];
} else {
if (a.options.trim) {
b[c] = b[c].trim();
}
if (a.options.normalize) {
b[c] = b[c].replace(/\s{2,}/g, " ").trim();
}
b[c] = a.options.valueProcessors ? e(a.options.valueProcessors, b[c], i) : b[c];
if (Object.keys(b).length === 1 && c in b && !a.EXPLICIT_CHARKEY) {
b = b[c];
}
}
if (d(b)) {
b = a.options.emptyTag !== "" ? a.options.emptyTag : n;
}
if (a.options.validator != null) {
p = "/" + (function() {
var a, c, b;
b = [];
for(a = 0, c = f.length; a < c; a++){
h = f[a];
b.push(h["#name"]);
}
return b;
})().concat(i).join("/");
(function() {
var c;
try {
return (b = a.options.validator(p, g && g[i], b));
} catch (d) {
c = d;
return a.emit("error", c);
}
})();
}
if (a.options.explicitChildren && !a.options.mergeAttrs && typeof b === "object") {
if (!a.options.preserveChildrenOrder) {
h = {};
if (a.options.attrkey in b) {
h[a.options.attrkey] = b[a.options.attrkey];
delete b[a.options.attrkey];
}
if (!a.options.charsAsChildren && a.options.charkey in b) {
h[a.options.charkey] = b[a.options.charkey];
delete b[a.options.charkey];
}
if (Object.getOwnPropertyNames(b).length > 0) {
h[a.options.childkey] = b;
}
b = h;
} else if (g) {
g[a.options.childkey] = g[a.options.childkey] || [];
l = {};
for(j in b){
if (!k.call(b, j)) continue;
l[j] = b[j];
}
g[a.options.childkey].push(l);
delete b["#name"];
if (Object.keys(b).length === 1 && c in b && !a.EXPLICIT_CHARKEY) {
b = b[c];
}
}
}
if (f.length > 0) {
return a.assignOrPush(g, i, b);
} else {
if (a.options.explicitRoot) {
o = b;
b = {};
b[i] = o;
}
a.resultObject = b;
a.saxParser.ended = true;
return a.emit("end", a.resultObject);
}
};
})(this);
a = (function(a) {
return function(e) {
var d, b;
b = f[f.length - 1];
if (b) {
b[c] += e;
if (a.options.explicitChildren && a.options.preserveChildrenOrder && a.options.charsAsChildren && (a.options.includeWhiteChars || e.replace(/\\n/g, "").trim() !== "")) {
b[a.options.childkey] = b[a.options.childkey] || [];
d = {
"#name": "__text__"
};
d[c] = e;
if (a.options.normalize) {
d[c] = d[c].replace(/\s{2,}/g, " ").trim();
}
b[a.options.childkey].push(d);
}
return b;
}
};
})(this);
this.saxParser.ontext = a;
return (this.saxParser.oncdata = (function(b) {
return function(c) {
var b;
b = a(c);
if (b) {
return (b.cdata = true);
}
};
})(this));
};
a.prototype.parseString = function(a, d) {
var c;
if (d != null && typeof d === "function") {
this.on("end", function(a) {
this.reset();
return d(null, a);
});
this.on("error", function(a) {
this.reset();
return d(a);
});
}
try {
a = a.toString();
if (a.trim() === "") {
this.emit("end", null);
return true;
}
a = b.stripBOM(a);
if (this.options.async) {
this.remaining = a;
h(this.processAsync);
return this.saxParser;
}
return this.saxParser.write(a).close();
} catch (e) {
c = e;
if (!(this.saxParser.errThrown || this.saxParser.ended)) {
this.emit("error", c);
return (this.saxParser.errThrown = true);
} else if (this.saxParser.ended) {
throw c;
}
}
};
a.prototype.parseStringPromise = function(a) {
return new Promise((function(b) {
return function(c, d) {
return b.parseString(a, function(a, b) {
if (a) {
return d(a);
} else {
return c(b);
}
});
};
})(this));
};
return a;
})(a);
exports.parseString = function(f, a, b) {
var c, d, e;
if (b != null) {
if (typeof b === "function") {
c = b;
}
if (typeof a === "object") {
d = a;
}
} else {
if (typeof a === "function") {
c = a;
}
d = {};
}
e = new exports.Parser(d);
return e.parseString(f, c);
};
exports.parseStringPromise = function(d, a) {
var b, c;
if (typeof a === "object") {
b = a;
}
c = new exports.Parser(b);
return c.parseStringPromise(d);
};
}.call(this));

View File

@ -0,0 +1,89 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[
492
],
{
5467: function(a, b, c) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/no-spread",
function() {
return c(1918);
},
]);
if (false) {}
},
2726: function(e, b, a) {
"use strict";
a.d(b, {
Z: function() {
return i;
}
});
var f = a(5893);
var g = a(7294);
function c(a) {
var b = a.value, c = a.onChange;
return (0, f.jsx)("input", {
value: b,
onChange: c
});
}
var h = c;
function d(a) {
var b = a.value, c = a.onChange;
(0, g.useEffect)(function() {
console.log("EFFECT");
}, []);
return (0, f.jsx)(h, {
value: b,
onChange: c
});
}
var i = d;
},
1918: function(d, b, a) {
"use strict";
a.r(b);
a.d(b, {
default: function() {
return i;
}
});
var e = a(5893);
var f = a(7294);
var g = a(2726);
function c(a) {
var b = a.value, c = a.onChange;
return (0, e.jsx)(g.Z, {
value: b,
onChange: c
});
}
var h = c;
function i() {
var a = (0, f.useState)(""), b = a[0], d = a[1];
var c = (0, f.useCallback)(function(a) {
d(a.target.value);
}, []);
return (0, e.jsx)(h, {
onChange: c,
value: b
});
}
}
},
function(a) {
var c = function(b) {
return a((a.s = b));
};
a.O(0, [
774,
888,
179
], function() {
return c(5467);
});
var b = a.O();
_N_E = b;
},
]);

View File

@ -0,0 +1,113 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[
217
],
{
2809: function(a, b, c) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/spread",
function() {
return c(1767);
},
]);
if (false) {}
},
2726: function(e, b, a) {
"use strict";
a.d(b, {
Z: function() {
return i;
}
});
var f = a(5893);
var g = a(7294);
function c(a) {
var b = a.value, c = a.onChange;
return (0, f.jsx)("input", {
value: b,
onChange: c
});
}
var h = c;
function d(a) {
var b = a.value, c = a.onChange;
(0, g.useEffect)(function() {
console.log("EFFECT");
}, []);
return (0, f.jsx)(h, {
value: b,
onChange: c
});
}
var i = d;
},
1767: function(d, b, a) {
"use strict";
a.r(b);
a.d(b, {
default: function() {
return k;
}
});
var e = a(5893);
var f = a(7294);
var g = a(2726);
function h(a, b, c) {
if (b in a) {
Object.defineProperty(a, b, {
value: c,
enumerable: true,
configurable: true,
writable: true
});
} else {
a[b] = c;
}
return a;
}
function i(d) {
for(var a = 1; a < arguments.length; a++){
var c = arguments[a] != null ? arguments[a] : {};
var b = Object.keys(c);
if (typeof Object.getOwnPropertySymbols === "function") {
b = b.concat(Object.getOwnPropertySymbols(c).filter(function(a) {
return Object.getOwnPropertyDescriptor(c, a).enumerable;
}));
}
b.forEach(function(a) {
h(d, a, c[a]);
});
}
return d;
}
function c(a) {
return (0, e.jsx)(g.Z, i({}, a));
}
var j = c;
function k() {
var a = (0, f.useState)(""), b = a[0], d = a[1];
var c = (0, f.useCallback)(function(a) {
d(a.target.value);
}, []);
return (0, e.jsx)(j, {
onChange: c,
value: b
});
}
}
},
function(a) {
var c = function(b) {
return a((a.s = b));
};
a.O(0, [
774,
888,
179
], function() {
return c(2809);
});
var b = a.O();
_N_E = b;
},
]);

View File

@ -0,0 +1,6 @@
export function regexCheck(a) {
return b;
function b(b) {
return b !== null && a.test(String.fromCharCode(b));
}
}

View File

@ -0,0 +1,16 @@
function a(a) {
return b;
function b(b) {
return b !== null && a.test(String.fromCharCode(b));
}
}
console.log(a("Foo"));
console.log(a("Foo"));
console.log(a("Foo"));
console.log(a("Foo"));
console.log(a("Foo"));
console.log(a("Foo"));
console.log(a("Foo"));
console.log(a("Foo"));
console.log(a("Foo"));
console.log(a("Foo"));

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,15 @@
export function log2(a) {
var c, b;
c = (a > 0xffff) << 4;
a >>>= c;
b = (a > 0xff) << 3;
a >>>= b;
c |= b;
b = (a > 0xf) << 2;
a >>>= b;
c |= b;
b = (a > 0x3) << 1;
a >>>= b;
c |= b;
return c | (a >> 1);
}

View File

@ -0,0 +1,8 @@
export function getInsertStringLength(a, f, c, b) {
var g = a.mask, h = a.maskChar, d = c.split(""), e = b;
return (d.every(function(c) {
for(; (e = c), isPermanentCharacter(a, (d = b)) && e !== g[d];)if (++b >= g.length) return !1;
var d, e;
return ((isAllowedCharacter(a, b, c) || c === h) && b++, b < g.length);
}), b - e);
}

View File

@ -0,0 +1,16 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[
657
],
{
4816: function(a, b, c) {
"use strict";
return new Error([
`MUI: \`<DataGrid pageSize={${props.pageSize}} />\` is not a valid prop.`,
`Only page size below ${MAX_PAGE_SIZE} is available in the MIT version.`,
"",
"You need to upgrade to the DataGridPro component to unlock this feature.",
].join("\n"));
}
},
]);

View File

@ -0,0 +1,6 @@
function a(a) {
return "undefined" == typeof a;
}
function b(a) {
return "undefined" != typeof a;
}

View File

@ -0,0 +1,5 @@
var b = destination.$$hashKey;
forEach(destination, function(b, a) {
delete destination[a];
});
for(var a in source)destination[a] = copy(source[a]);

View File

@ -0,0 +1,5 @@
if (foo) {
if (bar) {
var a = console.log("Foo bar");
}
}

View File

@ -0,0 +1,5 @@
export const obj = {
eq: function(b, a) {
return a >= 0 ? b(this[a]) : b(this[this.length + a]);
}
};

View File

@ -0,0 +1,23 @@
function a(c, d, e) {
var b;
if (c) {
if (isFunction(c)) {
for(b in c){
if (b != "prototype" && b != "length" && b != "name" && c.hasOwnProperty(b)) {
d.call(e, c[b], b);
}
}
} else if (c.forEach && c.forEach !== a) {
c.forEach(d, e);
} else if (isArrayLike(c)) {
for(b = 0; b < c.length; b++)d.call(e, c[b], b);
} else {
for(b in c){
if (c.hasOwnProperty(b)) {
d.call(e, c[b], b);
}
}
}
}
return c;
}

View File

@ -0,0 +1,2 @@
var a = root._;
if (!a && typeof require !== "undefined") a = require("underscore");

View File

@ -0,0 +1,13 @@
const a = {
_ensureElement: function() {
if (!this.el) {
var a = _.extend({}, _.result(this, "attributes"));
if (this.id) a.id = _.result(this, "id");
if (this.className) a["class"] = _.result(this, "className");
var b = Backbone.$("<" + _.result(this, "tagName") + ">").attr(a);
this.setElement(b, false);
} else {
this.setElement(_.result(this, "el"), false);
}
}
};

View File

@ -0,0 +1,8 @@
const a = {
navigate: function(b, a) {
if (!History.started) return false;
if (!a || a === true) a = {
trigger: !!a
};
}
};

View File

@ -0,0 +1,7 @@
var b, a, c;
b = name ? [
name
] : _.keys(this._events);
for(a = 0, c = b.length; a < c; a++){
name = b[a];
}

View File

@ -0,0 +1,12 @@
export const obj = {
_validate: function(a, b) {
if (!b.validate || !this.validate) return true;
a = _.extend({}, this.attributes, a);
var c = (this.validationError = this.validate(a, b) || null);
if (!c) return true;
this.trigger("invalid", this, c, _.extend(b, {
validationError: c
}));
return false;
}
};

View File

@ -0,0 +1,51 @@
export const obj = {
set: function(g, c, b) {
var a, d, k, e, i, j, l, f;
if (g == null) return this;
if (typeof g === "object") {
d = g;
b = c;
} else {
(d = {})[g] = c;
}
b || (b = {});
if (!this._validate(d, b)) return false;
k = b.unset;
i = b.silent;
e = [];
j = this._changing;
this._changing = true;
if (!j) {
this._previousAttributes = _.clone(this.attributes);
this.changed = {};
}
(f = this.attributes), (l = this._previousAttributes);
if (this.idAttribute in d) this.id = d[this.idAttribute];
for(a in d){
c = d[a];
if (!_.isEqual(f[a], c)) e.push(a);
if (!_.isEqual(l[a], c)) {
this.changed[a] = c;
} else {
delete this.changed[a];
}
k ? delete f[a] : (f[a] = c);
}
if (!i) {
if (e.length) this._pending = true;
for(var h = 0, m = e.length; h < m; h++){
this.trigger("change:" + e[h], this, f[e[h]], b);
}
}
if (j) return this;
if (!i) {
while(this._pending){
this._pending = false;
this.trigger("change", this, b);
}
}
this._pending = false;
this._changing = false;
return this;
}
};

Some files were not shown because too many files have changed in this diff Show More