file-viewer3 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- var Ze = Object.defineProperty;
2
- var et = (e, t, n) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var pe = (e, t, n) => (et(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { defineAsyncComponent as D, createApp as P, createVNode as N, defineComponent as Pe, openBlock as I, createElementBlock as M, toDisplayString as H, ref as F, onMounted as tt, watch as he, createElementVNode as Q, Fragment as nt, withDirectives as me, vShow as ye } from "vue";
5
- const rt = (() => {
1
+ var et = Object.defineProperty;
2
+ var tt = (e, t, n) => t in e ? et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var pe = (e, t, n) => (tt(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import { defineAsyncComponent as D, createApp as P, createVNode as N, defineComponent as Ne, openBlock as I, createElementBlock as M, toDisplayString as H, ref as F, onMounted as nt, watch as he, createElementVNode as Q, Fragment as rt, withDirectives as me, vShow as ye } from "vue";
5
+ const st = (() => {
6
6
  const e = {
7
7
  module: null,
8
8
  async load() {
@@ -11,29 +11,30 @@ const rt = (() => {
11
11
  };
12
12
  return async () => await e.load();
13
13
  })();
14
- async function st(e, t) {
15
- const { defaultOptions: n, renderAsync: r } = await rt(), s = Object.assign(n, {
14
+ async function ot(e, t) {
15
+ const { defaultOptions: n, renderAsync: r } = await st(), s = Object.assign(n, {
16
16
  debug: !0,
17
17
  experimental: !0
18
18
  });
19
19
  await r(e, t, void 0, s);
20
20
  }
21
- const ot = D(() => import("./PptxRender.js"));
22
- async function it(e, t) {
21
+ const it = D(() => import("./PptxRender.js"));
22
+ async function at(e, t) {
23
23
  return P({
24
- render: () => N(ot, {
24
+ render: () => N(it, {
25
25
  data: e
26
26
  }, null)
27
27
  }).mount(t);
28
28
  }
29
- const at = D(() => import("./XlsxTable.js"));
30
- async function ct(e, t) {
31
- const n = P({
32
- render: () => N(at, {
33
- data: e
29
+ const ct = D(() => import("./XlsxTable.js"));
30
+ async function we(e, t, n) {
31
+ const r = P({
32
+ render: () => N(ct, {
33
+ data: e,
34
+ type: n
34
35
  }, null)
35
36
  });
36
- return n.mount(t), n;
37
+ return r.mount(t), r;
37
38
  }
38
39
  const ut = D(() => import("./PdfView.js"));
39
40
  async function lt(e, t) {
@@ -63,7 +64,7 @@ async function dt(e) {
63
64
  }, r.onerror = (s) => n(s), r.readAsDataURL(new Blob([e]));
64
65
  });
65
66
  }
66
- async function Ne(e) {
67
+ async function Ce(e) {
67
68
  return new Promise((t, n) => {
68
69
  const r = new FileReader();
69
70
  r.onload = (s) => {
@@ -84,14 +85,14 @@ async function ht(e, t) {
84
85
  }
85
86
  const mt = D(() => import("./MarkdownViewer.js"));
86
87
  async function yt(e, t) {
87
- const n = await Ne(e), r = P({
88
+ const n = await Ce(e), r = P({
88
89
  render: () => N(mt, {
89
90
  data: n
90
91
  }, null)
91
92
  });
92
93
  return r.mount(t), r;
93
94
  }
94
- const wt = { class: "code-area" }, Et = /* @__PURE__ */ Pe({
95
+ const wt = { class: "code-area" }, Et = /* @__PURE__ */ Ne({
95
96
  __name: "CodeViewer",
96
97
  props: {
97
98
  value: null
@@ -101,14 +102,14 @@ const wt = { class: "code-area" }, Et = /* @__PURE__ */ Pe({
101
102
  `, 1));
102
103
  }
103
104
  });
104
- const Ce = (e, t) => {
105
+ const Fe = (e, t) => {
105
106
  const n = e.__vccOpts || e;
106
107
  for (const [r, s] of t)
107
108
  n[r] = s;
108
109
  return n;
109
- }, bt = /* @__PURE__ */ Ce(Et, [["__scopeId", "data-v-3be501eb"]]);
110
+ }, bt = /* @__PURE__ */ Fe(Et, [["__scopeId", "data-v-3be501eb"]]);
110
111
  async function Rt(e, t) {
111
- const n = await Ne(e), r = P({
112
+ const n = await Ce(e), r = P({
112
113
  render: () => N(bt, {
113
114
  value: n
114
115
  }, null)
@@ -129,17 +130,22 @@ const v = (e) => ({
129
130
  // 使用docxjs支持,目前效果最好的渲染器
130
131
  {
131
132
  accepts: ["docx"],
132
- handler: async (e, t) => (await st(e, t), window.dispatchEvent(new Event("resize")), v(t))
133
+ handler: async (e, t) => (await ot(e, t), window.dispatchEvent(new Event("resize")), v(t))
133
134
  },
134
135
  // 使用pptx2html,已通过默认值更替
135
136
  {
136
137
  accepts: ["pptx"],
137
- handler: async (e, t) => (await it(e, t), window.dispatchEvent(new Event("resize")), v(t))
138
+ handler: async (e, t) => (await at(e, t), window.dispatchEvent(new Event("resize")), v(t))
138
139
  },
139
- // 使用sheetjs + handsontable,无样式
140
+ // 使用exceljs + handsontable,全部样式
140
141
  {
141
142
  accepts: ["xlsx"],
142
- handler: async (e, t) => ct(e, t)
143
+ handler: async (e, t) => we(e, t, "xml")
144
+ },
145
+ // 使用js-xlsx + handsontable,无样式
146
+ {
147
+ accepts: ["xlsm", "xlsb", "xls", "csv", "ods", "fods", "numbers"],
148
+ handler: async (e, t) => we(e, t, "binary")
143
149
  },
144
150
  // 使用pdfjs,渲染pdf,效果最好
145
151
  {
@@ -171,43 +177,43 @@ const v = (e) => ({
171
177
  handler: async (e, t, n) => (t.innerHTML = `<div style='text-align: center; margin-top: 80px'>不支持.${n}格式的在线预览,请下载后预览或转换为支持的格式</div>
172
178
  <div style='text-align: center'>支持docx, xlsx, pptx, pdf, 以及纯文本格式和各种图片格式的在线预览</div>`, v(t))
173
179
  }
174
- ], Fe = gt.reduce((e, { accepts: t, handler: n }) => (t.forEach((r) => e.set(r, n)), e), /* @__PURE__ */ new Map()), we = Fe.get("error");
180
+ ], Le = gt.reduce((e, { accepts: t, handler: n }) => (t.forEach((r) => e.set(r, n)), e), /* @__PURE__ */ new Map()), Ee = Le.get("error");
175
181
  function Ot(e) {
176
182
  const t = e.lastIndexOf(".");
177
183
  return e.substring(t + 1);
178
184
  }
179
- async function At(e, t, n) {
180
- const r = Fe.get(t.toLowerCase());
185
+ async function xt(e, t, n) {
186
+ const r = Le.get(t.toLowerCase());
181
187
  if (r)
182
188
  return r(e, n);
183
- if (we)
184
- return we(e, n, t);
189
+ if (Ee)
190
+ return Ee(e, n, t);
185
191
  }
186
- function Le(e, t) {
192
+ function Be(e, t) {
187
193
  return function() {
188
194
  return e.apply(t, arguments);
189
195
  };
190
196
  }
191
- const { toString: Be } = Object.prototype, { getPrototypeOf: ie } = Object, ae = ((e) => (t) => {
192
- const n = Be.call(t);
197
+ const { toString: De } = Object.prototype, { getPrototypeOf: ie } = Object, ae = ((e) => (t) => {
198
+ const n = De.call(t);
193
199
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
194
200
  })(/* @__PURE__ */ Object.create(null)), O = (e) => (e = e.toLowerCase(), (t) => ae(t) === e), W = (e) => (t) => typeof t === e, { isArray: C } = Array, B = W("undefined");
195
- function xt(e) {
201
+ function At(e) {
196
202
  return e !== null && !B(e) && e.constructor !== null && !B(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
197
203
  }
198
- const De = O("ArrayBuffer");
204
+ const Ue = O("ArrayBuffer");
199
205
  function _t(e) {
200
206
  let t;
201
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && De(e.buffer), t;
207
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ue(e.buffer), t;
202
208
  }
203
- const Tt = W("string"), _ = W("function"), Ue = W("number"), ce = (e) => e !== null && typeof e == "object", Pt = (e) => e === !0 || e === !1, q = (e) => {
209
+ const Tt = W("string"), _ = W("function"), je = W("number"), ce = (e) => e !== null && typeof e == "object", Pt = (e) => e === !0 || e === !1, q = (e) => {
204
210
  if (ae(e) !== "object")
205
211
  return !1;
206
212
  const t = ie(e);
207
213
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
208
214
  }, Nt = O("Date"), Ct = O("File"), Ft = O("Blob"), Lt = O("FileList"), Bt = (e) => ce(e) && _(e.pipe), Dt = (e) => {
209
215
  const t = "[object FormData]";
210
- return e && (typeof FormData == "function" && e instanceof FormData || Be.call(e) === t || _(e.toString) && e.toString() === t);
216
+ return e && (typeof FormData == "function" && e instanceof FormData || De.call(e) === t || _(e.toString) && e.toString() === t);
211
217
  }, Ut = O("URLSearchParams"), jt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
212
218
  function U(e, t, { allOwnKeys: n = !1 } = {}) {
213
219
  if (e === null || typeof e > "u")
@@ -223,7 +229,7 @@ function U(e, t, { allOwnKeys: n = !1 } = {}) {
223
229
  u = o[r], t.call(null, e[u], u, e);
224
230
  }
225
231
  }
226
- function je(e, t) {
232
+ function ke(e, t) {
227
233
  t = t.toLowerCase();
228
234
  const n = Object.keys(e);
229
235
  let r = n.length, s;
@@ -232,10 +238,10 @@ function je(e, t) {
232
238
  return s;
233
239
  return null;
234
240
  }
235
- const ke = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), ve = (e) => !B(e) && e !== ke;
241
+ const ve = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Ie = (e) => !B(e) && e !== ve;
236
242
  function ne() {
237
- const { caseless: e } = ve(this) && this || {}, t = {}, n = (r, s) => {
238
- const o = e && je(t, s) || s;
243
+ const { caseless: e } = Ie(this) && this || {}, t = {}, n = (r, s) => {
244
+ const o = e && ke(t, s) || s;
239
245
  q(t[o]) && q(r) ? t[o] = ne(t[o], r) : q(r) ? t[o] = ne({}, r) : C(r) ? t[o] = r.slice() : t[o] = r;
240
246
  };
241
247
  for (let r = 0, s = arguments.length; r < s; r++)
@@ -243,7 +249,7 @@ function ne() {
243
249
  return t;
244
250
  }
245
251
  const kt = (e, t, n, { allOwnKeys: r } = {}) => (U(t, (s, o) => {
246
- n && _(s) ? e[o] = Le(s, n) : e[o] = s;
252
+ n && _(s) ? e[o] = Be(s, n) : e[o] = s;
247
253
  }, { allOwnKeys: r }), e), vt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), It = (e, t, n, r) => {
248
254
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
249
255
  value: t.prototype
@@ -269,7 +275,7 @@ const kt = (e, t, n, { allOwnKeys: r } = {}) => (U(t, (s, o) => {
269
275
  if (C(e))
270
276
  return e;
271
277
  let t = e.length;
272
- if (!Ue(t))
278
+ if (!je(t))
273
279
  return null;
274
280
  const n = new Array(t);
275
281
  for (; t-- > 0; )
@@ -293,13 +299,13 @@ const kt = (e, t, n, { allOwnKeys: r } = {}) => (U(t, (s, o) => {
293
299
  function(n, r, s) {
294
300
  return r.toUpperCase() + s;
295
301
  }
296
- ), Ee = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Kt = O("RegExp"), Ie = (e, t) => {
302
+ ), be = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Kt = O("RegExp"), Me = (e, t) => {
297
303
  const n = Object.getOwnPropertyDescriptors(e), r = {};
298
304
  U(n, (s, o) => {
299
305
  t(s, o, e) !== !1 && (r[o] = s);
300
306
  }), Object.defineProperties(e, r);
301
307
  }, Gt = (e) => {
302
- Ie(e, (t, n) => {
308
+ Me(e, (t, n) => {
303
309
  if (_(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
304
310
  return !1;
305
311
  const r = e[n];
@@ -321,11 +327,11 @@ const kt = (e, t, n, { allOwnKeys: r } = {}) => (U(t, (s, o) => {
321
327
  };
322
328
  return C(e) ? r(e) : r(String(e).split(t)), n;
323
329
  }, Qt = () => {
324
- }, Yt = (e, t) => (e = +e, Number.isFinite(e) ? e : t), Y = "abcdefghijklmnopqrstuvwxyz", be = "0123456789", Me = {
325
- DIGIT: be,
330
+ }, Yt = (e, t) => (e = +e, Number.isFinite(e) ? e : t), Y = "abcdefghijklmnopqrstuvwxyz", Re = "0123456789", He = {
331
+ DIGIT: Re,
326
332
  ALPHA: Y,
327
- ALPHA_DIGIT: Y + Y.toUpperCase() + be
328
- }, Zt = (e = 16, t = Me.ALPHA_DIGIT) => {
333
+ ALPHA_DIGIT: Y + Y.toUpperCase() + Re
334
+ }, Zt = (e = 16, t = He.ALPHA_DIGIT) => {
329
335
  let n = "";
330
336
  const { length: r } = t;
331
337
  for (; e--; )
@@ -354,12 +360,12 @@ const tn = (e) => {
354
360
  return n(e, 0);
355
361
  }, a = {
356
362
  isArray: C,
357
- isArrayBuffer: De,
358
- isBuffer: xt,
363
+ isArrayBuffer: Ue,
364
+ isBuffer: At,
359
365
  isFormData: Dt,
360
366
  isArrayBufferView: _t,
361
367
  isString: Tt,
362
- isNumber: Ue,
368
+ isNumber: je,
363
369
  isBoolean: Pt,
364
370
  isObject: ce,
365
371
  isPlainObject: q,
@@ -387,19 +393,19 @@ const tn = (e) => {
387
393
  forEachEntry: zt,
388
394
  matchAll: Jt,
389
395
  isHTMLForm: $t,
390
- hasOwnProperty: Ee,
391
- hasOwnProp: Ee,
396
+ hasOwnProperty: be,
397
+ hasOwnProp: be,
392
398
  // an alias to avoid ESLint no-prototype-builtins detection
393
- reduceDescriptors: Ie,
399
+ reduceDescriptors: Me,
394
400
  freezeMethods: Gt,
395
401
  toObjectSet: Xt,
396
402
  toCamelCase: Wt,
397
403
  noop: Qt,
398
404
  toFiniteNumber: Yt,
399
- findKey: je,
400
- global: ke,
401
- isContextDefined: ve,
402
- ALPHABET: Me,
405
+ findKey: ke,
406
+ global: ve,
407
+ isContextDefined: Ie,
408
+ ALPHABET: He,
403
409
  generateString: Zt,
404
410
  isSpecCompliantForm: en,
405
411
  toJSONObject: tn
@@ -428,7 +434,7 @@ a.inherits(m, Error, {
428
434
  };
429
435
  }
430
436
  });
431
- const He = m.prototype, qe = {};
437
+ const qe = m.prototype, Ve = {};
432
438
  [
433
439
  "ERR_BAD_OPTION_VALUE",
434
440
  "ERR_BAD_OPTION",
@@ -444,12 +450,12 @@ const He = m.prototype, qe = {};
444
450
  "ERR_INVALID_URL"
445
451
  // eslint-disable-next-line func-names
446
452
  ].forEach((e) => {
447
- qe[e] = { value: e };
453
+ Ve[e] = { value: e };
448
454
  });
449
- Object.defineProperties(m, qe);
450
- Object.defineProperty(He, "isAxiosError", { value: !0 });
455
+ Object.defineProperties(m, Ve);
456
+ Object.defineProperty(qe, "isAxiosError", { value: !0 });
451
457
  m.from = (e, t, n, r, s, o) => {
452
- const i = Object.create(He);
458
+ const i = Object.create(qe);
453
459
  return a.toFlatObject(e, i, function(p) {
454
460
  return p !== Error.prototype;
455
461
  }, (u) => u !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
@@ -458,12 +464,12 @@ const nn = null;
458
464
  function re(e) {
459
465
  return a.isPlainObject(e) || a.isArray(e);
460
466
  }
461
- function Ve(e) {
467
+ function ze(e) {
462
468
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
463
469
  }
464
- function Re(e, t, n) {
470
+ function Se(e, t, n) {
465
471
  return e ? e.concat(t).map(function(s, o) {
466
- return s = Ve(s), !n && o ? "[" + s + "]" : s;
472
+ return s = ze(s), !n && o ? "[" + s + "]" : s;
467
473
  }).join(n ? "." : "") : t;
468
474
  }
469
475
  function rn(e) {
@@ -500,15 +506,15 @@ function K(e, t, n) {
500
506
  if (a.endsWith(h, "{}"))
501
507
  h = r ? h : h.slice(0, -2), f = JSON.stringify(f);
502
508
  else if (a.isArray(f) && rn(f) || (a.isFileList(f) || a.endsWith(h, "[]")) && (b = a.toArray(f)))
503
- return h = Ve(h), b.forEach(function(k, Ye) {
509
+ return h = ze(h), b.forEach(function(k, Ze) {
504
510
  !(a.isUndefined(k) || k === null) && t.append(
505
511
  // eslint-disable-next-line no-nested-ternary
506
- i === !0 ? Re([h], Ye, o) : i === null ? h : h + "[]",
512
+ i === !0 ? Se([h], Ze, o) : i === null ? h : h + "[]",
507
513
  c(k)
508
514
  );
509
515
  }), !1;
510
516
  }
511
- return re(f) ? !0 : (t.append(Re(R, h, o), c(f)), !1);
517
+ return re(f) ? !0 : (t.append(Se(R, h, o), c(f)), !1);
512
518
  }
513
519
  const d = [], y = Object.assign(sn, {
514
520
  defaultVisitor: l,
@@ -519,14 +525,14 @@ function K(e, t, n) {
519
525
  if (!a.isUndefined(f)) {
520
526
  if (d.indexOf(f) !== -1)
521
527
  throw Error("Circular reference detected in " + h.join("."));
522
- d.push(f), a.forEach(f, function(b, A) {
528
+ d.push(f), a.forEach(f, function(b, x) {
523
529
  (!(a.isUndefined(b) || b === null) && s.call(
524
530
  t,
525
531
  b,
526
- a.isString(A) ? A.trim() : A,
532
+ a.isString(x) ? x.trim() : x,
527
533
  h,
528
534
  y
529
- )) === !0 && w(b, h ? h.concat(A) : [A]);
535
+ )) === !0 && w(b, h ? h.concat(x) : [x]);
530
536
  }), d.pop();
531
537
  }
532
538
  }
@@ -534,7 +540,7 @@ function K(e, t, n) {
534
540
  throw new TypeError("data must be an object");
535
541
  return w(e), t;
536
542
  }
537
- function Se(e) {
543
+ function ge(e) {
538
544
  const t = {
539
545
  "!": "%21",
540
546
  "'": "%27",
@@ -551,14 +557,14 @@ function Se(e) {
551
557
  function ue(e, t) {
552
558
  this._pairs = [], e && K(e, this, t);
553
559
  }
554
- const ze = ue.prototype;
555
- ze.append = function(t, n) {
560
+ const Je = ue.prototype;
561
+ Je.append = function(t, n) {
556
562
  this._pairs.push([t, n]);
557
563
  };
558
- ze.toString = function(t) {
564
+ Je.toString = function(t) {
559
565
  const n = t ? function(r) {
560
- return t.call(this, r, Se);
561
- } : Se;
566
+ return t.call(this, r, ge);
567
+ } : ge;
562
568
  return this._pairs.map(function(s) {
563
569
  return n(s[0]) + "=" + n(s[1]);
564
570
  }, "").join("&");
@@ -566,7 +572,7 @@ ze.toString = function(t) {
566
572
  function on(e) {
567
573
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
568
574
  }
569
- function Je(e, t, n) {
575
+ function $e(e, t, n) {
570
576
  if (!t)
571
577
  return e;
572
578
  const r = n && n.encode || on, s = n && n.serialize;
@@ -631,7 +637,7 @@ class an {
631
637
  });
632
638
  }
633
639
  }
634
- const ge = an, $e = {
640
+ const Oe = an, We = {
635
641
  silentJSONParsing: !0,
636
642
  forcedJSONParsing: !0,
637
643
  clarifyTimeoutError: !1
@@ -669,7 +675,7 @@ function mn(e) {
669
675
  o = n[r], t[o] = e[o];
670
676
  return t;
671
677
  }
672
- function We(e) {
678
+ function Ke(e) {
673
679
  function t(n, r, s, o) {
674
680
  let i = n[o++];
675
681
  const u = Number.isFinite(+i), p = o >= n.length;
@@ -697,12 +703,12 @@ function wn(e, t, n) {
697
703
  return (n || JSON.stringify)(e);
698
704
  }
699
705
  const G = {
700
- transitional: $e,
706
+ transitional: We,
701
707
  adapter: ["xhr", "http"],
702
708
  transformRequest: [function(t, n) {
703
709
  const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
704
710
  if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
705
- return s && s ? JSON.stringify(We(t)) : t;
711
+ return s && s ? JSON.stringify(Ke(t)) : t;
706
712
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
707
713
  return t;
708
714
  if (a.isArrayBufferView(t))
@@ -790,7 +796,7 @@ const le = G, En = a.toObjectSet([
790
796
  `).forEach(function(i) {
791
797
  s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && En[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
792
798
  }), t;
793
- }, Oe = Symbol("internals");
799
+ }, xe = Symbol("internals");
794
800
  function L(e) {
795
801
  return e && String(e).trim().toLowerCase();
796
802
  }
@@ -930,7 +936,7 @@ class X {
930
936
  return n.forEach((s) => r.set(s)), r;
931
937
  }
932
938
  static accessor(t) {
933
- const r = (this[Oe] = this[Oe] = {
939
+ const r = (this[xe] = this[xe] = {
934
940
  accessors: {}
935
941
  }).accessors, s = this.prototype;
936
942
  function o(i) {
@@ -951,7 +957,7 @@ function ee(e, t) {
951
957
  o = u.call(n, o, s.normalize(), t ? t.status : void 0);
952
958
  }), s.normalize(), o;
953
959
  }
954
- function Ke(e) {
960
+ function Ge(e) {
955
961
  return !!(e && e.__CANCEL__);
956
962
  }
957
963
  function j(e, t, n) {
@@ -960,7 +966,7 @@ function j(e, t, n) {
960
966
  a.inherits(j, m, {
961
967
  __CANCEL__: !0
962
968
  });
963
- function An(e, t, n) {
969
+ function xn(e, t, n) {
964
970
  const r = n.config.validateStatus;
965
971
  !n.status || !r || r(n.status) ? e(n) : t(new m(
966
972
  "Request failed with status code " + n.status,
@@ -970,7 +976,7 @@ function An(e, t, n) {
970
976
  n
971
977
  ));
972
978
  }
973
- const xn = S.isStandardBrowserEnv ? (
979
+ const An = S.isStandardBrowserEnv ? (
974
980
  // Standard browser envs support document.cookie
975
981
  function() {
976
982
  return {
@@ -1007,7 +1013,7 @@ function _n(e) {
1007
1013
  function Tn(e, t) {
1008
1014
  return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
1009
1015
  }
1010
- function Ge(e, t) {
1016
+ function Xe(e, t) {
1011
1017
  return e && !_n(t) ? Tn(e, t) : t;
1012
1018
  }
1013
1019
  const Pn = S.isStandardBrowserEnv ? (
@@ -1094,8 +1100,8 @@ const Fn = typeof XMLHttpRequest < "u", Ln = Fn && function(e) {
1094
1100
  const w = e.auth.username || "", f = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
1095
1101
  o.set("Authorization", "Basic " + btoa(w + ":" + f));
1096
1102
  }
1097
- const l = Ge(e.baseURL, e.url);
1098
- c.open(e.method.toUpperCase(), Je(l, e.params, e.paramsSerializer), !0), c.timeout = e.timeout;
1103
+ const l = Xe(e.baseURL, e.url);
1104
+ c.open(e.method.toUpperCase(), $e(l, e.params, e.paramsSerializer), !0), c.timeout = e.timeout;
1099
1105
  function d() {
1100
1106
  if (!c)
1101
1107
  return;
@@ -1109,7 +1115,7 @@ const Fn = typeof XMLHttpRequest < "u", Ln = Fn && function(e) {
1109
1115
  config: e,
1110
1116
  request: c
1111
1117
  };
1112
- An(function(b) {
1118
+ xn(function(b) {
1113
1119
  n(b), p();
1114
1120
  }, function(b) {
1115
1121
  r(b), p();
@@ -1123,7 +1129,7 @@ const Fn = typeof XMLHttpRequest < "u", Ln = Fn && function(e) {
1123
1129
  r(new m("Network Error", m.ERR_NETWORK, e, c)), c = null;
1124
1130
  }, c.ontimeout = function() {
1125
1131
  let f = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
1126
- const h = e.transitional || $e;
1132
+ const h = e.transitional || We;
1127
1133
  e.timeoutErrorMessage && (f = e.timeoutErrorMessage), r(new m(
1128
1134
  f,
1129
1135
  h.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
@@ -1131,7 +1137,7 @@ const Fn = typeof XMLHttpRequest < "u", Ln = Fn && function(e) {
1131
1137
  c
1132
1138
  )), c = null;
1133
1139
  }, S.isStandardBrowserEnv) {
1134
- const w = (e.withCredentials || Pn(l)) && e.xsrfCookieName && xn.read(e.xsrfCookieName);
1140
+ const w = (e.withCredentials || Pn(l)) && e.xsrfCookieName && An.read(e.xsrfCookieName);
1135
1141
  w && o.set(e.xsrfHeaderName, w);
1136
1142
  }
1137
1143
  s === void 0 && o.setContentType(null), "setRequestHeader" in c && a.forEach(o.toJSON(), function(f, h) {
@@ -1183,7 +1189,7 @@ function te(e) {
1183
1189
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1184
1190
  throw new j(null, e);
1185
1191
  }
1186
- function xe(e) {
1192
+ function _e(e) {
1187
1193
  return te(e), e.headers = g.from(e.headers), e.data = ee.call(
1188
1194
  e,
1189
1195
  e.transformRequest
@@ -1194,14 +1200,14 @@ function xe(e) {
1194
1200
  r
1195
1201
  ), r.headers = g.from(r.headers), r;
1196
1202
  }, function(r) {
1197
- return Ke(r) || (te(e), r && r.response && (r.response.data = ee.call(
1203
+ return Ge(r) || (te(e), r && r.response && (r.response.data = ee.call(
1198
1204
  e,
1199
1205
  e.transformResponse,
1200
1206
  r.response
1201
1207
  ), r.response.headers = g.from(r.response.headers))), Promise.reject(r);
1202
1208
  });
1203
1209
  }
1204
- const _e = (e) => e instanceof g ? e.toJSON() : e;
1210
+ const Te = (e) => e instanceof g ? e.toJSON() : e;
1205
1211
  function T(e, t) {
1206
1212
  t = t || {};
1207
1213
  const n = {};
@@ -1260,23 +1266,23 @@ function T(e, t) {
1260
1266
  socketPath: i,
1261
1267
  responseEncoding: i,
1262
1268
  validateStatus: u,
1263
- headers: (c, l) => s(_e(c), _e(l), !0)
1269
+ headers: (c, l) => s(Te(c), Te(l), !0)
1264
1270
  };
1265
1271
  return a.forEach(Object.keys(e).concat(Object.keys(t)), function(l) {
1266
1272
  const d = p[l] || s, y = d(e[l], t[l], l);
1267
1273
  a.isUndefined(y) && d !== u || (n[l] = y);
1268
1274
  }), n;
1269
1275
  }
1270
- const Xe = "1.3.4", fe = {};
1276
+ const Qe = "1.3.4", fe = {};
1271
1277
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1272
1278
  fe[e] = function(r) {
1273
1279
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1274
1280
  };
1275
1281
  });
1276
- const Te = {};
1282
+ const Pe = {};
1277
1283
  fe.transitional = function(t, n, r) {
1278
1284
  function s(o, i) {
1279
- return "[Axios v" + Xe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1285
+ return "[Axios v" + Qe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1280
1286
  }
1281
1287
  return (o, i, u) => {
1282
1288
  if (t === !1)
@@ -1284,7 +1290,7 @@ fe.transitional = function(t, n, r) {
1284
1290
  s(i, " has been removed" + (n ? " in " + n : "")),
1285
1291
  m.ERR_DEPRECATED
1286
1292
  );
1287
- return n && !Te[i] && (Te[i] = !0, console.warn(
1293
+ return n && !Pe[i] && (Pe[i] = !0, console.warn(
1288
1294
  s(
1289
1295
  i,
1290
1296
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -1312,12 +1318,12 @@ function Dn(e, t, n) {
1312
1318
  const se = {
1313
1319
  assertOptions: Dn,
1314
1320
  validators: fe
1315
- }, x = se.validators;
1321
+ }, A = se.validators;
1316
1322
  class $ {
1317
1323
  constructor(t) {
1318
1324
  this.defaults = t, this.interceptors = {
1319
- request: new ge(),
1320
- response: new ge()
1325
+ request: new Oe(),
1326
+ response: new Oe()
1321
1327
  };
1322
1328
  }
1323
1329
  /**
@@ -1332,12 +1338,12 @@ class $ {
1332
1338
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = T(this.defaults, n);
1333
1339
  const { transitional: r, paramsSerializer: s, headers: o } = n;
1334
1340
  r !== void 0 && se.assertOptions(r, {
1335
- silentJSONParsing: x.transitional(x.boolean),
1336
- forcedJSONParsing: x.transitional(x.boolean),
1337
- clarifyTimeoutError: x.transitional(x.boolean)
1341
+ silentJSONParsing: A.transitional(A.boolean),
1342
+ forcedJSONParsing: A.transitional(A.boolean),
1343
+ clarifyTimeoutError: A.transitional(A.boolean)
1338
1344
  }, !1), s !== void 0 && se.assertOptions(s, {
1339
- encode: x.function,
1340
- serialize: x.function
1345
+ encode: A.function,
1346
+ serialize: A.function
1341
1347
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1342
1348
  let i;
1343
1349
  i = o && a.merge(
@@ -1360,7 +1366,7 @@ class $ {
1360
1366
  });
1361
1367
  let l, d = 0, y;
1362
1368
  if (!p) {
1363
- const f = [xe.bind(this), void 0];
1369
+ const f = [_e.bind(this), void 0];
1364
1370
  for (f.unshift.apply(f, u), f.push.apply(f, c), y = f.length, l = Promise.resolve(n); d < y; )
1365
1371
  l = l.then(f[d++], f[d++]);
1366
1372
  return l;
@@ -1377,7 +1383,7 @@ class $ {
1377
1383
  }
1378
1384
  }
1379
1385
  try {
1380
- l = xe.call(this, w);
1386
+ l = _e.call(this, w);
1381
1387
  } catch (f) {
1382
1388
  return Promise.reject(f);
1383
1389
  }
@@ -1387,8 +1393,8 @@ class $ {
1387
1393
  }
1388
1394
  getUri(t) {
1389
1395
  t = T(this.defaults, t);
1390
- const n = Ge(t.baseURL, t.url);
1391
- return Je(n, t.params, t.paramsSerializer);
1396
+ const n = Xe(t.baseURL, t.url);
1397
+ return $e(n, t.params, t.paramsSerializer);
1392
1398
  }
1393
1399
  }
1394
1400
  a.forEach(["delete", "get", "head", "options"], function(t) {
@@ -1562,18 +1568,18 @@ Object.entries(oe).forEach(([e, t]) => {
1562
1568
  oe[t] = e;
1563
1569
  });
1564
1570
  const vn = oe;
1565
- function Qe(e) {
1566
- const t = new J(e), n = Le(J.prototype.request, t);
1571
+ function Ye(e) {
1572
+ const t = new J(e), n = Be(J.prototype.request, t);
1567
1573
  return a.extend(n, J.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1568
- return Qe(T(e, s));
1574
+ return Ye(T(e, s));
1569
1575
  }, n;
1570
1576
  }
1571
- const E = Qe(le);
1577
+ const E = Ye(le);
1572
1578
  E.Axios = J;
1573
1579
  E.CanceledError = j;
1574
1580
  E.CancelToken = Un;
1575
- E.isCancel = Ke;
1576
- E.VERSION = Xe;
1581
+ E.isCancel = Ge;
1582
+ E.VERSION = Qe;
1577
1583
  E.toFormData = K;
1578
1584
  E.AxiosError = m;
1579
1585
  E.Cancel = E.CanceledError;
@@ -1584,13 +1590,13 @@ E.spread = jn;
1584
1590
  E.isAxiosError = kn;
1585
1591
  E.mergeConfig = T;
1586
1592
  E.AxiosHeaders = g;
1587
- E.formToJSON = (e) => We(a.isHTMLForm(e) ? new FormData(e) : e);
1593
+ E.formToJSON = (e) => Ke(a.isHTMLForm(e) ? new FormData(e) : e);
1588
1594
  E.HttpStatusCode = vn;
1589
1595
  E.default = E;
1590
1596
  const In = E, Mn = { class: "file-viewer" }, Hn = { class: "name" }, qn = {
1591
1597
  key: 0,
1592
1598
  class: "content loading"
1593
- }, Vn = /* @__PURE__ */ Pe({
1599
+ }, Vn = /* @__PURE__ */ Ne({
1594
1600
  __name: "FileViewer",
1595
1601
  props: {
1596
1602
  file: null,
@@ -1660,7 +1666,7 @@ const In = E, Mn = { class: "file-viewer" }, Hn = { class: "name" }, qn = {
1660
1666
  const h = document.createElement("div");
1661
1667
  h.className = "file-render";
1662
1668
  const R = f.appendChild(h);
1663
- return new Promise((b, A) => At(l, w, R).then(b).catch(A));
1669
+ return new Promise((b, x) => xt(l, w, R).then(b).catch(x));
1664
1670
  },
1665
1671
  showError(l) {
1666
1672
  r.value = l;
@@ -1672,12 +1678,12 @@ const In = E, Mn = { class: "file-viewer" }, Hn = { class: "name" }, qn = {
1672
1678
  n.value = !1, s.value = "";
1673
1679
  }
1674
1680
  };
1675
- tt(() => {
1681
+ nt(() => {
1676
1682
  t.file && c.resolveFile(t.file), c.loadFromUrl();
1677
1683
  }), he(() => t.url, () => c.loadFromUrl()), he(() => t.file, (l) => l && c.resolveFile(l));
1678
1684
  })(), (u, p) => (I(), M("div", Mn, [
1679
1685
  Q("div", Hn, H(o.value), 1),
1680
- r.value ? (I(), M("div", qn, H(r.value), 1)) : (I(), M(nt, { key: 1 }, [
1686
+ r.value ? (I(), M("div", qn, H(r.value), 1)) : (I(), M(rt, { key: 1 }, [
1681
1687
  me(Q("div", { class: "content loading" }, H(s.value), 513), [
1682
1688
  [ye, n.value]
1683
1689
  ]),
@@ -1692,7 +1698,7 @@ const In = E, Mn = { class: "file-viewer" }, Hn = { class: "name" }, qn = {
1692
1698
  ]));
1693
1699
  }
1694
1700
  });
1695
- const zn = /* @__PURE__ */ Ce(Vn, [["__scopeId", "data-v-03ff4486"]]), Jn = [
1701
+ const zn = /* @__PURE__ */ Fe(Vn, [["__scopeId", "data-v-4732f9f2"]]), Jn = [
1696
1702
  ["file-viewer", zn]
1697
1703
  ];
1698
1704
  class $n {
@@ -1706,6 +1712,6 @@ class $n {
1706
1712
  const Gn = new $n();
1707
1713
  export {
1708
1714
  zn as F,
1709
- Ce as _,
1715
+ Fe as _,
1710
1716
  Gn as i
1711
1717
  };