function e(e) {
var r = {
omitExtraWLInCodeBlocks: {
defaultValue: !1,
describe: "Omit the default extra whiteline added to code blocks",
type: "boolean"
},
noHeaderId: {
defaultValue: !1,
describe: "Turn on/off generated header id",
type: "boolean"
},
prefixHeaderId: {
defaultValue: !1,
describe: "Specify a prefix to generated header ids",
type: "string"
},
headerLevelStart: {
defaultValue: !1,
describe: "The header blocks level start",
type: "integer"
},
parseImgDimensions: {
defaultValue: !1,
describe: "Turn on/off image dimension parsing",
type: "boolean"
},
simplifiedAutoLink: {
defaultValue: !1,
describe: "Turn on/off GFM autolink style",
type: "boolean"
},
literalMidWordUnderscores: {
defaultValue: !1,
describe: "Parse midword underscores as literal underscores",
type: "boolean"
},
strikethrough: {
defaultValue: !1,
describe: "Turn on/off strikethrough support",
type: "boolean"
},
tables: {
defaultValue: !1,
describe: "Turn on/off tables support",
type: "boolean"
},
tablesHeaderId: {
defaultValue: !1,
describe: "Add an id to table headers",
type: "boolean"
},
ghCodeBlocks: {
defaultValue: !0,
describe: "Turn on/off GFM fenced code blocks support",
type: "boolean"
},
tasklists: {
defaultValue: !1,
describe: "Turn on/off GFM tasklist support",
type: "boolean"
},
smoothLivePreview: {
defaultValue: !1,
describe: "Prevents weird effects in live previews due to incomplete input",
type: "boolean"
},
smartIndentationFix: {
defaultValue: !1,
description: "Tries to smartly fix identation in es6 strings",
type: "boolean"
}
};
if (!1 === e) return JSON.parse(JSON.stringify(r));
var t = {};
for (var n in r) r.hasOwnProperty(n) && (t[n] = r[n].defaultValue);
return t;
}
function r(e, r) {
var t = r ? "Error in " + r + " extension->" : "Error in unnamed extension", n = {
valid: !0,
error: ""
};
o.helper.isArray(e) || (e = [ e ]);
for (var s = 0; s < e.length; ++s) {
var i = t + " sub-extension " + s + ": ", l = e[s];
if ("object" !== (void 0 === l ? "undefined" : a(l))) return n.valid = !1, n.error = i + "must be an object, but " + (void 0 === l ? "undefined" : a(l)) + " given",
n;
if (!o.helper.isString(l.type)) return n.valid = !1, n.error = i + 'property "type" must be a string, but ' + a(l.type) + " given",
n;
var c = l.type = l.type.toLowerCase();
if ("language" === c && (c = l.type = "lang"), "html" === c && (c = l.type = "output"),
"lang" !== c && "output" !== c && "listener" !== c) return n.valid = !1, n.error = i + "type " + c + ' is not recognized. Valid values: "lang/language", "output/html" or "listener"',
n;
if ("listener" === c) {
if (o.helper.isUndefined(l.listeners)) return n.valid = !1, n.error = i + '. Extensions of type "listener" must have a property called "listeners"',
n;
} else if (o.helper.isUndefined(l.filter) && o.helper.isUndefined(l.regex)) return n.valid = !1,
n.error = i + c + ' extensions must define either a "regex" property or a "filter" method',
n;
if (l.listeners) {
if ("object" !== a(l.listeners)) return n.valid = !1, n.error = i + '"listeners" property must be an object but ' + a(l.listeners) + " given",
n;
for (var u in l.listeners) if (l.listeners.hasOwnProperty(u) && "function" != typeof l.listeners[u]) return n.valid = !1,
n.error = i + '"listeners" property must be an hash of [event name]: [callback]. listeners.' + u + " must be a function but " + a(l.listeners[u]) + " given",
n;
}
if (l.filter) {
if ("function" != typeof l.filter) return n.valid = !1, n.error = i + '"filter" must be a function, but ' + a(l.filter) + " given",
n;
} else if (l.regex) {
if (o.helper.isString(l.regex) && (l.regex = new RegExp(l.regex, "g")), !l.regex instanceof RegExp) return n.valid = !1,
n.error = i + '"regex" property must either be a string or a RegExp object, but ' + a(l.regex) + " given",
n;
if (o.helper.isUndefined(l.replace)) return n.valid = !1, n.error = i + '"regex" extensions must implement a replace string or function',
n;
}
}
return n;
}
function t(e, r) {
return "~E" + r.charCodeAt(0) + "E";
}
var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e;
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
}, s = "function" == typeof Symbol && "symbol" == n(Symbol.iterator) ? function(e) {
return void 0 === e ? "undefined" : n(e);
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : void 0 === e ? "undefined" : n(e);
}, a = "function" == typeof Symbol && "symbol" == s(Symbol.iterator) ? function(e) {
return void 0 === e ? "undefined" : s(e);
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : void 0 === e ? "undefined" : s(e);
}, o = {}, i = {}, l = {}, c = e(!0), u = {
github: {
omitExtraWLInCodeBlocks: !0,
prefixHeaderId: "user-content-",
simplifiedAutoLink: !0,
literalMidWordUnderscores: !0,
strikethrough: !0,
tables: !0,
tablesHeaderId: !0,
ghCodeBlocks: !0,
tasklists: !0
},
vanilla: e(!0)
};
o.helper = {}, o.extensions = {}, o.setOption = function(e, r) {
return c[e] = r, this;
}, o.getOption = function(e) {
return c[e];
}, o.getOptions = function() {
return c;
}, o.resetOptions = function() {
c = e(!0);
}, o.setFlavor = function(e) {
if (u.hasOwnProperty(e)) {
var r = u[e];
for (var t in r) r.hasOwnProperty(t) && (c[t] = r[t]);
}
}, o.getDefaultOptions = function(r) {
return e(r);
}, o.subParser = function(e, r) {
if (o.helper.isString(e)) {
if (void 0 === r) {
if (i.hasOwnProperty(e)) return i[e];
throw Error("SubParser named " + e + " not registered!");
}
i[e] = r;
}
}, o.extension = function(e, t) {
if (!o.helper.isString(e)) throw Error("Extension 'name' must be a string");
if (e = o.helper.stdExtName(e), o.helper.isUndefined(t)) {
if (!l.hasOwnProperty(e)) throw Error("Extension named " + e + " is not registered!");
return l[e];
}
"function" == typeof t && (t = t()), o.helper.isArray(t) || (t = [ t ]);
var n = r(t, e);
if (!n.valid) throw Error(n.error);
l[e] = t;
}, o.getAllExtensions = function() {
return l;
}, o.removeExtension = function(e) {
delete l[e];
}, o.resetExtensions = function() {
l = {};
}, o.validateExtension = function(e) {
var t = r(e, null);
return !!t.valid || (console.warn(t.error), !1);
}, o.hasOwnProperty("helper") || (o.helper = {}), o.helper.isString = function(e) {
return "string" == typeof e || e instanceof String;
}, o.helper.isFunction = function(e) {
var r = {};
return e && "[object Function]" === r.toString.call(e);
}, o.helper.fo
没有合适的资源?快使用搜索试试~ 我知道了~
流量主系列微信AI人脸转换小程序源码.zip

共116个文件
svg:46个
js:19个
png:16个

1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
73 浏览量
2023-01-06
10:25:09
上传
评论 1
收藏 372KB ZIP 举报
温馨提示
流量主系列微信AI人脸转换小程序源码
资源推荐
资源详情
资源评论
















收起资源包目录





































































































共 116 条
- 1
- 2
资源评论


智慧浩海
- 粉丝: 7115
- 资源: 4375

下载权益

C知道特权

VIP文章

课程特权

开通VIP
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


安全验证
文档复制为VIP权益,开通VIP直接复制
