Walrus blob · mainnet
On-chain registration not yet visible.
The aggregator served this blob, but we couldn't locate a matching BlobRegistered event in our scan window. It may not be certified yet, or live further back than we paged.
Lifecycle data is unavailable until the blob registration is visible on-chain.
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["index-C0O5f12c.js","index-lxtw7ZHb.js","index-C-05yUZS.css","_commonjs-dynamic-modules-TDtrdbi3.js","qpdf-Ctg6GgRI.js"])))=>i.map(i=>d[i]);
var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
import { c as qt, t as he, a3 as Dt, q as mt, w as ue, _ as Zt, r as et, j as y, U as zt, a as _t, D as Nt, X as Vt, e as fe, C as pe, a4 as me, n as ge, f as $t, L as xe, __tla as __tla_0 } from "./index-lxtw7ZHb.js";
import { P as ft, S as te, d as Rt, r as ee, E as be } from "./PDFButton-Bo6m3eTz.js";
import { c as Ot } from "./_commonjs-dynamic-modules-TDtrdbi3.js";
import { l as Ft, __tla as __tla_1 } from "./pdfjs-DyiuL8Gv.js";
import { C as wt } from "./chevron-left-DXLSsZ7d.js";
import { F as _e } from "./files-D4I-CYHM.js";
import { F as ye } from "./file-plus-2-BSLueACv.js";
import { R as ve, I as we } from "./rotate-cw-B9DKjN_1.js";
import { T as ke } from "./trash-2-B_HhCnfQ.js";
import { R as Se } from "./refresh-cw-DbL3D6BT.js";
import { C as Kt } from "./check-D1Jdoh6Y.js";
import { I as je } from "./image-9ev-NrJS.js";
let wr;
let __tla = Promise.all([
(() => {
try {
return __tla_0;
} catch {
}
})(),
(() => {
try {
return __tla_1;
} catch {
}
})()
]).then(async () => {
const Ce = qt("Camera", [
[
"path",
{
d: "M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",
key: "1tc9qg"
}
],
[
"circle",
{
cx: "12",
cy: "13",
r: "3",
key: "1vg3eu"
}
]
]);
const Ee = qt("LockOpen", [
[
"rect",
{
width: "18",
height: "11",
x: "3",
y: "11",
rx: "2",
ry: "2",
key: "1w4ew1"
}
],
[
"path",
{
d: "M7 11V7a5 5 0 0 1 9.9-1",
key: "1mm8w8"
}
]
]);
const ze = qt("PenLine", [
[
"path",
{
d: "M12 20h9",
key: "t2du7b"
}
],
[
"path",
{
d: "M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",
key: "1ykcvy"
}
]
]);
var Mt = {
exports: {}
}, Jt;
function Ne() {
return Jt || (Jt = 1, (function(F, h) {
(function(r) {
F.exports = r();
})(function() {
return (function r(m, a, n) {
function s(u, f) {
if (!a[u]) {
if (!m[u]) {
var g = typeof Ot == "function" && Ot;
if (!f && g) return g(u, true);
if (e) return e(u, true);
var v = new Error("Cannot find module '" + u + "'");
throw v.code = "MODULE_NOT_FOUND", v;
}
var c = a[u] = {
exports: {}
};
m[u][0].call(c.exports, function(p) {
var l = m[u][1][p];
return s(l || p);
}, c, c.exports, r, m, a, n);
}
return a[u].exports;
}
for (var e = typeof Ot == "function" && Ot, o = 0; o < n.length; o++) s(n[o]);
return s;
})({
1: [
function(r, m, a) {
var n = r("./utils"), s = r("./support"), e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
a.encode = function(o) {
for (var u, f, g, v, c, p, l, x = [], d = 0, _ = o.length, j = _, E = n.getTypeOf(o) !== "string"; d < o.length; ) j = _ - d, g = E ? (u = o[d++], f = d < _ ? o[d++] : 0, d < _ ? o[d++] : 0) : (u = o.charCodeAt(d++), f = d < _ ? o.charCodeAt(d++) : 0, d < _ ? o.charCodeAt(d++) : 0), v = u >> 2, c = (3 & u) << 4 | f >> 4, p = 1 < j ? (15 & f) << 2 | g >> 6 : 64, l = 2 < j ? 63 & g : 64, x.push(e.charAt(v) + e.charAt(c) + e.charAt(p) + e.charAt(l));
return x.join("");
}, a.decode = function(o) {
var u, f, g, v, c, p, l = 0, x = 0, d = "data:";
if (o.substr(0, d.length) === d) throw new Error("Invalid base64 input, it looks like a data url.");
var _, j = 3 * (o = o.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
if (o.charAt(o.length - 1) === e.charAt(64) && j--, o.charAt(o.length - 2) === e.charAt(64) && j--, j % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
for (_ = s.uint8array ? new Uint8Array(0 | j) : new Array(0 | j); l < o.length; ) u = e.indexOf(o.charAt(l++)) << 2 | (v = e.indexOf(o.charAt(l++))) >> 4, f = (15 & v) << 4 | (c = e.indexOf(o.charAt(l++))) >> 2, g = (3 & c) << 6 | (p = e.indexOf(o.charAt(l++))), _[x++] = u, c !== 64 && (_[x++] = f), p !== 64 && (_[x++] = g);
return _;
};
},
{
"./support": 30,
"./utils": 32
}
],
2: [
function(r, m, a) {
var n = r("./external"), s = r("./stream/DataWorker"), e = r("./stream/Crc32Probe"), o = r("./stream/DataLengthProbe");
function u(f, g, v, c, p) {
this.compressedSize = f, this.uncompressedSize = g, this.crc32 = v, this.compression = c, this.compressedContent = p;
}
u.prototype = {
getContentWorker: function() {
var f = new s(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")), g = this;
return f.on("end", function() {
if (this.streamInfo.data_length !== g.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
}), f;
},
getCompressedWorker: function() {
return new s(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
}
}, u.createWorkerFrom = function(f, g, v) {
return f.pipe(new e()).pipe(new o("uncompressedSize")).pipe(g.compressWorker(v)).pipe(new o("compressedSize")).withStreamInfo("compression", g);
}, m.exports = u;
},
{
"./external": 6,
"./stream/Crc32Probe": 25,
"./stream/DataLengthProbe": 26,
"./stream/DataWorker": 27
}
],
3: [
function(r, m, a) {
var n = r("./stream/GenericWorker");
a.STORE = {
magic: "\0\0",
compressWorker: function() {
return new n("STORE compression");
},
uncompressWorker: function() {
return new n("STORE decompression");
}
}, a.DEFLATE = r("./flate");
},
{
"./flate": 7,
"./stream/GenericWorker": 28
}
],
4: [
function(r, m, a) {
var n = r("./utils"), s = (function() {
for (var e, o = [], u = 0; u < 256; u++) {
e = u;
for (var f = 0; f < 8; f++) e = 1 & e ? 3988292384 ^ e >>> 1 : e >>> 1;
o[u] = e;
}
return o;
})();
m.exports = function(e, o) {
return e !== void 0 && e.length ? n.getTypeOf(e) !== "string" ? (function(u, f, g, v) {
var c = s, p = v + g;
u ^= -1;
for (var l = v; l < p; l++) u = u >>> 8 ^ c[255 & (u ^ f[l])];
return -1 ^ u;
})(0 | o, e, e.length, 0) : (function(u, f, g, v) {
var c = s, p = v + g;
u ^= -1;
for (var l = v; l < p; l++) u = u >>> 8 ^ c[255 & (u ^ f.charCodeAt(l))];
return -1 ^ u;
})(0 | o, e, e.length, 0) : 0;
};
},
{
"./utils": 32
}
],
5: [
function(r, m, a) {
a.base64 = false, a.binary = false, a.dir = false, a.createFolders = true, a.date = null, a.compression = null, a.compressionOptions = null, a.comment = null, a.unixPermissions = null, a.dosPermissions = null;
},
{}
],
6: [
function(r, m, a) {
var n = null;
n = typeof Promise < "u" ? Promise : r("lie"), m.exports = {
Promise: n
};
},
{
lie: 37
}
],
7: [
function(r, m, a) {
var n = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", s = r("pako"), e = r("./utils"), o = r("./stream/GenericWorker"), u = n ? "uint8array" : "array";
function f(g, v) {
o.call(this, "FlateWorker/" + g), this._pako = null, this._pakoAction = g, this._pakoOptions = v, this.meta = {};
}
a.magic = "\b\0", e.inherits(f, o), f.prototype.processChunk = function(g) {
this.meta = g.meta, this._pako === null && this._createPako(), this._pako.push(e.transformTo(u, g.data), false);
}, f.prototype.flush = function() {
o.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], true);
}, f.prototype.cleanUp = function() {
o.prototype.cleanUp.call(this), this._pako = null;
}, f.prototype._createPako = function() {
this._pako = new s[this._pakoAction]({
raw: true,
level: this._pakoOptions.level || -1
});
var g = this;
this._pako.onData = function(v) {
g.push({
data: v,
meta: g.meta
});
};
}, a.compressWorker = function(g) {
return new f("Deflate", g);
}, a.uncompressWorker = function() {
return new f("Inflate", {});
};
},
{
"./stream/GenericWorker": 28,
"./utils": 32,
pako: 38
}
],
8: [
function(r, m, a) {
function n(c, p) {
var l, x = "";
for (l = 0; l < p; l++) x += String.fromCharCode(255 & c), c >>>= 8;
return x;
}
function s(c, p, l, x, d, _) {
var j, E, S = c.file, D = c.compression, N = _ !== u.utf8encode, W = e.transformTo("string", _(S.name)), T = e.transformTo("string", u.utf8encode(S.name)), R = S.comment, V = e.transformTo("string", _(R)), k = e.transformTo("string", u.utf8encode(R)), A = T.length !== S.name.length, i = k.length !== R.length, B = "", tt = "", Z = "", rt = S.dir, $ = S.date, Q = {
crc32: 0,
compressedSize: 0,
uncompressedSize: 0
};
p && !l || (Q.crc32 = c.crc32, Q.compressedSize = c.compressedSize, Q.uncompressedSize = c.uncompressedSize);
var O = 0;
p && (O |= 8), N || !A && !i || (O |= 2048);
var P = 0, J = 0;
rt && (P |= 16), d === "UNIX" ? (J = 798, P |= (function(q, ot) {
var ht = q;
return q || (ht = ot ? 16893 : 33204), (65535 & ht) << 16;
})(S.unixPermissions, rt)) : (J = 20, P |= (function(q) {
return 63 & (q || 0);
})(S.dosPermissions)), j = $.getUTCHours(), j <<= 6, j |= $.getUTCMinutes(), j <<= 5, j |= $.getUTCSeconds() / 2, E = $.getUTCFullYear() - 1980, E <<= 4, E |= $.getUTCMonth() + 1, E <<= 5, E |= $.getUTCDate(), A && (tt = n(1, 1) + n(f(W), 4) + T, B += "up" + n(tt.length, 2) + tt), i && (Z = n(1, 1) + n(f(V), 4) + k, B += "uc" + n(Z.length, 2) + Z);
var Y = "";
return Y += `
\0`, Y += n(O, 2), Y += D.magic, Y += n(j, 2), Y += n(E, 2), Y += n(Q.crc32, 4), Y += n(Q.compressedSize, 4), Y += n(Q.uncompressedSize, 4), Y += n(W.length, 2), Y += n(B.length, 2), {
fileRecord: g.LOCAL_FILE_HEADER + Y + W + B,
dirRecord: g.CENTRAL_FILE_HEADER + n(J, 2) + Y + n(V.length, 2) + "\0\0\0\0" + n(P, 4) + n(x, 4) + W + B + V
};
}
var e = r("../utils"), o = r("../stream/GenericWorker"), u = r("../utf8"), f = r("../crc32"), g = r("../signature");
function v(c, p, l, x) {
o.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = p, this.zipPlatform = l, this.encodeFileName = x, this.streamFiles = c, this.accumulate = false, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
}
e.inherits(v, o), v.prototype.push = function(c) {
var p = c.meta.percent || 0, l = this.entriesCount, x = this._sources.length;
this.accumulate ? this.contentBuffer.push(c) : (this.bytesWritten += c.data.length, o.prototype.push.call(this, {
data: c.data,
meta: {
currentFile: this.currentFile,
percent: l ? (p + 100 * (l - x - 1)) / l : 100
}
}));
}, v.prototype.openedSource = function(c) {
this.currentSourceOffset = this.bytesWritten, this.currentFile = c.file.name;
var p = this.streamFiles && !c.file.dir;
if (p) {
var l = s(c, p, false, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
this.push({
data: l.fileRecord,
meta: {
percent: 0
}
});
} else this.accumulate = true;
}, v.prototype.closedSource = function(c) {
this.accumulate = false;
var p = this.streamFiles && !c.file.dir, l = s(c, p, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
if (this.dirRecords.push(l.dirRecord), p) this.push({
data: (function(x) {
return g.DATA_DESCRIPTOR + n(x.crc32, 4) + n(x.compressedSize, 4) + n(x.uncompressedSize, 4);
})(c),
meta: {
percent: 100
}
});
else for (this.push({
data: l.fileRecord,
meta: {
percent: 0
}
}); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
this.currentFile = null;
}, v.prototype.flush = function() {
for (var c = this.bytesWritten, p = 0; p < this.dirRecords.length; p++) this.push({
data: this.dirRecords[p],
meta: {
percent: 100
}
});
var l = this.bytesWritten - c, x = (function(d, _, j, E, S) {
var D = e.transformTo("string", S(E));
return g.CENTRAL_DIRECTORY_END + "\0\0\0\0" + n(d, 2) + n(d, 2) + n(_, 4) + n(j, 4) + n(D.length, 2) + D;
})(this.dirRecords.length, l, c, this.zipComment, this.encodeFileName);
this.push({
data: x,
meta: {
percent: 100
}
});
}, v.prototype.prepareNextSource = function() {
this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
}, v.prototype.registerPrevious = function(c) {
this._sources.push(c);
var p = this;
return c.on("data", function(l) {
p.processChunk(l);
}), c.on("end", function() {
p.closedSource(p.previous.streamInfo), p._sources.length ? p.prepareNextSource() : p.end();
}), c.on("error", function(l) {
p.error(l);
}), this;
}, v.prototype.resume = function() {
return !!o.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), true) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), true));
}, v.prototype.error = function(c) {
var p = this._sources;
if (!o.prototype.error.call(this, c)) return false;
for (var l = 0; l < p.length; l++) try {
p[l].error(c);
} catch {
}
return true;
}, v.prototype.lock = function() {
o.prototype.lock.call(this);
for (var c = this._sources, p = 0; p < c.length; p++) c[p].lock();
}, m.exports = v;
},
{
"../crc32": 4,
"../signature": 23,
"../stream/GenericWorker": 28,
"../utf8": 31,
"../utils": 32
}
],
9: [
function(r, m, a) {
var n = r("../compressions"), s = r("./ZipFileWorker");
a.generateWorker = function(e, o, u) {
var f = new s(o.streamFiles, u, o.platform, o.encodeFileName), g = 0;
try {
e.forEach(function(v, c) {
g++;
var p = (function(_, j) {
var E = _ || j, S = n[E];
if (!S) throw new Error(E + " is not a valid compression method !");
return S;
})(c.options.compression, o.compression), l = c.options.compressionOptions || o.compressionOptions || {}, x = c.dir, d = c.date;
c._compressWorker(p, l).withStreamInfo("file", {
name: v,
dir: x,
date: d,
comment: c.comment || "",
unixPermissions: c.unixPermissions,
dosPermissions: c.dosPermissions
}).pipe(f);
}), f.entriesCount = g;
} catch (v) {
f.error(v);
}
return f;
};
},
{
"../compressions": 3,
"./ZipFileWorker": 8
}
],
10: [
function(r, m, a) {
function n() {
if (!(this instanceof n)) return new n();
if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() {
var s = new n();
for (var e in this) typeof this[e] != "function" && (s[e] = this[e]);
return s;
};
}
(n.prototype = r("./object")).loadAsync = r("./load"), n.support = r("./support"), n.defaults = r("./defaults"), n.version = "3.10.1", n.loadAsync = function(s, e) {
return new n().loadAsync(s, e);
}, n.external = r("./external"), m.exports = n;
},
{
"./defaults": 5,
"./external": 6,
"./load": 11,
"./object": 15,
"./support": 30
}
],
11: [
function(r, m, a) {
var n = r("./utils"), s = r("./external"), e = r("./utf8"), o = r("./zipEntries"), u = r("./stream/Crc32Probe"), f = r("./nodejsUtils");
function g(v) {
return new s.Promise(function(c, p) {
var l = v.decompressed.getContentWorker().pipe(new u());
l.on("error", function(x) {
p(x);
}).on("end", function() {
l.streamInfo.crc32 !== v.decompressed.crc32 ? p(new Error("Corrupted zip : CRC32 mismatch")) : c();
}).resume();
});
}
m.exports = function(v, c) {
var p = this;
return c = n.extend(c || {}, {
base64: false,
checkCRC32: false,
optimizedBinaryString: false,
createFolders: false,
decodeFileName: e.utf8decode
}), f.isNode && f.isStream(v) ? s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : n.prepareContent("the loaded zip file", v, true, c.optimizedBinaryString, c.base64).then(function(l) {
var x = new o(c);
return x.load(l), x;
}).then(function(l) {
var x = [
s.Promise.resolve(l)
], d = l.files;
if (c.checkCRC32) for (var _ = 0; _ < d.length; _++) x.push(g(d[_]));
return s.Promise.all(x);
}).then(function(l) {
for (var x = l.shift(), d = x.files, _ = 0; _ < d.length; _++) {
var j = d[_], E = j.fileNameStr, S = n.resolve(j.fileNameStr);
p.file(S, j.decompressed, {
binary: true,
optimizedBinaryString: true,
date: j.date,
dir: j.dir,
comment: j.fileCommentStr.length ? j.fileCommentStr : null,
unixPermissions: j.unixPermissions,
dosPermissions: j.dosPermissions,
createFolders: c.createFolders
}), j.dir || (p.file(S).unsafeOriginalName = E);
}
return x.zipComment.length && (p.comment = x.zipComment), p;
});
};
},
{
"./external": 6,
"./nodejsUtils": 14,
"./stream/Crc32Probe": 25,
"./utf8": 31,
"./utils": 32,
"./zipEntries": 33
}
],
12: [
function(r, m, a) {
var n = r("../utils"), s = r("../stream/GenericWorker");
function e(o, u) {
s.call(this, "Nodejs stream input adapter for " + o), this._upstreamEnded = false, this._bindStream(u);
}
n.inherits(e, s), e.prototype._bindStream = function(o) {
var u = this;
(this._stream = o).pause(), o.on("data", function(f) {
u.push({
data: f,
meta: {
percent: 0
}
});
}).on("error", function(f) {
u.isPaused ? this.generatedError = f : u.error(f);
}).on("end", function() {
u.isPaused ? u._upstreamEnded = true : u.end();
});
}, e.prototype.pause = function() {
return !!s.prototype.pause.call(this) && (this._stream.pause(), true);
}, e.prototype.resume = function() {
return !!s.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), true);
}, m.exports = e;
},
{
"../stream/GenericWorker": 28,
"../utils": 32
}
],
13: [
function(r, m, a) {
var n = r("readable-stream").Readable;
function s(e, o, u) {
n.call(this, o), this._helper = e;
var f = this;
e.on("data", function(g, v) {
f.push(g) || f._helper.pause(), u && u(v);
}).on("error", function(g) {
f.emit("error", g);
}).on("end", function() {
f.push(null);
});
}
r("../utils").inherits(s, n), s.prototype._read = function() {
this._helper.resume();
}, m.exports = s;
},
{
"../utils": 32,
"readable-stream": 16
}
],
14: [
function(r, m, a) {
m.exports = {
isNode: typeof mt < "u",
newBufferFrom: function(n, s) {
if (mt.from && mt.from !== Uint8Array.from) return mt.from(n, s);
if (typeof n == "number") throw new Error('The "data" argument must not be a number');
return new mt(n, s);
},
allocBuffer: function(n) {
if (mt.alloc) return mt.alloc(n);
var s = new mt(n);
return s.fill(0), s;
},
isBuffer: function(n) {
return mt.isBuffer(n);
},
isStream: function(n) {
return n && typeof n.on == "function" && typeof n.pause == "function" && typeof n.resume == "function";
}
};
},
{}
],
15: [
function(r, m, a) {
function n(S, D, N) {
var W, T = e.getTypeOf(D), R = e.extend(N || {}, f);
R.date = R.date || /* @__PURE__ */ new Date(), R.compression !== null && (R.compression = R.compression.toUpperCase()), typeof R.unixPermissions == "string" && (R.unixPermissions = parseInt(R.unixPermissions, 8)), R.unixPermissions && 16384 & R.unixPermissions && (R.dir = true), R.dosPermissions && 16 & R.dosPermissions && (R.dir = true), R.dir && (S = d(S)), R.createFolders && (W = x(S)) && _.call(this, W, true);
var V = T === "string" && R.binary === false && R.base64 === false;
N && N.binary !== void 0 || (R.binary = !V), (D instanceof g && D.uncompressedSize === 0 || R.dir || !D || D.length === 0) && (R.base64 = false, R.binary = true, D = "", R.compression = "STORE", T = "string");
var k = null;
k = D instanceof g || D instanceof o ? D : p.isNode && p.isStream(D) ? new l(S, D) : e.prepareContent(S, D, R.binary, R.optimizedBinaryString, R.base64);
var A = new v(S, k, R);
this.files[S] = A;
}
var s = r("./utf8"), e = r("./utils"), o = r("./stream/GenericWorker"), u = r("./stream/StreamHelper"), f = r("./defaults"), g = r("./compressedObject"), v = r("./zipObject"), c = r("./generate"), p = r("./nodejsUtils"), l = r("./nodejs/NodejsStreamInputAdapter"), x = function(S) {
S.slice(-1) === "/" && (S = S.substring(0, S.length - 1));
var D = S.lastIndexOf("/");
return 0 < D ? S.substring(0, D) : "";
}, d = function(S) {
return S.slice(-1) !== "/" && (S += "/"), S;
}, _ = function(S, D) {
return D = D !== void 0 ? D : f.createFolders, S = d(S), this.files[S] || n.call(this, S, null, {
dir: true,
createFolders: D
}), this.files[S];
};
function j(S) {
return Object.prototype.toString.call(S) === "[object RegExp]";
}
var E = {
load: function() {
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
},
forEach: function(S) {
var D, N, W;
for (D in this.files) W = this.files[D], (N = D.slice(this.root.length, D.length)) && D.slice(0, this.root.length) === this.root && S(N, W);
},
filter: function(S) {
var D = [];
return this.forEach(function(N, W) {
S(N, W) && D.push(W);
}), D;
},
file: function(S, D, N) {
if (arguments.length !== 1) return S = this.root + S, n.call(this, S, D, N), this;
if (j(S)) {
var W = S;
return this.filter(function(R, V) {
return !V.dir && W.test(R);
});
}
var T = this.files[this.root + S];
return T && !T.dir ? T : null;
},
folder: function(S) {
if (!S) return this;
if (j(S)) return this.filter(function(T, R) {
return R.dir && S.test(T);
});
var D = this.root + S, N = _.call(this, D), W = this.clone();
return W.root = N.name, W;
},
remove: function(S) {
S = this.root + S;
var D = this.files[S];
if (D || (S.slice(-1) !== "/" && (S += "/"), D = this.files[S]), D && !D.dir) delete this.files[S];
else for (var N = this.filter(function(T, R) {
return R.name.slice(0, S.length) === S;
}), W = 0; W < N.length; W++) delete this.files[N[W].name];
return this;
},
generate: function() {
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
},
generateInternalStream: function(S) {
var D, N = {};
try {
if ((N = e.extend(S || {}, {
streamFiles: false,
compression: "STORE",
compressionOptions: null,
type: "",
platform: "DOS",
comment: null,
mimeType: "application/zip",
encodeFileName: s.utf8encode
})).type = N.type.toLowerCase(), N.compression = N.compression.toUpperCase(), N.type === "binarystring" && (N.type = "string"), !N.type) throw new Error("No output type specified.");
e.checkSupport(N.type), N.platform !== "darwin" && N.platform !== "freebsd" && N.platform !== "linux" && N.platform !== "sunos" || (N.platform = "UNIX"), N.platform === "win32" && (N.platform = "DOS");
var W = N.comment || this.comment || "";
D = c.generateWorker(this, N, W);
} catch (T) {
(D = new o("error")).error(T);
}
return new u(D, N.type || "string", N.mimeType);
},
generateAsync: function(S, D) {
return this.generateInternalStream(S).accumulate(D);
},
generateNodeStream: function(S, D) {
return (S = S || {}).type || (S.type = "nodebuffer"), this.generateInternalStream(S).toNodejsStream(D);
}
};
m.exports = E;
},
{
"./compressedObject": 2,
"./defaults": 5,
"./generate": 9,
"./nodejs/NodejsStreamInputAdapter": 12,
"./nodejsUtils": 14,
"./stream/GenericWorker": 28,
"./stream/StreamHelper": 29,
"./utf8": 31,
"./utils": 32,
"./zipObject": 35
}
],
16: [
function(r, m, a) {
m.exports = r("stream");
},
{
stream: void 0
}
],
17: [
function(r, m, a) {
var n = r("./Data