23 lines
860 KiB
JavaScript
23 lines
860 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-089036cc"],{"0010":function(e,t,n){"use strict";n.d(t,"a",(function(){return R})),n.d(t,"b",(function(){return S})),n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return T})),n.d(t,"i",(function(){return O})),n.d(t,"j",(function(){return C}));var a=n("0ac0"),l=n("304a"),o=n("5313");function r(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)}function i(e,t,n){var l=e.selection,r=l.$cursor;if(!r||(n?!n.endOfTextblock("backward",e):r.parentOffset>0))return!1;var i=s(r);if(!i){var u=r.blockRange(),d=u&&Object(a["k"])(u);return null!=d&&(t&&t(e.tr.lift(u,d).scrollIntoView()),!0)}var p=i.nodeBefore;if(!p.type.spec.isolating&&x(e,i,t))return!0;if(0==r.parent.content.size&&(c(p,"end")||o["c"].isSelectable(p))){if(t){var h=e.tr.deleteRange(r.before(),r.after());h.setSelection(c(p,"end")?o["f"].findFrom(h.doc.resolve(h.mapping.map(i.pos,-1)),-1):o["c"].create(h.doc,i.pos-p.nodeSize)),t(h.scrollIntoView())}return!0}return!(!p.isAtom||i.depth!=r.depth-1)&&(t&&t(e.tr.delete(i.pos-p.nodeSize,i.pos).scrollIntoView()),!0)}function c(e,t,n){for(;e;e="start"==t?e.firstChild:e.lastChild){if(e.isTextblock)return!0;if(n&&1!=e.childCount)return!1}return!1}function u(e,t,n){var a=e.selection,l=a.$head,r=a.empty,i=l;if(!r)return!1;if(l.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):l.parentOffset>0)return!1;i=s(l)}var c=i&&i.nodeBefore;return!(!c||!o["c"].isSelectable(c))&&(t&&t(e.tr.setSelection(o["c"].create(e.doc,i.pos-c.nodeSize)).scrollIntoView()),!0)}function s(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function d(e,t,n){var a=e.selection,l=a.$cursor;if(!l||(n?!n.endOfTextblock("forward",e):l.parentOffset<l.parent.content.size))return!1;var r=h(l);if(!r)return!1;var i=r.nodeAfter;if(x(e,r,t))return!0;if(0==l.parent.content.size&&(c(i,"start")||o["c"].isSelectable(i))){if(t){var u=e.tr.deleteRange(l.before(),l.after());u.setSelection(c(i,"start")?o["f"].findFrom(u.doc.resolve(u.mapping.map(r.pos)),1):o["c"].create(u.doc,u.mapping.map(r.pos))),t(u.scrollIntoView())}return!0}return!(!i.isAtom||r.depth!=l.depth-1)&&(t&&t(e.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),!0)}function p(e,t,n){var a=e.selection,l=a.$head,r=a.empty,i=l;if(!r)return!1;if(l.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):l.parentOffset<l.parent.content.size)return!1;i=h(l)}var c=i&&i.nodeAfter;return!(!c||!o["c"].isSelectable(c))&&(t&&t(e.tr.setSelection(o["c"].create(e.doc,i.pos)).scrollIntoView()),!0)}function h(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){var n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}function f(e,t){var n=e.selection,a=n.$head,l=n.$anchor;return!(!a.parent.type.spec.code||!a.sameParent(l))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)}function m(e){for(var t=0;t<e.edgeCount;t++){var n=e.edge(t),a=n.type;if(a.isTextblock&&!a.hasRequiredAttrs())return a}return null}function v(e,t){var n=e.selection,a=n.$head,l=n.$anchor;if(!a.parent.type.spec.code||!a.sameParent(l))return!1;var r=a.node(-1),i=a.indexAfter(-1),c=m(r.contentMatchAt(i));if(!r.canReplaceWith(i,i,c))return!1;if(t){var u=a.after(),s=e.tr.replaceWith(u,u,c.createAndFill());s.setSelection(o["f"].near(s.doc.resolve(u),1)),t(s.scrollIntoView())}return!0}function b(e,t){var n=e.selection,a=n.$from,l=n.$to;if(n instanceof o["a"]||a.parent.inlineContent||l.parent.inlineContent)return!1;var r=m(l.parent.contentMatchAt(l.indexAfter()));if(!r||!r.isTextblock)return!1;if(t){var i=(!a.parentOffset&&l.index()<l.parent.childCount?a:l).pos,c=e.tr.insert(i,r.createAndFill());c.setSelection(o["h"].create(c.doc,i+1)),t(c.scrollIntoView())}return!0}function g(e,t){var n=e.selection,l=n.$cursor;if(!l||l.parent.content.
|
|||
|
/*! *****************************************************************************
|
|||
|
Copyright (c) Microsoft Corporation.
|
|||
|
|
|||
|
Permission to use, copy, modify, and/or distribute this software for any
|
|||
|
purpose with or without fee is hereby granted.
|
|||
|
|
|||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|||
|
PERFORMANCE OF THIS SOFTWARE.
|
|||
|
***************************************************************************** */function Io(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Lo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ro=function(){return Ro=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var l in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e},Ro.apply(this,arguments)};function jo(e,t,n){if(n||2===arguments.length)for(var a,l=0,o=t.length;l<o;l++)!a&&l in t||(a||(a=Array.prototype.slice.call(t,0,l)),a[l]=t[l]);return e.concat(a||Array.prototype.slice.call(t))}var Bo="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},Po={};function Vo(e){var t,n,a=Po[e];if(a)return a;for(a=Po[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?a.push(n):a.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)a[e.charCodeAt(t)]=e[t];return a}function Fo(e,t,n){var a,l,o,r,i,c="";for("string"!==typeof t&&(n=t,t=Fo.defaultChars),"undefined"===typeof n&&(n=!0),i=Vo(t),a=0,l=e.length;a<l;a++)if(o=e.charCodeAt(a),n&&37===o&&a+2<l&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3)))c+=e.slice(a,a+3),a+=2;else if(o<128)c+=i[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&a+1<l&&(r=e.charCodeAt(a+1),r>=56320&&r<=57343)){c+=encodeURIComponent(e[a]+e[a+1]),a++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[a]);return c}Fo.defaultChars=";/?:@&=+$,-_.!~*'()#",Fo.componentChars="-_.!~*'()";var Ho=Fo,zo={},_o={},qo="Á",$o="á",Uo="Ă",Wo="ă",Jo="∾",Ko="∿",Go="∾̳",Xo="Â",Zo="â",Qo="´",Yo="А",er="а",tr="Æ",nr="æ",ar="",lr="𝔄",or="𝔞",rr="À",ir="à",cr="ℵ",ur="ℵ",sr="Α",dr="α",pr="Ā",hr="ā",fr="⨿",mr="&",vr="&",br="⩕",gr="⩓",yr="∧",wr="⩜",kr="⩘",xr="⩚",Cr="∠",Tr="⦤",Mr="∠",Or="⦨",Sr="⦩",Er="⦪",Nr="⦫",Dr="⦬",Ar="⦭",Lr="⦮",Ir="⦯",Rr="∡",jr="∟",Br="⊾",Pr="⦝",Vr="∢",Fr="Å",Hr="⍼",zr="Ą",_r="ą",qr="𝔸",$r="𝕒",Ur="⩯",Wr="≈",Jr="⩰",Kr="≊",Gr="≋",Xr="'",Zr="",Qr="≈",Yr="≊",ei="Å",ti="å",ni="𝒜",ai="𝒶",li="≔",oi="*",ri="≈",ii="≍",ci="Ã",ui="ã",si="Ä",di="ä",pi="∳",hi="⨑",fi="≌",mi="϶",vi="‵",bi="∽",gi="⋍",yi="∖",wi="⫧",ki="⊽",xi="⌅",Ci="⌆",Ti="⌅",Mi="⎵",Oi="⎶",Si="≌",Ei="Б",Ni="б",Di="„",Ai="∵",Li="∵",Ii="∵",Ri="⦰",ji="϶",Bi="ℬ",Pi="ℬ",Vi="Β",Fi="β",Hi="ℶ",zi="≬",_i="𝔅",qi="𝔟",$i="⋂",Ui="◯",Wi="⋃",Ji="⨀",Ki="⨁",Gi="⨂",Xi="⨆",Zi="★",Qi="▽",Yi="△",ec="⨄",tc="⋁",nc="⋀",ac="⤍",lc="⧫",oc="▪",rc="▴",ic="▾",cc="◂",uc="▸",sc="␣",dc="▒",pc="░",hc="▓",fc="█",mc="=⃥",vc="≡⃥",bc="⫭",gc="⌐",yc="𝔹",wc="𝕓",kc="⊥",xc="⊥",Cc="⋈",Tc="⧉",Mc="┐",Oc="╕",Sc="╖",Ec="╗",Nc="┌",Dc="╒",Ac="╓",Lc="╔",Ic="─",Rc="═",jc="┬",Bc="╤",Pc="╥",Vc="╦",Fc="┴",Hc="╧",zc="╨",_c="╩",qc="⊟",$c="⊞",Uc="⊠",Wc="┘",Jc="╛",Kc="╜",Gc="╝",Xc="└",Zc="╘",Qc="╙",Yc="╚",eu="│",tu="║",nu="┼",au="╪",lu="╫",ou="╬",ru="┤",iu="╡",cu="╢",uu="╣",su="├",du="╞",pu="╟",hu="╠",fu="‵",mu="˘",vu="˘",bu="¦",gu="𝒷",yu="ℬ",wu="⁏",ku="∽",xu="⋍",Cu="⧅",Tu="\\",Mu="⟈",Ou="•",Su="•",Eu="≎",Nu="⪮",Du="≏",Au="≎",Lu="≏",Iu="Ć",Ru="ć",ju="⩄",Bu="⩉",Pu="⩋",Vu="∩",Fu="⋒",Hu="⩇",zu="⩀",_u="ⅅ",qu="∩︀",$u="⁁",Uu="ˇ",Wu="ℭ",Ju="⩍",Ku="Č",Gu="č",Xu="Ç",Zu="ç",Qu="Ĉ",Yu="ĉ",es="∰",ts="⩌",ns="⩐",as="Ċ",ls="ċ",os="¸",rs="¸",is="⦲",cs="¢",us="·",ss="·",ds="𝔠",ps="ℭ",hs="Ч",fs="ч",ms="✓",vs="✓",bs="Χ",gs="χ",ys="ˆ",ws="≗",ks="↺",xs="↻",Cs="⊛",Ts="⊚",Ms="⊝",Os="⊙",Ss="®",Es="Ⓢ",Ns="⊖",Ds="⊕",As="⊗",Ls="○",Is="⧃",Rs="≗",js="⨐",Bs="⫯",Ps="⧂",Vs="∲",Fs="”",Hs="’",zs="♣",_s="♣",qs=":",$
|
|||
|
/*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */function KZ(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var GZ=Object.hasOwnProperty,XZ=Object.setPrototypeOf,ZZ=Object.isFrozen,QZ=Object.getPrototypeOf,YZ=Object.getOwnPropertyDescriptor,eQ=Object.freeze,tQ=Object.seal,nQ=Object.create,aQ="undefined"!==typeof Reflect&&Reflect,lQ=aQ.apply,oQ=aQ.construct;lQ||(lQ=function(e,t,n){return e.apply(t,n)}),eQ||(eQ=function(e){return e}),tQ||(tQ=function(e){return e}),oQ||(oQ=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(KZ(t))))});var rQ=vQ(Array.prototype.forEach),iQ=vQ(Array.prototype.pop),cQ=vQ(Array.prototype.push),uQ=vQ(String.prototype.toLowerCase),sQ=vQ(String.prototype.match),dQ=vQ(String.prototype.replace),pQ=vQ(String.prototype.indexOf),hQ=vQ(String.prototype.trim),fQ=vQ(RegExp.prototype.test),mQ=bQ(TypeError);function vQ(e){return function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),l=1;l<n;l++)a[l-1]=arguments[l];return lQ(e,t,a)}}function bQ(e){return function(){for(var t=arguments.length,n=Array(t),a=0;a<t;a++)n[a]=arguments[a];return oQ(e,n)}}function gQ(e,t){XZ&&XZ(e,null);var n=t.length;while(n--){var a=t[n];if("string"===typeof a){var l=uQ(a);l!==a&&(ZZ(t)||(t[n]=l),a=l)}e[a]=!0}return e}function yQ(e){var t=nQ(null),n=void 0;for(n in e)lQ(GZ,e,[n])&&(t[n]=e[n]);return t}function wQ(e,t){while(null!==e){var n=YZ(e,t);if(n){if(n.get)return vQ(n.get);if("function"===typeof n.value)return vQ(n.value)}e=QZ(e)}function a(e){return console.warn("fallback value for",e),null}return a}var kQ=eQ(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),xQ=eQ(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),CQ=eQ(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),TQ=eQ(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),MQ=eQ(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),OQ=eQ(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mp
|
|||
|
/*!
|
|||
|
* TOAST UI Editor : i18n
|
|||
|
* @version 3.1.10
|
|||
|
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|||
|
* @license MIT
|
|||
|
*/
|
|||
|
(function(t,a){e.exports=a(n("5865"))})(self,(function(e){return function(){"use strict";var t={213:function(t){t.exports=e}},n={};function a(e){var l=n[e];if(void 0!==l)return l.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,a),o.exports}!function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var l={};return function(){a.r(l);var e=a(213),t=a.n(e);t().setLanguage("zh-CN",{Markdown:"Markdown",WYSIWYG:"所见即所得",Write:"编辑",Preview:"预览",Headings:"标题",Paragraph:"文本",Bold:"加粗",Italic:"斜体字",Strike:"删除线",Code:"内嵌代码",Line:"水平线",Blockquote:"引用块","Unordered list":"无序列表","Ordered list":"有序列表",Task:"任务",Indent:"缩进",Outdent:"减少缩进","Insert link":"插入链接","Insert CodeBlock":"插入代码块","Insert table":"插入表格","Insert image":"插入图片",Heading:"标题","Image URL":"图片网址","Select image file":"选择图片文件","Choose a file":"选择一个文件","No file":"没有文件",Description:"说明",OK:"确认",More:"更多",Cancel:"取消",File:"文件",URL:"URL","Link text":"链接文本","Add row to up":"向上添加行","Add row to down":"在下方添加行","Add column to left":"在左侧添加列","Add column to right":"在右侧添加列","Remove row":"删除行","Remove column":"删除列","Align column to left":"左对齐","Align column to center":"居中对齐","Align column to right":"右对齐","Remove table":"删除表格","Would you like to paste as table?":"需要粘贴为表格吗?","Text color":"文字颜色","Auto scroll enabled":"自动滚动已启用","Auto scroll disabled":"自动滚动已禁用","Choose language":"选择语言"})}(),l}()}))},f513:function(e,t,n){},f522:function(e,t,n){},f95e:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return u}));var a=n("5313"),l=(n("0ac0"),function(e,t){this.match=e,this.handler="string"==typeof t?o(t):t});function o(e){return function(t,n,a,l){var o=e;if(n[1]){var r=n[0].lastIndexOf(n[1]);o+=n[0].slice(r+n[1].length),a+=r;var i=a-l;i>0&&(o=n[0].slice(r-i,r)+o,a=l)}return t.tr.insertText(o,a,l)}}var r=500;function i(e){var t=e.rules,n=new a["d"]({state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(this);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:function(e,a,l,o){return c(e,a,l,o,t,n)},handleDOMEvents:{compositionend:function(e){setTimeout((function(){var a=e.state.selection,l=a.$cursor;l&&c(e,l.pos,l.pos,"",t,n)}))}}},isInputRules:!0});return n}function c(e,t,n,a,l,o){if(e.composing)return!1;var i=e.state,c=i.doc.resolve(t);if(c.parent.type.spec.code)return!1;for(var u=c.parent.textBetween(Math.max(0,c.parentOffset-r),c.parentOffset,null,"")+a,s=0;s<l.length;s++){var d=l[s].match.exec(u),p=d&&l[s].handler(i,d,t-(d[0].length-a.length),n);if(p)return e.dispatch(p.setMeta(o,{transform:p,from:t,to:n,text:a})),!0}return!1}function u(e,t){for(var n=e.plugins,a=0;a<n.length;a++){var l=n[a],o=void 0;if(l.spec.isInputRules&&(o=l.getState(e))){if(t){for(var r=e.tr,i=o.transform,c=i.steps.length-1;c>=0;c--)r.step(i.steps[c].invert(i.docs[c]));if(o.text){var u=r.doc.resolve(o.from).marks();r.replaceWith(o.from,o.to,e.schema.text(o.text,u))}else r.delete(o.from,o.to);t(r)}return!0}}return!1}new l(/--$/,"—"),new l(/\.\.\.$/,"…"),new l(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),new l(/"$/,"”"),new l(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),new l(/'$/,"’")}}]);
|