(window.webpackJsonp=window.webpackJsonp||[]).push([[242,3,4,7,8],{"++UQ":function(We,ge,D){},"+NIl":function(We,ge,D){(function(q){q(D("VrN/"))})(function(q){"use strict";q.defineMode("stex",function(z,P){"use strict";function Y(c,o){c.cmdState.push(o)}function N(c){return c.cmdState.length>0?c.cmdState[c.cmdState.length-1]:null}function O(c){var o=c.cmdState.pop();o&&o.closeBracket()}function H(c){for(var o=c.cmdState,d=o.length-1;d>=0;d--){var i=o[d];if(i.name=="DEFAULT")continue;return i}return{styleIdentifier:function(){return null}}}function k(c,o,d){return function(){this.name=c,this.bracketNo=0,this.style=o,this.styles=d,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var n={};n.importmodule=k("importmodule","tag",["string","builtin"]),n.documentclass=k("documentclass","tag",["","atom"]),n.usepackage=k("usepackage","tag",["atom"]),n.begin=k("begin","tag",["atom"]),n.end=k("end","tag",["atom"]),n.label=k("label","tag",["atom"]),n.ref=k("ref","tag",["atom"]),n.eqref=k("eqref","tag",["atom"]),n.cite=k("cite","tag",["atom"]),n.bibitem=k("bibitem","tag",["atom"]),n.Bibitem=k("Bibitem","tag",["atom"]),n.RBibitem=k("RBibitem","tag",["atom"]),n.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function I(c,o){c.f=o}function g(c,o){var d;if(c.match(/^\\[a-zA-Z@]+/)){var i=c.current().slice(1);return d=n.hasOwnProperty(i)?n[i]:n.DEFAULT,d=new d,Y(o,d),I(o,h),d.style}if(c.match(/^\\[$&%#{}_]/))return"tag";if(c.match(/^\\[,;!\/\\]/))return"tag";if(c.match("\\["))return I(o,function(r,s){return p(r,s,"\\]")}),"keyword";if(c.match("\\("))return I(o,function(r,s){return p(r,s,"\\)")}),"keyword";if(c.match("$$"))return I(o,function(r,s){return p(r,s,"$$")}),"keyword";if(c.match("$"))return I(o,function(r,s){return p(r,s,"$")}),"keyword";var a=c.next();if(a=="%")return c.skipToEnd(),"comment";if(a=="}"||a=="]"){if(d=N(o),d)d.closeBracket(a),I(o,h);else return"error";return"bracket"}else return a=="{"||a=="["?(d=n.DEFAULT,d=new d,Y(o,d),"bracket"):/\d/.test(a)?(c.eatWhile(/[\w.%]/),"atom"):(c.eatWhile(/[\w\-_]/),d=H(o),d.name=="begin"&&(d.argument=c.current()),d.styleIdentifier())}function p(c,o,d){if(c.eatSpace())return null;if(d&&c.match(d))return I(o,g),"keyword";if(c.match(/^\\[a-zA-Z@]+/))return"tag";if(c.match(/^[a-zA-Z]+/))return"variable-2";if(c.match(/^\\[$&%#{}_]/))return"tag";if(c.match(/^\\[,;!\/]/))return"tag";if(c.match(/^[\^_&]/))return"tag";if(c.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(c.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var i=c.next();return i=="{"||i=="}"||i=="["||i=="]"||i=="("||i==")"?"bracket":i=="%"?(c.skipToEnd(),"comment"):"error"}function h(c,o){var d=c.peek(),i;return d=="{"||d=="["?(i=N(o),i.openBracket(d),c.eat(d),I(o,g),"bracket"):/[ \t\r]/.test(d)?(c.eat(d),null):(I(o,g),O(o),g(c,o))}return{startState:function(){var c=P.inMathMode?function(o,d){return p(o,d)}:g;return{cmdState:[],f:c}},copyState:function(c){return{cmdState:c.cmdState.slice(),f:c.f}},token:function(c,o){return o.f(c,o)},blankLine:function(c){c.f=g,c.cmdState.length=0},lineComment:"%"}}),q.defineMIME("text/x-stex","stex"),q.defineMIME("text/x-latex","stex")})},"+QRC":function(We,ge,D){"use strict";var q=D("E9nw"),z={"text/plain":"Text","text/html":"Url",default:"Text"},P="Copy to clipboard: #{key}, Enter";function Y(O){var H=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return O.replace(/#{\s*key\s*}/g,H)}function N(O,H){var k,n,I,g,p,h,c=!1;H||(H={}),k=H.debug||!1;try{I=q(),g=document.createRange(),p=document.getSelection(),h=document.createElement("span"),h.textContent=O,h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(d){if(d.stopPropagation(),H.format)if(d.preventDefault(),typeof d.clipboardData=="undefined"){k&&console.warn("unable to use e.clipboardData"),k&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=z[H.format]||z.default;window.clipboardData.setData(i,O)}else d.clipboardData.clearData(),d.clipboardData.setData(H.format,O);H.onCopy&&(d.preventDefault(),H.onCopy(d.clipboardData))}),document.body.appendChild(h),g.selectNodeContents(h),p.addRange(g);var o=document.execCommand("copy");if(!o)throw new Error("copy command was unsuccessful");c=!0}catch(d){k&&console.error("unable to copy using execCommand: ",d),k&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(H.format||"text",O),H.onCopy&&H.onCopy(window.clipboardData),c=!0}catch(i){k&&console.error("unable to copy using clipboardData: ",i),k&&console.error("falling back to prompt"),n=Y("message"in H?H.message:P),window.prompt(n,O)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(g):p.removeAllRanges()),h&&document.body.removeChild(h),I()}return c}We.exports=N},"+aKw":function(We,ge,D){"use strict";var q=D("tJVT"),z=D("q1tI"),P=D.n(z),Y=function(H){return String(H).length===1?"0".concat(H):H},N=function(H){var k=H.className,n=k===void 0?"":k,I=H.onChange,g=H.defaultValue,p=g===void 0?0:g,h=Object(z.useState)(p),c=Object(q.a)(h,2),o=c[0],d=c[1];Object(z.useEffect)(function(){var s=setTimeout(function(){d(o+1e3)},1e3);return I(o+1e3),function(){clearInterval(s)}},[o]);var i=parseInt(o/(60*6e4))||"00",a=parseInt(o%(60*6e4)/6e4)||"00",r=parseInt(o%6e4/1e3)||"00";return P.a.createElement("div",{className:n},Y(i),":",Y(a),":",Y(r))};ge.a=N},"+ua5":function(We,ge,D){},"/cxE":function(We,ge,D){"use strict";D.d(ge,"f",function(){return P}),D.d(ge,"g",function(){return Y}),D.d(ge,"h",function(){return N}),D.d(ge,"e",function(){return H}),D.d(ge,"b",function(){return k}),D.d(ge,"c",function(){return n}),D.d(ge,"d",function(){return I}),D.d(ge,"a",function(){return g});class q{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(p){setTimeout(()=>{throw p.stack?new Error(p.message+`
`+p.stack):p},0)}}emit(p){this.listeners.forEach(h=>{h(p)})}onUnexpectedError(p){this.unexpectedErrorHandler(p),this.emit(p)}onUnexpectedExternalError(p){this.unexpectedErrorHandler(p)}}const z=new q;function P(p){H(p)||z.onUnexpectedError(p);return}function Y(p){H(p)||z.onUnexpectedExternalError(p);return}function N(p){if(p instanceof Error){let{name:h,message:c}=p;const o=p.stacktrace||p.stack;return{$isError:!0,name:h,message:c,stack:o}}return p}const O="Canceled";function H(p){return p instanceof Error&&p.name===O&&p.message===O}function k(){const p=new Error(O);return p.name=p.message,p}function n(p){return p?new Error(`Illegal argument: ${p}`):new Error("Illegal argument")}function I(p){return p?new Error(`Illegal state: ${p}`):new Error("Illegal state")}class g extends Error{constructor(p){super("NotSupported");p&&(this.message=p)}}},"07cG":function(We,ge,D){We.exports={ldsRing:"ldsRing___2F8W7",idsRingWrapper:"idsRingWrapper___fC2cF",ldsring:"ldsring___3A88y"}},"0r65":function(We,ge){var D=arguments[3],q=arguments[4],z=arguments[5],P=JSON.stringify;We.exports=function(Y,N){for(var O,H=Object.keys(z),k=0,n=H.length;k")):null:f.match("--")?b(o("comment","-->")):f.match("DOCTYPE",!0,!0)?(f.eatWhile(/[\w\._\-]/),b(d(1))):null:f.eat("?")?(f.eatWhile(/[\w\._\-]/),C.tokenize=o("meta","?>"),"meta"):(I=f.eat("/")?"closeTag":"openTag",C.tokenize=h,"tag bracket");if(y=="&"){var M;return f.eat("#")?f.eat("x")?M=f.eatWhile(/[a-fA-F\d]/)&&f.eat(";"):M=f.eatWhile(/[\d]/)&&f.eat(";"):M=f.eatWhile(/[\w\.\-:]/)&&f.eat(";"),M?"atom":"error"}else return f.eatWhile(/[^&<]/),null}p.isInText=!0;function h(f,C){var b=f.next();if(b==">"||b=="/"&&f.eat(">"))return C.tokenize=p,I=b==">"?"endTag":"selfcloseTag","tag bracket";if(b=="=")return I="equals",null;if(b=="<"){C.tokenize=p,C.state=s,C.tagName=C.tagStart=null;var y=C.tokenize(f,C);return y?y+" tag error":"tag error"}else return/[\'\"]/.test(b)?(C.tokenize=c(b),C.stringStartCol=f.column(),C.tokenize(f,C)):(f.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function c(f){var C=function(b,y){for(;!b.eol();)if(b.next()==f){y.tokenize=h;break}return"string"};return C.isInAttribute=!0,C}function o(f,C){return function(b,y){for(;!b.eol();){if(b.match(C)){y.tokenize=p;break}b.next()}return f}}function d(f){return function(C,b){for(var y;(y=C.next())!=null;){if(y=="<")return b.tokenize=d(f+1),b.tokenize(C,b);if(y==">")if(f==1){b.tokenize=p;break}else return b.tokenize=d(f-1),b.tokenize(C,b)}return"meta"}}function i(f,C,b){this.prev=f.context,this.tagName=C,this.indent=f.indented,this.startOfLine=b,(H.doNotIndent.hasOwnProperty(C)||f.context&&f.context.noIndent)&&(this.noIndent=!0)}function a(f){f.context&&(f.context=f.context.prev)}function r(f,C){for(var b;;){if(!f.context)return;if(b=f.context.tagName,!H.contextGrabbers.hasOwnProperty(b)||!H.contextGrabbers[b].hasOwnProperty(C))return;a(f)}}function s(f,C,b){return f=="openTag"?(b.tagStart=C.column(),S):f=="closeTag"?x:s}function S(f,C,b){return f=="word"?(b.tagName=C.current(),g="tag",w):H.allowMissingTagName&&f=="endTag"?(g="tag bracket",w(f,C,b)):(g="error",S)}function x(f,C,b){if(f=="word"){var y=C.current();return b.context&&b.context.tagName!=y&&H.implicitlyClosed.hasOwnProperty(b.context.tagName)&&a(b),b.context&&b.context.tagName==y||H.matchClosing===!1?(g="tag",T):(g="tag error",A)}else return H.allowMissingTagName&&f=="endTag"?(g="tag bracket",T(f,C,b)):(g="error",A)}function T(f,C,b){return f!="endTag"?(g="error",T):(a(b),s)}function A(f,C,b){return g="error",T(f,C,b)}function w(f,C,b){if(f=="word")return g="attribute",v;if(f=="endTag"||f=="selfcloseTag"){var y=b.tagName,M=b.tagStart;return b.tagName=b.tagStart=null,f=="selfcloseTag"||H.autoSelfClosers.hasOwnProperty(y)?r(b,y):(r(b,y),b.context=new i(b,y,M==b.indented)),s}return g="error",w}function v(f,C,b){return f=="equals"?E:(H.allowMissing||(g="error"),w(f,C,b))}function E(f,C,b){return f=="string"?m:f=="word"&&H.allowUnquoted?(g="string",w):(g="error",w(f,C,b))}function m(f,C,b){return f=="string"?m:w(f,C,b)}return{startState:function(f){var C={tokenize:p,state:s,indented:f||0,tagName:null,tagStart:null,context:null};return f!=null&&(C.baseIndent=f),C},token:function(f,C){if(!C.tagName&&f.sol()&&(C.indented=f.indentation()),f.eatSpace())return null;I=null;var b=C.tokenize(f,C);return(b||I)&&b!="comment"&&(g=null,C.state=C.state(I||b,f,C),g&&(b=g=="error"?b+" error":g)),b},indent:function(f,C,b){var y=f.context;if(f.tokenize.isInAttribute)return f.tagStart==f.indented?f.stringStartCol+1:f.indented+O;if(y&&y.noIndent)return q.Pass;if(f.tokenize!=h&&f.tokenize!=p)return b?b.match(/^(\s*)/)[0].length:0;if(f.tagName)return H.multilineTagIndentPastTag!==!1?f.tagStart+f.tagName.length+2:f.tagStart+O*(H.multilineTagIndentFactor||1);if(H.alignCDATA&&/$/,blockCommentStart:"",configuration:H.htmlMode?"html":"xml",helperType:H.htmlMode?"html":"xml",skipAttribute:function(f){f.state==E&&(f.state=w)},xmlCurrentTag:function(f){return f.tagName?{name:f.tagName,close:f.type=="closeTag"}:null},xmlCurrentContext:function(f){for(var C=[],b=f.context;b;b=b.prev)b.tagName&&C.push(b.tagName);return C.reverse()}}}),q.defineMIME("text/xml","xml"),q.defineMIME("application/xml","xml"),q.mimeModes.hasOwnProperty("text/html")||q.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"24hK":function(We,ge,D){"use strict";D.d(ge,"a",function(){return z});class q{constructor(P){this.element=P,this.next=q.Undefined,this.prev=q.Undefined}}q.Undefined=new q(void 0);class z{constructor(){this._first=q.Undefined,this._last=q.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===q.Undefined}clear(){let P=this._first;for(;P!==q.Undefined;){const Y=P.next;P.prev=q.Undefined,P.next=q.Undefined,P=Y}this._first=q.Undefined,this._last=q.Undefined,this._size=0}unshift(P){return this._insert(P,!1)}push(P){return this._insert(P,!0)}_insert(P,Y){const N=new q(P);if(this._first===q.Undefined)this._first=N,this._last=N;else if(Y){const H=this._last;this._last=N,N.prev=H,H.next=N}else{const H=this._first;this._first=N,N.next=H,H.prev=N}this._size+=1;let O=!1;return()=>{O||(O=!0,this._remove(N))}}shift(){if(this._first===q.Undefined)return;{const P=this._first.element;return this._remove(this._first),P}}pop(){if(this._last===q.Undefined)return;{const P=this._last.element;return this._remove(this._last),P}}_remove(P){if(P.prev!==q.Undefined&&P.next!==q.Undefined){const Y=P.prev;Y.next=P.next,P.next.prev=Y}else P.prev===q.Undefined&&P.next===q.Undefined?(this._first=q.Undefined,this._last=q.Undefined):P.next===q.Undefined?(this._last=this._last.prev,this._last.next=q.Undefined):P.prev===q.Undefined&&(this._first=this._first.next,this._first.prev=q.Undefined);this._size-=1}*[Symbol.iterator](){let P=this._first;for(;P!==q.Undefined;)yield P.element,P=P.next}}},"3/fG":function(We,ge,D){"use strict";D.d(ge,"a",function(){return z});function q(P,Y){let N;return Y.length===0?N=P:N=P.replace(/\{(\d+)\}/g,function(O,H){const k=H[0];return typeof Y[k]!="undefined"?Y[k]:O}),N}function z(P,Y,...N){return q(Y,N)}},"3tLw":function(We,ge,D){We.exports=D.p+"static/a.39070d50.svg"},"4xil":function(We,ge,D){We.exports={watermark:"watermark___2DVjg",videovideo:"videovideo___3jScv",animate__loop:"animate__loop___36IZ1",upDown:"upDown___3FGkz",container:"container___GV_Ds","video-container":"video-container___35tqx","video-controls":"video-controls___u99fM",hide:"hide___2GDit","video-progress":"video-progress___2LKQJ",seek:"seek___3b-US","seek-tooltip":"seek-tooltip___bZ9sZ","bottom-controls":"bottom-controls___74sQw","left-controls":"left-controls___2kBb3","right-controls":"right-controls___3oxDi","volume-controls":"volume-controls___QLaWH","fullscreen-button":"fullscreen-button___2nHzc","fullscreen-button1":"fullscreen-button1___1murk","pip-button":"pip-button___18qQG","playback-animation":"playback-animation___gCL6X",volume:"volume___10eUe",hidden:"hidden___2JBJW"}},"55Ip":function(We,ge,D){"use strict";D.d(ge,"a",function(){return r});var q=D("Ty5D"),z=D("dI71"),P=D("q1tI"),Y=D.n(P),N=D("YS25"),O=D("17x9"),H=D.n(O),k=D("wx14"),n=D("zLVn"),I=D("9R94"),g=function(E){Object(z.a)(m,E);function m(){for(var C,b=arguments.length,y=new Array(b),M=0;M=0||b.relatedTarget.className.indexOf("".concat(L,"-next"))>=0))return;E.setState({goInputText:""}),W(E.getValidValue())},E.go=function(b){var y=E.state.goInputText;if(y==="")return;(b.keyCode===c.ENTER||b.type==="click")&&(E.setState({goInputText:""}),E.props.quickGo(E.getValidValue()))},E}return Object(N.a)(v,[{key:"getValidValue",value:function(){var m=this.state,f=m.goInputText,C=m.current;return!f||isNaN(f)?C:Number(f)}},{key:"getPageSizeOptions",value:function(){var m=this.props,f=m.pageSize,C=m.pageSizeOptions;return C.some(function(b){return b.toString()===f.toString()})?C:C.concat([f.toString()]).sort(function(b,y){var M=isNaN(Number(b))?0:Number(b),W=isNaN(Number(y))?0:Number(y);return M-W})}},{key:"render",value:function(){var m=this,f=this.props,C=f.pageSize,b=f.locale,y=f.rootPrefixCls,M=f.changeSize,W=f.quickGo,L=f.goButton,K=f.selectComponentClass,F=f.buildOptionText,R=f.selectPrefixCls,V=f.disabled,ne=this.state.goInputText,se="".concat(y,"-options"),Se=K,Le=null,Ae=null,Pe=null;if(!M&&!W)return null;var Fe=this.getPageSizeOptions();if(M&&Se){var je=Fe.map(function(Te,Z){return n.a.createElement(Se.Option,{key:Z,value:Te.toString()},(F||m.buildOptionText)(Te))});Le=n.a.createElement(Se,{disabled:V,prefixCls:R,showSearch:!1,className:"".concat(se,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(C||Fe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Z){return Z.parentNode}},je)}return W&&(L&&(Pe=typeof L=="boolean"?n.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:V,className:"".concat(se,"-quick-jumper-button")},b.jump_to_confirm):n.a.createElement("span",{onClick:this.go,onKeyUp:this.go},L)),Ae=n.a.createElement("div",{className:"".concat(se,"-quick-jumper")},b.jump_to,n.a.createElement("input",{disabled:V,type:"text",value:ne,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),b.page,Pe)),n.a.createElement("li",{className:"".concat(se)},Le,Ae)}}]),v}(n.a.Component);o.defaultProps={pageSizeOptions:["10","20","50","100"]};var d=o,i=D("N2Kk");function a(){}function r(A){return typeof A=="number"&&isFinite(A)&&Math.floor(A)===A}function s(A,w,v){return v}function S(A,w,v){var E=typeof A=="undefined"?w.pageSize:A;return Math.floor((v.total-1)/E)+1}var x=function(A){Object(O.a)(v,A);var w=Object(H.a)(v);function v(E){var m;Object(Y.a)(this,v),m=w.call(this,E),m.getJumpPrevPage=function(){return Math.max(1,m.state.current-(m.props.showLessItems?3:5))},m.getJumpNextPage=function(){return Math.min(S(void 0,m.state,m.props),m.state.current+(m.props.showLessItems?3:5))},m.getItemIcon=function(M,W){var L=m.props.prefixCls,K=M||n.a.createElement("button",{type:"button","aria-label":W,className:"".concat(L,"-item-link")});return typeof M=="function"&&(K=n.a.createElement(M,Object(P.a)({},m.props))),K},m.savePaginationNode=function(M){m.paginationNode=M},m.isValid=function(M){return r(M)&&M!==m.state.current},m.shouldDisplayQuickJumper=function(){var M=m.props,W=M.showQuickJumper,L=M.pageSize,K=M.total;return K<=L?!1:W},m.handleKeyDown=function(M){(M.keyCode===c.ARROW_UP||M.keyCode===c.ARROW_DOWN)&&M.preventDefault()},m.handleKeyUp=function(M){var W=m.getValidValue(M),L=m.state.currentInputValue;W!==L&&m.setState({currentInputValue:W}),M.keyCode===c.ENTER?m.handleChange(W):M.keyCode===c.ARROW_UP?m.handleChange(W-1):M.keyCode===c.ARROW_DOWN&&m.handleChange(W+1)},m.changePageSize=function(M){var W=m.state.current,L=S(M,m.state,m.props);W=W>L?L:W,L===0&&(W=m.state.current),typeof M=="number"&&("pageSize"in m.props||m.setState({pageSize:M}),"current"in m.props||m.setState({current:W,currentInputValue:W})),m.props.onShowSizeChange(W,M),"onChange"in m.props&&m.props.onChange&&m.props.onChange(W,M)},m.handleChange=function(M){var W=m.props.disabled,L=M;if(m.isValid(L)&&!W){var K=S(void 0,m.state,m.props);L>K?L=K:L<1&&(L=1),"current"in m.props||m.setState({current:L,currentInputValue:L});var F=m.state.pageSize;return m.props.onChange(L,F),L}return m.state.current},m.prev=function(){m.hasPrev()&&m.handleChange(m.state.current-1)},m.next=function(){m.hasNext()&&m.handleChange(m.state.current+1)},m.jumpPrev=function(){m.handleChange(m.getJumpPrevPage())},m.jumpNext=function(){m.handleChange(m.getJumpNextPage())},m.hasPrev=function(){return m.state.current>1},m.hasNext=function(){return m.state.current2?L-2:0),F=2;F=C?y=C:y=Number(f),y}},{key:"getShowSizeChanger",value:function(){var m=this.props,f=m.showSizeChanger,C=m.total,b=m.totalBoundaryShowSizeChanger;return typeof f!="undefined"?f:C>b}},{key:"renderPrev",value:function(m){var f=this.props,C=f.prevIcon,b=f.itemRender,y=b(m,"prev",this.getItemIcon(C,"prev page")),M=!this.hasPrev();return Object(k.isValidElement)(y)?Object(k.cloneElement)(y,{disabled:M}):y}},{key:"renderNext",value:function(m){var f=this.props,C=f.nextIcon,b=f.itemRender,y=b(m,"next",this.getItemIcon(C,"next page")),M=!this.hasNext();return Object(k.isValidElement)(y)?Object(k.cloneElement)(y,{disabled:M}):y}},{key:"render",value:function(){var m=this,f=this.props,C=f.prefixCls,b=f.className,y=f.style,M=f.disabled,W=f.hideOnSinglePage,L=f.total,K=f.locale,F=f.showQuickJumper,R=f.showLessItems,V=f.showTitle,ne=f.showTotal,se=f.simple,Se=f.itemRender,Le=f.showPrevNextJumpers,Ae=f.jumpPrevIcon,Pe=f.jumpNextIcon,Fe=f.selectComponentClass,je=f.selectPrefixCls,Te=f.pageSizeOptions,Z=this.state,U=Z.current,G=Z.pageSize,ee=Z.currentInputValue;if(W===!0&&L<=G)return null;var ue=S(void 0,this.state,this.props),J=[],we=null,Ge=null,Je=null,be=null,Re=null,xe=F&&F.goButton,Ce=R?1:2,Be=U-1>0?U-1:0,Xe=U+1=Ce*2&&U!==1+2&&(J[0]=Object(k.cloneElement)(J[0],{className:"".concat(C,"-item-after-jump-prev")}),J.unshift(we)),ue-U>=Ce*2&&U!==ue-2&&(J[J.length-1]=Object(k.cloneElement)(J[J.length-1],{className:"".concat(C,"-item-before-jump-next")}),J.push(Ge)),Ze!==1&&J.unshift(Je),et!==ue&&J.push(be)}var ie=null;ne&&(ie=n.a.createElement("li",{className:"".concat(C,"-total-text")},ne(L,[L===0?0:(U-1)*G+1,U*G>L?L:U*G])));var ce=!this.hasPrev()||!ue,pe=!this.hasNext()||!ue;return n.a.createElement("ul",Object(q.a)({className:g()(C,b,Object(z.a)({},"".concat(C,"-disabled"),M)),style:y,unselectable:"unselectable",ref:this.savePaginationNode},qe),ie,n.a.createElement("li",{title:V?K.prev_page:null,onClick:this.prev,tabIndex:ce?null:0,onKeyPress:this.runIfEnterPrev,className:g()("".concat(C,"-prev"),Object(z.a)({},"".concat(C,"-disabled"),ce)),"aria-disabled":ce},this.renderPrev(Be)),J,n.a.createElement("li",{title:V?K.next_page:null,onClick:this.next,tabIndex:pe?null:0,onKeyPress:this.runIfEnterNext,className:g()("".concat(C,"-next"),Object(z.a)({},"".concat(C,"-disabled"),pe)),"aria-disabled":pe},this.renderNext(Xe)),n.a.createElement(d,{disabled:M,locale:K,rootPrefixCls:C,selectComponentClass:Fe,selectPrefixCls:je,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:U,pageSize:G,pageSizeOptions:Te,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:xe}))}}],[{key:"getDerivedStateFromProps",value:function(m,f){var C={};if("current"in m&&(C.current=m.current,m.current!==f.current&&(C.currentInputValue=C.current)),"pageSize"in m&&m.pageSize!==f.pageSize){var b=f.current,y=S(m.pageSize,f,m);b=b>y?y:b,"current"in m||(C.current=b,C.currentInputValue=b),C.pageSize=m.pageSize}return C}}]),v}(n.a.Component);x.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:a,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:a,locale:i.a,style:{},itemRender:s,totalBoundaryShowSizeChanger:50};var T=x},"6RRn":function(We,ge,D){"use strict";var q=D("wCXF"),z=D("n6Qo");D.d(ge,"b",function(){return z.a});var P=D("IBYe"),Y=D("6eGT"),N=D("hW8S");D.d(ge,"a",function(){return N.a}),ge.c=q.b},"6UM0":function(We,ge,D){var q,z;(function(){var P;(function(){"use strict";var N=[function(n,I,g){var p=g(1).Beautifier,h=g(5).Options;function c(o,d){var i=new p(o,d);return i.beautify()}n.exports=c,n.exports.defaultOptions=function(){return new h}},function(n,I,g){var p=g(2).Output,h=g(3).Token,c=g(4),o=g(5).Options,d=g(7).Tokenizer,i=g(7).line_starters,a=g(7).positionable_operators,r=g(7).TOKEN;function s(R,V){return V.indexOf(R)!==-1}function S(R){return R.replace(/^\s+/g,"")}function x(R){for(var V={},ne=0;nene&&(ne=R.line_indent_level));var se={mode:V,parent:R,last_token:R?R.last_token:new h(r.START_BLOCK,""),last_word:R?R.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:ne,alignment:0,line_indent_level:R?R.line_indent_level:ne,start_line_index:this._output.get_line_number(),ternary_depth:0};return se},K.prototype._reset=function(R){var V=R.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new p(this._options,V),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(f.BlockStatement);var ne=new d(R,this._options);return this._tokens=ne.tokenize(),R},K.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var R,V=this._reset(this._source_text),ne=this._options.eol;this._options.eol==="auto"&&(ne=`
`,V&&c.lineBreak.test(V||"")&&(ne=V.match(c.lineBreak)[0]));for(var se=this._tokens.next();se;)this.handle_token(se),this._last_last_text=this._flags.last_token.text,this._flags.last_token=se,se=this._tokens.next();return R=this._output.get_code(ne),R},K.prototype.handle_token=function(R,V){R.type===r.START_EXPR?this.handle_start_expr(R):R.type===r.END_EXPR?this.handle_end_expr(R):R.type===r.START_BLOCK?this.handle_start_block(R):R.type===r.END_BLOCK?this.handle_end_block(R):R.type===r.WORD?this.handle_word(R):R.type===r.RESERVED?this.handle_word(R):R.type===r.SEMICOLON?this.handle_semicolon(R):R.type===r.STRING?this.handle_string(R):R.type===r.EQUALS?this.handle_equals(R):R.type===r.OPERATOR?this.handle_operator(R):R.type===r.COMMA?this.handle_comma(R):R.type===r.BLOCK_COMMENT?this.handle_block_comment(R,V):R.type===r.COMMENT?this.handle_comment(R,V):R.type===r.DOT?this.handle_dot(R):R.type===r.EOF?this.handle_eof(R):R.type===r.UNKNOWN?this.handle_unknown(R,V):this.handle_unknown(R,V)},K.prototype.handle_whitespace_and_comments=function(R,V){var ne=R.newlines,se=this._options.keep_array_indentation&&y(this._flags.mode);if(R.comments_before)for(var Se=R.comments_before.next();Se;)this.handle_whitespace_and_comments(Se,V),this.handle_token(Se,V),Se=R.comments_before.next();if(se)for(var Le=0;Le0,V);else if(this._options.max_preserve_newlines&&ne>this._options.max_preserve_newlines&&(ne=this._options.max_preserve_newlines),this._options.preserve_newlines&&ne>1){this.print_newline(!1,V);for(var Ae=1;Ae0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},K.prototype.set_mode=function(R){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,R),this._flags=this.create_flags(this._previous_flags,R),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},K.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===f.Statement&&C(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},K.prototype.start_of_object_property=function(){return this._flags.parent.mode===f.ObjectLiteral&&this._flags.mode===f.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||A(this._flags.last_token,["get","set"]))},K.prototype.start_of_statement=function(R){var V=!1;return V=V||A(this._flags.last_token,["var","let","const"])&&R.type===r.WORD,V=V||T(this._flags.last_token,"do"),V=V||!(this._flags.parent.mode===f.ObjectLiteral&&this._flags.mode===f.Statement)&&A(this._flags.last_token,F)&&!R.newlines,V=V||T(this._flags.last_token,"else")&&!(T(R,"if")&&!R.comments_before),V=V||this._flags.last_token.type===r.END_EXPR&&(this._previous_flags.mode===f.ForInitializer||this._previous_flags.mode===f.Conditional),V=V||this._flags.last_token.type===r.WORD&&this._flags.mode===f.BlockStatement&&!this._flags.in_case&&!(R.text==="--"||R.text==="++")&&this._last_last_text!=="function"&&R.type!==r.WORD&&R.type!==r.RESERVED,V=V||this._flags.mode===f.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||A(this._flags.last_token,["get","set"])),V?(this.set_mode(f.Statement),this.indent(),this.handle_whitespace_and_comments(R,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(R,A(R,["do","for","if","while"])),!0):!1},K.prototype.handle_start_expr=function(R){this.start_of_statement(R)||this.handle_whitespace_and_comments(R);var V=f.Expression;if(R.text==="["){if(this._flags.last_token.type===r.WORD||this._flags.last_token.text===")"){A(this._flags.last_token,i)&&(this._output.space_before_token=!0),this.print_token(R),this.set_mode(V),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}V=f.ArrayLiteral,y(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),s(this._flags.last_token.type,[r.START_EXPR,r.END_EXPR,r.WORD,r.OPERATOR,r.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===r.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,V=f.ForInitializer):s(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,V=f.Conditional):s(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&R.whitespace_before===""?this._output.space_before_token=!1:(s(this._flags.last_token.text,i)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===r.EQUALS||this._flags.last_token.type===r.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(R);else if(this._flags.last_token.type===r.WORD){this._output.space_before_token=!1;var ne=this._tokens.peek(-3);if(this._options.space_after_named_function&&ne){var se=this._tokens.peek(-4);A(ne,["async","function"])||ne.text==="*"&&A(se,["async","function"])?this._output.space_before_token=!0:this._flags.mode===f.ObjectLiteral?(ne.text==="{"||ne.text===","||ne.text==="*"&&(se.text==="{"||se.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(R);(this._flags.last_token.type===r.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(s(this._last_last_text,["function","yield"])||this._flags.mode===f.ObjectLiteral&&s(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===r.START_BLOCK?this.print_newline():(this._flags.last_token.type===r.END_EXPR||this._flags.last_token.type===r.START_EXPR||this._flags.last_token.type===r.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===r.COMMA)&&this.allow_wrap_or_preserved_newline(R,R.newlines),this.print_token(R),this.set_mode(V),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},K.prototype.handle_end_expr=function(R){for(;this._flags.mode===f.Statement;)this.restore_mode();this.handle_whitespace_and_comments(R),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(R,R.text==="]"&&y(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===r.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(R),this.restore_mode(),C(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===f.Conditional&&(this._previous_flags.mode=f.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},K.prototype.handle_start_block=function(R){this.handle_whitespace_and_comments(R);var V=this._tokens.peek(),ne=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===r.END_EXPR?(this.set_mode(f.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(f.BlockStatement):ne&&(s(ne.text,[":",","])&&s(V.type,[r.STRING,r.WORD,r.RESERVED])||s(V.text,["get","set","..."])&&s(ne.type,[r.WORD,r.RESERVED]))?s(this._last_last_text,["class","interface"])&&!s(ne.text,[":",","])?this.set_mode(f.BlockStatement):this.set_mode(f.ObjectLiteral):this._flags.last_token.type===r.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(f.BlockStatement):s(this._flags.last_token.type,[r.EQUALS,r.START_EXPR,r.COMMA,r.OPERATOR])||A(this._flags.last_token,["return","throw","import","default"])?this.set_mode(f.ObjectLiteral):this.set_mode(f.BlockStatement),this._flags.last_token&&(A(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var se=!V.comments_before&&V.text==="}",Se=se&&this._flags.last_word==="function"&&this._flags.last_token.type===r.END_EXPR;if(this._options.brace_preserve_inline){var Le=0,Ae=null;this._flags.inline_frame=!0;do if(Le+=1,Ae=this._tokens.peek(Le-1),Ae.newlines){this._flags.inline_frame=!1;break}while(Ae.type!==r.EOF&&!(Ae.type===r.END_BLOCK&&Ae.opened===R))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&R.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==r.OPERATOR&&(Se||this._flags.last_token.type===r.EQUALS||A(this._flags.last_token,w)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(y(this._previous_flags.mode)&&(this._flags.last_token.type===r.START_EXPR||this._flags.last_token.type===r.COMMA)&&((this._flags.last_token.type===r.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(R),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==r.OPERATOR&&this._flags.last_token.type!==r.START_EXPR&&(this._flags.last_token.type===r.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(R),this.indent(),!se&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},K.prototype.handle_end_block=function(R){for(this.handle_whitespace_and_comments(R);this._flags.mode===f.Statement;)this.restore_mode();var V=this._flags.last_token.type===r.START_BLOCK;this._flags.inline_frame&&!V?this._output.space_before_token=!0:this._options.brace_style==="expand"?V||this.print_newline():V||(y(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(R)},K.prototype.handle_word=function(R){if(R.type===r.RESERVED){if(s(R.text,["set","get"])&&this._flags.mode!==f.ObjectLiteral)R.type=r.WORD;else if(R.text==="import"&&s(this._tokens.peek().text,["(","."]))R.type=r.WORD;else if(s(R.text,["as","from"])&&!this._flags.import_block)R.type=r.WORD;else if(this._flags.mode===f.ObjectLiteral){var V=this._tokens.peek();V.text===":"&&(R.type=r.WORD)}}if(this.start_of_statement(R)?A(this._flags.last_token,["var","let","const"])&&R.type===r.WORD&&(this._flags.declaration_statement=!0):R.newlines&&!M(this._flags.mode)&&(this._flags.last_token.type!==r.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==r.EQUALS&&(this._options.preserve_newlines||!A(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(R),this.print_newline()):this.handle_whitespace_and_comments(R),this._flags.do_block&&!this._flags.do_while)if(T(R,"while")){this._output.space_before_token=!0,this.print_token(R),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&T(R,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===f.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&A(R,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(R),this._flags.in_case=!0;return}if((this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR||this._flags.last_token.type===r.EQUALS||this._flags.last_token.type===r.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(R)),T(R,"function")){(s(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(s(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===r.OPERATOR))&&(!this._output.just_added_blankline()&&!R.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD?A(this._flags.last_token,["get","set","new","export"])||A(this._flags.last_token,F)?this._output.space_before_token=!0:T(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===r.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(M(this._flags.mode)||y(this._flags.mode))||this.print_newline(),this.print_token(R),this._flags.last_word=R.text;return}var ne="NONE";if(this._flags.last_token.type===r.END_BLOCK?this._previous_flags.inline_frame?ne="SPACE":A(R,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&R.newlines?ne="NEWLINE":(ne="SPACE",this._output.space_before_token=!0):ne="NEWLINE":this._flags.last_token.type===r.SEMICOLON&&this._flags.mode===f.BlockStatement?ne="NEWLINE":this._flags.last_token.type===r.SEMICOLON&&M(this._flags.mode)?ne="SPACE":this._flags.last_token.type===r.STRING?ne="NEWLINE":this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD||this._flags.last_token.text==="*"&&(s(this._last_last_text,["function","yield"])||this._flags.mode===f.ObjectLiteral&&s(this._last_last_text,["{",","]))?ne="SPACE":this._flags.last_token.type===r.START_BLOCK?this._flags.inline_frame?ne="SPACE":ne="NEWLINE":this._flags.last_token.type===r.END_EXPR&&(this._output.space_before_token=!0,ne="NEWLINE"),A(R,i)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?ne="SPACE":ne="NEWLINE"),A(R,["else","catch","finally"]))if((!(this._flags.last_token.type===r.END_BLOCK&&this._previous_flags.mode===f.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&R.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var se=this._output.current_line;se.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else ne==="NEWLINE"?A(this._flags.last_token,w)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&A(R,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==r.END_EXPR?(this._flags.last_token.type!==r.START_EXPR||!A(R,["var","let","const"]))&&this._flags.last_token.text!==":"&&(T(R,"if")&&T(R.previous,"else")?this._output.space_before_token=!0:this.print_newline()):A(R,i)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&y(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():ne==="SPACE"&&(this._output.space_before_token=!0);R.previous&&(R.previous.type===r.WORD||R.previous.type===r.RESERVED)&&(this._output.space_before_token=!0),this.print_token(R),this._flags.last_word=R.text,R.type===r.RESERVED&&(R.text==="do"?this._flags.do_block=!0:R.text==="if"?this._flags.if_block=!0:R.text==="import"?this._flags.import_block=!0:this._flags.import_block&&T(R,"from")&&(this._flags.import_block=!1))},K.prototype.handle_semicolon=function(R){this.start_of_statement(R)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(R);for(var V=this._tokens.peek();this._flags.mode===f.Statement&&!(this._flags.if_block&&T(V,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(R)},K.prototype.handle_string=function(R){R.text.startsWith("`")&&R.newlines===0&&R.whitespace_before===""&&(R.previous.text===")"||this._flags.last_token.type===r.WORD)||(this.start_of_statement(R)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(R),this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR||this._flags.last_token.type===r.EQUALS||this._flags.last_token.type===r.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(R):R.text.startsWith("`")&&this._flags.last_token.type===r.END_EXPR&&(R.previous.text==="]"||R.previous.text===")")&&R.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(R)},K.prototype.handle_equals=function(R){this.start_of_statement(R)||this.handle_whitespace_and_comments(R),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(R),this._output.space_before_token=!0},K.prototype.handle_comma=function(R){this.handle_whitespace_and_comments(R,!0),this.print_token(R),this._output.space_before_token=!0,this._flags.declaration_statement?(M(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(R)):this._flags.mode===f.ObjectLiteral||this._flags.mode===f.Statement&&this._flags.parent.mode===f.ObjectLiteral?(this._flags.mode===f.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(R)},K.prototype.handle_operator=function(R){var V=R.text==="*"&&(A(this._flags.last_token,["function","yield"])||s(this._flags.last_token.type,[r.START_BLOCK,r.COMMA,r.END_BLOCK,r.SEMICOLON])),ne=s(R.text,["-","+"])&&(s(this._flags.last_token.type,[r.START_BLOCK,r.START_EXPR,r.EQUALS,r.OPERATOR])||s(this._flags.last_token.text,i)||this._flags.last_token.text===",");if(!this.start_of_statement(R)){var se=!V;this.handle_whitespace_and_comments(R,se)}if(R.text==="*"&&this._flags.last_token.type===r.DOT){this.print_token(R);return}if(R.text==="::"){this.print_token(R);return}if(this._flags.last_token.type===r.OPERATOR&&s(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(R),R.text===":"&&this._flags.in_case){this.print_token(R),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==r.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var Se=!0,Le=!0,Ae=!1;if(R.text===":"?this._flags.ternary_depth===0?Se=!1:(this._flags.ternary_depth-=1,Ae=!0):R.text==="?"&&(this._flags.ternary_depth+=1),!ne&&!V&&this._options.preserve_newlines&&s(R.text,a)){var Pe=R.text===":",Fe=Pe&&Ae,je=Pe&&!Ae;switch(this._options.operator_position){case E.before_newline:this._output.space_before_token=!je,this.print_token(R),(!Pe||Fe)&&this.allow_wrap_or_preserved_newline(R),this._output.space_before_token=!0;return;case E.after_newline:this._output.space_before_token=!0,!Pe||Fe?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(R):this._output.space_before_token=!1,this.print_token(R),this._output.space_before_token=!0;return;case E.preserve_newline:je||this.allow_wrap_or_preserved_newline(R),Se=!(this._output.just_added_newline()||je),this._output.space_before_token=Se,this.print_token(R),this._output.space_before_token=!0;return}}if(V){this.allow_wrap_or_preserved_newline(R),Se=!1;var Te=this._tokens.peek();Le=Te&&s(Te.type,[r.WORD,r.RESERVED])}else if(R.text==="...")this.allow_wrap_or_preserved_newline(R),Se=this._flags.last_token.type===r.START_BLOCK,Le=!1;else if(s(R.text,["--","++","!","~"])||ne){if((this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR)&&this.allow_wrap_or_preserved_newline(R),Se=!1,Le=!1,R.newlines&&(R.text==="--"||R.text==="++"||R.text==="~")){var Z=A(this._flags.last_token,w)&&R.newlines;Z&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Z,!0)}this._flags.last_token.text===";"&&M(this._flags.mode)&&(Se=!0),this._flags.last_token.type===r.RESERVED?Se=!0:this._flags.last_token.type===r.END_EXPR?Se=!(this._flags.last_token.text==="]"&&(R.text==="--"||R.text==="++")):this._flags.last_token.type===r.OPERATOR&&(Se=s(R.text,["--","-","++","+"])&&s(this._flags.last_token.text,["--","-","++","+"]),s(R.text,["+","-"])&&s(this._flags.last_token.text,["--","++"])&&(Le=!0)),(this._flags.mode===f.BlockStatement&&!this._flags.inline_frame||this._flags.mode===f.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Se,this.print_token(R),this._output.space_before_token=Le},K.prototype.handle_block_comment=function(R,V){if(this._output.raw){this._output.add_raw_token(R),R.directives&&R.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(R.directives){this.print_newline(!1,V),this.print_token(R),R.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!c.newline.test(R.text)&&!R.newlines){this._output.space_before_token=!0,this.print_token(R),this._output.space_before_token=!0;return}else this.print_block_commment(R,V)},K.prototype.print_block_commment=function(R,V){var ne=b(R.text),se,Se=!1,Le=!1,Ae=R.whitespace_before,Pe=Ae.length;if(this.print_newline(!1,V),this.print_token_line_indentation(R),this._output.add_token(ne[0]),this.print_newline(!1,V),ne.length>1){for(ne=ne.slice(1),Se=W(ne,"*"),Le=L(ne,Ae),Se&&(this._flags.alignment=1),se=0;se=0;c--)if(this.__items[c].match(h))return!0;return!1},I.prototype.set_indent=function(h,c){this.is_empty()&&(this.__indent_count=h||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},I.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},I.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},I.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var h=this.__parent.current_line;return h.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),h.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),h.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,h.__items[0]===" "&&(h.__items.splice(0,1),h.__character_count-=1),!0}return!1},I.prototype.is_empty=function(){return this.__items.length===0},I.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},I.prototype.push=function(h){this.__items.push(h);var c=h.lastIndexOf(`
`);c!==-1?this.__character_count=h.length-c:this.__character_count+=h.length},I.prototype.pop=function(){var h=null;return this.is_empty()||(h=this.__items.pop(),this.__character_count-=h.length),h},I.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},I.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},I.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},I.prototype.toString=function(){var h="";return this.is_empty()?this.__parent.indent_empty_lines&&(h=this.__parent.get_indent_string(this.__indent_count)):(h=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),h+=this.__items.join("")),h};function g(h,c){this.__cache=[""],this.__indent_size=h.indent_size,this.__indent_string=h.indent_char,h.indent_with_tabs||(this.__indent_string=new Array(h.indent_size+1).join(h.indent_char)),c=c||"",h.indent_level>0&&(c=new Array(h.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}g.prototype.get_indent_size=function(h,c){var o=this.__base_string_length;return c=c||0,h<0&&(o=0),o+=h*this.__indent_size,o+=c,o},g.prototype.get_indent_string=function(h,c){var o=this.__base_string;return c=c||0,h<0&&(h=0,o=""),c+=h*this.__indent_size,this.__ensure_cache(c),o+=this.__cache[c],o},g.prototype.__ensure_cache=function(h){for(;h>=this.__cache.length;)this.__add_column()},g.prototype.__add_column=function(){var h=this.__cache.length,c=0,o="";this.__indent_size&&h>=this.__indent_size&&(c=Math.floor(h/this.__indent_size),h-=c*this.__indent_size,o=new Array(c+1).join(this.__indent_string)),h&&(o+=new Array(h+1).join(" ")),this.__cache.push(o)};function p(h,c){this.__indent_cache=new g(h,c),this.raw=!1,this._end_with_newline=h.end_with_newline,this.indent_size=h.indent_size,this.wrap_line_length=h.wrap_line_length,this.indent_empty_lines=h.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new I(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}p.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},p.prototype.get_line_number=function(){return this.__lines.length},p.prototype.get_indent_string=function(h,c){return this.__indent_cache.get_indent_string(h,c)},p.prototype.get_indent_size=function(h,c){return this.__indent_cache.get_indent_size(h,c)},p.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},p.prototype.add_new_line=function(h){return this.is_empty()||!h&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},p.prototype.get_code=function(h){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join(`
`);return h!==`
`&&(o=o.replace(/[\n]/g,h)),o},p.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},p.prototype.set_indent=function(h,c){return h=h||0,c=c||0,this.next_line.set_indent(h,c),this.__lines.length>1?(this.current_line.set_indent(h,c),!0):(this.current_line.set_indent(),!1)},p.prototype.add_raw_token=function(h){for(var c=0;c1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},p.prototype.just_added_newline=function(){return this.current_line.is_empty()},p.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},p.prototype.ensure_empty_line_above=function(h,c){for(var o=this.__lines.length-2;o>=0;){var d=this.__lines[o];if(d.is_empty())break;if(d.item(0).indexOf(h)!==0&&d.item(-1)!==c){this.__lines.splice(o+1,0,new I(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},n.exports.Output=p},function(n){function I(g,p,h,c){this.type=g,this.text=p,this.comments_before=null,this.newlines=h||0,this.whitespace_before=c||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}n.exports.Token=I},function(n,I){var g="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",p="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",h="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",c="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",o="(?:\\\\u[0-9a-fA-F]{4}|["+g+h+"])",d="(?:\\\\u[0-9a-fA-F]{4}|["+p+h+c+"])*";I.identifier=new RegExp(o+d,"g"),I.identifierStart=new RegExp(o),I.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+p+h+c+"])+");var i=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;I.newline=/[\n\r\u2028\u2029]/,I.lineBreak=new RegExp(`\r
|`+I.newline.source),I.allLineBreaks=new RegExp(I.lineBreak.source,"g")},function(n,I,g){var p=g(6).Options,h=["before-newline","after-newline","preserve-newline"];function c(o){p.call(this,o,"js");var d=this.raw_options.brace_style||null;d==="expand-strict"?this.raw_options.brace_style="expand":d==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var a=0;a>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),v=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";v=v.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),v="\\?\\.(?!\\d) "+v,v=v.replace(/ /g,"|");var E=new RegExp(v),m="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),f=m.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),C=new RegExp("^(?:"+f.join("|")+")$"),b,y=function(W,L){h.call(this,W,L),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var K=new i(this._input),F=new a(this._input).read_options(this._options);this.__patterns={template:F,identifier:F.starting_with(d.identifier).matching(d.identifierMatch),number:K.matching(x),punct:K.matching(E),comment:K.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:K.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:K.matching(//),include:K.starting_with(/#include/).until_after(d.lineBreak),shebang:K.starting_with(/#!/).until_after(d.lineBreak),xml:K.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:F.until(/['\\\n\r\u2028\u2029]/),double_quote:F.until(/["\\\n\r\u2028\u2029]/),template_text:F.until(/[`\\$]/),template_expression:F.until(/[`}\\]/)}};y.prototype=new h,y.prototype._is_comment=function(W){return W.type===s.COMMENT||W.type===s.BLOCK_COMMENT||W.type===s.UNKNOWN},y.prototype._is_opening=function(W){return W.type===s.START_BLOCK||W.type===s.START_EXPR},y.prototype._is_closing=function(W,L){return(W.type===s.END_BLOCK||W.type===s.END_EXPR)&&L&&(W.text==="]"&&L.text==="["||W.text===")"&&L.text==="("||W.text==="}"&&L.text==="{")},y.prototype._reset=function(){b=!1},y.prototype._get_next_token=function(W,L){var K=null;this._readWhitespace();var F=this._input.peek();return F===null?this._create_token(s.EOF,""):(K=K||this._read_non_javascript(F),K=K||this._read_string(F),K=K||this._read_word(W),K=K||this._read_singles(F),K=K||this._read_comment(F),K=K||this._read_regexp(F,W),K=K||this._read_xml(F,W),K=K||this._read_punctuation(),K=K||this._create_token(s.UNKNOWN,this._input.next()),K)},y.prototype._read_word=function(W){var L;if(L=this.__patterns.identifier.read(),L!=="")return L=L.replace(d.allLineBreaks,`
`),!(W.type===s.DOT||W.type===s.RESERVED&&(W.text==="set"||W.text==="get"))&&C.test(L)?(L==="in"||L==="of")&&(W.type===s.WORD||W.type===s.STRING)?this._create_token(s.OPERATOR,L):this._create_token(s.RESERVED,L):this._create_token(s.WORD,L);if(L=this.__patterns.number.read(),L!=="")return this._create_token(s.WORD,L)},y.prototype._read_singles=function(W){var L=null;return W==="("||W==="["?L=this._create_token(s.START_EXPR,W):W===")"||W==="]"?L=this._create_token(s.END_EXPR,W):W==="{"?L=this._create_token(s.START_BLOCK,W):W==="}"?L=this._create_token(s.END_BLOCK,W):W===";"?L=this._create_token(s.SEMICOLON,W):W==="."&&A.test(this._input.peek(1))?L=this._create_token(s.DOT,W):W===","&&(L=this._create_token(s.COMMA,W)),L&&this._input.next(),L},y.prototype._read_punctuation=function(){var W=this.__patterns.punct.read();if(W!=="")return W==="="?this._create_token(s.EQUALS,W):W==="?."?this._create_token(s.DOT,W):this._create_token(s.OPERATOR,W)},y.prototype._read_non_javascript=function(W){var L="";if(W==="#"){if(this._is_first_token()&&(L=this.__patterns.shebang.read(),L))return this._create_token(s.UNKNOWN,L.trim()+`
`);if(L=this.__patterns.include.read(),L)return this._create_token(s.UNKNOWN,L.trim()+`
`);W=this._input.next();var K="#";if(this._input.hasNext()&&this._input.testChar(T)){do W=this._input.next(),K+=W;while(this._input.hasNext()&&W!=="#"&&W!=="=");return W==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(K+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(K+="{}",this._input.next(),this._input.next())),this._create_token(s.WORD,K)}this._input.back()}else if(W==="<"&&this._is_first_token()){if(L=this.__patterns.html_comment_start.read(),L){for(;this._input.hasNext()&&!this._input.testChar(d.newline);)L+=this._input.next();return b=!0,this._create_token(s.COMMENT,L)}}else if(b&&W==="-"&&(L=this.__patterns.html_comment_end.read(),L))return b=!1,this._create_token(s.COMMENT,L);return null},y.prototype._read_comment=function(W){var L=null;if(W==="/"){var K="";if(this._input.peek(1)==="*"){K=this.__patterns.block_comment.read();var F=S.get_directives(K);F&&F.ignore==="start"&&(K+=S.readIgnored(this._input)),K=K.replace(d.allLineBreaks,`
`),L=this._create_token(s.BLOCK_COMMENT,K),L.directives=F}else this._input.peek(1)==="/"&&(K=this.__patterns.comment.read(),L=this._create_token(s.COMMENT,K))}return L},y.prototype._read_string=function(W){if(W==="`"||W==="'"||W==='"'){var L=this._input.next();return this.has_char_escapes=!1,W==="`"?L+=this._read_string_recursive("`",!0,"${"):L+=this._read_string_recursive(W),this.has_char_escapes&&this._options.unescape_strings&&(L=M(L)),this._input.peek()===W&&(L+=this._input.next()),L=L.replace(d.allLineBreaks,`
`),this._create_token(s.STRING,L)}return null},y.prototype._allow_regexp_or_xml=function(W){return W.type===s.RESERVED&&r(W.text,["return","case","throw","else","do","typeof","yield"])||W.type===s.END_EXPR&&W.text===")"&&W.opened.previous.type===s.RESERVED&&r(W.opened.previous.text,["if","while","for"])||r(W.type,[s.COMMENT,s.START_EXPR,s.START_BLOCK,s.START,s.END_BLOCK,s.OPERATOR,s.EQUALS,s.EOF,s.SEMICOLON,s.COMMA])},y.prototype._read_regexp=function(W,L){if(W==="/"&&this._allow_regexp_or_xml(L)){for(var K=this._input.next(),F=!1,R=!1;this._input.hasNext()&&(F||R||this._input.peek()!==W)&&!this._input.testChar(d.newline);)K+=this._input.peek(),F?F=!1:(F=this._input.peek()==="\\",this._input.peek()==="["?R=!0:this._input.peek()==="]"&&(R=!1)),this._input.next();return this._input.peek()===W&&(K+=this._input.next(),K+=this._input.read(d.identifier)),this._create_token(s.STRING,K)}return null},y.prototype._read_xml=function(W,L){if(this._options.e4x&&W==="<"&&this._allow_regexp_or_xml(L)){var K="",F=this.__patterns.xml.read_match();if(F){for(var R=F[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),V=R.indexOf("{")===0,ne=0;F;){var se=!!F[1],Se=F[2],Le=!!F[F.length-1]||Se.slice(0,8)==="![CDATA[";if(!Le&&(Se===R||V&&Se.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(se?--ne:++ne),K+=F[0],ne<=0)break;F=this.__patterns.xml.read_match()}return F||(K+=this._input.match(/[\s\S]*/g)[0]),K=K.replace(d.allLineBreaks,`
`),this._create_token(s.STRING,K)}}return null};function M(W){for(var L="",K=0,F=new p(W),R=null;F.hasNext();)if(R=F.match(/([\s]|[^\\]|\\\\)+/g),R&&(L+=R[0]),F.peek()==="\\"){if(F.next(),F.peek()==="x")R=F.match(/x([0-9A-Fa-f]{2})/g);else if(F.peek()==="u")R=F.match(/u([0-9A-Fa-f]{4})/g);else{L+="\\",F.hasNext()&&(L+=F.next());continue}if(!R)return W;if(K=parseInt(R[1],16),K>126&&K<=255&&R[0].indexOf("x")===0)return W;if(K>=0&&K<32){L+="\\"+R[0];continue}else K===34||K===39||K===92?L+="\\"+String.fromCharCode(K):L+=String.fromCharCode(K)}return L}y.prototype._read_string_recursive=function(W,L,K){var F,R;W==="'"?R=this.__patterns.single_quote:W==='"'?R=this.__patterns.double_quote:W==="`"?R=this.__patterns.template_text:W==="}"&&(R=this.__patterns.template_expression);for(var V=R.read(),ne="";this._input.hasNext();){if(ne=this._input.next(),ne===W||!L&&d.newline.test(ne)){this._input.back();break}else ne==="\\"&&this._input.hasNext()?(F=this._input.peek(),F==="x"||F==="u"?this.has_char_escapes=!0:F==="\r"&&this._input.peek(1)===`
`&&this._input.next(),ne+=this._input.next()):K&&(K==="${"&&ne==="$"&&this._input.peek()==="{"&&(ne+=this._input.next()),K===ne&&(W==="`"?ne+=this._read_string_recursive("}",L,"`"):ne+=this._read_string_recursive("`",L,"${"),this._input.hasNext()&&(ne+=this._input.next())));ne+=R.read(),V+=ne}return V},n.exports.Tokenizer=y,n.exports.TOKEN=s,n.exports.positionable_operators=w.slice(),n.exports.line_starters=m.slice()},function(n){var I=RegExp.prototype.hasOwnProperty("sticky");function g(p){this.__input=p||"",this.__input_length=this.__input.length,this.__position=0}g.prototype.restart=function(){this.__position=0},g.prototype.back=function(){this.__position>0&&(this.__position-=1)},g.prototype.hasNext=function(){return this.__position=0&&p=0&&h=p.length&&this.__input.substring(h-p.length,h).toLowerCase()===p},n.exports.InputScanner=g},function(n,I,g){var p=g(8).InputScanner,h=g(3).Token,c=g(10).TokenStream,o=g(11).WhitespacePattern,d={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},i=function(a,r){this._input=new p(a),this._options=r||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};i.prototype.tokenize=function(){this._input.restart(),this.__tokens=new c,this._reset();for(var a,r=new h(d.START,""),s=null,S=[],x=new c;r.type!==d.EOF;){for(a=this._get_next_token(r,s);this._is_comment(a);)x.add(a),a=this._get_next_token(r,s);x.isEmpty()||(a.comments_before=x,x=new c),a.parent=s,this._is_opening(a)?(S.push(s),s=a):s&&this._is_closing(a,s)&&(a.opened=s,s.closed=a,s=S.pop(),a.parent=s),a.previous=r,r.next=a,this.__tokens.add(a),r=a}return this.__tokens},i.prototype._is_first_token=function(){return this.__tokens.isEmpty()},i.prototype._reset=function(){},i.prototype._get_next_token=function(a,r){this._readWhitespace();var s=this._input.read(/.+/g);return s?this._create_token(d.RAW,s):this._create_token(d.EOF,"")},i.prototype._is_comment=function(a){return!1},i.prototype._is_opening=function(a){return!1},i.prototype._is_closing=function(a,r){return!1},i.prototype._create_token=function(a,r){var s=new h(a,r,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return s},i.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},n.exports.Tokenizer=i,n.exports.TOKEN=d},function(n){function I(g){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=g}I.prototype.restart=function(){this.__position=0},I.prototype.isEmpty=function(){return this.__tokens_length===0},I.prototype.hasNext=function(){return this.__position=0&&g/),erb:i.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:i.starting_with(/{%/).until_after(/%}/),django_value:i.starting_with(/{{/).until_after(/}}/),django_comment:i.starting_with(/{#/).until_after(/#}/),smarty:i.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:i.starting_with(/{\*/).until_after(/\*}/),smarty_literal:i.starting_with(/{literal}/).until_after(/{\/literal}/)}}c.prototype=new p,c.prototype._create=function(){return new c(this._input,this)},c.prototype._update=function(){this.__set_templated_pattern()},c.prototype.disable=function(o){var d=this._create();return d._disabled[o]=!0,d._update(),d},c.prototype.read_options=function(o){var d=this._create();for(var i in h)d._disabled[i]=o.templating.indexOf(i)===-1;return d._update(),d},c.prototype.exclude=function(o){var d=this._create();return d._excluded[o]=!0,d._update(),d},c.prototype.read=function(){var o="";this._match_pattern?o=this._input.read(this._starting_pattern):o=this._input.read(this._starting_pattern,this.__template_pattern);for(var d=this._read_template();d;)this._match_pattern?d+=this._input.read(this._match_pattern):d+=this._input.readUntil(this.__template_pattern),o+=d,d=this._read_template();return this._until_after&&(o+=this._input.readUntilAfter(this._until_pattern)),o},c.prototype.__set_templated_pattern=function(){var o=[];this._disabled.php||o.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||o.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||o.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(o.push(this.__patterns.django._starting_pattern.source),o.push(this.__patterns.django_value._starting_pattern.source),o.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||o.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&o.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+o.join("|")+")")},c.prototype._read_template=function(){var o="",d=this._input.peek();if(d==="<"){var i=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&i==="?"&&(o=o||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&i==="%"&&(o=o||this.__patterns.erb.read())}else d==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(o=o||this.__patterns.handlebars_comment.read(),o=o||this.__patterns.handlebars_unescaped.read(),o=o||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(o=o||this.__patterns.django_value.read()),this._excluded.django||(o=o||this.__patterns.django_comment.read(),o=o||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(o=o||this.__patterns.smarty_comment.read(),o=o||this.__patterns.smarty_literal.read(),o=o||this.__patterns.smarty.read()));return o},n.exports.TemplatablePattern=c}],O={};function H(n){var I=O[n];if(I!==void 0)return I.exports;var g=O[n]={exports:{}};return N[n](g,g.exports,H),g.exports}var k=H(0);P=k})();var Y=P;!(q=[],z=function(){return{js_beautify:Y}}.apply(ge,q),z!==void 0&&(We.exports=z))})()},"6eGT":function(We,ge,D){"use strict";function q(z){return null}ge.a=q},"7+5b":function(We,ge,D){We.exports=D.p+"static/v.e7f297d6.svg"},"746U":function(We,ge,D){"use strict";D.d(ge,"f",function(){return q}),D.d(ge,"l",function(){return z}),D.d(ge,"k",function(){return P}),D.d(ge,"j",function(){return Y}),D.d(ge,"g",function(){return N}),D.d(ge,"m",function(){return O}),D.d(ge,"h",function(){return H}),D.d(ge,"n",function(){return k}),D.d(ge,"c",function(){return n}),D.d(ge,"a",function(){return I}),D.d(ge,"i",function(){return g}),D.d(ge,"o",function(){return p}),D.d(ge,"e",function(){return o}),D.d(ge,"d",function(){return d}),D.d(ge,"p",function(){return i}),D.d(ge,"b",function(){return a});function q(r){return Array.isArray(r)}function z(r){return typeof r=="string"}function P(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}function Y(r){return typeof r=="number"&&!isNaN(r)}function N(r){return r===!0||r===!1}function O(r){return typeof r=="undefined"}function H(r){return!k(r)}function k(r){return O(r)||r===null}function n(r,s){if(!r)throw new Error(s?`Unexpected type, expected '${s}'`:"Unexpected type")}function I(r){if(k(r))throw new Error("Assertion Failed: argument is undefined or null");return r}function g(r){return typeof r=="function"}function p(r,s){const S=Math.min(r.length,s.length);for(let x=0;xfunction(){const A=Array.prototype.slice.call(arguments,0);return s(T,A)};let x={};for(const T of r)x[T]=S(T);return x}function i(r){return r===null?void 0:r}function a(r,s="Unreachable"){throw new Error(s)}},"7Cbv":function(We,ge,D){"use strict";var q=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),z=new Uint8Array(16);function P(){if(!q)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return q(z)}var Y=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function N(h){return typeof h=="string"&&Y.test(h)}for(var O=N,H=[],k=0;k<256;++k)H.push((k+256).toString(16).substr(1));function n(h){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=(H[h[c+0]]+H[h[c+1]]+H[h[c+2]]+H[h[c+3]]+"-"+H[h[c+4]]+H[h[c+5]]+"-"+H[h[c+6]]+H[h[c+7]]+"-"+H[h[c+8]]+H[h[c+9]]+"-"+H[h[c+10]]+H[h[c+11]]+H[h[c+12]]+H[h[c+13]]+H[h[c+14]]+H[h[c+15]]).toLowerCase();if(!O(o))throw TypeError("Stringified UUID is invalid");return o}var I=n;function g(h,c,o){h=h||{};var d=h.random||(h.rng||P)();if(d[6]=d[6]&15|64,d[8]=d[8]&63|128,c){o=o||0;for(var i=0;i<16;++i)c[o+i]=d[i];return c}return I(d)}var p=ge.a=g},"7ahc":function(We,ge,D){"use strict";D.d(ge,"a",function(){return S});var q=D("k1fw"),z=D("0Owb"),P=D("+L6B"),Y=D("2/Rp"),N=D("y8nQ"),O=D("Vl3Y"),H=D("tJVT"),k=D("OaEy"),n=D("2fM7"),I=D("q1tI"),g=D.n(I),p=D("VrN/"),h=D.n(p),c=D("p77/"),o=D.n(c),d=D("c5Ni"),i=D.n(d),a=n.a.Option,r={labelCol:{span:4},wrapperCol:{span:20}},s={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};ge.b=function(x){var T=x.callback,A=x.onCancel,w=Object(I.useState)("python"),v=Object(H.a)(w,2),E=v[0],m=v[1];function f(b){m(s[b][1])}function C(b){T(b)}return g.a.createElement(O.a,Object(z.a)({},r,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:C}),g.a.createElement(O.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},g.a.createElement(n.a,{onChange:f},Object.keys(s).map(function(b){return g.a.createElement(a,{key:b,value:b},s[b][0])}))),g.a.createElement(O.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},g.a.createElement(S,{mode:E})),g.a.createElement("div",{className:"flex-container flex-end"},g.a.createElement(Y.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),g.a.createElement(Y.a,{type:"ghost",onClick:A},"\u53D6\u6D88")))};function S(x){var T=x.value,A=x.onChange,w=x.mode,v=x.options,E=v===void 0?{}:v,m=Object(I.useRef)(),f=Object(I.useState)(),C=Object(H.a)(f,2),b=C[0],y=C[1];return Object(I.useEffect)(function(){if(b){function M(W){var L=W.getValue();A&&A(L)}return b.on("change",M),function(){b.off("change",M)}}},[b,A]),Object(I.useEffect)(function(){b&&b.setOption("mode",w)},[b,w]),Object(I.useEffect)(function(){b&&((T!==b.getValue()||T==="")&&setTimeout(function(){b.setValue(T||" ")},300))},[b,T]),Object(I.useEffect)(function(){if(m.current&&!b){var M=h.a.fromTextArea(m.current,Object(q.a)({mode:w,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},E));y(M)}},[m.current,b]),g.a.createElement("div",{className:"my-codemirror-container"},g.a.createElement("textarea",{ref:m}))}},"7qur":function(We,ge,D){"use strict";D.d(ge,"m",function(){return z}),D.d(ge,"s",function(){return P}),D.d(ge,"h",function(){return Y}),D.d(ge,"o",function(){return N}),D.d(ge,"n",function(){return O}),D.d(ge,"l",function(){return H}),D.d(ge,"b",function(){return k}),D.d(ge,"q",function(){return n}),D.d(ge,"t",function(){return I}),D.d(ge,"v",function(){return g}),D.d(ge,"w",function(){return p}),D.d(ge,"u",function(){return h}),D.d(ge,"p",function(){return c}),D.d(ge,"f",function(){return o}),D.d(ge,"a",function(){return d}),D.d(ge,"j",function(){return i}),D.d(ge,"k",function(){return a}),D.d(ge,"d",function(){return r}),D.d(ge,"g",function(){return s}),D.d(ge,"c",function(){return S}),D.d(ge,"e",function(){return x}),D.d(ge,"i",function(){return T}),D.d(ge,"r",function(){return A});var q=D("ErOA");function z(w){return Object(q.c)("mypractices/".concat(w,".json"),{hidePopLogin:!0})}function P(w,v){return Object(q.f)("mypractices/".concat(w,"/code_submit.json"),v)}function Y(w,v){return Object(q.c)("mypractices/".concat(w,"/code_debug.json"),v)}function N(w,v){return Object(q.c)("mypractices/".concat(w,"/submit_records.json"),v)}function O(w){return Object(q.c)("mypractices/record_detail.json",{id:w})}function H(w,v){return Object(q.c)("mypractices/".concat(w,"/result.json"),{mode:v})}function k(w,v){return Object(q.f)("mypractices/".concat(w,"/add_notes.json"),v)}function n(w,v){return Object(q.f)("mypractices/".concat(w,"/restore_initial_code.json"),v)}function I(w,v){return Object(q.f)("mypractices/".concat(w,"/sync_code.json"),v)}function g(w,v){return Object(q.f)("mypractices/".concat(w,"/update_code.json"),v)}function p(w){return Object(q.f)("mypractices/".concat(w,"/initial_codes.json"))}function h(w,v){return Object(q.f)("discusses/".concat(w,"/plus.json"),v)}function c(w){return Object(q.c)("practices/practices_list.json",w)}function o(w,v){return Object(q.c)("practices/".concat(w,"/question_solution_articles"),v)}function d(w,v){return Object(q.f)("practices/".concat(w,"/question_solution_articles"),v)}function i(w,v){return Object(q.g)("practices/".concat(w,"/question_solution_articles/").concat(v==null?void 0:v.active),v)}function a(w,v){return Object(q.c)("practices/".concat(w,"/question_solution_articles/").concat(v==null?void 0:v.active,"/edit"),v)}function r(w,v){return Object(q.c)("practices/".concat(w,"/question_solution_articles/").concat(v==null?void 0:v.active),v)}function s(w,v){return Object(q.f)("practices/".concat(w,"/question_solution_articles/").concat(v==null?void 0:v.active,"/set_authority_or_excellent"),v)}function S(w,v){return Object(q.f)("practices/".concat(w,"/question_solution_articles/").concat(v==null?void 0:v.active,"/praise_or_treads"),v)}function x(w,v){return Object(q.f)("practices/".concat(w,"/question_solution_articles/").concat(v==null?void 0:v.active,"/hide"))}function T(w,v){return Object(q.b)("practices/".concat(w,"/question_solution_articles/").concat(v==null?void 0:v.active),v)}function A(w,v){return Object(q.f)("mypractices/".concat(w,"/update_practice_time_sum"),v)}},"815F":function(We,ge,D){"use strict";D.d(ge,"e",function(){return H}),D.d(ge,"c",function(){return n}),D.d(ge,"d",function(){return I}),D.d(ge,"a",function(){return p}),D.d(ge,"f",function(){return h}),D.d(ge,"b",function(){return c});var q=D("KQm4"),z=D("VTBJ"),P=D("Ff2n"),Y=D("Zm9Q"),N=D("Kwbf"),O=D("OZM5");function H(o,d){return o!=null?o:d}function k(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=new Map;function i(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(a||[]).forEach(function(s){var S=s.key,x=s.children;Object(N.a)(S!=null,"Tree node must have a certain key: [".concat(r).concat(S,"]"));var T=String(S);Object(N.a)(!d.has(T)||S===null||S===void 0,"Same 'key' exist in the Tree: ".concat(T)),d.set(T,!0),i(x,"".concat(r).concat(T," > "))})}i(o)}function n(o){function d(i){var a=Object(Y.a)(i);return a.map(function(r){if(!Object(O.i)(r))return Object(N.a)(!r,"Tree/TreeNode can only accept TreeNode as children."),null;var s=r.key,S=r.props,x=S.children,T=Object(P.a)(S,["children"]),A=Object(z.a)({key:s},T),w=d(x);return w.length&&(A.children=w),A}).filter(function(r){return r})}return d(o)}function I(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=new Set(d===!0?[]:d),a=[];function r(s){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return s.map(function(x,T){var A=Object(O.h)(S?S.pos:"0",T),w=H(x.key,A),v=Object(z.a)(Object(z.a)({},x),{},{parent:S,pos:A,children:null,data:x,isStart:[].concat(Object(q.a)(S?S.isStart:[]),[T===0]),isEnd:[].concat(Object(q.a)(S?S.isEnd:[]),[T===s.length-1])});return a.push(v),d===!0||i.has(w)?v.children=r(x.children||[],v):v.children=[],v})}return r(o),a}function g(o,d,i){var a;i?typeof i=="string"?a=function(S){return S[i]}:typeof i=="function"&&(a=function(S){return i(S)}):a=function(S,x){return H(S.key,x)};function r(s,S,x){var T=s?s.children:o,A=s?Object(O.h)(x.pos,S):"0";if(s){var w=a(s,A),v={node:s,index:S,pos:A,key:w,parentPos:x.node?x.pos:null,level:x.level+1};d(v)}T&&T.forEach(function(E,m){r(E,m,{node:s,pos:A,level:x?x.level+1:-1})})}r(null)}function p(o){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=d.initWrapper,a=d.processEntity,r=d.onProcessFinished,s=arguments.length>2?arguments[2]:void 0,S={},x={},T={posEntities:S,keyEntities:x};return i&&(T=i(T)||T),g(o,function(A){var w=A.node,v=A.index,E=A.pos,m=A.key,f=A.parentPos,C=A.level,b={node:w,index:v,key:m,pos:E,level:C},y=H(m,E);S[E]=b,x[y]=b,b.parent=S[f],b.parent&&(b.parent.children=b.parent.children||[],b.parent.children.push(b)),a&&a(b,T)},s),r&&r(T),T}function h(o,d){var i=d.expandedKeys,a=d.selectedKeys,r=d.loadedKeys,s=d.loadingKeys,S=d.checkedKeys,x=d.halfCheckedKeys,T=d.dragOverNodeKey,A=d.dropPosition,w=d.keyEntities,v=w[o],E={eventKey:o,expanded:i.indexOf(o)!==-1,selected:a.indexOf(o)!==-1,loaded:r.indexOf(o)!==-1,loading:s.indexOf(o)!==-1,checked:S.indexOf(o)!==-1,halfChecked:x.indexOf(o)!==-1,pos:String(v?v.pos:""),dragOver:T===o&&A===0,dragOverGapTop:T===o&&A===-1,dragOverGapBottom:T===o&&A===1};return E}function c(o){var d=o.data,i=o.expanded,a=o.selected,r=o.checked,s=o.loaded,S=o.loading,x=o.halfChecked,T=o.dragOver,A=o.dragOverGapTop,w=o.dragOverGapBottom,v=o.pos,E=o.active,m=Object(z.a)(Object(z.a)({},d),{},{expanded:i,selected:a,checked:r,loaded:s,loading:S,halfChecked:x,dragOver:T,dragOverGapTop:A,dragOverGapBottom:w,pos:v,active:E});return"props"in m||Object.defineProperty(m,"props",{get:function(){return Object(N.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),o}}),m}},"8EBN":function(We,ge,D){(function(q){q(D("VrN/"))})(function(q){"use strict";q.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var z=0;z-1&&Y.substring(H+1,Y.length);if(k)return q.findModeByExtension(k)},q.findModeByName=function(Y){Y=Y.toLowerCase();for(var N=0;N0)){ye.next=20;break}return ye.next=18,Promise.all(ce);case 18:pe=ye.sent,fe+=re;case 20:ye.next=13;break;case 22:return ye.next=24,Object(k.a)("/api/attachments/multipart_upload_end",{method:"POST",body:Object(q.a)({fileName:xe.name,chunkCount:Be,uploadId:ft},S)});case 24:le=ye.sent,le.object?(R("success"),J(),T&&T(Object(q.a)(Object(q.a)({},le),{},{file:xe,percent:100}))):(R("error"),Fe("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),J(),A&&A(xe.name));case 26:case"end":return ye.stop()}},tt)})(),"t0",11);case 11:qe.next=19;break;case 13:qe.prev=13,qe.t1=qe.catch(9),R("error"),Fe("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),J(),A&&A(xe.name);case 19:case"end":return qe.stop()}},Re,null,[[9,13]])}));return function(xe){return be.apply(this,arguments)}}(),Ge=Object(O.useCallback)(function(){ue.current=!0,G.current&&(G.current.abort(),x&&x())},[x]),Je=function(Re){var xe,Ce,Be=Re==null||((xe=Re.target)===null||xe===void 0||((Ce=xe.files)===null||Ce===void 0))?void 0:Ce[0];if(U(Be),F="ready",!Be)return;if(v){var Xe=v(Be);Xe||we(Be),J();return}we(Be)};return H.a.createElement(O.Fragment,null,H.a.createElement("input",{type:"file",id:ee.current,style:{display:"none"},onChange:Je,accept:f}),H.a.createElement("label",{className:g()(h.a.upload,C),htmlFor:ee.current,style:y},m))};ge.a=Object(O.forwardRef)(c)},"9Bee":function(We,ge,D){"use strict";var q=D("DYRE"),z=D("zeV3"),P=D("+L6B"),Y=D("2/Rp"),N=D("k1fw"),O=D("9og8"),H=D("tJVT"),k=D("WmNS"),n=D.n(k),I=D("q1tI"),g=D.n(I),p=D("vg9a"),h=D("DlQD"),c=D.n(h),o=D("rUJ1");function d(fe,re){var ie=fe.match(/^(\s+)(?:```)/);if(ie===null)return re;var ce=ie[1];return re.split(`
`).map(function(pe){var le=pe.match(/^\s+/);if(le===null)return pe;var he=Object(H.a)(le,1),ye=he[0];return ye.length>=ce.length?pe.slice(ce.length):pe}).join(`
`)}var i=[],a=[""],r=new c.a.Renderer,s=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function S(){i.length=0,a=[""]}var x={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function T(fe,re,ie,ce){if(re>=fe.length||fe[re].level<=ie)return re;var pe=fe[re];ce.push("- "+pe.text+""),re++;var le=[];return re=T(fe,re,pe.level,le),le.length>0&&(ce.push("
"),le.forEach(function(he){ce.push(he)}),ce.push("
")),ce.push(" "),re=T(fe,re,ie,ce),re}function A(){return T(i,0,0,a),a.push("
"),a.join("")}var w={heading:function(re){var ie=s.exec(re);if(ie)return{type:"heading",raw:ie[0],depth:ie[1].length,text:ie[2]}},fences:function(re){var ie=this.rules.block.fences.exec(re);if(ie){var ce=ie[0],pe=d(ce,ie[3]||""),le=ie[2]?ie[2].trim():ie[2];if(["latex","katex","math"].indexOf(le)>=0){var he=m(),ye=pe;pe=he,f[he]={type:"block",expression:ye}}return{type:"code",raw:ce,lang:le,text:pe}}}},v=/(?:\${2})([^\n`]+?)(?:\${2})/gi,E=0,m=function(){return"__special_katext_id_".concat(E++,"__")},f={};function C(){return f}function b(){E=0,f={}}function y(fe){return fe=fe.replace(v,function(re,ie){var ce=m();return f[ce]={type:"inline",expression:ie},ce}),fe}var M=r.listitem;r.listitem=function(fe){return M(y(fe))};var W=r.paragraph;r.paragraph=function(fe){return W(y(fe))};var L=r.tablecell;r.tablecell=function(fe,re){return L(y(fe),re)},r.code=function(fe,re,ie){var ce=(re||"").match(/\S*/)[0];return ce?["latex","katex","math"].indexOf(ce)>=0?"".concat(fe,"
"):'
').concat(ie?fe:Object(o.escape)(fe,!0),`
`):''+(ie?fe:Object(o.escape)(fe,!0))+"
"},r.heading=function(fe,re,ie){var ce=this.options.headerPrefix+ie.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return i.push({anchor:ce,level:re,text:fe}),"'+fe+""},c.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),c.a.use({tokenizer:w,renderer:r});var K=c.a,F=D("SJMd"),R=D("ulZh"),V=D.n(R),ne=D("m3rI"),se=D("Oy/b"),Se=D("p5ED"),Le=D("ErOA"),Ae=D("STEk");/* **********************************
cropro version 1.2.0
@license SEE LICENSE IN LICENSE
copyright Alan Mendelevich
see README and LICENSE for details
********************************** *//*! *****************************************************************************
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.
***************************************************************************** */var Pe=function(fe,re){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ce){ie.__proto__=ce}||function(ie,ce){for(var pe in ce)Object.prototype.hasOwnProperty.call(ce,pe)&&(ie[pe]=ce[pe])})(fe,re)};function Fe(fe,re){if(typeof re!="function"&&re!==null)throw new TypeError("Class extends value "+String(re)+" is not a constructor or null");function ie(){this.constructor=fe}Pe(fe,re),fe.prototype=re===null?Object.create(re):(ie.prototype=re.prototype,new ie)}function je(fe,re,ie,ce){return new(ie||(ie=Promise))(function(pe,le){function he(Oe){try{_e(ce.next(Oe))}catch(ke){le(ke)}}function ye(Oe){try{_e(ce.throw(Oe))}catch(ke){le(ke)}}function _e(Oe){var ke;Oe.done?pe(Oe.value):(ke=Oe.value,ke instanceof ie?ke:new ie(function($e){$e(ke)})).then(he,ye)}_e((ce=ce.apply(fe,re||[])).next())})}function Te(fe,re){var ie,ce,pe,le,he={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return le={next:ye(0),throw:ye(1),return:ye(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function ye(_e){return function(Oe){return function(ke){if(ie)throw new TypeError("Generator is already executing.");for(;he;)try{if(ie=1,ce&&(pe=2&ke[0]?ce.return:ke[0]?ce.throw||((pe=ce.return)&&pe.call(ce),0):ce.next)&&!(pe=pe.call(ce,ke[1])).done)return pe;switch(ce=0,pe&&(ke=[2&ke[0],pe.value]),ke[0]){case 0:case 1:pe=ke;break;case 4:return he.label++,{value:ke[1],done:!1};case 5:he.label++,ce=ke[1],ke=[0];continue;case 7:ke=he.ops.pop(),he.trys.pop();continue;default:if(!(pe=he.trys,(pe=pe.length>0&&pe[pe.length-1])||ke[0]!==6&&ke[0]!==2)){he=0;continue}if(ke[0]===3&&(!pe||ke[1]>pe[0]&&ke[1]0&&ie>0){var ce=new Re(re,ie),pe=ce.ratio>=1?20:ce.getHorizontalLength(20),le=ce.ratio<1?20:ce.getVerticalLength(20),he=document.createElementNS("http://www.w3.org/2000/svg","svg");he.setAttribute("xmlns","http://www.w3.org/2000/svg"),he.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(he);var ye=U.createDefs();he.appendChild(ye);var _e=U.createElement("clipPath",[["id","text-bg-clip"]]);ye.appendChild(_e);var Oe=U.createPath(U.getHollowRectanglePath((24-pe)/2,(24-le)/2,pe,le,(24-pe)/2+2,(24-le)/2+2,pe-4,le-4));he.appendChild(Oe);var ke=U.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);ke.appendChild(U.createTSpan(re+":"+ie)),he.appendChild(ke);var $e=ke.getBBox();U.setAttributes(ke,[["x",((24-$e.width)/2).toString()],["y",((24-$e.height)/2-$e.y).toString()]]);var ot=U.createPath(U.getHollowRectanglePath(0,0,24,24,(24-Math.ceil($e.width))/2,(24-Math.ceil($e.height))/2,Math.ceil($e.width),Math.ceil($e.height)));return _e.appendChild(ot),U.setAttributes(Oe,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(he),he.outerHTML}return''},fe}(),Ce=function(fe){function re(ie,ce,pe){var le=fe.call(this,ie,ce)||this;return le.isDropdownOpen=!1,le.onClick=le.dropdownButtonClicked,le.dropdownButtons=pe,le}return Fe(re,fe),re.prototype.setupDropdown=function(){var ie=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(ce){ce.className=ie.className,ce.colorsClassName=ie.colorsClassName,ie.dropdownBlock.appendChild(ce.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},re.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},re.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},re.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},re.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},re.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},re}(Je),Be=function(){function fe(re,ie){this.GRIP_SIZE=10,this.color=re,this.fillColor=ie,this.visual=U.createGroup(),this.visual.appendChild(U.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(U.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return fe.prototype.ownsTarget=function(re){return re===this.visual||re===this.visual.childNodes[0]||re===this.visual.childNodes[1]},fe.prototype.setCenter=function(re,ie){this.visual.childNodes.forEach(function(ce){return U.setAttributes(ce,[["cx",re.toString()],["cy",ie.toString()]])})},fe}(),Xe=function(){function fe(re,ie,ce,pe){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=re,this.canvasHeight=ie,this.margin=ce,this.container=pe,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(fe.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(re){this._aspectRatio=re,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(re){this._isGridVisible=re,this.gridContainer&&U.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(re){this._zoomFactor=re,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),fe.prototype.open=function(){var re=this;this.cropShadeElement=U.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=U.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var ie=0;iethis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-ie.height/2),U.setAttributes(this.cropRectElement,[["x",ie.x.toString()],["y",ie.y.toString()],["width",ie.width.toString()],["height",ie.height.toString()]]);var ce=ie.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(le,he){var ye=ie.y+ce*(he+1);U.setAttributes(le,[["x1",""+ie.x],["y1",""+ye],["x2",""+(ie.x+ie.width)],["y2",""+ye]])});var pe=ie.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(le,he){var ye=ie.x+pe*(he+1);U.setAttributes(le,[["x1",""+ye],["y1",""+ie.y],["x2",""+ye],["y2",""+(ie.y+ie.height)]])}),U.setAttributes(this.cropShadeElement,[["d",U.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,ie.x,ie.y,ie.width,ie.height)]]),this.topLeftGrip.setCenter(ie.x,ie.y),this.topRightGrip.setCenter(ie.x+ie.width,ie.y),this.bottomLeftGrip.setCenter(ie.x,ie.y+ie.height),this.bottomRightGrip.setCenter(ie.x+ie.width,ie.y+ie.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},fe.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},fe.prototype.clientToLocalCoordinates=function(re,ie){var ce=this.container.getBoundingClientRect();return{x:re-ce.left+this.margin,y:ie-ce.top+this.margin}},fe.prototype.onPointerDown=function(re){this.container.setPointerCapture(re.pointerId),this.previousPoint=this.clientToLocalCoordinates(re.clientX,re.clientY),this.cropRectElement===re.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(re.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(re.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(re.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(re.target)&&(this.activeGrip=this.bottomRightGrip)},fe.prototype.onPointerMove=function(re){if(this.isMoving)this.move(this.clientToLocalCoordinates(re.clientX,re.clientY));else if(this.activeGrip){var ie=this.clientToLocalCoordinates(re.clientX,re.clientY);this.resize(ie)}re.preventDefault()},fe.prototype.onPointerUp=function(re){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(re.pointerId)},fe.prototype.move=function(re){var ie=re.x-this.previousPoint.x,ce=re.y-this.previousPoint.y;this.zoomFactor!==1&&(ie=-ie/this.zoomFactor,ce=-ce/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+ie),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+ce),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=re},fe.prototype.resize=function(re){var ie=Object.assign({},this.cropRect),ce=re.x-this.previousPoint.x,pe=re.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:ie.x+cethis.canvasWidth*this.zoomFactor&&(ce=this.canvasWidth*this.zoomFactor-ie.width),ie.width+=ce}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(ie.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(ce),ie.height=this.aspectRatio.getVerticalLength(ie.width)):(ie.y+=pe,ie.height=this.cropRect.y+this.cropRect.height-ie.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?ie.height=this.aspectRatio.getVerticalLength(ie.width):ie.height+=pe}ie.width<10&&(ie.x=this.cropRect.x,ie.width=10),ie.height<10&&(ie.y=this.cropRect.y,ie.height=10),this.previousPoint=re,ie.x>=this.margin&&ie.y>=this.margin&&ie.x-this.margin+ie.width<=this.canvasWidth&&ie.y-this.margin+ie.height<=this.canvasHeight&&(this.cropRect=ie,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},fe.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var re=this.cropRect.x+this.cropRect.width/2,ie=this.cropRect.y+this.cropRect.height/2,ce=this.aspectRatio.getHorizontalLength(this.cropRect.height),pe=this.aspectRatio.getVerticalLength(this.cropRect.width);ce/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=re-this.cropRect.width/2,this.cropRect.y=ie-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},fe.prototype.getRescaledRect=function(re,ie,ce,pe,le,he){var ye=ce/re,_e=pe/ie;return{x:(le.x-he)*ye+he,y:(le.y-he)*_e+he,width:le.width*ye,height:le.height*_e}},fe.prototype.scaleCanvas=function(re,ie){var ce=this.getRescaledRect(this.canvasWidth,this.canvasHeight,re,ie,this.cropRect,this.margin);this.canvasWidth=re,this.canvasHeight=ie,this.onCropChange&&this.onCropChange(ce),this.setCropRectangle(ce)},fe}(),qe=function(){function fe(re){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=re,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(fe.prototype,"angle",{get:function(){return this._angle},set:function(re){this._angle=re,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),fe.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},fe.prototype.onPointerDown=function(re){this.controlContainer.setPointerCapture(re.pointerId),this.isDragging=!0,this.previousPoint={x:re.clientX,y:re.clientY}},fe.prototype.onPointerMove=function(re){this.isDragging&&(this.onAngleChange&&this.onAngleChange((re.clientX-this.previousPoint.x)/5),this.previousPoint.x=re.clientX)},fe.prototype.onPointerUp=function(re){this.isDragging&&this.onAngleChange&&this.onAngleChange((re.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(re.pointerId)},fe.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var re=this.angleLabelText.getBBox();U.setAttributes(this.angleLabelElement,[["x",((this.width-re.width)/2).toString()],["y",(this.height/2).toString()]])}},fe.prototype.positionScaleShape=function(){if(this.scaleShape){var re=this.scaleShape.transform.baseVal.getItem(0);re.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(re,0)}},fe.prototype.getVisual=function(){var re=document.createElementNS("http://www.w3.org/2000/svg","svg");re.setAttribute("xmlns","http://www.w3.org/2000/svg"),re.setAttribute("width",this.width+"px"),re.setAttribute("height",this.height+"px"),re.setAttribute("viewBox","0 0 "+this.width+" "+this.height),re.style.flexShrink="0",document.body.appendChild(re);for(var ie="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,ce=1;ce<=this.width/5+10;ce++){var pe=ce%5==0?this.height/3:this.height/6;ie+="h4v"+-pe+"h1v"+pe}ie+="v1H0Z",this.scaleShape=U.createPath(ie);var le=U.createTransform();this.scaleShape.transform.baseVal.appendItem(le),re.appendChild(this.scaleShape),this.angleLabelElement=U.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=U.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var he=U.createTSpan("");return he.innerHTML="°",this.angleLabelElement.appendChild(he),re.appendChild(this.angleLabelElement),document.body.removeChild(re),re},fe}(),tt=function(){function fe(){this.naturalSize=!1,this.imageType="image/png"}return fe.prototype.rasterize=function(re,ie,ce,pe,le,he,ye){var _e=this;return new Promise(function(Oe){var ke=document.createElement("canvas");ke.width=re.width.baseVal.value-2*pe,ke.height=re.height.baseVal.value-2*pe;var $e=1,ot=1;_e.naturalSize===!0?($e=ie.naturalWidth/(re.width.baseVal.value-2*pe)/he,ot=ie.naturalHeight/(re.height.baseVal.value-2*pe)/ye,ke.width=ie.naturalWidth/he,ke.height=ie.naturalHeight/ye):_e.width!==void 0&&_e.height!==void 0&&($e=_e.width/ce.width,ot=_e.height/ce.height,ke.width*=$e,ke.height*=ot);var pt=ke.getContext("2d");pt.translate(ke.width/2,ke.height/2),pt.rotate(le*Math.PI/180),pt.scale(he,ye),pt.translate(-ke.width/2,-ke.height/2),pt.drawImage(ie,0,0,ke.width,ke.height);var mt=document.createElement("canvas");mt.width=ce.width*$e,mt.height=ce.height*ot,mt.getContext("2d").putImageData(pt.getImageData((ce.x-pe)*$e,(ce.y-pe)*ot,ce.width*$e,ce.height*ot),0,0),Oe(mt.toDataURL(_e.imageType,_e.imageQuality))})},fe}(),ht=function(){function fe(re){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=fe.instanceCounter++,this.styles=new G(this.instanceNo),this.target=re,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(fe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(re){this._zoomToCropEnabled=re,re?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(re){this._isGridVisible=re,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"gridLines",{get:function(){return this._gridLines},set:function(re){this._gridLines=re,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(re){this._rotationAngle=re,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"aspectRatio",{get:function(){var re;return(re=this._aspectRatio)!==null&&re!==void 0?re:this.aspectRatios[0]},set:function(re){this._aspectRatio=re},enumerable:!1,configurable:!0}),fe.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},fe.prototype.show=function(){this.showUI(),this.open()},fe.prototype.close=function(re){re===void 0&&(re=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),re||this.closeEventListeners.forEach(function(ie){return ie()}),this._isOpen=!1)},fe.prototype.addRenderEventListener=function(re){this.renderEventListeners.push(re)},fe.prototype.removeRenderEventListener=function(re){this.renderEventListeners.indexOf(re)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(re),1)},fe.prototype.addCloseEventListener=function(re){this.closeEventListeners.push(re)},fe.prototype.removeCloseEventListener=function(re){this.closeEventListeners.indexOf(re)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(re),1)},fe.prototype.setupResizeObserver=function(){var re=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){re.resize(re.target.clientWidth,re.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},fe.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var re=1*this.target.clientWidth/this.target.clientHeight,ie=this.contentDiv.clientWidth/re>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*re:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,ce=ie+2*this.CANVAS_MARGINre+this.CANVAS_MARGIN?this.target.offsetTop-(re+this.CANVAS_MARGIN):0;this.coverDiv.style.top=ie+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},fe.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},fe.prototype.addTopToolbar=function(){var re=this;this.topToolbar=new J,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var ie=new Ge;ie.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(ie);var ce=[];this.aspectRatios.forEach(function(ot){var pt=new Je(xe.getIcon(ot.horizontal,ot.vertical),ot.horizontal===0&&ot.vertical===0?"FREE":ot.horizontal+":"+ot.vertical);pt.onClick=function(){return re.ratioButtonClicked(ot)},ce.push(pt)}),this.aspectRatioButton=new Ce(xe.getIcon(0,0),"Aspect ratio",ce),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,ie.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var pe=new Je('',"Toggle grid");pe.isActive=this.isGridVisible,pe.onClick=function(){re.isGridVisible=!re.isGridVisible,pe.isActive=re.isGridVisible},ie.addButton(pe);var le=new Je('',"Zoom to selection");if(le.isActive=this.zoomToCropEnabled,le.onClick=function(){re.zoomToCropEnabled=!re.zoomToCropEnabled,le.isActive=re.zoomToCropEnabled},ie.addButton(le),!Z.isLicensed){var he=new be;this.topToolbar.addElementBlock(he);var ye=document.createElement("div");ye.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var _e=document.createElement("a");_e.style.color="currentColor",_e.href="https://markerjs.com/products/cropro",_e.target="_blank",_e.innerHTML='',ye.appendChild(_e),he.addElement(ye)}var Oe=new Ge;Oe.minWidth=3*this.toolbarHeight+"px",Oe.contentAlign="end",this.topToolbar.addButtonBlock(Oe);var ke=new Je('',"OK");ke.onClick=this.startRenderAndClose,Oe.addButton(ke),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(ke.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var $e=new Je('',"Close");$e.onClick=this.close,Oe.addButton($e),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&($e.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},fe.prototype.addBottomToolbar=function(){var re=this;this.bottomToolbar=new J,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var ie=new Ge;ie.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(ie);var ce=new Je('',"Rotate left");ce.onClick=this.rotateLeftButtonClicked,ie.addButton(ce);var pe=new Je('',"Rotate right");pe.onClick=this.rotateRightButtonClicked,ie.addButton(pe);var le=new be;le.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(le),this.straightener=new qe("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Oe){re.rotateBy(Oe),re.straightener.angle=re.rotationAngle},le.addElement(this.straightener.getUI());var he=new Ge;he.minWidth=2*this.toolbarHeight+"px",he.contentAlign="end",this.bottomToolbar.addButtonBlock(he);var ye=new Je('',"Flip horizontal");ye.onClick=this.flipHorizontallyButtonClicked,he.addButton(ye);var _e=new Je('',"Flip vertical");_e.onClick=this.flipVerticallyButtonClicked,he.addButton(_e)},fe.prototype.ratioButtonClicked=function(re){this.aspectRatio=re,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},fe.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=xe.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},fe.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Re(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},fe.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},fe.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},fe.prototype.restoreState=function(re){if(re){var ie=this.cropLayer.getRescaledRect(re.width,re.height,this.imageWidth,this.imageHeight,re.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(ie),this.cropRectChanged(ie),this.flippedHorizontally=re.flippedHorizontally,this.flippedVertically=re.flippedVertically,this.applyFlip(),this.rotationAngle=re.rotationAngle,this.applyRotation()}},fe.prototype.clientToLocalCoordinates=function(re,ie){var ce=this.cropImage.getBoundingClientRect();return{x:re-ce.left,y:ie-ce.top}},fe.prototype.onWindowResize=function(){this.positionUI()},fe.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var re=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=re+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},fe.prototype.rotateLeftButtonClicked=function(){var re=this.rotationAngle-90;this.rotationAngle%90!=0&&(re+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(re)},fe.prototype.rotateRightButtonClicked=function(){var re=this.rotationAngle+90;this.rotationAngle%90!=0&&(re-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(re)},fe.prototype.rotateTo=function(re){re=(re=re>180?re-360:re)<=-180?re+360:re,this.rotationAngle=re,this.applyRotation()},fe.prototype.rotateBy=function(re){this.rotateTo((this.rotationAngle+re)%360)},fe.prototype.applyRotation=function(){var re=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var ie=this.editingTargetRotationContainer.transform.baseVal.getItem(0);ie.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(ie,0);var ce=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/ce.width,this.imageHeight/ce.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=re},fe.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},fe.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},fe.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},fe.prototype.startRenderAndClose=function(){return je(this,void 0,void 0,function(){var re,ie;return Te(this,function(ce){switch(ce.label){case 0:return[4,this.render()];case 1:return re=ce.sent(),ie=this.getState(),this.renderEventListeners.forEach(function(pe){return pe(re,ie)}),this.close(!0),[2]}})})},fe.prototype.render=function(){return je(this,void 0,void 0,function(){var re;return Te(this,function(ie){switch(ie.label){case 0:return(re=new tt).naturalSize=this.renderAtNaturalSize,re.imageType=this.renderImageType,re.imageQuality=this.renderImageQuality,re.width=this.renderWidth,re.height=this.renderHeight,this.unzoomFromCrop(),U.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,re.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return ie.sent(),[4,re.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,ie.sent()]}})})},fe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ue("toolbar",`
width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.toolbarHeight+`px;
box-sizing: content-box;
overflow: hidden;
line-height: 0px;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ue("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ue("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var re=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ue("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*re)+`px;
height: `+(this.toolbarHeight-2*re)+`px;
padding: `+re+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ue("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ue("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new ee("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new ee("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new ue("toolbar_dropdown",`
position: absolute;
max-width: `+4*this.toolbarHeight+`px;
z-index: 20;
white-space: normal;
box-sizing: content-box;
box-shadow: 3px 3px rgba(33, 33, 33, 0.1);
margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px;
line-height: 0px;
`)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new ue("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new ue("toolbar_straightener_block",`
display: flex;
overflow: hidden;
justify-content: center;
-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
`)),this.toolbarStraightenerStyleClass=this.styles.addClass(new ue("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*re)+`px;
padding: `+re+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new ue("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},fe.instanceCounter=0,fe}(),ft=D("8hTe"),Ne=D.n(ft),Ue=/]*>/g;function Ze(fe){var re=document.createElement("div");return re.innerHTML=fe,re.childNodes.length===0?"":re.childNodes[0].nodeValue}var et=ge.a=function(fe){var re=fe.value,ie=re===void 0?"":re,ce=fe.edit,pe=ce===void 0?!1:ce,le=fe.className,he=fe.showTextOnly,ye=fe.showLines,_e=fe.replaces,Oe=fe.zoomImg,ke=fe.hasMask,$e=fe.style,ot=$e===void 0?{}:$e,pt=fe.stylesPrev,mt=pt===void 0?{}:pt,qt=String(ie),xt=Object(I.useRef)(),Ct=Object(I.useRef)(),Pt=Object(I.useState)(""),Rt=Object(H.a)(Pt,2),Gt=Rt[0],On=Rt[1],kt=Object(I.useState)("office"),Un=Object(H.a)(kt,2),An=Un[0],en=Un[1],wn=function(){var $=new ht(Ct.current);$.displayMode="popup",$.addRenderEventListener(function(){var te=Object(O.a)(n.a.mark(function ve(Ie){var He;return n.a.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return xt.current.style.display="none",ut.next=3,Object(Le.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Ie}});case 3:He=ut.sent,He!=null&&He.id&&_e(Ct.current.getAttribute("src").replace(ne.a.API_SERVER,""),"/api/attachments/".concat(He==null?void 0:He.id,"?type=").concat(He.content_type));case 5:case"end":return ut.stop()}},ve)}));return function(ve){return te.apply(this,arguments)}}()),$.show()},Wt=function(){var $=new Ae.a(Ct.current);$.settings.displayMode="popup",$.addEventListener("render",function(){var te=Object(O.a)(n.a.mark(function ve(Ie){var He;return n.a.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if(xt.current.style.display="none",!Ct.current){ut.next=6;break}return ut.next=4,Object(Le.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Ie.dataUrl}});case 4:He=ut.sent,He!=null&&He.id&&_e(Ct.current.getAttribute("src").replace(ne.a.API_SERVER,""),"/api/attachments/".concat(He==null?void 0:He.id,"?type=").concat(He.content_type));case 6:case"end":return ut.stop()}},ve)}));return function(ve){return te.apply(this,arguments)}}()),$.show(),window.markerArea=$},At=Object(I.useMemo)(function(){xt.current&&(xt.current.style.zIndex=-1);try{var X=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,$=/\"\/api\/attachments\/|\"\/attachments\/download\//g,te=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;qt=qt.replace(X,"("+ne.a.API_SERVER+"/api/attachments/").replace($,'"'+ne.a.API_SERVER+"/api/attachments/").replace(te,'"'+ne.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(ct){}var ve=K(qt),Ie=C();if(qt.match(/\[TOC\]/)&&(ve=ve.replace("[TOC]
",A()),S()),ve=ve.replace(/(__special_katext_id_\d+__)/g,function(ct,ut){var ze=Ie[ut],gt=ze.type,Kt=ze.expression;return Object(se.renderToString)(Ze(Kt)||"",{displayMode:gt==="block",throwOnError:!1,output:"html"})}),ve=ve.replace(/▁/g,"\u2581\u2581\u2581"),b(),he){var He=document.createElement("div");return He.innerHTML=ve,He.innerText}return setTimeout(function(){return de()},500),ve},[qt]),Zt=Object(I.useRef)();x.WebkitLineClamp=ye,ye&&(ot=Object(N.a)(Object(N.a)({},ot),x));function Ee(X){var $=X.target;if($.tagName.toUpperCase()==="IMG"){if(Oe){var te=$.getAttribute("src");On(te),en("image")}}else if($.tagName.toUpperCase()==="A"){var ve=$.getAttribute("href");if(ve.indexOf("office")>-1)X.preventDefault(),On(ve),en("office");else if(ve.indexOf("application/pdf")>-1)X.preventDefault(),On(ve),en("pdf");else if(ve.indexOf("text/html")>-1)X.preventDefault(),On(ve),en("html");else if(ve.startsWith("#")){X.preventDefault();var Ie=document.getElementById(ve.replace("#",""));Ie&&Ie.scrollIntoView(!0)}}}var de=function(){var $,te=($=Zt.current)===null||$===void 0?void 0:$.querySelectorAll("video");te==null||te.forEach(function(ve){if(ve.oncontextmenu=function(){return!1},ve.src.indexOf(".m3u8")>-1&&!ve.canPlayType("application/vnd.apple.mpegurl")){if(V.a.isSupported()){var Ie=new V.a;Ie.loadSource(ve.src),Ie.attachMedia(ve)}}})};Object(I.useEffect)(function(){if(Zt.current&&At&&(At.match(Ue)&&window.PR.prettyPrint()),Zt.current)return Zt.current.addEventListener("click",Ee),function(){Zt.current.removeEventListener("click",Ee),b(),S()}},[At,Zt.current,Ee]);var j=function($){if(!pe)return;$.target.nodeName==="IMG"?(xt.current.style.zIndex=1,xt.current.style.display="flex",xt.current.style.width=$.target.clientWidth+"px",xt.current.style.height=$.target.clientHeight+"px",xt.current.style.top=$.target.offsetTop+"px",xt.current.style.left=$.target.offsetLeft+"px",Ct.current.src=$.target.getAttribute("src")):xt.current.style.display="none"};return g.a.createElement("div",{style:{position:"relative"}},g.a.createElement("div",{ref:Zt,style:Object(N.a)({},ot),className:"".concat(le||""," markdown-body ").concat(Ne.a.mdBody),onMouseOver:j,dangerouslySetInnerHTML:{__html:At}}),g.a.createElement("div",{ref:xt,className:Ne.a.button},g.a.createElement(z.a,null,g.a.createElement(Y.a,{onClick:function(){return wn()}},"\u88C1\u526A"),g.a.createElement(Y.a,{onClick:function(){return Wt()}},"\u7F16\u8F91"))),g.a.createElement("img",{ref:Ct,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),g.a.createElement(Se.a,{close:!0,data:Gt,type:Gt!=null&&Gt.length?An:"",style:Object(N.a)({},mt),onClose:function(){return On("")}}))}},"9VGf":function(We,ge,D){"use strict";D.d(ge,"a",function(){return P});var q=D("q1tI"),z=D.n(q);function P(Y,N){var O=Object(q.useRef)();Object(q.useEffect)(function(){O.current=Y}),Object(q.useEffect)(function(){function H(){O.current()}if(N!==null){var k=setInterval(H,N);return function(){return clearInterval(k)}}},[N])}},AMnG:function(We,ge,D){"use strict";var q=D("miYZ"),z=D("tsqr"),P=D("tJVT"),Y=D("q1tI"),N=D.n(Y),O=D("nWbc"),H=D.n(O),k=D("Ot1p");ge.a=function(n){var I=n.id,g=n.activeDiscussIndex,p=n.onReplyDiscuss,h=Object(Y.useState)(""),c=Object(P.a)(h,2),o=c[0],d=c[1];function i(r){d(r)}function a(){if(!o){z.b.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}p(I,o),d("")}return N.a.createElement("div",{key:I,className:"discuss-item-editor",style:{display:g===I?"block":"none",width:"100%"}},N.a.createElement(k.a,{miniToolbar:!0,startInit:g===I,defaultValue:o,id:I,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:i}),N.a.createElement("a",{onClick:a,className:"btn-send"},"\u53D1\u9001"))}},BU3w:function(We,ge,D){"use strict";D.d(ge,"a",function(){return O});var q=D("MNnm"),z="rc-util-key";function P(H){if(H.attachTo)return H.attachTo;var k=document.querySelector("head");return k||document.body}function Y(H){var k,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(q.a)())return null;var I=document.createElement("style");if((k=n.csp)===null||k===void 0?void 0:k.nonce){var g;I.nonce=(g=n.csp)===null||g===void 0?void 0:g.nonce}I.innerHTML=H;var p=P(n),h=p.firstChild;return n.prepend&&p.prepend?p.prepend(I):n.prepend&&h?p.insertBefore(I,h):p.appendChild(I),I}var N=new Map;function O(H,k){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=P(n);if(!N.has(I)){var g=Y("",n),p=g.parentNode;N.set(I,p),p.removeChild(g)}var h=Array.from(N.get(I).children).find(function(a){return a.tagName==="STYLE"&&a[z]===k});if(h){var c,o;if(((c=n.csp)===null||c===void 0?void 0:c.nonce)&&h.nonce!==((o=n.csp)===null||o===void 0?void 0:o.nonce)){var d;h.nonce=(d=n.csp)===null||d===void 0?void 0:d.nonce}return h.innerHTML!==H&&(h.innerHTML=H),h}var i=Y(H,n);return i[z]=k,i}},Bd2K:function(We,ge,D){(function(q){q(D("VrN/"),D("osHv"))})(function(q){q.defineOption("autoCloseTags",!1,function(n,I,g){if(g!=q.Init&&g&&n.removeKeyMap("autoCloseTags"),!I)return;var p={name:"autoCloseTags"};(typeof I!="object"||I.whenClosing!==!1)&&(p["'/'"]=function(h){return O(h)}),(typeof I!="object"||I.whenOpening!==!1)&&(p["'>'"]=function(h){return Y(h)}),n.addKeyMap(p)});var z=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],P=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Y(n){if(n.getOption("disableInput"))return q.Pass;for(var I=n.listSelections(),g=[],p=n.getOption("autoCloseTags"),h=0;hc.ch&&(r=r.slice(0,r.length-o.end+c.ch));var T=r.toLowerCase();if(!r||o.type=="string"&&(o.end!=c.ch||!/[\"\']/.test(o.string.charAt(o.string.length-1))||o.string.length==1)||o.type=="tag"&&a.close||o.string.indexOf("/")==c.ch-o.start-1||S&&H(S,T)>-1||k(n,d.mode.xmlCurrentContext&&d.mode.xmlCurrentContext(i)||[],r,c,!0))return q.Pass;var A=typeof p=="object"&&p.emptyTags;if(A&&H(A,r)>-1){g[h]={text:"/>",newPos:q.Pos(c.line,c.ch+2)};continue}var w=x&&H(x,T)>-1;g[h]={indent:w,text:">"+(w?`
`:"")+""+r+">",newPos:w?q.Pos(c.line+1,0):q.Pos(c.line,c.ch+1)}}for(var v=typeof p=="object"&&p.dontIndentOnAutoClose,h=I.length-1;h>=0;h--){var E=g[h];n.replaceRange(E.text,I[h].head,I[h].anchor,"+insert");var m=n.listSelections().slice(0);m[h]={head:E.newPos,anchor:E.newPos},n.setSelections(m),!v&&E.indent&&(n.indentLine(E.newPos.line,null,!0),n.indentLine(E.newPos.line+1,null,!0))}}function N(n,I){for(var g=n.listSelections(),p=[],h=I?"/":"",c=n.getOption("autoCloseTags"),o=typeof c=="object"&&c.dontIndentOnSlash,d=0;d"&&(S+=">"),p[d]=S}if(n.replaceSelections(p),g=n.listSelections(),!o)for(var d=0;d=0&&I[i]==g;i--)++d;p=o.to;for(var i=1;i0){for(var I=0;I1&&arguments[1]!==void 0?arguments[1]:"",I=[],g=0;gO,q.serviceIds.set(O,H),H}function N(O){return function(H,k,n){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");P(O,H,n,!0)}}},CrYA:function(We,ge,D){var q=D("MFOe"),z=q.Global;We.exports={name:"sessionStorage",read:Y,write:N,each:O,remove:H,clearAll:k};function P(){return z.sessionStorage}function Y(n){return P().getItem(n)}function N(n,I){return P().setItem(n,I)}function O(n){for(var I=P().length-1;I>=0;I--){var g=P().key(I);n(Y(g),g)}}function H(n){return P().removeItem(n)}function k(){return P().clear()}},DlQD:function(We,ge,D){(function(q,z){We.exports=z()})(this,function(){"use strict";function q(ie,ce){for(var pe=0;peie.length)&&(ce=ie.length);for(var pe=0,le=new Array(ce);pe=ie.length?{done:!0}:{done:!1,value:ie[le++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return pe=ie[Symbol.iterator](),pe.next.bind(pe)}function O(ie,ce){return ce={exports:{}},ie(ce,ce.exports),ce.exports}var H=O(function(ie){function ce(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function pe(le){ie.exports.defaults=le}ie.exports={defaults:ce(),getDefaults:ce,changeDefaults:pe}}),k=H.defaults,n=H.getDefaults,I=H.changeDefaults,g=/[&<>"']/,p=/[&<>"']/g,h=/[<>"']|&(?!#?\w+;)/,c=/[<>"']|&(?!#?\w+;)/g,o={"&":"&","<":"<",">":">",'"':""","'":"'"},d=function(ce){return o[ce]};function i(ie,ce){if(ce){if(g.test(ie))return ie.replace(p,d)}else if(h.test(ie))return ie.replace(c,d);return ie}var a=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function r(ie){return ie.replace(a,function(ce,pe){return pe=pe.toLowerCase(),pe==="colon"?":":pe.charAt(0)==="#"?pe.charAt(1)==="x"?String.fromCharCode(parseInt(pe.substring(2),16)):String.fromCharCode(+pe.substring(1)):""})}var s=/(^|[^\[])\^/g;function S(ie,ce){ie=ie.source||ie,ce=ce||"";var pe={replace:function(he,ye){return ye=ye.source||ye,ye=ye.replace(s,"$1"),ie=ie.replace(he,ye),pe},getRegex:function(){return new RegExp(ie,ce)}};return pe}var x=/[^\w:]/g,T=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function A(ie,ce,pe){if(ie){var le;try{le=decodeURIComponent(r(pe)).replace(x,"").toLowerCase()}catch(he){return null}if(le.indexOf("javascript:")===0||le.indexOf("vbscript:")===0||le.indexOf("data:")===0)return null}ce&&!T.test(pe)&&(pe=f(ce,pe));try{pe=encodeURI(pe).replace(/%25/g,"%")}catch(he){return null}return pe}var w={},v=/^[^:]+:\/*[^/]*$/,E=/^([^:]+:)[\s\S]*$/,m=/^([^:]+:\/*[^/]*)[\s\S]*$/;function f(ie,ce){w[" "+ie]||(v.test(ie)?w[" "+ie]=ie+"/":w[" "+ie]=M(ie,"/",!0)),ie=w[" "+ie];var pe=ie.indexOf(":")===-1;return ce.substring(0,2)==="//"?pe?ce:ie.replace(E,"$1")+ce:ce.charAt(0)==="/"?pe?ce:ie.replace(m,"$1")+ce:ie+ce}var C={exec:function(){}};function b(ie){for(var ce=1,pe,le;ce=0&&Oe[$e]==="\\";)ke=!ke;return ke?"|":" |"}),le=pe.split(/ \|/),he=0;if(le.length>ce)le.splice(ce);else for(;le.length=le.length?he.slice(le.length):he}).join(`
`)}var Ae=function(){function ie(pe){this.options=pe||F}var ce=ie.prototype;return ce.space=function(le){var he=this.rules.block.newline.exec(le);if(he)return he[0].length>1?{type:"space",raw:he[0]}:{raw:`
`}},ce.code=function(le,he){var ye=this.rules.block.code.exec(le);if(ye){var _e=he[he.length-1];if(_e&&_e.type==="paragraph")return{raw:ye[0],text:ye[0].trimRight()};var Oe=ye[0].replace(/^ {4}/gm,"");return{type:"code",raw:ye[0],codeBlockStyle:"indented",text:this.options.pedantic?Oe:R(Oe,`
`)}}},ce.fences=function(le){var he=this.rules.block.fences.exec(le);if(he){var ye=he[0],_e=Le(ye,he[3]||"");return{type:"code",raw:ye,lang:he[2]?he[2].trim():he[2],text:_e}}},ce.heading=function(le){var he=this.rules.block.heading.exec(le);if(he)return{type:"heading",raw:he[0],depth:he[1].length,text:he[2]}},ce.nptable=function(le){var he=this.rules.block.nptable.exec(le);if(he){var ye={type:"table",header:V(he[1].replace(/^ *| *\| *$/g,"")),align:he[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:he[3]?he[3].replace(/\n$/,"").split(`
`):[],raw:he[0]};if(ye.header.length===ye.align.length){var _e=ye.align.length,Oe;for(Oe=0;Oe<_e;Oe++)/^ *-+: *$/.test(ye.align[Oe])?ye.align[Oe]="right":/^ *:-+: *$/.test(ye.align[Oe])?ye.align[Oe]="center":/^ *:-+ *$/.test(ye.align[Oe])?ye.align[Oe]="left":ye.align[Oe]=null;for(_e=ye.cells.length,Oe=0;Oe<_e;Oe++)ye.cells[Oe]=V(ye.cells[Oe],ye.header.length);return ye}}},ce.hr=function(le){var he=this.rules.block.hr.exec(le);if(he)return{type:"hr",raw:he[0]}},ce.blockquote=function(le){var he=this.rules.block.blockquote.exec(le);if(he){var ye=he[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:he[0],text:ye}}},ce.list=function(le){var he=this.rules.block.list.exec(le);if(he){for(var ye=he[0],_e=he[2],Oe=_e.length>1,ke=_e[_e.length-1]===")",$e={type:"list",raw:ye,ordered:Oe,start:Oe?+_e.slice(0,-1):"",loose:!1,items:[]},ot=he[0].match(this.rules.block.item),pt=!1,mt,qt,xt,Ct,Pt,Rt,Gt,On=ot.length,kt=0;kt1||this.options.smartLists&&xt!==_e)&&(Ct=ot.slice(kt+1).join(`
`),$e.raw=$e.raw.substring(0,$e.raw.length-Ct.length),kt=On-1)),Pt=pt||/\n\n(?!\s*$)/.test(mt),kt!==On-1&&(pt=mt.charAt(mt.length-1)===`
`,Pt||(Pt=pt)),Pt&&($e.loose=!0),Rt=/^\[[ xX]\] /.test(mt),Gt=void 0,Rt&&(Gt=mt[1]!==" ",mt=mt.replace(/^\[[ xX]\] +/,"")),$e.items.push({type:"list_item",raw:ye,task:Rt,checked:Gt,loose:Pt,text:mt});return $e}},ce.html=function(le){var he=this.rules.block.html.exec(le);if(he)return{type:this.options.sanitize?"paragraph":"html",raw:he[0],pre:!this.options.sanitizer&&(he[1]==="pre"||he[1]==="script"||he[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(he[0]):ne(he[0]):he[0]}},ce.def=function(le){var he=this.rules.block.def.exec(le);if(he){he[3]&&(he[3]=he[3].substring(1,he[3].length-1));var ye=he[1].toLowerCase().replace(/\s+/g," ");return{tag:ye,raw:he[0],href:he[2],title:he[3]}}},ce.table=function(le){var he=this.rules.block.table.exec(le);if(he){var ye={type:"table",header:V(he[1].replace(/^ *| *\| *$/g,"")),align:he[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:he[3]?he[3].replace(/\n$/,"").split(`
`):[]};if(ye.header.length===ye.align.length){ye.raw=he[0];var _e=ye.align.length,Oe;for(Oe=0;Oe<_e;Oe++)/^ *-+: *$/.test(ye.align[Oe])?ye.align[Oe]="right":/^ *:-+: *$/.test(ye.align[Oe])?ye.align[Oe]="center":/^ *:-+ *$/.test(ye.align[Oe])?ye.align[Oe]="left":ye.align[Oe]=null;for(_e=ye.cells.length,Oe=0;Oe<_e;Oe++)ye.cells[Oe]=V(ye.cells[Oe].replace(/^ *\| *| *\| *$/g,""),ye.header.length);return ye}}},ce.lheading=function(le){var he=this.rules.block.lheading.exec(le);if(he)return{type:"heading",raw:he[0],depth:he[2].charAt(0)==="="?1:2,text:he[1]}},ce.paragraph=function(le){var he=this.rules.block.paragraph.exec(le);if(he)return{type:"paragraph",raw:he[0],text:he[1].charAt(he[1].length-1)===`
`?he[1].slice(0,-1):he[1]}},ce.text=function(le,he){var ye=this.rules.block.text.exec(le);if(ye){var _e=he[he.length-1];return _e&&_e.type==="text"?{raw:ye[0],text:ye[0]}:{type:"text",raw:ye[0],text:ye[0]}}},ce.escape=function(le){var he=this.rules.inline.escape.exec(le);if(he)return{type:"escape",raw:he[0],text:ne(he[1])}},ce.tag=function(le,he,ye){var _e=this.rules.inline.tag.exec(le);if(_e)return!he&&/^/i.test(_e[0])&&(he=!1),!ye&&/^<(pre|code|kbd|script)(\s|>)/i.test(_e[0])?ye=!0:ye&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(_e[0])&&(ye=!1),{type:this.options.sanitize?"text":"html",raw:_e[0],inLink:he,inRawBlock:ye,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):ne(_e[0]):_e[0]}},ce.link=function(le){var he=this.rules.inline.link.exec(le);if(he){var ye=se(he[2],"()");if(ye>-1){var _e=he[0].indexOf("!")===0?5:4,Oe=_e+he[1].length+ye;he[2]=he[2].substring(0,ye),he[0]=he[0].substring(0,Oe).trim(),he[3]=""}var ke=he[2],$e="";if(this.options.pedantic){var ot=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ke);ot?(ke=ot[1],$e=ot[3]):$e=""}else $e=he[3]?he[3].slice(1,-1):"";ke=ke.trim().replace(/^<([\s\S]*)>$/,"$1");var pt=Se(he,{href:ke&&ke.replace(this.rules.inline._escapes,"$1"),title:$e&&$e.replace(this.rules.inline._escapes,"$1")},he[0]);return pt}},ce.reflink=function(le,he){var ye;if((ye=this.rules.inline.reflink.exec(le))||(ye=this.rules.inline.nolink.exec(le))){var _e=(ye[2]||ye[1]).replace(/\s+/g," ");if(_e=he[_e.toLowerCase()],!_e||!_e.href){var Oe=ye[0].charAt(0);return{type:"text",raw:Oe,text:Oe}}var ke=Se(ye,_e,ye[0]);return ke}},ce.strong=function(le,he,ye){ye===void 0&&(ye="");var _e=this.rules.inline.strong.start.exec(le);if(_e&&(!_e[1]||_e[1]&&(ye===""||this.rules.inline.punctuation.exec(ye)))){he=he.slice(-1*le.length);var Oe=_e[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Oe.lastIndex=0;for(var ke;(_e=Oe.exec(he))!=null;)if(ke=this.rules.inline.strong.middle.exec(he.slice(0,_e.index+3)),ke)return{type:"strong",raw:le.slice(0,ke[0].length),text:le.slice(2,ke[0].length-2)}}},ce.em=function(le,he,ye){ye===void 0&&(ye="");var _e=this.rules.inline.em.start.exec(le);if(_e&&(!_e[1]||_e[1]&&(ye===""||this.rules.inline.punctuation.exec(ye)))){he=he.slice(-1*le.length);var Oe=_e[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Oe.lastIndex=0;for(var ke;(_e=Oe.exec(he))!=null;)if(ke=this.rules.inline.em.middle.exec(he.slice(0,_e.index+2)),ke)return{type:"em",raw:le.slice(0,ke[0].length),text:le.slice(1,ke[0].length-1)}}},ce.codespan=function(le){var he=this.rules.inline.code.exec(le);if(he){var ye=he[2].replace(/\n/g," "),_e=/[^ ]/.test(ye),Oe=ye.startsWith(" ")&&ye.endsWith(" ");return _e&&Oe&&(ye=ye.substring(1,ye.length-1)),ye=ne(ye,!0),{type:"codespan",raw:he[0],text:ye}}},ce.br=function(le){var he=this.rules.inline.br.exec(le);if(he)return{type:"br",raw:he[0]}},ce.del=function(le){var he=this.rules.inline.del.exec(le);if(he)return{type:"del",raw:he[0],text:he[1]}},ce.autolink=function(le,he){var ye=this.rules.inline.autolink.exec(le);if(ye){var _e,Oe;return ye[2]==="@"?(_e=ne(this.options.mangle?he(ye[1]):ye[1]),Oe="mailto:"+_e):(_e=ne(ye[1]),Oe=_e),{type:"link",raw:ye[0],text:_e,href:Oe,tokens:[{type:"text",raw:_e,text:_e}]}}},ce.url=function(le,he){var ye;if(ye=this.rules.inline.url.exec(le)){var _e,Oe;if(ye[2]==="@")_e=ne(this.options.mangle?he(ye[0]):ye[0]),Oe="mailto:"+_e;else{var ke;do ke=ye[0],ye[0]=this.rules.inline._backpedal.exec(ye[0])[0];while(ke!==ye[0]);_e=ne(ye[0]),ye[1]==="www."?Oe="http://"+_e:Oe=_e}return{type:"link",raw:ye[0],text:_e,href:Oe,tokens:[{type:"text",raw:_e,text:_e}]}}},ce.inlineText=function(le,he,ye){var _e=this.rules.inline.text.exec(le);if(_e){var Oe;return he?Oe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):ne(_e[0]):_e[0]:Oe=ne(this.options.smartypants?ye(_e[0]):_e[0]),{type:"text",raw:_e[0],text:Oe}}},ie}(),Pe=K.noopTest,Fe=K.edit,je=K.merge,Te={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Pe,table:Pe,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Te._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Te._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Te.def=Fe(Te.def).replace("label",Te._label).replace("title",Te._title).getRegex(),Te.bullet=/(?:[*+-]|\d{1,9}[.)])/,Te.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Te.item=Fe(Te.item,"gm").replace(/bull/g,Te.bullet).getRegex(),Te.list=Fe(Te.list).replace(/bull/g,Te.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Te.def.source+")").getRegex(),Te._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Te._comment=//,Te.html=Fe(Te.html,"i").replace("comment",Te._comment).replace("tag",Te._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Te.paragraph=Fe(Te._paragraph).replace("hr",Te.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Te._tag).getRegex(),Te.blockquote=Fe(Te.blockquote).replace("paragraph",Te.paragraph).getRegex(),Te.normal=je({},Te),Te.gfm=je({},Te.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Te.gfm.nptable=Fe(Te.gfm.nptable).replace("hr",Te.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Te._tag).getRegex(),Te.gfm.table=Fe(Te.gfm.table).replace("hr",Te.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Te._tag).getRegex(),Te.pedantic=je({},Te.normal,{html:Fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Te._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Pe,paragraph:Fe(Te.normal._paragraph).replace("hr",Te.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Te.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Z={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Pe,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Pe,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",Z.punctuation=Fe(Z.punctuation).replace(/punctuation/g,Z._punctuation).getRegex(),Z._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Z._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Z.em.start=Fe(Z.em.start).replace(/punctuation/g,Z._punctuation).getRegex(),Z.em.middle=Fe(Z.em.middle).replace(/punctuation/g,Z._punctuation).replace(/overlapSkip/g,Z._overlapSkip).getRegex(),Z.em.endAst=Fe(Z.em.endAst,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.em.endUnd=Fe(Z.em.endUnd,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.strong.start=Fe(Z.strong.start).replace(/punctuation/g,Z._punctuation).getRegex(),Z.strong.middle=Fe(Z.strong.middle).replace(/punctuation/g,Z._punctuation).replace(/blockSkip/g,Z._blockSkip).getRegex(),Z.strong.endAst=Fe(Z.strong.endAst,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.strong.endUnd=Fe(Z.strong.endUnd,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.blockSkip=Fe(Z._blockSkip,"g").getRegex(),Z.overlapSkip=Fe(Z._overlapSkip,"g").getRegex(),Z._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Z._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Z._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Z.autolink=Fe(Z.autolink).replace("scheme",Z._scheme).replace("email",Z._email).getRegex(),Z._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Z.tag=Fe(Z.tag).replace("comment",Te._comment).replace("attribute",Z._attribute).getRegex(),Z._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Z._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Z._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Z.link=Fe(Z.link).replace("label",Z._label).replace("href",Z._href).replace("title",Z._title).getRegex(),Z.reflink=Fe(Z.reflink).replace("label",Z._label).getRegex(),Z.reflinkSearch=Fe(Z.reflinkSearch,"g").replace("reflink",Z.reflink).replace("nolink",Z.nolink).getRegex(),Z.normal=je({},Z),Z.pedantic=je({},Z.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Fe(/^!?\[(label)\]\((.*?)\)/).replace("label",Z._label).getRegex(),reflink:Fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Z._label).getRegex()}),Z.gfm=je({},Z.normal,{escape:Fe(Z.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(le="x"+le.toString(16)),ce+=""+le+";";return ce}var Ge=function(){function ie(pe){this.tokens=[],this.tokens.links=Object.create(null),this.options=pe||G,this.options.tokenizer=this.options.tokenizer||new Ae,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var le={block:ee.normal,inline:ue.normal};this.options.pedantic?(le.block=ee.pedantic,le.inline=ue.pedantic):this.options.gfm&&(le.block=ee.gfm,this.options.breaks?le.inline=ue.breaks:le.inline=ue.gfm),this.tokenizer.rules=le}ie.lex=function(le,he){var ye=new ie(he);return ye.lex(le)};var ce=ie.prototype;return ce.lex=function(le){return le=le.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(le,this.tokens,!0),this.inline(this.tokens),this.tokens},ce.blockTokens=function(le,he,ye){he===void 0&&(he=[]),ye===void 0&&(ye=!0),le=le.replace(/^ +$/gm,"");for(var _e,Oe,ke,$e;le;){if(_e=this.tokenizer.space(le)){le=le.substring(_e.raw.length),_e.type&&he.push(_e);continue}if(_e=this.tokenizer.code(le,he)){le=le.substring(_e.raw.length),_e.type?he.push(_e):($e=he[he.length-1],$e.raw+=`
`+_e.raw,$e.text+=`
`+_e.text);continue}if(_e=this.tokenizer.fences(le)){le=le.substring(_e.raw.length),he.push(_e);continue}if(_e=this.tokenizer.heading(le)){le=le.substring(_e.raw.length),he.push(_e);continue}if(_e=this.tokenizer.nptable(le)){le=le.substring(_e.raw.length),he.push(_e);continue}if(_e=this.tokenizer.hr(le)){le=le.substring(_e.raw.length),he.push(_e);continue}if(_e=this.tokenizer.blockquote(le)){le=le.substring(_e.raw.length),_e.tokens=this.blockTokens(_e.text,[],ye),he.push(_e);continue}if(_e=this.tokenizer.list(le)){for(le=le.substring(_e.raw.length),ke=_e.items.length,Oe=0;Oe0)for(;(ot=this.tokenizer.rules.inline.reflinkSearch.exec($e))!=null;)pt.includes(ot[0].slice(ot[0].lastIndexOf("[")+1,-1))&&($e=$e.slice(0,ot.index)+"["+"a".repeat(ot[0].length-2)+"]"+$e.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ot=this.tokenizer.rules.inline.blockSkip.exec($e))!=null;)$e=$e.slice(0,ot.index)+"["+"a".repeat(ot[0].length-2)+"]"+$e.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;le;){if(ke=this.tokenizer.escape(le)){le=le.substring(ke.raw.length),he.push(ke);continue}if(ke=this.tokenizer.tag(le,ye,_e)){le=le.substring(ke.raw.length),ye=ke.inLink,_e=ke.inRawBlock,he.push(ke);continue}if(ke=this.tokenizer.link(le)){le=le.substring(ke.raw.length),ke.type==="link"&&(ke.tokens=this.inlineTokens(ke.text,[],!0,_e)),he.push(ke);continue}if(ke=this.tokenizer.reflink(le,this.tokens.links)){le=le.substring(ke.raw.length),ke.type==="link"&&(ke.tokens=this.inlineTokens(ke.text,[],!0,_e)),he.push(ke);continue}if(ke=this.tokenizer.strong(le,$e,Oe)){le=le.substring(ke.raw.length),ke.tokens=this.inlineTokens(ke.text,[],ye,_e),he.push(ke);continue}if(ke=this.tokenizer.em(le,$e,Oe)){le=le.substring(ke.raw.length),ke.tokens=this.inlineTokens(ke.text,[],ye,_e),he.push(ke);continue}if(ke=this.tokenizer.codespan(le)){le=le.substring(ke.raw.length),he.push(ke);continue}if(ke=this.tokenizer.br(le)){le=le.substring(ke.raw.length),he.push(ke);continue}if(ke=this.tokenizer.del(le)){le=le.substring(ke.raw.length),ke.tokens=this.inlineTokens(ke.text,[],ye,_e),he.push(ke);continue}if(ke=this.tokenizer.autolink(le,we)){le=le.substring(ke.raw.length),he.push(ke);continue}if(!ye&&(ke=this.tokenizer.url(le,we))){le=le.substring(ke.raw.length),he.push(ke);continue}if(ke=this.tokenizer.inlineText(le,_e,J)){le=le.substring(ke.raw.length),Oe=ke.raw.slice(-1),he.push(ke);continue}if(le){var mt="Infinite loop on byte: "+le.charCodeAt(0);if(this.options.silent){console.error(mt);break}else throw new Error(mt)}}return he},z(ie,null,[{key:"rules",get:function(){return{block:ee,inline:ue}}}]),ie}(),Je=H.defaults,be=K.cleanUrl,Re=K.escape,xe=function(){function ie(pe){this.options=pe||Je}var ce=ie.prototype;return ce.code=function(le,he,ye){var _e=(he||"").match(/\S*/)[0];if(this.options.highlight){var Oe=this.options.highlight(le,_e);Oe!=null&&Oe!==le&&(ye=!0,le=Oe)}return _e?''+(ye?le:Re(le,!0))+`
`:""+(ye?le:Re(le,!0))+`
`},ce.blockquote=function(le){return`
`+le+`
`},ce.html=function(le){return le},ce.heading=function(le,he,ye,_e){return this.options.headerIds?"
`:""+le+"
`},ce.hr=function(){return this.options.xhtml?`
`:`
`},ce.list=function(le,he,ye){var _e=he?"ol":"ul",Oe=he&&ye!==1?' start="'+ye+'"':"";return"<"+_e+Oe+`>
`+le+""+_e+`>
`},ce.listitem=function(le){return""+le+`
`},ce.checkbox=function(le){return" "},ce.paragraph=function(le){return""+le+`
`},ce.table=function(le,he){return he&&(he=""+he+""),`
`},ce.tablerow=function(le){return`
`+le+`
`},ce.tablecell=function(le,he){var ye=he.header?"th":"td",_e=he.align?"<"+ye+' align="'+he.align+'">':"<"+ye+">";return _e+le+""+ye+`>
`},ce.strong=function(le){return""+le+""},ce.em=function(le){return""+le+""},ce.codespan=function(le){return""+le+""},ce.br=function(){return this.options.xhtml?"
":"
"},ce.del=function(le){return""+le+""},ce.link=function(le,he,ye){if(le=be(this.options.sanitize,this.options.baseUrl,le),le===null)return ye;var _e='"+ye+"",_e},ce.image=function(le,he,ye){if(le=be(this.options.sanitize,this.options.baseUrl,le),le===null)return ye;var _e='
":">",_e},ce.text=function(le){return le},ie}(),Ce=function(){function ie(){}var ce=ie.prototype;return ce.strong=function(le){return le},ce.em=function(le){return le},ce.codespan=function(le){return le},ce.del=function(le){return le},ce.html=function(le){return le},ce.text=function(le){return le},ce.link=function(le,he,ye){return""+ye},ce.image=function(le,he,ye){return""+ye},ce.br=function(){return""},ie}(),Be=function(){function ie(){this.seen={}}var ce=ie.prototype;return ce.slug=function(le){var he=le.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(he)){var ye=he;do this.seen[ye]++,he=ye+"-"+this.seen[ye];while(this.seen.hasOwnProperty(he))}return this.seen[he]=0,he},ie}(),Xe=H.defaults,qe=K.unescape,tt=function(){function ie(pe){this.options=pe||Xe,this.options.renderer=this.options.renderer||new xe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ce,this.slugger=new Be}ie.parse=function(le,he){var ye=new ie(he);return ye.parse(le)};var ce=ie.prototype;return ce.parse=function(le,he){he===void 0&&(he=!0);var ye="",_e,Oe,ke,$e,ot,pt,mt,qt,xt,Ct,Pt,Rt,Gt,On,kt,Un,An,en,wn=le.length;for(_e=0;_e0&&kt.tokens[0].type==="text"?(kt.tokens[0].text=en+" "+kt.tokens[0].text,kt.tokens[0].tokens&&kt.tokens[0].tokens.length>0&&kt.tokens[0].tokens[0].type==="text"&&(kt.tokens[0].tokens[0].text=en+" "+kt.tokens[0].tokens[0].text)):kt.tokens.unshift({type:"text",text:en}):On+=en),On+=this.parse(kt.tokens,Gt),xt+=this.renderer.listitem(On,An,Un);ye+=this.renderer.list(xt,Pt,Rt);continue}case"html":{ye+=this.renderer.html(Ct.text);continue}case"paragraph":{ye+=this.renderer.paragraph(this.parseInline(Ct.tokens));continue}case"text":{for(xt=Ct.tokens?this.parseInline(Ct.tokens):Ct.text;_e+1An error occurred:
"+Ne(ke.message+"",!0)+"
";throw ke}}fe.options=fe.setOptions=function(ie){return ht(fe.defaults,ie),Ze(fe.defaults),fe},fe.getDefaults=Ue,fe.defaults=et,fe.use=function(ie){var ce=ht({},ie);if(ie.renderer&&function(){var le=fe.defaults.renderer||new xe,he=function(Oe){var ke=le[Oe];le[Oe]=function(){for(var $e=arguments.length,ot=new Array($e),pt=0;pt<$e;pt++)ot[pt]=arguments[pt];var mt=ie.renderer[Oe].apply(le,ot);return mt===!1&&(mt=ke.apply(le,ot)),mt}};for(var ye in ie.renderer)he(ye);ce.renderer=le}(),ie.tokenizer&&function(){var le=fe.defaults.tokenizer||new Ae,he=function(Oe){var ke=le[Oe];le[Oe]=function(){for(var $e=arguments.length,ot=new Array($e),pt=0;pt<$e;pt++)ot[pt]=arguments[pt];var mt=ie.tokenizer[Oe].apply(le,ot);return mt===!1&&(mt=ke.apply(le,ot)),mt}};for(var ye in ie.tokenizer)he(ye);ce.tokenizer=le}(),ie.walkTokens){var pe=fe.defaults.walkTokens;ce.walkTokens=function(le){ie.walkTokens(le),pe&&pe(le)}}fe.setOptions(ce)},fe.walkTokens=function(ie,ce){for(var pe=N(ie),le;!(le=pe()).done;){var he=le.value;ce(he);switch(he.type){case"table":{for(var ye=N(he.tokens.header),_e;!(_e=ye()).done;){var Oe=_e.value;fe.walkTokens(Oe,ce)}for(var ke=N(he.tokens.cells),$e;!($e=ke()).done;)for(var ot=$e.value,pt=N(ot),mt;!(mt=pt()).done;){var qt=mt.value;fe.walkTokens(qt,ce)}break}case"list":{fe.walkTokens(he.items,ce);break}default:he.tokens&&fe.walkTokens(he.tokens,ce)}}},fe.Parser=tt,fe.parser=tt.parse,fe.Renderer=xe,fe.TextRenderer=Ce,fe.Lexer=Ge,fe.lexer=Ge.lex,fe.Tokenizer=Ae,fe.Slugger=Be,fe.parse=fe;var re=fe;return re})},"DlR+":function(We,ge,D){var q=D("MFOe"),z=q.Global,P=q.trim;We.exports={name:"cookieStorage",read:N,write:H,each:O,remove:k,clearAll:n};var Y=z.document;function N(g){if(!g||!I(g))return null;var p="(?:^|.*;\\s*)"+escape(g).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Y.cookie.replace(new RegExp(p),"$1"))}function O(g){for(var p=Y.cookie.split(/; ?/g),h=p.length-1;h>=0;h--){if(!P(p[h]))continue;var c=p[h].split("="),o=unescape(c[0]),d=unescape(c[1]);g(d,o)}}function H(g,p){if(!g)return;Y.cookie=escape(g)+"="+escape(p)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function k(g){if(!g||!I(g))return;Y.cookie=escape(g)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function n(){O(function(g,p){k(p)})}function I(g){return new RegExp("(?:^|;\\s*)"+escape(g).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Y.cookie)}},E2g8:function(We,ge,D){(function(q,z){/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/(function(P,Y){We.exports=Y()})(this,function(){"use strict";function P(xe){var Ce=typeof xe;return xe!==null&&(Ce==="object"||Ce==="function")}function Y(xe){return typeof xe=="function"}var N=void 0;Array.isArray?N=Array.isArray:N=function(xe){return Object.prototype.toString.call(xe)==="[object Array]"};var O=N,H=0,k=void 0,n=void 0,I=function(Ce,Be){T[H]=Ce,T[H+1]=Be,H+=2,H===2&&(n?n(A):v())};function g(xe){n=xe}function p(xe){I=xe}var h=typeof window!="undefined"?window:void 0,c=h||{},o=c.MutationObserver||c.WebKitMutationObserver,d=typeof self=="undefined"&&typeof q!="undefined"&&{}.toString.call(q)==="[object process]",i=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function a(){return function(){return q.nextTick(A)}}function r(){return typeof k!="undefined"?function(){k(A)}:x()}function s(){var xe=0,Ce=new o(A),Be=document.createTextNode("");return Ce.observe(Be,{characterData:!0}),function(){Be.data=xe=++xe%2}}function S(){var xe=new MessageChannel;return xe.port1.onmessage=A,function(){return xe.port2.postMessage(0)}}function x(){var xe=setTimeout;return function(){return xe(A,1)}}var T=new Array(1e3);function A(){for(var xe=0;xe`,triples:"",explode:"[]{}"},P=q.Pos;q.defineOption("autoCloseBrackets",!1,function(o,d,i){i&&i!=q.Init&&(o.removeKeyMap(N),o.state.closeBrackets=null),d&&(O(Y(d,"pairs")),o.state.closeBrackets=d,o.addKeyMap(N))});function Y(o,d){return d=="pairs"&&typeof o=="string"?o:typeof o=="object"&&o[d]!=null?o[d]:z[d]}var N={Backspace:n,Enter:I};function O(o){for(var d=0;d=0;r--){var S=a[r].head;o.replaceRange("",P(S.line,S.ch-1),P(S.line,S.ch+1),"+delete")}}function I(o){var d=k(o),i=d&&Y(d,"explode");if(!i||o.getOption("disableInput"))return q.Pass;for(var a=o.listSelections(),r=0;r0;return{anchor:new P(o.anchor.line,o.anchor.ch+(d?-1:1)),head:new P(o.head.line,o.head.ch+(d?1:-1))}}function p(o,d){var i=k(o);if(!i||o.getOption("disableInput"))return q.Pass;var a=Y(i,"pairs"),r=a.indexOf(d);if(r==-1)return q.Pass;for(var s=Y(i,"closeBefore"),S=Y(i,"triples"),x=a.charAt(r+1)==d,T=o.listSelections(),A=r%2==0,w,v=0;v=0&&o.getRange(m,P(m.line,m.ch+3))==d+d+d?f="skipThree":f="skip";else if(x&&m.ch>1&&S.indexOf(d)>=0&&o.getRange(P(m.line,m.ch-2),m)==d+d){if(m.ch>2&&/\bstring/.test(o.getTokenTypeAt(P(m.line,m.ch-2))))return q.Pass;f="addFour"}else if(x){var b=m.ch==0?" ":o.getRange(P(m.line,m.ch-1),m);if(!q.isWordChar(C)&&b!=d&&!q.isWordChar(b))f="both";else return q.Pass}else if(A&&(C.length===0||/\s/.test(C)||s.indexOf(C)>-1))f="both";else return q.Pass;if(!w)w=f;else if(w!=f)return q.Pass}var y=r%2?a.charAt(r-1):d,M=r%2?d:a.charAt(r+1);o.operation(function(){if(w=="skip")o.execCommand("goCharRight");else if(w=="skipThree")for(var W=0;W<3;W++)o.execCommand("goCharRight");else if(w=="surround"){for(var L=o.getSelections(),W=0;W ").concat(X);if(Ee.ENABLE_CALLBACK&&Ee.emitter.emit("log","error",$),!Ee.ENABLE_ERROR)return;console.error?console.error($):console.warn?console.warn($):console.log($)}},{key:"i",value:function(j,X){(!j||Ee.FORCE_GLOBAL_TAG)&&(j=Ee.GLOBAL_TAG);var $="[".concat(j,"] > ").concat(X);if(Ee.ENABLE_CALLBACK&&Ee.emitter.emit("log","info",$),!Ee.ENABLE_INFO)return;console.info?console.info($):console.log($)}},{key:"w",value:function(j,X){(!j||Ee.FORCE_GLOBAL_TAG)&&(j=Ee.GLOBAL_TAG);var $="[".concat(j,"] > ").concat(X);if(Ee.ENABLE_CALLBACK&&Ee.emitter.emit("log","warn",$),!Ee.ENABLE_WARN)return;console.warn?console.warn($):console.log($)}},{key:"d",value:function(j,X){(!j||Ee.FORCE_GLOBAL_TAG)&&(j=Ee.GLOBAL_TAG);var $="[".concat(j,"] > ").concat(X);if(Ee.ENABLE_CALLBACK&&Ee.emitter.emit("log","debug",$),!Ee.ENABLE_DEBUG)return;console.debug?console.debug($):console.log($)}},{key:"v",value:function(j,X){(!j||Ee.FORCE_GLOBAL_TAG)&&(j=Ee.GLOBAL_TAG);var $="[".concat(j,"] > ").concat(X);if(Ee.ENABLE_CALLBACK&&Ee.emitter.emit("log","verbose",$),!Ee.ENABLE_VERBOSE)return;console.log($)}}]),Ee}();H.GLOBAL_TAG="flv.js",H.FORCE_GLOBAL_TAG=!1,H.ENABLE_ERROR=!0,H.ENABLE_INFO=!0,H.ENABLE_WARN=!0,H.ENABLE_DEBUG=!0,H.ENABLE_VERBOSE=!0,H.ENABLE_CALLBACK=!1,H.emitter=new O.a;var k=H,n=function(){function Ee(){Object(q.a)(this,Ee),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return Object(z.a)(Ee,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(j){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=j,this._totalBytes+=j):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=j,this._totalBytes+=j):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=j,this._totalBytes+=j,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var j=(this._now()-this._lastCheckpoint)/1e3;return j==0&&(j=1),this._intervalBytes/j/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var j=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/j/1024}}]),Ee}(),I=n,g=D("yKVA"),p=D("879j"),h=function(){function Ee(de){Object(q.a)(this,Ee),this._message=de}return Object(z.a)(Ee,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),Ee}(),c=function(Ee){Object(g.a)(j,Ee);var de=Object(p.a)(j);function j(X){return Object(q.a)(this,j),de.call(this,X)}return Object(z.a)(j,[{key:"name",get:function(){return"IllegalStateException"}}]),j}(h),o=function(Ee){Object(g.a)(j,Ee);var de=Object(p.a)(j);function j(X){return Object(q.a)(this,j),de.call(this,X)}return Object(z.a)(j,[{key:"name",get:function(){return"InvalidArgumentException"}}]),j}(h),d=function(Ee){Object(g.a)(j,Ee);var de=Object(p.a)(j);function j(X){return Object(q.a)(this,j),de.call(this,X)}return Object(z.a)(j,[{key:"name",get:function(){return"NotImplementedException"}}]),j}(h),i={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},a={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},r=function(){function Ee(de){Object(q.a)(this,Ee),this._type=de||"undefined",this._status=i.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(z.a)(Ee,[{key:"destroy",value:function(){this._status=i.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===i.kConnecting||this._status===i.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(j){this._onContentLengthKnown=j}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(j){this._onURLRedirect=j}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(j){this._onDataArrival=j}},{key:"onError",get:function(){return this._onError},set:function(j){this._onError=j}},{key:"onComplete",get:function(){return this._onComplete},set:function(j){this._onComplete=j}},{key:"open",value:function(j,X){throw new d("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new d("Unimplemented abstract function!")}}]),Ee}(),s=D("oZsa");function S(Ee,de){for(;!Object.prototype.hasOwnProperty.call(Ee,de)&&!(Ee=Object(s.a)(Ee),Ee===null););return Ee}function x(Ee,de,j){return typeof Reflect!="undefined"&&Reflect.get?x=Reflect.get:x=function($,te,ve){var Ie=S($,te);if(!Ie)return;var He=Object.getOwnPropertyDescriptor(Ie,te);return He.get?He.get.call(ve):He.value},x(Ee,de,j||Ee)}var T={};function A(){var Ee=self.navigator.userAgent.toLowerCase(),de=/(edge)\/([\w.]+)/.exec(Ee)||/(opr)[\/]([\w.]+)/.exec(Ee)||/(chrome)[ \/]([\w.]+)/.exec(Ee)||/(iemobile)[\/]([\w.]+)/.exec(Ee)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Ee)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Ee)||/(webkit)[ \/]([\w.]+)/.exec(Ee)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Ee)||/(msie) ([\w.]+)/.exec(Ee)||Ee.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Ee)||Ee.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Ee)||[],j=/(ipad)/.exec(Ee)||/(ipod)/.exec(Ee)||/(windows phone)/.exec(Ee)||/(iphone)/.exec(Ee)||/(kindle)/.exec(Ee)||/(android)/.exec(Ee)||/(windows)/.exec(Ee)||/(mac)/.exec(Ee)||/(linux)/.exec(Ee)||/(cros)/.exec(Ee)||[],X={browser:de[5]||de[3]||de[1]||"",version:de[2]||de[4]||"0",majorVersion:de[4]||de[2]||"0",platform:j[0]||""},$={};if(X.browser){$[X.browser]=!0;var te=X.majorVersion.split(".");$.version={major:parseInt(X.majorVersion,10),string:X.version},te.length>1&&($.version.minor=parseInt(te[1],10)),te.length>2&&($.version.build=parseInt(te[2],10))}if(X.platform&&($[X.platform]=!0),($.chrome||$.opr||$.safari)&&($.webkit=!0),$.rv||$.iemobile){$.rv&&delete $.rv;var ve="msie";X.browser=ve,$[ve]=!0}if($.edge){delete $.edge;var Ie="msedge";X.browser=Ie,$[Ie]=!0}if($.opr){var He="opera";X.browser=He,$[He]=!0}if($.safari&&$.android){var ct="android";X.browser=ct,$[ct]=!0}$.name=X.browser,$.platform=X.platform;for(var ut in T)T.hasOwnProperty(ut)&&delete T[ut];Object.assign(T,$)}A();var w=T,v=function(Ee){Object(g.a)(j,Ee);var de=Object(p.a)(j);function j(X,$){var te;return Object(q.a)(this,j),te=de.call(this,"fetch-stream-loader"),te.TAG="FetchStreamLoader",te._seekHandler=X,te._config=$,te._needStash=!0,te._requestAbort=!1,te._contentLength=null,te._receivedLength=0,te}return Object(z.a)(j,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),x(Object(s.a)(j.prototype),"destroy",this).call(this)}},{key:"open",value:function($,te){var ve=this;this._dataSource=$,this._range=te;var Ie=$.url;this._config.reuseRedirectedURL&&$.redirectedURL!=null&&(Ie=$.redirectedURL);var He=this._seekHandler.getConfig(Ie,te),ct=new self.Headers;if(typeof He.headers=="object"){var ut=He.headers;for(var ze in ut)ut.hasOwnProperty(ze)&&ct.append(ze,ut[ze])}var gt={method:"GET",headers:ct,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var Kt in this._config.headers)ct.append(Kt,this._config.headers[Kt]);$.cors===!1&&(gt.mode="same-origin"),$.withCredentials&&(gt.credentials="include"),$.referrerPolicy&&(gt.referrerPolicy=$.referrerPolicy),this._status=i.kConnecting,self.fetch(He.url,gt).then(function(dt){if(ve._requestAbort){ve._requestAbort=!1,ve._status=i.kIdle;return}if(dt.ok&&dt.status>=200&&dt.status<=299){if(dt.url!==He.url&&ve._onURLRedirect){var sn=ve._seekHandler.removeURLParameters(dt.url);ve._onURLRedirect(sn)}var jt=dt.headers.get("Content-Length");return jt!=null&&(ve._contentLength=parseInt(jt),ve._contentLength!==0&&(ve._onContentLengthKnown&&ve._onContentLengthKnown(ve._contentLength))),ve._pump.call(ve,dt.body.getReader())}else if(ve._status=i.kError,ve._onError)ve._onError(a.HTTP_STATUS_CODE_INVALID,{code:dt.status,msg:dt.statusText});else throw new h("FetchStreamLoader: Http code invalid, "+dt.status+" "+dt.statusText)}).catch(function(dt){if(ve._status=i.kError,ve._onError)ve._onError(a.EXCEPTION,{code:-1,msg:dt.message});else throw dt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function($){var te=this;return $.read().then(function(ve){if(ve.done)if(te._contentLength!==null&&te._receivedLength=15048,te=w.msedge?$:!0;return self.fetch&&self.ReadableStream&&te}catch(ve){return!1}}}]),j}(r),E=v,m=function(Ee){Object(g.a)(j,Ee);var de=Object(p.a)(j);function j(X,$){var te;return Object(q.a)(this,j),te=de.call(this,"xhr-moz-chunked-loader"),te.TAG="MozChunkedLoader",te._seekHandler=X,te._config=$,te._needStash=!0,te._xhr=null,te._requestAbort=!1,te._contentLength=null,te._receivedLength=0,te}return Object(z.a)(j,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),x(Object(s.a)(j.prototype),"destroy",this).call(this)}},{key:"open",value:function($,te){this._dataSource=$,this._range=te;var ve=$.url;this._config.reuseRedirectedURL&&$.redirectedURL!=null&&(ve=$.redirectedURL);var Ie=this._seekHandler.getConfig(ve,te);this._requestURL=Ie.url;var He=this._xhr=new XMLHttpRequest;if(He.open("GET",Ie.url,!0),He.responseType="moz-chunked-arraybuffer",He.onreadystatechange=this._onReadyStateChange.bind(this),He.onprogress=this._onProgress.bind(this),He.onloadend=this._onLoadEnd.bind(this),He.onerror=this._onXhrError.bind(this),$.withCredentials&&(He.withCredentials=!0),typeof Ie.headers=="object"){var ct=Ie.headers;for(var ut in ct)ct.hasOwnProperty(ut)&&He.setRequestHeader(ut,ct[ut])}if(typeof this._config.headers=="object"){var ze=this._config.headers;for(var gt in ze)ze.hasOwnProperty(gt)&&He.setRequestHeader(gt,ze[gt])}this._status=i.kConnecting,He.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=i.kComplete}},{key:"_onReadyStateChange",value:function($){var te=$.target;if(te.readyState===2){if(te.responseURL!=null&&te.responseURL!==this._requestURL&&this._onURLRedirect){var ve=this._seekHandler.removeURLParameters(te.responseURL);this._onURLRedirect(ve)}if(te.status!==0&&(te.status<200||te.status>299))if(this._status=i.kError,this._onError)this._onError(a.HTTP_STATUS_CODE_INVALID,{code:te.status,msg:te.statusText});else throw new h("MozChunkedLoader: Http code invalid, "+te.status+" "+te.statusText);else this._status=i.kBuffering}}},{key:"_onProgress",value:function($){if(this._status===i.kError)return;this._contentLength===null&&($.total!==null&&$.total!==0&&(this._contentLength=$.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var te=$.target.response,ve=this._range.from+this._receivedLength;this._receivedLength+=te.byteLength,this._onDataArrival&&this._onDataArrival(te,ve,this._receivedLength)}},{key:"_onLoadEnd",value:function($){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===i.kError)return;this._status=i.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function($){this._status=i.kError;var te=0,ve=null;if(this._contentLength&&$.loaded=200&&te.status<=299){if(this._status=i.kBuffering,te.responseURL!=null){var ve=this._seekHandler.removeURLParameters(te.responseURL);te.responseURL!==this._currentRequestURL&&ve!==this._currentRedirectedURL&&(this._currentRedirectedURL=ve,this._onURLRedirect&&this._onURLRedirect(ve))}var Ie=te.getResponseHeader("Content-Length");if(Ie!=null&&this._contentLength==null){var He=parseInt(Ie);He>0&&(this._contentLength=He,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=i.kError,this._onError)this._onError(a.HTTP_STATUS_CODE_INVALID,{code:te.status,msg:te.statusText});else throw new h("MSStreamLoader: Http code invalid, "+te.status+" "+te.statusText);else if(te.readyState===3&&(te.status>=200&&te.status<=299)){this._status=i.kBuffering;var ct=te.response;this._reader.readAsArrayBuffer(ct)}}},{key:"_xhrOnError",value:function($){this._status=i.kError;var te=a.EXCEPTION,ve={code:-1,msg:$.constructor.name+" "+$.type};if(this._onError)this._onError(te,ve);else throw new h(ve.msg)}},{key:"_msrOnProgress",value:function($){var te=$.target,ve=te.result;if(ve==null){this._doReconnectIfNeeded();return}var Ie=ve.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=ve.byteLength;var He=this._totalRange.from+this._receivedLength;this._receivedLength+=Ie.byteLength,this._onDataArrival&&this._onDataArrival(Ie,He,this._receivedLength),ve.byteLength>=this._bufferLimit&&(k.v(this.TAG,"MSStream buffer exceeded max size near ".concat(He+Ie.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(ve=this._range.from+this._contentLength-1)),this._currentRequestRange={from:te,to:ve},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function($,te){this._lastTimeLoaded=0;var ve=$.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?ve=this._currentRedirectedURL:$.redirectedURL!=null&&(ve=$.redirectedURL));var Ie=this._seekHandler.getConfig(ve,te);this._currentRequestURL=Ie.url;var He=this._xhr=new XMLHttpRequest;if(He.open("GET",Ie.url,!0),He.responseType="arraybuffer",He.onreadystatechange=this._onReadyStateChange.bind(this),He.onprogress=this._onProgress.bind(this),He.onload=this._onLoad.bind(this),He.onerror=this._onXhrError.bind(this),$.withCredentials&&(He.withCredentials=!0),typeof Ie.headers=="object"){var ct=Ie.headers;for(var ut in ct)ct.hasOwnProperty(ut)&&He.setRequestHeader(ut,ct[ut])}if(typeof this._config.headers=="object"){var ze=this._config.headers;for(var gt in ze)ze.hasOwnProperty(gt)&&He.setRequestHeader(gt,ze[gt])}He.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=i.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function($){var te=$.target;if(te.readyState===2){if(te.responseURL!=null){var ve=this._seekHandler.removeURLParameters(te.responseURL);te.responseURL!==this._currentRequestURL&&ve!==this._currentRedirectedURL&&(this._currentRedirectedURL=ve,this._onURLRedirect&&this._onURLRedirect(ve))}if(te.status>=200&&te.status<=299){if(this._waitForTotalLength)return;this._status=i.kBuffering}else if(this._status=i.kError,this._onError)this._onError(a.HTTP_STATUS_CODE_INVALID,{code:te.status,msg:te.statusText});else throw new h("RangeLoader: Http code invalid, "+te.status+" "+te.statusText)}}},{key:"_onProgress",value:function($){if(this._status===i.kError)return;if(this._contentLength===null){var te=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,te=!0;var ve=$.total;this._internalAbort(),ve!=null&ve!==0&&(this._totalLength=ve)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,te){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var Ie=$.loaded-this._lastTimeLoaded;this._lastTimeLoaded=$.loaded,this._speedSampler.addBytes(Ie)}},{key:"_normalizeSpeed",value:function($){var te=this._chunkSizeKBList,ve=te.length-1,Ie=0,He=0,ct=ve;if($=te[Ie]&&$=3&&(te=this._speedSampler.currentKBps)),te!==0){var ve=this._normalizeSpeed(te);this._currentSpeedNormalized!==ve&&(this._currentSpeedNormalized=ve,this._currentChunkSizeKB=ve)}var Ie=$.target.response,He=this._range.from+this._receivedLength;this._receivedLength+=Ie.byteLength;var ct=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0)for(var Ie=$.split("&"),He=0;He0;ct[0]!==this._startName&&ct[0]!==this._endName&&(ut&&(ve+="&"),ve+=Ie[He])}return ve.length===0?X:X+"?"+ve}}]),Ee}(),V=R,ne=function(){function Ee(de,j,X){Object(q.a)(this,Ee),this.TAG="IOController",this._config=j,this._extraData=X,this._stashInitialSize=1024*384,j.stashInitialSize!=null&&j.stashInitialSize>0&&(this._stashInitialSize=j.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,j.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=de,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(de.url),this._refTotalLength=de.filesize?de.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new I,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(z.a)(Ee,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(j){this._extraData=j}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(j){this._onDataArrival=j}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(j){this._onSeeked=j}},{key:"onError",get:function(){return this._onError},set:function(j){this._onError=j}},{key:"onComplete",get:function(){return this._onComplete},set:function(j){this._onComplete=j}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(j){this._onRedirect=j}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(j){this._onRecoveredEarlyEof=j}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===M?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var j=this._config;if(j.seekType==="range")this._seekHandler=new F(this._config.rangeLoadZeroStart);else if(j.seekType==="param"){var X=j.seekParamStart||"bstart",$=j.seekParamEnd||"bend";this._seekHandler=new V(X,$)}else if(j.seekType==="custom"){if(typeof j.customSeekHandler!="function")throw new o("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new j.customSeekHandler}else throw new o("Invalid seekType in config: ".concat(j.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=L;else if(E.isSupported())this._loaderClass=E;else if(f.isSupported())this._loaderClass=f;else if(M.isSupported())this._loaderClass=M;else throw new h("Your browser doesn't support xhr with arraybuffer responseType!")}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(j){this._currentRange={from:0,to:-1},j&&(this._currentRange.from=j),this._speedSampler.reset(),j||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var j=this._resumeFrom;this._resumeFrom=0,this._internalSeek(j,!0)}}},{key:"seek",value:function(j){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(j,!0)}},{key:"_internalSeek",value:function(j,X){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(X),this._loader.destroy(),this._loader=null;var $={from:j,to:-1};this._currentRange={from:$.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,$),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(j){if(!j||typeof j!="string"||j.length===0)throw new o("Url must be a non-empty string!");this._dataSource.url=j}},{key:"_expandBuffer",value:function(j){for(var X=this._stashSize;X+1024*1024*10){var te=new Uint8Array(this._stashBuffer,0,this._stashUsed),ve=new Uint8Array($,0,X);ve.set(te,0)}this._stashBuffer=$,this._bufferSize=X}},{key:"_normalizeSpeed",value:function(j){var X=this._speedNormalizeList,$=X.length-1,te=0,ve=0,Ie=$;if(j=X[te]&&j=512&&j<=1024?X=Math.floor(j*1.5):X=j*2,X>8192&&(X=8192);var $=X*1024+1024*1024*1;this._bufferSize<$&&this._expandBuffer($),this._stashSize=X*1024}},{key:"_dispatchChunks",value:function(j,X){return this._currentRange.to=X+j.byteLength-1,this._onDataArrival(j,X)}},{key:"_onURLRedirect",value:function(j){this._redirectedURL=j,this._onRedirect&&this._onRedirect(j)}},{key:"_onContentLengthKnown",value:function(j){j&&this._fullRequestFlag&&(this._totalLength=j,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(j,X,$){if(!this._onDataArrival)throw new c("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(j.byteLength);var te=this._speedSampler.lastSecondKBps;if(te!==0){var ve=this._normalizeSpeed(te);this._speedNormalized!==ve&&(this._speedNormalized=ve,this._adjustStashSize(ve))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=X),this._stashUsed+j.byteLength<=this._stashSize){var Kt=new Uint8Array(this._stashBuffer,0,this._stashSize);Kt.set(new Uint8Array(j),this._stashUsed),this._stashUsed+=j.byteLength}else{var dt=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var sn=this._stashBuffer.slice(0,this._stashUsed),jt=this._dispatchChunks(sn,this._stashByteStart);if(jt0){var St=new Uint8Array(sn,jt);dt.set(St,0),this._stashUsed=St.byteLength,this._stashByteStart+=jt}}else this._stashUsed=0,this._stashByteStart+=jt;this._stashUsed+j.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+j.byteLength),dt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),dt.set(new Uint8Array(j),this._stashUsed),this._stashUsed+=j.byteLength}else{var at=this._dispatchChunks(j,X);if(atthis._bufferSize&&(this._expandBuffer(xn),dt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),dt.set(new Uint8Array(j,at),0),this._stashUsed+=xn,this._stashByteStart=X+at}}}else if(this._stashUsed===0){var Ie=this._dispatchChunks(j,X);if(Iethis._bufferSize&&this._expandBuffer(He);var ct=new Uint8Array(this._stashBuffer,0,this._bufferSize);ct.set(new Uint8Array(j,Ie),0),this._stashUsed+=He,this._stashByteStart=X+Ie}}else{this._stashUsed+j.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+j.byteLength);var ut=new Uint8Array(this._stashBuffer,0,this._bufferSize);ut.set(new Uint8Array(j),this._stashUsed),this._stashUsed+=j.byteLength;var ze=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(ze0){var gt=new Uint8Array(this._stashBuffer,ze);ut.set(gt,0)}this._stashUsed-=ze,this._stashByteStart+=ze}}},{key:"_flushStashBuffer",value:function(j){if(this._stashUsed>0){var X=this._stashBuffer.slice(0,this._stashUsed),$=this._dispatchChunks(X,this._stashByteStart),te=X.byteLength-$;if($0){var ve=new Uint8Array(this._stashBuffer,0,this._bufferSize),Ie=new Uint8Array(X,$);ve.set(Ie,0),this._stashUsed=Ie.byteLength,this._stashByteStart+=$}return 0}return this._stashUsed=0,this._stashByteStart=0,te}return 0}},{key:"_onLoaderComplete",value:function(j,X){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(j,X){k.e(this.TAG,"Loader error, code = ".concat(X.code,", msg = ").concat(X.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,j=a.UNRECOVERABLE_EARLY_EOF);switch(j){case a.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var $=this._currentRange.to+1;$0){var X=Ee.getConfig();j.emit("change",X)}}},{key:"registerListener",value:function(j){Ee.emitter.addListener("change",j)}},{key:"removeListener",value:function(j){Ee.emitter.removeListener("change",j)}},{key:"addLogListener",value:function(j){k.emitter.addListener("log",j),k.emitter.listenerCount("log")>0&&(k.ENABLE_CALLBACK=!0,Ee._notifyChange())}},{key:"removeLogListener",value:function(j){k.emitter.removeListener("log",j),k.emitter.listenerCount("log")===0&&(k.ENABLE_CALLBACK=!1,Ee._notifyChange())}}]),Ee}();Te.emitter=new O.a;var Z=Te,U=function(){function Ee(){Object(q.a)(this,Ee),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return Object(z.a)(Ee,[{key:"isComplete",value:function(){var j=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,X=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&j&&X}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(j){if(this.keyframesIndex==null)return null;var X=this.keyframesIndex,$=this._search(X.times,j);return{index:$,milliseconds:X.times[$],fileposition:X.filepositions[$]}}},{key:"_search",value:function(j,X){var $=0,te=j.length-1,ve=0,Ie=0,He=te;for(X=j[ve]&&X=128){de.push(String.fromCharCode(te&65535)),X+=2;continue}}}else if(j[X]<240){if(ee(j,X,2)){var ve=(j[X]&15)<<12|(j[X+1]&63)<<6|j[X+2]&63;if(ve>=2048&&(ve&63488)!==55296){de.push(String.fromCharCode(ve&65535)),X+=3;continue}}}else if(j[X]<248&&ee(j,X,3)){var Ie=(j[X]&7)<<18|(j[X+1]&63)<<12|(j[X+2]&63)<<6|j[X+3]&63;if(Ie>65536&&Ie<1114112){Ie-=65536,de.push(String.fromCharCode(Ie>>>10|55296)),de.push(String.fromCharCode(Ie&1023|56320)),X+=4;continue}}}de.push(String.fromCharCode(65533)),++X}return de.join("")}var J=ue,we=function(){var Ee=new ArrayBuffer(2);return new DataView(Ee).setInt16(0,256,!0),new Int16Array(Ee)[0]===256}(),Ge=function(){function Ee(){Object(q.a)(this,Ee)}return Object(z.a)(Ee,null,[{key:"parseScriptData",value:function(j,X,$){var te={};try{var ve=Ee.parseValue(j,X,$),Ie=Ee.parseValue(j,X+ve.size,$-ve.size);te[ve.data]=Ie.data}catch(He){k.e("AMF",He.toString())}return te}},{key:"parseObject",value:function(j,X,$){if($<3)throw new c("Data not enough when parse ScriptDataObject");var te=Ee.parseString(j,X,$),ve=Ee.parseValue(j,X+te.size,$-te.size),Ie=ve.objectEnd;return{data:{name:te.data,value:ve.data},size:te.size+ve.size,objectEnd:Ie}}},{key:"parseVariable",value:function(j,X,$){return Ee.parseObject(j,X,$)}},{key:"parseString",value:function(j,X,$){if($<2)throw new c("Data not enough when parse String");var te=new DataView(j,X,$),ve=te.getUint16(0,!we),Ie;return ve>0?Ie=J(new Uint8Array(j,X+2,ve)):Ie="",{data:Ie,size:2+ve}}},{key:"parseLongString",value:function(j,X,$){if($<4)throw new c("Data not enough when parse LongString");var te=new DataView(j,X,$),ve=te.getUint32(0,!we),Ie;return ve>0?Ie=J(new Uint8Array(j,X+4,ve)):Ie="",{data:Ie,size:4+ve}}},{key:"parseDate",value:function(j,X,$){if($<10)throw new c("Data size invalid when parse Date");var te=new DataView(j,X,$),ve=te.getFloat64(0,!we),Ie=te.getInt16(8,!we);return ve+=Ie*60*1e3,{data:new Date(ve),size:8+2}}},{key:"parseValue",value:function(j,X,$){if($<1)throw new c("Data not enough when parse Value");var te=new DataView(j,X,$),ve=1,Ie=te.getUint8(0),He,ct=!1;try{switch(Ie){case 0:He=te.getFloat64(1,!we),ve+=8;break;case 1:{var ut=te.getUint8(1);He=!!ut,ve+=1;break}case 2:{var ze=Ee.parseString(j,X+1,$-1);He=ze.data,ve+=ze.size;break}case 3:{He={};var gt=0;for((te.getUint32($-4,!we)&16777215)===9&&(gt=3);ve<$-4;){var Kt=Ee.parseObject(j,X+ve,$-ve-gt);if(Kt.objectEnd)break;He[Kt.data.name]=Kt.data.value,ve+=Kt.size}if(ve<=$-3){var dt=te.getUint32(ve-1,!we)&16777215;dt===9&&(ve+=3)}break}case 8:{He={},ve+=4;var sn=0;for((te.getUint32($-4,!we)&16777215)===9&&(sn=3);ve<$-8;){var jt=Ee.parseVariable(j,X+ve,$-ve-sn);if(jt.objectEnd)break;He[jt.data.name]=jt.data.value,ve+=jt.size}if(ve<=$-3){var St=te.getUint32(ve-1,!we)&16777215;St===9&&(ve+=3)}break}case 9:He=void 0,ve=1,ct=!0;break;case 10:{He=[];var at=te.getUint32(1,!we);ve+=4;for(var xn=0;xn32)throw new o("ExpGolomb: readBits() bits exceeded max 32bits!");if(j<=this._current_word_bits_left){var X=this._current_word>>>32-j;return this._current_word<<=j,this._current_word_bits_left-=j,X}var $=this._current_word_bits_left?this._current_word:0;$=$>>>32-this._current_word_bits_left;var te=j-this._current_word_bits_left;this._fillCurrentWord();var ve=Math.min(te,this._current_word_bits_left),Ie=this._current_word>>>32-ve;return this._current_word<<=ve,this._current_word_bits_left-=ve,$=$<>>j)!==0)return this._current_word<<=j,this._current_word_bits_left-=j,j;return this._fillCurrentWord(),j+this._skipLeadingZero()}},{key:"readUEG",value:function(){var j=this._skipLeadingZero();return this.readBits(j+1)-1}},{key:"readSEG",value:function(){var j=this.readUEG();return j&1?j+1>>>1:-1*(j>>>1)}}]),Ee}(),Re=be,xe=function(){function Ee(){Object(q.a)(this,Ee)}return Object(z.a)(Ee,null,[{key:"_ebsp2rbsp",value:function(j){for(var X=j,$=X.byteLength,te=new Uint8Array($),ve=0,Ie=0;Ie<$;Ie++){if(Ie>=2&&(X[Ie]===3&&X[Ie-1]===0&&X[Ie-2]===0))continue;te[ve]=X[Ie],ve++}return new Uint8Array(te.buffer,0,ve)}},{key:"parseSPS",value:function(j){var X=Ee._ebsp2rbsp(j),$=new Re(X);$.readByte();var te=$.readByte();$.readByte();var ve=$.readByte();$.readUEG();var Ie=Ee.getProfileString(te),He=Ee.getLevelString(ve),ct=1,ut=420,ze=[0,420,422,444],gt=8;if((te===100||te===110||te===122||te===244||te===44||te===83||te===86||te===118||te===128||te===138||te===144)&&(ct=$.readUEG(),ct===3&&$.readBits(1),ct<=3&&(ut=ze[ct]),gt=$.readUEG()+8,$.readUEG(),$.readBits(1),$.readBool()))for(var Kt=ct!==3?8:12,dt=0;dt0&&yr<16?(Jn=Qr[yr-1],Cn=_r[yr-1]):yr===255&&(Jn=$.readByte()<<8|$.readByte(),Cn=$.readByte()<<8|$.readByte())}if($.readBool()&&$.readBool(),$.readBool()&&($.readBits(4),$.readBool()&&$.readBits(24)),$.readBool()&&($.readUEG(),$.readUEG()),$.readBool()){var ir=$.readBits(32),Pr=$.readBits(32);Dr=$.readBool(),Hr=Pr,vr=ir*2,Dn=Hr/vr}}var Lr=1;(Jn!==1||Cn!==1)&&(Lr=Jn/Cn);var Or=0,Sr=0;if(ct===0)Or=1,Sr=2-ln;else{var ci=ct===3?1:2,yi=ct===1?2:1;Or=ci,Sr=yi*(2-ln)}var ii=(xn+1)*16,Zr=(2-ln)*((it+1)*16);ii-=(cn+Yn)*Or,Zr-=(nr+vn)*Sr;var Ai=Math.ceil(ii*Lr);return $.destroy(),$=null,{profile_string:Ie,level_string:He,bit_depth:gt,ref_frames:at,chroma_format:ut,chroma_format_string:Ee.getChromaFormatString(ut),frame_rate:{fixed:Dr,fps:Dn,fps_den:vr,fps_num:Hr},sar_ratio:{width:Jn,height:Cn},codec_size:{width:ii,height:Zr},present_size:{width:Ai,height:Zr}}}},{key:"_skipScalingList",value:function(j,X){for(var $=8,te=8,ve=0,Ie=0;Ie>>8&255|(Ee&255)<<8}function tt(Ee){return(Ee&4278190080)>>>24|(Ee&16711680)>>>8|(Ee&65280)<<8|(Ee&255)<<24}function ht(Ee,de){return Ee[de]<<24|Ee[de+1]<<16|Ee[de+2]<<8|Ee[de+3]}var ft=function(){function Ee(de,j){Object(q.a)(this,Ee),this.TAG="FLVDemuxer",this._config=j,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=de.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=de.hasAudioTrack,this._hasVideo=de.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new G,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var X=new ArrayBuffer(2);return new DataView(X).setInt16(0,256,!0),new Int16Array(X)[0]===256}()}return Object(z.a)(Ee,[{key:"destroy",value:function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}},{key:"bindDataSource",value:function(j){return j.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(j){this._onTrackMetadata=j}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(j){this._onMediaInfo=j}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(j){this._onMetaDataArrived=j}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(j){this._onScriptDataArrived=j}},{key:"onError",get:function(){return this._onError},set:function(j){this._onError=j}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(j){this._onDataAvailable=j}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(j){this._timestampBase=j}},{key:"overridedDuration",get:function(){return this._duration},set:function(j){this._durationOverrided=!0,this._duration=j,this._mediaInfo.duration=j}},{key:"overridedHasAudio",set:function(j){this._hasAudioFlagOverrided=!0,this._hasAudio=j,this._mediaInfo.hasAudio=j}},{key:"overridedHasVideo",set:function(j){this._hasVideoFlagOverrided=!0,this._hasVideo=j,this._mediaInfo.hasVideo=j}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new G}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}},{key:"parseChunks",value:function(j,X){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new c("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var $=0,te=this._littleEndian;if(X===0)if(j.byteLength>13){var ve=Ee.probe(j);$=ve.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,X+$!==this._dataOffset&&k.w(this.TAG,"First time parsing but chunk byteStart invalid!");var Ie=new DataView(j,$),He=Ie.getUint32(0,!te);He!==0&&k.w(this.TAG,"PrevTagSize0 !== 0 !!!"),$+=4}for(;$j.byteLength)break;var ut=ct.getUint8(0),ze=ct.getUint32(0,!te)&16777215;if($+11+ze+4>j.byteLength)break;if(ut!==8&&ut!==9&&ut!==18){k.w(this.TAG,"Unsupported tag type ".concat(ut,", skipped")),$+=11+ze+4;continue}var gt=ct.getUint8(4),Kt=ct.getUint8(5),dt=ct.getUint8(6),sn=ct.getUint8(7),jt=dt|Kt<<8|gt<<16|sn<<24,St=ct.getUint32(7,!te)&16777215;St!==0&&k.w(this.TAG,"Meet tag which has StreamID != 0!");var at=$+11;switch(ut){case 8:this._parseAudioData(j,at,ze,jt);break;case 9:this._parseVideoData(j,at,ze,jt,X+$);break;case 18:this._parseScriptData(j,at,ze);break}var xn=ct.getUint32(11+ze,!te);xn!==11+ze&&k.w(this.TAG,"Invalid PrevTagSize ".concat(xn)),$+=11+ze+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),$}},{key:"_parseScriptData",value:function(j,X,$){var te=Je.parseScriptData(j,X,$);if(te.hasOwnProperty("onMetaData")){if(te.onMetaData==null||typeof te.onMetaData!="object"){k.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&k.w(this.TAG,"Found another onMetaData tag!"),this._metadata=te;var ve=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},ve)),typeof ve.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=ve.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof ve.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=ve.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof ve.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=ve.audiodatarate),typeof ve.videodatarate=="number"&&(this._mediaInfo.videoDataRate=ve.videodatarate),typeof ve.width=="number"&&(this._mediaInfo.width=ve.width),typeof ve.height=="number"&&(this._mediaInfo.height=ve.height),typeof ve.duration=="number"){if(!this._durationOverrided){var Ie=Math.floor(ve.duration*this._timescale);this._duration=Ie,this._mediaInfo.duration=Ie}}else this._mediaInfo.duration=0;if(typeof ve.framerate=="number"){var He=Math.floor(ve.framerate*1e3);if(He>0){var ct=He/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=ct,this._referenceFrameRate.fps_num=He,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=ct}}if(typeof ve.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var ut=ve.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(ut),ve.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=ve,k.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(te).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},te)))}},{key:"_parseKeyframesIndex",value:function(j){for(var X=[],$=[],te=1;te>>4;if(ct!==2&&ct!==10){this._onError(Xe.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+ct);return}var ut=0,ze=(He&12)>>>2;if(ze>=0&&ze<=4)ut=this._flvSoundRateTable[ze];else{this._onError(Xe.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+ze);return}var gt=(He&2)>>>1,Kt=He&1,dt=this._audioMetadata,sn=this._audioTrack;if(dt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),dt=this._audioMetadata={},dt.type="audio",dt.id=sn.id,dt.timescale=this._timescale,dt.duration=this._duration,dt.audioSampleRate=ut,dt.channelCount=Kt===0?1:2),ct===10){var jt=this._parseAACAudioData(j,X+1,$-1);if(jt==null)return;if(jt.packetType===0){dt.config&&k.w(this.TAG,"Found another AudioSpecificConfig!");var St=jt.data;dt.audioSampleRate=St.samplingRate,dt.channelCount=St.channelCount,dt.codec=St.codec,dt.originalCodec=St.originalCodec,dt.config=St.config,dt.refSampleDuration=1024/dt.audioSampleRate*dt.timescale,k.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",dt);var at=this._mediaInfo;at.audioCodec=dt.originalCodec,at.audioSampleRate=dt.audioSampleRate,at.audioChannelCount=dt.channelCount,at.hasVideo?at.videoCodec!=null&&(at.mimeType='video/x-flv; codecs="'+at.videoCodec+","+at.audioCodec+'"'):at.mimeType='video/x-flv; codecs="'+at.audioCodec+'"',at.isComplete()&&this._onMediaInfo(at)}else if(jt.packetType===1){var xn=this._timestampBase+te,it={unit:jt.data,length:jt.data.byteLength,dts:xn,pts:xn};sn.samples.push(it),sn.length+=jt.data.length}else k.e(this.TAG,"Flv: Unsupported AAC data type ".concat(jt.packetType))}else if(ct===2){if(!dt.codec){var ln=this._parseMP3AudioData(j,X+1,$-1,!0);if(ln==null)return;dt.audioSampleRate=ln.samplingRate,dt.channelCount=ln.channelCount,dt.codec=ln.codec,dt.originalCodec=ln.originalCodec,dt.refSampleDuration=1152/dt.audioSampleRate*dt.timescale,k.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",dt);var cn=this._mediaInfo;cn.audioCodec=dt.codec,cn.audioSampleRate=dt.audioSampleRate,cn.audioChannelCount=dt.channelCount,cn.audioDataRate=ln.bitRate,cn.hasVideo?cn.videoCodec!=null&&(cn.mimeType='video/x-flv; codecs="'+cn.videoCodec+","+cn.audioCodec+'"'):cn.mimeType='video/x-flv; codecs="'+cn.audioCodec+'"',cn.isComplete()&&this._onMediaInfo(cn)}var Yn=this._parseMP3AudioData(j,X+1,$-1,!1);if(Yn==null)return;var nr=this._timestampBase+te,vn={unit:Yn,length:Yn.byteLength,dts:nr,pts:nr};sn.samples.push(vn),sn.length+=Yn.length}}},{key:"_parseAACAudioData",value:function(j,X,$){if($<=1){k.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var te={},ve=new Uint8Array(j,X,$);return te.packetType=ve[0],ve[0]===0?te.data=this._parseAACAudioSpecificConfig(j,X+1,$-1):te.data=ve.subarray(1),te}},{key:"_parseAACAudioSpecificConfig",value:function(j,X,$){var te=new Uint8Array(j,X,$),ve=null,Ie=0,He=0,ct=null,ut=0,ze=null;if(Ie=He=te[0]>>>3,ut=(te[0]&7)<<1|te[1]>>>7,ut<0||ut>=this._mpegSamplingRates.length){this._onError(Xe.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var gt=this._mpegSamplingRates[ut],Kt=(te[1]&120)>>>3;if(Kt<0||Kt>=8){this._onError(Xe.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Ie===5&&(ze=(te[1]&7)<<1|te[2]>>>7,ct=(te[2]&124)>>>2);var dt=self.navigator.userAgent.toLowerCase();return dt.indexOf("firefox")!==-1?ut>=6?(Ie=5,ve=new Array(4),ze=ut-3):(Ie=2,ve=new Array(2),ze=ut):dt.indexOf("android")!==-1?(Ie=2,ve=new Array(2),ze=ut):(Ie=5,ze=ut,ve=new Array(4),ut>=6?ze=ut-3:Kt===1&&(Ie=2,ve=new Array(2),ze=ut)),ve[0]=Ie<<3,ve[0]|=(ut&15)>>>1,ve[1]=(ut&15)<<7,ve[1]|=(Kt&15)<<3,Ie===5&&(ve[1]|=(ze&15)>>>1,ve[2]=(ze&1)<<7,ve[2]|=2<<2,ve[3]=0),{config:ve,samplingRate:gt,channelCount:Kt,codec:"mp4a.40."+Ie,originalCodec:"mp4a.40."+He}}},{key:"_parseMP3AudioData",value:function(j,X,$,te){if($<4){k.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var ve=this._littleEndian,Ie=new Uint8Array(j,X,$),He=null;if(te){if(Ie[0]!==255)return;var ct=Ie[1]>>>3&3,ut=(Ie[1]&6)>>1,ze=(Ie[2]&240)>>>4,gt=(Ie[2]&12)>>>2,Kt=Ie[3]>>>6&3,dt=Kt!==3?2:1,sn=0,jt=0,St=34,at="mp3";switch(ct){case 0:sn=this._mpegAudioV25SampleRateTable[gt];break;case 2:sn=this._mpegAudioV20SampleRateTable[gt];break;case 3:sn=this._mpegAudioV10SampleRateTable[gt];break}switch(ut){case 1:St=34,ze>>4,ct=Ie&15;if(ct!==7){this._onError(Xe.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(ct));return}this._parseAVCVideoPacket(j,X+1,$-1,te,ve,He)}},{key:"_parseAVCVideoPacket",value:function(j,X,$,te,ve,Ie){if($<4){k.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var He=this._littleEndian,ct=new DataView(j,X,$),ut=ct.getUint8(0),ze=ct.getUint32(0,!He)&16777215,gt=ze<<8>>8;if(ut===0)this._parseAVCDecoderConfigurationRecord(j,X+4,$-4);else if(ut===1)this._parseAVCVideoData(j,X+4,$-4,te,ve,Ie,gt);else if(!(ut===2)){this._onError(Xe.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(ut));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(j,X,$){if($<7){k.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var te=this._videoMetadata,ve=this._videoTrack,Ie=this._littleEndian,He=new DataView(j,X,$);te?typeof te.avcc!="undefined"&&k.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),te=this._videoMetadata={},te.type="video",te.id=ve.id,te.timescale=this._timescale,te.duration=this._duration);var ct=He.getUint8(0),ut=He.getUint8(1),ze=He.getUint8(2),gt=He.getUint8(3);if(ct!==1||ut===0){this._onError(Xe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(He.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Xe.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var Kt=He.getUint8(5)&31;if(Kt===0){this._onError(Xe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Kt>1&&k.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(Kt));for(var dt=6,sn=0;sn1&&k.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(gr));dt++;for(var Jn=0;Jn=$){k.w(this.TAG,"Malformed Nalu near timestamp ".concat(sn,", offset = ").concat(Kt,", dataSize = ").concat($));break}var St=ut.getUint32(Kt,!ct);if(dt===3&&(St>>>=8),St>$-dt){k.w(this.TAG,"Malformed Nalus near timestamp ".concat(sn,", NaluSize > DataSize!"));return}var at=ut.getUint8(Kt+dt)&31;at===5&&(jt=!0);var xn=new Uint8Array(j,X+Kt,dt+St),it={type:at,data:xn};ze.push(it),gt+=xn.byteLength,Kt+=dt+St}if(ze.length){var ln=this._videoTrack,cn={units:ze,length:gt,isKeyframe:jt,dts:sn,cts:He,pts:sn+He};jt&&(cn.fileposition=ve),ln.samples.push(cn),ln.length+=gt}}}],[{key:"probe",value:function(j){var X=new Uint8Array(j),$={match:!1};if(X[0]!==70||X[1]!==76||X[2]!==86||X[3]!==1)return $;var te=(X[4]&4)>>>2!==0,ve=(X[4]&1)!==0,Ie=ht(X,5);return Ie<9?$:{match:!0,consumed:Ie,dataOffset:Ie,hasAudioTrack:te,hasVideoTrack:ve}}}]),Ee}(),Ne=ft,Ue=function(){function Ee(){Object(q.a)(this,Ee)}return Object(z.a)(Ee,null,[{key:"init",value:function(){Ee.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var j in Ee.types)Ee.types.hasOwnProperty(j)&&(Ee.types[j]=[j.charCodeAt(0),j.charCodeAt(1),j.charCodeAt(2),j.charCodeAt(3)]);var X=Ee.constants={};X.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),X.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),X.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),X.STSC=X.STCO=X.STTS,X.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),X.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),X.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),X.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),X.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),X.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(j){for(var X=8,$=null,te=Array.prototype.slice.call(arguments,1),ve=te.length,Ie=0;Ie>>24&255,$[1]=X>>>16&255,$[2]=X>>>8&255,$[3]=X&255,$.set(j,4);for(var He=8,ct=0;ct>>24&255,j>>>16&255,j>>>8&255,j&255,X>>>24&255,X>>>16&255,X>>>8&255,X&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(j){return Ee.box(Ee.types.trak,Ee.tkhd(j),Ee.mdia(j))}},{key:"tkhd",value:function(j){var X=j.id,$=j.duration,te=j.presentWidth,ve=j.presentHeight;return Ee.box(Ee.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,X>>>24&255,X>>>16&255,X>>>8&255,X&255,0,0,0,0,$>>>24&255,$>>>16&255,$>>>8&255,$&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,te>>>8&255,te&255,0,0,ve>>>8&255,ve&255,0,0]))}},{key:"mdia",value:function(j){return Ee.box(Ee.types.mdia,Ee.mdhd(j),Ee.hdlr(j),Ee.minf(j))}},{key:"mdhd",value:function(j){var X=j.timescale,$=j.duration;return Ee.box(Ee.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,X>>>24&255,X>>>16&255,X>>>8&255,X&255,$>>>24&255,$>>>16&255,$>>>8&255,$&255,85,196,0,0]))}},{key:"hdlr",value:function(j){var X=null;return j.type==="audio"?X=Ee.constants.HDLR_AUDIO:X=Ee.constants.HDLR_VIDEO,Ee.box(Ee.types.hdlr,X)}},{key:"minf",value:function(j){var X=null;return j.type==="audio"?X=Ee.box(Ee.types.smhd,Ee.constants.SMHD):X=Ee.box(Ee.types.vmhd,Ee.constants.VMHD),Ee.box(Ee.types.minf,X,Ee.dinf(),Ee.stbl(j))}},{key:"dinf",value:function(){var j=Ee.box(Ee.types.dinf,Ee.box(Ee.types.dref,Ee.constants.DREF));return j}},{key:"stbl",value:function(j){var X=Ee.box(Ee.types.stbl,Ee.stsd(j),Ee.box(Ee.types.stts,Ee.constants.STTS),Ee.box(Ee.types.stsc,Ee.constants.STSC),Ee.box(Ee.types.stsz,Ee.constants.STSZ),Ee.box(Ee.types.stco,Ee.constants.STCO));return X}},{key:"stsd",value:function(j){return j.type==="audio"?j.codec==="mp3"?Ee.box(Ee.types.stsd,Ee.constants.STSD_PREFIX,Ee.mp3(j)):Ee.box(Ee.types.stsd,Ee.constants.STSD_PREFIX,Ee.mp4a(j)):Ee.box(Ee.types.stsd,Ee.constants.STSD_PREFIX,Ee.avc1(j))}},{key:"mp3",value:function(j){var X=j.channelCount,$=j.audioSampleRate,te=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,X,0,16,0,0,0,0,$>>>8&255,$&255,0,0]);return Ee.box(Ee.types[".mp3"],te)}},{key:"mp4a",value:function(j){var X=j.channelCount,$=j.audioSampleRate,te=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,X,0,16,0,0,0,0,$>>>8&255,$&255,0,0]);return Ee.box(Ee.types.mp4a,te,Ee.esds(j))}},{key:"esds",value:function(j){var X=j.config||[],$=X.length,te=new Uint8Array([0,0,0,0,3,23+$,0,1,0,4,15+$,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([$]).concat(X).concat([6,1,2]));return Ee.box(Ee.types.esds,te)}},{key:"avc1",value:function(j){var X=j.avcc,$=j.codecWidth,te=j.codecHeight,ve=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,$>>>8&255,$&255,te>>>8&255,te&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return Ee.box(Ee.types.avc1,ve,Ee.box(Ee.types.avcC,X))}},{key:"mvex",value:function(j){return Ee.box(Ee.types.mvex,Ee.trex(j))}},{key:"trex",value:function(j){var X=j.id,$=new Uint8Array([0,0,0,0,X>>>24&255,X>>>16&255,X>>>8&255,X&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Ee.box(Ee.types.trex,$)}},{key:"moof",value:function(j,X){return Ee.box(Ee.types.moof,Ee.mfhd(j.sequenceNumber),Ee.traf(j,X))}},{key:"mfhd",value:function(j){var X=new Uint8Array([0,0,0,0,j>>>24&255,j>>>16&255,j>>>8&255,j&255]);return Ee.box(Ee.types.mfhd,X)}},{key:"traf",value:function(j,X){var $=j.id,te=Ee.box(Ee.types.tfhd,new Uint8Array([0,0,0,0,$>>>24&255,$>>>16&255,$>>>8&255,$&255])),ve=Ee.box(Ee.types.tfdt,new Uint8Array([0,0,0,0,X>>>24&255,X>>>16&255,X>>>8&255,X&255])),Ie=Ee.sdtp(j),He=Ee.trun(j,Ie.byteLength+16+16+8+16+8+8);return Ee.box(Ee.types.traf,te,ve,He,Ie)}},{key:"sdtp",value:function(j){for(var X=j.samples||[],$=X.length,te=new Uint8Array(4+$),ve=0;ve<$;ve++){var Ie=X[ve].flags;te[ve+4]=Ie.isLeading<<6|Ie.dependsOn<<4|Ie.isDependedOn<<2|Ie.hasRedundancy}return Ee.box(Ee.types.sdtp,te)}},{key:"trun",value:function(j,X){var $=j.samples||[],te=$.length,ve=12+16*te,Ie=new Uint8Array(ve);X+=8+ve,Ie.set([0,0,15,1,te>>>24&255,te>>>16&255,te>>>8&255,te&255,X>>>24&255,X>>>16&255,X>>>8&255,X&255],0);for(var He=0;He>>24&255,ct>>>16&255,ct>>>8&255,ct&255,ut>>>24&255,ut>>>16&255,ut>>>8&255,ut&255,ze.isLeading<<2|ze.dependsOn,ze.isDependedOn<<6|ze.hasRedundancy<<4|ze.isNonSync,0,0,gt>>>24&255,gt>>>16&255,gt>>>8&255,gt&255],12+16*He)}return Ee.box(Ee.types.trun,Ie)}},{key:"mdat",value:function(j){return Ee.box(Ee.types.mdat,j)}}]),Ee}();Ue.init();var Ze=Ue,et=function(){function Ee(){Object(q.a)(this,Ee)}return Object(z.a)(Ee,null,[{key:"getSilentFrame",value:function(j,X){if(j==="mp4a.40.2"){if(X===1)return new Uint8Array([0,200,0,128,35,128]);if(X===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(X===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(X===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(X===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(X===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(X===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(X===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(X===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),Ee}(),fe=et,re=function Ee(de,j,X,$,te){Object(q.a)(this,Ee),this.dts=de,this.pts=j,this.duration=X,this.originalDts=$,this.isSyncPoint=te,this.fileposition=null},ie=function(){function Ee(){Object(q.a)(this,Ee),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return Object(z.a)(Ee,[{key:"appendSyncPoint",value:function(j){j.isSyncPoint=!0,this.syncPoints.push(j)}}]),Ee}(),ce=function(){function Ee(){Object(q.a)(this,Ee),this._list=[]}return Object(z.a)(Ee,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(j){var X=this._list;if(j.length===0)return;X.length>0&&j[0].originalDts=X[ve].dts&&jX[te].lastSample.originalDts&&j=X[te].lastSample.originalDts&&(te===X.length-1||te0&&(ve=this._searchNearestSegmentBefore($.originalBeginDts)+1),this._lastAppendLocation=ve,this._list.splice(ve,0,$)}},{key:"getLastSegmentBefore",value:function(j){var X=this._searchNearestSegmentBefore(j);return X>=0?this._list[X]:null}},{key:"getLastSampleBefore",value:function(j){var X=this.getLastSegmentBefore(j);return X!=null?X.lastSample:null}},{key:"getLastSyncPointBefore",value:function(j){for(var X=this._searchNearestSegmentBefore(j),$=this._list[X].syncPoints;$.length===0&&X>0;)X--,$=this._list[X].syncPoints;return $.length>0?$[$.length-1]:null}}]),Ee}(),le=function(){function Ee(de){Object(q.a)(this,Ee),this.TAG="MP4Remuxer",this._config=de,this._isLive=de.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new pe("audio"),this._videoSegmentInfoList=new pe("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(w.chrome&&(w.version.major<50||w.version.major===50&&w.version.build<2661)),this._fillSilentAfterSeek=w.msedge||w.msie,this._mp3UseMpegAudio=!w.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(z.a)(Ee,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(j){return j.onDataAvailable=this.remux.bind(this),j.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(j){this._onInitSegment=j}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(j){this._onMediaSegment=j}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(j){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(j,X){if(!this._onMediaSegment)throw new c("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(j,X),this._remuxVideo(X),this._remuxAudio(j)}},{key:"_onTrackMetadataReceived",value:function(j,X){var $=null,te="mp4",ve=X.codec;if(j==="audio")this._audioMeta=X,X.codec==="mp3"&&this._mp3UseMpegAudio?(te="mpeg",ve="",$=new Uint8Array):$=Ze.generateInitSegment(X);else if(j==="video")this._videoMeta=X,$=Ze.generateInitSegment(X);else return;if(!this._onInitSegment)throw new c("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(j,{type:j,data:$.buffer,codec:ve,container:"".concat(j,"/").concat(te),mediaDuration:X.duration})}},{key:"_calculateDtsBase",value:function(j,X){if(this._dtsBaseInited)return;j.samples&&j.samples.length&&(this._audioDtsBase=j.samples[0].dts),X.samples&&X.samples.length&&(this._videoDtsBase=X.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var j=this._videoStashedLastSample,X=this._audioStashedLastSample,$={type:"video",id:1,sequenceNumber:0,samples:[],length:0};j!=null&&($.samples.push(j),$.length=j.length);var te={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};X!=null&&(te.samples.push(X),te.length=X.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo($,!0),this._remuxAudio(te,!0)}},{key:"_remuxAudio",value:function(j,X){if(this._audioMeta==null)return;var $=j,te=$.samples,ve=void 0,Ie=-1,He=-1,ct=-1,ut=this._audioMeta.refSampleDuration,ze=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,gt=this._dtsBaseInited&&this._audioNextDts===void 0,Kt=!1;if(!te||te.length===0)return;if(te.length===1&&!X)return;var dt=0,sn=null,jt=0;ze?(dt=0,jt=$.length):(dt=8,jt=8+$.length);var St=null;if(te.length>1&&(St=te.pop(),jt-=St.length),this._audioStashedLastSample!=null){var at=this._audioStashedLastSample;this._audioStashedLastSample=null,te.unshift(at),jt+=at.length}St!=null&&(this._audioStashedLastSample=St);var xn=te[0].dts-this._dtsBase;if(this._audioNextDts)ve=xn-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())ve=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(Kt=!0));else{var it=this._audioSegmentInfoList.getLastSampleBefore(xn);if(it!=null){var ln=xn-(it.originalDts+it.duration);ln<=3&&(ln=0);var cn=it.dts+it.duration+ln;ve=xn-cn}else ve=0}if(Kt){var Yn=xn-ve,nr=this._videoSegmentInfoList.getLastSegmentBefore(xn);if(nr!=null&&nr.beginDts=1?yr=Cn[Cn.length-1].duration:yr=Math.floor(ut);var ir=!1,Pr=null;if(yr>ut*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!w.safari){ir=!0;var Lr=Math.abs(yr-ut),Or=Math.ceil(Lr/ut),Sr=rr+ut;k.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
`+"dts: ".concat(rr+yr," ms, expected: ").concat(rr+Math.round(ut)," ms, ")+"delta: ".concat(Math.round(Lr)," ms, generate: ").concat(Or," frames"));var ci=fe.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);ci==null&&(k.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),ci=Hr),Pr=[];for(var yi=0;yi0){var Zr=Pr[Pr.length-1];Zr.duration=ii-Zr.dts}var Ai={dts:ii,pts:ii,cts:0,unit:ci,size:ci.byteLength,duration:0,originalDts:vr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Pr.push(Ai),jt+=Ai.size,Sr+=ut}var Ni=Pr[Pr.length-1];Ni.duration=rr+yr-Ni.dts,yr=Math.round(ut)}Cn.push({dts:rr,pts:rr,cts:0,unit:Dr.unit,size:Dr.unit.byteLength,duration:yr,originalDts:vr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),ir&&Cn.push.apply(Cn,Pr)}ze?sn=new Uint8Array(jt):(sn=new Uint8Array(jt),sn[0]=jt>>>24&255,sn[1]=jt>>>16&255,sn[2]=jt>>>8&255,sn[3]=jt&255,sn.set(Ze.types.mdat,4));for(var Ui=0;Ui1&&(dt=te.pop(),Kt-=dt.length),this._videoStashedLastSample!=null){var sn=this._videoStashedLastSample;this._videoStashedLastSample=null,te.unshift(sn),Kt+=sn.length}dt!=null&&(this._videoStashedLastSample=dt);var jt=te[0].dts-this._dtsBase;if(this._videoNextDts)ve=jt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())ve=0;else{var St=this._videoSegmentInfoList.getLastSampleBefore(jt);if(St!=null){var at=jt-(St.originalDts+St.duration);at<=3&&(at=0);var xn=St.dts+St.duration+at;ve=jt-xn}else ve=0}for(var it=new ie,ln=[],cn=0;cn=1?Dn=ln[ln.length-1].duration:Dn=Math.floor(this._videoMeta.refSampleDuration);if(vn){var vr=new re(gr,Cn,Dn,Yn.dts,!0);vr.fileposition=Yn.fileposition,it.appendSyncPoint(vr)}ln.push({dts:gr,pts:Cn,cts:Jn,units:Yn.units,size:Yn.length,isKeyframe:vn,duration:Dn,originalDts:nr,flags:{isLeading:0,dependsOn:vn?2:1,isDependedOn:vn?1:0,hasRedundancy:0,isNonSync:vn?0:1}})}gt=new Uint8Array(Kt),gt[0]=Kt>>>24&255,gt[1]=Kt>>>16&255,gt[2]=Kt>>>8&255,gt[3]=Kt&255,gt.set(Ze.types.mdat,4);for(var rr=0;rr0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,ve=this._demuxer.parseChunks(j,X);else if((te=Ne.probe(j)).match){this._demuxer=new Ne(te,this._config),this._remuxer||(this._remuxer=new he(this._config));var Ie=this._mediaDataSource;Ie.duration!=null&&!isNaN(Ie.duration)&&(this._demuxer.overridedDuration=Ie.duration),typeof Ie.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Ie.hasAudio),typeof Ie.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Ie.hasVideo),this._demuxer.timestampBase=Ie.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),ve=this._demuxer.parseChunks(j,X)}else te=null,k.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){$._internalAbort()}),this._emitter.emit(_e.DEMUX_ERROR,Xe.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),ve=0;return ve}},{key:"_onMediaInfo",value:function(j){var X=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},j),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,G.prototype));var $=Object.assign({},j);Object.setPrototypeOf($,G.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=$,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var te=X._pendingSeekTime;X._pendingSeekTime=null,X.seek(te)})}},{key:"_onMetaDataArrived",value:function(j){this._emitter.emit(_e.METADATA_ARRIVED,j)}},{key:"_onScriptDataArrived",value:function(j){this._emitter.emit(_e.SCRIPTDATA_ARRIVED,j)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(j){var X=j,$=X+1;$0&&$[0].originalDts===te&&(te=$[0].pts),this._emitter.emit(_e.RECOMMEND_SEEKPOINT,te)}}},{key:"_enableStatisticsReporter",value:function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(j){var X=this._mediaInfo.segments[j],$=Object.assign({},X);$.duration=this._mediaInfo.duration,$.segmentCount=this._mediaInfo.segmentCount,delete $.segments,delete $.keyframesIndex,this._emitter.emit(_e.MEDIA_INFO,$)}},{key:"_reportStatisticsInfo",value:function(){var j={};j.url=this._ioctl.currentURL,j.hasRedirect=this._ioctl.hasRedirect,j.hasRedirect&&(j.redirectedURL=this._ioctl.currentRedirectedURL),j.speed=this._ioctl.currentSpeed,j.loaderType=this._ioctl.loaderType,j.currentSegmentIndex=this._currentSegmentIndex,j.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(_e.STATISTICS_INFO,j)}}]),Ee}(),ke=Oe,$e=function(de){var j="TransmuxingWorker",X=null,$=jt.bind(this);Y.install(),de.addEventListener("message",function(St){switch(St.data.cmd){case"init":X=new ke(St.data.param[0],St.data.param[1]),X.on(_e.IO_ERROR,Kt.bind(this)),X.on(_e.DEMUX_ERROR,dt.bind(this)),X.on(_e.INIT_SEGMENT,te.bind(this)),X.on(_e.MEDIA_SEGMENT,ve.bind(this)),X.on(_e.LOADING_COMPLETE,Ie.bind(this)),X.on(_e.RECOVERED_EARLY_EOF,He.bind(this)),X.on(_e.MEDIA_INFO,ct.bind(this)),X.on(_e.METADATA_ARRIVED,ut.bind(this)),X.on(_e.SCRIPTDATA_ARRIVED,ze.bind(this)),X.on(_e.STATISTICS_INFO,gt.bind(this)),X.on(_e.RECOMMEND_SEEKPOINT,sn.bind(this));break;case"destroy":X&&(X.destroy(),X=null),de.postMessage({msg:"destroyed"});break;case"start":X.start();break;case"stop":X.stop();break;case"seek":X.seek(St.data.param);break;case"pause":X.pause();break;case"resume":X.resume();break;case"logging_config":{var at=St.data.param;Z.applyConfig(at),at.enableCallback===!0?Z.addLogListener($):Z.removeLogListener($);break}}});function te(St,at){var xn={msg:_e.INIT_SEGMENT,data:{type:St,data:at}};de.postMessage(xn,[at.data])}function ve(St,at){var xn={msg:_e.MEDIA_SEGMENT,data:{type:St,data:at}};de.postMessage(xn,[at.data])}function Ie(){var St={msg:_e.LOADING_COMPLETE};de.postMessage(St)}function He(){var St={msg:_e.RECOVERED_EARLY_EOF};de.postMessage(St)}function ct(St){var at={msg:_e.MEDIA_INFO,data:St};de.postMessage(at)}function ut(St){var at={msg:_e.METADATA_ARRIVED,data:St};de.postMessage(at)}function ze(St){var at={msg:_e.SCRIPTDATA_ARRIVED,data:St};de.postMessage(at)}function gt(St){var at={msg:_e.STATISTICS_INFO,data:St};de.postMessage(at)}function Kt(St,at){de.postMessage({msg:_e.IO_ERROR,data:{type:St,info:at}})}function dt(St,at){de.postMessage({msg:_e.DEMUX_ERROR,data:{type:St,info:at}})}function sn(St){de.postMessage({msg:_e.RECOMMEND_SEEKPOINT,data:St})}function jt(St,at){de.postMessage({msg:"logcat_callback",data:{type:St,logcat:at}})}},ot=$e,pt=function(){function Ee(de,j){if(Object(q.a)(this,Ee),this.TAG="Transmuxer",this._emitter=new O.a,j.enableWorker&&typeof Worker!="undefined")try{var X=D("0r65");this._worker=X(ot),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[de,j]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Z.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Z.getConfig()})}catch(te){k.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new ke(de,j)}else this._controller=new ke(de,j);if(this._controller){var $=this._controller;$.on(_e.IO_ERROR,this._onIOError.bind(this)),$.on(_e.DEMUX_ERROR,this._onDemuxError.bind(this)),$.on(_e.INIT_SEGMENT,this._onInitSegment.bind(this)),$.on(_e.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),$.on(_e.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),$.on(_e.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),$.on(_e.MEDIA_INFO,this._onMediaInfo.bind(this)),$.on(_e.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),$.on(_e.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),$.on(_e.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),$.on(_e.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(z.a)(Ee,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Z.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(j,X){this._emitter.addListener(j,X)}},{key:"off",value:function(j,X){this._emitter.removeListener(j,X)}},{key:"hasWorker",value:function(){return this._worker!=null}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(j){this._worker?this._worker.postMessage({cmd:"seek",param:j}):this._controller.seek(j)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(j,X){var $=this;Promise.resolve().then(function(){$._emitter.emit(_e.INIT_SEGMENT,j,X)})}},{key:"_onMediaSegment",value:function(j,X){var $=this;Promise.resolve().then(function(){$._emitter.emit(_e.MEDIA_SEGMENT,j,X)})}},{key:"_onLoadingComplete",value:function(){var j=this;Promise.resolve().then(function(){j._emitter.emit(_e.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var j=this;Promise.resolve().then(function(){j._emitter.emit(_e.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(j){var X=this;Promise.resolve().then(function(){X._emitter.emit(_e.MEDIA_INFO,j)})}},{key:"_onMetaDataArrived",value:function(j){var X=this;Promise.resolve().then(function(){X._emitter.emit(_e.METADATA_ARRIVED,j)})}},{key:"_onScriptDataArrived",value:function(j){var X=this;Promise.resolve().then(function(){X._emitter.emit(_e.SCRIPTDATA_ARRIVED,j)})}},{key:"_onStatisticsInfo",value:function(j){var X=this;Promise.resolve().then(function(){X._emitter.emit(_e.STATISTICS_INFO,j)})}},{key:"_onIOError",value:function(j,X){var $=this;Promise.resolve().then(function(){$._emitter.emit(_e.IO_ERROR,j,X)})}},{key:"_onDemuxError",value:function(j,X){var $=this;Promise.resolve().then(function(){$._emitter.emit(_e.DEMUX_ERROR,j,X)})}},{key:"_onRecommendSeekpoint",value:function(j){var X=this;Promise.resolve().then(function(){X._emitter.emit(_e.RECOMMEND_SEEKPOINT,j)})}},{key:"_onLoggingConfigChanged",value:function(j){this._worker&&this._worker.postMessage({cmd:"logging_config",param:j})}},{key:"_onWorkerMessage",value:function(j){var X=j.data,$=X.data;if(X.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(X.msg){case _e.INIT_SEGMENT:case _e.MEDIA_SEGMENT:this._emitter.emit(X.msg,$.type,$.data);break;case _e.LOADING_COMPLETE:case _e.RECOVERED_EARLY_EOF:this._emitter.emit(X.msg);break;case _e.MEDIA_INFO:Object.setPrototypeOf($,G.prototype),this._emitter.emit(X.msg,$);break;case _e.METADATA_ARRIVED:case _e.SCRIPTDATA_ARRIVED:case _e.STATISTICS_INFO:this._emitter.emit(X.msg,$);break;case _e.IO_ERROR:case _e.DEMUX_ERROR:this._emitter.emit(X.msg,$.type,$.info);break;case _e.RECOMMEND_SEEKPOINT:this._emitter.emit(X.msg,$);break;case"logcat_callback":k.emitter.emit("log",$.type,$.logcat);break;default:break}}}]),Ee}(),mt=pt,qt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},xt=qt,Ct=function(){function Ee(de){Object(q.a)(this,Ee),this.TAG="MSEController",this._config=de,this._emitter=new O.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new ce}return Object(z.a)(Ee,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(j,X){this._emitter.addListener(j,X)}},{key:"off",value:function(j,X){this._emitter.removeListener(j,X)}},{key:"attachMediaElement",value:function(j){if(this._mediaSource)throw new c("MediaSource has been attached to an HTMLMediaElement!");var X=this._mediaSource=new window.MediaSource;X.addEventListener("sourceopen",this.e.onSourceOpen),X.addEventListener("sourceended",this.e.onSourceEnded),X.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=j,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),j.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var j=this._mediaSource;for(var X in this._sourceBuffers){var $=this._pendingSegments[X];$.splice(0,$.length),this._pendingSegments[X]=null,this._pendingRemoveRanges[X]=null,this._lastInitSegments[X]=null;var te=this._sourceBuffers[X];if(te){if(j.readyState!=="closed"){try{j.removeSourceBuffer(te)}catch(ve){k.e(this.TAG,ve.message)}te.removeEventListener("error",this.e.onSourceBufferError),te.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[X]=null,this._sourceBuffers[X]=null}}if(j.readyState==="open")try{j.endOfStream()}catch(ve){k.e(this.TAG,ve.message)}j.removeEventListener("sourceopen",this.e.onSourceOpen),j.removeEventListener("sourceended",this.e.onSourceEnded),j.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(j,X){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(j),this._pendingSegments[j.type].push(j);return}var $=j,te="".concat($.container);$.codec&&$.codec.length>0&&(te+=";codecs=".concat($.codec));var ve=!1;if(k.v(this.TAG,"Received Initialization Segment, mimeType: "+te),this._lastInitSegments[$.type]=$,te!==this._mimeTypes[$.type]){if(this._mimeTypes[$.type])k.v(this.TAG,"Notice: ".concat($.type," mimeType changed, origin: ").concat(this._mimeTypes[$.type],", target: ").concat(te));else{ve=!0;try{var Ie=this._sourceBuffers[$.type]=this._mediaSource.addSourceBuffer(te);Ie.addEventListener("error",this.e.onSourceBufferError),Ie.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(He){k.e(this.TAG,He.message),this._emitter.emit(xt.ERROR,{code:He.code,msg:He.message});return}}this._mimeTypes[$.type]=te}X||this._pendingSegments[$.type].push($),ve||this._sourceBuffers[$.type]&&!this._sourceBuffers[$.type].updating&&this._doAppendSegments(),w.safari&&$.container==="audio/mpeg"&&$.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=$.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(j){var X=j;this._pendingSegments[X.type].push(X),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var $=this._sourceBuffers[X.type];$&&!$.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(j){for(var X in this._sourceBuffers){if(!this._sourceBuffers[X])continue;var $=this._sourceBuffers[X];if(this._mediaSource.readyState==="open")try{$.abort()}catch(ut){k.e(this.TAG,ut.message)}this._idrList.clear();var te=this._pendingSegments[X];if(te.splice(0,te.length),this._mediaSource.readyState==="closed")continue;for(var ve=0;ve<$.buffered.length;ve++){var Ie=$.buffered.start(ve),He=$.buffered.end(ve);this._pendingRemoveRanges[X].push({start:Ie,end:He})}if($.updating||this._doRemoveRanges(),w.safari){var ct=this._lastInitSegments[X];ct&&(this._pendingSegments[X].push(ct),$.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var j=this._mediaSource,X=this._sourceBuffers;if(!j||j.readyState!=="open"){j&&j.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}X.video&&X.video.updating||X.audio&&X.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,j.endOfStream())}},{key:"getNearestKeyframe",value:function(j){return this._idrList.getLastSyncPointBeforeDts(j)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var j=this._mediaElement.currentTime;for(var X in this._sourceBuffers){var $=this._sourceBuffers[X];if($){var te=$.buffered;if(te.length>=1&&j-te.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var j=this._mediaElement.currentTime;for(var X in this._sourceBuffers){var $=this._sourceBuffers[X];if($){for(var te=$.buffered,ve=!1,Ie=0;Ie=this._config.autoCleanupMaxBackwardDuration){ve=!0;var ut=j-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[X].push({start:He,end:ut})}}else ct0&&(isNaN(X)||$>X)&&(k.v(this.TAG,"Update MediaSource duration from ".concat(X," to ").concat($)),this._mediaSource.duration=$),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var j in this._pendingRemoveRanges){if(!this._sourceBuffers[j]||this._sourceBuffers[j].updating)continue;for(var X=this._sourceBuffers[j],$=this._pendingRemoveRanges[j];$.length&&!X.updating;){var te=$.shift();X.remove(te.start,te.end)}}}},{key:"_doAppendSegments",value:function(){var j=this._pendingSegments;for(var X in j){if(!this._sourceBuffers[X]||this._sourceBuffers[X].updating)continue;if(j[X].length>0){var $=j[X].shift();if($.timestampOffset){var te=this._sourceBuffers[X].timestampOffset,ve=$.timestampOffset/1e3,Ie=Math.abs(te-ve);Ie>.1&&(k.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(te," to ").concat(ve)),this._sourceBuffers[X].timestampOffset=ve),delete $.timestampOffset}if(!$.data||$.data.byteLength===0)continue;try{this._sourceBuffers[X].appendBuffer($.data),this._isBufferFull=!1,X==="video"&&$.hasOwnProperty("info")&&this._idrList.appendArray($.info.syncPoints)}catch(He){this._pendingSegments[X].unshift($),He.code===22?(this._isBufferFull||this._emitter.emit(xt.BUFFER_FULL),this._isBufferFull=!0):(k.e(this.TAG,He.message),this._emitter.emit(xt.ERROR,{code:He.code,msg:He.message}))}}}}},{key:"_onSourceOpen",value:function(){if(k.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var j=this._pendingSourceBufferInit;j.length;){var X=j.shift();this.appendInitSegment(X,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(xt.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){k.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){k.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var j=this._pendingSegments;return j.video.length>0||j.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var j=this._pendingRemoveRanges;return j.video.length>0||j.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(xt.UPDATE_END)}},{key:"_onSourceBufferError",value:function(j){k.e(this.TAG,"SourceBuffer Error: ".concat(j))}}]),Ee}(),Pt=Ct,Rt={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Gt={NETWORK_EXCEPTION:a.EXCEPTION,NETWORK_STATUS_CODE_INVALID:a.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:a.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:a.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Xe.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Xe.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Xe.CODEC_UNSUPPORTED},On=function(){function Ee(de,j){if(Object(q.a)(this,Ee),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new O.a,this._config=Le(),typeof j=="object"&&Object.assign(this._config,j),de.type.toLowerCase()!=="flv")throw new o("FlvPlayer requires an flv MediaDataSource input!");de.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=de,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var X=w.chrome&&(w.version.major<50||w.version.major===50&&w.version.build<2661);this._alwaysSeekKeyframe=!!(X||w.msedge||w.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(z.a)(Ee,[{key:"destroy",value:function(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(j,X){var $=this;j===je.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){$._emitter.emit(je.MEDIA_INFO,$.mediaInfo)}):j===je.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){$._emitter.emit(je.STATISTICS_INFO,$.statisticsInfo)})),this._emitter.addListener(j,X)}},{key:"off",value:function(j,X){this._emitter.removeListener(j,X)}},{key:"attachMediaElement",value:function(j){var X=this;if(this._mediaElement=j,j.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),j.addEventListener("seeking",this.e.onvSeeking),j.addEventListener("canplay",this.e.onvCanPlay),j.addEventListener("stalled",this.e.onvStalled),j.addEventListener("progress",this.e.onvProgress),this._msectl=new Pt(this._config),this._msectl.on(xt.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(xt.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(xt.SOURCE_OPEN,function(){X._mseSourceOpened=!0,X._hasPendingLoad&&(X._hasPendingLoad=!1,X.load())}),this._msectl.on(xt.ERROR,function($){X._emitter.emit(je.ERROR,Rt.MEDIA_ERROR,Gt.MEDIA_MSE_ERROR,$)}),this._msectl.attachMediaElement(j),this._pendingSeekTime!=null)try{j.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch($){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var j=this;if(!this._mediaElement)throw new c("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new c("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new mt(this._mediaDataSource,this._config),this._transmuxer.on(_e.INIT_SEGMENT,function(X,$){j._msectl.appendInitSegment($)}),this._transmuxer.on(_e.MEDIA_SEGMENT,function(X,$){if(j._msectl.appendMediaSegment($),j._config.lazyLoad&&!j._config.isLive){var te=j._mediaElement.currentTime;$.info.endDts>=(te+j._config.lazyLoadMaxDuration)*1e3&&(j._progressChecker==null&&(k.v(j.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),j._suspendTransmuxer()))}}),this._transmuxer.on(_e.LOADING_COMPLETE,function(){j._msectl.endOfStream(),j._emitter.emit(je.LOADING_COMPLETE)}),this._transmuxer.on(_e.RECOVERED_EARLY_EOF,function(){j._emitter.emit(je.RECOVERED_EARLY_EOF)}),this._transmuxer.on(_e.IO_ERROR,function(X,$){j._emitter.emit(je.ERROR,Rt.NETWORK_ERROR,X,$)}),this._transmuxer.on(_e.DEMUX_ERROR,function(X,$){j._emitter.emit(je.ERROR,Rt.MEDIA_ERROR,X,{code:-1,msg:$})}),this._transmuxer.on(_e.MEDIA_INFO,function(X){j._mediaInfo=X,j._emitter.emit(je.MEDIA_INFO,Object.assign({},X))}),this._transmuxer.on(_e.METADATA_ARRIVED,function(X){j._emitter.emit(je.METADATA_ARRIVED,X)}),this._transmuxer.on(_e.SCRIPTDATA_ARRIVED,function(X){j._emitter.emit(je.SCRIPTDATA_ARRIVED,X)}),this._transmuxer.on(_e.STATISTICS_INFO,function(X){j._statisticsInfo=j._fillStatisticsInfo(X),j._emitter.emit(je.STATISTICS_INFO,Object.assign({},j._statisticsInfo))}),this._transmuxer.on(_e.RECOMMEND_SEEKPOINT,function(X){j._mediaElement&&!j._config.accurateSeek&&(j._requestSetTime=!0,j._mediaElement.currentTime=X/1e3)}),this._transmuxer.open()}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(j){this._mediaElement.volume=j}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(j){this._mediaElement.muted=j}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(j){this._mediaElement?this._internalSeek(j):this._pendingSeekTime=j}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"_fillStatisticsInfo",value:function(j){if(j.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return j;var X=!0,$=0,te=0;if(this._mediaElement.getVideoPlaybackQuality){var ve=this._mediaElement.getVideoPlaybackQuality();$=ve.totalVideoFrames,te=ve.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?($=this._mediaElement.webkitDecodedFrameCount,te=this._mediaElement.webkitDroppedFrameCount):X=!1;return X&&(j.decodedFrames=$,j.droppedFrames=te),j}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var j=this._mediaElement.buffered,X=this._mediaElement.currentTime,$=0,te=0,ve=0;ve=X+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(k.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){k.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var j=this._mediaElement.currentTime,X=this._mediaElement.buffered,$=!1,te=0;te=ve&&j=Ie-this._config.lazyLoadRecoverDuration&&($=!0);break}}$&&(window.clearInterval(this._progressChecker),this._progressChecker=null,$&&(k.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(j){for(var X=this._mediaElement.buffered,$=0;$=te&&j0){var ve=this._mediaElement.buffered.start(0);(ve<1&&j0&&X.currentTime<$.start(0)&&(k.w(this.TAG,"Playback seems stuck at ".concat(X.currentTime,", seek to ").concat($.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=$.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(j){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(j){var X=this._mediaElement.currentTime,$=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(X<1&&$.length>0){var te=$.start(0);if(te<1&&X0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(j){this._mediaElement.volume=j}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(j){this._mediaElement.muted=j}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(j){this._mediaElement?this._mediaElement.currentTime=j:this._pendingSeekTime=j}},{key:"mediaInfo",get:function(){var j=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",X={mimeType:j+this._mediaDataSource.type};return this._mediaElement&&(X.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(X.width=this._mediaElement.videoWidth,X.height=this._mediaElement.videoHeight)),X}},{key:"statisticsInfo",get:function(){var j={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return j;var X=!0,$=0,te=0;if(this._mediaElement.getVideoPlaybackQuality){var ve=this._mediaElement.getVideoPlaybackQuality();$=ve.totalVideoFrames,te=ve.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?($=this._mediaElement.webkitDecodedFrameCount,te=this._mediaElement.webkitDroppedFrameCount):X=!1;return X&&(j.decodedFrames=$,j.droppedFrames=te),j}},{key:"_onvLoadedMetadata",value:function(j){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(je.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(je.STATISTICS_INFO,this.statisticsInfo)}}]),Ee}(),An=Un;Y.install();function en(Ee,de){var j=Ee;if(j==null||typeof j!="object")throw new o("MediaDataSource must be an javascript object!");if(!j.hasOwnProperty("type"))throw new o("MediaDataSource must has type field to indicate video file type!");switch(j.type){case"flv":return new kt(j,de);default:return new An(j,de)}}function wn(){return Pe.supportMSEH264Playback()}function Wt(){return Pe.getFeatureList()}var At={};At.createPlayer=en,At.isSupported=wn,At.getFeatureList=Wt,At.BaseLoader=r,At.LoaderStatus=i,At.LoaderErrors=a,At.Events=je,At.ErrorTypes=Rt,At.ErrorDetails=Gt,At.FlvPlayer=kt,At.NativePlayer=An,At.LoggingControl=Z,Object.defineProperty(At,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Zt=ge.a=At},GgEA:function(We,ge,D){},HmJG:function(We,ge,D){},Hw79:function(We,ge,D){We.exports={pagination:"pagination___2VQzP",info:"info___1saw2"}},IBYe:function(We,ge,D){"use strict";function q(z){return null}ge.a=q},IxHN:function(We,ge,D){"use strict";var q=D("q1tI"),z=D.n(q),P=D("07cG"),Y=D.n(P);ge.a=function(N){var O=N.message,H=N.className,k=N.children,n=N.style,I=n===void 0?{}:n;return z.a.createElement("div",{className:"".concat(Y.a.idsRingWrapper," ").concat(H)},z.a.createElement("div",{className:Y.a.ldsRing},z.a.createElement("div",null),z.a.createElement("div",null),z.a.createElement("div",null),z.a.createElement("div",null)),O?z.a.createElement("p",{style:I},O):null,k)}},J66h:function(We,ge,D){(function(q){var z,P;(function(Y,N){We.exports=N(Y)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof q!="undefined"?q:this,function(Y){"use strict";Y=Y||{};var N=Y.Base64,O="2.6.4",H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k=function(y){for(var M={},W=0,L=y.length;W>>6)+n(128|M&63):n(224|M>>>12&15)+n(128|M>>>6&63)+n(128|M&63)}else{var M=65536+(y.charCodeAt(0)-55296)*1024+(y.charCodeAt(1)-56320);return n(240|M>>>18&7)+n(128|M>>>12&63)+n(128|M>>>6&63)+n(128|M&63)}},g=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,p=function(y){return y.replace(g,I)},h=function(y){var M=[0,2,1][y.length%3],W=y.charCodeAt(0)<<16|(y.length>1?y.charCodeAt(1):0)<<8|(y.length>2?y.charCodeAt(2):0),L=[H.charAt(W>>>18),H.charAt(W>>>12&63),M>=2?"=":H.charAt(W>>>6&63),M>=1?"=":H.charAt(W&63)];return L.join("")},c=Y.btoa&&typeof Y.btoa=="function"?function(y){return Y.btoa(y)}:function(y){if(y.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return y.replace(/[\s\S]{1,3}/g,h)},o=function(y){return c(p(String(y)))},d=function(y){return y.replace(/[+\/]/g,function(M){return M=="+"?"-":"_"}).replace(/=/g,"")},i=function(y,M){return M?d(o(y)):o(y)},a=function(y){return i(y,!0)},r;Y.Uint8Array&&(r=function(y,M){for(var W="",L=0,K=y.length;L>>18)+H.charAt(ne>>>12&63)+(typeof R!="undefined"?H.charAt(ne>>>6&63):"=")+(typeof V!="undefined"?H.charAt(ne&63):"=")}return M?d(W):W});var s=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,S=function(y){switch(y.length){case 4:var M=(7&y.charCodeAt(0))<<18|(63&y.charCodeAt(1))<<12|(63&y.charCodeAt(2))<<6|63&y.charCodeAt(3),W=M-65536;return n((W>>>10)+55296)+n((W&1023)+56320);case 3:return n((15&y.charCodeAt(0))<<12|(63&y.charCodeAt(1))<<6|63&y.charCodeAt(2));default:return n((31&y.charCodeAt(0))<<6|63&y.charCodeAt(1))}},x=function(y){return y.replace(s,S)},T=function(y){var M=y.length,W=M%4,L=(M>0?k[y.charAt(0)]<<18:0)|(M>1?k[y.charAt(1)]<<12:0)|(M>2?k[y.charAt(2)]<<6:0)|(M>3?k[y.charAt(3)]:0),K=[n(L>>>16),n(L>>>8&255),n(L&255)];return K.length-=[0,0,2,1][W],K.join("")},A=Y.atob&&typeof Y.atob=="function"?function(y){return Y.atob(y)}:function(y){return y.replace(/\S{1,4}/g,T)},w=function(y){return A(String(y).replace(/[^A-Za-z0-9\+\/]/g,""))},v=function(y){return x(A(y))},E=function(y){return String(y).replace(/[-_]/g,function(M){return M=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},m=function(y){return v(E(y))},f;Y.Uint8Array&&(f=function(y){return Uint8Array.from(w(E(y)),function(M){return M.charCodeAt(0)})});var C=function(){var y=Y.Base64;return Y.Base64=N,y};if(Y.Base64={VERSION:O,atob:w,btoa:c,fromBase64:m,toBase64:i,utob:p,encode:i,encodeURI:a,btou:x,decode:m,noConflict:C,fromUint8Array:r,toUint8Array:f},typeof Object.defineProperty=="function"){var b=function(y){return{value:y,enumerable:!1,writable:!0,configurable:!0}};Y.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",b(function(){return m(this)})),Object.defineProperty(String.prototype,"toBase64",b(function(y){return i(this,y)})),Object.defineProperty(String.prototype,"toBase64URI",b(function(){return i(this,!0)}))}}return Y.Meteor&&(Base64=Y.Base64),We.exports?We.exports.Base64=Y.Base64:!(z=[],P=function(){return Y.Base64}.apply(ge,z),P!==void 0&&(We.exports=P)),{Base64:Y.Base64}})}).call(this,D("IyRk"))},JOrW:function(We,ge,D){We.exports=D.p+"static/gf.09d89ab3.svg"},JYp7:function(We,ge,D){"use strict";D.d(ge,"a",function(){return q});var q;(function(z){function P(s){return s&&typeof s=="object"&&typeof s[Symbol.iterator]=="function"}z.is=P;const Y=Object.freeze([]);function N(){return Y}z.empty=N;function*O(s){yield s}z.single=O;function H(s){return s||Y}z.from=H;function k(s){return!s||s[Symbol.iterator]().next().done===!0}z.isEmpty=k;function n(s){return s[Symbol.iterator]().next().value}z.first=n;function I(s,S){for(const x of s)if(S(x))return!0;return!1}z.some=I;function g(s,S){for(const x of s)if(S(x))return x;return}z.find=g;function*p(s,S){for(const x of s)S(x)&&(yield x)}z.filter=p;function*h(s,S){let x=0;for(const T of s)yield S(T,x++)}z.map=h;function*c(...s){for(const S of s)for(const x of S)yield x}z.concat=c;function*o(s){for(const S of s)for(const x of S)yield x}z.concatNested=o;function d(s,S,x){let T=x;for(const A of s)T=S(T,A);return T}z.reduce=d;function*i(s,S,x=s.length){for(S<0&&(S+=s.length),x<0?x+=s.length:x>s.length&&(x=s.length);ST===A){const T=s[Symbol.iterator](),A=S[Symbol.iterator]();for(;;){const w=T.next(),v=A.next();if(w.done!==v.done)return!1;if(w.done)return!0;if(!x(w.value,v.value))return!1}}z.equals=r})(q||(q={}))},LdHM:function(We,ge,D){"use strict";D.d(ge,"b",function(){return s}),D.d(ge,"a",function(){return x});var q=D("1OyB"),z=D("vuIU"),P=D("Ji7U"),Y=D("LK+K"),N=D("q1tI"),O=D("rePB"),H=D("Ff2n"),k=D("ODXe"),n=D("4IlW"),I=D("bX4T"),g=D("YrtM"),p=D("TSYQ"),h=D.n(p),c=D("+nKL"),o=D("8OUc"),d=function(V,ne){var se=V.prefixCls,Se=V.id,Le=V.flattenOptions,Ae=V.childrenAsData,Pe=V.values,Fe=V.searchValue,je=V.multiple,Te=V.defaultActiveFirstOption,Z=V.height,U=V.itemHeight,G=V.notFoundContent,ee=V.open,ue=V.menuItemSelectedIcon,J=V.virtual,we=V.onSelect,Ge=V.onToggleOpen,Je=V.onActiveValue,be=V.onScroll,Re=V.onMouseEnter,xe="".concat(se,"-item"),Ce=Object(g.a)(function(){return Le},[ee,Le],function(re,ie){return ie[0]&&re[1]!==ie[1]}),Be=N.useRef(null),Xe=function(ie){ie.preventDefault()},qe=function(ie){Be.current&&Be.current.scrollTo({index:ie})},tt=function(ie){for(var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,pe=Ce.length,le=0;le1&&arguments[1]!==void 0?arguments[1]:!1;return Object(A.a)(R).map(function(ne,se){if(!N.isValidElement(ne)||!ne.type)return null;var Se=ne.type.isSelectOptGroup,Le=ne.key,Ae=ne.props,Pe=Ae.children,Fe=Object(H.a)(Ae,["children"]);return V||!Se?w(ne):Object(T.a)(Object(T.a)({key:"__RC_SELECT_GRP__".concat(Le===null?se:Le,"__"),label:Le},Fe),{},{options:v(Pe)})}).filter(function(ne){return ne})}var E=D("2Qr1"),m=D("qNPg"),f=D("U8pU"),C=D("Kwbf"),b=D("WKfj");function y(R){var V=R.mode,ne=R.options,se=R.children,Se=R.backfill,Le=R.allowClear,Ae=R.placeholder,Pe=R.getInputElement,Fe=R.showSearch,je=R.onSearch,Te=R.defaultOpen,Z=R.autoFocus,U=R.labelInValue,G=R.value,ee=R.inputValue,ue=R.optionLabelProp,J=V==="multiple"||V==="tags",we=Fe!==void 0?Fe:J||V==="combobox",Ge=ne||v(se);if(Object(C.a)(V!=="tags"||Ge.every(function(xe){return!xe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),V==="tags"||V==="combobox"){var Je=Ge.some(function(xe){return xe.options?xe.options.some(function(Ce){return typeof("value"in Ce?Ce.value:Ce.key)=="number"}):typeof("value"in xe?xe.value:xe.key)=="number"});Object(C.a)(!Je,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(C.a)(V!=="combobox"||!ue,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(C.a)(V==="combobox"||!Se,"`backfill` only works with `combobox` mode."),Object(C.a)(V==="combobox"||!Pe,"`getInputElement` only work with `combobox` mode."),Object(C.b)(V!=="combobox"||!Pe||!Le||!Ae,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),je&&!we&&V!=="combobox"&&V!=="tags"&&Object(C.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(C.b)(!Te||Z,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),G!=null){var be=Object(b.d)(G);Object(C.a)(!U||be.every(function(xe){return Object(f.a)(xe)==="object"&&("key"in xe||"value"in xe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(C.a)(!J||Array.isArray(G),"`value` should be array when `mode` is `multiple` or `tags`")}if(se){var Re=null;Object(A.a)(se).some(function(xe){if(!N.isValidElement(xe)||!xe.type)return!1;var Ce=xe.type;if(Ce.isSelectOption)return!1;if(Ce.isSelectOptGroup){var Be=Object(A.a)(xe.props.children).every(function(Xe){return!N.isValidElement(Xe)||!xe.type||Xe.type.isSelectOption?!0:(Re=Xe.type,!1)});return!Be}return Re=Ce,!0}),Re&&Object(C.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Re.displayName||Re.name||Re,"`.")),Object(C.a)(ee===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var M=y,W=Object(m.a)({prefixCls:"rc-select",components:{optionList:a},convertChildrenToData:v,flattenOptions:E.d,getLabeledValue:E.e,filterOptions:E.b,isValueDisabled:E.g,findValueOption:E.c,warningProps:M,fillOptionsWithMissingValue:E.a}),L=function(R){Object(P.a)(ne,R);var V=Object(Y.a)(ne);function ne(){var se;return Object(q.a)(this,ne),se=V.apply(this,arguments),se.selectRef=N.createRef(),se.focus=function(){se.selectRef.current.focus()},se.blur=function(){se.selectRef.current.blur()},se}return Object(z.a)(ne,[{key:"render",value:function(){return N.createElement(W,Object.assign({ref:this.selectRef},this.props))}}]),ne}(N.Component);L.Option=s,L.OptGroup=x;var K=L,F=ge.c=K},M8RZ:function(We,ge,D){"use strict";D.d(ge,"a",function(){return n});var q=D("fWQN"),z=D("mtLc"),P=D("yKVA"),Y=D("879j"),N=D("q1tI"),O=D.n(N),H=D("i8i4"),k=D.n(H),n=function(I){Object(P.a)(p,I);var g=Object(Y.a)(p);function p(h){var c;Object(q.a)(this,p),c=g.call(this,h);var o=window.document;return c.node=o.createElement("div"),o.body.appendChild(c.node),c}return Object(z.a)(p,[{key:"render",value:function(){var c=this.props.children;return Object(H.createPortal)(c,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),p}(O.a.Component)},MFOe:function(We,ge,D){(function(q){var z=O(),P=H(),Y=k(),N=typeof window!="undefined"?window:q;We.exports={assign:z,create:P,trim:Y,bind:n,slice:I,each:g,map:p,pluck:h,isList:c,isFunction:o,isObject:d,Global:N};function O(){return Object.assign?Object.assign:function(a,r,s,S){for(var x=1;xz.a.None;function o(y){return(M,W=null,L)=>{let K=!1,F;return F=y(R=>K?void 0:(F?F.dispose():K=!0,M.call(W,R)),null,L),K&&F.dispose(),F}}c.once=o;function d(y,M){return x((W,L=null,K)=>y(F=>W.call(L,M(F)),null,K))}c.map=d;function i(y,M){return x((W,L=null,K)=>y(F=>{M(F),W.call(L,F)},null,K))}c.forEach=i;function a(y,M){return x((W,L=null,K)=>y(F=>M(F)&&W.call(L,F),null,K))}c.filter=a;function r(y){return y}c.signal=r;function s(...y){return(M,W=null,L)=>Object(z.e)(...y.map(K=>K(F=>M.call(W,F),null,L)))}c.any=s;function S(y,M,W){let L=W;return d(y,K=>(L=M(L,K),L))}c.reduce=S;function x(y){let M;const W=new n({onFirstListenerAdd(){M=y(W.fire,W)},onLastListenerRemove(){M.dispose()}});return W.event}function T(y,M,W=100,L=!1,K){let F,R,V,ne=0;const se=new n({leakWarningThreshold:K,onFirstListenerAdd(){F=y(Se=>{ne++,R=M(R,Se),L&&!V&&(se.fire(R),R=void 0),clearTimeout(V),V=setTimeout(()=>{const Le=R;R=void 0,V=void 0,(!L||ne>1)&&se.fire(Le),ne=0},W)})},onLastListenerRemove(){F.dispose()}});return se.event}c.debounce=T;function A(y,M=(W,L)=>W===L){let W=!0,L;return a(y,K=>{const F=W||!M(K,L);return W=!1,L=K,F})}c.latch=A;function w(y,M){return[c.filter(y,M),c.filter(y,W=>!M(W))]}c.split=w;function v(y,M=!1,W=[]){let L=W.slice(),K=y(V=>{L?L.push(V):R.fire(V)});const F=()=>{L&&L.forEach(V=>R.fire(V)),L=null},R=new n({onFirstListenerAdd(){K||(K=y(V=>R.fire(V)))},onFirstListenerDidAdd(){L&&(M?setTimeout(F):F())},onLastListenerRemove(){K&&K.dispose(),K=null}});return R.event}c.buffer=v;class E{constructor(y){this.event=y}map(y){return new E(d(this.event,y))}forEach(y){return new E(i(this.event,y))}filter(y){return new E(a(this.event,y))}reduce(y,M){return new E(S(this.event,y,M))}latch(){return new E(A(this.event))}debounce(y,M=100,W=!1,L){return new E(T(this.event,y,M,W,L))}on(y,M,W){return this.event(y,M,W)}once(y,M,W){return o(this.event)(y,M,W)}}function m(y){return new E(y)}c.chain=m;function f(y,M,W=L=>L){const L=(...V)=>R.fire(W(...V)),K=()=>y.on(M,L),F=()=>y.removeListener(M,L),R=new n({onFirstListenerAdd:K,onLastListenerRemove:F});return R.event}c.fromNodeEventEmitter=f;function C(y,M,W=L=>L){const L=(...V)=>R.fire(W(...V)),K=()=>y.addEventListener(M,L),F=()=>y.removeEventListener(M,L),R=new n({onFirstListenerAdd:K,onLastListenerRemove:F});return R.event}c.fromDOMEventEmitter=C;function b(y){return new Promise(M=>o(y)(M))}c.toPromise=b})(N||(N={}));class O{constructor(c){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${c}_${O._idPool++}`}start(c){this._stopWatch=new Y.a(!0),this._listenerCount=c}stop(){if(this._stopWatch){const c=this._stopWatch.elapsed();this._elapsedOverall+=c,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${c.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}O._idPool=0;let H=-1;class k{constructor(c,o=Math.random().toString(18).slice(2,5)){this.customThreshold=c,this.name=o,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(c){let o=H;if(typeof this.customThreshold=="number"&&(o=this.customThreshold),o<=0||c{const a=this._stacks.get(d)||0;this._stacks.set(d,a-1)}}}class n{constructor(c){var o;this._disposed=!1,this._options=c,this._leakageMon=H>0?new k(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((o=this._options)===null||o===void 0?void 0:o._profName)?new O(this._options._profName):void 0}get event(){return this._event||(this._event=(c,o,d)=>{var i;this._listeners||(this._listeners=new P.a);const a=this._listeners.isEmpty();a&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const r=this._listeners.push(o?[c,o]:c);a&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,c,o);const s=(i=this._leakageMon)===null||i===void 0?void 0:i.check(this._listeners.size),S=Object(z.i)(()=>{if(s&&s(),!this._disposed&&(r(),this._options&&this._options.onLastListenerRemove)){const x=this._listeners&&!this._listeners.isEmpty();x||this._options.onLastListenerRemove(this)}});return d instanceof z.b?d.add(S):Array.isArray(d)&&d.push(S),S}),this._event}fire(c){var o,d;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new P.a);for(let i of this._listeners)this._deliveryQueue.push([i,c]);for((o=this._perfMon)===null||o===void 0||o.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[i,a]=this._deliveryQueue.shift();try{typeof i=="function"?i.call(void 0,a):i[0].call(i[1],a)}catch(r){Object(q.f)(r)}}(d=this._perfMon)===null||d===void 0||d.stop()}}dispose(){var c,o,d,i,a;this._disposed||(this._disposed=!0,(c=this._listeners)===null||c===void 0||c.clear(),(o=this._deliveryQueue)===null||o===void 0||o.clear(),(i=(d=this._options)===null||d===void 0?void 0:d.onLastListenerRemove)===null||i===void 0||i.call(d),(a=this._leakageMon)===null||a===void 0||a.dispose())}}class I extends n{constructor(c){super(c);this._isPaused=0,this._eventQueue=new P.a,this._mergeFn=c==null?void 0:c.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const c=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(c))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(c){this._listeners&&(this._isPaused!==0?this._eventQueue.push(c):super.fire(c))}}class g extends I{constructor(c){var o;super(c);this._delay=(o=c.delay)!==null&&o!==void 0?o:100}fire(c){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(c)}}class p{constructor(){this.buffers=[]}wrapEvent(c){return(o,d,i)=>c(a=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>o.call(d,a)):o.call(d,a)},void 0,i)}bufferEvents(c){const o=[];this.buffers.push(o);const d=c();return this.buffers.pop(),o.forEach(i=>i()),d}}class h{constructor(){this.listening=!1,this.inputEvent=N.None,this.inputEventListener=z.a.None,this.emitter=new n({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(c){this.inputEvent=c,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=c(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(We,ge,D){"use strict";(function(q,z){D.d(ge,"b",function(){return d}),D.d(ge,"i",function(){return s}),D.d(ge,"f",function(){return S}),D.d(ge,"d",function(){return x}),D.d(ge,"g",function(){return T}),D.d(ge,"h",function(){return A}),D.d(ge,"c",function(){return w}),D.d(ge,"k",function(){return v}),D.d(ge,"j",function(){return E}),D.d(ge,"a",function(){return m}),D.d(ge,"e",function(){return b});var P;const Y="en";let N=!1,O=!1,H=!1,k=!1,n=!1,I=!1,g=!1,p,h=Y,c,o;const d=typeof self=="object"?self:typeof q=="object"?q:{};let i;typeof d.vscode!="undefined"&&typeof d.vscode.process!="undefined"?i=d.vscode.process:typeof z!="undefined"&&(i=z);const a=typeof((P=i==null?void 0:i.versions)===null||P===void 0?void 0:P.electron)=="string"&&i.type==="renderer";if(typeof navigator=="object"&&!a)o=navigator.userAgent,N=o.indexOf("Windows")>=0,O=o.indexOf("Macintosh")>=0,g=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,H=o.indexOf("Linux")>=0,I=!0,p=navigator.language,h=p;else if(typeof i=="object"){N=i.platform==="win32",O=i.platform==="darwin",H=i.platform==="linux",k=H&&!!i.env.SNAP&&!!i.env.SNAP_REVISION,p=Y,h=Y;const y=i.env.VSCODE_NLS_CONFIG;if(y)try{const M=JSON.parse(y),W=M.availableLanguages["*"];p=M.locale,h=W||Y,c=M._translationsConfigFile}catch(M){}n=!0}else console.error("Unable to resolve platform.");let r=0;O?r=1:N?r=3:H&&(r=2);const s=N,S=O,x=H,T=n,A=I,w=g,v=o,E=function(){if(d.setImmediate)return d.setImmediate.bind(d);if(typeof d.postMessage=="function"&&!d.importScripts){let W=[];d.addEventListener("message",K=>{if(K.data&&K.data.vscodeSetImmediateId)for(let F=0,R=W.length;F{const F=++L;W.push({id:F,callback:K}),d.postMessage({vscodeSetImmediateId:F},"*")}}if(typeof(i==null?void 0:i.nextTick)=="function")return i.nextTick.bind(i);const M=Promise.resolve();return W=>M.then(W)}(),m=O||g?2:N?1:3;let f=!0,C=!1;function b(){if(!C){C=!0;const y=new Uint8Array(2);y[0]=1,y[1]=2;const M=new Uint16Array(y.buffer);f=M[0]===(2<<8)+1}return f}}).call(this,D("IyRk"),D("Q2Ig"))},MVJL:function(We,ge,D){We.exports={flex_box_center:"flex_box_center___2gBaY",flex_space_between:"flex_space_between___2uD--",flex_box_vertical_center:"flex_box_vertical_center___3Bq-4",flex_box_center_end:"flex_box_center_end___2MOXm",flex_box_column:"flex_box_column___1Sq4x",discussItem:"discussItem___Mk503",wrap:"wrap___VPGVq",list:"list___2zNHf",btns:"btns___1hoB3",secondLevelDiscuss:"secondLevelDiscuss___9Ixoa",line:"line___20Ukm",thirdlyLevelDiscuss:"thirdlyLevelDiscuss___3ZS-s"}},N0LK:function(We,ge,D){"use strict";D.d(ge,"C",function(){return q}),D.d(ge,"v",function(){return P}),D.d(ge,"s",function(){return Y}),D.d(ge,"t",function(){return N}),D.d(ge,"U",function(){return O}),D.d(ge,"J",function(){return H}),D.d(ge,"O",function(){return k}),D.d(ge,"p",function(){return n}),D.d(ge,"T",function(){return I}),D.d(ge,"q",function(){return g}),D.d(ge,"N",function(){return p}),D.d(ge,"M",function(){return h}),D.d(ge,"Q",function(){return c}),D.d(ge,"u",function(){return o}),D.d(ge,"x",function(){return d}),D.d(ge,"I",function(){return i}),D.d(ge,"f",function(){return a}),D.d(ge,"h",function(){return r}),D.d(ge,"g",function(){return s}),D.d(ge,"i",function(){return S}),D.d(ge,"G",function(){return x}),D.d(ge,"H",function(){return T}),D.d(ge,"r",function(){return A}),D.d(ge,"R",function(){return w}),D.d(ge,"d",function(){return v}),D.d(ge,"e",function(){return E}),D.d(ge,"E",function(){return m}),D.d(ge,"F",function(){return f}),D.d(ge,"j",function(){return C}),D.d(ge,"z",function(){return b}),D.d(ge,"K",function(){return M}),D.d(ge,"L",function(){return W}),D.d(ge,"m",function(){return K}),D.d(ge,"k",function(){return R}),D.d(ge,"A",function(){return ne}),D.d(ge,"a",function(){return se}),D.d(ge,"n",function(){return Se}),D.d(ge,"l",function(){return Le}),D.d(ge,"D",function(){return Ae}),D.d(ge,"B",function(){return Pe}),D.d(ge,"b",function(){return Fe}),D.d(ge,"S",function(){return je}),D.d(ge,"o",function(){return Te}),D.d(ge,"P",function(){return Z}),D.d(ge,"w",function(){return U}),D.d(ge,"c",function(){return G}),D.d(ge,"y",function(){return J});function q(be){return!be||typeof be!="string"?!0:be.trim().length===0}const z=/{(\d+)}/g;function P(be,...Re){return Re.length===0?be:be.replace(z,function(xe,Ce){const Be=parseInt(Ce,10);return isNaN(Be)||Be<0||Be>=Re.length?xe:Re[Be]})}function Y(be){return be.replace(/[<>&]/g,function(Re){switch(Re){case"<":return"<";case">":return">";case"&":return"&";default:return Re}})}function N(be){return be.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function O(be,Re=" "){const xe=H(be,Re);return k(xe,Re)}function H(be,Re){if(!be||!Re)return be;const xe=Re.length;if(xe===0||be.length===0)return be;let Ce=0;for(;be.indexOf(Re,Ce)===Ce;)Ce=Ce+xe;return be.substring(Ce)}function k(be,Re){if(!be||!Re)return be;const xe=Re.length,Ce=be.length;if(xe===0||Ce===0)return be;let Be=Ce,Xe=-1;for(;!(Xe=be.lastIndexOf(Re,Be-1),Xe===-1||Xe+xe!==Be);){if(Xe===0)return"";Be=Xe}return be.substring(0,Be)}function n(be){return be.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function I(be){return be.replace(/\*/g,"")}function g(be,Re,xe={}){if(!be)throw new Error("Cannot create regex from empty string");Re||(be=N(be)),xe.wholeWord&&(/\B/.test(be.charAt(0))||(be="\\b"+be),/\B/.test(be.charAt(be.length-1))||(be=be+"\\b"));let Ce="";return xe.global&&(Ce+="g"),xe.matchCase||(Ce+="i"),xe.multiline&&(Ce+="m"),xe.unicode&&(Ce+="u"),new RegExp(be,Ce)}function p(be){if(be.source==="^"||be.source==="^$"||be.source==="$"||be.source==="^\\s*$")return!1;const Re=be.exec("");return!!(Re&&be.lastIndex===0)}function h(be){return(be.global?"g":"")+(be.ignoreCase?"i":"")+(be.multiline?"m":"")+(be.unicode?"u":"")}function c(be){return be.split(/\r\n|\r|\n/)}function o(be){for(let Re=0,xe=be.length;Re=0;xe--){const Ce=be.charCodeAt(xe);if(Ce!==32&&Ce!==9)return xe}return-1}function a(be,Re){return beRe?1:0}function r(be,Re,xe=0,Ce=be.length,Be=0,Xe=Re.length){for(;xeft)return 1}const qe=Ce-xe,tt=Xe-Be;return qett?1:0}function s(be,Re){return S(be,Re,0,be.length,0,Re.length)}function S(be,Re,xe=0,Ce=be.length,Be=0,Xe=Re.length){for(;xe=128||ft>=128)return r(be.toLowerCase(),Re.toLowerCase(),xe,Ce,Be,Xe);x(ht)&&(ht-=32),x(ft)&&(ft-=32);const Ne=ht-ft;if(Ne===0)continue;return Ne}const qe=Ce-xe,tt=Xe-Be;return qett?1:0}function x(be){return be>=97&&be<=122}function T(be){return be>=65&&be<=90}function A(be,Re){return be.length===Re.length&&S(be,Re)===0}function w(be,Re){const xe=Re.length;return Re.length>be.length?!1:S(be,Re,0,xe)===0}function v(be,Re){let xe,Ce=Math.min(be.length,Re.length);for(xe=0;xe1){const Ce=be.charCodeAt(Re-2);if(m(Ce))return C(Ce,xe)}return xe}function M(be,Re){const xe=ee.getInstance(),Ce=Re,Be=be.length,Xe=b(be,Be,Re);Re+=Xe>=65536?2:1;let qe=xe.getGraphemeBreakType(Xe);for(;Re=65536?2:1,qe=ht}return Re-Ce}function W(be,Re){const xe=ee.getInstance(),Ce=Re,Be=y(be,Re);Re-=Be>=65536?2:1;let Xe=xe.getGraphemeBreakType(Be);for(;Re>0;){const qe=y(be,Re),tt=xe.getGraphemeBreakType(qe);if(G(tt,Xe))break;Re-=qe>=65536?2:1,Xe=tt}return Ce-Re}const L=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function K(be){return L.test(be)}const F=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function R(be){return F.test(be)}const V=/^[\t\n\r\x20-\x7E]*$/;function ne(be){return V.test(be)}const se=/[\u2028\u2029]/;function Se(be){return se.test(be)}function Le(be){for(let Re=0,xe=be.length;Re=11904&&be<=55215||be>=63744&&be<=64255||be>=65281&&be<=65374}function Pe(be){return be>=127462&&be<=127487||be===8986||be===8987||be===9200||be===9203||be>=9728&&be<=10175||be===11088||be===11093||be>=127744&&be<=128591||be>=128640&&be<=128764||be>=128992&&be<=129003||be>=129280&&be<=129535||be>=129648&&be<=129750}const Fe=String.fromCharCode(65279);function je(be){return!!(be&&be.length>0&&be.charCodeAt(0)===65279)}function Te(be,Re=!1){return be?(Re&&(be=be.replace(/\\./g,"")),be.toLowerCase()!==be):!1}function Z(be){const Re=90-65+1;return be=be%(2*Re),beRe[3*Ce+1])Ce=2*Ce+1;else return Re[3*Ce+2];return 0}}ee._INSTANCE=null;function ue(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function J(be,Re){if(be===0)return 0;const xe=we(be,Re);if(xe!==void 0)return xe;const Ce=y(Re,be);return be-=Ge(Ce),be}function we(be,Re){let xe=y(Re,be);for(be-=Ge(xe);Je(xe)||xe===65039||xe===8419;){if(be===0)return;xe=y(Re,be),be-=Ge(xe)}if(!Pe(xe))return;if(be>=0){const Ce=y(Re,be);Ce===8205&&(be-=Ge(Ce))}return be}function Ge(be){return be>=65536?2:1}function Je(be){return 127995<=be&&be<=127999}},NvD2:function(We,ge,D){"use strict";D.d(ge,"a",function(){return O});var q=D("Kwbf");function z(H,k){var n=new Set;return H.forEach(function(I){k.has(I)||n.add(I)}),n}function P(H){var k=H||{},n=k.disabled,I=k.disableCheckbox,g=k.checkable;return!!(n||I)||g===!1}function Y(H,k,n,I){for(var g=new Set(H),p=new Set,h=0;h<=n;h+=1){var c=k.get(h)||new Set;c.forEach(function(a){var r=a.key,s=a.node,S=a.children,x=S===void 0?[]:S;g.has(r)&&!I(s)&&x.filter(function(T){return!I(T.node)}).forEach(function(T){g.add(T.key)})})}for(var o=new Set,d=n;d>=0;d-=1){var i=k.get(d)||new Set;i.forEach(function(a){var r=a.parent,s=a.node;if(I(s)||!a.parent||o.has(a.parent.key))return;if(I(a.parent.node)){o.add(r.key);return}var S=!0,x=!1;(r.children||[]).filter(function(T){return!I(T.node)}).forEach(function(T){var A=T.key,w=g.has(A);S&&!w&&(S=!1),!x&&(w||p.has(A))&&(x=!0)}),S&&g.add(r.key),x&&p.add(r.key),o.add(r.key)})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(z(p,g))}}function N(H,k,n,I,g){for(var p=new Set(H),h=new Set(k),c=0;c<=I;c+=1){var o=n.get(c)||new Set;o.forEach(function(r){var s=r.key,S=r.node,x=r.children,T=x===void 0?[]:x;!p.has(s)&&!h.has(s)&&!g(S)&&T.filter(function(A){return!g(A.node)}).forEach(function(A){p.delete(A.key)})})}h=new Set;for(var d=new Set,i=I;i>=0;i-=1){var a=n.get(i)||new Set;a.forEach(function(r){var s=r.parent,S=r.node;if(g(S)||!r.parent||d.has(r.parent.key))return;if(g(r.parent.node)){d.add(s.key);return}var x=!0,T=!1;(s.children||[]).filter(function(A){return!g(A.node)}).forEach(function(A){var w=A.key,v=p.has(w);x&&!v&&(x=!1),!T&&(v||h.has(w))&&(T=!0)}),x||p.delete(s.key),T&&h.add(s.key),d.add(s.key)})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(z(h,p))}}function O(H,k,n,I){var g=[],p;I?p=I:p=P;var h=new Set(H.filter(function(i){var a=!!n[i];return a||g.push(i),a})),c=new Map,o=0;Object.keys(n).forEach(function(i){var a=n[i],r=a.level,s=c.get(r);s||(s=new Set,c.set(r,s)),s.add(a),o=Math.max(o,r)}),Object(q.a)(!g.length,"Tree missing follow keys: ".concat(g.slice(0,100).map(function(i){return"'".concat(i,"'")}).join(", ")));var d;return k===!0?d=Y(h,c,o,p):d=N(h,k.halfCheckedKeys,c,o,p),d}},OZM5:function(We,ge,D){"use strict";D.d(ge,"b",function(){return I}),D.d(ge,"a",function(){return g}),D.d(ge,"k",function(){return p}),D.d(ge,"h",function(){return h}),D.d(ge,"i",function(){return c}),D.d(ge,"g",function(){return o}),D.d(ge,"c",function(){return d}),D.d(ge,"d",function(){return i}),D.d(ge,"j",function(){return s}),D.d(ge,"e",function(){return S}),D.d(ge,"f",function(){return x});var q=D("KQm4"),z=D("U8pU"),P=D("Ff2n"),Y=D("q1tI"),N=D.n(Y),O=D("Kwbf"),H=D("WaYH"),k=.25,n=2;function I(T,A){var w=T.slice(),v=w.indexOf(A);return v>=0&&w.splice(v,1),w}function g(T,A){var w=T.slice();return w.indexOf(A)===-1&&w.push(A),w}function p(T){return T.split("-")}function h(T,A){return"".concat(T,"-").concat(A)}function c(T){return T&&T.type&&T.type.isTreeNode}function o(T,A){var w=[T],v=A[T];function E(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];m.forEach(function(f){var C=f.key,b=f.children;w.push(C),E(b)})}return E(v.children),w}function d(T,A){var w=T.clientY,v=A.selectHandle.getBoundingClientRect(),E=v.top,m=v.bottom,f=v.height,C=Math.max(f*k,n);return w<=E+C?-1:w>=m-C?1:0}function i(T,A){if(!T)return;var w=A.multiple;return w?T.slice():T.length?[T[0]]:T}var a=function(A){return A};function r(T,A){if(!T)return[];var w=A||{},v=w.processProps,E=v===void 0?a:v,m=Array.isArray(T)?T:[T];return m.map(function(f){var C=f.children,b=Object(P.a)(f,["children"]),y=r(C,A);return N.a.createElement(H.a,Object.assign({},E(b)),y)})}function s(T){if(!T)return null;var A;if(Array.isArray(T))A={checkedKeys:T,halfCheckedKeys:void 0};else if(Object(z.a)(T)==="object")A={checkedKeys:T.checked||void 0,halfCheckedKeys:T.halfChecked||void 0};else return Object(O.a)(!1,"`checkedKeys` is not an array or an object"),null;return A}function S(T,A){var w=new Set;function v(E){if(w.has(E))return;var m=A[E];if(!m)return;w.add(E);var f=m.parent,C=m.node;if(C.disabled)return;f&&v(f.key)}return(T||[]).forEach(function(E){v(E)}),Object(q.a)(w)}function x(T){var A={};return Object.keys(T).forEach(function(w){(w.startsWith("data-")||w.startsWith("aria-"))&&(A[w]=T[w])}),A}},"OkW/":function(We,ge,D){},Ot1p:function(We,ge,D){"use strict";var q=D("2qtc"),z=D("kLXV"),P=D("rAM+"),Y=D("miYZ"),N=D("tsqr"),O=D("9og8"),H=D("tJVT"),k=D("jrin"),n=D("WmNS"),I=D.n(n),g=D("q1tI"),p=D.n(g),h=D("VrN/"),c=D.n(h),o=D("bdgK"),d=D("p77/"),i=D("Bd2K"),a=D("ELLl"),r=D("19Vz"),s=D("lZu9"),S=D("+NIl"),x=D("kSUc"),T=D("9Bee"),A=function(Oe){var ke=Oe.value,$e=ke===void 0?"":ke,ot=Oe.className,pt=Oe.showTextOnly,mt=Oe.showLines,qt=Oe.style,xt=qt===void 0?{}:qt,Ct=Object(g.useMemo)(function(){return""},[$e]);return p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{dangerouslySetInnerHTML:{__html:Ct}}))},w=D("0Owb"),v=D("dejd"),E=D("C+DQ"),m=D("1vsH"),f=D("m3rI"),C=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function b(Oe){var ke=Oe.onActionCallback,$e=Oe.title,ot=Oe.icon,pt=Oe.actionName,mt=Oe.className,qt=mt===void 0?"":mt,xt=Oe.children;function Ct(){ke(pt)}return p.a.createElement("a",{title:$e,className:qt,onClick:Ct},p.a.createElement("i",{className:"md-iconfont ".concat(ot)}),xt)}var y=function(Oe){var ke=Oe.watch,$e=Oe.showNullButton,ot=Oe.onActionCallback,pt=Oe.fullScreen,mt=Oe.insertTemp,qt=Oe.hidetoolBar,xt=Oe.uuid,Ct=Oe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(m.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(m.F)("_educoder_session"),"&key=").concat(xt,"&api=").concat(encodeURIComponent(f.a.PROXY_SERVER)));var Pt=[].concat(C,[{title:"".concat(ke?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(ke?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return p.a.createElement("ul",{className:"markdown-toolbar-container"},!qt&&Pt.map(function(Rt,Gt){return p.a.createElement("li",{key:Gt},Rt.actionName?p.a.createElement(b,Object(w.a)({},Rt,{onActionCallback:ot})):p.a.createElement("span",{className:"v-line"}))}),$e?p.a.createElement("li",null,p.a.createElement(b,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ot},p.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,mt&&p.a.createElement("li",null,p.a.createElement(b,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(mt),onActionCallback:ot},p.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),p.a.createElement("li",{className:"btn-full-screen"},p.a.createElement(b,{icon:"".concat(pt?"icon-shrink":"icon-enlarge"),title:pt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ot})))},M=D("M8RZ"),W=D("+L6B"),L=D("2/Rp"),K=D("y8nQ"),F=D("Vl3Y"),R=D("5NDa"),V=D("5rEg"),ne={labelCol:{span:4},wrapperCol:{span:20}},se=function(Oe){var ke=Oe.callback,$e=Oe.onCancel;function ot(pt){ke(pt)}return p.a.createElement(F.a,Object(w.a)({},ne,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ot}),p.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},p.a.createElement(V.a,null)),p.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},p.a.createElement(V.a,null)),p.a.createElement("div",{className:"flex-container flex-end"},p.a.createElement(L.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),p.a.createElement(L.a,{type:"ghost",onClick:$e},"\u53D6\u6D88")))},Se=D("7ahc"),Le=D("HmJG"),Ae=D("BjJ7"),Pe=F.a.useForm,Fe={width:280,marginRight:10},je={labelCol:{span:5},wrapperCol:{span:19}},Te=function(Oe){var ke=Oe.callback,$e=Oe.onCancel,ot=Pe(),pt=Object(H.a)(ot,1),mt=pt[0];function qt(Pt){ke(Pt)}function xt(Pt,Rt){if(Pt.status===-1){N.b.error(Pt.message);return}mt.setFieldsValue({src:"/api/attachments/".concat(Pt.id),type:Rt.type})}function Ct(Pt){var Rt=Pt.target.files[0];U(Rt,xt)}return p.a.createElement(F.a,Object(w.a)({form:mt},je,{className:"upload-image-panel",onFinish:qt}),p.a.createElement(F.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},p.a.createElement("div",{className:"flex-container"},p.a.createElement(F.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},p.a.createElement(V.a,{style:Fe})),p.a.createElement(Z,{onFileChange:Ct}))),p.a.createElement(F.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},p.a.createElement(V.a,{style:{width:264}})),p.a.createElement(F.a.Item,{style:{textAlign:"right"}},p.a.createElement(L.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),p.a.createElement(L.a,{type:"ghost",onClick:$e},"\u53D6\u6D88")))};function Z(Oe){var ke=Oe.onFileChange;return p.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",p.a.createElement("input",{type:"file",onChange:ke}))}function U(Oe,ke){if(!Oe)throw new String("\u6CA1\u6709\u6587\u4EF6");var $e=new FormData;$e.append("editormd-image-file",Oe),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var ot=new window.XMLHttpRequest;ot.withCredentials=!0,ot.addEventListener("load",function(pt){ke(JSON.parse(pt.target.responseText),Oe)},!1),ot.addEventListener("error",function(pt){console.error(pt)},!1),ot.open("POST","".concat(Ae.a,"/api/attachments.json")),ot.send($e)}var G=D("giR+"),ee=D("fyUT"),ue=D("7Kak"),J=D("9yH6"),we=J.a.Group,Ge={margin:"0 8px"},Je=function(Oe){var ke=Oe.callback,$e=Oe.onCancel;function ot(pt){ke(pt)}return p.a.createElement(F.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ot},p.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},p.a.createElement("span",{style:Ge},"\u5355\u5143\u683C\u6570\uFF1A"),p.a.createElement("span",{style:Ge},"\u884C\u6570"),p.a.createElement(F.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},p.a.createElement(ee.a,null)),p.a.createElement("span",{style:Ge},"\u5217\u6570"),p.a.createElement(F.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},p.a.createElement(ee.a,null))),p.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},p.a.createElement("span",{style:Ge},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),p.a.createElement(F.a.Item,{name:"align"},p.a.createElement(we,null,p.a.createElement(J.a,{value:"default"},p.a.createElement("i",{className:"fa fa-align-justify"})),p.a.createElement(J.a,{value:"left"},p.a.createElement("i",{className:"fa fa-align-left"})),p.a.createElement(J.a,{value:"center"},p.a.createElement("i",{className:"fa fa-align-center"})),p.a.createElement(J.a,{value:"right"},p.a.createElement("i",{className:"fa fa-align-right"}))))),p.a.createElement("div",{className:"flex-container flex-end"},p.a.createElement(L.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),p.a.createElement(L.a,{type:"ghost",onClick:$e},"\u53D6\u6D88")))},be=D("ErOA"),Re=D("7Cbv"),xe="link",Ce="upload-image",Be="code-block",Xe="add-table",qe="------------",tt={default:qe,left:":".concat(qe),center:":".concat(qe,":"),right:"".concat(qe,":")},ht=D("9VGf"),ft,Ne;function Ue(){}var Ze=0,et=1e4,fe="\u2581",re=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function ie(Oe){return/^\d+$/.test(Oe)?"".concat(Oe,"px"):Oe}var ce=navigator.platform.toUpperCase().indexOf("MAC")>=0,pe=ce?"Cmd":"Ctrl",le=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],he=(ft={},Object(k.a)(ft,pe+"-B","bold"),Object(k.a)(ft,pe+"-I","italic"),ft),ye=(Ne={},Object(k.a)(Ne,xe,"\u6DFB\u52A0\u94FE\u63A5"),Object(k.a)(Ne,Be,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(k.a)(Ne,Ce,"\u6DFB\u52A0\u6587\u4EF6"),Object(k.a)(Ne,Xe,"\u6DFB\u52A0\u8868\u683C"),Ne),_e=ge.a=function(Oe){var ke=Oe.defaultValue,$e=ke===void 0?"":ke,ot=Oe.onChange,pt=Oe.width,mt=pt===void 0?"100%":pt,qt=Oe.height,xt=qt===void 0?400:qt,Ct=Oe.miniToolbar,Pt=Ct===void 0?!1:Ct,Rt=Oe.isFocus,Gt=Rt===void 0?!1:Rt,On=Oe.watch,kt=Oe.insertTemp,Un=Oe.mode,An=Un===void 0?"markdown":Un,en=Oe.id,wn=en===void 0?"markdown-editor-id":en,Wt=Oe.showResizeBar,At=Wt===void 0?!1:Wt,Zt=Oe.noStorage,Ee=Zt===void 0?!1:Zt,de=Oe.showNullButton,j=de===void 0?!1:de,X=Oe.hidetoolBar,$=X===void 0?!1:X,te=Oe.fullScreen,ve=te===void 0?!1:te,Ie=Oe.onBlur,He=Oe.onCMBeforeChange,ct=Oe.onFullScreen,ut=Oe.className,ze=ut===void 0?"":ut,gt=Oe.disablePaste,Kt=gt===void 0?!1:gt,dt=Oe.placeholder,sn=dt===void 0?"":dt,jt=Oe.values,St=jt===void 0?"":jt,at=Object(g.useState)(null),xn=Object(H.a)(at,2),it=xn[0],ln=xn[1],cn=Object(g.useState)($e),Yn=Object(H.a)(cn,2),nr=Yn[0],vn=Yn[1],gr=Object(g.useState)(On),Jn=Object(H.a)(gr,2),Cn=Jn[0],Dn=Jn[1],Dr=Object(g.useState)(ve),Hr=Object(H.a)(Dr,2),vr=Hr[0],rr=Hr[1],yr=Object(g.useState)(""),Qr=Object(H.a)(yr,2),_r=Qr[0],ir=Qr[1],Pr=Object(g.useState)(0),Lr=Object(H.a)(Pr,2),Or=Lr[0],Sr=Lr[1],ci=Object(g.useState)(xt),yi=Object(H.a)(ci,2),ii=yi[0],Zr=yi[1],Ai=Object(g.useState)(!1),Ni=Object(H.a)(Ai,2),Ui=Ni[0],ai=Ni[1],pr=Object(g.useRef)(Object(Re.a)()),cr=Object(g.useRef)(!1),Yr=Object(g.useRef)(),qr=Object(g.useRef)(),si=Object(g.useRef)(),ei=Object(g.useRef)(),zi=Object(g.useRef)(),ea=function(){var Jt=Object(O.a)(I.a.mark(function pn(){var nn,Ln;return I.a.wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:return zt.next=2,Object(be.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:pr.current}});case 2:Ln=zt.sent,Ln!=null&&(nn=Ln.attachments)!==null&&nn!==void 0&&nn.length&&(console.log("cm:",it,qr),Ln.attachments.map(function(In){In.content_type.indexOf("image")>-1?it.replaceSelection(".concat(In.content_type,")")):In.content_type.indexOf("video")>-1?it.replaceSelection('')):In.content_type.indexOf("pdf")>-1?it.replaceSelection('').concat(In.name,"")):it.replaceSelection("[".concat(In.name,"](").concat(f.a.API_SERVER,"/api/attachments/").concat(In.id,"?type=").concat(In.content_type,")"))}));case 4:case"end":return zt.stop()}},pn)}));return function(){return Jt.apply(this,arguments)}}();Object(g.useEffect)(function(){vn(St),it==null||it.setValue(St)},[St]),Object(g.useEffect)(function(){ct==null||ct(vr)},[vr]),Object(g.useEffect)(function(){if(qr.current){var Jt=c.a.fromTextArea(qr.current,{mode:An,lineNumbers:!Pt,lineWrapping:!0,value:$e,autoCloseTags:!0,autoCloseBrackets:!0});Gt&&Jt.focus();function pn(nn,Ln){if(Kt){Ln.preventDefault();return}var Hn=Ln.clipboardData;if(Hn){var zt=Hn.types.toString(),In=Hn.items;if(zt==="Files"||Hn.types.indexOf("Files")>-1){if(Ln.preventDefault(),An=="stex")return;try{var br,Fr=In[1];((br=In[0])===null||br===void 0?void 0:br.kind)==="file"&&(Fr=In[0]);var Fn=Fr.getAsFile(),fi=Fn.name.split(".").pop();U(Fn,function(Qn){if(Qn.id){var Ve,rt,Et;(Fn==null||((Ve=Fn.type)===null||Ve===void 0)?void 0:Ve.indexOf("image"))>-1?Jt.replaceSelection(".concat(Qn.content_type,")")):(Fn==null||((rt=Fn.type)===null||rt===void 0)?void 0:rt.indexOf("video"))>-1?Jt.replaceSelection('')):(Fn==null||((Et=Fn.type)===null||Et===void 0)?void 0:Et.indexOf("pdf"))>-1?Jt.replaceSelection('').concat(Fn.name,"")):le.includes(fi)?Jt.replaceSelection('').concat(Fn.name,"")):Jt.replaceSelection("[".concat(Fn.name,"](").concat(f.a.API_SERVER,"/api/attachments/").concat(Qn.id,"?type=").concat(Qn.content_type,")"))}else(Qn==null?void 0:Qn.status)===401&&(document.location.href="/user/login")})}catch(Qn){N.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Jt.on("paste",pn),Jt.on("dragleave",function(nn,Ln){si.current.classList.remove("mouse-hover-md")}),Jt.on("dragover",function(nn,Ln){si.current.classList.add("mouse-hover-md")}),Jt.on("drop",function(nn,Ln){si.current.classList.add("mouse-hover-md");var Hn;if(Hn=Ln.dataTransfer.files,Hn.length>0){Ln.preventDefault(),Ln.stopPropagation();for(var zt=function(Fr){var Fn=Hn[Fr],fi=Fn.name.split(".").pop();U(Fn,function(Qn){if(Qn.id){var Ve,rt,Et;(Fn==null||((Ve=Fn.type)===null||Ve===void 0)?void 0:Ve.indexOf("image"))>-1?Jt.replaceSelection(".concat(Qn.content_type,")")):(Fn==null||((rt=Fn.type)===null||rt===void 0)?void 0:rt.indexOf("video"))>-1?Jt.replaceSelection('')):(Fn==null||((Et=Fn.type)===null||Et===void 0)?void 0:Et.indexOf("pdf"))>-1?Jt.replaceSelection('').concat(Fn.name,"")):le.includes(fi)?Jt.replaceSelection('').concat(Fn.name,"")):Jt.replaceSelection("[".concat(Fn.name,"](").concat(f.a.API_SERVER,"/api/attachments/").concat(Qn.id,"?type=").concat(Qn.content_type,")"))}else(Qn==null?void 0:Qn.status)===401&&(document.location.href="/user/login")})},In=0;In0||In.target.offsetWidth>0)&&(ti(),it.setSize("100%","100%"),it.refresh())}}catch(br){Hn.e(br)}finally{Hn.f()}});return nn.observe(qr.current.parentElement),nn}if(it){var pn=Jt();return function(){pn.unobserve(qr.current.parentElement)}}},[it,ti]),Object(g.useEffect)(function(){if(it){for(var Jt=[],pn=function(){var In=Ln[nn];Hn=Object(H.a)(In,2);var br=Hn[0],Fr=Hn[1],Fn=Object(k.a)({},br,function(){di(Fr)});Jt.push(Fn),it.addKeyMap(Fn)},nn=0,Ln=Object.entries(he);nn0){var Jt=new Date().getTime(),pn=window.sessionStorage.getItem(wn);Jt>=Or+et&&(!pn||pn!==nr)&&(window.sessionStorage.setItem(wn,nr),ai(!0))}},et),Object(g.useEffect)(function(){Dn(On)},[it,On]),Object(g.useEffect)(function(){it&&(Gt&&it.focus())},[it,Gt]),Object(g.useEffect)(function(){if(Cn&&it){var Jt=it.getScrollerElement();function pn(nn){var Ln=nn.target;if(zi.current){var Hn=Ln.scrollTop/Ln.scrollHeight;zi.current.scrollTop=zi.current.scrollHeight*Hn}}return Jt.addEventListener("scroll",pn),function(){Jt.removeEventListener("scroll",pn)}}},[it,Cn]),Object(g.useEffect)(function(){if(it&&He){function Jt(pn,nn){He(pn,nn)}return it.on("beforeChange",Jt),function(){it.off("beforeChange",Jt)}}},[it,He]),Object(g.useEffect)(function(){if(it&&Ie){function Jt(){Ie(it.getValue())}return it.on("blur",Jt),function(){it.off("blur",Jt)}}},[it,Ie]),Object(g.useEffect)(function(){if(it){function Jt(pn){var nn=pn.getValue();vn(nn),Sr(new Date().getTime()),pn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ot&&ot(nn)}return it.on("change",Jt),function(){it.off("change",Jt)}}},[it,ot]),Object(g.useEffect)(function(){it&&($e==null?(it.setValue(""),vn("")):$e!==it.getValue()&&(it.setValue($e),vn($e),it.setCursor(it.lineCount(),0)))},[it,$e]);var di=Object(g.useCallback)(function(Jt){var pn=it.getCursor(),nn=it.getSelection(),Ln=nn.split(`
`);switch(Jt){case"bold":return it.replaceSelection("**"+nn+"**"),nn===""&&it.setCursor(pn.line,pn.ch+2),it.focus();case"italic":return it.replaceSelection("*"+nn+"*"),nn===""&&it.setCursor(pn.line,pn.ch+1),it.focus();case"code":return it.replaceSelection("`"+nn+"`"),nn===""&&it.setCursor(pn.line,pn.ch+1),it.focus();case"inline-latex":return it.replaceSelection("`$$"+nn+"$$`"),nn===""&&it.setCursor(pn.line,pn.ch+3),it.focus();case"latex":return it.replaceSelection("```latex\n"+nn+"\n```"),it.setCursor(pn.line+1,nn.length+1),it.focus();case"line-break":return it.replaceSelection(`
`),it.focus();case"list-ul":return nn===""?it.replaceSelection("- "+nn):it.replaceSelection(Ln.map(function(Hn){return Hn===""?"":"- ".concat(Hn)}).join(`
`)),it.focus();case"list-ol":return nn===""?it.replaceSelection("1. "+nn):it.replaceSelection(Ln.map(function(Hn,zt){return Hn===""?"":"".concat(zt+1,". ").concat(Hn)}).join(`
`)),it.focus();case"add-null-ch":return nn===""&&it.setCursor(pn.line,pn.ch+1),it.replaceSelection(fe),it.focus();case"inster-template-1":return nn===""&&it.setCursor(pn.line,pn.ch),it.replaceSelection(re),it.focus();case"eraser":return it.setValue(""),it.focus();case"trigger-watch":return Dn(!Cn),it.focus();case"trigger-full-screen":return rr(!vr),it.focus();case xe:ir(xe);return;case Be:ir(Be);return;case Ce:ir(Ce);return;case Xe:ir(Xe);return;default:throw new Error}},[it,Cn,vr]),Li=Object(g.useCallback)(function(Jt){ir("");switch(_r){case xe:var pn=Jt.title,nn=Jt.link;return it.replaceSelection("[".concat(pn,"](").concat(nn,")")),it.focus();case Be:var Ln=Jt.language,Hn=Jt.content;return it.replaceSelection(["```"+Ln,Hn,"```"].join(`
`)),it.focus();case Ce:var zt=Jt.src,In=Jt.alt;return In?it.replaceSelection(".concat(zt,' "').concat(In,'" )')):it.replaceSelection("")),it.focus();case Xe:for(var br=Jt.row,Fr=Jt.col,Fn=Jt.align,fi=`
`,Qn=0;Qn
300&&(br=300);var Fr=xt+br+"px";Zr(Fr)}}return Jt.addEventListener("mousedown",Ln),document.addEventListener("mousemove",zt),document.addEventListener("mouseup",Hn),function(){Jt.removeEventListener("mousedown",Ln),document.removeEventListener("mousemove",zt),document.removeEventListener("mouseup",Hn)}}},[it,ei]),Object(g.useEffect)(function(){Zr(xt)},[xt]);var bi=ie(mt),Vi=ie(ii),hi={width:bi,height:Vi},Xi=Object(g.useMemo)(function(){if(Or){var Jt=new Date(Or),pn=Jt.getHours(),nn=Jt.getMinutes(),Ln=Jt.getSeconds();return pn=pn<10?"0"+pn:pn,nn=nn<10?"0"+nn:nn,Ln=Ln<10?"0"+Ln:Ln,"".concat(pn,":").concat(nn,":").concat(Ln)}return 0},[Or]);function Yi(){window.sessionStorage.removeItem(wn),ai(!1),Sr(0)}function oi(){ai(!1),Sr(0),it.setValue(window.sessionStorage.getItem(wn))}function Ji(Jt,pn){var nn=it.getValue();nn=nn.replace(Jt,pn),vn(nn),it==null||it.setValue(nn)}return p.a.createElement(g.Fragment,null,p.a.createElement("div",{className:"markdown-editor-wrapper",ref:si},p.a.createElement("div",{className:"markdown-editor-container ".concat(ze," ").concat(Cn?"on-preview":""," ").concat(Pt?"mini":""," ").concat(vr?"full-screen":""),style:hi},p.a.createElement(y,{insertTemp:kt,watch:Cn,fullScreen:vr,showNullButton:j,onActionCallback:di,hidetoolBar:$,uuid:pr.current,setOpenPhones:function(){cr.current=!0}}),p.a.createElement("div",{className:"markdown-editor-body"},p.a.createElement("div",{className:"codemirror-container"},p.a.createElement("textarea",{ref:qr,placeholder:sn})),Cn?p.a.createElement("div",{ref:zi,className:"preview-container"},An==="stex"&&p.a.createElement(A,{value:nr}),An!=="stex"&&p.a.createElement(T.a,{edit:!0,value:nr,replaces:Ji})):null))),At?p.a.createElement("a",{ref:ei,className:"editor-resize"}):null,p.a.createElement(M.a,null,ye[_r]?p.a.createElement(z.a,{centered:!0,title:ye[_r],visible:!0,onCancel:Ii,footer:null,className:"markdown-popup-form"},Bi):null))}},P5Jw:function(We,ge,D){"use strict";var q=D("rHrb"),z=q.CopyToClipboard;z.CopyToClipboard=z,We.exports=z},PD8m:function(We,ge){We.exports={name:"memoryStorage",read:q,write:z,each:P,remove:Y,clearAll:N};var D={};function q(O){return D[O]}function z(O,H){D[O]=H}function P(O){for(var H in D)D.hasOwnProperty(H)&&O(D[H],H)}function Y(O){delete D[O]}function N(O){D={}}},RELg:function(We,ge,D){var q=D("MFOe"),z=q.Global;We.exports={name:"oldIE-userDataStorage",write:H,read:k,each:n,remove:I,clearAll:g};var P="storejs",Y=z.document,N=c(),O=(z.navigator?z.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function H(o,d){if(O)return;var i=h(o);N(function(a){a.setAttribute(i,d),a.save(P)})}function k(o){if(O)return;var d=h(o),i=null;return N(function(a){i=a.getAttribute(d)}),i}function n(o){N(function(d){for(var i=d.XMLDocument.documentElement.attributes,a=i.length-1;a>=0;a--){var r=i[a];o(d.getAttribute(r.name),r.name)}})}function I(o){var d=h(o);N(function(i){i.removeAttribute(d),i.save(P)})}function g(){N(function(o){var d=o.XMLDocument.documentElement.attributes;o.load(P);for(var i=d.length-1;i>=0;i--)o.removeAttribute(d[i].name);o.save(P)})}var p=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function h(o){return o.replace(/^\d/,"___$&").replace(p,"___")}function c(){if(!Y||!Y.documentElement||!Y.documentElement.addBehavior)return null;var o="script",d,i,a;try{i=new ActiveXObject("htmlfile"),i.open(),i.write("<"+o+">document.w=window"+o+'>'),i.close(),d=i.w.frames[0].document,a=d.createElement("div")}catch(r){a=Y.createElement("div"),d=Y.body}return function(r){var s=[].slice.call(arguments,0);s.unshift(a),d.appendChild(a),a.addBehavior("#default#userData"),a.load(P),r.apply(this,s),d.removeChild(a);return}}},RpDr:function(We,ge,D){"use strict";D.d(ge,"a",function(){return T}),D.d(ge,"c",function(){return v});var q=D("+L6B"),z=D("2/Rp"),P=D("tJVT"),Y=D("k1fw"),N=D("jrin"),O=D("5NDa"),H=D("5rEg"),k=D("q1tI"),n=D.n(k),I=D("8Skl"),g=D("y3Kf"),p=D("bdLU"),h=D("J66h"),c=D.n(h),o=D("++UQ"),d=D.n(o),i=D("IxHN"),a=D("9Bee"),r=D("1vsH"),s,S=H.a.TextArea,x={visible:!1,tabIndex:"0"},T=(s={},Object(N.a)(s,p.a.NOMATCH,"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D"),Object(N.a)(s,p.a.OK,"\u8C03\u8BD5\u901A\u8FC7"),Object(N.a)(s,2,"\u8C03\u8BD5\u8D85\u65F6"),Object(N.a)(s,3,"\u8C03\u8BD5pod\u5931\u8D25"),Object(N.a)(s,4,"\u7F16\u8BD1\u5931\u8D25"),Object(N.a)(s,5,"\u6267\u884C\u5931\u8D25"),s),A;(function(m){m[m.SET_VISIBLE=0]="SET_VISIBLE",m[m.SET_TABINDEX=1]="SET_TABINDEX"})(A||(A={}));function w(m,f){switch(f.type){case A.SET_VISIBLE:return Object(Y.a)(Object(Y.a)({},m),{},{visible:f.payload});case A.SET_TABINDEX:return Object(Y.a)(Object(Y.a)({},m),{},{tabIndex:f.payload});default:throw new Error}}function v(m){var f=m.status,C=m.error_msg,b=m.output,y=m.input,M=m.expected_output,W=m.is_file,L=m.input_file_url,K=m.output_file_url,F=m.expected_output_file_url,R=null,V={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(f){case p.a.NOMATCH:R=n.a.createElement(n.a.Fragment,null,n.a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!W&&n.a.createElement(a.a,{value:y,style:V}),W&&n.a.createElement("div",{style:V},n.a.createElement("a",{onClick:function(){return Object(r.y)(L,y)}},y)),n.a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!W&&n.a.createElement(a.a,{value:b&&h.Base64.decode(b)||"",style:V}),W&&n.a.createElement("div",{style:V},n.a.createElement("a",{onClick:function(){return Object(r.y)(K,b)}},b)),n.a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!W&&n.a.createElement(a.a,{value:M&&h.Base64.decode(M)||"",style:V}),W&&n.a.createElement("div",{style:V},n.a.createElement("a",{onClick:function(){return Object(r.y)(F,M)}},M)));break;case p.a.EXECUTEFAILURE:R=n.a.createElement(n.a.Fragment,null,n.a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!W&&n.a.createElement(a.a,{value:y,style:V}),W&&n.a.createElement("div",{style:V},n.a.createElement("a",{onClick:function(){return Object(r.y)(L,y)}},y)),n.a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),n.a.createElement("pre",{className:"error"},h.Base64.decode(C)));break;case p.a.COMPILEFAILURE:R=n.a.createElement(n.a.Fragment,null,n.a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!W&&n.a.createElement(a.a,{value:y,style:V}),W&&n.a.createElement("div",{style:V},n.a.createElement("a",{onClick:function(){return Object(r.y)(L,y)}},y)),n.a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),n.a.createElement("pre",{className:"error"},h.Base64.decode(C)));break;case p.a.PODFAILURE:R=n.a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case p.a.TIMEOUT:R=n.a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return n.a.createElement(n.a.Fragment,null," ",R," ")}function E(m){var f=m.status,C=m.error_msg,b=m.execute_time,y=m.output,M=m.input,W=m.expected_output,L=m.is_file,K=m.input_file_url,F=m.output_file_url,R=m.expected_output_file_url,V=null;switch(f){case p.a.OK:V=n.a.createElement(n.a.Fragment,null,n.a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",b),n.a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),n.a.createElement("pre",null,h.Base64.decode(y)));break;case p.a.NOMATCH:V=n.a.createElement(n.a.Fragment,null,n.a.createElement("p",null,"\u8F93\u5165\uFF1A",n.a.createElement("pre",null,M)),n.a.createElement("p",null,"\u8F93\u51FA\uFF1A",y&&h.Base64.decode(y)),n.a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",W&&h.Base64.decode(W)));break;case p.a.EXECUTEFAILURE:V=n.a.createElement(n.a.Fragment,null,n.a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",n.a.createElement("pre",null,M)),n.a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),n.a.createElement("pre",{className:"error"},h.Base64.decode(C)));break;case p.a.COMPILEFAILURE:V=n.a.createElement(n.a.Fragment,null,n.a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",n.a.createElement("pre",null,M)),n.a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),n.a.createElement("pre",{className:"error"},h.Base64.decode(C)));break;case p.a.PODFAILURE:V=n.a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case p.a.TIMEOUT:V=n.a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return n.a.createElement(n.a.Fragment,null," ",V," ")}ge.b=function(m){var f=m.id,C=m.input,b=m.debuging,y=m.submitting,M=m.executingMessage,W=m.debugResult,L=m.onChangeInput,K=m.onDebugCode,F=m.onSubmitCode,R=Object(k.useReducer)(w,x),V=Object(P.a)(R,2),ne=V[0],se=V[1],Se=ne.visible,Le=ne.tabIndex;Object(k.useEffect)(function(){se({type:A.SET_VISIBLE,payload:!1})},[f]);function Ae(Te){var Z=Te.target.id;se({type:A.SET_TABINDEX,payload:Z})}function Pe(){se({type:A.SET_VISIBLE,payload:!Se})}var Fe=Object(k.useMemo)(function(){if(W){var Te=W.status;return n.a.createElement(n.a.Fragment,null,E(W))}return null},[W]);function je(){se({type:A.SET_VISIBLE,payload:!0}),se({type:A.SET_TABINDEX,payload:"1"}),K()}return n.a.createElement("div",{className:"test-case-panel"},n.a.createElement("div",{className:"test-case-panel-body ".concat(Se?"active":"")},n.a.createElement("ul",{className:"s-navs"},n.a.createElement("li",null,n.a.createElement("a",{className:Le==="0"?"active":"",id:"0",onClick:Ae},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B")),n.a.createElement("li",null,n.a.createElement("a",{className:Le==="1"?"active":"",id:"1",onClick:Ae},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"))),n.a.createElement("div",{className:"tab-panel-body ".concat(Le==="0"?"":"hide")},n.a.createElement(S,{placeholder:"\u8BF7\u586B\u5199\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D",value:C,onChange:L})),n.a.createElement("div",{className:"tab-panel-body ".concat(Le==="1"?"":"hide")},b?n.a.createElement(i.a,{message:M}):W?n.a.createElement("section",{style:{height:200}}," ",Fe," "):n.a.createElement("p",{className:"tip"},"\u8BF7\u586B\u5199\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D"))),n.a.createElement("a",{className:"btn-collapse ".concat(Se?"up":""),onClick:Pe},Se?n.a.createElement(I.a,null):n.a.createElement(g.a,null)),n.a.createElement("footer",{className:"footer"},n.a.createElement("span",{style:{visibility:"hidden"}},"\u63A7\u5236\u53F0"),n.a.createElement("div",{className:"flex-container"},n.a.createElement(z.a,{id:"oj-prev",className:"btn-blue",type:"ghost"},"\u4E0A\u4E00\u9898"),n.a.createElement(z.a,{id:"oj-next",className:"btn-blue",type:"ghost"},"\u4E0B\u4E00\u9898"),n.a.createElement(z.a,{className:"btn-green",type:"ghost",loading:b,onClick:je},"\u8C03\u8BD5\u4EE3\u7801"),n.a.createElement(z.a,{type:"primary",loading:y,disabled:y,onClick:function(){se({type:A.SET_VISIBLE,payload:!1}),F()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},"S/kP":function(We,ge,D){We.exports=D.p+"static/time.a3dc82f3.svg"},"SA+Z":function(We,ge,D){var q=D("wTVA"),z=D("EbDI"),P=D("ZhPi"),Y=D("wkBT");function N(O){return q(O)||z(O)||P(O)||Y()}We.exports=N,We.exports.__esModule=!0,We.exports.default=We.exports},SJMd:function(We,ge){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var D,q,z,P=!1,Y,N;window.PR_SHOULD_USE_CONTINUATION=!0;var O,H;(function(){var k=window,n=["break,continue,do,else,for,if,return,while"],I=[n,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],g=[I,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],p=[g,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],h=[g,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],c=[g,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],o="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",d=[g,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],i="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",a=[n,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],r=[n,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],s=[n,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],S=[p,c,h,d,i,a,r,s],x=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,T="str",A="kwd",w="com",v="typ",E="lit",m="pun",f="pln",C="tag",b="dec",y="src",M="atn",W="atv",L="nocode",K="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function F(we){for(var Ge=0,Je=!1,be=!1,Re=0,xe=we.length;Re122||(le<65||pe>90||Ze.push([Math.max(65,pe)|32,Math.min(le,90)|32]),le<97||pe>122||Ze.push([Math.max(97,pe)&~32,Math.min(le,122)&~32]))}}Ze.sort(function(Oe,ke){return Oe[0]-ke[0]||ke[1]-Oe[1]});for(var he=[],ye=[],re=0;re_e[0]&&(_e[1]+1>_e[0]&&fe.push("-"),fe.push(qe(_e[1])))}return fe.push("]"),fe.join("")}function ht(Ne){for(var Ue=Ne.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Ze=Ue.length,et=[],fe=0,re=0;fe=2&&pe==="["?Ue[fe]=tt(ie):pe!=="\\"&&(Ue[fe]=ie.replace(/[a-zA-Z]/g,function(ye){var _e=ye.charCodeAt(0);return"["+String.fromCharCode(_e&~32,_e|32)+"]"}))}return Ue.join("")}for(var ft=[],Re=0,xe=we.length;Re=0;)Je[ft.charAt(Ne)]=ht;var Ue=ht[1],Ze=""+Ue;Xe.hasOwnProperty(Ze)||(Be.push(Ue),Xe[Ze]=null)}Be.push(/[\0-\uffff]/),be=F(Be)})();var Re=Ge.length,xe=function(Ce){for(var Be=Ce.sourceCode,Xe=Ce.basePos,qe=Ce.sourceNode,tt=[Xe,f],ht=0,ft=Be.match(be)||[],Ne={},Ue=0,Ze=ft.length;Ue=5&&fe.substring(0,5)==="lang-",ie&&!(re&&typeof re[1]=="string")&&(ie=!1,fe=y),ie||(Ne[et]=fe)}var le=ht;if(ht+=et.length,!ie)tt.push(Xe+le,fe);else{var he=re[1],ye=et.indexOf(he),_e=ye+he.length;re[2]&&(_e=et.length-re[2].length,ye=_e-he.length);var Oe=fe.substring(5);V(qe,Xe+le,et.substring(0,ye),xe,tt),V(qe,Xe+le+ye,he,Z(Oe,he),tt),V(qe,Xe+le+_e,et.substring(_e),xe,tt)}}Ce.decorations=tt};return xe}function Le(we){var Ge=[],Je=[];we.tripleQuotedStrings?Ge.push([T,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):we.multiLineStrings?Ge.push([T,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Ge.push([T,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),we.verbatimStrings&&Je.push([T,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var be=we.hashComments;be&&(we.cStyleComments?(be>1?Ge.push([w,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Ge.push([w,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Je.push([T,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Ge.push([w,/^#[^\r\n]*/,null,"#"])),we.cStyleComments&&(Je.push([w,/^\/\/[^\r\n]*/,null]),Je.push([w,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Re=we.regexLiterals;if(Re){var xe=Re>1?"":`
\r`,Ce=xe?".":"[\\S\\s]",Be="/(?=[^/*"+xe+"])(?:[^/\\x5B\\x5C"+xe+"]|\\x5C"+Ce+"|\\x5B(?:[^\\x5C\\x5D"+xe+"]|\\x5C"+Ce+")*(?:\\x5D|$))+/";Je.push(["lang-regex",RegExp("^"+K+"("+Be+")")])}var Xe=we.types;Xe&&Je.push([v,Xe]);var qe=(""+we.keywords).replace(/^ | $/g,"");qe.length&&Je.push([A,new RegExp("^(?:"+qe.replace(/[\s,]+/g,"|")+")\\b"),null]),Ge.push([f,/^\s+/,null,` \r
\xA0`]);var tt="^.[^\\s\\w.$@'\"`/\\\\]*";return we.regexLiterals&&(tt+="(?!s*/)"),Je.push([E,/^@[a-z_$][a-z_$@0-9]*/i,null],[v,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[f,/^[a-z_$][a-z_$@0-9]*/i,null],[E,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[f,/^\\[\s\S]?/,null],[m,new RegExp(tt),null]),Se(Ge,Je)}var Ae=Le({keywords:S,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Pe(we,Ge,Je){for(var be=/(?:^|\s)nocode(?:\s|$)/,Re=/\r\n?|\n/,xe=we.ownerDocument,Ce=xe.createElement("li");we.firstChild;)Ce.appendChild(we.firstChild);var Be=[Ce];function Xe(Ue){var Ze=Ue.nodeType;if(Ze==1&&!be.test(Ue.className))if(Ue.nodeName==="br")qe(Ue),Ue.parentNode&&Ue.parentNode.removeChild(Ue);else for(var et=Ue.firstChild;et;et=et.nextSibling)Xe(et);else if((Ze==3||Ze==4)&&Je){var fe=Ue.nodeValue,re=fe.match(Re);if(re){var ie=fe.substring(0,re.index);Ue.nodeValue=ie;var ce=fe.substring(re.index+re[0].length);if(ce){var pe=Ue.parentNode;pe.insertBefore(xe.createTextNode(ce),Ue.nextSibling)}qe(Ue),ie||Ue.parentNode.removeChild(Ue)}}}function qe(Ue){for(;!Ue.nextSibling;)if(Ue=Ue.parentNode,!Ue)return;function Ze(re,ie){var ce=ie?re.cloneNode(!1):re,pe=re.parentNode;if(pe){var le=Ze(pe,1),he=re.nextSibling;le.appendChild(ce);for(var ye=he;ye;ye=he)he=ye.nextSibling,le.appendChild(ye)}return ce}for(var et=Ze(Ue.nextSibling,0),fe;(fe=et.parentNode)&&fe.nodeType===1;)et=fe;Be.push(et)}for(var tt=0;tt=pe&&(Xe+=2),xe>=le&&(ht+=2)}}finally{fe&&(fe.style.display=re)}}var je={};function Te(we,Ge){for(var Je=Ge.length;--Je>=0;){var be=Ge[Je];je.hasOwnProperty(be)?k.console&&console.warn("cannot override language handler %s",be):je[be]=we}}function Z(we,Ge){return we&&je.hasOwnProperty(we)||(we=/^\s*]*(?:>|$)/],[w,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[m,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^