(s)
| 52708 | ...s, |
| 52709 | }) |
| 52710 | } |
| 52711 | async canParse(s) { |
| 52712 | const o = 0 === this.fileExtensions.length || this.fileExtensions.includes(s.extension), |
| 52713 | i = this.mediaTypes.includes(s.mediaType) |
| 52714 | if (!o) return !1 |
| 52715 | if (i) return !0 |
| 52716 | if (!i) |
| 52717 | try { |
| 52718 | return (fn.load(s.toString(), { schema: rn }), !0) |
| 52719 | } catch (s) { |
| 52720 | return !1 |
| 52721 | } |
| 52722 | return !1 |
| 52723 | } |
| 52724 | async parse(s) { |
| 52725 | if (this.sourceMap) |