Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doc_phone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangyipeng
doc_phone
Commits
17c6ddb3
Commit
17c6ddb3
authored
May 27, 2020
by
jiangyipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a751a99a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
6 deletions
+9
-6
index.html
public/html/dist/index.html
+1
-1
app.35ca84d71febcb21ecd9.js
public/html/dist/static/js/app.35ca84d71febcb21ecd9.js
+2
-2
app.35ca84d71febcb21ecd9.js.map
public/html/dist/static/js/app.35ca84d71febcb21ecd9.js.map
+1
-0
app.7b6b561c033f2d5cf9b7.js.map
public/html/dist/static/js/app.7b6b561c033f2d5cf9b7.js.map
+0
-1
manifest.481972107a4b2bbf8c2a.js.map
.../html/dist/static/js/manifest.481972107a4b2bbf8c2a.js.map
+1
-1
showdown.min.js
public/html/dist/static/showdown.min.js
+3
-0
ddLogin.js
public/html/src/assets/js/ddLogin.js
+1
-1
No files found.
public/html/dist/index.html
View file @
17c6ddb3
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
><script
src=
https://g.alicdn.com/dingding/dingtalk-jsapi/2.10.3/dingtalk.open.js
></script><script
src=
./static/showdown.min.js
></script><title>
doc
</title><link
href=
./static/css/app.1d9fd9f454e38d13b1f70838b64639f9.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
./static/js/manifest.481972107a4b2bbf8c2a.js
></script><script
type=
text/javascript
src=
./static/js/vendor.2df28332b4a58963dfd2.js
></script><script
type=
text/javascript
src=
./static/js/app.7b6b561c033f2d5cf9b7.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
><script
src=
https://g.alicdn.com/dingding/dingtalk-jsapi/2.10.3/dingtalk.open.js
></script><script
src=
./static/showdown.min.js
></script><title>
doc
</title><link
href=
./static/css/app.1d9fd9f454e38d13b1f70838b64639f9.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
./static/js/manifest.481972107a4b2bbf8c2a.js
></script><script
type=
text/javascript
src=
./static/js/vendor.2df28332b4a58963dfd2.js
></script><script
type=
text/javascript
src=
./static/js/app.35ca84d71febcb21ecd9.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
public/html/dist/static/js/app.
7b6b561c033f2d5cf9b7
.js
→
public/html/dist/static/js/app.
35ca84d71febcb21ecd9
.js
View file @
17c6ddb3
webpackJsonp
([
7
],{
"+cgv"
:
function
(
n
,
e
){},
"02pT"
:
function
(
n
,
e
){},
"1H7Z"
:
function
(
n
,
e
){},
"3IMD"
:
function
(
n
,
e
){},
"3f40"
:
function
(
n
,
e
){},
"4qOc"
:
function
(
n
,
e
){},
FhoU
:
function
(
n
,
e
){},
I22p
:
function
(
n
,
e
,
t
){
"use strict"
;
var
o
=
t
(
"//Fk"
),
i
=
t
.
n
(
o
),
r
=
t
(
"mtWM"
),
a
=
t
.
n
(
r
),
c
=
t
(
"mw3O"
),
u
=
t
.
n
(
c
),
f
=
{
config
:
"index.php/login/index/config"
,
getSsoToken
:
"index.php/login/index/getSsoToken"
,
folderList
:
"index.php/api/index/folderList"
,
articleList
:
"index.php/api/index/articleList"
,
articleDetail
:
"index.php/api/index/articleDetail"
,
articleEdit
:
"index.php/api/index/articleEdit"
},
s
=
new
(
t
(
"7+uW"
).
a
);
a
.
a
.
interceptors
.
request
.
use
(
function
(
n
){
return
n
},
function
(
n
){
return
i
.
a
.
reject
(
n
)}),
a
.
a
.
interceptors
.
response
.
use
(
function
(
n
){
return
0
!==
n
.
data
.
err_code
&&
s
.
$notify
({
type
:
"danger"
,
duration
:
2
e3
,
message
:
n
.
data
.
err_msg
}),
n
.
data
},
function
(
n
){
return
i
.
a
.
reject
(
n
)});
var
d
=
function
(
n
,
e
){
var
t
=
f
[
n
];
return
a
()({
method
:
"post"
,
baseURL
:
"http://doc-phone.linanquan.com/"
,
url
:
t
,
data
:
u
.
a
.
stringify
(
e
)})};
e
.
a
=
{
config
:
function
(
n
){
return
d
(
"config"
,
n
)},
getSsoToken
:
function
(
n
){
return
d
(
"getSsoToken"
,
n
)},
folderList
:
function
(
n
){
return
d
(
"folderList"
,
n
)},
articleList
:
function
(
n
){
return
d
(
"articleList"
,
n
)},
articleDetail
:
function
(
n
){
return
d
(
"articleDetail"
,
n
)},
articleEdit
:
function
(
n
){
return
d
(
"articleEdit"
,
n
)}}},
Lorf
:
function
(
n
,
e
){},
NHnr
:
function
(
n
,
e
,
t
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
t
(
"cOrn"
);
var
o
=
t
(
"77gS"
),
i
=
(
t
(
"MY4N"
),
t
(
"0zAV"
)),
r
=
(
t
(
"nOaS"
),
t
(
"pIDD"
)),
a
=
(
t
(
"Ny/I"
),
t
(
"7Tnr"
)),
c
=
(
t
(
"3Lne"
),
t
(
"SSsa"
)),
u
=
(
t
(
"4yKu"
),
t
(
"wolx"
)),
f
=
t
(
"7+uW"
),
s
=
{
render
:
function
(){
var
n
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
n
;
return
e
(
"div"
,{
attrs
:{
id
:
"app"
}},[
e
(
"router-view"
)],
1
)},
staticRenderFns
:[]};
var
d
=
t
(
"VU/8"
)({
name
:
"App"
},
s
,
!
1
,
function
(
n
){
t
(
"Lorf"
)},
null
,
null
).
exports
,
l
=
t
(
"/ocq"
),
p
=
t
(
"mvHQ"
),
h
=
t
.
n
(
p
),
g
=
t
(
"I22p"
),
m
=
{
config
:
function
(
n
){
g
.
a
.
config
().
then
(
function
(
e
){
0
==
e
.
err_code
&&
(
console
.
log
(
"config::"
,
e
),
n
(
e
.
data
))})},
getSsoToken
:
function
(
n
){
g
.
a
.
getSsoToken
({
code
:
n
}).
then
(
function
(
n
){
alert
(
h
()(
n
)),
0
==
n
.
err_code
&&
console
.
log
(
"config::"
,
n
)})},
getCode
:
function
(){
var
n
=
this
;
this
.
config
(
function
(
e
){
dd
.
ready
(
function
(){
dd
.
runtime
.
permission
.
requestAuthCode
({
corpId
:
e
.
corpId
,
onSuccess
:
function
(
e
){
alert
(
111
),
n
.
getSsoToken
(
e
.
code
)},
onFail
:
function
(
e
){
alert
(
h
()(
e
)),
n
.
getSsoToken
(
e
.
code
)}})})})}},
x
=
t
(
"NYxO"
);
f
.
a
.
use
(
x
.
a
);
var
v
=
new
x
.
a
.
Store
({
state
:{
user_info
:
null
},
mutations
:{
userInfo
:
function
(
n
,
e
){
n
.
user_info
=
e
}}});
f
.
a
.
use
(
l
.
a
);
var
S
=
new
l
.
a
({
routes
:[{
path
:
"/"
,
name
:
"index"
,
component
:
function
(){
return
t
.
e
(
0
).
then
(
t
.
bind
(
null
,
"2NXm"
))},
children
:[{
path
:
"folder"
,
name
:
"folder"
,
component
:
function
(){
return
t
.
e
(
2
).
then
(
t
.
bind
(
null
,
"C0Ug"
))}},{
path
:
"folder2"
,
name
:
"folder2"
,
component
:
function
(){
return
t
.
e
(
1
).
then
(
t
.
bind
(
null
,
"M+ft"
))}},{
path
:
"wangeditor"
,
name
:
"wangeditor"
,
component
:
function
(){
return
t
.
e
(
5
).
then
(
t
.
bind
(
null
,
"5DMK"
))}},{
path
:
"markdown"
,
name
:
"markdown"
,
component
:
function
(){
return
t
.
e
(
4
).
then
(
t
.
bind
(
null
,
"tZVe"
))}},{
path
:
"test"
,
name
:
"test"
,
component
:
function
(){
return
t
.
e
(
3
).
then
(
t
.
bind
(
null
,
"Y7I0"
))}}]}]});
S
.
beforeEach
(
function
(
n
,
e
,
t
){
v
.
state
.
user_info
||
m
.
getCode
(),
t
()});
var
k
=
S
,
b
=
t
(
"G0J2"
),
w
=
t
.
n
(
b
);
t
(
"3f40"
),
t
(
"4qOc"
),
t
(
"+cgv"
);
f
.
a
.
use
(
w
.
a
,{
placeholder
:
"请输入内容"
,
modules
:{
toolbar
:[[{
color
:[]}],[
"bold"
,
"italic"
,
"underline"
,
"strike"
],[{
header
:
1
},{
header
:
2
}],[{
header
:[
1
,
2
,
3
,
4
,
5
,
6
,
!
1
]}]]}}),
f
.
a
.
use
(
u
.
a
),
f
.
a
.
use
(
c
.
a
),
f
.
a
.
use
(
a
.
a
),
f
.
a
.
use
(
r
.
a
),
f
.
a
.
use
(
i
.
a
),
f
.
a
.
use
(
o
.
a
),
f
.
a
.
config
.
productionTip
=!
1
,
new
f
.
a
({
el
:
"#app"
,
router
:
k
,
components
:{
App
:
d
},
template
:
"<App/>"
})},
T2s0
:
function
(
n
,
e
){},
WRFY
:
function
(
n
,
e
){},
WpgC
:
function
(
n
,
e
){},
hW8u
:
function
(
n
,
e
){},
"n/tq"
:
function
(
n
,
e
){},
nsZj
:
function
(
n
,
e
){},
px3J
:
function
(
n
,
e
){},
qpP9
:
function
(
n
,
e
){}},[
"NHnr"
]);
webpackJsonp
([
7
],{
"+cgv"
:
function
(
n
,
e
){},
"02pT"
:
function
(
n
,
e
){},
"1H7Z"
:
function
(
n
,
e
){},
"3IMD"
:
function
(
n
,
e
){},
"3f40"
:
function
(
n
,
e
){},
"4qOc"
:
function
(
n
,
e
){},
FhoU
:
function
(
n
,
e
){},
I22p
:
function
(
n
,
e
,
t
){
"use strict"
;
var
o
=
t
(
"//Fk"
),
i
=
t
.
n
(
o
),
r
=
t
(
"mtWM"
),
a
=
t
.
n
(
r
),
c
=
t
(
"mw3O"
),
u
=
t
.
n
(
c
),
f
=
{
config
:
"index.php/login/index/config"
,
getSsoToken
:
"index.php/login/index/getSsoToken"
,
folderList
:
"index.php/api/index/folderList"
,
articleList
:
"index.php/api/index/articleList"
,
articleDetail
:
"index.php/api/index/articleDetail"
,
articleEdit
:
"index.php/api/index/articleEdit"
},
s
=
new
(
t
(
"7+uW"
).
a
);
a
.
a
.
interceptors
.
request
.
use
(
function
(
n
){
return
n
},
function
(
n
){
return
i
.
a
.
reject
(
n
)}),
a
.
a
.
interceptors
.
response
.
use
(
function
(
n
){
return
0
!==
n
.
data
.
err_code
&&
s
.
$notify
({
type
:
"danger"
,
duration
:
2
e3
,
message
:
n
.
data
.
err_msg
}),
n
.
data
},
function
(
n
){
return
i
.
a
.
reject
(
n
)});
var
d
=
function
(
n
,
e
){
var
t
=
f
[
n
];
return
a
()({
method
:
"post"
,
baseURL
:
"http://doc-phone.linanquan.com/"
,
url
:
t
,
data
:
u
.
a
.
stringify
(
e
)})};
e
.
a
=
{
config
:
function
(
n
){
return
d
(
"config"
,
n
)},
getSsoToken
:
function
(
n
){
return
d
(
"getSsoToken"
,
n
)},
folderList
:
function
(
n
){
return
d
(
"folderList"
,
n
)},
articleList
:
function
(
n
){
return
d
(
"articleList"
,
n
)},
articleDetail
:
function
(
n
){
return
d
(
"articleDetail"
,
n
)},
articleEdit
:
function
(
n
){
return
d
(
"articleEdit"
,
n
)}}},
Lorf
:
function
(
n
,
e
){},
NHnr
:
function
(
n
,
e
,
t
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
t
(
"cOrn"
);
var
o
=
t
(
"77gS"
),
i
=
(
t
(
"MY4N"
),
t
(
"0zAV"
)),
r
=
(
t
(
"nOaS"
),
t
(
"pIDD"
)),
a
=
(
t
(
"Ny/I"
),
t
(
"7Tnr"
)),
c
=
(
t
(
"3Lne"
),
t
(
"SSsa"
)),
u
=
(
t
(
"4yKu"
),
t
(
"wolx"
)),
f
=
t
(
"7+uW"
),
s
=
{
render
:
function
(){
var
n
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
n
;
return
e
(
"div"
,{
attrs
:{
id
:
"app"
}},[
e
(
"router-view"
)],
1
)},
staticRenderFns
:[]};
var
d
=
t
(
"VU/8"
)({
name
:
"App"
},
s
,
!
1
,
function
(
n
){
t
(
"Lorf"
)},
null
,
null
).
exports
,
l
=
t
(
"/ocq"
),
p
=
t
(
"mvHQ"
),
h
=
t
.
n
(
p
),
g
=
t
(
"I22p"
),
m
=
{
config
:
function
(
n
){
g
.
a
.
config
().
then
(
function
(
e
){
0
==
e
.
err_code
&&
(
console
.
log
(
"config::"
,
e
),
n
(
e
.
data
))})},
getSsoToken
:
function
(
n
){
g
.
a
.
getSsoToken
({
code
:
n
}).
then
(
function
(
n
){
alert
(
h
()(
n
)),
0
==
n
.
err_code
&&
console
.
log
(
"config::"
,
n
)})},
getCode
:
function
(){
var
n
=
this
;
this
.
config
(
function
(
e
){
dd
.
ready
(
function
(){
dd
.
runtime
.
permission
.
requestAuthCode
({
corpId
:
e
.
corpId
,
onSuccess
:
function
(
e
){
alert
(
h
()(
e
)),
n
.
getSsoToken
(
e
.
code
)},
onFail
:
function
(
e
){
alert
(
h
()(
e
)),
n
.
getSsoToken
(
e
.
code
)}})})})}},
x
=
t
(
"NYxO"
);
f
.
a
.
use
(
x
.
a
);
var
v
=
new
x
.
a
.
Store
({
state
:{
user_info
:
null
},
mutations
:{
userInfo
:
function
(
n
,
e
){
n
.
user_info
=
e
}}});
f
.
a
.
use
(
l
.
a
);
var
S
=
new
l
.
a
({
routes
:[{
path
:
"/"
,
name
:
"index"
,
component
:
function
(){
return
t
.
e
(
0
).
then
(
t
.
bind
(
null
,
"2NXm"
))},
children
:[{
path
:
"folder"
,
name
:
"folder"
,
component
:
function
(){
return
t
.
e
(
2
).
then
(
t
.
bind
(
null
,
"C0Ug"
))}},{
path
:
"folder2"
,
name
:
"folder2"
,
component
:
function
(){
return
t
.
e
(
1
).
then
(
t
.
bind
(
null
,
"M+ft"
))}},{
path
:
"wangeditor"
,
name
:
"wangeditor"
,
component
:
function
(){
return
t
.
e
(
5
).
then
(
t
.
bind
(
null
,
"5DMK"
))}},{
path
:
"markdown"
,
name
:
"markdown"
,
component
:
function
(){
return
t
.
e
(
4
).
then
(
t
.
bind
(
null
,
"tZVe"
))}},{
path
:
"test"
,
name
:
"test"
,
component
:
function
(){
return
t
.
e
(
3
).
then
(
t
.
bind
(
null
,
"Y7I0"
))}}]}]});
S
.
beforeEach
(
function
(
n
,
e
,
t
){
v
.
state
.
user_info
||
m
.
getCode
(),
t
()});
var
k
=
S
,
b
=
t
(
"G0J2"
),
w
=
t
.
n
(
b
);
t
(
"3f40"
),
t
(
"4qOc"
),
t
(
"+cgv"
);
f
.
a
.
use
(
w
.
a
,{
placeholder
:
"请输入内容"
,
modules
:{
toolbar
:[[{
color
:[]}],[
"bold"
,
"italic"
,
"underline"
,
"strike"
],[{
header
:
1
},{
header
:
2
}],[{
header
:[
1
,
2
,
3
,
4
,
5
,
6
,
!
1
]}]]}}),
f
.
a
.
use
(
u
.
a
),
f
.
a
.
use
(
c
.
a
),
f
.
a
.
use
(
a
.
a
),
f
.
a
.
use
(
r
.
a
),
f
.
a
.
use
(
i
.
a
),
f
.
a
.
use
(
o
.
a
),
f
.
a
.
config
.
productionTip
=!
1
,
new
f
.
a
({
el
:
"#app"
,
router
:
k
,
components
:{
App
:
d
},
template
:
"<App/>"
})},
T2s0
:
function
(
n
,
e
){},
WRFY
:
function
(
n
,
e
){},
WpgC
:
function
(
n
,
e
){},
hW8u
:
function
(
n
,
e
){},
"n/tq"
:
function
(
n
,
e
){},
nsZj
:
function
(
n
,
e
){},
px3J
:
function
(
n
,
e
){},
qpP9
:
function
(
n
,
e
){}},[
"NHnr"
]);
//# sourceMappingURL=app.7b6b561c033f2d5cf9b7.js.map
//# sourceMappingURL=app.35ca84d71febcb21ecd9.js.map
\ No newline at end of file
\ No newline at end of file
public/html/dist/static/js/app.35ca84d71febcb21ecd9.js.map
0 → 100644
View file @
17c6ddb3
{"version":3,"sources":["webpack:///./src/api/apiList.js","webpack:///./src/api/index.js","webpack:///./src/api/methods.js","webpack:///./src/App.vue?bbff","webpack:///./src/App.vue","webpack:///src/App.vue","webpack:///./src/assets/js/ddLogin.js","webpack:///./src/vuex/index.js","webpack:///./src/router/index.js","webpack:///./src/main.js"],"names":["apiList","config","getSsoToken","folderList","articleList","articleDetail","articleEdit","vm","Vue","axios","interceptors","request","use","error","promise_default","a","reject","response","data","err_code","$notify","type","duration","message","err_msg","api","apiName","url","method","baseURL","qs","stringify","__webpack_exports__","selectortype_template_index_0_src_App","render","_h","this","$createElement","_c","_self","attrs","id","staticRenderFns","src_App","__webpack_require__","normalizeComponent","name","ssrContext","ddLogin","callback","then","console","log","code","alert","stringify_default","getCode","_this","dd","ready","runtime","permission","requestAuthCode","corpId","onSuccess","info","onFail","Vuex","store","Store","state","user_info","mutations","userInfo","Router","router","routes","path","component","e","bind","children","beforeEach","to","from","next","VueQuillEditor","placeholder","modules","toolbar","color","header","search","es_button","divider","loading","field","notify","productionTip","el","components","App","template"],"mappings":"sRACeA,GACXC,OAAO,+BACPC,YAAY,oCAGZC,WAAW,iCACXC,YAAY,kCACZC,cAAc,oCACdC,YAAY,mCCJZC,EAAK,cAAIC,GAGbC,IAAMC,aAAaC,QAAQC,IAAI,SAAUX,GAErC,OAAOA,GACR,SAAUY,GAET,OAAOC,EAAAC,EAAQC,OAAOH,KAI1BJ,IAAMC,aAAaO,SAASL,IAAI,SAAUK,GAKtC,OAH8B,IAA3BA,EAASC,KAAKC,UACbZ,EAAGa,SAAUC,KAAK,SAASC,SAAU,IAAKC,QAAQN,EAASC,KAAKM,UAE7DP,EAASC,MACjB,SAAUL,GAET,OAAOC,EAAAC,EAAQC,OAAOH,KAGX,IAAAY,EAAA,SACNC,EAAQR,GACT,IAAIS,EAAM3B,EAAQ0B,GAClB,OAAOjB,KACHmB,OAAO,OACPC,QA3BE,kCA4BFF,IAAIA,EACJT,KAAKY,IAAGC,UAAUb,MCjCfc,EAAA,GAEX/B,OAFW,SAEJiB,GACH,OAAOO,EAAS,SAASP,IAG7BhB,YANW,SAMCgB,GACR,OAAOO,EAAS,cAAcP,IAKlCf,WAZW,SAYAe,GACP,OAAOO,EAAS,aAAaP,IAGjCd,YAhBW,SAgBCc,GACR,OAAOO,EAAS,cAAcP,IAGlCb,cApBW,SAoBGa,GACV,OAAOO,EAAS,gBAAgBP,IAGpCZ,YAxBW,SAwBCY,GACR,OAAOO,EAAS,cAAcP,4QCxBvBe,GADEC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAA0BC,EAAvCF,KAAuCG,MAAAD,IAAAH,EAAwB,OAAAG,EAAA,OAAiBE,OAAOC,GAAA,SAAYH,EAAA,oBAE5GI,oBCCjB,IAuBeC,EAvBUC,EAAQ,OAcjCC,ECTAC,KAAA,ODWEb,GATF,EAVA,SAAAc,GACEH,EAAQ,SAaV,KAEA,MAUgC,qDExBjBI,GAEX/C,OAFW,SAEJgD,GACHxB,IAAIxB,SAASiD,KAAK,SAAChC,GACK,GAAjBA,EAAKC,WACJgC,QAAQC,IAAI,WAAWlC,GACvB+B,EAAS/B,EAAKA,UAK1BhB,YAXW,SAWCmD,GACR5B,IAAIvB,aAAamD,KAAKA,IAAQH,KAAK,SAAChC,GAChCoC,MAAMC,IAAerC,IACD,GAAjBA,EAAKC,UAEJgC,QAAQC,IAAI,WAAWlC,MAKnCsC,QArBW,WAsBP,IAAIC,EAAQrB,KACZA,KAAKnC,OAAO,SAACiB,GACTwC,GAAGC,MAAM,WACLD,GAAGE,QAAQC,WAAWC,iBAClBC,OAAQ7C,EAAK6C,OACbC,UAAW,SAAUC,GACjBX,MAAMC,IAAeU,IAErBR,EAAMvD,YAAY+D,EAAKZ,OAE3Ba,OAAQ,SAAUD,GACdX,MAAMC,IAAeU,IACrBR,EAAMvD,YAAY+D,EAAKZ,2BCjC/C7C,IAAII,IAAIuD,KAER,IAWeC,EAXD,IAAID,IAAKE,OACnBC,OACIC,UAAU,MAEdC,WACIC,SADO,SACEH,EAAMpD,GACXoD,EAAMC,UAAYrD,MCN9BV,IAAII,IAAI8D,KAER,IAAIC,EAAS,IAAID,KACbE,SAEQC,KAAM,IACN/B,KAAM,QACNgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,eACfC,WAEQJ,KAAM,SACN/B,KAAK,SACLgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,iBAGfH,KAAM,UACN/B,KAAK,UACLgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,iBAGfH,KAAM,aACN/B,KAAK,aACLgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,iBAGfH,KAAM,WACN/B,KAAK,WACLgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,iBAGfH,KAAM,OACN/B,KAAK,OACLgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,qBAOnCL,EAAOO,WAAW,SAACC,EAAIC,EAAMC,GAErBjB,EAAME,MAAMC,WACZvB,EAAQQ,UAEZ6B,MAGWV,2DCxCfnE,IAAII,IAAI0E,KACNC,YAAY,QACZC,SACEC,WACIC,YACD,OAAQ,SAAU,YAAa,YAC9BC,OAAU,IAAKA,OAAU,MACzBA,QAAW,EAAG,EAAG,EAAG,EAAG,EAAG,GAAG,SAQrCnF,IAAII,IAAJgF,EAAA,GACApF,IAAII,IAAJiF,EAAA,GACArF,IAAII,IAAJkF,EAAA,GACAtF,IAAII,IAAJmF,EAAA,GACAvF,IAAII,IAAJoF,EAAA,GACAxF,IAAII,IAAJqF,EAAA,GACAzF,IAAIP,OAAOiG,eAAgB,EAG3B,IAAI1F,KACF2F,GAAI,OACJxB,SACAyB,YAAcC,OACdC,SAAU","file":"static/js/app.35ca84d71febcb21ecd9.js","sourcesContent":["\r\nexport default {\r\n config:'index.php/login/index/config', //获取钉钉配置信息\r\n getSsoToken:'index.php/login/index/getSsoToken', //通过免签码获取uid\r\n\r\n\r\n folderList:'index.php/api/index/folderList', //访问文件夹列表\r\n articleList:'index.php/api/index/articleList', //访问文件列表\r\n articleDetail:'index.php/api/index/articleDetail', //获取文件详情\r\n articleEdit:'index.php/api/index/articleEdit', //修改文件\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/api/apiList.js","import axios from 'axios';\r\nimport qs from 'qs';\r\nimport apiList from './apiList';\r\nimport Vue from 'vue';\r\n\r\nlet vm = new Vue();\r\nlet baseUrl = 'http://doc-phone.linanquan.com/';\r\n// 添加请求拦截器\r\naxios.interceptors.request.use(function (config) {\r\n // 在发送请求之前做些什么\r\n return config;\r\n}, function (error) {\r\n // 对请求错误做些什么\r\n return Promise.reject(error);\r\n});\r\n\r\n// 添加响应拦截器\r\naxios.interceptors.response.use(function (response) {\r\n // 对响应数据做点什么\r\n if(response.data.err_code !== 0){\r\n vm.$notify({ type:'danger',duration: 2000,message:response.data.err_msg});\r\n }\r\n return response.data;\r\n}, function (error) {\r\n // 对响应错误做点什么\r\n return Promise.reject(error);\r\n});\r\n\r\nexport default {\r\n post(apiName,data){\r\n let url = apiList[apiName];\r\n return axios({\r\n method:'post',\r\n baseURL:baseUrl,\r\n url:url,\r\n data:qs.stringify(data),\r\n })\r\n },\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/api/index.js","import api from './index';\r\n\r\nexport default {\r\n //获取钉钉配置信息\r\n config(data){\r\n return api.post('config',data);\r\n },\r\n //通过免签码获取uid\r\n getSsoToken(data){\r\n return api.post('getSsoToken',data);\r\n },\r\n\r\n\r\n //访问文件夹列表\r\n folderList(data){\r\n return api.post('folderList',data);\r\n },\r\n //访问文件列表\r\n articleList(data){\r\n return api.post('articleList',data);\r\n },\r\n //获取文件详情\r\n articleDetail(data){\r\n return api.post('articleDetail',data);\r\n },\r\n //修改文件\r\n articleEdit(data){\r\n return api.post('articleEdit',data);\r\n },\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/api/methods.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('router-view')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-2408f9b8\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-2408f9b8\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/selector?type=styles&index=0!./App.vue\")\n}\nvar normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-2408f9b8\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","<template>\n <div id=\"app\">\n <router-view/>\n </div>\n</template>\n\n<script>\n export default {\n name: 'App'\n }\n</script>\n\n<style lang=\"less\">\n @import \"./style/app.less\";\n @import \"./assets/font.css\";\n @import \"./style/normalize.css\";\n @basefont: 50;\n #app {\n font-family: 'Avenir', Helvetica, Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-size:24rem /@basefont;\n }\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","\r\nimport api from '../../api/methods';\r\nexport default {\r\n //获取钉钉配置信息\r\n config(callback){\r\n api.config().then((data)=>{\r\n if(data.err_code == 0){\r\n console.log('config::',data)\r\n callback(data.data);\r\n }\r\n })\r\n },\r\n //通过免签码获取uid\r\n getSsoToken(code){\r\n api.getSsoToken({code:code\t}).then((data)=>{\r\n alert(JSON.stringify(data))\r\n if(data.err_code == 0){\r\n // alert(JSON.stringify(data))\r\n console.log('config::',data)\r\n }\r\n })\r\n },\r\n //获取微应用免登授权码\r\n getCode(){\r\n let _this = this;\r\n this.config((data)=>{\r\n dd.ready(function() {\r\n dd.runtime.permission.requestAuthCode({\r\n corpId: data.corpId, // 企业id\r\n onSuccess: function (info) {\r\n alert(JSON.stringify(info))\r\n // code = info.code // 通过该免登授权码可以获取用户身份\r\n _this.getSsoToken(info.code);\r\n },\r\n onFail: function (info) {\r\n alert(JSON.stringify(info))\r\n _this.getSsoToken(info.code);\r\n },\r\n });\r\n });\r\n })\r\n },\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/assets/js/ddLogin.js","import Vue from 'vue';\r\nimport Vuex from 'vuex';\r\n\r\nVue.use(Vuex);\r\n\r\nconst store = new Vuex.Store({\r\n state: {\r\n user_info:null, //用户信息\r\n },\r\n mutations: {\r\n userInfo(state,data){\r\n state.user_info = data;\r\n },\r\n }\r\n});\r\n\r\nexport default store;\n\n\n// WEBPACK FOOTER //\n// ./src/vuex/index.js","import Vue from 'vue';\nimport Router from 'vue-router';\nimport ddLogin from '../assets/js/ddLogin';\nimport store from '../vuex/index';\n\nVue.use(Router);\n\nlet router = new Router({\n routes: [\n {\n path: '/',\n name: 'index',\n component: ()=>import('@/pages/index.vue'),\n children:[\n {\n path: 'folder',\n name:'folder',\n component: ()=>import('@/pages/folder.vue'),\n },\n {\n path: 'folder2',\n name:'folder2',\n component: ()=>import('@/pages/folder2.vue'),\n },\n {\n path: 'wangeditor',\n name:'wangeditor',\n component: ()=>import('@/pages/wangeditor.vue'),\n },\n {\n path: 'markdown',\n name:'markdown',\n component: ()=>import('@/pages/markdown.vue'),\n },\n {\n path: 'test',\n name:'test',\n component: ()=>import('@/pages/test.vue'),\n },\n ]\n },\n ]\n});\n\nrouter.beforeEach((to, from, next) => {\n //没有用户信息说明则获取\n if(!store.state.user_info){\n ddLogin.getCode();\n }\n next();\n});\n\nexport default router;\n\n\n// WEBPACK FOOTER //\n// ./src/router/index.js","// The Vue build version to load with the `import` command\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\nimport Vue from 'vue'\nimport App from './App'\nimport router from './router'\nimport { Button,Search,Divider,Loading,Field,Notify } from 'vant';\nimport VueQuillEditor from 'vue-quill-editor';\n// require styles\nimport 'quill/dist/quill.core.css';\nimport 'quill/dist/quill.snow.css';\nimport 'quill/dist/quill.bubble.css';\n\nVue.use(VueQuillEditor, /* { default global options } */{\n placeholder:'请输入内容',\n modules: {\n toolbar: [\n [{'color': []}],\n ['bold', 'italic', 'underline', 'strike'],\n [{'header': 1}, {'header': 2}],\n [{'header': [1, 2, 3, 4, 5, 6, false]}\n ],\n ],\n },\n // readOnly: false,\n // theme: 'bubble'\n});\n\nVue.use(Search);\nVue.use(Button);\nVue.use(Divider);\nVue.use(Loading);\nVue.use(Field);\nVue.use(Notify);\nVue.config.productionTip = false\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#app',\n router,\n components: { App },\n template: '<App/>'\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js"],"sourceRoot":""}
\ No newline at end of file
public/html/dist/static/js/app.7b6b561c033f2d5cf9b7.js.map
deleted
100644 → 0
View file @
a751a99a
{"version":3,"sources":["webpack:///./src/api/apiList.js","webpack:///./src/api/index.js","webpack:///./src/api/methods.js","webpack:///./src/App.vue?bbff","webpack:///./src/App.vue","webpack:///src/App.vue","webpack:///./src/assets/js/ddLogin.js","webpack:///./src/vuex/index.js","webpack:///./src/router/index.js","webpack:///./src/main.js"],"names":["apiList","config","getSsoToken","folderList","articleList","articleDetail","articleEdit","vm","Vue","axios","interceptors","request","use","error","promise_default","a","reject","response","data","err_code","$notify","type","duration","message","err_msg","api","apiName","url","method","baseURL","qs","stringify","__webpack_exports__","selectortype_template_index_0_src_App","render","_h","this","$createElement","_c","_self","attrs","id","staticRenderFns","src_App","__webpack_require__","normalizeComponent","name","ssrContext","ddLogin","callback","then","console","log","code","alert","stringify_default","getCode","_this","dd","ready","runtime","permission","requestAuthCode","corpId","onSuccess","info","onFail","Vuex","store","Store","state","user_info","mutations","userInfo","Router","router","routes","path","component","e","bind","children","beforeEach","to","from","next","VueQuillEditor","placeholder","modules","toolbar","color","header","search","es_button","divider","loading","field","notify","productionTip","el","components","App","template"],"mappings":"sRACeA,GACXC,OAAO,+BACPC,YAAY,oCAGZC,WAAW,iCACXC,YAAY,kCACZC,cAAc,oCACdC,YAAY,mCCJZC,EAAK,cAAIC,GAGbC,IAAMC,aAAaC,QAAQC,IAAI,SAAUX,GAErC,OAAOA,GACR,SAAUY,GAET,OAAOC,EAAAC,EAAQC,OAAOH,KAI1BJ,IAAMC,aAAaO,SAASL,IAAI,SAAUK,GAKtC,OAH8B,IAA3BA,EAASC,KAAKC,UACbZ,EAAGa,SAAUC,KAAK,SAASC,SAAU,IAAKC,QAAQN,EAASC,KAAKM,UAE7DP,EAASC,MACjB,SAAUL,GAET,OAAOC,EAAAC,EAAQC,OAAOH,KAGX,IAAAY,EAAA,SACNC,EAAQR,GACT,IAAIS,EAAM3B,EAAQ0B,GAClB,OAAOjB,KACHmB,OAAO,OACPC,QA3BE,kCA4BFF,IAAIA,EACJT,KAAKY,IAAGC,UAAUb,MCjCfc,EAAA,GAEX/B,OAFW,SAEJiB,GACH,OAAOO,EAAS,SAASP,IAG7BhB,YANW,SAMCgB,GACR,OAAOO,EAAS,cAAcP,IAKlCf,WAZW,SAYAe,GACP,OAAOO,EAAS,aAAaP,IAGjCd,YAhBW,SAgBCc,GACR,OAAOO,EAAS,cAAcP,IAGlCb,cApBW,SAoBGa,GACV,OAAOO,EAAS,gBAAgBP,IAGpCZ,YAxBW,SAwBCY,GACR,OAAOO,EAAS,cAAcP,4QCxBvBe,GADEC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAA0BC,EAAvCF,KAAuCG,MAAAD,IAAAH,EAAwB,OAAAG,EAAA,OAAiBE,OAAOC,GAAA,SAAYH,EAAA,oBAE5GI,oBCCjB,IAuBeC,EAvBUC,EAAQ,OAcjCC,ECTAC,KAAA,ODWEb,GATF,EAVA,SAAAc,GACEH,EAAQ,SAaV,KAEA,MAUgC,qDExBjBI,GAEX/C,OAFW,SAEJgD,GACHxB,IAAIxB,SAASiD,KAAK,SAAChC,GACK,GAAjBA,EAAKC,WACJgC,QAAQC,IAAI,WAAWlC,GACvB+B,EAAS/B,EAAKA,UAK1BhB,YAXW,SAWCmD,GACR5B,IAAIvB,aAAamD,KAAKA,IAAQH,KAAK,SAAChC,GAChCoC,MAAMC,IAAerC,IACD,GAAjBA,EAAKC,UAEJgC,QAAQC,IAAI,WAAWlC,MAKnCsC,QArBW,WAsBP,IAAIC,EAAQrB,KACZA,KAAKnC,OAAO,SAACiB,GACTwC,GAAGC,MAAM,WACLD,GAAGE,QAAQC,WAAWC,iBAClBC,OAAQ7C,EAAK6C,OACbC,UAAW,SAAUC,GACjBX,MAAM,KAENG,EAAMvD,YAAY+D,EAAKZ,OAE3Ba,OAAQ,SAAUD,GACdX,MAAMC,IAAeU,IACrBR,EAAMvD,YAAY+D,EAAKZ,2BCjC/C7C,IAAII,IAAIuD,KAER,IAWeC,EAXD,IAAID,IAAKE,OACnBC,OACIC,UAAU,MAEdC,WACIC,SADO,SACEH,EAAMpD,GACXoD,EAAMC,UAAYrD,MCN9BV,IAAII,IAAI8D,KAER,IAAIC,EAAS,IAAID,KACbE,SAEQC,KAAM,IACN/B,KAAM,QACNgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,eACfC,WAEQJ,KAAM,SACN/B,KAAK,SACLgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,iBAGfH,KAAM,UACN/B,KAAK,UACLgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,iBAGfH,KAAM,aACN/B,KAAK,aACLgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,iBAGfH,KAAM,WACN/B,KAAK,WACLgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,iBAGfH,KAAM,OACN/B,KAAK,OACLgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,qBAOnCL,EAAOO,WAAW,SAACC,EAAIC,EAAMC,GAErBjB,EAAME,MAAMC,WACZvB,EAAQQ,UAEZ6B,MAGWV,2DCxCfnE,IAAII,IAAI0E,KACNC,YAAY,QACZC,SACEC,WACIC,YACD,OAAQ,SAAU,YAAa,YAC9BC,OAAU,IAAKA,OAAU,MACzBA,QAAW,EAAG,EAAG,EAAG,EAAG,EAAG,GAAG,SAQrCnF,IAAII,IAAJgF,EAAA,GACApF,IAAII,IAAJiF,EAAA,GACArF,IAAII,IAAJkF,EAAA,GACAtF,IAAII,IAAJmF,EAAA,GACAvF,IAAII,IAAJoF,EAAA,GACAxF,IAAII,IAAJqF,EAAA,GACAzF,IAAIP,OAAOiG,eAAgB,EAG3B,IAAI1F,KACF2F,GAAI,OACJxB,SACAyB,YAAcC,OACdC,SAAU","file":"static/js/app.7b6b561c033f2d5cf9b7.js","sourcesContent":["\r\nexport default {\r\n config:'index.php/login/index/config', //获取钉钉配置信息\r\n getSsoToken:'index.php/login/index/getSsoToken', //通过免签码获取uid\r\n\r\n\r\n folderList:'index.php/api/index/folderList', //访问文件夹列表\r\n articleList:'index.php/api/index/articleList', //访问文件列表\r\n articleDetail:'index.php/api/index/articleDetail', //获取文件详情\r\n articleEdit:'index.php/api/index/articleEdit', //修改文件\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/api/apiList.js","import axios from 'axios';\r\nimport qs from 'qs';\r\nimport apiList from './apiList';\r\nimport Vue from 'vue';\r\n\r\nlet vm = new Vue();\r\nlet baseUrl = 'http://doc-phone.linanquan.com/';\r\n// 添加请求拦截器\r\naxios.interceptors.request.use(function (config) {\r\n // 在发送请求之前做些什么\r\n return config;\r\n}, function (error) {\r\n // 对请求错误做些什么\r\n return Promise.reject(error);\r\n});\r\n\r\n// 添加响应拦截器\r\naxios.interceptors.response.use(function (response) {\r\n // 对响应数据做点什么\r\n if(response.data.err_code !== 0){\r\n vm.$notify({ type:'danger',duration: 2000,message:response.data.err_msg});\r\n }\r\n return response.data;\r\n}, function (error) {\r\n // 对响应错误做点什么\r\n return Promise.reject(error);\r\n});\r\n\r\nexport default {\r\n post(apiName,data){\r\n let url = apiList[apiName];\r\n return axios({\r\n method:'post',\r\n baseURL:baseUrl,\r\n url:url,\r\n data:qs.stringify(data),\r\n })\r\n },\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/api/index.js","import api from './index';\r\n\r\nexport default {\r\n //获取钉钉配置信息\r\n config(data){\r\n return api.post('config',data);\r\n },\r\n //通过免签码获取uid\r\n getSsoToken(data){\r\n return api.post('getSsoToken',data);\r\n },\r\n\r\n\r\n //访问文件夹列表\r\n folderList(data){\r\n return api.post('folderList',data);\r\n },\r\n //访问文件列表\r\n articleList(data){\r\n return api.post('articleList',data);\r\n },\r\n //获取文件详情\r\n articleDetail(data){\r\n return api.post('articleDetail',data);\r\n },\r\n //修改文件\r\n articleEdit(data){\r\n return api.post('articleEdit',data);\r\n },\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/api/methods.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('router-view')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-2408f9b8\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-2408f9b8\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/selector?type=styles&index=0!./App.vue\")\n}\nvar normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-2408f9b8\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","<template>\n <div id=\"app\">\n <router-view/>\n </div>\n</template>\n\n<script>\n export default {\n name: 'App'\n }\n</script>\n\n<style lang=\"less\">\n @import \"./style/app.less\";\n @import \"./assets/font.css\";\n @import \"./style/normalize.css\";\n @basefont: 50;\n #app {\n font-family: 'Avenir', Helvetica, Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-size:24rem /@basefont;\n }\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","\r\nimport api from '../../api/methods';\r\nexport default {\r\n //获取钉钉配置信息\r\n config(callback){\r\n api.config().then((data)=>{\r\n if(data.err_code == 0){\r\n console.log('config::',data)\r\n callback(data.data);\r\n }\r\n })\r\n },\r\n //通过免签码获取uid\r\n getSsoToken(code){\r\n api.getSsoToken({code:code\t}).then((data)=>{\r\n alert(JSON.stringify(data))\r\n if(data.err_code == 0){\r\n // alert(JSON.stringify(data))\r\n console.log('config::',data)\r\n }\r\n })\r\n },\r\n //获取微应用免登授权码\r\n getCode(){\r\n let _this = this;\r\n this.config((data)=>{\r\n dd.ready(function() {\r\n dd.runtime.permission.requestAuthCode({\r\n corpId: data.corpId, // 企业id\r\n onSuccess: function (info) {\r\n alert(111)\r\n // code = info.code // 通过该免登授权码可以获取用户身份\r\n _this.getSsoToken(info.code);\r\n },\r\n onFail: function (info) {\r\n alert(JSON.stringify(info))\r\n _this.getSsoToken(info.code);\r\n },\r\n });\r\n });\r\n })\r\n },\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/assets/js/ddLogin.js","import Vue from 'vue';\r\nimport Vuex from 'vuex';\r\n\r\nVue.use(Vuex);\r\n\r\nconst store = new Vuex.Store({\r\n state: {\r\n user_info:null, //用户信息\r\n },\r\n mutations: {\r\n userInfo(state,data){\r\n state.user_info = data;\r\n },\r\n }\r\n});\r\n\r\nexport default store;\n\n\n// WEBPACK FOOTER //\n// ./src/vuex/index.js","import Vue from 'vue';\nimport Router from 'vue-router';\nimport ddLogin from '../assets/js/ddLogin';\nimport store from '../vuex/index';\n\nVue.use(Router);\n\nlet router = new Router({\n routes: [\n {\n path: '/',\n name: 'index',\n component: ()=>import('@/pages/index.vue'),\n children:[\n {\n path: 'folder',\n name:'folder',\n component: ()=>import('@/pages/folder.vue'),\n },\n {\n path: 'folder2',\n name:'folder2',\n component: ()=>import('@/pages/folder2.vue'),\n },\n {\n path: 'wangeditor',\n name:'wangeditor',\n component: ()=>import('@/pages/wangeditor.vue'),\n },\n {\n path: 'markdown',\n name:'markdown',\n component: ()=>import('@/pages/markdown.vue'),\n },\n {\n path: 'test',\n name:'test',\n component: ()=>import('@/pages/test.vue'),\n },\n ]\n },\n ]\n});\n\nrouter.beforeEach((to, from, next) => {\n //没有用户信息说明则获取\n if(!store.state.user_info){\n ddLogin.getCode();\n }\n next();\n});\n\nexport default router;\n\n\n// WEBPACK FOOTER //\n// ./src/router/index.js","// The Vue build version to load with the `import` command\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\nimport Vue from 'vue'\nimport App from './App'\nimport router from './router'\nimport { Button,Search,Divider,Loading,Field,Notify } from 'vant';\nimport VueQuillEditor from 'vue-quill-editor';\n// require styles\nimport 'quill/dist/quill.core.css';\nimport 'quill/dist/quill.snow.css';\nimport 'quill/dist/quill.bubble.css';\n\nVue.use(VueQuillEditor, /* { default global options } */{\n placeholder:'请输入内容',\n modules: {\n toolbar: [\n [{'color': []}],\n ['bold', 'italic', 'underline', 'strike'],\n [{'header': 1}, {'header': 2}],\n [{'header': [1, 2, 3, 4, 5, 6, false]}\n ],\n ],\n },\n // readOnly: false,\n // theme: 'bubble'\n});\n\nVue.use(Search);\nVue.use(Button);\nVue.use(Divider);\nVue.use(Loading);\nVue.use(Field);\nVue.use(Notify);\nVue.config.productionTip = false\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#app',\n router,\n components: { App },\n template: '<App/>'\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js"],"sourceRoot":""}
\ No newline at end of file
public/html/dist/static/js/manifest.481972107a4b2bbf8c2a.js.map
View file @
17c6ddb3
{"version":3,"sources":["webpack:///webpack/bootstrap e265131a295a85607897"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","8","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","3","4","5","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAA,SAAApB,GACA,IAAAqB,EAAAhB,EAAAL,GACA,OAAAqB,EACA,WAAAC,QAAA,SAAAC,GAA0CA,MAI1C,GAAAF,EACA,OAAAA,EAAA,GAIA,IAAAG,EAAA,IAAAF,QAAA,SAAAC,EAAAE,GACAJ,EAAAhB,EAAAL,IAAAuB,EAAAE,KAEAJ,EAAA,GAAAG,EAGA,IAAAE,EAAAC,SAAAC,qBAAA,WACAC,EAAAF,SAAAG,cAAA,UACAD,EAAAE,KAAA,kBACAF,EAAAG,QAAA,QACAH,EAAAI,OAAA,EACAJ,EAAAK,QAAA,KAEArB,EAAAsB,IACAN,EAAAO,aAAA,QAAAvB,EAAAsB,IAEAN,EAAAQ,IAAAxB,EAAAyB,EAAA,aAAAtC,EAAA,KAAwEuC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,wBAAkK5C,GAAA,MAC1O,IAAAkC,EAAAW,WAAAC,EAAA,MAEA,SAAAA,IAEAjB,EAAAkB,QAAAlB,EAAAmB,OAAA,KACAC,aAAAf,GACA,IAAAgB,EAAA7C,EAAAL,GACA,IAAAkD,IACAA,GACAA,EAAA,OAAAC,MAAA,iBAAAnD,EAAA,aAEAK,EAAAL,QAAAoD,GAKA,OAfAvB,EAAAkB,QAAAlB,EAAAmB,OAAAF,EAaApB,EAAA2B,YAAAxB,GAEAL,GAIAX,EAAAyC,EAAA3C,EAGAE,EAAA0C,EAAAxC,EAGAF,EAAA2C,EAAA,SAAAvC,EAAAwC,EAAAC,GACA7C,EAAA8C,EAAA1C,EAAAwC,IACAlD,OAAAqD,eAAA3C,EAAAwC,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMA7C,EAAAmD,EAAA,SAAA9C,GACA,IAAAwC,EAAAxC,KAAA+C,WACA,WAA2B,OAAA/C,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAA2C,EAAAE,EAAA,IAAAA,GACAA,GAIA7C,EAAA8C,EAAA,SAAAO,EAAAC,GAAsD,OAAA5D,OAAAC,UAAAC,eAAAC,KAAAwD,EAAAC,IAGtDtD,EAAAyB,EAAA,KAGAzB,EAAAuD,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.481972107a4b2bbf8c2a.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t8: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"0b3e29fa9fb715a6c568\",\"1\":\"7e05128e2126c69a7e68\",\"2\":\"886e1aadccebe3fa542c\",\"3\":\"41f78fb7461aaef8a580\",\"4\":\"d0cca719db357b6e07c6\",\"5\":\"9cd0f2020c75b7a9dbf1\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap e265131a295a85607897"],"sourceRoot":""}
{"version":3,"sources":["webpack:///webpack/bootstrap 962af266e9c568c13fe0"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","8","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","3","4","5","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAA,SAAApB,GACA,IAAAqB,EAAAhB,EAAAL,GACA,OAAAqB,EACA,WAAAC,QAAA,SAAAC,GAA0CA,MAI1C,GAAAF,EACA,OAAAA,EAAA,GAIA,IAAAG,EAAA,IAAAF,QAAA,SAAAC,EAAAE,GACAJ,EAAAhB,EAAAL,IAAAuB,EAAAE,KAEAJ,EAAA,GAAAG,EAGA,IAAAE,EAAAC,SAAAC,qBAAA,WACAC,EAAAF,SAAAG,cAAA,UACAD,EAAAE,KAAA,kBACAF,EAAAG,QAAA,QACAH,EAAAI,OAAA,EACAJ,EAAAK,QAAA,KAEArB,EAAAsB,IACAN,EAAAO,aAAA,QAAAvB,EAAAsB,IAEAN,EAAAQ,IAAAxB,EAAAyB,EAAA,aAAAtC,EAAA,KAAwEuC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,wBAAkK5C,GAAA,MAC1O,IAAAkC,EAAAW,WAAAC,EAAA,MAEA,SAAAA,IAEAjB,EAAAkB,QAAAlB,EAAAmB,OAAA,KACAC,aAAAf,GACA,IAAAgB,EAAA7C,EAAAL,GACA,IAAAkD,IACAA,GACAA,EAAA,OAAAC,MAAA,iBAAAnD,EAAA,aAEAK,EAAAL,QAAAoD,GAKA,OAfAvB,EAAAkB,QAAAlB,EAAAmB,OAAAF,EAaApB,EAAA2B,YAAAxB,GAEAL,GAIAX,EAAAyC,EAAA3C,EAGAE,EAAA0C,EAAAxC,EAGAF,EAAA2C,EAAA,SAAAvC,EAAAwC,EAAAC,GACA7C,EAAA8C,EAAA1C,EAAAwC,IACAlD,OAAAqD,eAAA3C,EAAAwC,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMA7C,EAAAmD,EAAA,SAAA9C,GACA,IAAAwC,EAAAxC,KAAA+C,WACA,WAA2B,OAAA/C,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAA2C,EAAAE,EAAA,IAAAA,GACAA,GAIA7C,EAAA8C,EAAA,SAAAO,EAAAC,GAAsD,OAAA5D,OAAAC,UAAAC,eAAAC,KAAAwD,EAAAC,IAGtDtD,EAAAyB,EAAA,KAGAzB,EAAAuD,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.481972107a4b2bbf8c2a.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t8: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"0b3e29fa9fb715a6c568\",\"1\":\"7e05128e2126c69a7e68\",\"2\":\"886e1aadccebe3fa542c\",\"3\":\"41f78fb7461aaef8a580\",\"4\":\"d0cca719db357b6e07c6\",\"5\":\"9cd0f2020c75b7a9dbf1\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 962af266e9c568c13fe0"],"sourceRoot":""}
\ No newline at end of file
\ No newline at end of file
public/html/dist/static/showdown.min.js
0 → 100644
View file @
17c6ddb3
/*! showdown v 2.0.0-alpha1 - 24-10-2018 */
(
function
(){
function
a
(
e
){
"use strict"
;
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
:
"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix"
,
type
:
"string"
},
rawPrefixHeaderId
:{
defaultValue
:
!
1
,
describe
:
'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)'
,
type
:
"boolean"
},
ghCompatibleHeaderId
:{
defaultValue
:
!
1
,
describe
:
"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)"
,
type
:
"boolean"
},
rawHeaderId
:{
defaultValue
:
!
1
,
describe
:
"Remove only spaces, ' and
\"
from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids"
,
type
:
"boolean"
},
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"
},
literalMidWordAsterisks
:{
defaultValue
:
!
1
,
describe
:
"Parse midword asterisks as literal asterisks"
,
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 indentation in es6 strings"
,
type
:
"boolean"
},
disableForced4SpacesIndentedSublists
:{
defaultValue
:
!
1
,
description
:
"Disables the requirement of indenting nested sublists by 4 spaces"
,
type
:
"boolean"
},
simpleLineBreaks
:{
defaultValue
:
!
1
,
description
:
"Parses simple line breaks as <br> (GFM Style)"
,
type
:
"boolean"
},
requireSpaceBeforeHeadingText
:{
defaultValue
:
!
1
,
description
:
"Makes adding a space between `#` and the header text mandatory (GFM Style)"
,
type
:
"boolean"
},
ghMentions
:{
defaultValue
:
!
1
,
description
:
"Enables github @mentions"
,
type
:
"boolean"
},
ghMentionsLink
:{
defaultValue
:
"https://github.com/{u}"
,
description
:
"Changes the link generated by @mentions. Only applies if ghMentions option is enabled."
,
type
:
"string"
},
encodeEmails
:{
defaultValue
:
!
0
,
description
:
"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities"
,
type
:
"boolean"
},
openLinksInNewWindow
:{
defaultValue
:
!
1
,
description
:
"Open all links in new windows"
,
type
:
"boolean"
},
backslashEscapesHTMLTags
:{
defaultValue
:
!
1
,
description
:
"Support for HTML Tag escaping. ex: <div>foo</div>"
,
type
:
"boolean"
},
emoji
:{
defaultValue
:
!
1
,
description
:
"Enable emoji support. Ex: `this is a :smile: emoji`"
,
type
:
"boolean"
},
underline
:{
defaultValue
:
!
1
,
description
:
"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`"
,
type
:
"boolean"
},
completeHTMLDocument
:{
defaultValue
:
!
1
,
description
:
"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags"
,
type
:
"boolean"
},
metadata
:{
defaultValue
:
!
1
,
description
:
"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`)."
,
type
:
"boolean"
},
splitAdjacentBlockquotes
:{
defaultValue
:
!
1
,
description
:
"Split adjacent blockquote blocks"
,
type
:
"boolean"
}};
if
(
!
1
===
e
)
return
JSON
.
parse
(
JSON
.
stringify
(
r
));
var
t
=
{};
for
(
var
a
in
r
)
r
.
hasOwnProperty
(
a
)
&&
(
t
[
a
]
=
r
[
a
].
defaultValue
);
return
t
}
var
b
=
{},
t
=
{},
h
=
{},
m
=
a
(
!
0
),
d
=
"vanilla"
,
p
=
{
github
:{
omitExtraWLInCodeBlocks
:
!
0
,
simplifiedAutoLink
:
!
0
,
literalMidWordUnderscores
:
!
0
,
strikethrough
:
!
0
,
tables
:
!
0
,
tablesHeaderId
:
!
0
,
ghCodeBlocks
:
!
0
,
tasklists
:
!
0
,
disableForced4SpacesIndentedSublists
:
!
0
,
simpleLineBreaks
:
!
0
,
requireSpaceBeforeHeadingText
:
!
0
,
ghCompatibleHeaderId
:
!
0
,
ghMentions
:
!
0
,
backslashEscapesHTMLTags
:
!
0
,
emoji
:
!
0
,
splitAdjacentBlockquotes
:
!
0
},
original
:{
noHeaderId
:
!
0
,
ghCodeBlocks
:
!
1
},
ghost
:{
omitExtraWLInCodeBlocks
:
!
0
,
parseImgDimensions
:
!
0
,
simplifiedAutoLink
:
!
0
,
literalMidWordUnderscores
:
!
0
,
strikethrough
:
!
0
,
tables
:
!
0
,
tablesHeaderId
:
!
0
,
ghCodeBlocks
:
!
0
,
tasklists
:
!
0
,
smoothLivePreview
:
!
0
,
simpleLineBreaks
:
!
0
,
requireSpaceBeforeHeadingText
:
!
0
,
ghMentions
:
!
1
,
encodeEmails
:
!
0
},
vanilla
:
a
(
!
0
),
allOn
:
function
(){
"use strict"
;
var
e
=
a
(
!
0
),
r
=
{};
for
(
var
t
in
e
)
e
.
hasOwnProperty
(
t
)
&&
(
r
[
t
]
=!
0
);
return
r
}()};
function
g
(
e
,
r
){
"use strict"
;
var
t
=
r
?
"Error in "
+
r
+
" extension->"
:
"Error in unnamed extension"
,
a
=
{
valid
:
!
0
,
error
:
""
};
b
.
helper
.
isArray
(
e
)
||
(
e
=
[
e
]);
for
(
var
n
=
0
;
n
<
e
.
length
;
++
n
){
var
s
=
t
+
" sub-extension "
+
n
+
": "
,
o
=
e
[
n
];
if
(
"object"
!=
typeof
o
)
return
a
.
valid
=!
1
,
a
.
error
=
s
+
"must be an object, but "
+
typeof
o
+
" given"
,
a
;
if
(
!
b
.
helper
.
isString
(
o
.
type
))
return
a
.
valid
=!
1
,
a
.
error
=
s
+
'property "type" must be a string, but '
+
typeof
o
.
type
+
" given"
,
a
;
var
i
=
o
.
type
=
o
.
type
.
toLowerCase
();
if
(
"language"
===
i
&&
(
i
=
o
.
type
=
"lang"
),
"html"
===
i
&&
(
i
=
o
.
type
=
"output"
),
"lang"
!==
i
&&
"output"
!==
i
&&
"listener"
!==
i
)
return
a
.
valid
=!
1
,
a
.
error
=
s
+
"type "
+
i
+
' is not recognized. Valid values: "lang/language", "output/html" or "listener"'
,
a
;
if
(
"listener"
===
i
){
if
(
b
.
helper
.
isUndefined
(
o
.
listeners
))
return
a
.
valid
=!
1
,
a
.
error
=
s
+
'. Extensions of type "listener" must have a property called "listeners"'
,
a
}
else
if
(
b
.
helper
.
isUndefined
(
o
.
filter
)
&&
b
.
helper
.
isUndefined
(
o
.
regex
))
return
a
.
valid
=!
1
,
a
.
error
=
s
+
i
+
' extensions must define either a "regex" property or a "filter" method'
,
a
;
if
(
o
.
listeners
){
if
(
"object"
!=
typeof
o
.
listeners
)
return
a
.
valid
=!
1
,
a
.
error
=
s
+
'"listeners" property must be an object but '
+
typeof
o
.
listeners
+
" given"
,
a
;
for
(
var
l
in
o
.
listeners
)
if
(
o
.
listeners
.
hasOwnProperty
(
l
)
&&
"function"
!=
typeof
o
.
listeners
[
l
])
return
a
.
valid
=!
1
,
a
.
error
=
s
+
'"listeners" property must be an hash of [event name]: [callback]. listeners.'
+
l
+
" must be a function but "
+
typeof
o
.
listeners
[
l
]
+
" given"
,
a
}
if
(
o
.
filter
){
if
(
"function"
!=
typeof
o
.
filter
)
return
a
.
valid
=!
1
,
a
.
error
=
s
+
'"filter" must be a function, but '
+
typeof
o
.
filter
+
" given"
,
a
}
else
if
(
o
.
regex
){
if
(
b
.
helper
.
isString
(
o
.
regex
)
&&
(
o
.
regex
=
new
RegExp
(
o
.
regex
,
"g"
)),
!
(
o
.
regex
instanceof
RegExp
))
return
a
.
valid
=!
1
,
a
.
error
=
s
+
'"regex" property must either be a string or a RegExp object, but '
+
typeof
o
.
regex
+
" given"
,
a
;
if
(
b
.
helper
.
isUndefined
(
o
.
replace
))
return
a
.
valid
=!
1
,
a
.
error
=
s
+
'"regex" extensions must implement a replace string or function'
,
a
}}
return
a
}
if
(
b
.
helper
=
{},
b
.
extensions
=
{},
b
.
setOption
=
function
(
e
,
r
){
"use strict"
;
return
m
[
e
]
=
r
,
this
},
b
.
getOption
=
function
(
e
){
"use strict"
;
return
m
[
e
]},
b
.
getOptions
=
function
(){
"use strict"
;
return
m
},
b
.
resetOptions
=
function
(){
"use strict"
;
m
=
a
(
!
0
)},
b
.
setFlavor
=
function
(
e
){
"use strict"
;
if
(
!
p
.
hasOwnProperty
(
e
))
throw
Error
(
e
+
" flavor was not found"
);
b
.
resetOptions
();
var
r
=
p
[
e
];
for
(
var
t
in
d
=
e
,
r
)
r
.
hasOwnProperty
(
t
)
&&
(
m
[
t
]
=
r
[
t
])},
b
.
getFlavor
=
function
(){
"use strict"
;
return
d
},
b
.
getFlavorOptions
=
function
(
e
){
"use strict"
;
if
(
p
.
hasOwnProperty
(
e
))
return
p
[
e
]},
b
.
getDefaultOptions
=
function
(
e
){
"use strict"
;
return
a
(
e
)},
b
.
subParser
=
function
(
e
,
r
){
"use strict"
;
if
(
!
b
.
helper
.
isString
(
e
))
throw
Error
(
"showdown.subParser function first argument must be a string (the name of the subparser)"
);
if
(
void
0
===
r
){
if
(
t
.
hasOwnProperty
(
e
))
return
t
[
e
];
throw
Error
(
"SubParser named "
+
e
+
" not registered!"
)}
t
[
e
]
=
r
},
b
.
extension
=
function
(
e
,
r
){
"use strict"
;
if
(
!
b
.
helper
.
isString
(
e
))
throw
Error
(
"Extension 'name' must be a string"
);
if
(
e
=
b
.
helper
.
stdExtName
(
e
),
b
.
helper
.
isUndefined
(
r
)){
if
(
!
h
.
hasOwnProperty
(
e
))
throw
Error
(
"Extension named "
+
e
+
" is not registered!"
);
return
h
[
e
]}
"function"
==
typeof
r
&&
(
r
=
r
()),
b
.
helper
.
isArray
(
r
)
||
(
r
=
[
r
]);
var
t
=
g
(
r
,
e
);
if
(
!
t
.
valid
)
throw
Error
(
t
.
error
);
h
[
e
]
=
r
},
b
.
getAllExtensions
=
function
(){
"use strict"
;
return
h
},
b
.
removeExtension
=
function
(
e
){
"use strict"
;
delete
h
[
e
]},
b
.
resetExtensions
=
function
(){
"use strict"
;
h
=
{}},
b
.
validateExtension
=
function
(
e
){
"use strict"
;
var
r
=
g
(
e
,
null
);
return
!!
r
.
valid
||
(
console
.
warn
(
r
.
error
),
!
1
)},
b
.
hasOwnProperty
(
"helper"
)
||
(
b
.
helper
=
{}),
void
0
===
this
.
document
&&
void
0
===
this
.
window
){
var
e
=
require
(
"jsdom"
);
this
.
window
=
new
e
.
JSDOM
(
""
,{}).
window
}
function
s
(
e
,
r
){
"use strict"
;
return
"¨E"
+
r
.
charCodeAt
(
0
)
+
"E"
}
b
.
helper
.
document
=
this
.
window
.
document
,
b
.
helper
.
isString
=
function
(
e
){
"use strict"
;
return
"string"
==
typeof
e
||
e
instanceof
String
},
b
.
helper
.
isFunction
=
function
(
e
){
"use strict"
;
return
e
&&
"[object Function]"
===
{}.
toString
.
call
(
e
)},
b
.
helper
.
isArray
=
function
(
e
){
"use strict"
;
return
Array
.
isArray
(
e
)},
b
.
helper
.
isUndefined
=
function
(
e
){
"use strict"
;
return
void
0
===
e
},
b
.
helper
.
forEach
=
function
(
e
,
r
){
"use strict"
;
if
(
b
.
helper
.
isUndefined
(
e
))
throw
new
Error
(
"obj param is required"
);
if
(
b
.
helper
.
isUndefined
(
r
))
throw
new
Error
(
"callback param is required"
);
if
(
!
b
.
helper
.
isFunction
(
r
))
throw
new
Error
(
"callback param must be a function/closure"
);
if
(
"function"
==
typeof
e
.
forEach
)
e
.
forEach
(
r
);
else
if
(
b
.
helper
.
isArray
(
e
))
for
(
var
t
=
0
;
t
<
e
.
length
;
t
++
)
r
(
e
[
t
],
t
,
e
);
else
{
if
(
"object"
!=
typeof
e
)
throw
new
Error
(
"obj does not seem to be an array or an iterable object"
);
for
(
var
a
in
e
)
e
.
hasOwnProperty
(
a
)
&&
r
(
e
[
a
],
a
,
e
)}},
b
.
helper
.
stdExtName
=
function
(
e
){
"use strict"
;
return
e
.
replace
(
/
[
_?*+
\/\\
.^-
]
/g
,
""
).
replace
(
/
\s
/g
,
""
).
toLowerCase
()},
b
.
helper
.
escapeCharactersCallback
=
s
,
b
.
helper
.
escapeCharacters
=
function
(
e
,
r
,
t
){
"use strict"
;
var
a
=
"(["
+
r
.
replace
(
/
([\[\]\\])
/g
,
"
\\
$1"
)
+
"])"
;
t
&&
(
a
=
"
\\\
\"
+a);var n=new RegExp(a,"
g
");return e=e.replace(n,s)};var _=function(e,r,t,a){"
use
strict
";var n,s,o,i,l,c=a||"",u=-1<c.indexOf("
g
"),h=new RegExp(r+"
|
"+t,"
g
"+c.replace(/g/g,"")),m=new RegExp(r,c.replace(/g/g,"")),d=[];do{for(n=0;o=h.exec(e);)if(m.test(o[0]))n++||(i=(s=h.lastIndex)-o[0].length);else if(n&&!--n){l=o.index+o[0].length;var p={left:{start:i,end:s},match:{start:s,end:o.index},right:{start:o.index,end:l},wholeMatch:{start:i,end:l}};if(d.push(p),!u)return d}}while(n&&(h.lastIndex=s));return d};b.helper.matchRecursiveRegExp=function(e,r,t,a){"
use
strict
";for(var n=_(e,r,t,a),s=[],o=0;o<n.length;++o)s.push([e.slice(n[o].wholeMatch.start,n[o].wholeMatch.end),e.slice(n[o].match.start,n[o].match.end),e.slice(n[o].left.start,n[o].left.end),e.slice(n[o].right.start,n[o].right.end)]);return s},b.helper.replaceRecursiveRegExp=function(e,r,t,a,n){"
use
strict
";if(!b.helper.isFunction(r)){var s=r;r=function(){return s}}var o=_(e,t,a,n),i=e,l=o.length;if(0<l){var c=[];0!==o[0].wholeMatch.start&&c.push(e.slice(0,o[0].wholeMatch.start));for(var u=0;u<l;++u)c.push(r(e.slice(o[u].wholeMatch.start,o[u].wholeMatch.end),e.slice(o[u].match.start,o[u].match.end),e.slice(o[u].left.start,o[u].left.end),e.slice(o[u].right.start,o[u].right.end))),u<l-1&&c.push(e.slice(o[u].wholeMatch.end,o[u+1].wholeMatch.start));o[l-1].wholeMatch.end<e.length&&c.push(e.slice(o[l-1].wholeMatch.end)),i=c.join("")}return i},b.helper.regexIndexOf=function(e,r,t){"
use
strict
";if(!b.helper.isString(e))throw"
InvalidArgumentError
:
first
parameter
of
showdown
.
helper
.
regexIndexOf
function
must
be
a
string
";if(r instanceof RegExp==!1)throw"
InvalidArgumentError
:
second
parameter
of
showdown
.
helper
.
regexIndexOf
function
must
be
an
instance
of
RegExp
";var a=e.substring(t||0).search(r);return 0<=a?a+(t||0):a},b.helper.splitAtIndex=function(e,r){"
use
strict
";if(!b.helper.isString(e))throw"
InvalidArgumentError
:
first
parameter
of
showdown
.
helper
.
regexIndexOf
function
must
be
a
string
";return[e.substring(0,r),e.substring(r)]},b.helper.encodeEmailAddress=function(e){"
use
strict
";var t=[function(e){return"
&
#
"+e.charCodeAt(0)+"
;
"},function(e){return"
&
#
x
"+e.charCodeAt(0).toString(16)+"
;
"},function(e){return e}];return e=e.replace(/./g,function(e){if("
@
"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=.9<r?t[2](e):.45<r?t[1](e):t[0](e)}return e})},b.helper.padEnd=function(e,r,t){"
use
strict
";return r>>=0,t=String(t||"
"),e.length>r?String(e):((r-=e.length)>t.length&&(t+=t.repeat(r/t.length)),String(e)+t.slice(0,r))},b.helper.unescapeHTMLEntities=function(e){"
use
strict
";return e.replace(/"/g,'"
').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},b.helper._hashHTMLSpan=function(e,r){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"},b.helper.Event=function(e,r,t){"use strict";var a=t.regexp||null,n=t.matches||{},s=t.options||{},o=t.converter||null,i=t.globals||{};this.getName=function(){return e},this.getEventName=function(){return e},this._stopExecution=!1,this.parsedText=t.parsedText||null,this.getRegexp=function(){return a},this.getOptions=function(){return s},this.getConverter=function(){return o},this.getGlobals=function(){return i},this.getCapturedText=function(){return r},this.getText=function(){return r},this.setText=function(e){r=e},this.getMatches=function(){return n},this.setMatches=function(e){n=e},this.preventDefault=function(e){this._stopExecution=!e}},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),b.helper.regexes={asteriskDashTildeAndColon:/([*_:~])/g,asteriskDashAndTilde:/([*_~])/g},b.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'
<
img
width
=
"20"
height
=
"20"
align
=
"absmiddle"
src
=
"https://assets-cdn.github.com/images/icons/emoji/octocat.png"
>
',showdown:'
<
img
width
=
"20"
height
=
"20"
align
=
"absmiddle"
src
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAS1BMVEX///8jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS3b1q3b1q3b1q3b1q3b1q3b1q3b1q3b1q0565CIAAAAGXRSTlMAQHCAYCCw/+DQwPCQUBAwoHCAEP+wwFBgS2fvBgAAAUZJREFUeAHs1cGy7BAUheFFsEDw/k97VTq3T6ge2EmdM+pvrP6Iwd74XV9Kb52xuMU4/uc1YNgZLFOeV8FGdhGrNk5SEgUyPxAEdj4LlMRDyhVAMVEa2M7TBSeVZAFPdqHgzSZJwPKgcLFLAooHDJo4EDCw4gAtBoJA5UFj4Ng5LOGLwVXZuoIlji/jeQHFk7+baHxrCjeUwB9+s88KndvlhcyBN5BSkYNQIVVb4pV+Npm7hhuKDs/uMP5KxT3WzSNNLIuuoDpMmuAVMruMSeDyQBi24DTr43LAY7ILA1QYaWkgfHzFthYYzg67SQsCbB8GhJUEGCtO9n0rSaCLxgJQjS/JSgMTg2eBDEHAJ+H350AsjYNYscrErgI2e/l+mdR967TCX/v6N0EhPECYCP0i+IAoYQOE8BogNhQMEMdrgAQWHaMAAGi5I5euoY9NAAAAAElFTkSuQmCC"
>
'},b.subParser("makehtml.blockGamut",function(e,r,t){"use strict";return e=t.converter._dispatch("makehtml.blockGamut.before",e,r,t).getText(),e=b.subParser("makehtml.blockQuotes")(e,r,t),e=b.subParser("makehtml.headers")(e,r,t),e=b.subParser("makehtml.horizontalRule")(e,r,t),e=b.subParser("makehtml.lists")(e,r,t),e=b.subParser("makehtml.codeBlocks")(e,r,t),e=b.subParser("makehtml.tables")(e,r,t),e=b.subParser("makehtml.hashHTMLBlocks")(e,r,t),e=b.subParser("makehtml.paragraphs")(e,r,t),e=t.converter._dispatch("makehtml.blockGamut.after",e,r,t).getText()}),b.subParser("makehtml.blockQuotes",function(e,r,t){"use strict";e=t.converter._dispatch("makehtml.blockQuotes.before",e,r,t).getText(),e+="
\
n
\
n";var a=/(^ {0,3}>[
\
t]?.+
\
n(.+
\
n)*
\
n*)+/gm;return r.splitAdjacentBlockquotes&&(a=/^ {0,3}>[
\
s
\
S]*?(?:
\
n
\
n)/gm),e=e.replace(a,function(e){return e=(e=(e=e.replace(/^[
\
t]*>[
\
t]?/gm,"")).replace(/¨0/g,"")).replace(/^[
\
t]+$/gm,""),e=b.subParser("makehtml.githubCodeBlocks")(e,r,t),e=(e=(e=b.subParser("makehtml.blockGamut")(e,r,t)).replace(/(^|
\
n)/g,"$1 ")).replace(/(
\
s*<pre>[^
\
r]+?<
\
/pre>)/gm,function(e,r){var t=r;return t=(t=t.replace(/^ /gm,"¨0")).replace(/¨0/g,"")}),b.subParser("makehtml.hashBlock")("<blockquote>
\
n"+e+"
\
n</blockquote>",r,t)}),e=t.converter._dispatch("makehtml.blockQuotes.after",e,r,t).getText()}),b.subParser("makehtml.codeBlocks",function(e,o,i){"use strict";e=i.converter._dispatch("makehtml.codeBlocks.before",e,o,i).getText();return e=(e=(e+="¨0").replace(/(?:
\
n
\
n|^)((?:(?:[ ]{4}|
\
t).*
\
n+)+)(
\
n*[ ]{0,3}[^
\
t
\
n]|(?=¨0))/g,function(e,r,t){var a=r,n=t,s="
\
n";return a=b.subParser("makehtml.outdent")(a,o,i),a=b.subParser("makehtml.encodeCode")(a,o,i),a=(a=(a=b.subParser("makehtml.detab")(a,o,i)).replace(/^
\
n+/g,"")).replace(/
\
n+$/g,""),o.omitExtraWLInCodeBlocks&&(s=""),a="<pre><code>"+a+s+"</code></pre>",b.subParser("makehtml.hashBlock")(a,o,i)+n})).replace(/¨0/,""),e=i.converter._dispatch("makehtml.codeBlocks.after",e,o,i).getText()}),b.subParser("makehtml.codeSpans",function(e,s,o){"use strict";return void 0===(e=o.converter._dispatch("makehtml.codeSpans.before",e,s,o).getText())&&(e=""),e=e.replace(/(^|[^
\\
])(`+)([^
\
r]*?[^`])
\
2(?!`)/gm,function(e,r,t,a){var n=a;return n=(n=n.replace(/^([
\
t]*)/g,"")).replace(/[
\
t]*$/g,""),n=r+"<code>"+(n=b.subParser("makehtml.encodeCode")(n,s,o))+"</code>",n=b.subParser("makehtml.hashHTMLSpans")(n,s,o)}),e=o.converter._dispatch("makehtml.codeSpans.after",e,s,o).getText()}),b.subParser("makehtml.completeHTMLDocument",function(e,r,t){"use strict";if(!r.completeHTMLDocument)return e;e=t.converter._dispatch("makehtml.completeHTMLDocument.before",e,r,t).getText();var a="html",n="<!DOCTYPE HTML>
\
n",s="",o='
<
meta
charset
=
"utf-8"
>
\
n
',i="",l="";for(var c in void 0!==t.metadata.parsed.doctype&&(n="<!DOCTYPE "+t.metadata.parsed.doctype+">
\
n","html"!==(a=t.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==a||(o='
<
meta
charset
=
"utf-8"
>
')),t.metadata.parsed)if(t.metadata.parsed.hasOwnProperty(c))switch(c.toLowerCase()){case"doctype":break;case"title":s="<title>"+t.metadata.parsed.title+"</title>
\
n";break;case"charset":o="html"===a||"html5"===a?'
<
meta
charset
=
"'+t.metadata.parsed.charset+'"
>
\
n
':'
<
meta
name
=
"charset"
content
=
"'+t.metadata.parsed.charset+'"
>
\
n
';break;case"language":case"lang":i='
lang
=
"'+t.metadata.parsed[c]+'"
',l+='
<
meta
name
=
"'+c+'"
content
=
"'+t.metadata.parsed[c]+'"
>
\
n
';break;default:l+='
<
meta
name
=
"'+c+'"
content
=
"'+t.metadata.parsed[c]+'"
>
\
n
'}return e=n+"<html"+i+">
\
n<head>
\
n"+s+o+l+"</head>
\
n<body>
\
n"+e.trim()+"
\
n</body>
\
n</html>",e=t.converter._dispatch("makehtml.completeHTMLDocument.after",e,r,t).getText()}),b.subParser("makehtml.detab",function(e,r,t){"use strict";return e=(e=(e=(e=(e=(e=t.converter._dispatch("makehtml.detab.before",e,r,t).getText()).replace(/
\
t(?=
\
t)/g," ")).replace(/
\
t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,r){for(var t=r,a=4-t.length%4,n=0;n<a;n++)t+=" ";return t})).replace(/¨A/g," ")).replace(/¨B/g,""),e=t.converter._dispatch("makehtml.detab.after",e,r,t).getText()}),b.subParser("makehtml.ellipsis",function(e,r,t){"use strict";return e=(e=t.converter._dispatch("makehtml.ellipsis.before",e,r,t).getText()).replace(/
\
.
\
.
\
./g,"…"),e=t.converter._dispatch("makehtml.ellipsis.after",e,r,t).getText()}),b.subParser("makehtml.emoji",function(e,r,t){"use strict";if(!r.emoji)return e;return e=(e=t.converter._dispatch("makehtml.emoji.before",e,r,t).getText()).replace(/:([
\
S]+?):/g,function(e,r){return b.helper.emojis.hasOwnProperty(r)?b.helper.emojis[r]:e}),e=t.converter._dispatch("makehtml.emoji.after",e,r,t).getText()}),b.subParser("makehtml.encodeAmpsAndAngles",function(e,r,t){"use strict";return e=(e=(e=(e=(e=t.converter._dispatch("makehtml.encodeAmpsAndAngles.before",e,r,t).getText()).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|
\
w+);)/g,"&")).replace(/<(?![a-z
\
/?$!])/gi,"<")).replace(/</g,"<")).replace(/>/g,">"),e=t.converter._dispatch("makehtml.encodeAmpsAndAngles.after",e,r,t).getText()}),b.subParser("makehtml.encodeBackslashEscapes",function(e,r,t){"use strict";return e=(e=(e=t.converter._dispatch("makehtml.encodeBackslashEscapes.before",e,r,t).getText()).replace(/
\\
(
\\
)/g,b.helper.escapeCharactersCallback)).replace(/
\\
([`*_{}
\
[
\
]()>#+.!~=|:-])/g,b.helper.escapeCharactersCallback),e=t.converter._dispatch("makehtml.encodeBackslashEscapes.after",e,r,t).getText()}),b.subParser("makehtml.encodeCode",function(e,r,t){"use strict";return e=(e=t.converter._dispatch("makehtml.encodeCode.before",e,r,t).getText()).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/([*_{}
\
[
\
]
\\
=~-])/g,b.helper.escapeCharactersCallback),e=t.converter._dispatch("makehtml.encodeCode.after",e,r,t).getText()}),b.subParser("makehtml.escapeSpecialCharsWithinTagAttributes",function(e,r,t){"use strict";return e=(e=(e=t.converter._dispatch("makehtml.escapeSpecialCharsWithinTagAttributes.before",e,r,t).getText()).replace(/<
\
/?[a-z
\
d_:-]+(?:[
\
s]+[
\
s
\
S]+?)?>/gi,function(e){return e.replace(/(.)<
\
/?code>(?=.)/g,"$1`").replace(/([
\\
`*_~=|])/g,b.helper.escapeCharactersCallback)})).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([
\\
`*_~=|])/g,b.helper.escapeCharactersCallback)}),e=t.converter._dispatch("makehtml.escapeSpecialCharsWithinTagAttributes.after",e,r,t).getText()}),b.subParser("makehtml.githubCodeBlocks",function(e,s,o){"use strict";return s.ghCodeBlocks?(e=o.converter._dispatch("makehtml.githubCodeBlocks.before",e,s,o).getText(),e=(e=(e+="¨0").replace(/(?:^|
\
n)(?: {0,3})(```+|~~~+)(?: *)([^
\
s`~]*)
\
n([
\
s
\
S]*?)
\
n(?: {0,3})
\
1/g,function(e,r,t,a){var n=s.omitExtraWLInCodeBlocks?"":"
\
n";return a=b.subParser("makehtml.encodeCode")(a,s,o),a="<pre><code"+(t?'
class
=
"'+t+"
language
-
"+t+'"
':"")+">"+(a=(a=(a=b.subParser("makehtml.detab")(a,s,o)).replace(/^
\
n+/g,"")).replace(/
\
n+$/g,""))+n+"</code></pre>",a=b.subParser("makehtml.hashBlock")(a,s,o),"
\
n
\
n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G
\
n
\
n"})).replace(/¨0/,""),o.converter._dispatch("makehtml.githubCodeBlocks.after",e,s,o).getText()):e}),b.subParser("makehtml.hashBlock",function(e,r,t){"use strict";return e=(e=t.converter._dispatch("makehtml.hashBlock.before",e,r,t).getText()).replace(/(^
\
n+|
\
n+$)/g,""),e="
\
n
\
n¨K"+(t.gHtmlBlocks.push(e)-1)+"K
\
n
\
n",e=t.converter._dispatch("makehtml.hashBlock.after",e,r,t).getText()}),b.subParser("makehtml.hashCodeTags",function(e,s,o){"use strict";e=o.converter._dispatch("makehtml.hashCodeTags.before",e,s,o).getText();return e=b.helper.replaceRecursiveRegExp(e,function(e,r,t,a){var n=t+b.subParser("makehtml.encodeCode")(r,s,o)+a;return"¨C"+(o.gHtmlSpans.push(n)-1)+"C"},"<code
\\
b[^>]*>","</code>","gim"),e=o.converter._dispatch("makehtml.hashCodeTags.after",e,s,o).getText()}),b.subParser("makehtml.hashElement",function(e,r,a){"use strict";return function(e,r){var t=r;return t=(t=(t=t.replace(/
\
n
\
n/g,"
\
n")).replace(/^
\
n/,"")).replace(/
\
n+$/g,""),t="
\
n
\
n¨K"+(a.gHtmlBlocks.push(t)-1)+"K
\
n
\
n"}}),b.subParser("makehtml.hashHTMLBlocks",function(e,r,s){"use strict";e=s.converter._dispatch("makehtml.hashHTMLBlocks.before",e,r,s).getText();var t=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],a=function(e,r,t,a){var n=e;return-1!==t.search(/
\
bmarkdown
\
b/)&&(n=t+s.converter.makeHtml(r)+a),"
\
n
\
n¨K"+(s.gHtmlBlocks.push(n)-1)+"K
\
n
\
n"};r.backslashEscapesHTMLTags&&(e=e.replace(/
\\
<(
\
/?[^>]+?)>/g,function(e,r){return"<"+r+">"}));for(var n=0;n<t.length;++n)for(var o,i=new RegExp("^ {0,3}(<"+t[n]+"
\\
b[^>]*>)","im"),l="<"+t[n]+"
\\
b[^>]*>",c="</"+t[n]+">";-1!==(o=b.helper.regexIndexOf(e,i));){var u=b.helper.splitAtIndex(e,o),h=b.helper.replaceRecursiveRegExp(u[1],a,l,c,"im");if(h===u[1])break;e=u[0].concat(h)}return e=e.replace(/(
\
n {0,3}(<(hr)
\
b([^<>])*?
\
/?>)[
\
t]*(?=
\
n{2,}))/g,b.subParser("makehtml.hashElement")(e,r,s)),e=(e=b.helper.replaceRecursiveRegExp(e,function(e){return"
\
n
\
n¨K"+(s.gHtmlBlocks.push(e)-1)+"K
\
n
\
n"},"^ {0,3}
\
x3c!--","--
\
x3e","gm")).replace(/(?:
\
n
\
n)( {0,3}(?:<([?%])[^
\
r]*?
\
2>)[
\
t]*(?=
\
n{2,}))/g,b.subParser("makehtml.hashElement")(e,r,s)),e=s.converter._dispatch("makehtml.hashHTMLBlocks.after",e,r,s).getText()}),b.subParser("makehtml.hashHTMLSpans",function(e,r,t){"use strict";return e=(e=(e=(e=(e=t.converter._dispatch("makehtml.hashHTMLSpans.before",e,r,t).getText()).replace(/<[^>]+?
\
/>/gi,function(e){return b.helper._hashHTMLSpan(e,t)})).replace(/<([^>]+?)>[
\
s
\
S]*?<
\
/
\
1>/g,function(e){return b.helper._hashHTMLSpan(e,t)})).replace(/<([^>]+?)
\
s[^>]+?>[
\
s
\
S]*?<
\
/
\
1>/g,function(e){return b.helper._hashHTMLSpan(e,t)})).replace(/<[^>]+?>/gi,function(e){return b.helper._hashHTMLSpan(e,t)}),e=t.converter._dispatch("makehtml.hashHTMLSpans.after",e,r,t).getText()}),b.subParser("makehtml.unhashHTMLSpans",function(e,r,t){"use strict";e=t.converter._dispatch("makehtml.unhashHTMLSpans.before",e,r,t).getText();for(var a=0;a<t.gHtmlSpans.length;++a){for(var n=t.gHtmlSpans[a],s=0;/¨C(
\
d+)C/.test(n);){var o=RegExp.$1;if(n=n.replace("¨C"+o+"C",t.gHtmlSpans[o]),10===s){console.error("maximum nesting of 10 spans reached!!!");break}++s}e=e.replace("¨C"+a+"C",n)}return e=t.converter._dispatch("makehtml.unhashHTMLSpans.after",e,r,t).getText()}),b.subParser("makehtml.hashPreCodeTags",function(e,s,o){"use strict";e=o.converter._dispatch("makehtml.hashPreCodeTags.before",e,s,o).getText();return e=b.helper.replaceRecursiveRegExp(e,function(e,r,t,a){var n=t+b.subParser("makehtml.encodeCode")(r,s,o)+a;return"
\
n
\
n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:n})-1)+"G
\
n
\
n"},"^ {0,3}<pre
\\
b[^>]*>
\\
s*<code
\\
b[^>]*>","^ {0,3}</code>
\\
s*</pre>","gim"),e=o.converter._dispatch("makehtml.hashPreCodeTags.after",e,s,o).getText()}),b.subParser("makehtml.headers",function(e,l,c){"use strict";e=c.converter._dispatch("makehtml.headers.before",e,l,c).getText();var u=isNaN(parseInt(l.headerLevelStart))?1:parseInt(l.headerLevelStart),r=l.smoothLivePreview?/^(.+)[
\
t]*
\
n={2,}[
\
t]*
\
n+/gm:/^(.+)[
\
t]*
\
n=+[
\
t]*
\
n+/gm,t=l.smoothLivePreview?/^(.+)[
\
t]*
\
n-{2,}[
\
t]*
\
n+/gm:/^(.+)[
\
t]*
\
n-+[
\
t]*
\
n+/gm;e=(e=e.replace(r,function(e,r){var t=b.subParser("makehtml.spanGamut")(r,l,c),a=l.noHeaderId?"":'
id
=
"'+h(r)+'"
',n="<h"+u+a+">"+t+"</h"+u+">";return b.subParser("makehtml.hashBlock")(n,l,c)})).replace(t,function(e,r){var t=b.subParser("makehtml.spanGamut")(r,l,c),a=l.noHeaderId?"":'
id
=
"'+h(r)+'"
',n=u+1,s="<h"+n+a+">"+t+"</h"+n+">";return b.subParser("makehtml.hashBlock")(s,l,c)});var a=l.requireSpaceBeforeHeadingText?/^(#{1,6})[
\
t]+(.+?)[
\
t]*#*
\
n+/gm:/^(#{1,6})[
\
t]*(.+?)[
\
t]*#*
\
n+/gm;function h(e){var r,t;if(l.customizedHeaderId){var a=e.match(/
\
{([^{]+?)}
\
s*$/);a&&a[1]&&(e=a[1])}return r=e,t=b.helper.isString(l.prefixHeaderId)?l.prefixHeaderId:!0===l.prefixHeaderId?"section-":"",l.rawPrefixHeaderId||(r=t+r),r=l.ghCompatibleHeaderId?r.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,
\
/:;=?@"#{}|^¨~
\
[
\
]`
\\
*)(%.!'
<>
]
/
g
,
""
).
toLowerCase
():
l
.
rawHeaderId
?
r
.
replace
(
/ /g
,
"-"
).
replace
(
/&/g
,
"&"
).
replace
(
/¨T/g
,
"¨"
).
replace
(
/¨D/g
,
"$"
).
replace
(
/
[
"'
]
/g
,
"-"
).
toLowerCase
():
r
.
replace
(
/
[^\w]
/g
,
""
).
toLowerCase
(),
l
.
rawPrefixHeaderId
&&
(
r
=
t
+
r
),
c
.
hashLinkCounts
[
r
]?
r
=
r
+
"-"
+
c
.
hashLinkCounts
[
r
]
++
:
c
.
hashLinkCounts
[
r
]
=
1
,
r
}
return
e
=
e
.
replace
(
a
,
function
(
e
,
r
,
t
){
var
a
=
t
;
l
.
customizedHeaderId
&&
(
a
=
t
.
replace
(
/
\s?\{([^
{
]
+
?)
}
\s
*$/
,
""
));
var
n
=
b
.
subParser
(
"makehtml.spanGamut"
)(
a
,
l
,
c
),
s
=
l
.
noHeaderId
?
""
:
' id="'
+
h
(
t
)
+
'"'
,
o
=
u
-
1
+
r
.
length
,
i
=
"<h"
+
o
+
s
+
">"
+
n
+
"</h"
+
o
+
">"
;
return
b
.
subParser
(
"makehtml.hashBlock"
)(
i
,
l
,
c
)}),
e
=
c
.
converter
.
_dispatch
(
"makehtml.headers.after"
,
e
,
l
,
c
).
getText
()}),
b
.
subParser
(
"makehtml.horizontalRule"
,
function
(
e
,
r
,
t
){
"use strict"
;
e
=
t
.
converter
.
_dispatch
(
"makehtml.horizontalRule.before"
,
e
,
r
,
t
).
getText
();
var
a
=
b
.
subParser
(
"makehtml.hashBlock"
)(
"<hr />"
,
r
,
t
);
return
e
=
(
e
=
(
e
=
e
.
replace
(
/^
{0,2}(
?
-
){3,}[
\t]
*$/gm
,
a
)).
replace
(
/^
{0,2}(
?\*){3,}[
\t]
*$/gm
,
a
)).
replace
(
/^
{0,2}(
?
_
){3,}[
\t]
*$/gm
,
a
),
e
=
t
.
converter
.
_dispatch
(
"makehtml.horizontalRule.after"
,
e
,
r
,
t
).
getText
()}),
b
.
subParser
(
"makehtml.images"
,
function
(
e
,
r
,
m
){
"use strict"
;
function
l
(
e
,
r
,
t
,
a
,
n
,
s
,
o
,
i
){
var
l
=
m
.
gUrls
,
c
=
m
.
gTitles
,
u
=
m
.
gDimensions
;
if
(
t
=
t
.
toLowerCase
(),
i
||
(
i
=
""
),
-
1
<
e
.
search
(
/
\(
<
?\s
*>
?
?([
'"
]
.*
[
'"
])?\)
$/m
))
a
=
""
;
else
if
(
""
===
a
||
null
===
a
){
if
(
""
!==
t
&&
null
!==
t
||
(
t
=
r
.
toLowerCase
().
replace
(
/
?\n
/g
,
" "
)),
a
=
"#"
+
t
,
b
.
helper
.
isUndefined
(
l
[
t
]))
return
e
;
a
=
l
[
t
],
b
.
helper
.
isUndefined
(
c
[
t
])
||
(
i
=
c
[
t
]),
b
.
helper
.
isUndefined
(
u
[
t
])
||
(
n
=
u
[
t
].
width
,
s
=
u
[
t
].
height
)}
r
=
r
.
replace
(
/"/g
,
"""
).
replace
(
b
.
helper
.
regexes
.
asteriskDashTildeAndColon
,
b
.
helper
.
escapeCharactersCallback
);
var
h
=
'<img src="'
+
(
a
=
a
.
replace
(
b
.
helper
.
regexes
.
asteriskDashTildeAndColon
,
b
.
helper
.
escapeCharactersCallback
))
+
'" alt="'
+
r
+
'"'
;
return
i
&&
b
.
helper
.
isString
(
i
)
&&
(
h
+=
' title="'
+
(
i
=
i
.
replace
(
/"/g
,
"""
).
replace
(
b
.
helper
.
regexes
.
asteriskDashTildeAndColon
,
b
.
helper
.
escapeCharactersCallback
))
+
'"'
),
n
&&
s
&&
(
h
+=
' width="'
+
(
n
=
"*"
===
n
?
"auto"
:
n
)
+
'"'
,
h
+=
' height="'
+
(
s
=
"*"
===
s
?
"auto"
:
s
)
+
'"'
),
h
+=
" />"
}
return
e
=
(
e
=
(
e
=
(
e
=
(
e
=
(
e
=
m
.
converter
.
_dispatch
(
"makehtml.images.before"
,
e
,
r
,
m
).
getText
()).
replace
(
/!
\[([^\]]
*
?)
]
?(?:\n
*
)?\[([\s\S]
*
?)
]
()()()()()
/g
,
l
)).
replace
(
/!
\[([^\]]
*
?)
]
[
\t]
*
()\([
\t]?
<
?(
data:.+
?\/
.+
?
;base64,
[
A-Za-z0-9+
/
=
\n]
+
?)
>
?(?:
=
([
*
\d]
+
[
A-Za-z%
]{0,4})
x
([
*
\d]
+
[
A-Za-z%
]{0,4}))?[
\t]
*
(?:([
"'
])([^
"
]
*
?)\6)?[
\t]?\)
/g
,
function
(
e
,
r
,
t
,
a
,
n
,
s
,
o
,
i
){
return
l
(
e
,
r
,
t
,
a
=
a
.
replace
(
/
\s
/g
,
""
),
n
,
s
,
0
,
i
)})).
replace
(
/!
\[([^\]]
*
?)
]
[
\t]
*
()\([
\t]?
<
([^
>
]
*
)
>
(?:
=
([
*
\d]
+
[
A-Za-z%
]{0,4})
x
([
*
\d]
+
[
A-Za-z%
]{0,4}))?[
\t]
*
(?:(?:([
"'
])([^
"
]
*
?)\6))?[
\t]?\)
/g
,
l
)).
replace
(
/!
\[([^\]]
*
?)
]
[
\t]
*
()\([
\t]?
<
?([\S]
+
?(?:\([\S]
*
?\)[\S]
*
?)?)
>
?(?:
=
([
*
\d]
+
[
A-Za-z%
]{0,4})
x
([
*
\d]
+
[
A-Za-z%
]{0,4}))?[
\t]
*
(?:([
"'
])([^
"
]
*
?)\6)?[
\t]?\)
/g
,
l
)).
replace
(
/!
\[([^\[\]]
+
)
]
()()()()()
/g
,
l
),
e
=
m
.
converter
.
_dispatch
(
"makehtml.images.after"
,
e
,
r
,
m
).
getText
()}),
b
.
subParser
(
"makehtml.italicsAndBold"
,
function
(
e
,
r
,
t
){
"use strict"
;
function
a
(
e
,
r
,
t
){
return
r
+
e
+
t
}
return
e
=
t
.
converter
.
_dispatch
(
"makehtml.italicsAndBold.before"
,
e
,
r
,
t
).
getText
(),
e
=
(
e
=
(
e
=
(
e
=
r
.
literalMidWordUnderscores
?(
e
=
(
e
=
e
.
replace
(
/
\b
___
(\S[\s\S]
*
?)
___
\b
/g
,
function
(
e
,
r
){
return
a
(
r
,
"<strong><em>"
,
"</em></strong>"
)})).
replace
(
/
\b
__
(\S[\s\S]
*
?)
__
\b
/g
,
function
(
e
,
r
){
return
a
(
r
,
"<strong>"
,
"</strong>"
)})).
replace
(
/
\b
_
(\S[\s\S]
*
?)
_
\b
/g
,
function
(
e
,
r
){
return
a
(
r
,
"<em>"
,
"</em>"
)}):(
e
=
(
e
=
e
.
replace
(
/___
(\S[\s\S]
*
?)
___/g
,
function
(
e
,
r
){
return
/
\S
$/
.
test
(
r
)?
a
(
r
,
"<strong><em>"
,
"</em></strong>"
):
e
})).
replace
(
/__
(\S[\s\S]
*
?)
__/g
,
function
(
e
,
r
){
return
/
\S
$/
.
test
(
r
)?
a
(
r
,
"<strong>"
,
"</strong>"
):
e
})).
replace
(
/_
([^\s
_
][\s\S]
*
?)
_/g
,
function
(
e
,
r
){
return
/
\S
$/
.
test
(
r
)?
a
(
r
,
"<em>"
,
"</em>"
):
e
})).
replace
(
/
\*\*\*(\S[\s\S]
*
?)\*\*\*
/g
,
function
(
e
,
r
){
return
/
\S
$/
.
test
(
r
)?
a
(
r
,
"<strong><em>"
,
"</em></strong>"
):
e
})).
replace
(
/
\*\*(\S[\s\S]
*
?)\*\*
/g
,
function
(
e
,
r
){
return
/
\S
$/
.
test
(
r
)?
a
(
r
,
"<strong>"
,
"</strong>"
):
e
})).
replace
(
/
\*([^\s
*
][\s\S]
*
?)\*
/g
,
function
(
e
,
r
){
return
/
\S
$/
.
test
(
r
)?
a
(
r
,
"<em>"
,
"</em>"
):
e
}),
e
=
t
.
converter
.
_dispatch
(
"makehtml.italicsAndBold.after"
,
e
,
r
,
t
).
getText
()}),
function
(){
function
l
(
i
,
l
,
c
,
u
,
h
){
return
h
=!!
h
,
function
(
e
,
r
,
t
,
a
,
n
,
s
,
o
){
return
/
\n\n
/
.
test
(
e
)?
e
:
f
(
_
(
i
,
l
+
".captureStart"
,
e
,
r
,
t
,
a
,
o
,
c
,
u
),
c
,
u
,
h
)}}
function
_
(
e
,
r
,
t
,
a
,
n
,
s
,
o
,
i
,
l
){
return
l
.
converter
.
_dispatch
(
r
,
t
,
i
,
l
,{
regexp
:
e
,
matches
:{
wholeMatch
:
t
,
text
:
a
,
id
:
n
,
url
:
s
,
title
:
o
}})}
function
f
(
e
,
r
,
t
,
a
){
var
n
=
e
.
getMatches
().
wholeMatch
,
s
=
e
.
getMatches
().
text
,
o
=
e
.
getMatches
().
id
,
i
=
e
.
getMatches
().
url
,
l
=
e
.
getMatches
().
title
,
c
=
""
;
if
(
l
||
(
l
=
""
),
o
=
o
?
o
.
toLowerCase
():
""
,
a
)
i
=
""
;
else
if
(
!
i
){
if
(
o
||
(
o
=
s
.
toLowerCase
().
replace
(
/
?\n
/g
,
" "
)),
i
=
"#"
+
o
,
b
.
helper
.
isUndefined
(
t
.
gUrls
[
o
]))
return
n
;
i
=
t
.
gUrls
[
o
],
b
.
helper
.
isUndefined
(
t
.
gTitles
[
o
])
||
(
l
=
t
.
gTitles
[
o
])}
i
=
i
.
replace
(
b
.
helper
.
regexes
.
asteriskDashTildeAndColon
,
b
.
helper
.
escapeCharactersCallback
),
""
!==
l
&&
null
!==
l
&&
(
l
=
' title="'
+
(
l
=
(
l
=
l
.
replace
(
/"/g
,
"""
)).
replace
(
b
.
helper
.
regexes
.
asteriskDashTildeAndColon
,
b
.
helper
.
escapeCharactersCallback
))
+
'"'
),
r
.
openLinksInNewWindow
&&!
/^#/
.
test
(
i
)
&&
(
c
=
' target="¨E95Eblank"'
),
s
=
b
.
subParser
(
"makehtml.codeSpans"
)(
s
,
r
,
t
),
s
=
b
.
subParser
(
"makehtml.emoji"
)(
s
,
r
,
t
),
s
=
b
.
subParser
(
"makehtml.underline"
)(
s
,
r
,
t
),
s
=
b
.
subParser
(
"makehtml.italicsAndBold"
)(
s
,
r
,
t
),
s
=
b
.
subParser
(
"makehtml.strikethrough"
)(
s
,
r
,
t
),
s
=
b
.
subParser
(
"makehtml.ellipsis"
)(
s
,
r
,
t
);
var
u
=
'<a href="'
+
i
+
'"'
+
l
+
c
+
">"
+
(
s
=
b
.
subParser
(
"makehtml.hashHTMLSpans"
)(
s
,
r
,
t
))
+
"</a>"
;
return
u
=
b
.
subParser
(
"makehtml.hashHTMLSpans"
)(
u
,
r
,
t
)}
var
a
=
"makehtml.links"
;
b
.
subParser
(
"makehtml.links"
,
function
(
e
,
r
,
t
){
return
e
=
t
.
converter
.
_dispatch
(
a
+
".start"
,
e
,
r
,
t
).
getText
(),
e
=
b
.
subParser
(
"makehtml.links.reference"
)(
e
,
r
,
t
),
e
=
b
.
subParser
(
"makehtml.links.inline"
)(
e
,
r
,
t
),
e
=
b
.
subParser
(
"makehtml.links.referenceShortcut"
)(
e
,
r
,
t
),
e
=
b
.
subParser
(
"makehtml.links.angleBrackets"
)(
e
,
r
,
t
),
e
=
(
e
=
(
e
=
b
.
subParser
(
"makehtml.links.ghMentions"
)(
e
,
r
,
t
)).
replace
(
/<a
\s[^
>
]
*>
[\s\S]
*<
\/
a>/g
,
function
(
e
){
return
b
.
helper
.
_hashHTMLSpan
(
e
,
t
)})).
replace
(
/<img
\s[^
>
]
*
\/?
>/g
,
function
(
e
){
return
b
.
helper
.
_hashHTMLSpan
(
e
,
t
)}),
e
=
b
.
subParser
(
"makehtml.links.naked"
)(
e
,
r
,
t
),
e
=
t
.
converter
.
_dispatch
(
a
+
".end"
,
e
,
r
,
t
).
getText
()}),
b
.
subParser
(
"makehtml.links.inline"
,
function
(
e
,
r
,
t
){
var
a
=
a
+
".inline"
,
n
=
/
\[(
.*
?)
]
()()()()\(
<
?
?
>
?
?(?:[
"'
](
.*
)[
"'
])?\)
/g
,
s
=
/
\[((?:\[[^\]]
*]|
[^\[\]])
*
)
]
()\s?\([
\t]?
<
([^
>
]
*
)
>
(?:[
\t]
*
(([
"'
])([^
"
]
*
?)\5))?[
\t]?\)
/g
,
o
=
/
\[([\S
]
*
?)
]
\s?()\(
*<
?([^\s
'"
]
*
?(?:\([\S]
*
?\)[\S]
*
?)?)
>
?\s
*
(?:()([
'"
])(
.*
?)\5)?
*
\)
/g
,
i
=
/
\[([\S
]
*
?)
]
\s?()\(
*<
?([^\s
'"
]
*
?(?:\([\S]
*
?\)[\S]
*
?)?)
>
?\s
+
()()\((
.*
?)\)
*
\)
/g
;
return
e
=
(
e
=
(
e
=
(
e
=
(
e
=
t
.
converter
.
_dispatch
(
a
+
".start"
,
e
,
r
,
t
).
getText
()).
replace
(
n
,
l
(
n
,
a
,
r
,
t
,
!
0
))).
replace
(
s
,
l
(
s
,
a
,
r
,
t
))).
replace
(
o
,
l
(
o
,
a
,
r
,
t
))).
replace
(
i
,
l
(
i
,
a
,
r
,
t
)),
e
=
t
.
converter
.
_dispatch
(
a
+
".end"
,
e
,
r
,
t
).
getText
()}),
b
.
subParser
(
"makehtml.links.reference"
,
function
(
e
,
r
,
t
){
var
a
=
a
+
".reference"
,
n
=
/
\[((?:\[[^\]]
*]|
[^\[\]])
*
)
]
?(?:\n
*
)?\[(
.*
?)
]
()()()()
/g
;
return
e
=
(
e
=
t
.
converter
.
_dispatch
(
a
+
".start"
,
e
,
r
,
t
).
getText
()).
replace
(
n
,
l
(
n
,
a
,
r
,
t
)),
e
=
t
.
converter
.
_dispatch
(
a
+
".end"
,
e
,
r
,
t
).
getText
()}),
b
.
subParser
(
"makehtml.links.referenceShortcut"
,
function
(
e
,
r
,
t
){
var
a
=
a
+
".referenceShortcut"
,
n
=
/
\[([^\[\]]
+
)
]
()()()()()
/g
;
return
e
=
(
e
=
t
.
converter
.
_dispatch
(
a
+
".start"
,
e
,
r
,
t
).
getText
()).
replace
(
n
,
l
(
n
,
a
,
r
,
t
)),
e
=
t
.
converter
.
_dispatch
(
a
+
".end"
,
e
,
r
,
t
).
getText
()}),
b
.
subParser
(
"makehtml.links.ghMentions"
,
function
(
e
,
o
,
i
){
var
l
=
l
+
"ghMentions"
;
if
(
!
o
.
ghMentions
)
return
e
;
e
=
i
.
converter
.
_dispatch
(
l
+
".start"
,
e
,
o
,
i
).
getText
();
var
c
=
/
(
^|
\s)(\\)?(
@
([
a-z
\d]
+
(?:[
a-z
\d
._-
]
+
?[
a-z
\d]
+
)
*
))
/gi
;
return
e
=
e
.
replace
(
c
,
function
(
e
,
r
,
t
,
a
,
n
){
if
(
"
\
\"
===t)return r+a;if(!b.helper.isString(o.ghMentionsLink))throw new Error("
ghMentionsLink
option
must
be
a
string
");var s=o.ghMentionsLink.replace(/{u}/g,n);return r+f(_(c,l+"
.
captureStart
",e,a,null,s,null,o,i),o,i)}),e=i.converter._dispatch(l+"
.
end
",e,o,i).getText()}),b.subParser("
makehtml
.
links
.
angleBrackets
",function(e,a,n){var s="
makehtml
.
links
.
angleBrackets
";e=n.converter._dispatch(s+"
.
start
",e,a,n).getText();var o=/<(((?:https?|ftp):
\
/
\
/|www
\
.)[^'"
>
\
s
]
+
)
>
/gi;e=e.replace
(
o,function
(
e,r,t
)
{return f
(
_
(
o,s+".captureStart",e,r,null,r="www."===t
?
"http:/
/
"+r:r,null,a,n),a,n)});var i=/<(?:mailto:)?([-.
\
w]+@[-a-z0-9]+(
\
.[-a-z0-9]+)*
\
.[a-z]+)>/gi;return e=e.replace(i,function(e,r){var t="
mailto
:
";return r=b.subParser("
makehtml
.
unescapeSpecialChars
")(r,a,n),a.encodeEmails?(t=b.helper.encodeEmailAddress(t+r),r=b.helper.encodeEmailAddress(r)):t+=r,f(_(i,s+"
.
captureStart
",e,r,null,t,null,a,n),a,n)}),e=n.converter._dispatch(s+"
.
end
",e,a,n).getText()}),b.subParser("
makehtml
.
links
.
naked
",function(e,m,d){if(!m.simplifiedAutoLink)return e;var p="
makehtml
.
links
.
naked
";e=d.converter._dispatch(p+"
.
start
",e,m,d).getText();var g=/([_*~]*?)(((?:https?|ftp):
\
/
\
/|www
\
.)[^
\
s<>"
'`´.-][^
\
s<>"'
`´]*?\.[a-z\d.]+[^\s<>"']*)\1/gi;e=e.replace(g,function(e,r,t,a){for(var n="",s=t.length-1;0<=s;--s){var o=t.charAt(s);if(/[_*~,;:.!?]/.test(o))t=t.slice(0,-1),n=o+n;else if(/\)/.test(o)){var i=t.match(/\(/g)||[],l=t.match(/\)/g);if(!(i.length<l.length))break;t=t.slice(0,-1),n=o+n}else{if(!/]/.test(o))break;var c=t.match(/\[/g)||[],u=t.match(/\]/g);if(!(c.length<u.length))break;t=t.slice(0,-1),n=o+n}}var h=t;return t="www."===a?"http://"+t:t,h=h.replace(b.helper.regexes.asteriskDashTildeAndColon,b.helper.escapeCharactersCallback),r+f(_(g,p+".captureStart",e,h,null,t,null,m,d),m,d)+n+r});var n=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`
{
|
}
~
.]
+
@[
-
a
-
z0
-
9
]
+
(
\
.[
-
a
-
z0
-
9
]
+
)
*
\
.[
a
-
z
]
+
)(?
=
$
|
\
s
)
/
gim
;
return
e
=
e
.
replace
(
n
,
function
(
e
,
r
,
t
){
var
a
=
"mailto:"
;
return
t
=
b
.
subParser
(
"makehtml.unescapeSpecialChars"
)(
t
,
m
,
d
),
m
.
encodeEmails
?(
a
=
b
.
helper
.
encodeEmailAddress
(
a
+
t
),
t
=
b
.
helper
.
encodeEmailAddress
(
t
)):
a
+=
t
,
r
+
f
(
_
(
n
,
p
+
".captureStart"
,
e
,
t
,
null
,
a
,
null
,
m
,
d
),
m
,
d
)}),
e
=
d
.
converter
.
_dispatch
(
p
+
".end"
,
e
,
m
,
d
).
getText
()})}(),
b
.
subParser
(
"makehtml.lists"
,
function
(
e
,
h
,
u
){
"use strict"
;
function
m
(
e
,
r
){
u
.
gListLevel
++
,
e
=
e
.
replace
(
/
\n{2,}
$/
,
"
\n
"
);
var
t
=
/
(\n)?(
^
{0,3})([
*+-
]
|
\d
+
[
.
])[
\t]
+
((\[(
x|X|
)?
]
)?[
\t]
*
[^\r]
+
?(\n{1,2}))(?=\n
*
(
¨0|
{0,3}([
*+-
]
|
\d
+
[
.
])[
\t]
+
))
/gm
,
c
=
/
\n[
\t]
*
\n(?!
¨0
)
/
.
test
(
e
+=
"¨0"
);
return
h
.
disableForced4SpacesIndentedSublists
&&
(
t
=
/
(\n)?(
^
{0,3})([
*+-
]
|
\d
+
[
.
])[
\t]
+
((\[(
x|X|
)?
]
)?[
\t]
*
[^\r]
+
?(\n{1,2}))(?=\n
*
(
¨0|
\2([
*+-
]
|
\d
+
[
.
])[
\t]
+
))
/gm
),
e
=
(
e
=
e
.
replace
(
t
,
function
(
e
,
r
,
t
,
a
,
n
,
s
,
o
){
o
=
o
&&
""
!==
o
.
trim
();
var
i
=
b
.
subParser
(
"makehtml.outdent"
)(
n
,
h
,
u
),
l
=
""
;
return
s
&&
h
.
tasklists
&&
(
l
=
' class="task-list-item" style="list-style-type: none;"'
,
i
=
i
.
replace
(
/^
[
\t]
*
\[(
x|X|
)?
]/m
,
function
(){
var
e
=
'<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"'
;
return
o
&&
(
e
+=
" checked"
),
e
+=
">"
})),
i
=
i
.
replace
(
/^
([
-*+
]
|
\d\.)[
\t]
+
[\S\n
]
*/g
,
function
(
e
){
return
"¨A"
+
e
}),
/^#+.+
\n
.+/
.
test
(
i
)
&&
(
i
=
i
.
replace
(
/^
(
#+.+
)
$/m
,
"$1
\n
"
)),
r
||-
1
<
i
.
search
(
/
\n{2,}
/
)?(
i
=
b
.
subParser
(
"makehtml.githubCodeBlocks"
)(
i
,
h
,
u
),
i
=
b
.
subParser
(
"makehtml.blockGamut"
)(
i
,
h
,
u
)):(
i
=
(
i
=
b
.
subParser
(
"makehtml.lists"
)(
i
,
h
,
u
)).
replace
(
/
\n
$/
,
""
),
i
=
(
i
=
b
.
subParser
(
"makehtml.hashHTMLBlocks"
)(
i
,
h
,
u
)).
replace
(
/
\n\n
+/g
,
"
\n\n
"
),
i
=
c
?
b
.
subParser
(
"makehtml.paragraphs"
)(
i
,
h
,
u
):
b
.
subParser
(
"makehtml.spanGamut"
)(
i
,
h
,
u
)),
i
=
"<li"
+
l
+
">"
+
(
i
=
i
.
replace
(
"¨A"
,
""
))
+
"</li>
\n
"
})).
replace
(
/¨0/g
,
""
),
u
.
gListLevel
--
,
r
&&
(
e
=
e
.
replace
(
/
\s
+$/
,
""
)),
e
}
function
d
(
e
,
r
){
if
(
"ol"
===
r
){
var
t
=
e
.
match
(
/^ *
(\d
+
)\.
/
);
if
(
t
&&
"1"
!==
t
[
1
])
return
' start="'
+
t
[
1
]
+
'"'
}
return
""
}
function
n
(
n
,
s
,
o
){
var
i
=
h
.
disableForced4SpacesIndentedSublists
?
/^
?\d
+
\.[
\t]
/gm
:
/^
{0,3}\d
+
\.[
\t]
/gm
,
l
=
h
.
disableForced4SpacesIndentedSublists
?
/^
?[
*+-
][
\t]
/gm
:
/^
{0,3}[
*+-
][
\t]
/gm
,
c
=
"ul"
===
s
?
i
:
l
,
u
=
""
;
if
(
-
1
!==
n
.
search
(
c
))
!
function
e
(
r
){
var
t
=
r
.
search
(
c
),
a
=
d
(
n
,
s
);
-
1
!==
t
?(
u
+=
"
\n\n
<"
+
s
+
a
+
">
\n
"
+
m
(
r
.
slice
(
0
,
t
),
!!
o
)
+
"</"
+
s
+
">
\n
"
,
c
=
"ul"
===
(
s
=
"ul"
===
s
?
"ol"
:
"ul"
)?
i
:
l
,
e
(
r
.
slice
(
t
))):
u
+=
"
\n\n
<"
+
s
+
a
+
">
\n
"
+
m
(
r
,
!!
o
)
+
"</"
+
s
+
">
\n
"
}(
n
);
else
{
var
e
=
d
(
n
,
s
);
u
=
"
\n\n
<"
+
s
+
e
+
">
\n
"
+
m
(
n
,
!!
o
)
+
"</"
+
s
+
">
\n
"
}
return
u
}
return
e
=
u
.
converter
.
_dispatch
(
"lists.before"
,
e
,
h
,
u
).
getText
(),
e
+=
"¨0"
,
e
=
(
e
=
u
.
gListLevel
?
e
.
replace
(
/^
((
{0,3}([
*+-
]
|
\d
+
[
.
])[
\t]
+
)[^\r]
+
?(
¨0|
\n{2,}(?=\S)(?![
\t]
*
(?:[
*+-
]
|
\d
+
[
.
])[
\t]
+
)))
/gm
,
function
(
e
,
r
,
t
){
return
n
(
r
,
-
1
<
t
.
search
(
/
[
*+-
]
/g
)?
"ul"
:
"ol"
,
!
0
)}):
e
.
replace
(
/
(\n\n
|^
\n?)((
{0,3}([
*+-
]
|
\d
+
[
.
])[
\t]
+
)[^\r]
+
?(
¨0|
\n{2,}(?=\S)(?![
\t]
*
(?:[
*+-
]
|
\d
+
[
.
])[
\t]
+
)))
/gm
,
function
(
e
,
r
,
t
,
a
){
return
n
(
t
,
-
1
<
a
.
search
(
/
[
*+-
]
/g
)?
"ul"
:
"ol"
,
!
1
)})).
replace
(
/¨0/
,
""
),
e
=
u
.
converter
.
_dispatch
(
"makehtml.lists.after"
,
e
,
h
,
u
).
getText
()}),
b
.
subParser
(
"makehtml.metadata"
,
function
(
e
,
r
,
a
){
"use strict"
;
if
(
!
r
.
metadata
)
return
e
;
function
n
(
e
){(
e
=
(
e
=
(
a
.
metadata
.
raw
=
e
).
replace
(
/&/g
,
"&"
).
replace
(
/"/g
,
"""
)).
replace
(
/
\n
{4}
/g
,
" "
)).
replace
(
/^
([\S
]
+
)
: +
([\s\S]
+
?)
$/gm
,
function
(
e
,
r
,
t
){
return
a
.
metadata
.
parsed
[
r
]
=
t
,
""
})}
return
e
=
(
e
=
(
e
=
(
e
=
a
.
converter
.
_dispatch
(
"makehtml.metadata.before"
,
e
,
r
,
a
).
getText
()).
replace
(
/^
\s
*«««+
(\S
*
?)\n([\s\S]
+
?)\n
»»»+
\n
/
,
function
(
e
,
r
,
t
){
return
n
(
t
),
"¨M"
})).
replace
(
/^
\s
*---+
(\S
*
?)\n([\s\S]
+
?)\n
---+
\n
/
,
function
(
e
,
r
,
t
){
return
r
&&
(
a
.
metadata
.
format
=
r
),
n
(
t
),
"¨M"
})).
replace
(
/¨M/g
,
""
),
e
=
a
.
converter
.
_dispatch
(
"makehtml.metadata.after"
,
e
,
r
,
a
).
getText
()}),
b
.
subParser
(
"makehtml.outdent"
,
function
(
e
,
r
,
t
){
"use strict"
;
return
e
=
(
e
=
(
e
=
t
.
converter
.
_dispatch
(
"makehtml.outdent.before"
,
e
,
r
,
t
).
getText
()).
replace
(
/^
(\t
|
[
]{1,4})
/gm
,
"¨0"
)).
replace
(
/¨0/g
,
""
),
e
=
t
.
converter
.
_dispatch
(
"makehtml.outdent.after"
,
e
,
r
,
t
).
getText
()}),
b
.
subParser
(
"makehtml.paragraphs"
,
function
(
e
,
r
,
t
){
"use strict"
;
for
(
var
a
=
(
e
=
(
e
=
(
e
=
t
.
converter
.
_dispatch
(
"makehtml.paragraphs.before"
,
e
,
r
,
t
).
getText
()).
replace
(
/^
\n
+/g
,
""
)).
replace
(
/
\n
+$/g
,
""
)).
split
(
/
\n{2,}
/g
),
n
=
[],
s
=
a
.
length
,
o
=
0
;
o
<
s
;
o
++
){
var
i
=
a
[
o
];
0
<=
i
.
search
(
/¨
(
K|G
)(\d
+
)\1
/g
)?
n
.
push
(
i
):
0
<=
i
.
search
(
/
\S
/
)
&&
(
i
=
(
i
=
b
.
subParser
(
"makehtml.spanGamut"
)(
i
,
r
,
t
)).
replace
(
/^
([
\t]
*
)
/g
,
"<p>"
),
i
+=
"</p>"
,
n
.
push
(
i
))}
for
(
s
=
n
.
length
,
o
=
0
;
o
<
s
;
o
++
){
for
(
var
l
=
""
,
c
=
n
[
o
],
u
=!
1
;
/¨
(
K|G
)(\d
+
)\1
/
.
test
(
c
);){
var
h
=
RegExp
.
$1
,
m
=
RegExp
.
$2
;
l
=
(
l
=
"K"
===
h
?
t
.
gHtmlBlocks
[
m
]:
u
?
b
.
subParser
(
"makehtml.encodeCode"
)(
t
.
ghCodeBlocks
[
m
].
text
,
r
,
t
):
t
.
ghCodeBlocks
[
m
].
codeblock
).
replace
(
/
\$
/g
,
"$$$$"
),
c
=
c
.
replace
(
/
(\n\n)?
¨
(
K|G
)\d
+
\2(\n\n)?
/
,
l
),
/^<pre
\b[^
>
]
*>
\s
*<code
\b[^
>
]
*>/
.
test
(
c
)
&&
(
u
=!
0
)}
n
[
o
]
=
c
}
return
e
=
(
e
=
(
e
=
n
.
join
(
"
\n
"
)).
replace
(
/^
\n
+/g
,
""
)).
replace
(
/
\n
+$/g
,
""
),
t
.
converter
.
_dispatch
(
"makehtml.paragraphs.after"
,
e
,
r
,
t
).
getText
()}),
b
.
subParser
(
"makehtml.runExtension"
,
function
(
e
,
r
,
t
,
a
){
"use strict"
;
if
(
e
.
filter
)
r
=
e
.
filter
(
r
,
a
.
converter
,
t
);
else
if
(
e
.
regex
){
var
n
=
e
.
regex
;
n
instanceof
RegExp
||
(
n
=
new
RegExp
(
n
,
"g"
)),
r
=
r
.
replace
(
n
,
e
.
replace
)}
return
r
}),
b
.
subParser
(
"makehtml.spanGamut"
,
function
(
e
,
r
,
t
){
"use strict"
;
return
e
=
t
.
converter
.
_dispatch
(
"makehtml.span.before"
,
e
,
r
,
t
).
getText
(),
e
=
b
.
subParser
(
"makehtml.codeSpans"
)(
e
,
r
,
t
),
e
=
b
.
subParser
(
"makehtml.escapeSpecialCharsWithinTagAttributes"
)(
e
,
r
,
t
),
e
=
b
.
subParser
(
"makehtml.encodeBackslashEscapes"
)(
e
,
r
,
t
),
e
=
b
.
subParser
(
"makehtml.images"
)(
e
,
r
,
t
),
e
=
t
.
converter
.
_dispatch
(
"smakehtml.links.before"
,
e
,
r
,
t
).
getText
(),
e
=
b
.
subParser
(
"makehtml.links"
)(
e
,
r
,
t
),
e
=
t
.
converter
.
_dispatch
(
"smakehtml.links.after"
,
e
,
r
,
t
).
getText
(),
e
=
b
.
subParser
(
"makehtml.emoji"
)(
e
,
r
,
t
),
e
=
b
.
subParser
(
"makehtml.underline"
)(
e
,
r
,
t
),
e
=
b
.
subParser
(
"makehtml.italicsAndBold"
)(
e
,
r
,
t
),
e
=
b
.
subParser
(
"makehtml.strikethrough"
)(
e
,
r
,
t
),
e
=
b
.
subParser
(
"makehtml.ellipsis"
)(
e
,
r
,
t
),
e
=
b
.
subParser
(
"makehtml.hashHTMLSpans"
)(
e
,
r
,
t
),
e
=
b
.
subParser
(
"makehtml.encodeAmpsAndAngles"
)(
e
,
r
,
t
),
r
.
simpleLineBreaks
?
/
\n\n
¨K/
.
test
(
e
)
||
(
e
=
e
.
replace
(
/
\n
+/g
,
"<br />
\n
"
)):
e
=
e
.
replace
(
/ +
\n
/g
,
"<br />
\n
"
),
e
=
t
.
converter
.
_dispatch
(
"makehtml.spanGamut.after"
,
e
,
r
,
t
).
getText
()}),
b
.
subParser
(
"makehtml.strikethrough"
,
function
(
e
,
r
,
t
){
"use strict"
;
return
r
.
strikethrough
&&
(
e
=
(
e
=
t
.
converter
.
_dispatch
(
"makehtml.strikethrough.before"
,
e
,
r
,
t
).
getText
()).
replace
(
/
(?:
~
){2}([\s\S]
+
?)(?:
~
){2}
/g
,
function
(
e
,
r
){
return
"<del>"
+
r
+
"</del>"
}),
e
=
t
.
converter
.
_dispatch
(
"makehtml.strikethrough.after"
,
e
,
r
,
t
).
getText
()),
e
}),
b
.
subParser
(
"makehtml.stripLinkDefinitions"
,
function
(
e
,
i
,
l
){
"use strict"
;
var
r
=
function
(
e
,
r
,
t
,
a
,
n
,
s
,
o
){
return
r
=
r
.
toLowerCase
(),
t
.
match
(
/^data:.+
?\/
.+
?
;base64,/
)?
l
.
gUrls
[
r
]
=
t
.
replace
(
/
\s
/g
,
""
):
l
.
gUrls
[
r
]
=
b
.
subParser
(
"makehtml.encodeAmpsAndAngles"
)(
t
,
i
,
l
),
s
?
s
+
o
:(
o
&&
(
l
.
gTitles
[
r
]
=
o
.
replace
(
/"|'/g
,
"""
)),
i
.
parseImgDimensions
&&
a
&&
n
&&
(
l
.
gDimensions
[
r
]
=
{
width
:
a
,
height
:
n
}),
""
)};
return
e
=
(
e
=
(
e
=
(
e
+=
"¨0"
).
replace
(
/^
{0,3}\[(
.+
)
]:
[
\t]
*
\n?[
\t]
*<
?(
data:.+
?\/
.+
?
;base64,
[
A-Za-z0-9+
/
=
\n]
+
?)
>
?(?:
=
([
*
\d]
+
[
A-Za-z%
]{0,4})
x
([
*
\d]
+
[
A-Za-z%
]{0,4}))?[
\t]
*
\n?[
\t]
*
(?:(\n
*
)[
"|'(
](
.+
?)[
"|')
][
\t]
*
)?(?:\n\n
|
(?=
¨0
)
|
(?=\n\[))
/gm
,
r
)).
replace
(
/^
{0,3}\[(
.+
)
]:
[
\t]
*
\n?[
\t]
*<
?([^
>
\s]
+
)
>
?(?:
=
([
*
\d]
+
[
A-Za-z%
]{0,4})
x
([
*
\d]
+
[
A-Za-z%
]{0,4}))?[
\t]
*
\n?[
\t]
*
(?:(\n
*
)[
"|'(
](
.+
?)[
"|')
][
\t]
*
)?(?:\n
+|
(?=
¨0
))
/gm
,
r
)).
replace
(
/¨0/
,
""
)}),
b
.
subParser
(
"makehtml.tables"
,
function
(
e
,
_
,
f
){
"use strict"
;
if
(
!
_
.
tables
)
return
e
;
function
r
(
e
){
var
r
,
t
=
e
.
split
(
"
\n
"
);
for
(
r
=
0
;
r
<
t
.
length
;
++
r
)
/^
{
0
,
3
}
\
|
/.test
(
t
[
r
])
&&
(
t
[
r
]
=t
[
r
]
.replace
(
/
^
{
0
,
3
}
\
|
/,""
))
,/
\
|
[
\
t
]
*
$
/
.
test
(
t
[
r
])
&&
(
t
[
r
]
=
t
[
r
].
replace
(
/
\|[
\t]
*$/
,
""
)),
t
[
r
]
=
b
.
subParser
(
"makehtml.codeSpans"
)(
t
[
r
],
_
,
f
);
var
a
,
n
,
s
,
o
,
i
,
l
=
t
[
0
].
split
(
"|"
).
map
(
function
(
e
){
return
e
.
trim
()}),
c
=
t
[
1
].
split
(
"|"
).
map
(
function
(
e
){
return
e
.
trim
()}),
u
=
[],
h
=
[],
m
=
[],
d
=
[];
for
(
t
.
shift
(),
t
.
shift
(),
r
=
0
;
r
<
t
.
length
;
++
r
)
""
!==
t
[
r
].
trim
()
&&
u
.
push
(
t
[
r
].
split
(
"|"
).
map
(
function
(
e
){
return
e
.
trim
()}));
if
(
l
.
length
<
c
.
length
)
return
e
;
for
(
r
=
0
;
r
<
c
.
length
;
++
r
)
m
.
push
((
a
=
c
[
r
],
/^:
[
\t]
*--*$/
.
test
(
a
)?
' style="text-align:left;"'
:
/^--*
[
\t]
*:
[
\t]
*$/
.
test
(
a
)?
' style="text-align:right;"'
:
/^:
[
\t]
*--*
[
\t]
*:$/
.
test
(
a
)?
' style="text-align:center;"'
:
""
));
for
(
r
=
0
;
r
<
l
.
length
;
++
r
)
b
.
helper
.
isUndefined
(
m
[
r
])
&&
(
m
[
r
]
=
""
),
h
.
push
((
n
=
l
[
r
],
s
=
m
[
r
],
o
=
void
0
,
o
=
""
,
n
=
n
.
trim
(),(
_
.
tablesHeaderId
||
_
.
tableHeaderId
)
&&
(
o
=
' id="'
+
n
.
replace
(
/ /g
,
"_"
).
toLowerCase
()
+
'"'
),
"<th"
+
o
+
s
+
">"
+
(
n
=
b
.
subParser
(
"makehtml.spanGamut"
)(
n
,
_
,
f
))
+
"</th>
\n
"
));
for
(
r
=
0
;
r
<
u
.
length
;
++
r
){
for
(
var
p
=
[],
g
=
0
;
g
<
h
.
length
;
++
g
)
b
.
helper
.
isUndefined
(
u
[
r
][
g
]),
p
.
push
((
i
=
u
[
r
][
g
],
"<td"
+
m
[
g
]
+
">"
+
b
.
subParser
(
"makehtml.spanGamut"
)(
i
,
_
,
f
)
+
"</td>
\n
"
));
d
.
push
(
p
)}
return
function
(
e
,
r
){
for
(
var
t
=
"<table>
\n
<thead>
\n
<tr>
\n
"
,
a
=
e
.
length
,
n
=
0
;
n
<
a
;
++
n
)
t
+=
e
[
n
];
for
(
t
+=
"</tr>
\n
</thead>
\n
<tbody>
\n
"
,
n
=
0
;
n
<
r
.
length
;
++
n
){
t
+=
"<tr>
\n
"
;
for
(
var
s
=
0
;
s
<
a
;
++
s
)
t
+=
r
[
n
][
s
];
t
+=
"</tr>
\n
"
}
return
t
+=
"</tbody>
\n
</table>
\n
"
}(
h
,
d
)}
return
e
=
(
e
=
(
e
=
(
e
=
f
.
converter
.
_dispatch
(
"makehtml.tables.before"
,
e
,
_
,
f
).
getText
()).
replace
(
/
\\(\|)
/g
,
b
.
helper
.
escapeCharactersCallback
)).
replace
(
/^
{0,3}\|?
.+
\|
.+
\n
{0,3}\|?[
\t]
*:
?[
\t]
*
(?:[
-=
]){2,}[
\t]
*:
?[
\t]
*
\|[
\t]
*:
?[
\t]
*
(?:[
-=
]){2,}[\s\S]
+
?(?:\n\n
|¨0
)
/gm
,
r
)).
replace
(
/^
{0,3}\|
.+
\|[
\t]
*
\n
{0,3}\|[
\t]
*:
?[
\t]
*
(?:[
-=
]){2,}[
\t]
*:
?[
\t]
*
\|[
\t]
*
\n(
{0,3}\|
.+
\|[
\t]
*
\n)
*
(?:\n
|¨0
)
/gm
,
r
),
e
=
f
.
converter
.
_dispatch
(
"makehtml.tables.after"
,
e
,
_
,
f
).
getText
()}),
b
.
subParser
(
"makehtml.underline"
,
function
(
e
,
r
,
t
){
"use strict"
;
return
r
.
underline
?(
e
=
t
.
converter
.
_dispatch
(
"makehtml.underline.before"
,
e
,
r
,
t
).
getText
(),
e
=
(
e
=
r
.
literalMidWordUnderscores
?(
e
=
e
.
replace
(
/
\b
___
(\S[\s\S]
*
?)
___
\b
/g
,
function
(
e
,
r
){
return
"<u>"
+
r
+
"</u>"
})).
replace
(
/
\b
__
(\S[\s\S]
*
?)
__
\b
/g
,
function
(
e
,
r
){
return
"<u>"
+
r
+
"</u>"
}):(
e
=
e
.
replace
(
/___
(\S[\s\S]
*
?)
___/g
,
function
(
e
,
r
){
return
/
\S
$/
.
test
(
r
)?
"<u>"
+
r
+
"</u>"
:
e
})).
replace
(
/__
(\S[\s\S]
*
?)
__/g
,
function
(
e
,
r
){
return
/
\S
$/
.
test
(
r
)?
"<u>"
+
r
+
"</u>"
:
e
})).
replace
(
/
(
_
)
/g
,
b
.
helper
.
escapeCharactersCallback
),
e
=
t
.
converter
.
_dispatch
(
"makehtml.underline.after"
,
e
,
r
,
t
).
getText
()):
e
}),
b
.
subParser
(
"makehtml.unescapeSpecialChars"
,
function
(
e
,
r
,
t
){
"use strict"
;
return
e
=
(
e
=
t
.
converter
.
_dispatch
(
"makehtml.unescapeSpecialChars.before"
,
e
,
r
,
t
).
getText
()).
replace
(
/¨E
(\d
+
)
E/g
,
function
(
e
,
r
){
var
t
=
parseInt
(
r
);
return
String
.
fromCharCode
(
t
)}),
e
=
t
.
converter
.
_dispatch
(
"makehtml.unescapeSpecialChars.after"
,
e
,
r
,
t
).
getText
()}),
b
.
subParser
(
"makeMarkdown.blockquote"
,
function
(
e
,
r
){
"use strict"
;
var
t
=
""
;
if
(
e
.
hasChildNodes
())
for
(
var
a
=
e
.
childNodes
,
n
=
a
.
length
,
s
=
0
;
s
<
n
;
++
s
){
var
o
=
b
.
subParser
(
"makeMarkdown.node"
)(
a
[
s
],
r
);
""
!==
o
&&
(
t
+=
o
)}
return
t
=
"> "
+
(
t
=
t
.
trim
()).
split
(
"
\n
"
).
join
(
"
\n
> "
)}),
b
.
subParser
(
"makeMarkdown.codeBlock"
,
function
(
e
,
r
){
"use strict"
;
var
t
=
e
.
getAttribute
(
"language"
),
a
=
e
.
getAttribute
(
"precodenum"
);
return
"```"
+
t
+
"
\n
"
+
r
.
preList
[
a
]
+
"
\n
```"
}),
b
.
subParser
(
"makeMarkdown.codeSpan"
,
function
(
e
){
"use strict"
;
return
"`"
+
e
.
innerHTML
+
"`"
}),
b
.
subParser
(
"makeMarkdown.emphasis"
,
function
(
e
,
r
){
"use strict"
;
var
t
=
""
;
if
(
e
.
hasChildNodes
()){
t
+=
"*"
;
for
(
var
a
=
e
.
childNodes
,
n
=
a
.
length
,
s
=
0
;
s
<
n
;
++
s
)
t
+=
b
.
subParser
(
"makeMarkdown.node"
)(
a
[
s
],
r
);
t
+=
"*"
}
return
t
}),
b
.
subParser
(
"makeMarkdown.header"
,
function
(
e
,
r
,
t
){
"use strict"
;
var
a
=
new
Array
(
t
+
1
).
join
(
"#"
),
n
=
""
;
if
(
e
.
hasChildNodes
()){
n
=
a
+
" "
;
for
(
var
s
=
e
.
childNodes
,
o
=
s
.
length
,
i
=
0
;
i
<
o
;
++
i
)
n
+=
b
.
subParser
(
"makeMarkdown.node"
)(
s
[
i
],
r
)}
return
n
}),
b
.
subParser
(
"makeMarkdown.hr"
,
function
(){
"use strict"
;
return
"---"
}),
b
.
subParser
(
"makeMarkdown.image"
,
function
(
e
){
"use strict"
;
var
r
=
""
;
return
e
.
hasAttribute
(
"src"
)
&&
(
r
+=
"!["
+
e
.
getAttribute
(
"alt"
)
+
"]("
,
r
+=
"<"
+
e
.
getAttribute
(
"src"
)
+
">"
,
e
.
hasAttribute
(
"width"
)
&&
e
.
hasAttribute
(
"height"
)
&&
(
r
+=
" ="
+
e
.
getAttribute
(
"width"
)
+
"x"
+
e
.
getAttribute
(
"height"
)),
e
.
hasAttribute
(
"title"
)
&&
(
r
+=
' "'
+
e
.
getAttribute
(
"title"
)
+
'"'
),
r
+=
")"
),
r
}),
b
.
subParser
(
"makeMarkdown.links"
,
function
(
e
,
r
){
"use strict"
;
var
t
=
""
;
if
(
e
.
hasChildNodes
()
&&
e
.
hasAttribute
(
"href"
)){
var
a
=
e
.
childNodes
,
n
=
a
.
length
;
t
=
"["
;
for
(
var
s
=
0
;
s
<
n
;
++
s
)
t
+=
b
.
subParser
(
"makeMarkdown.node"
)(
a
[
s
],
r
);
t
+=
"]("
,
t
+=
"<"
+
e
.
getAttribute
(
"href"
)
+
">"
,
e
.
hasAttribute
(
"title"
)
&&
(
t
+=
' "'
+
e
.
getAttribute
(
"title"
)
+
'"'
),
t
+=
")"
}
return
t
}),
b
.
subParser
(
"makeMarkdown.list"
,
function
(
e
,
r
,
t
){
"use strict"
;
var
a
=
""
;
if
(
!
e
.
hasChildNodes
())
return
""
;
for
(
var
n
=
e
.
childNodes
,
s
=
n
.
length
,
o
=
e
.
getAttribute
(
"start"
)
||
1
,
i
=
0
;
i
<
s
;
++
i
)
if
(
void
0
!==
n
[
i
].
tagName
&&
"li"
===
n
[
i
].
tagName
.
toLowerCase
()){
a
+=
(
"ol"
===
t
?
o
.
toString
()
+
". "
:
"- "
)
+
b
.
subParser
(
"makeMarkdown.listItem"
)(
n
[
i
],
r
),
++
o
}
return
a
.
trim
()}),
b
.
subParser
(
"makeMarkdown.listItem"
,
function
(
e
,
r
){
"use strict"
;
for
(
var
t
=
""
,
a
=
e
.
childNodes
,
n
=
a
.
length
,
s
=
0
;
s
<
n
;
++
s
)
t
+=
b
.
subParser
(
"makeMarkdown.node"
)(
a
[
s
],
r
);
return
/
\n
$/
.
test
(
t
)?
t
=
t
.
split
(
"
\n
"
).
join
(
"
\n
"
).
replace
(
/^
{4}
$/gm
,
""
).
replace
(
/
\n\n
+/g
,
"
\n\n
"
):
t
+=
"
\n
"
,
t
}),
b
.
subParser
(
"makeMarkdown.node"
,
function
(
e
,
r
,
t
){
"use strict"
;
t
=
t
||!
1
;
var
a
=
""
;
if
(
3
===
e
.
nodeType
)
return
b
.
subParser
(
"makeMarkdown.txt"
)(
e
,
r
);
if
(
8
===
e
.
nodeType
)
return
"
\
x3c!--"
+
e
.
data
+
"--
\
x3e
\n\n
"
;
if
(
1
!==
e
.
nodeType
)
return
""
;
switch
(
e
.
tagName
.
toLowerCase
()){
case
"h1"
:
t
||
(
a
=
b
.
subParser
(
"makeMarkdown.header"
)(
e
,
r
,
1
)
+
"
\n\n
"
);
break
;
case
"h2"
:
t
||
(
a
=
b
.
subParser
(
"makeMarkdown.header"
)(
e
,
r
,
2
)
+
"
\n\n
"
);
break
;
case
"h3"
:
t
||
(
a
=
b
.
subParser
(
"makeMarkdown.header"
)(
e
,
r
,
3
)
+
"
\n\n
"
);
break
;
case
"h4"
:
t
||
(
a
=
b
.
subParser
(
"makeMarkdown.header"
)(
e
,
r
,
4
)
+
"
\n\n
"
);
break
;
case
"h5"
:
t
||
(
a
=
b
.
subParser
(
"makeMarkdown.header"
)(
e
,
r
,
5
)
+
"
\n\n
"
);
break
;
case
"h6"
:
t
||
(
a
=
b
.
subParser
(
"makeMarkdown.header"
)(
e
,
r
,
6
)
+
"
\n\n
"
);
break
;
case
"p"
:
t
||
(
a
=
b
.
subParser
(
"makeMarkdown.paragraph"
)(
e
,
r
)
+
"
\n\n
"
);
break
;
case
"blockquote"
:
t
||
(
a
=
b
.
subParser
(
"makeMarkdown.blockquote"
)(
e
,
r
)
+
"
\n\n
"
);
break
;
case
"hr"
:
t
||
(
a
=
b
.
subParser
(
"makeMarkdown.hr"
)(
e
,
r
)
+
"
\n\n
"
);
break
;
case
"ol"
:
t
||
(
a
=
b
.
subParser
(
"makeMarkdown.list"
)(
e
,
r
,
"ol"
)
+
"
\n\n
"
);
break
;
case
"ul"
:
t
||
(
a
=
b
.
subParser
(
"makeMarkdown.list"
)(
e
,
r
,
"ul"
)
+
"
\n\n
"
);
break
;
case
"precode"
:
t
||
(
a
=
b
.
subParser
(
"makeMarkdown.codeBlock"
)(
e
,
r
)
+
"
\n\n
"
);
break
;
case
"pre"
:
t
||
(
a
=
b
.
subParser
(
"makeMarkdown.pre"
)(
e
,
r
)
+
"
\n\n
"
);
break
;
case
"table"
:
t
||
(
a
=
b
.
subParser
(
"makeMarkdown.table"
)(
e
,
r
)
+
"
\n\n
"
);
break
;
case
"code"
:
a
=
b
.
subParser
(
"makeMarkdown.codeSpan"
)(
e
,
r
);
break
;
case
"em"
:
case
"i"
:
a
=
b
.
subParser
(
"makeMarkdown.emphasis"
)(
e
,
r
);
break
;
case
"strong"
:
case
"b"
:
a
=
b
.
subParser
(
"makeMarkdown.strong"
)(
e
,
r
);
break
;
case
"del"
:
a
=
b
.
subParser
(
"makeMarkdown.strikethrough"
)(
e
,
r
);
break
;
case
"a"
:
a
=
b
.
subParser
(
"makeMarkdown.links"
)(
e
,
r
);
break
;
case
"img"
:
a
=
b
.
subParser
(
"makeMarkdown.image"
)(
e
,
r
);
break
;
default
:
a
=
e
.
outerHTML
+
"
\n\n
"
}
return
a
}),
b
.
subParser
(
"makeMarkdown.paragraph"
,
function
(
e
,
r
){
"use strict"
;
var
t
=
""
;
if
(
e
.
hasChildNodes
())
for
(
var
a
=
e
.
childNodes
,
n
=
a
.
length
,
s
=
0
;
s
<
n
;
++
s
)
t
+=
b
.
subParser
(
"makeMarkdown.node"
)(
a
[
s
],
r
);
return
t
=
t
.
trim
()}),
b
.
subParser
(
"makeMarkdown.pre"
,
function
(
e
,
r
){
"use strict"
;
var
t
=
e
.
getAttribute
(
"prenum"
);
return
"<pre>"
+
r
.
preList
[
t
]
+
"</pre>"
}),
b
.
subParser
(
"makeMarkdown.strikethrough"
,
function
(
e
,
r
){
"use strict"
;
var
t
=
""
;
if
(
e
.
hasChildNodes
()){
t
+=
"~~"
;
for
(
var
a
=
e
.
childNodes
,
n
=
a
.
length
,
s
=
0
;
s
<
n
;
++
s
)
t
+=
b
.
subParser
(
"makeMarkdown.node"
)(
a
[
s
],
r
);
t
+=
"~~"
}
return
t
}),
b
.
subParser
(
"makeMarkdown.strong"
,
function
(
e
,
r
){
"use strict"
;
var
t
=
""
;
if
(
e
.
hasChildNodes
()){
t
+=
"**"
;
for
(
var
a
=
e
.
childNodes
,
n
=
a
.
length
,
s
=
0
;
s
<
n
;
++
s
)
t
+=
b
.
subParser
(
"makeMarkdown.node"
)(
a
[
s
],
r
);
t
+=
"**"
}
return
t
}),
b
.
subParser
(
"makeMarkdown.table"
,
function
(
e
,
r
){
"use strict"
;
var
t
,
a
,
n
=
""
,
s
=
[[],[]],
o
=
e
.
querySelectorAll
(
"thead>tr>th"
),
i
=
e
.
querySelectorAll
(
"tbody>tr"
);
for
(
t
=
0
;
t
<
o
.
length
;
++
t
){
var
l
=
b
.
subParser
(
"makeMarkdown.tableCell"
)(
o
[
t
],
r
),
c
=
"---"
;
if
(
o
[
t
].
hasAttribute
(
"style"
))
switch
(
o
[
t
].
getAttribute
(
"style"
).
toLowerCase
().
replace
(
/
\s
/g
,
""
)){
case
"text-align:left;"
:
c
=
":---"
;
break
;
case
"text-align:right;"
:
c
=
"---:"
;
break
;
case
"text-align:center;"
:
c
=
":---:"
}
s
[
0
][
t
]
=
l
.
trim
(),
s
[
1
][
t
]
=
c
}
for
(
t
=
0
;
t
<
i
.
length
;
++
t
){
var
u
=
s
.
push
([])
-
1
,
h
=
i
[
t
].
getElementsByTagName
(
"td"
);
for
(
a
=
0
;
a
<
o
.
length
;
++
a
){
var
m
=
" "
;
void
0
!==
h
[
a
]
&&
(
m
=
b
.
subParser
(
"makeMarkdown.tableCell"
)(
h
[
a
],
r
)),
s
[
u
].
push
(
m
)}}
var
d
=
3
;
for
(
t
=
0
;
t
<
s
.
length
;
++
t
)
for
(
a
=
0
;
a
<
s
[
t
].
length
;
++
a
){
var
p
=
s
[
t
][
a
].
length
;
d
<
p
&&
(
d
=
p
)}
for
(
t
=
0
;
t
<
s
.
length
;
++
t
){
for
(
a
=
0
;
a
<
s
[
t
].
length
;
++
a
)
1
===
t
?
":"
===
s
[
t
][
a
].
slice
(
-
1
)?
s
[
t
][
a
]
=
b
.
helper
.
padEnd
(
s
[
t
][
a
].
slice
(
-
1
),
d
-
1
,
"-"
)
+
":"
:
s
[
t
][
a
]
=
b
.
helper
.
padEnd
(
s
[
t
][
a
],
d
,
"-"
):
s
[
t
][
a
]
=
b
.
helper
.
padEnd
(
s
[
t
][
a
],
d
);
n
+=
"| "
+
s
[
t
].
join
(
" | "
)
+
" |
\n
"
}
return
n
.
trim
()}),
b
.
subParser
(
"makeMarkdown.tableCell"
,
function
(
e
,
r
){
"use strict"
;
var
t
=
""
;
if
(
!
e
.
hasChildNodes
())
return
""
;
for
(
var
a
=
e
.
childNodes
,
n
=
a
.
length
,
s
=
0
;
s
<
n
;
++
s
)
t
+=
b
.
subParser
(
"makeMarkdown.node"
)(
a
[
s
],
r
,
!
0
);
return
t
.
trim
()}),
b
.
subParser
(
"makeMarkdown.txt"
,
function
(
e
){
"use strict"
;
var
r
=
e
.
nodeValue
;
return
r
=
(
r
=
r
.
replace
(
/ +/g
,
" "
)).
replace
(
/¨NBSP;/g
,
" "
),
r
=
(
r
=
(
r
=
(
r
=
(
r
=
(
r
=
(
r
=
(
r
=
(
r
=
b
.
helper
.
unescapeHTMLEntities
(
r
)).
replace
(
/
([
*_~|`
])
/g
,
"
\\
$1"
)).
replace
(
/^
(\s
*
)
>/g
,
"
\\
$1>"
)).
replace
(
/^#/gm
,
"
\\
#"
)).
replace
(
/^
(\s
*
)([
-=
]{3,})(\s
*
)
$/
,
"$1
\\
$2$3"
)).
replace
(
/^
(
{0,3}\d
+
)\.
/gm
,
"$1
\\
."
)).
replace
(
/^
(
{0,3})([
+-
])
/gm
,
"$1
\\
$2"
)).
replace
(
/]
([\s]
*
)\(
/g
,
"
\\
]$1
\\
("
)).
replace
(
/^
{0,3}\[([\S
\t]
*
?)
]:/gm
,
"
\\
[$1]:"
)}),
b
.
Converter
=
function
(
t
){
"use strict"
;
var
s
=
{},
o
=
[],
i
=
[],
c
=
{},
a
=
d
,
l
=
{
parsed
:{},
raw
:
""
,
format
:
""
};
function
n
(
e
,
r
){
if
(
r
=
r
||
null
,
b
.
helper
.
isString
(
e
)){
if
(
r
=
e
=
b
.
helper
.
stdExtName
(
e
),
b
.
extensions
[
e
])
return
console
.
warn
(
"DEPRECATION WARNING: "
+
e
+
" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"
),
void
function
(
e
,
r
){
"function"
==
typeof
e
&&
(
e
=
e
(
new
b
.
Converter
));
b
.
helper
.
isArray
(
e
)
||
(
e
=
[
e
]);
var
t
=
g
(
e
,
r
);
if
(
!
t
.
valid
)
throw
Error
(
t
.
error
);
for
(
var
a
=
0
;
a
<
e
.
length
;
++
a
)
switch
(
e
[
a
].
type
){
case
"lang"
:
o
.
push
(
e
[
a
]);
break
;
case
"output"
:
i
.
push
(
e
[
a
]);
break
;
default
:
throw
Error
(
"Extension loader error: Type unrecognized!!!"
)}}(
b
.
extensions
[
e
],
e
);
if
(
b
.
helper
.
isUndefined
(
h
[
e
]))
throw
Error
(
'Extension "'
+
e
+
'" could not be loaded. It was either not found or is not a valid extension.'
);
e
=
h
[
e
]}
"function"
==
typeof
e
&&
(
e
=
e
()),
b
.
helper
.
isArray
(
e
)
||
(
e
=
[
e
]);
var
t
=
g
(
e
,
r
);
if
(
!
t
.
valid
)
throw
Error
(
t
.
error
);
for
(
var
a
=
0
;
a
<
e
.
length
;
++
a
){
switch
(
e
[
a
].
type
){
case
"lang"
:
o
.
push
(
e
[
a
]);
break
;
case
"output"
:
i
.
push
(
e
[
a
])}
if
(
e
[
a
].
hasOwnProperty
(
"listeners"
))
for
(
var
n
in
e
[
a
].
listeners
)
e
[
a
].
listeners
.
hasOwnProperty
(
n
)
&&
u
(
n
,
e
[
a
].
listeners
[
n
])}}
function
u
(
e
,
r
){
if
(
!
b
.
helper
.
isString
(
e
))
throw
Error
(
"Invalid argument in converter.listen() method: name must be a string, but "
+
typeof
e
+
" given"
);
if
(
"function"
!=
typeof
r
)
throw
Error
(
"Invalid argument in converter.listen() method: callback must be a function, but "
+
typeof
r
+
" given"
);
e
=
e
.
toLowerCase
(),
c
.
hasOwnProperty
(
e
)
||
(
c
[
e
]
=
[]),
c
[
e
].
push
(
r
)}
!
function
(){
for
(
var
e
in
t
=
t
||
{},
m
)
m
.
hasOwnProperty
(
e
)
&&
(
s
[
e
]
=
m
[
e
]);{
if
(
"object"
!=
typeof
t
)
throw
Error
(
"Converter expects the passed parameter to be an object, but "
+
typeof
t
+
" was passed instead."
);
for
(
var
r
in
t
)
t
.
hasOwnProperty
(
r
)
&&
(
s
[
r
]
=
t
[
r
])}
s
.
extensions
&&
b
.
helper
.
forEach
(
s
.
extensions
,
n
)}(),
this
.
_dispatch
=
function
(
e
,
r
,
t
,
a
,
n
){
e
=
e
.
toLowerCase
();
var
s
=
n
||
{};
s
.
converter
=
this
,
s
.
text
=
r
,
s
.
options
=
t
,
s
.
globals
=
a
;
var
o
=
new
b
.
helper
.
Event
(
e
,
r
,
s
);
if
(
c
.
hasOwnProperty
(
e
))
for
(
var
i
=
0
;
i
<
c
[
e
].
length
;
++
i
){
var
l
=
c
[
e
][
i
](
o
);
l
&&
void
0
!==
l
&&
o
.
setText
(
l
)}
return
o
},
this
.
listen
=
function
(
e
,
r
){
return
u
(
e
,
r
),
this
},
this
.
makeHtml
=
function
(
r
){
if
(
!
r
)
return
r
;
var
e
,
t
,
a
,
n
=
{
gHtmlBlocks
:[],
gHtmlMdBlocks
:[],
gHtmlSpans
:[],
gUrls
:{},
gTitles
:{},
gDimensions
:{},
gListLevel
:
0
,
hashLinkCounts
:{},
langExtensions
:
o
,
outputModifiers
:
i
,
converter
:
this
,
ghCodeBlocks
:[],
metadata
:{
parsed
:{},
raw
:
""
,
format
:
""
}};
return
r
=
(
r
=
(
r
=
(
r
=
(
r
=
r
.
replace
(
/¨/g
,
"¨T"
)).
replace
(
/
\$
/g
,
"¨D"
)).
replace
(
/
\r\n
/g
,
"
\n
"
)).
replace
(
/
\r
/g
,
"
\n
"
)).
replace
(
/
\u
00A0/g
,
" "
),
s
.
smartIndentationFix
&&
(
t
=
(
e
=
r
).
match
(
/^
\s
*/
)[
0
].
length
,
a
=
new
RegExp
(
"^
\\
s{0,"
+
t
+
"}"
,
"gm"
),
r
=
e
.
replace
(
a
,
""
)),
r
=
"
\n\n
"
+
r
+
"
\n\n
"
,
r
=
(
r
=
b
.
subParser
(
"makehtml.detab"
)(
r
,
s
,
n
)).
replace
(
/^
[
\t]
+$/gm
,
""
),
b
.
helper
.
forEach
(
o
,
function
(
e
){
r
=
b
.
subParser
(
"makehtml.runExtension"
)(
e
,
r
,
s
,
n
)}),
r
=
b
.
subParser
(
"makehtml.metadata"
)(
r
,
s
,
n
),
r
=
b
.
subParser
(
"makehtml.hashPreCodeTags"
)(
r
,
s
,
n
),
r
=
b
.
subParser
(
"makehtml.githubCodeBlocks"
)(
r
,
s
,
n
),
r
=
b
.
subParser
(
"makehtml.hashHTMLBlocks"
)(
r
,
s
,
n
),
r
=
b
.
subParser
(
"makehtml.hashCodeTags"
)(
r
,
s
,
n
),
r
=
b
.
subParser
(
"makehtml.stripLinkDefinitions"
)(
r
,
s
,
n
),
r
=
b
.
subParser
(
"makehtml.blockGamut"
)(
r
,
s
,
n
),
r
=
b
.
subParser
(
"makehtml.unhashHTMLSpans"
)(
r
,
s
,
n
),
r
=
(
r
=
(
r
=
b
.
subParser
(
"makehtml.unescapeSpecialChars"
)(
r
,
s
,
n
)).
replace
(
/¨D/g
,
"$$"
)).
replace
(
/¨T/g
,
"¨"
),
r
=
b
.
subParser
(
"makehtml.completeHTMLDocument"
)(
r
,
s
,
n
),
b
.
helper
.
forEach
(
i
,
function
(
e
){
r
=
b
.
subParser
(
"makehtml.runExtension"
)(
e
,
r
,
s
,
n
)}),
l
=
n
.
metadata
,
r
},
this
.
makeMarkdown
=
function
(
e
){
e
=
(
e
=
(
e
=
e
.
replace
(
/
\r\n
/g
,
"
\n
"
)).
replace
(
/
\r
/g
,
"
\n
"
)).
replace
(
/>
[
\t]
+</
,
">¨NBSP;<"
);
var
r
=
b
.
helper
.
document
.
createElement
(
"div"
);
r
.
innerHTML
=
e
;
var
t
=
{
preList
:
function
(
e
){
for
(
var
r
=
e
.
querySelectorAll
(
"pre"
),
t
=
[],
a
=
0
;
a
<
r
.
length
;
++
a
)
if
(
1
===
r
[
a
].
childElementCount
&&
"code"
===
r
[
a
].
firstChild
.
tagName
.
toLowerCase
()){
var
n
=
r
[
a
].
firstChild
.
innerHTML
.
trim
(),
s
=
r
[
a
].
firstChild
.
getAttribute
(
"data-language"
)
||
""
;
if
(
""
===
s
)
for
(
var
o
=
r
[
a
].
firstChild
.
className
.
split
(
" "
),
i
=
0
;
i
<
o
.
length
;
++
i
){
var
l
=
o
[
i
].
match
(
/^language-
(
.+
)
$/
);
if
(
null
!==
l
){
s
=
l
[
1
];
break
}}
n
=
b
.
helper
.
unescapeHTMLEntities
(
n
),
t
.
push
(
n
),
r
[
a
].
outerHTML
=
'<precode language="'
+
s
+
'" precodenum="'
+
a
.
toString
()
+
'"></precode>'
}
else
t
.
push
(
r
[
a
].
innerHTML
),
r
[
a
].
innerHTML
=
""
,
r
[
a
].
setAttribute
(
"prenum"
,
a
.
toString
());
return
t
}(
r
)};
!
function
e
(
r
){
for
(
var
t
=
0
;
t
<
r
.
childNodes
.
length
;
++
t
){
var
a
=
r
.
childNodes
[
t
];
3
===
a
.
nodeType
?
/
\S
/
.
test
(
a
.
nodeValue
)?(
a
.
nodeValue
=
a
.
nodeValue
.
split
(
"
\n
"
).
join
(
" "
),
a
.
nodeValue
=
a
.
nodeValue
.
replace
(
/
(\s)
+/g
,
"$1"
)):(
r
.
removeChild
(
a
),
--
t
):
1
===
a
.
nodeType
&&
e
(
a
)}}(
r
);
for
(
var
a
=
r
.
childNodes
,
n
=
""
,
s
=
0
;
s
<
a
.
length
;
s
++
)
n
+=
b
.
subParser
(
"makeMarkdown.node"
)(
a
[
s
],
t
);
return
n
},
this
.
setOption
=
function
(
e
,
r
){
s
[
e
]
=
r
},
this
.
getOption
=
function
(
e
){
return
s
[
e
]},
this
.
getOptions
=
function
(){
return
s
},
this
.
addExtension
=
function
(
e
,
r
){
n
(
e
,
r
=
r
||
null
)},
this
.
useExtension
=
function
(
e
){
n
(
e
)},
this
.
setFlavor
=
function
(
e
){
if
(
!
p
.
hasOwnProperty
(
e
))
throw
Error
(
e
+
" flavor was not found"
);
var
r
=
p
[
e
];
for
(
var
t
in
a
=
e
,
r
)
r
.
hasOwnProperty
(
t
)
&&
(
s
[
t
]
=
r
[
t
])},
this
.
getFlavor
=
function
(){
return
a
},
this
.
removeExtension
=
function
(
e
){
b
.
helper
.
isArray
(
e
)
||
(
e
=
[
e
]);
for
(
var
r
=
0
;
r
<
e
.
length
;
++
r
){
for
(
var
t
=
e
[
r
],
a
=
0
;
a
<
o
.
length
;
++
a
)
o
[
a
]
===
t
&&
o
[
a
].
splice
(
a
,
1
);
for
(;
0
<
i
.
length
;
++
a
)
i
[
0
]
===
t
&&
i
[
0
].
splice
(
a
,
1
)}},
this
.
getAllExtensions
=
function
(){
return
{
language
:
o
,
output
:
i
}},
this
.
getMetadata
=
function
(
e
){
return
e
?
l
.
raw
:
l
.
parsed
},
this
.
getMetadataFormat
=
function
(){
return
l
.
format
},
this
.
_setMetadataPair
=
function
(
e
,
r
){
l
.
parsed
[
e
]
=
r
},
this
.
_setMetadataFormat
=
function
(
e
){
l
.
format
=
e
},
this
.
_setMetadataRaw
=
function
(
e
){
l
.
raw
=
e
}};
"function"
==
typeof
define
&&
define
.
amd
?
define
(
function
(){
"use strict"
;
return
b
}):
"undefined"
!=
typeof
module
&&
module
.
exports
?
module
.
exports
=
b
:
this
.
showdown
=
b
}).
call
(
this
);
//# sourceMappingURL=showdown.min.js.map
public/html/src/assets/js/ddLogin.js
View file @
17c6ddb3
...
@@ -28,7 +28,7 @@ export default {
...
@@ -28,7 +28,7 @@ export default {
dd
.
runtime
.
permission
.
requestAuthCode
({
dd
.
runtime
.
permission
.
requestAuthCode
({
corpId
:
data
.
corpId
,
// 企业id
corpId
:
data
.
corpId
,
// 企业id
onSuccess
:
function
(
info
)
{
onSuccess
:
function
(
info
)
{
alert
(
111
)
alert
(
JSON
.
stringify
(
info
)
)
// code = info.code // 通过该免登授权码可以获取用户身份
// code = info.code // 通过该免登授权码可以获取用户身份
_this
.
getSsoToken
(
info
.
code
);
_this
.
getSsoToken
(
info
.
code
);
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment