(window.webpackJsonp=window.webpackJsonp||[]).push([[203,3,5,6,7,8,9,11,14,18,21],{"+NIl":function(Be,ee,v){(function(Z){Z(v("VrN/"))})(function(Z){"use strict";Z.defineMode("stex",function(Q,I){"use strict";function k(l,i){l.cmdState.push(i)}function _(l){return l.cmdState.length>0?l.cmdState[l.cmdState.length-1]:null}function O(l){var i=l.cmdState.pop();i&&i.closeBracket()}function M(l){for(var i=l.cmdState,c=i.length-1;c>=0;c--){var d=i[c];if(d.name=="DEFAULT")continue;return d}return{styleIdentifier:function(){return null}}}function T(l,i,c){return function(){this.name=l,this.bracketNo=0,this.style=i,this.styles=c,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=T("importmodule","tag",["string","builtin"]),n.documentclass=T("documentclass","tag",["","atom"]),n.usepackage=T("usepackage","tag",["atom"]),n.begin=T("begin","tag",["atom"]),n.end=T("end","tag",["atom"]),n.label=T("label","tag",["atom"]),n.ref=T("ref","tag",["atom"]),n.eqref=T("eqref","tag",["atom"]),n.cite=T("cite","tag",["atom"]),n.bibitem=T("bibitem","tag",["atom"]),n.Bibitem=T("Bibitem","tag",["atom"]),n.RBibitem=T("RBibitem","tag",["atom"]),n.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function p(l,i){l.f=i}function a(l,i){var c;if(l.match(/^\\[a-zA-Z@]+/)){var d=l.current().slice(1);return c=n.hasOwnProperty(d)?n[d]:n.DEFAULT,c=new c,k(i,c),p(i,A),c.style}if(l.match(/^\\[$&%#{}_]/))return"tag";if(l.match(/^\\[,;!\/\\]/))return"tag";if(l.match("\\["))return p(i,function(o,u){return t(o,u,"\\]")}),"keyword";if(l.match("\\("))return p(i,function(o,u){return t(o,u,"\\)")}),"keyword";if(l.match("$$"))return p(i,function(o,u){return t(o,u,"$$")}),"keyword";if(l.match("$"))return p(i,function(o,u){return t(o,u,"$")}),"keyword";var f=l.next();if(f=="%")return l.skipToEnd(),"comment";if(f=="}"||f=="]"){if(c=_(i),c)c.closeBracket(f),p(i,A);else return"error";return"bracket"}else return f=="{"||f=="["?(c=n.DEFAULT,c=new c,k(i,c),"bracket"):/\d/.test(f)?(l.eatWhile(/[\w.%]/),"atom"):(l.eatWhile(/[\w\-_]/),c=M(i),c.name=="begin"&&(c.argument=l.current()),c.styleIdentifier())}function t(l,i,c){if(l.eatSpace())return null;if(c&&l.match(c))return p(i,a),"keyword";if(l.match(/^\\[a-zA-Z@]+/))return"tag";if(l.match(/^[a-zA-Z]+/))return"variable-2";if(l.match(/^\\[$&%#{}_]/))return"tag";if(l.match(/^\\[,;!\/]/))return"tag";if(l.match(/^[\^_&]/))return"tag";if(l.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(l.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var d=l.next();return d=="{"||d=="}"||d=="["||d=="]"||d=="("||d==")"?"bracket":d=="%"?(l.skipToEnd(),"comment"):"error"}function A(l,i){var c=l.peek(),d;return c=="{"||c=="["?(d=_(i),d.openBracket(c),l.eat(c),p(i,a),"bracket"):/[ \t\r]/.test(c)?(l.eat(c),null):(p(i,a),O(i),a(l,i))}return{startState:function(){var l=I.inMathMode?function(i,c){return t(i,c)}:a;return{cmdState:[],f:l}},copyState:function(l){return{cmdState:l.cmdState.slice(),f:l.f}},token:function(l,i){return i.f(l,i)},blankLine:function(l){l.f=a,l.cmdState.length=0},lineComment:"%"}}),Z.defineMIME("text/x-stex","stex"),Z.defineMIME("text/x-latex","stex")})},"+QRC":function(Be,ee,v){"use strict";var Z=v("E9nw"),Q={"text/plain":"Text","text/html":"Url",default:"Text"},I="Copy to clipboard: #{key}, Enter";function k(O){var M=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return O.replace(/#{\s*key\s*}/g,M)}function _(O,M){var T,n,p,a,t,A,l=!1;M||(M={}),T=M.debug||!1;try{p=Z(),a=document.createRange(),t=document.getSelection(),A=document.createElement("span"),A.textContent=O,A.style.all="unset",A.style.position="fixed",A.style.top=0,A.style.clip="rect(0, 0, 0, 0)",A.style.whiteSpace="pre",A.style.webkitUserSelect="text",A.style.MozUserSelect="text",A.style.msUserSelect="text",A.style.userSelect="text",A.addEventListener("copy",function(c){if(c.stopPropagation(),M.format)if(c.preventDefault(),typeof c.clipboardData=="undefined"){T&&console.warn("unable to use e.clipboardData"),T&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=Q[M.format]||Q.default;window.clipboardData.setData(d,O)}else c.clipboardData.clearData(),c.clipboardData.setData(M.format,O);M.onCopy&&(c.preventDefault(),M.onCopy(c.clipboardData))}),document.body.appendChild(A),a.selectNodeContents(A),t.addRange(a);var i=document.execCommand("copy");if(!i)throw new Error("copy command was unsuccessful");l=!0}catch(c){T&&console.error("unable to copy using execCommand: ",c),T&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(M.format||"text",O),M.onCopy&&M.onCopy(window.clipboardData),l=!0}catch(d){T&&console.error("unable to copy using clipboardData: ",d),T&&console.error("falling back to prompt"),n=k("message"in M?M.message:I),window.prompt(n,O)}}finally{t&&(typeof t.removeRange=="function"?t.removeRange(a):t.removeAllRanges()),A&&document.body.removeChild(A),p()}return l}Be.exports=_},"+ua5":function(Be,ee,v){},"/GNS":function(Be,ee,v){Be.exports=v.p+"static/search1.c4136dd4.png"},"/cxE":function(Be,ee,v){"use strict";v.d(ee,"f",function(){return I}),v.d(ee,"g",function(){return k}),v.d(ee,"h",function(){return _}),v.d(ee,"e",function(){return M}),v.d(ee,"b",function(){return T}),v.d(ee,"c",function(){return n}),v.d(ee,"d",function(){return p}),v.d(ee,"a",function(){return a});class Z{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?new Error(t.message+` `+t.stack):t},0)}}emit(t){this.listeners.forEach(A=>{A(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const Q=new Z;function I(t){M(t)||Q.onUnexpectedError(t);return}function k(t){M(t)||Q.onUnexpectedExternalError(t);return}function _(t){if(t instanceof Error){let{name:A,message:l}=t;const i=t.stacktrace||t.stack;return{$isError:!0,name:A,message:l,stack:i}}return t}const O="Canceled";function M(t){return t instanceof Error&&t.name===O&&t.message===O}function T(){const t=new Error(O);return t.name=t.message,t}function n(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}function p(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}class a extends Error{constructor(t){super("NotSupported");t&&(this.message=t)}}},"06Qe":function(Be,ee,v){var Z=v("ItGF"),Q="urn:schemas-microsoft-com:vml",I=typeof window=="undefined"?null:window,k=!1,_=I&&I.document;function O(n){return M(n)}var M;if(_&&!Z.canvasSupported)try{!_.namespaces.zrvml&&_.namespaces.add("zrvml",Q),M=function(n){return _.createElement("')}}catch(n){M=function(p){return _.createElement("<"+p+' xmlns="'+Q+'" class="zrvml">')}}function T(){if(k||!_)return;k=!0;var n=_.styleSheets;n.length<31?_.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):n[0].addRule(".zrvml","behavior:url(#default#VML)")}ee.doc=_,ee.createNode=O,ee.initVML=T},"07cG":function(Be,ee,v){Be.exports={ldsRing:"ldsRing___2F8W7",idsRingWrapper:"idsRingWrapper___fC2cF",ldsring:"ldsring___3A88y"}},"0s+r":function(Be,ee,v){var Z=v("bYtY"),Q=v("QBsz"),I=v("y23F"),k=v("H6uX"),_=v("YH21"),O=v("C0SR"),M="silent";function T(c,d,f){return{type:c,event:f,target:d.target,topTarget:d.topTarget,cancelBubble:!1,offsetX:f.zrX,offsetY:f.zrY,gestureEvent:f.gestureEvent,pinchX:f.pinchX,pinchY:f.pinchY,pinchScale:f.pinchScale,wheelDelta:f.zrDelta,zrByTouch:f.zrByTouch,which:f.which,stop:n}}function n(){_.stop(this.event)}function p(){}p.prototype.dispose=function(){};var a=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=function(c,d,f,o){k.call(this),this.storage=c,this.painter=d,this.painterRoot=o,f=f||new p,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,I.call(this),this.setHandlerProxy(f)};t.prototype={constructor:t,setHandlerProxy:function(c){this.proxy&&this.proxy.dispose(),c&&(Z.each(a,function(d){c.on&&c.on(d,this[d],this)},this),c.handler=this),this.proxy=c},mousemove:function(c){var d=c.zrX,f=c.zrY,o=l(this,d,f),u=this._hovered,E=u.target;E&&!E.__zr&&(u=this.findHover(u.x,u.y),E=u.target);var R=this._hovered=o?{x:d,y:f}:this.findHover(d,f),w=R.target,P=this.proxy;P.setCursor&&P.setCursor(w?w.cursor:"default"),E&&w!==E&&this.dispatchToElement(u,"mouseout",c),this.dispatchToElement(R,"mousemove",c),w&&w!==E&&this.dispatchToElement(R,"mouseover",c)},mouseout:function(c){var d=c.zrEventControl,f=c.zrIsToLocalDOM;d!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",c),d!=="no_globalout"&&(!f&&this.trigger("globalout",{type:"globalout",event:c}))},resize:function(c){this._hovered={}},dispatch:function(c,d){var f=this[c];f&&f.call(this,d)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(c){var d=this.proxy;d.setCursor&&d.setCursor(c)},dispatchToElement:function(c,d,f){c=c||{};var o=c.target;if(o&&o.silent)return;for(var u="on"+d,E=T(d,c,f);o&&!(o[u]&&(E.cancelBubble=o[u].call(o,E)),o.trigger(d,E),o=o.parent,E.cancelBubble););E.cancelBubble||(this.trigger(d,E),this.painter&&this.painter.eachOtherLayer(function(R){typeof R[u]=="function"&&R[u].call(R,E),R.trigger&&R.trigger(d,E)}))},findHover:function(c,d,f){for(var o=this.storage.getDisplayList(),u={x:c,y:d},E=o.length-1;E>=0;E--){var R;if(o[E]!==f&&!o[E].ignore&&(R=A(o[E],c,d))&&(!u.topTarget&&(u.topTarget=o[E]),R!==M)){u.target=o[E];break}}return u},processGesture:function(c,d){this._gestureMgr||(this._gestureMgr=new O);var f=this._gestureMgr;d==="start"&&f.clear();var o=f.recognize(c,this.findHover(c.zrX,c.zrY,null).target,this.proxy.dom);if(d==="end"&&f.clear(),o){var u=o.type;c.gestureEvent=u,this.dispatchToElement({target:o.target},u,o.event)}}},Z.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(c){t.prototype[c]=function(d){var f=d.zrX,o=d.zrY,u=l(this,f,o),E,R;if((c!=="mouseup"||!u)&&(E=this.findHover(f,o),R=E.target),c==="mousedown")this._downEl=R,this._downPoint=[d.zrX,d.zrY],this._upEl=R;else if(c==="mouseup")this._upEl=R;else if(c==="click"){if(this._downEl!==this._upEl||!this._downPoint||Q.dist(this._downPoint,[d.zrX,d.zrY])>4)return;this._downPoint=null}this.dispatchToElement(E,c,d)}});function A(c,d,f){if(c[c.rectHover?"rectContain":"contain"](d,f)){for(var o=c,u;o;){if(o.clipPath&&!o.clipPath.contain(d,f))return!1;o.silent&&(u=!0),o=o.parent}return u?M:!0}return!1}function l(c,d,f){var o=c.painter;return d<0||d>o.getWidth()||f<0||f>o.getHeight()}Z.mixin(t,k),Z.mixin(t,I);var i=t;Be.exports=i},"19Vz":function(Be,ee,v){(function(Z){Z(v("VrN/"))})(function(Z){Z.defineOption("placeholder","",function(T,n,p){var a=p&&p!=Z.Init;if(n&&!a)T.on("blur",_),T.on("change",O),T.on("swapDoc",O),Z.on(T.getInputField(),"compositionupdate",T.state.placeholderCompose=function(){k(T)}),O(T);else if(!n&&a){T.off("blur",_),T.off("change",O),T.off("swapDoc",O),Z.off(T.getInputField(),"compositionupdate",T.state.placeholderCompose),Q(T);var t=T.getWrapperElement();t.className=t.className.replace(" CodeMirror-empty","")}n&&!T.hasFocus()&&_(T)});function Q(T){T.state.placeholder&&(T.state.placeholder.parentNode.removeChild(T.state.placeholder),T.state.placeholder=null)}function I(T){Q(T);var n=T.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=T.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var p=T.getOption("placeholder");typeof p=="string"&&(p=document.createTextNode(p)),n.appendChild(p),T.display.lineSpace.insertBefore(n,T.display.lineSpace.firstChild)}function k(T){setTimeout(function(){var n=!1,p=T.getInputField();p.nodeName=="TEXTAREA"?n=!p.value:T.lineCount()==1&&(n=!/[^\u200b]/.test(p.querySelector(".CodeMirror-line").textContent)),n?I(T):Q(T)},20)}function _(T){M(T)&&I(T)}function O(T){var n=T.getWrapperElement(),p=M(T);n.className=n.className.replace(" CodeMirror-empty","")+(p?" CodeMirror-empty":""),p?I(T):Q(T)}function M(T){return T.lineCount()===1&&T.getLine(0)===""}})},"1Jh7":function(Be,ee,v){var Z=v("y+Vt"),Q=v("T6xi"),I=Z.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(k,_){Q.buildPath(k,_,!1)}});Be.exports=I},"1MYJ":function(Be,ee,v){var Z=v("y+Vt"),Q=Z.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var I=this.__dirtyPath,k=this.shape.paths,_=0;_=this._maxSize&&a>0){var A=T.head;T.remove(A),delete n[A.key],p=A.value,this._lastRemovedEntry=A}t?t.value=M:t=new Q(M),t.key=O,T.insertEntry(t),n[O]=t}return p},k.get=function(O){var M=this._map[O],T=this._list;if(M!=null)return M!==T.tail&&(T.remove(M),T.insertEntry(M)),M.value},k.clear=function(){this._list.clear(),this._map={}};var _=I;Be.exports=_},"1bdT":function(Be,ee,v){var Z=v("3gBT"),Q=v("H6uX"),I=v("DN4a"),k=v("vWvF"),_=v("bYtY"),O=function(T){I.call(this,T),Q.call(this,T),k.call(this,T),this.id=T.id||Z()};O.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(T,n){switch(this.draggable){case"horizontal":n=0;break;case"vertical":T=0;break}var p=this.transform;p||(p=this.transform=[1,0,0,1,0,0]),p[4]+=T,p[5]+=n,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(T,n){},attrKV:function(T,n){if(T==="position"||T==="scale"||T==="origin"){if(n){var p=this[T];p||(p=this[T]=[]),p[0]=n[0],p[1]=n[1]}}else this[T]=n},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(T,n){if(typeof T=="string")this.attrKV(T,n);else if(_.isObject(T))for(var p in T)T.hasOwnProperty(p)&&this.attrKV(p,T[p]);return this.dirty(!1),this},setClipPath:function(T){var n=this.__zr;n&&T.addSelfToZr(n),this.clipPath&&this.clipPath!==T&&this.removeClipPath(),this.clipPath=T,T.__zr=n,T.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var T=this.clipPath;T&&(T.__zr&&T.removeSelfFromZr(T.__zr),T.__zr=null,T.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(T){this.__zr=T;var n=this.animators;if(n)for(var p=0;p")):null:m.match("--")?g(i("comment","-->")):m.match("DOCTYPE",!0,!0)?(m.eatWhile(/[\w\._\-]/),g(c(1))):null:m.eat("?")?(m.eatWhile(/[\w\._\-]/),x.tokenize=i("meta","?>"),"meta"):(p=m.eat("/")?"closeTag":"openTag",x.tokenize=A,"tag bracket");if(y=="&"){var U;return m.eat("#")?m.eat("x")?U=m.eatWhile(/[a-fA-F\d]/)&&m.eat(";"):U=m.eatWhile(/[\d]/)&&m.eat(";"):U=m.eatWhile(/[\w\.\-:]/)&&m.eat(";"),U?"atom":"error"}else return m.eatWhile(/[^&<]/),null}t.isInText=!0;function A(m,x){var g=m.next();if(g==">"||g=="/"&&m.eat(">"))return x.tokenize=t,p=g==">"?"endTag":"selfcloseTag","tag bracket";if(g=="=")return p="equals",null;if(g=="<"){x.tokenize=t,x.state=u,x.tagName=x.tagStart=null;var y=x.tokenize(m,x);return y?y+" tag error":"tag error"}else return/[\'\"]/.test(g)?(x.tokenize=l(g),x.stringStartCol=m.column(),x.tokenize(m,x)):(m.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(m){var x=function(g,y){for(;!g.eol();)if(g.next()==m){y.tokenize=A;break}return"string"};return x.isInAttribute=!0,x}function i(m,x){return function(g,y){for(;!g.eol();){if(g.match(x)){y.tokenize=t;break}g.next()}return m}}function c(m){return function(x,g){for(var y;(y=x.next())!=null;){if(y=="<")return g.tokenize=c(m+1),g.tokenize(x,g);if(y==">")if(m==1){g.tokenize=t;break}else return g.tokenize=c(m-1),g.tokenize(x,g)}return"meta"}}function d(m,x,g){this.prev=m.context,this.tagName=x,this.indent=m.indented,this.startOfLine=g,(M.doNotIndent.hasOwnProperty(x)||m.context&&m.context.noIndent)&&(this.noIndent=!0)}function f(m){m.context&&(m.context=m.context.prev)}function o(m,x){for(var g;;){if(!m.context)return;if(g=m.context.tagName,!M.contextGrabbers.hasOwnProperty(g)||!M.contextGrabbers[g].hasOwnProperty(x))return;f(m)}}function u(m,x,g){return m=="openTag"?(g.tagStart=x.column(),E):m=="closeTag"?R:u}function E(m,x,g){return m=="word"?(g.tagName=x.current(),a="tag",C):M.allowMissingTagName&&m=="endTag"?(a="tag bracket",C(m,x,g)):(a="error",E)}function R(m,x,g){if(m=="word"){var y=x.current();return g.context&&g.context.tagName!=y&&M.implicitlyClosed.hasOwnProperty(g.context.tagName)&&f(g),g.context&&g.context.tagName==y||M.matchClosing===!1?(a="tag",w):(a="tag error",P)}else return M.allowMissingTagName&&m=="endTag"?(a="tag bracket",w(m,x,g)):(a="error",P)}function w(m,x,g){return m!="endTag"?(a="error",w):(f(g),u)}function P(m,x,g){return a="error",w(m,x,g)}function C(m,x,g){if(m=="word")return a="attribute",b;if(m=="endTag"||m=="selfcloseTag"){var y=g.tagName,U=g.tagStart;return g.tagName=g.tagStart=null,m=="selfcloseTag"||M.autoSelfClosers.hasOwnProperty(y)?o(g,y):(o(g,y),g.context=new d(g,y,U==g.indented)),u}return a="error",C}function b(m,x,g){return m=="equals"?s:(M.allowMissing||(a="error"),C(m,x,g))}function s(m,x,g){return m=="string"?h:m=="word"&&M.allowUnquoted?(a="string",C):(a="error",C(m,x,g))}function h(m,x,g){return m=="string"?h:C(m,x,g)}return{startState:function(m){var x={tokenize:t,state:u,indented:m||0,tagName:null,tagStart:null,context:null};return m!=null&&(x.baseIndent=m),x},token:function(m,x){if(!x.tagName&&m.sol()&&(x.indented=m.indentation()),m.eatSpace())return null;p=null;var g=x.tokenize(m,x);return(g||p)&&g!="comment"&&(a=null,x.state=x.state(p||g,m,x),a&&(g=a=="error"?g+" error":a)),g},indent:function(m,x,g){var y=m.context;if(m.tokenize.isInAttribute)return m.tagStart==m.indented?m.stringStartCol+1:m.indented+O;if(y&&y.noIndent)return Z.Pass;if(m.tokenize!=A&&m.tokenize!=t)return g?g.match(/^(\s*)/)[0].length:0;if(m.tagName)return M.multilineTagIndentPastTag!==!1?m.tagStart+m.tagName.length+2:m.tagStart+O*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/$/,blockCommentStart:"",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(m){m.state==s&&(m.state=C)},xmlCurrentTag:function(m){return m.tagName?{name:m.tagName,close:m.type=="closeTag"}:null},xmlCurrentContext:function(m){for(var x=[],g=m.context;g;g=g.prev)g.tagName&&x.push(g.tagName);return x.reverse()}}}),Z.defineMIME("text/xml","xml"),Z.defineMIME("application/xml","xml"),Z.mimeModes.hasOwnProperty("text/html")||Z.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(Be,ee,v){"use strict";v.d(ee,"d",function(){return ct}),v.d(ee,"b",function(){return Xe}),v.d(ee,"c",function(){return Lt}),v.d(ee,"a",function(){return Zt});var Z=v("VTBJ"),Q=v("1OyB"),I=v("vuIU"),k=v("JX7q"),_=v("Ji7U"),O=v("LK+K"),M=v("q1tI"),T=v("I8Z2"),n=v("BGR+"),p=v("wx14"),a=v("rePB"),t=v("4IlW"),A=v("2GS6"),l=v("Gytx"),i=v.n(l),c=v("TSYQ"),d=v.n(c),f=v("U8pU"),o=v("ODXe"),u=/iPhone/i,E=/iPod/i,R=/iPad/i,w=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,C=/\bAndroid(?:.+)SD4930UR\b/i,b=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,s=/Windows Phone/i,h=/\bWindows(?:.+)ARM\b/i,m=/BlackBerry/i,x=/BB10/i,g=/Opera Mini/i,y=/\b(CriOS|Chrome)(?:.+)Mobile/i,U=/Mobile(?:.+)Firefox\b/i;function N(Ct,mt){return Ct.test(mt)}function S(Ct){var mt=Ct||(typeof navigator!="undefined"?navigator.userAgent:""),Je=mt.split("[FBAN");if(typeof Je[1]!="undefined"){var Qe=Je,Oe=Object(o.a)(Qe,1);mt=Oe[0]}if(Je=mt.split("Twitter"),typeof Je[1]!="undefined"){var je=Je,St=Object(o.a)(je,1);mt=St[0]}var bt={apple:{phone:N(u,mt)&&!N(s,mt),ipod:N(E,mt),tablet:!N(u,mt)&&N(R,mt)&&!N(s,mt),device:(N(u,mt)||N(E,mt)||N(R,mt))&&!N(s,mt)},amazon:{phone:N(C,mt),tablet:!N(C,mt)&&N(b,mt),device:N(C,mt)||N(b,mt)},android:{phone:!N(s,mt)&&N(C,mt)||!N(s,mt)&&N(w,mt),tablet:!N(s,mt)&&!N(C,mt)&&!N(w,mt)&&(N(b,mt)||N(P,mt)),device:!N(s,mt)&&(N(C,mt)||N(b,mt)||N(w,mt)||N(P,mt))||N(/\bokhttp\b/i,mt)},windows:{phone:N(s,mt),tablet:N(h,mt),device:N(s,mt)||N(h,mt)},other:{blackberry:N(m,mt),blackberry10:N(x,mt),opera:N(g,mt),firefox:N(U,mt),chrome:N(y,mt),device:N(m,mt)||N(x,mt)||N(g,mt)||N(U,mt)||N(y,mt)},any:null,phone:null,tablet:null};return bt.any=bt.apple.device||bt.android.device||bt.windows.device||bt.other.device,bt.phone=bt.apple.phone||bt.android.phone||bt.windows.phone,bt.tablet=bt.apple.tablet||bt.android.tablet||bt.windows.tablet,bt}var H=Object(Z.a)(Object(Z.a)({},S()),{},{isMobile:S}),F=H;function B(){}function z(Ct,mt,Je){var Qe=mt||"";return Ct.key||"".concat(Qe,"item_").concat(Je)}function K(Ct){return"".concat(Ct,"-menu-")}function $(Ct,mt){var Je=-1;M.Children.forEach(Ct,function(Qe){Je+=1,Qe&&Qe.type&&Qe.type.isMenuItemGroup?M.Children.forEach(Qe.props.children,function(Oe){Je+=1,mt(Oe,Je)}):mt(Qe,Je)})}function te(Ct,mt,Je){if(!Ct||Je.find)return;M.Children.forEach(Ct,function(Qe){if(Qe){var Oe=Qe.type;if(!Oe||!(Oe.isSubMenu||Oe.isMenuItem||Oe.isMenuItemGroup))return;mt.indexOf(Qe.key)!==-1?Je.find=!0:Qe.props.children&&te(Qe.props.children,mt,Je)}})}var fe=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Ae=function(mt){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qe=mt&&typeof mt.getBoundingClientRect=="function"&&mt.getBoundingClientRect().width;if(Qe){if(Je){var Oe=getComputedStyle(mt),je=Oe.marginLeft,St=Oe.marginRight;Qe+=+je.replace("px","")+ +St.replace("px","")}Qe=+Qe.toFixed(6)}return Qe||0},ce=function(mt,Je,Qe){mt&&Object(f.a)(mt.style)==="object"&&(mt.style[Je]=Qe)},ie=function(){return F.any},ye=v("KQm4"),le=v("Ff2n"),me=v("i8i4"),se=v("bdgK"),ge=v("uciX"),ae=v("8XRh"),pe={adjustX:1,adjustY:1},Me={topLeft:{points:["bl","tl"],overflow:pe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:pe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:pe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:pe,offset:[4,0]}},xe={topLeft:{points:["bl","tl"],overflow:pe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:pe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:pe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:pe,offset:[4,0]}},Ke=Me,et=0,he={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Se=function(mt,Je,Qe){var Oe=K(Je),je=mt.getState();mt.setState({defaultActiveFirst:Object(Z.a)(Object(Z.a)({},je.defaultActiveFirst),{},Object(a.a)({},Oe,Qe))})},Ue=function(Ct){Object(_.a)(Je,Ct);var mt=Object(O.a)(Je);function Je(Qe){var Oe;Object(Q.a)(this,Je),Oe=mt.call(this,Qe),Oe.onDestroy=function(_t){Oe.props.onDestroy(_t)},Oe.onKeyDown=function(_t){var Gt=_t.keyCode,kt=Oe.menuInstance,fn=Oe.props,mn=fn.isOpen,Tr=fn.store;if(Gt===t.a.ENTER)return Oe.onTitleClick(_t),Se(Tr,Oe.props.eventKey,!0),!0;if(Gt===t.a.RIGHT)return mn?kt.onKeyDown(_t):(Oe.triggerOpenChange(!0),Se(Tr,Oe.props.eventKey,!0)),!0;if(Gt===t.a.LEFT){var Mr;if(mn)Mr=kt.onKeyDown(_t);else return;return Mr||(Oe.triggerOpenChange(!1),Mr=!0),Mr}return mn&&(Gt===t.a.UP||Gt===t.a.DOWN)?kt.onKeyDown(_t):void 0},Oe.onOpenChange=function(_t){Oe.props.onOpenChange(_t)},Oe.onPopupVisibleChange=function(_t){Oe.triggerOpenChange(_t,_t?"mouseenter":"mouseleave")},Oe.onMouseEnter=function(_t){var Gt=Oe.props,kt=Gt.eventKey,fn=Gt.onMouseEnter,mn=Gt.store;Se(mn,Oe.props.eventKey,!1),fn({key:kt,domEvent:_t})},Oe.onMouseLeave=function(_t){var Gt=Oe.props,kt=Gt.parentMenu,fn=Gt.eventKey,mn=Gt.onMouseLeave;kt.subMenuInstance=Object(k.a)(Oe),mn({key:fn,domEvent:_t})},Oe.onTitleMouseEnter=function(_t){var Gt=Oe.props,kt=Gt.eventKey,fn=Gt.onItemHover,mn=Gt.onTitleMouseEnter;fn({key:kt,hover:!0}),mn({key:kt,domEvent:_t})},Oe.onTitleMouseLeave=function(_t){var Gt=Oe.props,kt=Gt.parentMenu,fn=Gt.eventKey,mn=Gt.onItemHover,Tr=Gt.onTitleMouseLeave;kt.subMenuInstance=Object(k.a)(Oe),mn({key:fn,hover:!1}),Tr({key:fn,domEvent:_t})},Oe.onTitleClick=function(_t){var Gt=Object(k.a)(Oe),kt=Gt.props;if(kt.onTitleClick({key:kt.eventKey,domEvent:_t}),kt.triggerSubMenuAction==="hover")return;Oe.triggerOpenChange(!kt.isOpen,"click"),Se(kt.store,Oe.props.eventKey,!1)},Oe.onSubMenuClick=function(_t){typeof Oe.props.onClick=="function"&&Oe.props.onClick(Oe.addKeyPath(_t))},Oe.onSelect=function(_t){Oe.props.onSelect(_t)},Oe.onDeselect=function(_t){Oe.props.onDeselect(_t)},Oe.getPrefixCls=function(){return"".concat(Oe.props.rootPrefixCls,"-submenu")},Oe.getActiveClassName=function(){return"".concat(Oe.getPrefixCls(),"-active")},Oe.getDisabledClassName=function(){return"".concat(Oe.getPrefixCls(),"-disabled")},Oe.getSelectedClassName=function(){return"".concat(Oe.getPrefixCls(),"-selected")},Oe.getOpenClassName=function(){return"".concat(Oe.props.rootPrefixCls,"-submenu-open")},Oe.saveMenuInstance=function(_t){Oe.menuInstance=_t},Oe.addKeyPath=function(_t){return Object(Z.a)(Object(Z.a)({},_t),{},{keyPath:(_t.keyPath||[]).concat(Oe.props.eventKey)})},Oe.triggerOpenChange=function(_t,Gt){var kt=Oe.props.eventKey,fn=function(){Oe.onOpenChange({key:kt,item:Object(k.a)(Oe),trigger:Gt,open:_t})};Gt==="mouseenter"?Oe.mouseenterTimeout=setTimeout(function(){fn()},0):fn()},Oe.isChildrenSelected=function(){var _t={find:!1};return te(Oe.props.children,Oe.props.selectedKeys,_t),_t.find},Oe.isOpen=function(){return Oe.props.openKeys.indexOf(Oe.props.eventKey)!==-1},Oe.adjustWidth=function(){if(!Oe.subMenuTitle||!Oe.menuInstance)return;var _t=me.findDOMNode(Oe.menuInstance);if(_t.offsetWidth>=Oe.subMenuTitle.offsetWidth)return;_t.style.minWidth="".concat(Oe.subMenuTitle.offsetWidth,"px")},Oe.saveSubMenuTitle=function(_t){Oe.subMenuTitle=_t},Oe.getBaseProps=function(){var _t=Object(k.a)(Oe),Gt=_t.props;return{mode:Gt.mode==="horizontal"?"vertical":Gt.mode,visible:Oe.props.isOpen,level:Gt.level+1,inlineIndent:Gt.inlineIndent,focusable:!1,onClick:Oe.onSubMenuClick,onSelect:Oe.onSelect,onDeselect:Oe.onDeselect,onDestroy:Oe.onDestroy,selectedKeys:Gt.selectedKeys,eventKey:"".concat(Gt.eventKey,"-menu-"),openKeys:Gt.openKeys,motion:Gt.motion,onOpenChange:Oe.onOpenChange,subMenuOpenDelay:Gt.subMenuOpenDelay,parentMenu:Object(k.a)(Oe),subMenuCloseDelay:Gt.subMenuCloseDelay,forceSubMenuRender:Gt.forceSubMenuRender,triggerSubMenuAction:Gt.triggerSubMenuAction,builtinPlacements:Gt.builtinPlacements,defaultActiveFirst:Gt.store.getState().defaultActiveFirst[K(Gt.eventKey)],multiple:Gt.multiple,prefixCls:Gt.rootPrefixCls,id:Oe.internalMenuId,manualRef:Oe.saveMenuInstance,itemIcon:Gt.itemIcon,expandIcon:Gt.expandIcon,direction:Gt.direction}},Oe.getMotion=function(_t,Gt){var kt=Object(k.a)(Oe),fn=kt.haveRendered,mn=Oe.props,Tr=mn.motion,Mr=mn.rootPrefixCls,kr=Object(Z.a)(Object(Z.a)({},Tr),{},{leavedClassName:"".concat(Mr,"-hidden"),removeOnLeave:!1,motionAppear:fn||!Gt||_t!=="inline"});return kr};var je=Qe.store,St=Qe.eventKey,bt=je.getState(),Dt=bt.defaultActiveFirst;Oe.isRootMenu=!1;var Qt=!1;return Dt&&(Qt=Dt[St]),Se(je,St,Qt),Oe}return Object(I.a)(Je,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Oe=this,je=this.props,St=je.mode,bt=je.parentMenu,Dt=je.manualRef;if(Dt&&Dt(this),St!=="horizontal"||!bt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Oe.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Oe=this.props,je=Oe.onDestroy,St=Oe.eventKey;je&&je(St),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Oe){var je=this,St=this.getBaseProps(),bt=this.getMotion(St.mode,St.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||St.visible||St.forceSubMenuRender,!this.haveOpened)return M.createElement("div",null);var Dt=St.direction;return M.createElement(ae.default,Object.assign({visible:St.visible},bt),function(Qt){var _t=Qt.className,Gt=Qt.style,kt=d()("".concat(St.prefixCls,"-sub"),_t,Object(a.a)({},"".concat(St.prefixCls,"-rtl"),Dt==="rtl"));return M.createElement(Ze,Object.assign({},St,{id:je.internalMenuId,className:kt,style:Gt}),Oe)})}},{key:"render",value:function(){var Oe,je=Object(Z.a)({},this.props),St=je.isOpen,bt=this.getPrefixCls(),Dt=je.mode==="inline",Qt=d()(bt,"".concat(bt,"-").concat(je.mode),(Oe={},Object(a.a)(Oe,je.className,!!je.className),Object(a.a)(Oe,this.getOpenClassName(),St),Object(a.a)(Oe,this.getActiveClassName(),je.active||St&&!Dt),Object(a.a)(Oe,this.getDisabledClassName(),je.disabled),Object(a.a)(Oe,this.getSelectedClassName(),this.isChildrenSelected()),Oe));this.internalMenuId||(je.eventKey?this.internalMenuId="".concat(je.eventKey,"$Menu"):(et+=1,this.internalMenuId="$__$".concat(et,"$Menu")));var _t={},Gt={},kt={};je.disabled||(_t={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Gt={onClick:this.onTitleClick},kt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var fn={},mn=je.direction;Dt&&(mn==="rtl"?fn.paddingRight=je.inlineIndent*je.level:fn.paddingLeft=je.inlineIndent*je.level);var Tr={};this.props.isOpen&&(Tr={"aria-owns":this.internalMenuId});var Mr=null;je.mode!=="horizontal"&&(Mr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Mr=M.createElement(this.props.expandIcon,Object(Z.a)({},this.props))));var kr=M.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:fn,className:"".concat(bt,"-title"),role:"button"},kt,Gt,{"aria-expanded":St},Tr,{"aria-haspopup":"true",title:typeof je.title=="string"?je.title:void 0}),je.title,Mr||M.createElement("i",{className:"".concat(bt,"-arrow")})),Un=this.renderChildren(je.children),Ra=je.parentMenu.isRootMenu?je.parentMenu.props.getPopupContainer:function(Xt){return Xt.parentNode},Xr=he[je.mode],aa=je.popupOffset?{offset:je.popupOffset}:{},Kr=je.mode==="inline"?"":je.popupClassName;Kr+=mn==="rtl"?" ".concat(bt,"-rtl"):"";var _a=je.disabled,di=je.triggerSubMenuAction,Ei=je.subMenuOpenDelay,_e=je.forceSubMenuRender,Ie=je.subMenuCloseDelay,Ye=je.builtinPlacements;fe.forEach(function(Xt){return delete je[Xt]}),delete je.onClick;var yt=mn==="rtl"?Object.assign({},xe,Ye):Object.assign({},Me,Ye);return delete je.direction,M.createElement("li",Object.assign({},je,_t,{className:Qt,role:"menuitem"}),Dt&&kr,Dt&&Un,!Dt&&M.createElement(ge.a,{prefixCls:bt,popupClassName:d()("".concat(bt,"-popup"),Kr),getPopupContainer:Ra,builtinPlacements:yt,popupPlacement:Xr,popupVisible:St,popupAlign:aa,popup:Un,action:_a?[]:[di],mouseEnterDelay:Ei,mouseLeaveDelay:Ie,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:_e},kr))}}]),Je}(M.Component);Ue.defaultProps={onMouseEnter:B,onMouseLeave:B,onTitleMouseEnter:B,onTitleMouseLeave:B,onTitleClick:B,manualRef:B,mode:"vertical",title:""};var Ne=Object(T.b)(function(Ct,mt){var Je=Ct.openKeys,Qe=Ct.activeKey,Oe=Ct.selectedKeys,je=mt.eventKey,St=mt.subMenuKey;return{isOpen:Je.indexOf(je)>-1,active:Qe[St]===je,selectedKeys:Oe}})(Ue);Ne.isSubMenu=!0;var ct=Ne,ft="menuitem-overflowed",Ot=.5,dt=function(Ct){Object(_.a)(Je,Ct);var mt=Object(O.a)(Je);function Je(){var Qe;return Object(Q.a)(this,Je),Qe=mt.apply(this,arguments),Qe.resizeObserver=null,Qe.mutationObserver=null,Qe.originalTotalWidth=0,Qe.overflowedItems=[],Qe.menuItemSizes=[],Qe.cancelFrameId=null,Qe.state={lastVisibleIndex:void 0},Qe.getMenuItemNodes=function(){var Oe=Qe.props.prefixCls,je=me.findDOMNode(Object(k.a)(Qe));return je?[].slice.call(je.children).filter(function(St){return St.className.split(" ").indexOf("".concat(Oe,"-overflowed-submenu"))<0}):[]},Qe.getOverflowedSubMenuItem=function(Oe,je,St){var bt=Qe.props,Dt=bt.overflowedIndicator,Qt=bt.level,_t=bt.mode,Gt=bt.prefixCls,kt=bt.theme;if(Qt!==1||_t!=="horizontal")return null;var fn=Qe.props.children[0],mn=fn.props,Tr=mn.children,Mr=mn.title,kr=mn.style,Un=Object(le.a)(mn,["children","title","style"]),Ra=Object(Z.a)({},kr),Xr="".concat(Oe,"-overflowed-indicator"),aa="".concat(Oe,"-overflowed-indicator");je.length===0&&St!==!0?Ra=Object(Z.a)(Object(Z.a)({},Ra),{},{display:"none"}):St&&(Ra=Object(Z.a)(Object(Z.a)({},Ra),{},{visibility:"hidden",position:"absolute"}),Xr="".concat(Xr,"-placeholder"),aa="".concat(aa,"-placeholder"));var Kr=kt?"".concat(Gt,"-").concat(kt):"",_a={};return fe.forEach(function(di){Un[di]!==void 0&&(_a[di]=Un[di])}),M.createElement(ct,Object.assign({title:Dt,className:"".concat(Gt,"-overflowed-submenu"),popupClassName:Kr},_a,{key:Xr,eventKey:aa,disabled:!1,style:Ra}),je)},Qe.setChildrenWidthAndResize=function(){if(Qe.props.mode!=="horizontal")return;var Oe=me.findDOMNode(Object(k.a)(Qe));if(!Oe)return;var je=Oe.children;if(!je||je.length===0)return;var St=Oe.children[je.length-1];ce(St,"display","inline-block");var bt=Qe.getMenuItemNodes(),Dt=bt.filter(function(Qt){return Qt.className.split(" ").indexOf(ft)>=0});Dt.forEach(function(Qt){ce(Qt,"display","inline-block")}),Qe.menuItemSizes=bt.map(function(Qt){return Ae(Qt,!0)}),Dt.forEach(function(Qt){ce(Qt,"display","none")}),Qe.overflowedIndicatorWidth=Ae(Oe.children[Oe.children.length-1],!0),Qe.originalTotalWidth=Qe.menuItemSizes.reduce(function(Qt,_t){return Qt+_t},0),Qe.handleResize(),ce(St,"display","none")},Qe.handleResize=function(){if(Qe.props.mode!=="horizontal")return;var Oe=me.findDOMNode(Object(k.a)(Qe));if(!Oe)return;var je=Ae(Oe);Qe.overflowedItems=[];var St=0,bt;Qe.originalTotalWidth>je+Ot&&(bt=-1,Qe.menuItemSizes.forEach(function(Dt){St+=Dt,St+Qe.overflowedIndicatorWidth<=je&&(bt+=1)})),Qe.setState({lastVisibleIndex:bt})},Qe}return Object(I.a)(Je,[{key:"componentDidMount",value:function(){var Oe=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var je=me.findDOMNode(this);if(!je)return;this.resizeObserver=new se.default(function(St){St.forEach(function(){var bt=Oe.cancelFrameId;cancelAnimationFrame(bt),Oe.cancelFrameId=requestAnimationFrame(Oe.setChildrenWidthAndResize)})}),[].slice.call(je.children).concat(je).forEach(function(St){Oe.resizeObserver.observe(St)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Oe.resizeObserver.disconnect(),[].slice.call(je.children).concat(je).forEach(function(St){Oe.resizeObserver.observe(St)}),Oe.setChildrenWidthAndResize()}),this.mutationObserver.observe(je,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Oe){var je=this,St=this.state.lastVisibleIndex;return(Oe||[]).reduce(function(bt,Dt,Qt){var _t=Dt;if(je.props.mode==="horizontal"){var Gt=je.getOverflowedSubMenuItem(Dt.props.eventKey,[]);St!==void 0&&je.props.className.indexOf("".concat(je.props.prefixCls,"-root"))!==-1&&(Qt>St&&(_t=M.cloneElement(Dt,{style:{display:"none"},eventKey:"".concat(Dt.props.eventKey,"-hidden"),className:"".concat(ft)})),Qt===St+1&&(je.overflowedItems=Oe.slice(St+1).map(function(fn){return M.cloneElement(fn,{key:fn.props.eventKey,mode:"vertical-left"})}),Gt=je.getOverflowedSubMenuItem(Dt.props.eventKey,je.overflowedItems)));var kt=[].concat(Object(ye.a)(bt),[Gt,_t]);return Qt===Oe.length-1&&kt.push(je.getOverflowedSubMenuItem(Dt.props.eventKey,[],!0)),kt}return[].concat(Object(ye.a)(bt),[_t])},[])}},{key:"render",value:function(){var Oe=this.props,je=Oe.visible,St=Oe.prefixCls,bt=Oe.overflowedIndicator,Dt=Oe.mode,Qt=Oe.level,_t=Oe.tag,Gt=Oe.children,kt=Oe.theme,fn=Object(le.a)(Oe,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),mn=_t;return M.createElement(mn,Object.assign({},fn),this.renderChildren(Gt))}}]),Je}(M.Component);dt.defaultProps={tag:"div",className:""};var Ut=dt;function jt(Ct){return Ct.length?Ct.every(function(mt){return!!mt.props.disabled}):!0}function ze(Ct,mt,Je){var Qe=Ct.getState();Ct.setState({activeKey:Object(Z.a)(Object(Z.a)({},Qe.activeKey),{},Object(a.a)({},mt,Je))})}function Ve(Ct){return Ct.eventKey||"0-menu-"}function Et(Ct,mt){var Je=mt,Qe=Ct.children,Oe=Ct.eventKey;if(Je){var je;if($(Qe,function(St,bt){St&&St.props&&!St.props.disabled&&Je===z(St,Oe,bt)&&(je=!0)}),je)return Je}return Je=null,Ct.defaultActiveFirst&&$(Qe,function(St,bt){!Je&&St&&!St.props.disabled&&(Je=z(St,Oe,bt))}),Je}function Rt(Ct){if(Ct){var mt=this.instanceArray.indexOf(Ct);mt!==-1?this.instanceArray[mt]=Ct:this.instanceArray.push(Ct)}}var ut=function(Ct){Object(_.a)(Je,Ct);var mt=Object(O.a)(Je);function Je(Qe){var Oe;return Object(Q.a)(this,Je),Oe=mt.call(this,Qe),Oe.onKeyDown=function(je,St){var bt=je.keyCode,Dt;if(Oe.getFlatInstanceArray().forEach(function(_t){_t&&_t.props.active&&_t.onKeyDown&&(Dt=_t.onKeyDown(je))}),Dt)return 1;var Qt=null;return(bt===t.a.UP||bt===t.a.DOWN)&&(Qt=Oe.step(bt===t.a.UP?-1:1)),Qt?(je.preventDefault(),ze(Oe.props.store,Ve(Oe.props),Qt.props.eventKey),typeof St=="function"&&St(Qt),1):void 0},Oe.onItemHover=function(je){var St=je.key,bt=je.hover;ze(Oe.props.store,Ve(Oe.props),bt?St:null)},Oe.onDeselect=function(je){Oe.props.onDeselect(je)},Oe.onSelect=function(je){Oe.props.onSelect(je)},Oe.onClick=function(je){Oe.props.onClick(je)},Oe.onOpenChange=function(je){Oe.props.onOpenChange(je)},Oe.onDestroy=function(je){Oe.props.onDestroy(je)},Oe.getFlatInstanceArray=function(){return Oe.instanceArray},Oe.step=function(je){var St=Oe.getFlatInstanceArray(),bt=Oe.props.store.getState().activeKey[Ve(Oe.props)],Dt=St.length;if(!Dt)return null;je<0&&(St=St.concat().reverse());var Qt=-1;if(St.every(function(fn,mn){return fn&&fn.props.eventKey===bt?(Qt=mn,!1):!0}),!Oe.props.defaultActiveFirst&&Qt!==-1&&jt(St.slice(Qt,Dt-1)))return;var _t=(Qt+1)%Dt,Gt=_t;do{var kt=St[Gt];if(!kt||kt.props.disabled)Gt=(Gt+1)%Dt;else return kt}while(Gt!==_t);return null},Oe.renderCommonMenuItem=function(je,St,bt){var Dt=Oe.props.store.getState(),Qt=Object(k.a)(Oe),_t=Qt.props,Gt=z(je,_t.eventKey,St),kt=je.props;if(!kt||typeof je.type=="string")return je;var fn=Gt===Dt.activeKey,mn=Object(Z.a)(Object(Z.a)({mode:kt.mode||_t.mode,level:_t.level,inlineIndent:_t.inlineIndent,renderMenuItem:Oe.renderMenuItem,rootPrefixCls:_t.prefixCls,index:St,parentMenu:_t.parentMenu,manualRef:kt.disabled?void 0:Object(A.a)(je.ref,Rt.bind(Object(k.a)(Oe))),eventKey:Gt,active:!kt.disabled&&fn,multiple:_t.multiple,onClick:function(Mr){(kt.onClick||B)(Mr),Oe.onClick(Mr)},onItemHover:Oe.onItemHover,motion:_t.motion,subMenuOpenDelay:_t.subMenuOpenDelay,subMenuCloseDelay:_t.subMenuCloseDelay,forceSubMenuRender:_t.forceSubMenuRender,onOpenChange:Oe.onOpenChange,onDeselect:Oe.onDeselect,onSelect:Oe.onSelect,builtinPlacements:_t.builtinPlacements,itemIcon:kt.itemIcon||Oe.props.itemIcon,expandIcon:kt.expandIcon||Oe.props.expandIcon},bt),{},{direction:_t.direction});return(_t.mode==="inline"||ie())&&(mn.triggerSubMenuAction="click"),M.cloneElement(je,mn)},Oe.renderMenuItem=function(je,St,bt){if(!je)return null;var Dt=Oe.props.store.getState(),Qt={openKeys:Dt.openKeys,selectedKeys:Dt.selectedKeys,triggerSubMenuAction:Oe.props.triggerSubMenuAction,subMenuKey:bt};return Oe.renderCommonMenuItem(je,St,Qt)},Qe.store.setState({activeKey:Object(Z.a)(Object(Z.a)({},Qe.store.getState().activeKey),{},Object(a.a)({},Qe.eventKey,Et(Qe,Qe.activeKey)))}),Oe.instanceArray=[],Oe}return Object(I.a)(Je,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Oe){return this.props.visible||Oe.visible||this.props.className!==Oe.className||!i()(this.props.style,Oe.style)}},{key:"componentDidUpdate",value:function(Oe){var je=this.props,St="activeKey"in je?je.activeKey:je.store.getState().activeKey[Ve(je)],bt=Et(je,St);if(bt!==St)ze(je.store,Ve(je),bt);else if("activeKey"in Oe){var Dt=Et(Oe,Oe.activeKey);bt!==Dt&&ze(je.store,Ve(je),bt)}}},{key:"render",value:function(){var Oe=this,je=Object(p.a)({},this.props);this.instanceArray=[];var St=d()(je.prefixCls,je.className,"".concat(je.prefixCls,"-").concat(je.mode)),bt={className:St,role:je.role||"menu"};je.id&&(bt.id=je.id),je.focusable&&(bt.tabIndex=0,bt.onKeyDown=this.onKeyDown);var Dt=je.prefixCls,Qt=je.eventKey,_t=je.visible,Gt=je.level,kt=je.mode,fn=je.overflowedIndicator,mn=je.theme;return fe.forEach(function(Tr){return delete je[Tr]}),delete je.onClick,M.createElement(Ut,Object.assign({},je,{prefixCls:Dt,mode:kt,tag:"ul",level:Gt,theme:mn,visible:_t,overflowedIndicator:fn},bt),M.Children.map(je.children,function(Tr,Mr){return Oe.renderMenuItem(Tr,Mr,Qt||"0-menu-")}))}}]),Je}(M.Component);ut.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:B};var vt=Object(T.b)()(ut),Ze=vt,ke=v("Kwbf");function He(Ct,mt,Je){var Qe=Ct.prefixCls,Oe=Ct.motion,je=Ct.defaultMotions,St=je===void 0?{}:je,bt=Ct.openAnimation,Dt=Ct.openTransitionName,Qt=mt.switchingModeFromInline;if(Oe)return Oe;if(Object(f.a)(bt)==="object"&&bt)Object(ke.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof bt=="string")return{motionName:"".concat(Qe,"-open-").concat(bt)};if(Dt)return{motionName:Dt};var _t=St[Je];return _t||(Qt?null:St.other)}var we=function(Ct){Object(_.a)(Je,Ct);var mt=Object(O.a)(Je);function Je(Qe){var Oe;Object(Q.a)(this,Je),Oe=mt.call(this,Qe),Oe.inlineOpenKeys=[],Oe.onSelect=function(bt){var Dt=Object(k.a)(Oe),Qt=Dt.props;if(Qt.selectable){var _t=Oe.store.getState(),Gt=_t.selectedKeys,kt=bt.key;Qt.multiple?Gt=Gt.concat([kt]):Gt=[kt],"selectedKeys"in Qt||Oe.store.setState({selectedKeys:Gt}),Qt.onSelect(Object(Z.a)(Object(Z.a)({},bt),{},{selectedKeys:Gt}))}},Oe.onClick=function(bt){var Dt=Oe.getRealMenuMode(),Qt=Object(k.a)(Oe),_t=Qt.store,Gt=Qt.props.onOpenChange;Dt!=="inline"&&!("openKeys"in Oe.props)&&(_t.setState({openKeys:[]}),Gt([])),Oe.props.onClick(bt)},Oe.onKeyDown=function(bt,Dt){Oe.innerMenu.getWrappedInstance().onKeyDown(bt,Dt)},Oe.onOpenChange=function(bt){var Dt=Object(k.a)(Oe),Qt=Dt.props,_t=Oe.store.getState().openKeys.concat(),Gt=!1,kt=function(mn){var Tr=!1;if(mn.open)Tr=_t.indexOf(mn.key)===-1,Tr&&_t.push(mn.key);else{var Mr=_t.indexOf(mn.key);Tr=Mr!==-1,Tr&&_t.splice(Mr,1)}Gt=Gt||Tr};Array.isArray(bt)?bt.forEach(kt):kt(bt),Gt&&("openKeys"in Oe.props||Oe.store.setState({openKeys:_t}),Qt.onOpenChange(_t))},Oe.onDeselect=function(bt){var Dt=Object(k.a)(Oe),Qt=Dt.props;if(Qt.selectable){var _t=Oe.store.getState().selectedKeys.concat(),Gt=bt.key,kt=_t.indexOf(Gt);kt!==-1&&_t.splice(kt,1),"selectedKeys"in Qt||Oe.store.setState({selectedKeys:_t}),Qt.onDeselect(Object(Z.a)(Object(Z.a)({},bt),{},{selectedKeys:_t}))}},Oe.onMouseEnter=function(bt){Oe.restoreModeVerticalFromInline();var Dt=Oe.props.onMouseEnter;Dt&&Dt(bt)},Oe.onTransitionEnd=function(bt){var Dt=bt.propertyName==="width"&&bt.target===bt.currentTarget,Qt=bt.target.className,_t=Object.prototype.toString.call(Qt)==="[object SVGAnimatedString]"?Qt.animVal:Qt,Gt=bt.propertyName==="font-size"&&_t.indexOf("anticon")>=0;(Dt||Gt)&&Oe.restoreModeVerticalFromInline()},Oe.setInnerMenu=function(bt){Oe.innerMenu=bt},Oe.isRootMenu=!0;var je=Qe.defaultSelectedKeys,St=Qe.defaultOpenKeys;return"selectedKeys"in Qe&&(je=Qe.selectedKeys||[]),"openKeys"in Qe&&(St=Qe.openKeys||[]),Oe.store=Object(T.c)({selectedKeys:je,openKeys:St,activeKey:{"0-menu-":Et(Qe,Qe.activeKey)}}),Oe.state={switchingModeFromInline:!1},Oe}return Object(I.a)(Je,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Oe){this.updateOpentKeysWhenSwitchMode(Oe),this.updateMiniStore();var je=this.props,St=je.siderCollapsed,bt=je.inlineCollapsed,Dt=je.onOpenChange;(!Oe.inlineCollapsed&&bt||!Oe.siderCollapsed&&St)&&Dt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Oe){var je=this.props,St=this.store,bt=this.inlineOpenKeys,Dt=St.getState(),Qt={};Oe.mode==="inline"&&je.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in je||((je.inlineCollapsed&&!Oe.inlineCollapsed||je.siderCollapsed&&!Oe.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Dt.openKeys.concat(),Qt.openKeys=[]),(!je.inlineCollapsed&&Oe.inlineCollapsed||!je.siderCollapsed&&Oe.siderCollapsed)&&(Qt.openKeys=bt,this.inlineOpenKeys=[])),Object.keys(Qt).length&&St.setState(Qt)}},{key:"updateMenuDisplay",value:function(){var Oe=this.props.collapsedWidth,je=this.store,St=this.prevOpenKeys,bt=this.getInlineCollapsed()&&(Oe===0||Oe==="0"||Oe==="0px");bt?(this.prevOpenKeys=je.getState().openKeys.concat(),this.store.setState({openKeys:[]})):St&&(this.store.setState({openKeys:St}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Oe=this.props.mode,je=this.state.switchingModeFromInline,St=this.getInlineCollapsed();return je&&St?"inline":St?"vertical":Oe}},{key:"getInlineCollapsed",value:function(){var Oe=this.props,je=Oe.inlineCollapsed,St=Oe.siderCollapsed;return St!==void 0?St:je}},{key:"restoreModeVerticalFromInline",value:function(){var Oe=this.state.switchingModeFromInline;Oe&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Oe=Object(Z.a)({},Object(n.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),je=this.getRealMenuMode();return Oe.className+=" ".concat(Oe.prefixCls,"-root"),Oe.direction==="rtl"&&(Oe.className+=" ".concat(Oe.prefixCls,"-rtl")),Oe=Object(Z.a)(Object(Z.a)({},Oe),{},{mode:je,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:He(this.props,this.state,je)}),delete Oe.openAnimation,delete Oe.openTransitionName,M.createElement(T.a,{store:this.store},M.createElement(Ze,Object.assign({},Oe,{ref:this.setInnerMenu}),this.props.children))}}]),Je}(M.Component);we.defaultProps={selectable:!0,onClick:B,onSelect:B,onOpenChange:B,onDeselect:B,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:M.createElement("span",null,"\xB7\xB7\xB7")};var Le=we,Pe=function(Ct){Object(_.a)(Je,Ct);var mt=Object(O.a)(Je);function Je(){var Qe;return Object(Q.a)(this,Je),Qe=mt.apply(this,arguments),Qe.onKeyDown=function(Oe){var je=Oe.keyCode;return je===t.a.ENTER?(Qe.onClick(Oe),!0):void 0},Qe.onMouseLeave=function(Oe){var je=Qe.props,St=je.eventKey,bt=je.onItemHover,Dt=je.onMouseLeave;bt({key:St,hover:!1}),Dt({key:St,domEvent:Oe})},Qe.onMouseEnter=function(Oe){var je=Qe.props,St=je.eventKey,bt=je.onItemHover,Dt=je.onMouseEnter;bt({key:St,hover:!0}),Dt({key:St,domEvent:Oe})},Qe.onClick=function(Oe){var je=Qe.props,St=je.eventKey,bt=je.multiple,Dt=je.onClick,Qt=je.onSelect,_t=je.onDeselect,Gt=je.isSelected,kt={key:St,keyPath:[St],item:Object(k.a)(Qe),domEvent:Oe};Dt(kt),bt?Gt?_t(kt):Qt(kt):Gt||Qt(kt)},Qe.saveNode=function(Oe){Qe.node=Oe},Qe}return Object(I.a)(Je,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Oe=this.props;Oe.onDestroy&&Oe.onDestroy(Oe.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Oe,je=Object(Z.a)({},this.props),St=d()(this.getPrefixCls(),je.className,(Oe={},Object(a.a)(Oe,this.getActiveClassName(),!je.disabled&&je.active),Object(a.a)(Oe,this.getSelectedClassName(),je.isSelected),Object(a.a)(Oe,this.getDisabledClassName(),je.disabled),Oe)),bt=Object(Z.a)(Object(Z.a)({},je.attribute),{},{title:typeof je.title=="string"?je.title:void 0,className:St,role:je.role||"menuitem","aria-disabled":je.disabled});je.role==="option"?bt=Object(Z.a)(Object(Z.a)({},bt),{},{role:"option","aria-selected":je.isSelected}):(je.role===null||je.role==="none")&&(bt.role="none");var Dt={onClick:je.disabled?null:this.onClick,onMouseLeave:je.disabled?null:this.onMouseLeave,onMouseEnter:je.disabled?null:this.onMouseEnter},Qt=Object(Z.a)({},je.style);je.mode==="inline"&&(je.direction==="rtl"?Qt.paddingRight=je.inlineIndent*je.level:Qt.paddingLeft=je.inlineIndent*je.level),fe.forEach(function(Gt){return delete je[Gt]}),delete je.direction;var _t=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(_t=M.createElement(this.props.itemIcon,this.props)),M.createElement("li",Object.assign({},Object(n.default)(je,["onClick","onMouseEnter","onMouseLeave","onSelect"]),bt,Dt,{style:Qt,ref:this.saveNode}),je.children,_t)}}]),Je}(M.Component);Pe.isMenuItem=!0,Pe.defaultProps={onSelect:B,onMouseEnter:B,onMouseLeave:B,manualRef:B};var We=Object(T.b)(function(Ct,mt){var Je=Ct.activeKey,Qe=Ct.selectedKeys,Oe=mt.eventKey,je=mt.subMenuKey;return{active:Je[je]===Oe,isSelected:Qe.indexOf(Oe)!==-1}})(Pe),Xe=We,gt=function(Ct){Object(_.a)(Je,Ct);var mt=Object(O.a)(Je);function Je(){var Qe;return Object(Q.a)(this,Je),Qe=mt.apply(this,arguments),Qe.renderInnerMenuItem=function(Oe){var je=Qe.props,St=je.renderMenuItem,bt=je.index;return St(Oe,bt,Qe.props.subMenuKey)},Qe}return Object(I.a)(Je,[{key:"render",value:function(){var Oe=Object(p.a)({},this.props),je=Oe.className,St=je===void 0?"":je,bt=Oe.rootPrefixCls,Dt="".concat(bt,"-item-group-title"),Qt="".concat(bt,"-item-group-list"),_t=Oe.title,Gt=Oe.children;return fe.forEach(function(kt){return delete Oe[kt]}),delete Oe.onClick,delete Oe.direction,M.createElement("li",Object.assign({},Oe,{className:"".concat(St," ").concat(bt,"-item-group")}),M.createElement("div",{className:Dt,title:typeof _t=="string"?_t:void 0},_t),M.createElement("ul",{className:Qt},M.Children.map(Gt,this.renderInnerMenuItem)))}}]),Je}(M.Component);gt.isMenuItemGroup=!0,gt.defaultProps={disabled:!0};var Lt=gt,en=function(mt){var Je=mt.className,Qe=mt.rootPrefixCls,Oe=mt.style;return M.createElement("li",{className:"".concat(Je," ").concat(Qe,"-item-divider"),style:Oe})};en.defaultProps={disabled:!0,className:"",style:{}};var Zt=en,xt=ee.e=Le},"24YM":function(Be,ee,v){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.SensorTabIndex=ee.SensorClassName=ee.SizeSensorId=void 0;var Z="size-sensor-id";ee.SizeSensorId=Z;var Q="size-sensor-object";ee.SensorClassName=Q;var I="-1";ee.SensorTabIndex=I},"24hK":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return Q});class Z{constructor(I){this.element=I,this.next=Z.Undefined,this.prev=Z.Undefined}}Z.Undefined=new Z(void 0);class Q{constructor(){this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Z.Undefined}clear(){let I=this._first;for(;I!==Z.Undefined;){const k=I.next;I.prev=Z.Undefined,I.next=Z.Undefined,I=k}this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}unshift(I){return this._insert(I,!1)}push(I){return this._insert(I,!0)}_insert(I,k){const _=new Z(I);if(this._first===Z.Undefined)this._first=_,this._last=_;else if(k){const M=this._last;this._last=_,_.prev=M,M.next=_}else{const M=this._first;this._first=_,_.next=M,M.prev=_}this._size+=1;let O=!1;return()=>{O||(O=!0,this._remove(_))}}shift(){if(this._first===Z.Undefined)return;{const I=this._first.element;return this._remove(this._first),I}}pop(){if(this._last===Z.Undefined)return;{const I=this._last.element;return this._remove(this._last),I}}_remove(I){if(I.prev!==Z.Undefined&&I.next!==Z.Undefined){const k=I.prev;k.next=I.next,I.next.prev=k}else I.prev===Z.Undefined&&I.next===Z.Undefined?(this._first=Z.Undefined,this._last=Z.Undefined):I.next===Z.Undefined?(this._last=this._last.prev,this._last.next=Z.Undefined):I.prev===Z.Undefined&&(this._first=this._first.next,this._first.prev=Z.Undefined);this._size-=1}*[Symbol.iterator](){let I=this._first;for(;I!==Z.Undefined;)yield I.element,I=I.next}}},"2DNl":function(Be,ee,v){var Z=v("IMiH"),Q=v("loD1"),I=v("59Ip"),k=v("aKvl"),_=v("n1HI"),O=v("hX1E"),M=O.normalizeRadian,T=v("Sj9i"),n=v("hyiK"),p=Z.CMD,a=Math.PI*2,t=1e-4;function A(w,P){return Math.abs(w-P)P&&y>b&&y>h&&y>x||y1&&c(),H=T.cubicAt(P,b,h,x,i[0]),S>1&&(F=T.cubicAt(P,b,h,x,i[1]))),S===2?zP&&x>b&&x>h||x=0&&y<=1){for(var U=0,N=T.quadraticAt(P,b,h,y),S=0;SC||x<-C)return 0;var g=Math.sqrt(C*C-x*x);l[0]=-g,l[1]=g;var y=Math.abs(b-s);if(y<1e-4)return 0;if(y%a<1e-4){b=0,s=a;var U=h?1:-1;return m>=l[0]+w&&m<=l[1]+w?U:0}if(h){var g=b;b=M(s),s=M(g)}else b=M(b),s=M(s);b>s&&(s+=a);for(var N=0,S=0;S<2;S++){var H=l[S];if(H+w>m){var F=Math.atan2(x,H),U=h?1:-1;F<0&&(F=a+F),(F>=b&&F<=s||F+a>=b&&F+a<=s)&&(F>Math.PI/2&&F1&&(C||(h+=n(m,x,g,y,b,s))),U===1&&(m=w[U],x=w[U+1],g=m,y=x);switch(N){case p.M:g=w[U++],y=w[U++],m=g,x=y;break;case p.L:if(C){if(Q.containStroke(m,x,w[U],w[U+1],P,b,s))return!0}else h+=n(m,x,w[U],w[U+1],b,s)||0;m=w[U++],x=w[U++];break;case p.C:if(C){if(I.containStroke(m,x,w[U++],w[U++],w[U++],w[U++],w[U],w[U+1],P,b,s))return!0}else h+=d(m,x,w[U++],w[U++],w[U++],w[U++],w[U],w[U+1],b,s)||0;m=w[U++],x=w[U++];break;case p.Q:if(C){if(k.containStroke(m,x,w[U++],w[U++],w[U],w[U+1],P,b,s))return!0}else h+=f(m,x,w[U++],w[U++],w[U],w[U+1],b,s)||0;m=w[U++],x=w[U++];break;case p.A:var S=w[U++],H=w[U++],F=w[U++],B=w[U++],z=w[U++],K=w[U++];U+=1;var $=1-w[U++],te=Math.cos(z)*F+S,fe=Math.sin(z)*B+H;U>1?h+=n(m,x,te,fe,b,s):(g=te,y=fe);var Ae=(b-S)*B/F+S;if(C){if(_.containStroke(S,H,B,z,z+K,$,P,Ae,s))return!0}else h+=o(S,H,B,z,z+K,$,Ae,s);m=Math.cos(z+K)*F+S,x=Math.sin(z+K)*B+H;break;case p.R:g=m=w[U++],y=x=w[U++];var ce=w[U++],ie=w[U++],te=g+ce,fe=y+ie;if(C){if(Q.containStroke(g,y,te,y,P,b,s)||Q.containStroke(te,y,te,fe,P,b,s)||Q.containStroke(te,fe,g,fe,P,b,s)||Q.containStroke(g,fe,g,y,P,b,s))return!0}else h+=n(te,y,te,fe,b,s),h+=n(g,fe,g,y,b,s);break;case p.Z:if(C){if(Q.containStroke(m,x,g,y,P,b,s))return!0}else h+=n(m,x,g,y,b,s);m=g,x=y;break}}return!C&&!A(x,y)&&(h+=n(m,x,g,y,b,s)||0),h!==0}function E(w,P,C){return u(w,0,!1,P,C)}function R(w,P,C,b){return u(w,P,!0,C,b)}ee.contain=E,ee.containStroke=R},"2fw6":function(Be,ee,v){var Z=v("y+Vt"),Q=Z.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(I,k,_){_&&I.moveTo(k.cx+k.r,k.cy),I.arc(k.cx,k.cy,k.r,0,Math.PI*2,!0)}});Be.exports=Q},"3/fG":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return Q});function Z(I,k){let _;return k.length===0?_=I:_=I.replace(/\{(\d+)\}/g,function(O,M){const T=M[0];return typeof k[T]!="undefined"?k[T]:O}),_}function Q(I,k,..._){return Z(k,_)}},"3C/r":function(Be,ee){var v=function(Q,I){this.image=Q,this.repeat=I,this.type="pattern"};v.prototype.getCanvasPattern=function(Q){return Q.createPattern(this.image,this.repeat||"repeat")};var Z=v;Be.exports=Z},"3CBa":function(Be,ee,v){var Z=v("hydK"),Q=Z.createElement,I=v("bYtY"),k=v("SUKs"),_=v("y+Vt"),O=v("Dagg"),M=v("dqUG"),T=v("DBLp"),n=v("sW+o"),p=v("n6Mw"),a=v("vKoX"),t=v("P47w"),A=t.path,l=t.image,i=t.text;function c(s){return parseInt(s,10)}function d(s){return s instanceof _?A:s instanceof O?l:s instanceof M?i:A}function f(s,h){return h&&s&&h.parentNode!==s}function o(s,h,m){if(f(s,h)&&m){var x=m.nextSibling;x?s.insertBefore(h,x):s.appendChild(h)}}function u(s,h){if(f(s,h)){var m=s.firstChild;m?s.insertBefore(h,m):s.appendChild(h)}}function E(s,h){h&&s&&h.parentNode===s&&s.removeChild(h)}function R(s){return s.__textSvgEl}function w(s){return s.__svgEl}var P=function(s,h,m,x){this.root=s,this.storage=h,this._opts=m=I.extend({},m||{});var g=Q("svg");g.setAttribute("xmlns","http://www.w3.org/2000/svg"),g.setAttribute("version","1.1"),g.setAttribute("baseProfile","full"),g.style.cssText="user-select:none;position:absolute;left:0;top:0;";var y=Q("g");g.appendChild(y);var U=Q("g");g.appendChild(U),this.gradientManager=new n(x,U),this.clipPathManager=new p(x,U),this.shadowManager=new a(x,U);var N=document.createElement("div");N.style.cssText="overflow:hidden;position:relative",this._svgDom=g,this._svgRoot=U,this._backgroundRoot=y,this._viewport=N,s.appendChild(N),N.appendChild(g),this.resize(m.width,m.height),this._visibleList=[]};P.prototype={constructor:P,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var s=this.getViewportRoot();if(s)return{offsetLeft:s.offsetLeft||0,offsetTop:s.offsetTop||0}},refresh:function(){var s=this.storage.getDisplayList(!0);this._paintList(s)},setBackgroundColor:function(s){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var h=Q("rect");h.setAttribute("width",this.getWidth()),h.setAttribute("height",this.getHeight()),h.setAttribute("x",0),h.setAttribute("y",0),h.setAttribute("id",0),h.style.fill=s,this._backgroundRoot.appendChild(h),this._backgroundNode=h},_paintList:function(s){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var h=this._svgRoot,m=this._visibleList,x=s.length,g=[],y;for(y=0;y=0;--U)if(y[U]===g)return!0;return!1}),m}else return null;else return m[0]},resize:function(s,h){var m=this._viewport;m.style.display="none";var x=this._opts;if(s!=null&&(x.width=s),h!=null&&(x.height=h),s=this._getSize(0),h=this._getSize(1),m.style.display="",this._width!==s||this._height!==h){this._width=s,this._height=h;var g=m.style;g.width=s+"px",g.height=h+"px";var y=this._svgDom;y.setAttribute("width",s),y.setAttribute("height",h)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",s),this._backgroundNode.setAttribute("height",h))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(s){var h=this._opts,m=["width","height"][s],x=["clientWidth","clientHeight"][s],g=["paddingLeft","paddingTop"][s],y=["paddingRight","paddingBottom"][s];if(h[m]!=null&&h[m]!=="auto")return parseFloat(h[m]);var U=this.root,N=document.defaultView.getComputedStyle(U);return(U[x]||c(N[m])||c(U.style[m]))-(c(N[g])||0)-(c(N[y])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var s=encodeURIComponent(this._svgDom.outerHTML.replace(/> \r<`));return"data:image/svg+xml;charset=UTF-8,"+s}};function C(s){return function(){k('In SVG mode painter not support method "'+s+'"')}}I.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(s){P.prototype[s]=C(s)});var b=P;Be.exports=b},"3e3G":function(Be,ee,v){var Z=v("bYtY"),Q=v("QuXc"),I=function(_,O,M,T,n){this.x=_==null?.5:_,this.y=O==null?.5:O,this.r=M==null?.5:M,this.type="radial",this.global=n||!1,Q.call(this,T)};I.prototype={constructor:I},Z.inherits(I,Q);var k=I;Be.exports=k},"3gBT":function(Be,ee){var v=2311;function Z(){return v++}Be.exports=Z},"4fz+":function(Be,ee,v){var Z=v("bYtY"),Q=v("1bdT"),I=v("mFDi"),k=function(O){O=O||{},Q.call(this,O);for(var M in O)O.hasOwnProperty(M)&&(this[M]=O[M]);this._children=[],this.__storage=null,this.__dirty=!0};k.prototype={constructor:k,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(O){return this._children[O]},childOfName:function(O){for(var M=this._children,T=0;T=0&&(T.splice(n,0,O),this._doAdd(O))}return this},_doAdd:function(O){O.parent&&O.parent.remove(O),O.parent=this;var M=this.__storage,T=this.__zr;M&&M!==O.__storage&&(M.addToStorage(O),O instanceof k&&O.addChildrenToStorage(M)),T&&T.refresh()},remove:function(O){var M=this.__zr,T=this.__storage,n=this._children,p=Z.indexOf(n,O);return p<0?this:(n.splice(p,1),O.parent=null,T&&(T.delFromStorage(O),O instanceof k&&O.delChildrenFromStorage(T)),M&&M.refresh(),this)},removeAll:function(){var O=this._children,M=this.__storage,T,n;for(n=0;n1e-4){C[0]=f-u,C[1]=o-E,b[0]=f+u,b[1]=o+E;return}if(T[0]=O(R)*u+f,T[1]=_(R)*E+o,n[0]=O(w)*u+f,n[1]=_(w)*E+o,s(C,T,n),h(b,T,n),R=R%M,R<0&&(R=R+M),w=w%M,w<0&&(w=w+M),R>w&&!P?w+=M:RR&&(p[0]=O(g)*u+f,p[1]=_(g)*E+o,s(C,p,C),h(b,p,b))}ee.fromPoints=a,ee.fromLine=t,ee.fromCubic=i,ee.fromQuadratic=c,ee.fromArc=d},"4qgm":function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNlX1ET3kf1uMpgFONKf5axzQ4Uxe6B4BXi7Pyx5yXzGveZBo9th21J4sVX0kpW6CA79DhlnsvZ1xT3QYxZoGgwsDqeO+utUuhRSFsCcgfDtgujnYdRDp/HQaqCa3/Cq2fujChrfMWJqyTwMjM4ehCx6HbgESla1P/TLN8P+7ap+gaLw6Df22r4zFDbMs1fXDtGrXw1Dl6v+5g2Bz8fZ69usVlI+GPsH5C8Mb3SDtbL3BJQOz8KND8HerfBE3czP+nwIl7RVP4J3H4FP/xXdXIJb5ysEo3+DIiXh49GwYLiz/Vv05hjRvTt7CpPR6BFTCWSwUT9B2TBccUZdAns2q2kWvACeD6FaBAoz9QFY+YY98ayIXrgUPLwaytZQ/f260Vp9WfwirJttPn6t62HQF+r5o9Xh4M7MdfsvgrotYfVMmHJv5mf5CkP3N6HxHervy6fAjH+ClmFPXqtaV90P901RtUbU9m80Vu0ceu4s0dPISzoL0Wjt0PzsdaMT/dNnYcN84zYeDwxdoZ6ZEX3BY/D7pqztH5gBBYuCEdFLVgHRbYNJFYroeQtCv4VQu4U9+fRaolYsluwkJuWOMXDTMNizBUbVz1pp7EG1o84dDIvGZ33uSQJRL1r6sp+smArTuztD9mGroNrfYPtXMD72VmlHiS7IacMozhGWodEgvFWMorZO9Jkp8NVrJkRPgn/7Dl9mRB/fArYvNSDIAShSKivRWw+BDv+CrYvhpTaZ25kR/YIKkPwuVL9S1V/4NOz+1lx4qdd6kHo+/gbY7tuxjVo8uhEqN4LPxsH8IZlryOH4qR2+fkzk1FvcOhJuS1P/+3oyvNlLVtZ4jqI21rjWevHy+CIzRTXKCDoEW7f21xhWEY7/EU4Lb13Hie4lex8uIsPr2lsh7BlF0iCniC67+Yjv1W7/SlvYvNA/eyOiN7gF7p0EJStDRgbMTIZlr5tLfEFFeGQtlKgEa96C/3Yxr1u8Eoz5TT1/oZX68QWWy+6EXnOVDj6ohLXVo/OL0PJB9XZ4rhmcOGQ89qAvodZ1kaxaZG2GlP3rEN1L9r5cwVlkeywcmURhtMopossUWw2CTuPg983wVCO/JSGQ6GtnQ9fJ0PA2JdSp4zC9B2z7Apo9oHbgYCtJ3gIgu+XFV8PJozCyDhzZYw5Ks+7wj/+ouoNLZ+2v/dNwy3BlVkyrYwNcD7R/Epa8DEfTzetXuQwKlTB/ftV9cPV96vmMXrD/Rxtjh6jy49fGFiWLXrNlR9fH1PpwOxnMRyMpOuksWutEF/1PP2QGNxEd/bre6q9OqS7Sl+jnw9dD5YZqIfUdOpDoSyfAgM+hVnPYtBBmpSj7+uPfqUO0EH5SJzh+QM2vfF11MKzaRL3mp3WHVdNCg9BzDjTpBAd/hdVvZq0rh8wKdWH/T7BuTmTL8et6WB9G28qN1bkoX0H48jUldw6VbCW6yKSlMACN57NVPqesLuHq6LpQjTpA8nw4vBdG1oJTxyBYdSlaFmrfAOslDNdXqjRR+nqpKrB/B0xoD2I5uXMs5C8EJ4/Bf+6BTR+Ghi8pLzy3HwqH2FmdWICV02Cqb3e26k+sWaJ2laulZHuqIZw+7m8lF2W9fabaN+4L/bayGsvG82wnuo/sr6DRx8Z8IquiE/3b92HnauM+ZEdvN8r5Hd3bo0ftzpUawIej4IORWYluJlmxctBzrtJzZfeW21Qp/9sNr94Gv9mw8ctBU9QnsyLPqzRW+vk370aGsbSSN0+oy6/Anv85Gy6/S51Fnm8BP36VeVwxr47zvcEerwF/+A7Kkc8uZMvYEP1t8rCEBWjcmi1y5KSOrgvU9O9K3fh5FTx3DYzebX0zWqE+NO2i/un29DOn4OtJyhoTSjcOB0iddDtWqINldpfmqdDlVTWKkQVI/h6PRPfu6qkUReNLNC5zHOe/AtFFVxdT4A7fTaeR1aVIGWU7r3MD1GmpdGa9CMGXTVa3hod91hMngCpcUr1d8hWAOYNgcfZqkV5fmsFfqfHEYvNMEzh7Mqsk8Up0L9n7UomzrAIqO7GG5/v4KxA9WCAjot/9MrTom7nmrvUgKpeQ/NBu/zOx5jRPgd0b4fXOkcMlfXT5t1JbxL8kcIzIezVuKT/e3u9AIV/qziPpcHSfcV05V1Ssp56JJejsqdCzmXA7HPg54hnHRHUJnJ3Wj0acQRS2YhHPOrihTvR3HoaVJiGtcuun25mdtLqYCWG4o5dWurxO7u8+MN+9dXOgqELPRpFWR7+RPH0CNn0UHuTiYSg3o3aKqG7dpkDe/OpHJWciJ8sT9WHvloh7dHg29uahpdKODN6zV9tGrZy2uhhN0exmVH5wdvxHnCB6xQYwwsClwQak3irH/oCHylrXbjMUOoxR5D5xGOYOUjZ9KVPvhxMGLrkFi8H9vk1pVqqyWAUXsTzJuUdKWj1I/8F6LiY1coboyYijxcCIZ222o9vtMLt3dCHzs+lQtIzfTff6vnBRGN9ZENOj2OaFbLLz60V2eDM3h2D5u89UB129rJ8LPy2zRkns8TWuUW+e0SHmLHLe9aJfHRNLkdwQy6XV0z41w+wm046OLp6lL/hciXMb0bUUuqIx3RrtMGroO/rbA2C5bycJ1fz0n/5dNdB7MVI7euBYYh8Wgum3oLo/eu/50LhDGEKZVJVbVrGtW5ULG4L4vsguK/7f4kYgRHzyUvPrfOmz+IWQ9oNya5jUGTbMNR9J9y+XGr99p0guZ4BS1RKb6FoKl6PxtePRSHYOo2bL5STRZYFT34cLL/GPphP9mp7Klm23VLtSvQGO7MtMtl3rYPl/rXtJeQ8atoPDe+CZy5Xfe+lqxi66gb31eAuuuFu5NMiPwsyZS9qIeVRcjeUtM7GjP5IqkYmuJVMOD2uz5dMxVkQXX4zrU+GTMVn1Y6eILh58smsXKwt/HgLxVREd0yzCyCpsLRodPTCgQwIwVk2Huq2hvyRuQLkUrPD5hgeS/NLb1A9VyuR7Qvu+6+1kLPnxnTvt7ylRia5NJB8bWYRG9ri5hSK66JEjNiubtRx6vpyQeTeMluhCWHGWajsCxBX1wC/wyi0wYLHxhVH+IuqGtt6NMO46czUiUqKL2e6hZcr3+6flMFZcaH0utve+DtdKMIWmfNIDbeoN2qorefFL2fwxvHqrvUOz0bslYYmewgQ0kq3ftxHWsNrRW/SDu19SO6147gXadqMhetmacP90uNhn/pPDmxDkyF5zFwAh+tCVSr3ZugReusnYGy9Sord7Eto+pq7exzQFccTSi4TadZ+hrualLHoB5g2Ghu1Bbk/FNLhjpXLzPfNnhItBYuroWio9yWBS5KjZaGlFdNl1H14DVS+DYMckK6JLiNm4g+qmT5yPAr0Iu0yA5r7fr4SnSYCC7rgUKsKoTA01H4n2kZA1I1t1JESveR0M/AKSkuCricrfPbjIG+7vE9XOLkU8PsUVWN5GopePaw5/HrQBeogqibaja6lIKowl2Z6B14rosiZNOkNPn+egLKbuZGREdLlN1O3d9W+GRu3VqqbVhfSt/hUuWwuGr4M5Yu0JOiBaxYzWvwn6fKRIKbbm4IuucIku55DHvoFSVeH4/5QXpe72a8TJwB+pPJc2cvh0wv3AKaIHBpP8Vc2L3uv+c6yLSZSRGdELFlc+2ld2Ve6v+m2dV3e9Ri2/EdEf/AzqBYW9eq0QAdYUnTzifWh0zW1FdGnfcSy0GawCMcQnZN82PyXDIbocfMXKUv9GpX9P6QprZhpvuXnyw/V9oO3j6o0SWHaugfdHwPcf58yOLq7Mkvfl7Gl1kJd5SmCKXEI9VC7zgTfMGWbLhZHWjwKc4Uvgb2HOJ7LqT+6AMtVBYkY3zlc6Z6M7lKVBVA697PkeRK8WXfSVW2HzR8ZEl2idayVO0hcN9N37IPbrUBE+wTO3Q3Qh6CPr4OAumPZAZm9Fu0QX4kpuGN1u/1Y/WPqKMY6NO6oY13I11XPxdxdLVKVLlEnx/EawTBE+OBzP7upEuqOL6jVYaBNUJEh72v12Rzeslz1ET0ZsV9HNzK5YNZurFA+ySGIzLlZeqQN6kZvFNbOUbr5rLeivbO+t3xUgV9F6uguzCyO7cwmsZ4foUt/sjdDxOWgzRNmozXxdxMIi6ph+ESX5WIS4gUXyqUjiInEmk4glvcgPVywvuqoidnvxaZcbUb3s2qAipuT8ESrbWDA+kRJdDstP71R5aaRIRjGJhhJT6OHfI1mF820cJ7qWzIPAi1HNKpzGElcZnDbi2AHY8qnahcWRKTAes0RlGPWjOnDJRYocHnOS6CKrvLJFffGmpdOU1eLBT6B8bZW+Y9KdxoiISbPdE+qZ+K+/95i/XpmLlfejvJ0kg4Fe5K02u5/5bi1B1Lc/o8bWiziESQideFgGB1AYzUwIq/vX79tunJHLjgtAODywqOso0bW+tOAcn8X0q9PNeqjI+l/WKPuv6JcSZRTKcUoCduUHcGy/seriBMB2d3QZS4I0RDcV/frMSaWf6iXUNXz5OvD4Jlj6qjoQ60VUoqd+huIV/X+ToOLPx6t0c5ZOZR5ocLPSkSVzgf6GFBVLgrSN/MvDxSy3Et2b4uIca2OeWVdezfKqC2VhCLUIVubFcBdQrx8O0SWUrknQrr3vRxX29t7joYklFz3eNBtBeVfE5UD80MWRS5IVyUYQSQl8M8gt7+oZkfSStU1uJLqWRmHSvUmLwnDmcAav6Hvx+Hc+0ecDr7Kj6bxcbRAdWi6PrOzS8mMTTz29SOxotGF0Yh4V85xTgRayocjbJpTvSzh4yd2G7vsj2dGsAi/C6dugriOqi5bCLDRsuNRFOVu3uYtAhAhETXQtlaFk4HDq1QilcZu5CJggEBXRtWRuwsNH2Z6gyF0+F4EoEYiY6FoqNdFY7X5NOsoVcJvHBIGIiO5LXSFJRGOXMTcmcLiDxCsCYRNd0/CQ6s2n6MsYH6/QuHLFEwLhEz3Z+9VoX/LseILClSWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"500L":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return R});var Z=v("+L6B"),Q=v("2/Rp"),I=v("2qtc"),k=v("kLXV"),_=v("9og8"),O=v("k1fw"),M=v("miYZ"),T=v("tsqr"),n=v("oBTY"),p=v("tJVT"),a=v("DZo9"),t=v("8z0m"),A=v("WmNS"),l=v.n(A),i=v("q1tI"),c=v.n(i),d=v("m3rI"),f=v("wzkS"),o=v("y5JW"),u=v("LtfV"),E=t.a.Dragger;function R(w){var P=[];return w&&w.length>0&&(P=w.map(function(C){return{uid:C.id,id:C.id,name:C.title+o.c+C.filesize,url:C.url,filesize:C.filesize,status:"done",response:{id:C.id}}})),P}ee.b=function(w){var P=w.value,C=w.onChange,b=w.action,s=w.className,h=w.maxSize,m=h===void 0?150:h,x=w.title,g=x===void 0?"\u4E0A\u4F20\u9644\u4EF6":x,y=w.showRemoveModal,U=y===void 0?!1:y,N=w.accept,S=N===void 0?"":N,H=w.additionalText,F=w.isDragger,B=w.number,z=B===void 0?1e3:B,K=w.aloneClear,$=K===void 0?!1:K,te=Object(i.useState)(!1),fe=Object(p.a)(te,2),Ae=fe[0],ce=fe[1],ie=Object(i.useState)(P||[]),ye=Object(p.a)(ie,2),le=ye[0],me=ye[1];Object(i.useEffect)(function(){P&&(me(Object(n.a)(P)),z===(P==null?void 0:P.length)&&ce(!0))},[P]);var se=function(){setTimeout(function(){le.pop(),me(Object(n.a)(le))},500)},ge={multiple:!0,disabled:Ae,accept:S,withCredentials:!0,fileList:le,beforeUpload:function(Me,xe){var Ke=Me.size/1024/1024;return le.concat(xe).length>z?(le.pop(),me(Object(n.a)(le)),T.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(z,"\u4E2A\u6587\u4EF6")),$?Promise.reject():(se(),!1)):!0},action:b||"".concat(d.a.API_SERVER,"/api/attachments.json"),onChange:function(Me){var xe,Ke,et=Object(n.a)(Me.fileList);if(Me.file.status==="done"&&((xe=Me.file)===null||xe===void 0||((Ke=xe.response)===null||Ke===void 0)?void 0:Ke.status)===-1){var he,Se;T.b.error((he=Me.file)===null||he===void 0||((Se=he.response)===null||Se===void 0)?void 0:Se.message);return}et.length>=z?ce(!0):ce(!1),me(Object(n.a)(et)),et=et.map(function(Ue){var Ne;if(Ue!=null&&(Ne=Ue.response)!==null&&Ne!==void 0&&Ne.id){var ct;Ue.url="/api/attachments/".concat(Ue==null||((ct=Ue.response)===null||ct===void 0)?void 0:ct.id)}return Ue.name.indexOf(o.c)===-1&&(Ue.name="".concat(Ue.name).concat(o.c).concat(Object(o.a)(Ue.size))),Object(O.a)({},Ue)}),console.log("info:",Me),C(et)},onRemove:function(){var pe=Object(_.a)(l.a.mark(function xe(Ke){var et;return l.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(et=function(){var Ue=Object(_.a)(l.a.mark(function Ne(){var ct,ft;return l.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(ct=Ke.response?Ke.response.id:Ke.id,!ct){dt.next=8;break}return dt.next=4,Object(f.d)(Ke.response?Ke.response.id:Ke.uid);case 4:return ft=dt.sent,dt.abrupt("return",ft);case 8:return dt.abrupt("return",!0);case 9:case"end":return dt.stop()}},Ne)}));return function(){return Ue.apply(this,arguments)}}(),!U){Se.next=5;break}return Se.abrupt("return",new Promise(function(Ue,Ne){k.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:c.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var ct=Object(_.a)(l.a.mark(function Ot(){var dt;return l.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,et();case 2:dt=jt.sent,T.b.success("\u5220\u9664\u6210\u529F"),Ue(!0);case 5:case"end":return jt.stop()}},Ot)}));function ft(){return ct.apply(this,arguments)}return ft}(),onCancel:function(){return Ue(!1)}})}));case 5:return Se.next=7,et();case 7:return Se.abrupt("return",Se.sent);case 8:case"end":return Se.stop()}},xe)}));function Me(xe){return pe.apply(this,arguments)}return Me}()};function ae(pe){pe.preventDefault(),pe.stopPropagation()}return c.a.createElement("div",{className:"multi-upload ".concat(s||"")},F&&c.a.createElement(E,ge,c.a.createElement("p",{className:"ant-upload-drag-icon"},c.a.createElement(u.a,null)),c.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",c.a.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",m,"MB)"," "),H),!F&&c.a.createElement(t.a,ge,c.a.createElement(Q.a,{style:{width:"108px",height:"32px",background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:"2px",border:"1px solid #BACFFE",color:"#3061D0"},icon:c.a.createElement("i",{className:"iconfont icon-shangchuan3",style:{marginRight:"6px"}}),disabled:Ae},g),c.a.createElement("span",{onClick:ae,style:{marginLeft:10,color:"#FA6400"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",m,"MB)"," ")))}},"55Ip":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return o});var Z=v("Ty5D"),Q=v("dI71"),I=v("q1tI"),k=v.n(I),_=v("YS25"),O=v("17x9"),M=v.n(O),T=v("wx14"),n=v("zLVn"),p=v("9R94"),a=function(s){Object(Q.a)(h,s);function h(){for(var x,g=arguments.length,y=new Array(g),U=0;Uk+l&&A>O+l&&A>T+l&&A>p+l||AI+l&&t>_+l&&t>M+l&&t>n+l||t=0||g.relatedTarget.className.indexOf("".concat(S,"-next"))>=0))return;s.setState({goInputText:""}),N(s.getValidValue())},s.go=function(g){var y=s.state.goInputText;if(y==="")return;(g.keyCode===l.ENTER||g.type==="click")&&(s.setState({goInputText:""}),s.props.quickGo(s.getValidValue()))},s}return Object(_.a)(b,[{key:"getValidValue",value:function(){var h=this.state,m=h.goInputText,x=h.current;return!m||isNaN(m)?x:Number(m)}},{key:"getPageSizeOptions",value:function(){var h=this.props,m=h.pageSize,x=h.pageSizeOptions;return x.some(function(g){return g.toString()===m.toString()})?x:x.concat([m.toString()]).sort(function(g,y){var U=isNaN(Number(g))?0:Number(g),N=isNaN(Number(y))?0:Number(y);return U-N})}},{key:"render",value:function(){var h=this,m=this.props,x=m.pageSize,g=m.locale,y=m.rootPrefixCls,U=m.changeSize,N=m.quickGo,S=m.goButton,H=m.selectComponentClass,F=m.buildOptionText,B=m.selectPrefixCls,z=m.disabled,K=this.state.goInputText,$="".concat(y,"-options"),te=H,fe=null,Ae=null,ce=null;if(!U&&!N)return null;var ie=this.getPageSizeOptions();if(U&&te){var ye=ie.map(function(le,me){return n.a.createElement(te.Option,{key:me,value:le.toString()},(F||h.buildOptionText)(le))});fe=n.a.createElement(te,{disabled:z,prefixCls:B,showSearch:!1,className:"".concat($,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(x||ie[0]).toString(),onChange:this.changeSize,getPopupContainer:function(me){return me.parentNode}},ye)}return N&&(S&&(ce=typeof S=="boolean"?n.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:z,className:"".concat($,"-quick-jumper-button")},g.jump_to_confirm):n.a.createElement("span",{onClick:this.go,onKeyUp:this.go},S)),Ae=n.a.createElement("div",{className:"".concat($,"-quick-jumper")},g.jump_to,n.a.createElement("input",{disabled:z,type:"text",value:K,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),g.page,ce)),n.a.createElement("li",{className:"".concat($)},fe,Ae)}}]),b}(n.a.Component);i.defaultProps={pageSizeOptions:["10","20","50","100"]};var c=i,d=v("N2Kk");function f(){}function o(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function u(P,C,b){return b}function E(P,C,b){var s=typeof P=="undefined"?C.pageSize:P;return Math.floor((b.total-1)/s)+1}var R=function(P){Object(O.a)(b,P);var C=Object(M.a)(b);function b(s){var h;Object(k.a)(this,b),h=C.call(this,s),h.getJumpPrevPage=function(){return Math.max(1,h.state.current-(h.props.showLessItems?3:5))},h.getJumpNextPage=function(){return Math.min(E(void 0,h.state,h.props),h.state.current+(h.props.showLessItems?3:5))},h.getItemIcon=function(U,N){var S=h.props.prefixCls,H=U||n.a.createElement("button",{type:"button","aria-label":N,className:"".concat(S,"-item-link")});return typeof U=="function"&&(H=n.a.createElement(U,Object(I.a)({},h.props))),H},h.savePaginationNode=function(U){h.paginationNode=U},h.isValid=function(U){return o(U)&&U!==h.state.current},h.shouldDisplayQuickJumper=function(){var U=h.props,N=U.showQuickJumper,S=U.pageSize,H=U.total;return H<=S?!1:N},h.handleKeyDown=function(U){(U.keyCode===l.ARROW_UP||U.keyCode===l.ARROW_DOWN)&&U.preventDefault()},h.handleKeyUp=function(U){var N=h.getValidValue(U),S=h.state.currentInputValue;N!==S&&h.setState({currentInputValue:N}),U.keyCode===l.ENTER?h.handleChange(N):U.keyCode===l.ARROW_UP?h.handleChange(N-1):U.keyCode===l.ARROW_DOWN&&h.handleChange(N+1)},h.changePageSize=function(U){var N=h.state.current,S=E(U,h.state,h.props);N=N>S?S:N,S===0&&(N=h.state.current),typeof U=="number"&&("pageSize"in h.props||h.setState({pageSize:U}),"current"in h.props||h.setState({current:N,currentInputValue:N})),h.props.onShowSizeChange(N,U),"onChange"in h.props&&h.props.onChange&&h.props.onChange(N,U)},h.handleChange=function(U){var N=h.props.disabled,S=U;if(h.isValid(S)&&!N){var H=E(void 0,h.state,h.props);S>H?S=H:S<1&&(S=1),"current"in h.props||h.setState({current:S,currentInputValue:S});var F=h.state.pageSize;return h.props.onChange(S,F),S}return h.state.current},h.prev=function(){h.hasPrev()&&h.handleChange(h.state.current-1)},h.next=function(){h.hasNext()&&h.handleChange(h.state.current+1)},h.jumpPrev=function(){h.handleChange(h.getJumpPrevPage())},h.jumpNext=function(){h.handleChange(h.getJumpNextPage())},h.hasPrev=function(){return h.state.current>1},h.hasNext=function(){return h.state.current2?S-2:0),F=2;F=x?y=x:y=Number(m),y}},{key:"getShowSizeChanger",value:function(){var h=this.props,m=h.showSizeChanger,x=h.total,g=h.totalBoundaryShowSizeChanger;return typeof m!="undefined"?m:x>g}},{key:"renderPrev",value:function(h){var m=this.props,x=m.prevIcon,g=m.itemRender,y=g(h,"prev",this.getItemIcon(x,"prev page")),U=!this.hasPrev();return Object(T.isValidElement)(y)?Object(T.cloneElement)(y,{disabled:U}):y}},{key:"renderNext",value:function(h){var m=this.props,x=m.nextIcon,g=m.itemRender,y=g(h,"next",this.getItemIcon(x,"next page")),U=!this.hasNext();return Object(T.isValidElement)(y)?Object(T.cloneElement)(y,{disabled:U}):y}},{key:"render",value:function(){var h=this,m=this.props,x=m.prefixCls,g=m.className,y=m.style,U=m.disabled,N=m.hideOnSinglePage,S=m.total,H=m.locale,F=m.showQuickJumper,B=m.showLessItems,z=m.showTitle,K=m.showTotal,$=m.simple,te=m.itemRender,fe=m.showPrevNextJumpers,Ae=m.jumpPrevIcon,ce=m.jumpNextIcon,ie=m.selectComponentClass,ye=m.selectPrefixCls,le=m.pageSizeOptions,me=this.state,se=me.current,ge=me.pageSize,ae=me.currentInputValue;if(N===!0&&S<=ge)return null;var pe=E(void 0,this.state,this.props),Me=[],xe=null,Ke=null,et=null,he=null,Se=null,Ue=F&&F.goButton,Ne=B?1:2,ct=se-1>0?se-1:0,ft=se+1=Ne*2&&se!==1+2&&(Me[0]=Object(T.cloneElement)(Me[0],{className:"".concat(x,"-item-after-jump-prev")}),Me.unshift(xe)),pe-se>=Ne*2&&se!==pe-2&&(Me[Me.length-1]=Object(T.cloneElement)(Me[Me.length-1],{className:"".concat(x,"-item-before-jump-next")}),Me.push(Ke)),Et!==1&&Me.unshift(et),Rt!==pe&&Me.push(he)}var Ze=null;K&&(Ze=n.a.createElement("li",{className:"".concat(x,"-total-text")},K(S,[S===0?0:(se-1)*ge+1,se*ge>S?S:se*ge])));var ke=!this.hasPrev()||!pe,He=!this.hasNext()||!pe;return n.a.createElement("ul",Object(Z.a)({className:a()(x,g,Object(Q.a)({},"".concat(x,"-disabled"),U)),style:y,unselectable:"unselectable",ref:this.savePaginationNode},Ot),Ze,n.a.createElement("li",{title:z?H.prev_page:null,onClick:this.prev,tabIndex:ke?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(x,"-prev"),Object(Q.a)({},"".concat(x,"-disabled"),ke)),"aria-disabled":ke},this.renderPrev(ct)),Me,n.a.createElement("li",{title:z?H.next_page:null,onClick:this.next,tabIndex:He?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(x,"-next"),Object(Q.a)({},"".concat(x,"-disabled"),He)),"aria-disabled":He},this.renderNext(ft)),n.a.createElement(c,{disabled:U,locale:H,rootPrefixCls:x,selectComponentClass:ie,selectPrefixCls:ye,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:se,pageSize:ge,pageSizeOptions:le,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ue}))}}],[{key:"getDerivedStateFromProps",value:function(h,m){var x={};if("current"in h&&(x.current=h.current,h.current!==m.current&&(x.currentInputValue=x.current)),"pageSize"in h&&h.pageSize!==m.pageSize){var g=m.current,y=E(h.pageSize,m,h);g=g>y?y:g,"current"in h||(x.current=g,x.currentInputValue=g),x.pageSize=h.pageSize}return x}}]),b}(n.a.Component);R.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:f,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:f,locale:d.a,style:{},itemRender:u,totalBoundaryShowSizeChanger:50};var w=R},"6GrX":function(Be,ee,v){var Z=v("mFDi"),Q=v("Xnb7"),I=v("bYtY"),k=I.getContext,_=I.extend,O=I.retrieve2,M=I.retrieve3,T=I.trim,n={},p=0,a=5e3,t=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,A="12px sans-serif",l={};function i(N,S){l[N]=S}function c(N,S){S=S||A;var H=N+":"+S;if(n[H])return n[H];for(var F=(N+"").split(` `),B=0,z=0,K=F.length;za&&(p=0,n={}),p++,n[H]=B,B}function d(N,S,H,F,B,z,K,$){return K?o(N,S,H,F,B,z,K,$):f(N,S,H,F,B,z,$)}function f(N,S,H,F,B,z,K){var $=x(N,S,B,z,K),te=c(N,S);B&&(te+=B[1]+B[3]);var fe=$.outerHeight,Ae=u(0,te,H),ce=E(0,fe,F),ie=new Z(Ae,ce,te,fe);return ie.lineHeight=$.lineHeight,ie}function o(N,S,H,F,B,z,K,$){var te=g(N,{rich:K,truncate:$,font:S,textAlign:H,textPadding:B,textLineHeight:z}),fe=te.outerWidth,Ae=te.outerHeight,ce=u(0,fe,H),ie=E(0,Ae,F);return new Z(ce,ie,fe,Ae)}function u(N,S,H){return H==="right"?N-=S:H==="center"&&(N-=S/2),N}function E(N,S,H){return H==="middle"?N-=S/2:H==="bottom"&&(N-=S),N}function R(N,S,H){var F=S.textPosition,B=S.textDistance,z=H.x,K=H.y;B=B||0;var $=H.height,te=H.width,fe=$/2,Ae="left",ce="top";switch(F){case"left":z-=B,K+=fe,Ae="right",ce="middle";break;case"right":z+=B+te,K+=fe,ce="middle";break;case"top":z+=te/2,K-=B,Ae="center",ce="bottom";break;case"bottom":z+=te/2,K+=$+B,Ae="center";break;case"inside":z+=te/2,K+=fe,Ae="center",ce="middle";break;case"insideLeft":z+=B,K+=fe,ce="middle";break;case"insideRight":z+=te-B,K+=fe,Ae="right",ce="middle";break;case"insideTop":z+=te/2,K+=B,Ae="center";break;case"insideBottom":z+=te/2,K+=$-B,Ae="center",ce="bottom";break;case"insideTopLeft":z+=B,K+=B;break;case"insideTopRight":z+=te-B,K+=B,Ae="right";break;case"insideBottomLeft":z+=B,K+=$-B,ce="bottom";break;case"insideBottomRight":z+=te-B,K+=$-B,Ae="right",ce="bottom";break}return N=N||{},N.x=z,N.y=K,N.textAlign=Ae,N.textVerticalAlign=ce,N}function w(N,S,H){var F={textPosition:N,textDistance:H};return R({},F,S)}function P(N,S,H,F,B){if(!S)return"";var z=(N+"").split(` `);B=C(S,H,F,B);for(var K=0,$=z.length;K<$;K++)z[K]=b(z[K],B);return z.join(` `)}function C(N,S,H,F){F=_({},F),F.font=S;var H=O(H,"...");F.maxIterations=O(F.maxIterations,2);var B=F.minChar=O(F.minChar,0);F.cnCharWidth=c("\u56FD",S);var z=F.ascCharWidth=c("a",S);F.placeholder=O(F.placeholder,"");for(var K=N=Math.max(0,N-1),$=0;$=z;$++)K-=z;var te=c(H,S);return te>K&&(H="",te=0),K=N-te,F.ellipsis=H,F.ellipsisWidth=te,F.contentWidth=K,F.containerWidth=N,F}function b(N,S){var H=S.containerWidth,F=S.font,B=S.contentWidth;if(!H)return"";var z=c(N,F);if(z<=H)return N;for(var K=0;;K++){if(z<=B||K>=S.maxIterations){N+=S.ellipsis;break}var $=K===0?s(N,B,S.ascCharWidth,S.cnCharWidth):z>0?Math.floor(N.length*B/z):0;N=N.substr(0,$),z=c(N,F)}return N===""&&(N=S.placeholder),N}function s(N,S,H,F){for(var B=0,z=0,K=N.length;zAe)N="",K=[];else if(ce!=null)for(var ie=C(ce-(H?H[1]+H[3]:0),S,B.ellipsis,{minChar:B.minChar,placeholder:B.placeholder}),ye=0,le=K.length;yeF&&y(H,N.substring(F,z)),y(H,B[2],B[1]),F=t.lastIndex}Fye)return{lines:[],width:0,height:0};pe.textWidth=c(pe.text,Ke);var he=Me.textWidth,Se=he==null||he==="auto";if(typeof he=="string"&&he.charAt(he.length-1)==="%")pe.percentWidth=he,fe.push(pe),he=0;else{if(Se){he=pe.textWidth;var Ue=Me.textBackgroundColor,Ne=Ue&&Ue.image;Ne&&(Ne=Q.findExistImage(Ne),Q.isImageReady(Ne)&&(he=Math.max(he,Ne.width*et/Ne.height)))}var ct=xe?xe[1]+xe[3]:0;he+=ct;var ft=ie!=null?ie-ge:null;ft!=null&&ftK&&(K=B.line_indent_level));var $={mode:z,parent:B,last_token:B?B.last_token:new A(o.START_BLOCK,""),last_word:B?B.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:K,alignment:0,line_indent_level:B?B.line_indent_level:K,start_line_index:this._output.get_line_number(),ternary_depth:0};return $},H.prototype._reset=function(B){var z=B.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new t(this._options,z),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(m.BlockStatement);var K=new c(B,this._options);return this._tokens=K.tokenize(),B},H.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var B,z=this._reset(this._source_text),K=this._options.eol;this._options.eol==="auto"&&(K=` `,z&&l.lineBreak.test(z||"")&&(K=z.match(l.lineBreak)[0]));for(var $=this._tokens.next();$;)this.handle_token($),this._last_last_text=this._flags.last_token.text,this._flags.last_token=$,$=this._tokens.next();return B=this._output.get_code(K),B},H.prototype.handle_token=function(B,z){B.type===o.START_EXPR?this.handle_start_expr(B):B.type===o.END_EXPR?this.handle_end_expr(B):B.type===o.START_BLOCK?this.handle_start_block(B):B.type===o.END_BLOCK?this.handle_end_block(B):B.type===o.WORD?this.handle_word(B):B.type===o.RESERVED?this.handle_word(B):B.type===o.SEMICOLON?this.handle_semicolon(B):B.type===o.STRING?this.handle_string(B):B.type===o.EQUALS?this.handle_equals(B):B.type===o.OPERATOR?this.handle_operator(B):B.type===o.COMMA?this.handle_comma(B):B.type===o.BLOCK_COMMENT?this.handle_block_comment(B,z):B.type===o.COMMENT?this.handle_comment(B,z):B.type===o.DOT?this.handle_dot(B):B.type===o.EOF?this.handle_eof(B):B.type===o.UNKNOWN?this.handle_unknown(B,z):this.handle_unknown(B,z)},H.prototype.handle_whitespace_and_comments=function(B,z){var K=B.newlines,$=this._options.keep_array_indentation&&y(this._flags.mode);if(B.comments_before)for(var te=B.comments_before.next();te;)this.handle_whitespace_and_comments(te,z),this.handle_token(te,z),te=B.comments_before.next();if($)for(var fe=0;fe0,z);else if(this._options.max_preserve_newlines&&K>this._options.max_preserve_newlines&&(K=this._options.max_preserve_newlines),this._options.preserve_newlines&&K>1){this.print_newline(!1,z);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))},H.prototype.set_mode=function(B){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,B),this._flags=this.create_flags(this._previous_flags,B),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},H.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===m.Statement&&x(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},H.prototype.start_of_object_property=function(){return this._flags.parent.mode===m.ObjectLiteral&&this._flags.mode===m.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"]))},H.prototype.start_of_statement=function(B){var z=!1;return z=z||P(this._flags.last_token,["var","let","const"])&&B.type===o.WORD,z=z||w(this._flags.last_token,"do"),z=z||!(this._flags.parent.mode===m.ObjectLiteral&&this._flags.mode===m.Statement)&&P(this._flags.last_token,F)&&!B.newlines,z=z||w(this._flags.last_token,"else")&&!(w(B,"if")&&!B.comments_before),z=z||this._flags.last_token.type===o.END_EXPR&&(this._previous_flags.mode===m.ForInitializer||this._previous_flags.mode===m.Conditional),z=z||this._flags.last_token.type===o.WORD&&this._flags.mode===m.BlockStatement&&!this._flags.in_case&&!(B.text==="--"||B.text==="++")&&this._last_last_text!=="function"&&B.type!==o.WORD&&B.type!==o.RESERVED,z=z||this._flags.mode===m.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"])),z?(this.set_mode(m.Statement),this.indent(),this.handle_whitespace_and_comments(B,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(B,P(B,["do","for","if","while"])),!0):!1},H.prototype.handle_start_expr=function(B){this.start_of_statement(B)||this.handle_whitespace_and_comments(B);var z=m.Expression;if(B.text==="["){if(this._flags.last_token.type===o.WORD||this._flags.last_token.text===")"){P(this._flags.last_token,d)&&(this._output.space_before_token=!0),this.print_token(B),this.set_mode(z),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}z=m.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())),u(this._flags.last_token.type,[o.START_EXPR,o.END_EXPR,o.WORD,o.OPERATOR,o.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===o.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,z=m.ForInitializer):u(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,z=m.Conditional):u(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&B.whitespace_before===""?this._output.space_before_token=!1:(u(this._flags.last_token.text,d)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===o.EQUALS||this._flags.last_token.type===o.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(B);else if(this._flags.last_token.type===o.WORD){this._output.space_before_token=!1;var K=this._tokens.peek(-3);if(this._options.space_after_named_function&&K){var $=this._tokens.peek(-4);P(K,["async","function"])||K.text==="*"&&P($,["async","function"])?this._output.space_before_token=!0:this._flags.mode===m.ObjectLiteral?(K.text==="{"||K.text===","||K.text==="*"&&($.text==="{"||$.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(B);(this._flags.last_token.type===o.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===m.ObjectLiteral&&u(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===o.START_BLOCK?this.print_newline():(this._flags.last_token.type===o.END_EXPR||this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===o.COMMA)&&this.allow_wrap_or_preserved_newline(B,B.newlines),this.print_token(B),this.set_mode(z),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},H.prototype.handle_end_expr=function(B){for(;this._flags.mode===m.Statement;)this.restore_mode();this.handle_whitespace_and_comments(B),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(B,B.text==="]"&&y(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===o.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(B),this.restore_mode(),x(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===m.Conditional&&(this._previous_flags.mode=m.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},H.prototype.handle_start_block=function(B){this.handle_whitespace_and_comments(B);var z=this._tokens.peek(),K=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===o.END_EXPR?(this.set_mode(m.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(m.BlockStatement):K&&(u(K.text,[":",","])&&u(z.type,[o.STRING,o.WORD,o.RESERVED])||u(z.text,["get","set","..."])&&u(K.type,[o.WORD,o.RESERVED]))?u(this._last_last_text,["class","interface"])&&!u(K.text,[":",","])?this.set_mode(m.BlockStatement):this.set_mode(m.ObjectLiteral):this._flags.last_token.type===o.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(m.BlockStatement):u(this._flags.last_token.type,[o.EQUALS,o.START_EXPR,o.COMMA,o.OPERATOR])||P(this._flags.last_token,["return","throw","import","default"])?this.set_mode(m.ObjectLiteral):this.set_mode(m.BlockStatement),this._flags.last_token&&(P(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var $=!z.comments_before&&z.text==="}",te=$&&this._flags.last_word==="function"&&this._flags.last_token.type===o.END_EXPR;if(this._options.brace_preserve_inline){var fe=0,Ae=null;this._flags.inline_frame=!0;do if(fe+=1,Ae=this._tokens.peek(fe-1),Ae.newlines){this._flags.inline_frame=!1;break}while(Ae.type!==o.EOF&&!(Ae.type===o.END_BLOCK&&Ae.opened===B))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&B.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==o.OPERATOR&&(te||this._flags.last_token.type===o.EQUALS||P(this._flags.last_token,C)&&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===o.START_EXPR||this._flags.last_token.type===o.COMMA)&&((this._flags.last_token.type===o.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(B),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==o.OPERATOR&&this._flags.last_token.type!==o.START_EXPR&&(this._flags.last_token.type===o.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(B),this.indent(),!$&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},H.prototype.handle_end_block=function(B){for(this.handle_whitespace_and_comments(B);this._flags.mode===m.Statement;)this.restore_mode();var z=this._flags.last_token.type===o.START_BLOCK;this._flags.inline_frame&&!z?this._output.space_before_token=!0:this._options.brace_style==="expand"?z||this.print_newline():z||(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(B)},H.prototype.handle_word=function(B){if(B.type===o.RESERVED){if(u(B.text,["set","get"])&&this._flags.mode!==m.ObjectLiteral)B.type=o.WORD;else if(B.text==="import"&&u(this._tokens.peek().text,["(","."]))B.type=o.WORD;else if(u(B.text,["as","from"])&&!this._flags.import_block)B.type=o.WORD;else if(this._flags.mode===m.ObjectLiteral){var z=this._tokens.peek();z.text===":"&&(B.type=o.WORD)}}if(this.start_of_statement(B)?P(this._flags.last_token,["var","let","const"])&&B.type===o.WORD&&(this._flags.declaration_statement=!0):B.newlines&&!U(this._flags.mode)&&(this._flags.last_token.type!==o.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==o.EQUALS&&(this._options.preserve_newlines||!P(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(B),this.print_newline()):this.handle_whitespace_and_comments(B),this._flags.do_block&&!this._flags.do_while)if(w(B,"while")){this._output.space_before_token=!0,this.print_token(B),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&&w(B,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===m.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&P(B,["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(B),this._flags.in_case=!0;return}if((this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.EQUALS||this._flags.last_token.type===o.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(B)),w(B,"function")){(u(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(u(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===o.OPERATOR))&&(!this._output.just_added_blankline()&&!B.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===o.RESERVED||this._flags.last_token.type===o.WORD?P(this._flags.last_token,["get","set","new","export"])||P(this._flags.last_token,F)?this._output.space_before_token=!0:w(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===o.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(U(this._flags.mode)||y(this._flags.mode))||this.print_newline(),this.print_token(B),this._flags.last_word=B.text;return}var K="NONE";if(this._flags.last_token.type===o.END_BLOCK?this._previous_flags.inline_frame?K="SPACE":P(B,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&B.newlines?K="NEWLINE":(K="SPACE",this._output.space_before_token=!0):K="NEWLINE":this._flags.last_token.type===o.SEMICOLON&&this._flags.mode===m.BlockStatement?K="NEWLINE":this._flags.last_token.type===o.SEMICOLON&&U(this._flags.mode)?K="SPACE":this._flags.last_token.type===o.STRING?K="NEWLINE":this._flags.last_token.type===o.RESERVED||this._flags.last_token.type===o.WORD||this._flags.last_token.text==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===m.ObjectLiteral&&u(this._last_last_text,["{",","]))?K="SPACE":this._flags.last_token.type===o.START_BLOCK?this._flags.inline_frame?K="SPACE":K="NEWLINE":this._flags.last_token.type===o.END_EXPR&&(this._output.space_before_token=!0,K="NEWLINE"),P(B,d)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?K="SPACE":K="NEWLINE"),P(B,["else","catch","finally"]))if((!(this._flags.last_token.type===o.END_BLOCK&&this._previous_flags.mode===m.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&B.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var $=this._output.current_line;$.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else K==="NEWLINE"?P(this._flags.last_token,C)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&P(B,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==o.END_EXPR?(this._flags.last_token.type!==o.START_EXPR||!P(B,["var","let","const"]))&&this._flags.last_token.text!==":"&&(w(B,"if")&&w(B.previous,"else")?this._output.space_before_token=!0:this.print_newline()):P(B,d)&&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():K==="SPACE"&&(this._output.space_before_token=!0);B.previous&&(B.previous.type===o.WORD||B.previous.type===o.RESERVED)&&(this._output.space_before_token=!0),this.print_token(B),this._flags.last_word=B.text,B.type===o.RESERVED&&(B.text==="do"?this._flags.do_block=!0:B.text==="if"?this._flags.if_block=!0:B.text==="import"?this._flags.import_block=!0:this._flags.import_block&&w(B,"from")&&(this._flags.import_block=!1))},H.prototype.handle_semicolon=function(B){this.start_of_statement(B)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(B);for(var z=this._tokens.peek();this._flags.mode===m.Statement&&!(this._flags.if_block&&w(z,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(B)},H.prototype.handle_string=function(B){B.text.startsWith("`")&&B.newlines===0&&B.whitespace_before===""&&(B.previous.text===")"||this._flags.last_token.type===o.WORD)||(this.start_of_statement(B)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(B),this._flags.last_token.type===o.RESERVED||this._flags.last_token.type===o.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.EQUALS||this._flags.last_token.type===o.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(B):B.text.startsWith("`")&&this._flags.last_token.type===o.END_EXPR&&(B.previous.text==="]"||B.previous.text===")")&&B.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(B)},H.prototype.handle_equals=function(B){this.start_of_statement(B)||this.handle_whitespace_and_comments(B),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(B),this._output.space_before_token=!0},H.prototype.handle_comma=function(B){this.handle_whitespace_and_comments(B,!0),this.print_token(B),this._output.space_before_token=!0,this._flags.declaration_statement?(U(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(B)):this._flags.mode===m.ObjectLiteral||this._flags.mode===m.Statement&&this._flags.parent.mode===m.ObjectLiteral?(this._flags.mode===m.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(B)},H.prototype.handle_operator=function(B){var z=B.text==="*"&&(P(this._flags.last_token,["function","yield"])||u(this._flags.last_token.type,[o.START_BLOCK,o.COMMA,o.END_BLOCK,o.SEMICOLON])),K=u(B.text,["-","+"])&&(u(this._flags.last_token.type,[o.START_BLOCK,o.START_EXPR,o.EQUALS,o.OPERATOR])||u(this._flags.last_token.text,d)||this._flags.last_token.text===",");if(!this.start_of_statement(B)){var $=!z;this.handle_whitespace_and_comments(B,$)}if(B.text==="*"&&this._flags.last_token.type===o.DOT){this.print_token(B);return}if(B.text==="::"){this.print_token(B);return}if(this._flags.last_token.type===o.OPERATOR&&u(this._options.operator_position,h)&&this.allow_wrap_or_preserved_newline(B),B.text===":"&&this._flags.in_case){this.print_token(B),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==o.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 te=!0,fe=!0,Ae=!1;if(B.text===":"?this._flags.ternary_depth===0?te=!1:(this._flags.ternary_depth-=1,Ae=!0):B.text==="?"&&(this._flags.ternary_depth+=1),!K&&!z&&this._options.preserve_newlines&&u(B.text,f)){var ce=B.text===":",ie=ce&&Ae,ye=ce&&!Ae;switch(this._options.operator_position){case s.before_newline:this._output.space_before_token=!ye,this.print_token(B),(!ce||ie)&&this.allow_wrap_or_preserved_newline(B),this._output.space_before_token=!0;return;case s.after_newline:this._output.space_before_token=!0,!ce||ie?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(B):this._output.space_before_token=!1,this.print_token(B),this._output.space_before_token=!0;return;case s.preserve_newline:ye||this.allow_wrap_or_preserved_newline(B),te=!(this._output.just_added_newline()||ye),this._output.space_before_token=te,this.print_token(B),this._output.space_before_token=!0;return}}if(z){this.allow_wrap_or_preserved_newline(B),te=!1;var le=this._tokens.peek();fe=le&&u(le.type,[o.WORD,o.RESERVED])}else if(B.text==="...")this.allow_wrap_or_preserved_newline(B),te=this._flags.last_token.type===o.START_BLOCK,fe=!1;else if(u(B.text,["--","++","!","~"])||K){if((this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR)&&this.allow_wrap_or_preserved_newline(B),te=!1,fe=!1,B.newlines&&(B.text==="--"||B.text==="++"||B.text==="~")){var me=P(this._flags.last_token,C)&&B.newlines;me&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(me,!0)}this._flags.last_token.text===";"&&U(this._flags.mode)&&(te=!0),this._flags.last_token.type===o.RESERVED?te=!0:this._flags.last_token.type===o.END_EXPR?te=!(this._flags.last_token.text==="]"&&(B.text==="--"||B.text==="++")):this._flags.last_token.type===o.OPERATOR&&(te=u(B.text,["--","-","++","+"])&&u(this._flags.last_token.text,["--","-","++","+"]),u(B.text,["+","-"])&&u(this._flags.last_token.text,["--","++"])&&(fe=!0)),(this._flags.mode===m.BlockStatement&&!this._flags.inline_frame||this._flags.mode===m.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||te,this.print_token(B),this._output.space_before_token=fe},H.prototype.handle_block_comment=function(B,z){if(this._output.raw){this._output.add_raw_token(B),B.directives&&B.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(B.directives){this.print_newline(!1,z),this.print_token(B),B.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!l.newline.test(B.text)&&!B.newlines){this._output.space_before_token=!0,this.print_token(B),this._output.space_before_token=!0;return}else this.print_block_commment(B,z)},H.prototype.print_block_commment=function(B,z){var K=g(B.text),$,te=!1,fe=!1,Ae=B.whitespace_before,ce=Ae.length;if(this.print_newline(!1,z),this.print_token_line_indentation(B),this._output.add_token(K[0]),this.print_newline(!1,z),K.length>1){for(K=K.slice(1),te=N(K,"*"),fe=S(K,Ae),te&&(this._flags.alignment=1),$=0;$=0;l--)if(this.__items[l].match(A))return!0;return!1},p.prototype.set_indent=function(A,l){this.is_empty()&&(this.__indent_count=A||0,this.__alignment_count=l||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.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)},p.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},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var A=this.__parent.current_line;return A.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),A.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),A.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,A.__items[0]===" "&&(A.__items.splice(0,1),A.__character_count-=1),!0}return!1},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(A){this.__items.push(A);var l=A.lastIndexOf(` `);l!==-1?this.__character_count=A.length-l:this.__character_count+=A.length},p.prototype.pop=function(){var A=null;return this.is_empty()||(A=this.__items.pop(),this.__character_count-=A.length),A},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.prototype.toString=function(){var A="";return this.is_empty()?this.__parent.indent_empty_lines&&(A=this.__parent.get_indent_string(this.__indent_count)):(A=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),A+=this.__items.join("")),A};function a(A,l){this.__cache=[""],this.__indent_size=A.indent_size,this.__indent_string=A.indent_char,A.indent_with_tabs||(this.__indent_string=new Array(A.indent_size+1).join(A.indent_char)),l=l||"",A.indent_level>0&&(l=new Array(A.indent_level+1).join(this.__indent_string)),this.__base_string=l,this.__base_string_length=l.length}a.prototype.get_indent_size=function(A,l){var i=this.__base_string_length;return l=l||0,A<0&&(i=0),i+=A*this.__indent_size,i+=l,i},a.prototype.get_indent_string=function(A,l){var i=this.__base_string;return l=l||0,A<0&&(A=0,i=""),l+=A*this.__indent_size,this.__ensure_cache(l),i+=this.__cache[l],i},a.prototype.__ensure_cache=function(A){for(;A>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var A=this.__cache.length,l=0,i="";this.__indent_size&&A>=this.__indent_size&&(l=Math.floor(A/this.__indent_size),A-=l*this.__indent_size,i=new Array(l+1).join(this.__indent_string)),A&&(i+=new Array(A+1).join(" ")),this.__cache.push(i)};function t(A,l){this.__indent_cache=new a(A,l),this.raw=!1,this._end_with_newline=A.end_with_newline,this.indent_size=A.indent_size,this.wrap_line_length=A.wrap_line_length,this.indent_empty_lines=A.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},t.prototype.get_line_number=function(){return this.__lines.length},t.prototype.get_indent_string=function(A,l){return this.__indent_cache.get_indent_string(A,l)},t.prototype.get_indent_size=function(A,l){return this.__indent_cache.get_indent_size(A,l)},t.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},t.prototype.add_new_line=function(A){return this.is_empty()||!A&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},t.prototype.get_code=function(A){this.trim(!0);var l=this.current_line.pop();l&&(l[l.length-1]===` `&&(l=l.replace(/\n+$/g,"")),this.current_line.push(l)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(` `);return A!==` `&&(i=i.replace(/[\n]/g,A)),i},t.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},t.prototype.set_indent=function(A,l){return A=A||0,l=l||0,this.next_line.set_indent(A,l),this.__lines.length>1?(this.current_line.set_indent(A,l),!0):(this.current_line.set_indent(),!1)},t.prototype.add_raw_token=function(A){for(var l=0;l1&&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},t.prototype.just_added_newline=function(){return this.current_line.is_empty()},t.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},t.prototype.ensure_empty_line_above=function(A,l){for(var i=this.__lines.length-2;i>=0;){var c=this.__lines[i];if(c.is_empty())break;if(c.item(0).indexOf(A)!==0&&c.item(-1)!==l){this.__lines.splice(i+1,0,new p(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},n.exports.Output=t},function(n){function p(a,t,A,l){this.type=a,this.text=t,this.comments_before=null,this.newlines=A||0,this.whitespace_before=l||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}n.exports.Token=p},function(n,p){var a="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",t="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",A="\\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",l="\\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",i="(?:\\\\u[0-9a-fA-F]{4}|["+a+A+"])",c="(?:\\\\u[0-9a-fA-F]{4}|["+t+A+l+"])*";p.identifier=new RegExp(i+c,"g"),p.identifierStart=new RegExp(i),p.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+t+A+l+"])+");var d=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;p.newline=/[\n\r\u2028\u2029]/,p.lineBreak=new RegExp(`\r |`+p.newline.source),p.allLineBreaks=new RegExp(p.lineBreak.source,"g")},function(n,p,a){var t=a(6).Options,A=["before-newline","after-newline","preserve-newline"];function l(i){t.call(this,i,"js");var c=this.raw_options.brace_style||null;c==="expand-strict"?this.raw_options.brace_style="expand":c==="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 d=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var f=0;f>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),b=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";b=b.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),b="\\?\\.(?!\\d) "+b,b=b.replace(/ /g,"|");var s=new RegExp(b),h="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),m=h.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),x=new RegExp("^(?:"+m.join("|")+")$"),g,y=function(N,S){A.call(this,N,S),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var H=new d(this._input),F=new f(this._input).read_options(this._options);this.__patterns={template:F,identifier:F.starting_with(c.identifier).matching(c.identifierMatch),number:H.matching(R),punct:H.matching(s),comment:H.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:H.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:H.matching(//),include:H.starting_with(/#include/).until_after(c.lineBreak),shebang:H.starting_with(/#!/).until_after(c.lineBreak),xml:H.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 A,y.prototype._is_comment=function(N){return N.type===u.COMMENT||N.type===u.BLOCK_COMMENT||N.type===u.UNKNOWN},y.prototype._is_opening=function(N){return N.type===u.START_BLOCK||N.type===u.START_EXPR},y.prototype._is_closing=function(N,S){return(N.type===u.END_BLOCK||N.type===u.END_EXPR)&&S&&(N.text==="]"&&S.text==="["||N.text===")"&&S.text==="("||N.text==="}"&&S.text==="{")},y.prototype._reset=function(){g=!1},y.prototype._get_next_token=function(N,S){var H=null;this._readWhitespace();var F=this._input.peek();return F===null?this._create_token(u.EOF,""):(H=H||this._read_non_javascript(F),H=H||this._read_string(F),H=H||this._read_word(N),H=H||this._read_singles(F),H=H||this._read_comment(F),H=H||this._read_regexp(F,N),H=H||this._read_xml(F,N),H=H||this._read_punctuation(),H=H||this._create_token(u.UNKNOWN,this._input.next()),H)},y.prototype._read_word=function(N){var S;if(S=this.__patterns.identifier.read(),S!=="")return S=S.replace(c.allLineBreaks,` `),!(N.type===u.DOT||N.type===u.RESERVED&&(N.text==="set"||N.text==="get"))&&x.test(S)?(S==="in"||S==="of")&&(N.type===u.WORD||N.type===u.STRING)?this._create_token(u.OPERATOR,S):this._create_token(u.RESERVED,S):this._create_token(u.WORD,S);if(S=this.__patterns.number.read(),S!=="")return this._create_token(u.WORD,S)},y.prototype._read_singles=function(N){var S=null;return N==="("||N==="["?S=this._create_token(u.START_EXPR,N):N===")"||N==="]"?S=this._create_token(u.END_EXPR,N):N==="{"?S=this._create_token(u.START_BLOCK,N):N==="}"?S=this._create_token(u.END_BLOCK,N):N===";"?S=this._create_token(u.SEMICOLON,N):N==="."&&P.test(this._input.peek(1))?S=this._create_token(u.DOT,N):N===","&&(S=this._create_token(u.COMMA,N)),S&&this._input.next(),S},y.prototype._read_punctuation=function(){var N=this.__patterns.punct.read();if(N!=="")return N==="="?this._create_token(u.EQUALS,N):N==="?."?this._create_token(u.DOT,N):this._create_token(u.OPERATOR,N)},y.prototype._read_non_javascript=function(N){var S="";if(N==="#"){if(this._is_first_token()&&(S=this.__patterns.shebang.read(),S))return this._create_token(u.UNKNOWN,S.trim()+` `);if(S=this.__patterns.include.read(),S)return this._create_token(u.UNKNOWN,S.trim()+` `);N=this._input.next();var H="#";if(this._input.hasNext()&&this._input.testChar(w)){do N=this._input.next(),H+=N;while(this._input.hasNext()&&N!=="#"&&N!=="=");return N==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(H+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(H+="{}",this._input.next(),this._input.next())),this._create_token(u.WORD,H)}this._input.back()}else if(N==="<"&&this._is_first_token()){if(S=this.__patterns.html_comment_start.read(),S){for(;this._input.hasNext()&&!this._input.testChar(c.newline);)S+=this._input.next();return g=!0,this._create_token(u.COMMENT,S)}}else if(g&&N==="-"&&(S=this.__patterns.html_comment_end.read(),S))return g=!1,this._create_token(u.COMMENT,S);return null},y.prototype._read_comment=function(N){var S=null;if(N==="/"){var H="";if(this._input.peek(1)==="*"){H=this.__patterns.block_comment.read();var F=E.get_directives(H);F&&F.ignore==="start"&&(H+=E.readIgnored(this._input)),H=H.replace(c.allLineBreaks,` `),S=this._create_token(u.BLOCK_COMMENT,H),S.directives=F}else this._input.peek(1)==="/"&&(H=this.__patterns.comment.read(),S=this._create_token(u.COMMENT,H))}return S},y.prototype._read_string=function(N){if(N==="`"||N==="'"||N==='"'){var S=this._input.next();return this.has_char_escapes=!1,N==="`"?S+=this._read_string_recursive("`",!0,"${"):S+=this._read_string_recursive(N),this.has_char_escapes&&this._options.unescape_strings&&(S=U(S)),this._input.peek()===N&&(S+=this._input.next()),S=S.replace(c.allLineBreaks,` `),this._create_token(u.STRING,S)}return null},y.prototype._allow_regexp_or_xml=function(N){return N.type===u.RESERVED&&o(N.text,["return","case","throw","else","do","typeof","yield"])||N.type===u.END_EXPR&&N.text===")"&&N.opened.previous.type===u.RESERVED&&o(N.opened.previous.text,["if","while","for"])||o(N.type,[u.COMMENT,u.START_EXPR,u.START_BLOCK,u.START,u.END_BLOCK,u.OPERATOR,u.EQUALS,u.EOF,u.SEMICOLON,u.COMMA])},y.prototype._read_regexp=function(N,S){if(N==="/"&&this._allow_regexp_or_xml(S)){for(var H=this._input.next(),F=!1,B=!1;this._input.hasNext()&&(F||B||this._input.peek()!==N)&&!this._input.testChar(c.newline);)H+=this._input.peek(),F?F=!1:(F=this._input.peek()==="\\",this._input.peek()==="["?B=!0:this._input.peek()==="]"&&(B=!1)),this._input.next();return this._input.peek()===N&&(H+=this._input.next(),H+=this._input.read(c.identifier)),this._create_token(u.STRING,H)}return null},y.prototype._read_xml=function(N,S){if(this._options.e4x&&N==="<"&&this._allow_regexp_or_xml(S)){var H="",F=this.__patterns.xml.read_match();if(F){for(var B=F[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),z=B.indexOf("{")===0,K=0;F;){var $=!!F[1],te=F[2],fe=!!F[F.length-1]||te.slice(0,8)==="![CDATA[";if(!fe&&(te===B||z&&te.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&($?--K:++K),H+=F[0],K<=0)break;F=this.__patterns.xml.read_match()}return F||(H+=this._input.match(/[\s\S]*/g)[0]),H=H.replace(c.allLineBreaks,` `),this._create_token(u.STRING,H)}}return null};function U(N){for(var S="",H=0,F=new t(N),B=null;F.hasNext();)if(B=F.match(/([\s]|[^\\]|\\\\)+/g),B&&(S+=B[0]),F.peek()==="\\"){if(F.next(),F.peek()==="x")B=F.match(/x([0-9A-Fa-f]{2})/g);else if(F.peek()==="u")B=F.match(/u([0-9A-Fa-f]{4})/g);else{S+="\\",F.hasNext()&&(S+=F.next());continue}if(!B)return N;if(H=parseInt(B[1],16),H>126&&H<=255&&B[0].indexOf("x")===0)return N;if(H>=0&&H<32){S+="\\"+B[0];continue}else H===34||H===39||H===92?S+="\\"+String.fromCharCode(H):S+=String.fromCharCode(H)}return S}y.prototype._read_string_recursive=function(N,S,H){var F,B;N==="'"?B=this.__patterns.single_quote:N==='"'?B=this.__patterns.double_quote:N==="`"?B=this.__patterns.template_text:N==="}"&&(B=this.__patterns.template_expression);for(var z=B.read(),K="";this._input.hasNext();){if(K=this._input.next(),K===N||!S&&c.newline.test(K)){this._input.back();break}else K==="\\"&&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(),K+=this._input.next()):H&&(H==="${"&&K==="$"&&this._input.peek()==="{"&&(K+=this._input.next()),H===K&&(N==="`"?K+=this._read_string_recursive("}",S,"`"):K+=this._read_string_recursive("`",S,"${"),this._input.hasNext()&&(K+=this._input.next())));K+=B.read(),z+=K}return z},n.exports.Tokenizer=y,n.exports.TOKEN=u,n.exports.positionable_operators=C.slice(),n.exports.line_starters=h.slice()},function(n){var p=RegExp.prototype.hasOwnProperty("sticky");function a(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position=0&&t=0&&A=t.length&&this.__input.substring(A-t.length,A).toLowerCase()===t},n.exports.InputScanner=a},function(n,p,a){var t=a(8).InputScanner,A=a(3).Token,l=a(10).TokenStream,i=a(11).WhitespacePattern,c={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},d=function(f,o){this._input=new t(f),this._options=o||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};d.prototype.tokenize=function(){this._input.restart(),this.__tokens=new l,this._reset();for(var f,o=new A(c.START,""),u=null,E=[],R=new l;o.type!==c.EOF;){for(f=this._get_next_token(o,u);this._is_comment(f);)R.add(f),f=this._get_next_token(o,u);R.isEmpty()||(f.comments_before=R,R=new l),f.parent=u,this._is_opening(f)?(E.push(u),u=f):u&&this._is_closing(f,u)&&(f.opened=u,u.closed=f,u=E.pop(),f.parent=u),f.previous=o,o.next=f,this.__tokens.add(f),o=f}return this.__tokens},d.prototype._is_first_token=function(){return this.__tokens.isEmpty()},d.prototype._reset=function(){},d.prototype._get_next_token=function(f,o){this._readWhitespace();var u=this._input.read(/.+/g);return u?this._create_token(c.RAW,u):this._create_token(c.EOF,"")},d.prototype._is_comment=function(f){return!1},d.prototype._is_opening=function(f){return!1},d.prototype._is_closing=function(f,o){return!1},d.prototype._create_token=function(f,o){var u=new A(f,o,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return u},d.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},n.exports.Tokenizer=d,n.exports.TOKEN=c},function(n){function p(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}p.prototype.restart=function(){this.__position=0},p.prototype.isEmpty=function(){return this.__tokens_length===0},p.prototype.hasNext=function(){return this.__position=0&&a/),erb:d.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:d.starting_with(/{%/).until_after(/%}/),django_value:d.starting_with(/{{/).until_after(/}}/),django_comment:d.starting_with(/{#/).until_after(/#}/),smarty:d.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:d.starting_with(/{\*/).until_after(/\*}/),smarty_literal:d.starting_with(/{literal}/).until_after(/{\/literal}/)}}l.prototype=new t,l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){this.__set_templated_pattern()},l.prototype.disable=function(i){var c=this._create();return c._disabled[i]=!0,c._update(),c},l.prototype.read_options=function(i){var c=this._create();for(var d in A)c._disabled[d]=i.templating.indexOf(d)===-1;return c._update(),c},l.prototype.exclude=function(i){var c=this._create();return c._excluded[i]=!0,c._update(),c},l.prototype.read=function(){var i="";this._match_pattern?i=this._input.read(this._starting_pattern):i=this._input.read(this._starting_pattern,this.__template_pattern);for(var c=this._read_template();c;)this._match_pattern?c+=this._input.read(this._match_pattern):c+=this._input.readUntil(this.__template_pattern),i+=c,c=this._read_template();return this._until_after&&(i+=this._input.readUntilAfter(this._until_pattern)),i},l.prototype.__set_templated_pattern=function(){var i=[];this._disabled.php||i.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||i.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||i.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(i.push(this.__patterns.django._starting_pattern.source),i.push(this.__patterns.django_value._starting_pattern.source),i.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||i.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&i.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+i.join("|")+")")},l.prototype._read_template=function(){var i="",c=this._input.peek();if(c==="<"){var d=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&d==="?"&&(i=i||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&d==="%"&&(i=i||this.__patterns.erb.read())}else c==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(i=i||this.__patterns.handlebars_comment.read(),i=i||this.__patterns.handlebars_unescaped.read(),i=i||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(i=i||this.__patterns.django_value.read()),this._excluded.django||(i=i||this.__patterns.django_comment.read(),i=i||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(i=i||this.__patterns.smarty_comment.read(),i=i||this.__patterns.smarty_literal.read(),i=i||this.__patterns.smarty.read()));return i},n.exports.TemplatablePattern=l}],O={};function M(n){var p=O[n];if(p!==void 0)return p.exports;var a=O[n]={exports:{}};return _[n](a,a.exports,M),a.exports}var T=M(0);I=T})();var k=I;!(Z=[],Q=function(){return{js_beautify:k}}.apply(ee,Z),Q!==void 0&&(Be.exports=Q))})()},"6eGT":function(Be,ee,v){"use strict";function Z(Q){return null}ee.a=Z},"6fms":function(Be,ee,v){var Z=v("SUKs"),Q=v("06Qe"),I=v("bYtY"),k=I.each;function _(n){return parseInt(n,10)}function O(n,p){Q.initVML(),this.root=n,this.storage=p;var a=document.createElement("div"),t=document.createElement("div");a.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",t.style.cssText="position:absolute;left:0;top:0;",n.appendChild(a),this._vmlRoot=t,this._vmlViewport=a,this.resize();var A=p.delFromStorage,l=p.addToStorage;p.delFromStorage=function(i){A.call(p,i),i&&(i.onRemove&&i.onRemove(t))},p.addToStorage=function(i){i.onAdd&&i.onAdd(t),l.call(p,i)},this._firstPaint=!0}O.prototype={constructor:O,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var n=this.getViewportRoot();if(n)return{offsetLeft:n.offsetLeft||0,offsetTop:n.offsetTop||0}},refresh:function(){var n=this.storage.getDisplayList(!0,!0);this._paintList(n)},_paintList:function(n){for(var p=this._vmlRoot,a=0;afunction(){const P=Array.prototype.slice.call(arguments,0);return u(w,P)};let R={};for(const w of o)R[w]=E(w);return R}function d(o){return o===null?void 0:o}function f(o,u="Unreachable"){throw new Error(u)}},"7Cbv":function(Be,ee,v){"use strict";var Z=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Q=new Uint8Array(16);function I(){if(!Z)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Z(Q)}var k=/^(?:[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 _(A){return typeof A=="string"&&k.test(A)}for(var O=_,M=[],T=0;T<256;++T)M.push((T+256).toString(16).substr(1));function n(A){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=(M[A[l+0]]+M[A[l+1]]+M[A[l+2]]+M[A[l+3]]+"-"+M[A[l+4]]+M[A[l+5]]+"-"+M[A[l+6]]+M[A[l+7]]+"-"+M[A[l+8]]+M[A[l+9]]+"-"+M[A[l+10]]+M[A[l+11]]+M[A[l+12]]+M[A[l+13]]+M[A[l+14]]+M[A[l+15]]).toLowerCase();if(!O(i))throw TypeError("Stringified UUID is invalid");return i}var p=n;function a(A,l,i){A=A||{};var c=A.random||(A.rng||I)();if(c[6]=c[6]&15|64,c[8]=c[8]&63|128,l){i=i||0;for(var d=0;d<16;++d)l[i+d]=c[d];return l}return p(c)}var t=ee.a=a},"7SHv":function(Be,ee,v){var Z=v("LPTA"),Q=Z.devicePixelRatio,I=v("bYtY"),k=v("SUKs"),_=v("mFDi"),O=v("BPZU"),M=v("Xmg4"),T=v("mLcG"),n=v("Dagg"),p=v("ItGF"),a=1e5,t=314159,A=.01,l=.001;function i(C){return parseInt(C,10)}function c(C){return C?C.__builtin__?!0:!(typeof C.resize!="function"||typeof C.refresh!="function"):!1}var d=new _(0,0,0,0),f=new _(0,0,0,0);function o(C,b,s){return d.copy(C.getBoundingRect()),C.transform&&d.applyTransform(C.transform),f.width=b,f.height=s,!d.intersect(f)}function u(C,b){if(C===b)return!1;if(!C||!b||C.length!==b.length)return!0;for(var s=0;s=0&&s.splice(h,1),C.__hoverMir=null},clearHover:function(C){for(var b=this._hoverElements,s=0;s15)break}}x.__drawIndex=K,x.__drawIndex0&&C>h[0]){for(g=0;gC);g++);x=s[h[g]]}if(h.splice(g+1,0,C),s[C]=b,!b.virtual)if(x){var U=x.dom;U.nextSibling?y.insertBefore(b.dom,U.nextSibling):y.appendChild(b.dom)}else y.firstChild?y.insertBefore(b.dom,y.firstChild):y.appendChild(b.dom)},eachLayer:function(C,b){var s=this._zlevelList,h,m;for(m=0;m0?A:0),this._needsManuallyCompositing),U.__builtin__||k("ZLevel "+y+" has been used by unkown layer "+U.id),U!==m&&(U.__used=!0,U.__startIndex!==s&&(U.__dirty=!0),U.__startIndex=s,U.incremental?U.__drawIndex=-1:U.__drawIndex=s,b(s),m=U),h.__dirty&&(U.__dirty=!0,U.incremental&&U.__drawIndex<0&&(U.__drawIndex=s))}b(s),this.eachBuiltinLayer(function(N,S){!N.__used&&N.getElementCount()>0&&(N.__dirty=!0,N.__startIndex=N.__endIndex=N.__drawIndex=0),N.__dirty&&N.__drawIndex<0&&(N.__drawIndex=N.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(C){C.clear()},setBackgroundColor:function(C){this._backgroundColor=C},configLayer:function(C,b){if(b){var s=this._layerConfig;s[C]?I.merge(s[C],b,!0):s[C]=b;for(var h=0;h0&&arguments[0]!==void 0?arguments[0]:[],c=new Map;function d(f){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(f||[]).forEach(function(u){var E=u.key,R=u.children;Object(_.a)(E!=null,"Tree node must have a certain key: [".concat(o).concat(E,"]"));var w=String(E);Object(_.a)(!c.has(w)||E===null||E===void 0,"Same 'key' exist in the Tree: ".concat(w)),c.set(w,!0),d(R,"".concat(o).concat(w," > "))})}d(i)}function n(i){function c(d){var f=Object(k.a)(d);return f.map(function(o){if(!Object(O.i)(o))return Object(_.a)(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var u=o.key,E=o.props,R=E.children,w=Object(I.a)(E,["children"]),P=Object(Q.a)({key:u},w),C=c(R);return C.length&&(P.children=C),P}).filter(function(o){return o})}return c(i)}function p(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=new Set(c===!0?[]:c),f=[];function o(u){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(R,w){var P=Object(O.h)(E?E.pos:"0",w),C=M(R.key,P),b=Object(Q.a)(Object(Q.a)({},R),{},{parent:E,pos:P,children:null,data:R,isStart:[].concat(Object(Z.a)(E?E.isStart:[]),[w===0]),isEnd:[].concat(Object(Z.a)(E?E.isEnd:[]),[w===u.length-1])});return f.push(b),c===!0||d.has(C)?b.children=o(R.children||[],b):b.children=[],b})}return o(i),f}function a(i,c,d){var f;d?typeof d=="string"?f=function(E){return E[d]}:typeof d=="function"&&(f=function(E){return d(E)}):f=function(E,R){return M(E.key,R)};function o(u,E,R){var w=u?u.children:i,P=u?Object(O.h)(R.pos,E):"0";if(u){var C=f(u,P),b={node:u,index:E,pos:P,key:C,parentPos:R.node?R.pos:null,level:R.level+1};c(b)}w&&w.forEach(function(s,h){o(s,h,{node:u,pos:P,level:R?R.level+1:-1})})}o(null)}function t(i){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=c.initWrapper,f=c.processEntity,o=c.onProcessFinished,u=arguments.length>2?arguments[2]:void 0,E={},R={},w={posEntities:E,keyEntities:R};return d&&(w=d(w)||w),a(i,function(P){var C=P.node,b=P.index,s=P.pos,h=P.key,m=P.parentPos,x=P.level,g={node:C,index:b,key:h,pos:s,level:x},y=M(h,s);E[s]=g,R[y]=g,g.parent=E[m],g.parent&&(g.parent.children=g.parent.children||[],g.parent.children.push(g)),f&&f(g,w)},u),o&&o(w),w}function A(i,c){var d=c.expandedKeys,f=c.selectedKeys,o=c.loadedKeys,u=c.loadingKeys,E=c.checkedKeys,R=c.halfCheckedKeys,w=c.dragOverNodeKey,P=c.dropPosition,C=c.keyEntities,b=C[i],s={eventKey:i,expanded:d.indexOf(i)!==-1,selected:f.indexOf(i)!==-1,loaded:o.indexOf(i)!==-1,loading:u.indexOf(i)!==-1,checked:E.indexOf(i)!==-1,halfChecked:R.indexOf(i)!==-1,pos:String(b?b.pos:""),dragOver:w===i&&P===0,dragOverGapTop:w===i&&P===-1,dragOverGapBottom:w===i&&P===1};return s}function l(i){var c=i.data,d=i.expanded,f=i.selected,o=i.checked,u=i.loaded,E=i.loading,R=i.halfChecked,w=i.dragOver,P=i.dragOverGapTop,C=i.dragOverGapBottom,b=i.pos,s=i.active,h=Object(Q.a)(Object(Q.a)({},c),{},{expanded:d,selected:f,checked:o,loaded:u,loading:E,halfChecked:R,dragOver:w,dragOverGapTop:P,dragOverGapBottom:C,pos:b,active:s});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Object(_.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),i}}),h}},"8Bcu":function(Be,ee,v){Be.exports={flex_box_center:"flex_box_center___3isCS",flex_space_between:"flex_space_between___1zEgQ",flex_box_vertical_center:"flex_box_vertical_center___2IyXM",flex_box_center_end:"flex_box_center_end___1r0jY",flex_box_column:"flex_box_column___2SHBj",rightWrap:"rightWrap___2XCk6",qrCode:"qrCode___3q9Z0",cardTop:"cardTop___2h9UR",cardTop2:"cardTop2___3KQ3O",card:"card___1aOV1",flexRow:"flexRow___DeBf7",flexRowAbout:"flexRowAbout___3sD2f",skillWrap:"skillWrap___pwM-3",skillTopWrap:"skillTopWrap___2oSn4",skillContentWrap:"skillContentWrap___239Us",skillContentWrapMin:"skillContentWrapMin___2KWd4",skillContentWrapMax:"skillContentWrapMax___NVKFP",skillContentIcon:"skillContentIcon___5mU6F",skillContentIconNoStatus:"skillContentIconNoStatus___1_V1l",skillExpandAllWrap:"skillExpandAllWrap___1HSf6",skillExpandAllContent:"skillExpandAllContent___3kY9W",memberItem:"memberItem___3cgRI",radius:"radius___2fxUa",memberItemContent:"memberItemContent___19hpK",directionItemWrap:"directionItemWrap___3Zm3f",groupActionWrap:"groupActionWrap___N0Epv",divabout:"divabout___psa-7",classButton:"classButton___30JJg",bg28e:"bg28e___2DyZD",bgGray:"bgGray___2PZB0",price:"price___2sFWj",li1:"li1___2y74c",discounts:"discounts___2JS39",realPrice:"realPrice___2kTeg",lineationPrice:"lineationPrice___2LeZ4",li2:"li2___2rpKJ"}},"8EBN":function(Be,ee,v){(function(Z){Z(v("VrN/"))})(function(Z){"use strict";Z.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 Q=0;Q-1&&k.substring(M+1,k.length);if(T)return Z.findModeByExtension(T)},Z.findModeByName=function(k){k=k.toLowerCase();for(var _=0;_=F&&Nz?"true":"false","aria-posinset":z+1,"aria-setsize":K,tabIndex:S?-1:0},T.a.createElement("div",{className:"".concat(H,"-first")},te),T.a.createElement("div",{className:"".concat(H,"-second")},te)));return B&&(fe=B(fe,this.props)),fe}}]),m}(T.a.Component);function o(s,h){var m=Object.keys(s);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(s);h&&(x=x.filter(function(g){return Object.getOwnPropertyDescriptor(s,g).enumerable})),m.push.apply(m,x)}return m}function u(s){for(var h=1;h0&&!K||N===t.a.RIGHT&&$>0&&K?(F?$-=.5:$-=1,g.changeValue($),U.preventDefault()):N===t.a.LEFT&&$K/2||!H&&y-z0)){Pe.next=20;break}return Pe.next=18,Promise.all(ke);case 18:He=Pe.sent,ut+=vt;case 20:Pe.next=13;break;case 22:return Pe.next=24,Object(T.a)("/api/attachments/multipart_upload_end",{method:"POST",body:Object(Z.a)({fileName:Ue.name,chunkCount:ct,uploadId:jt},E)});case 24:we=Pe.sent,we.object?(B("success"),Me(),w&&w(Object(Z.a)(Object(Z.a)({},we),{},{file:Ue,percent:100}))):(B("error"),ie("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Me(),P&&P(Ue.name));case 26:case"end":return Pe.stop()}},dt)})(),"t0",11);case 11:Ot.next=19;break;case 13:Ot.prev=13,Ot.t1=Ot.catch(9),B("error"),ie("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Me(),P&&P(Ue.name);case 19:case"end":return Ot.stop()}},Se,null,[[9,13]])}));return function(Ue){return he.apply(this,arguments)}}(),Ke=Object(O.useCallback)(function(){pe.current=!0,ge.current&&(ge.current.abort(),R&&R())},[R]),et=function(Se){var Ue,Ne,ct=Se==null||((Ue=Se.target)===null||Ue===void 0||((Ne=Ue.files)===null||Ne===void 0))?void 0:Ne[0];if(se(ct),F="ready",!ct)return;if(b){var ft=b(ct);ft||xe(ct),Me();return}xe(ct)};return M.a.createElement(O.Fragment,null,M.a.createElement("input",{type:"file",id:ae.current,style:{display:"none"},onChange:et,accept:m}),M.a.createElement("label",{className:a()(A.a.upload,x),htmlFor:ae.current,style:y},h))};ee.a=Object(O.forwardRef)(l)},"9Bee":function(Be,ee,v){"use strict";var Z=v("DYRE"),Q=v("zeV3"),I=v("+L6B"),k=v("2/Rp"),_=v("k1fw"),O=v("9og8"),M=v("tJVT"),T=v("WmNS"),n=v.n(T),p=v("q1tI"),a=v.n(p),t=v("vg9a"),A=v("DlQD"),l=v.n(A),i=v("rUJ1");function c(re,W){var V=re.match(/^(\s+)(?:```)/);if(V===null)return W;var ne=V[1];return W.split(` `).map(function(ve){var oe=ve.match(/^\s+/);if(oe===null)return ve;var tt=Object(M.a)(oe,1),Kt=tt[0];return Kt.length>=ne.length?ve.slice(ne.length):ve}).join(` `)}var d=[],f=["
    "],o=new l.a.Renderer,u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function E(){d.length=0,f=["
      "]}var R={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function w(re,W,V,ne){if(W>=re.length||re[W].level<=V)return W;var ve=re[W];ne.push("
    • "+ve.text+""),W++;var oe=[];return W=w(re,W,ve.level,oe),oe.length>0&&(ne.push("
        "),oe.forEach(function(tt){ne.push(tt)}),ne.push("
      ")),ne.push("
    • "),W=w(re,W,V,ne),W}function P(){return w(d,0,0,f),f.push("
    "),f.join("")}var C={heading:function(W){var V=u.exec(W);if(V)return{type:"heading",raw:V[0],depth:V[1].length,text:V[2]}},fences:function(W){var V=this.rules.block.fences.exec(W);if(V){var ne=V[0],ve=c(ne,V[3]||""),oe=V[2]?V[2].trim():V[2];if(["latex","katex","math"].indexOf(oe)>=0){var tt=h(),Kt=ve;ve=tt,m[tt]={type:"block",expression:Kt}}return{type:"code",raw:ne,lang:oe,text:ve}}}},b=/(?:\${2})([^\n`]+?)(?:\${2})/gi,s=0,h=function(){return"__special_katext_id_".concat(s++,"__")},m={};function x(){return m}function g(){s=0,m={}}function y(re){return re=re.replace(b,function(W,V){var ne=h();return m[ne]={type:"inline",expression:V},ne}),re}var U=o.listitem;o.listitem=function(re){return U(y(re))};var N=o.paragraph;o.paragraph=function(re){return N(y(re))};var S=o.tablecell;o.tablecell=function(re,W){return S(y(re),W)},o.code=function(re,W,V){var ne=(W||"").match(/\S*/)[0];return ne?["latex","katex","math"].indexOf(ne)>=0?"

    ".concat(re,"

    "):'
    ').concat(V?re:Object(i.escape)(re,!0),`
    `):'
    '+(V?re:Object(i.escape)(re,!0))+"
    "},o.heading=function(re,W,V){var ne=this.options.headerPrefix+V.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return d.push({anchor:ne,level:W,text:re}),"'+re+""},l.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),l.a.use({tokenizer:C,renderer:o});var H=l.a,F=v("SJMd"),B=v("ulZh"),z=v.n(B),K=v("m3rI"),$=v("Oy/b"),te=v("p5ED"),fe=v("ErOA");/*! ***************************************************************************** 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 Ae=function(re,W){return(Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,ne){V.__proto__=ne}||function(V,ne){for(var ve in ne)Object.prototype.hasOwnProperty.call(ne,ve)&&(V[ve]=ne[ve])})(re,W)};function ce(re,W){function V(){this.constructor=re}Ae(re,W),re.prototype=W===null?Object.create(W):(V.prototype=W.prototype,new V)}function ie(re,W,V,ne){return new(V||(V=Promise))(function(ve,oe){function tt(Cn){try{dn(ne.next(Cn))}catch(Jt){oe(Jt)}}function Kt(Cn){try{dn(ne.throw(Cn))}catch(Jt){oe(Jt)}}function dn(Cn){var Jt;Cn.done?ve(Cn.value):(Jt=Cn.value,Jt instanceof V?Jt:new V(function(Vn){Vn(Jt)})).then(tt,Kt)}dn((ne=ne.apply(re,W||[])).next())})}function ye(re,W){var V,ne,ve,oe,tt={label:0,sent:function(){if(1&ve[0])throw ve[1];return ve[1]},trys:[],ops:[]};return oe={next:Kt(0),throw:Kt(1),return:Kt(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function Kt(dn){return function(Cn){return function(Jt){if(V)throw new TypeError("Generator is already executing.");for(;tt;)try{if(V=1,ne&&(ve=2&Jt[0]?ne.return:Jt[0]?ne.throw||((ve=ne.return)&&ve.call(ne),0):ne.next)&&!(ve=ve.call(ne,Jt[1])).done)return ve;switch(ne=0,ve&&(Jt=[2&Jt[0],ve.value]),Jt[0]){case 0:case 1:ve=Jt;break;case 4:return tt.label++,{value:Jt[1],done:!1};case 5:tt.label++,ne=Jt[1],Jt=[0];continue;case 7:Jt=tt.ops.pop(),tt.trys.pop();continue;default:if(!(ve=tt.trys,(ve=ve.length>0&&ve[ve.length-1])||Jt[0]!==6&&Jt[0]!==2)){tt=0;continue}if(Jt[0]===3&&(!ve||Jt[1]>ve[0]&&Jt[1]',"select"),this.addActionButton(ne,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ne,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ne,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ne,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ne,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ne,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ne,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(oe){var tt=document.createElement("div");tt.className=""+V.toolbarButtonStyleClass.name,tt.setAttribute("data-type-name",oe.typeName),tt.innerHTML=oe.icon,tt.addEventListener("click",function(){V.markerToolbarButtonClicked(tt,oe)}),V.buttons.push(tt),V.markerButtons.push(tt)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ve=document.createElement("div");ve.className=this.toolbarBlockStyleClass.name,ve.style.whiteSpace="nowrap",ve.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ve),this.addActionButton(ve,'',"render"),this.addActionButton(ve,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},re.prototype.addButtonClickListener=function(W){this.buttonClickListeners.push(W)},re.prototype.removeButtonClickListener=function(W){this.buttonClickListeners.indexOf(W)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(W),1)},re.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},re.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var W=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var V=0;V0&&this.buttonClickListeners.forEach(function(ne){return ne("marker",V)}),this.markerButtonOverflowBlock.style.display="none"},re.prototype.actionToolbarButtonClicked=function(W,V){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ne){return ne("action",V)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},re.prototype.setActiveButton=function(W){this.resetButtonStyles(),W.className=W.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),W.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},re.prototype.setActiveMarkerButton=function(W){var V=this.markerButtons.find(function(ne){return ne.getAttribute("data-type-name")===W});V&&this.setActiveButton(V)},re.prototype.setCurrentMarker=function(W){var V=this;this.currentMarker=W,this.buttons.filter(function(ne){return/delete|notes/.test(ne.getAttribute("data-action"))}).forEach(function(ne){V.currentMarker===void 0?(ne.style.fillOpacity="0.4",ne.style.pointerEvents="none"):(ne.style.fillOpacity="1",ne.style.pointerEvents="all")})},re}(),et=function(){function re(W,V,ne,ve){this.panels=[],this.panelButtons=[],this.markerjsContainer=W,this.displayMode=V,this.uiStyleSettings=ne,this.styles=ve,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return re.prototype.addStyles=function(){var W;this.toolboxStyleClass=this.styles.addClass(new xe("toolbox",` width: 100%; flex-shrink: 0; display: flex; flex-direction: column; font-family: sans-serif; `+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+` box-sizing: content-box; `+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+` `+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+` `+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+` overflow: hidden; `)),this.toolboxStyleColorsClass=this.styles.addClass(new xe("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var V=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new xe("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new xe("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new xe("toolbox-panel-row",` display: flex; `+(this.displayMode==="inline"?"position: absolute;":"")+` `+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+` cursor: default; height: `+1.5*this.uiStyleSettings.toolbarHeight+`px; `+(this.displayMode==="inline"?"width: 100%;":"")+` box-sizing: content-box; `)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new xe("toolbox-panel-row_colors",` background-color: `+((W=this.uiStyleSettings.toolboxBackgroundColor)!==null&&W!==void 0?W:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new xe("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*V)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*V)+`px; padding: `+V+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new xe("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new xe("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new Me("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new Me("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},re.prototype.show=function(W){var V;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=W,this.uiContainer.className=this.toolboxStyleClass.name+" "+((V=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&V!==void 0?V:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},re.prototype.setPanelButtons=function(W){var V,ne,ve=this;this.panels=W,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((V=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&V!==void 0?V:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ne=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ne!==void 0?ne:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(oe){var tt;oe.uiStyleSettings=ve.uiStyleSettings;var Kt=document.createElement("div");Kt.className=ve.toolboxButtonStyleClass.name+" "+((tt=ve.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&tt!==void 0?tt:ve.toolboxButtonStyleColorsClass.name),Kt.innerHTML=oe.icon,Kt.title=oe.title,Kt.addEventListener("click",function(){ve.panelButtonClick(oe)}),ve.panelButtons.push(Kt),ve.buttonRow.appendChild(Kt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},re.prototype.panelButtonClick=function(W){var V=this,ne=-1;if(W!==this.activePanel){ne=this.panels.indexOf(W),this.panelRow.innerHTML="";var ve=W.getUi();ve.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ve),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=W}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){V.displayMode==="inline"?V.panelRow.style.display="none":V.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(oe,tt){var Kt,dn;oe.className=V.toolboxButtonStyleClass.name+" "+(tt===ne?""+((Kt=V.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Kt!==void 0?Kt:V.toolboxActiveButtonStyleColorsClass.name):""+((dn=V.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&dn!==void 0?dn:V.toolboxButtonStyleColorsClass.name))})},re}(),he=function(re,W){this.title=re,this.icon=W},Se=function(re){function W(V,ne,ve,oe){var tt=re.call(this,V,oe||'')||this;return tt.colors=[],tt.addTransparent=!1,tt.colorBoxes=[],tt.colors=ne,tt.currentColor=ve,tt.setCurrentColor=tt.setCurrentColor.bind(tt),tt.getColorBox=tt.getColorBox.bind(tt),tt}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");return ne.style.overflow="hidden",ne.style.whiteSpace="nowrap",this.colors.forEach(function(ve){var oe=V.getColorBox(ve);ne.appendChild(oe),V.colorBoxes.push(oe)}),ne},W.prototype.getColorBox=function(V){var ne=this,ve=this.uiStyleSettings.toolbarHeight/4,oe=this.uiStyleSettings.toolbarHeight-ve,tt=document.createElement("div");tt.style.display="inline-block",tt.style.boxSizing="content-box",tt.style.width=oe-2+"px",tt.style.height=oe-2+"px",tt.style.padding="1px",tt.style.marginRight="2px",tt.style.marginBottom="2px",tt.style.borderWidth="2px",tt.style.borderStyle="solid",tt.style.borderRadius=(oe+2)/2+"px",tt.style.borderColor=V===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",tt.addEventListener("click",function(){ne.setCurrentColor(V,tt)});var Kt=document.createElement("div");return Kt.style.display="inline-block",Kt.style.width=oe-2+"px",Kt.style.height=oe-2+"px",Kt.style.backgroundColor=V,Kt.style.borderRadius=oe/2+"px",V==="transparent"&&(Kt.style.fill=this.uiStyleSettings.toolboxAccentColor,Kt.innerHTML=` `),tt.appendChild(Kt),tt},W.prototype.setCurrentColor=function(V,ne){var ve=this;this.currentColor=V,this.colorBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(V)},W}(he),Ue=function(){function re(W,V,ne){this._state="new",this._isSelected=!1,this._container=W,this._overlayContainer=V,this.globalSettings=ne,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(re.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),re.prototype.ownsTarget=function(W){return!1},Object.defineProperty(re.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),re.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},re.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},re.prototype.pointerDown=function(W,V){},re.prototype.dblClick=function(W,V){},re.prototype.manipulate=function(W){},re.prototype.pointerUp=function(W){this.stateChanged()},re.prototype.dispose=function(){},re.prototype.addMarkerVisualToContainer=function(W){this.container.childNodes.length>0?this.container.insertBefore(W,this.container.childNodes[0]):this.container.appendChild(W)},re.prototype.getState=function(){return{typeName:re.typeName,state:this.state,notes:this.notes}},re.prototype.restoreState=function(W){this._state=W.state,this.notes=W.notes},re.prototype.scale=function(W,V){},re.prototype.colorChanged=function(W){this.onColorChanged&&this.onColorChanged(W),this.stateChanged()},re.prototype.fillColorChanged=function(W){this.onFillColorChanged&&this.onFillColorChanged(W),this.stateChanged()},re.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var W=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),W.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(W)&&this.onStateChanged(this)}},re.typeName="MarkerBase",re}(),Ne=function(){function re(){this.findGripByVisual=this.findGripByVisual.bind(this)}return re.prototype.findGripByVisual=function(W){return this.topLeft.ownsTarget(W)?this.topLeft:this.topCenter.ownsTarget(W)?this.topCenter:this.topRight.ownsTarget(W)?this.topRight:this.centerLeft.ownsTarget(W)?this.centerLeft:this.centerRight.ownsTarget(W)?this.centerRight:this.bottomLeft.ownsTarget(W)?this.bottomLeft:this.bottomCenter.ownsTarget(W)?this.bottomCenter:this.bottomRight.ownsTarget(W)?this.bottomRight:void 0},re}(),ct=function(){function re(){this.GRIP_SIZE=10,this.visual=me.createGroup(),this.visual.appendChild(me.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(me.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return re.prototype.ownsTarget=function(W){return W===this.visual||W===this.visual.childNodes[0]||W===this.visual.childNodes[1]},re}(),ft=function(){function re(){}return re.toITransformMatrix=function(W){return{a:W.a,b:W.b,c:W.c,d:W.d,e:W.e,f:W.f}},re.toSVGMatrix=function(W,V){return W.a=V.a,W.b=V.b,W.c=V.c,W.d=V.d,W.e=V.e,W.f=V.f,W},re}(),Ot=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.left=0,oe.top=0,oe.width=0,oe.height=0,oe.defaultSize={x:50,y:20},oe.offsetX=0,oe.offsetY=0,oe.rotationAngle=0,oe.CB_DISTANCE=10,oe._suppressMarkerCreateEvent=!1,oe.container.transform.baseVal.appendItem(me.createTransform()),oe.setupControlBox(),oe}return ce(W,re),Object.defineProperty(W.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"visual",{get:function(){return this._visual},set:function(V){this._visual=V;var ne=me.createTransform();this._visual.transform.baseVal.appendItem(ne)},enumerable:!1,configurable:!0}),W.prototype.ownsTarget=function(V){return!!re.prototype.ownsTarget.call(this,V)||!!(this.controlGrips.findGripByVisual(V)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(V))},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="new"&&(this.left=V.x,this.top=V.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ve=this.unrotatePoint(V);if(this.manipulationStartX=ve.x,this.manipulationStartY=ve.y,this.offsetX=ve.x-this.left,this.offsetY=ve.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ne),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ne)){this.activeGrip=this.rotatorGrip;var oe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=oe.x-this.width/2,this.top=oe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var tt=this.container.transform.baseVal.getItem(0);tt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(tt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},W.prototype.pointerUp=function(V){var ne=this.state;re.prototype.pointerUp.call(this,V),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(V),this._state="select",ne==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},W.prototype.moveVisual=function(V){this.visual.style.transform="translate("+V.x+"px, "+V.y+"px)"},W.prototype.manipulate=function(V){var ne=this.unrotatePoint(V);this.state==="creating"?this.resize(V):this.state==="move"?(this.left=this.manipulationStartLeft+(ne.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ne.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ne):this.state==="rotate"&&this.rotate(V)},W.prototype.resize=function(V){var ne=this.manipulationStartLeft,ve=this.manipulationStartWidth,oe=this.manipulationStartTop,tt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ne=this.manipulationStartLeft+V.x-this.manipulationStartX,ve=this.manipulationStartWidth+this.manipulationStartLeft-ne;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ve=this.manipulationStartWidth+V.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:oe=this.manipulationStartTop+V.y-this.manipulationStartY,tt=this.manipulationStartHeight+this.manipulationStartTop-oe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:tt=this.manipulationStartHeight+V.y-this.manipulationStartY}ve>=0?(this.left=ne,this.width=ve):(this.left=ne+ve,this.width=-ve),tt>=0?(this.top=oe,this.height=tt):(this.top=oe+tt,this.height=-tt),this.setSize()},W.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},W.prototype.rotate=function(V){if(Math.abs(V.x-this.centerX)>.1){var ne=Math.sign(V.x-this.centerX);this.rotationAngle=180*Math.atan((V.y-this.centerY)/(V.x-this.centerX))/Math.PI+90*ne,this.applyRotation()}},W.prototype.applyRotation=function(){var V=this.container.transform.baseVal.getItem(0);V.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(V,0)},W.prototype.rotatePoint=function(V){if(this.rotationAngle===0)return V;var ne=this.container.getCTM(),ve=me.createPoint(V.x,V.y);return{x:(ve=ve.matrixTransform(ne)).x,y:ve.y}},W.prototype.unrotatePoint=function(V){if(this.rotationAngle===0)return V;var ne=this.container.getCTM();ne=ne.inverse();var ve=me.createPoint(V.x,V.y);return{x:(ve=ve.matrixTransform(ne)).x,y:ve.y}},W.prototype.select=function(){re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},W.prototype.deselect=function(){re.prototype.deselect.call(this),this.controlBox.style.display="none"},W.prototype.setupControlBox=function(){this.controlBox=me.createGroup();var V=me.createTransform();V.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(V),this.container.appendChild(this.controlBox),this.controlRect=me.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=me.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ne,this.addControlGrips(),this.controlBox.style.display="none"},W.prototype.adjustControlBox=function(){var V=this.controlBox.transform.baseVal.getItem(0);V.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(V,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},W.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},W.prototype.createGrip=function(){var V=new ct;return V.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(V.visual),V},W.prototype.positionGrips=function(){var V=this.controlGrips.topLeft.GRIP_SIZE,ne=-V/2,ve=ne,oe=(this.width+this.CB_DISTANCE)/2-V/2,tt=(this.height+this.CB_DISTANCE)/2-V/2,Kt=this.height+this.CB_DISTANCE-V/2,dn=this.width+this.CB_DISTANCE-V/2;this.positionGrip(this.controlGrips.topLeft.visual,ne,ve),this.positionGrip(this.controlGrips.topCenter.visual,oe,ve),this.positionGrip(this.controlGrips.topRight.visual,dn,ve),this.positionGrip(this.controlGrips.centerLeft.visual,ne,tt),this.positionGrip(this.controlGrips.centerRight.visual,dn,tt),this.positionGrip(this.controlGrips.bottomLeft.visual,ne,Kt),this.positionGrip(this.controlGrips.bottomCenter.visual,oe,Kt),this.positionGrip(this.controlGrips.bottomRight.visual,dn,Kt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,oe,ve-3*this.CB_DISTANCE)},W.prototype.positionGrip=function(V,ne,ve){var oe=V.transform.baseVal.getItem(0);oe.setTranslate(ne,ve),V.transform.baseVal.replaceItem(oe,0)},W.prototype.hideControlBox=function(){this.controlBox.style.display="none"},W.prototype.showControlBox=function(){this.controlBox.style.display=""},W.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ft.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ft.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},re.prototype.getState.call(this))},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V);var ne=V;this.left=ne.left,this.top=ne.top,this.width=ne.width,this.height=ne.height,this.rotationAngle=ne.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ft.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ne.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ft.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ne.containerTransformMatrix))},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne);var ve=this.rotatePoint({x:this.left,y:this.top}),oe=this.unrotatePoint({x:ve.x*V,y:ve.y*ne});this.left=oe.x,this.top=oe.y,this.width=this.width*V,this.height=this.height*ne,this.adjustControlBox()},W}(Ue),dt=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.opacity=1,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.visual)},W.prototype.createVisual=function(){this.visual=me.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="new"&&(this.createVisual(),this.moveVisual(V),this._state="creating")},W.prototype.manipulate=function(V){re.prototype.manipulate.call(this,V)},W.prototype.resize=function(V){re.prototype.resize.call(this,V),this.setSize()},W.prototype.setSize=function(){re.prototype.setSize.call(this),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},W.prototype.pointerUp=function(V){re.prototype.pointerUp.call(this,V),this.setSize()},W.prototype.setStrokeColor=function(V){this.strokeColor=V,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(V),this.stateChanged()},W.prototype.setFillColor=function(V){this.fillColor=V,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},W.prototype.setStrokeWidth=function(V){this.strokeWidth=V,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},W.prototype.setStrokeDasharray=function(V){this.strokeDasharray=V,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},W.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},re.prototype.getState.call(this))},W.prototype.restoreState=function(V){var ne=V;this.fillColor=ne.fillColor,this.strokeColor=ne.strokeColor,this.strokeWidth=ne.strokeWidth,this.strokeDasharray=ne.strokeDasharray,this.opacity=ne.opacity,this.createVisual(),re.prototype.restoreState.call(this,V),this.setSize()},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.setSize()},W.title="Rectangle marker",W}(Ot),Ut=function(re){function W(V,ne,ve,oe){var tt=re.call(this,V,oe||'')||this;return tt.widths=[],tt.widthBoxes=[],tt.widths=ne,tt.currentWidth=ve,tt.setCurrentWidth=tt.setCurrentWidth.bind(tt),tt}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");return ne.style.display="flex",ne.style.overflow="hidden",ne.style.flexGrow="2",this.widths.forEach(function(ve){var oe=document.createElement("div");oe.style.display="flex",oe.style.flexGrow="2",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=ve===V.currentWidth?V.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){V.setCurrentWidth(ve,oe)}),ne.appendChild(oe);var tt=document.createElement("div");tt.innerText=ve.toString(),tt.style.marginRight="5px",oe.appendChild(tt);var Kt=document.createElement("div");Kt.style.minHeight="20px",Kt.style.flexGrow="2",Kt.style.display="flex",Kt.style.alignItems="center";var dn=document.createElement("hr");dn.style.minWidth="20px",dn.style.border="0px",dn.style.borderTop=ve+"px solid "+V.uiStyleSettings.toolboxColor,dn.style.flexGrow="2",Kt.appendChild(dn),oe.appendChild(Kt),V.widthBoxes.push(oe)}),ne},W.prototype.setCurrentWidth=function(V,ne){var ve=this;this.currentWidth=V,this.widthBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},W}(he),jt=function(re){function W(V,ne,ve,oe){var tt=re.call(this,V,oe||'')||this;return tt.styles=[],tt.styleBoxes=[],tt.styles=ne,tt.currentStyle=ve,tt.setCurrentStyle=tt.setCurrentStyle.bind(tt),tt}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");return ne.style.display="flex",ne.style.overflow="hidden",ne.style.flexGrow="2",this.styles.forEach(function(ve){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/V.styles.length-5+"%",oe.style.borderColor=ve===V.currentStyle?V.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){V.setCurrentStyle(ve,oe)}),ne.appendChild(oe);var tt=document.createElement("div");tt.style.minHeight="20px",tt.style.flexGrow="2",tt.style.overflow="hidden";var Kt=` `;tt.innerHTML=Kt,oe.appendChild(tt),V.styleBoxes.push(oe)}),ne},W.prototype.setCurrentStyle=function(V,ne){var ve=this;this.currentStyle=V,this.styleBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},W}(he),ze=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.strokeColor=ve.defaultColor,oe.strokeWidth=ve.defaultStrokeWidth,oe.strokeDasharray=ve.defaultStrokeDasharray,oe.strokePanel=new Se("Line color",ve.defaultColorSet,ve.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Ut("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new jt("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return ce(W,re),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=re.prototype.getState.call(this);return V.typeName=W.typeName,V},W.typeName="FrameMarker",W.title="Frame marker",W.icon='',W}(dt),Ve=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},Et=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.x1=0,oe.y1=0,oe.x2=0,oe.y2=0,oe.defaultLength=50,oe.manipulationStartX=0,oe.manipulationStartY=0,oe.manipulationStartX1=0,oe.manipulationStartY1=0,oe.manipulationStartX2=0,oe.manipulationStartY2=0,oe.setupControlBox(),oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!!re.prototype.ownsTarget.call(this,V)||!(!this.grip1.ownsTarget(V)&&!this.grip2.ownsTarget(V))},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.manipulationStartX=V.x,this.manipulationStartY=V.y,this.state==="new"&&(this.x1=V.x,this.y1=V.y,this.x2=V.x,this.y2=V.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ne)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ne)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},W.prototype.pointerUp=function(V){var ne=this.state;re.prototype.pointerUp.call(this,V),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(V),this._state="select",ne==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},W.prototype.adjustVisual=function(){},W.prototype.manipulate=function(V){this.state==="creating"?this.resize(V):this.state==="move"?(this.x1=this.manipulationStartX1+V.x-this.manipulationStartX,this.y1=this.manipulationStartY1+V.y-this.manipulationStartY,this.x2=this.manipulationStartX2+V.x-this.manipulationStartX,this.y2=this.manipulationStartY2+V.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(V)},W.prototype.resize=function(V){switch(this.activeGrip){case this.grip1:this.x1=V.x,this.y1=V.y;break;case this.grip2:case void 0:this.x2=V.x,this.y2=V.y}this.adjustVisual(),this.adjustControlBox()},W.prototype.select=function(){re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},W.prototype.deselect=function(){re.prototype.deselect.call(this),this.controlBox.style.display="none"},W.prototype.setupControlBox=function(){this.controlBox=me.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},W.prototype.adjustControlBox=function(){this.positionGrips()},W.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},W.prototype.createGrip=function(){var V=new ct;return V.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(V.visual),V},W.prototype.positionGrips=function(){var V=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-V/2,this.y1-V/2),this.positionGrip(this.grip2.visual,this.x2-V/2,this.y2-V/2)},W.prototype.positionGrip=function(V,ne,ve){var oe=V.transform.baseVal.getItem(0);oe.setTranslate(ne,ve),V.transform.baseVal.replaceItem(oe,0)},W.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},re.prototype.getState.call(this))},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V);var ne=V;this.x1=ne.x1,this.y1=ne.y1,this.x2=ne.x2,this.y2=ne.y2},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.x1=this.x1*V,this.y1=this.y1*ne,this.x2=this.x2*V,this.y2=this.y2*ne,this.adjustVisual(),this.adjustControlBox()},W}(Ue),Rt=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.strokeColor=ve.defaultColor,oe.strokeWidth=ve.defaultStrokeWidth,oe.strokeDasharray=ve.defaultStrokeDasharray,oe.strokePanel=new Se("Line color",ve.defaultColorSet,ve.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Ut("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new jt("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.visual&&V!==this.selectorLine&&V!==this.visibleLine)},W.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},W.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),me.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},W.prototype.setStrokeColor=function(V){this.strokeColor=V,this.adjustVisual(),this.colorChanged(V)},W.prototype.setStrokeWidth=function(V){this.strokeWidth=V,this.adjustVisual()},W.prototype.setStrokeDasharray=function(V){this.strokeDasharray=V,this.adjustVisual(),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V);var ne=V;this.strokeColor=ne.strokeColor,this.strokeWidth=ne.strokeWidth,this.strokeDasharray=ne.strokeDasharray,this.createVisual(),this.adjustVisual()},W.typeName="LineMarker",W.title="Line marker",W.icon='',W}(Et),ut=function(re){function W(V,ne,ve,oe){var tt=re.call(this,V,oe||'')||this;return tt.fonts=[],tt.fontBoxes=[],tt.fonts=ne,tt.currentFont=ve,tt.setCurrentFont=tt.setCurrentFont.bind(tt),tt}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");return ne.style.overflow="hidden",ne.style.flexGrow="2",this.fonts.forEach(function(ve){var oe=document.createElement("div");oe.style.display="inline-block",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/V.fonts.length-5+"%",oe.style.borderColor=ve===V.currentFont?V.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){V.setCurrentFont(ve,oe)}),ne.appendChild(oe);var tt=document.createElement("div");tt.style.display="flex",tt.style.minHeight="20px",tt.style.flexGrow="2",tt.style.fontFamily=ve,tt.style.overflow="hidden";var Kt=document.createElement("div");Kt.style.whiteSpace="nowrap",Kt.style.overflow="hidden",Kt.style.textOverflow="ellipsis",Kt.innerHTML="The quick brown fox jumps over the lazy dog",tt.appendChild(Kt),oe.appendChild(tt),V.fontBoxes.push(oe)}),ne},W.prototype.setCurrentFont=function(V,ne){var ve=this;this.currentFont=V,this.fontBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},W}(he),vt=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.color="transparent",oe.padding=5,oe.DEFAULT_TEXT="your text here",oe.text=oe.DEFAULT_TEXT,oe.isMoved=!1,oe.color=ve.defaultColor,oe.fontFamily=ve.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setColor=oe.setColor.bind(oe),oe.setFont=oe.setFont.bind(oe),oe.renderText=oe.renderText.bind(oe),oe.sizeText=oe.sizeText.bind(oe),oe.textEditDivClicked=oe.textEditDivClicked.bind(oe),oe.showTextEditor=oe.showTextEditor.bind(oe),oe.setSize=oe.setSize.bind(oe),oe.positionTextEditor=oe.positionTextEditor.bind(oe),oe.colorPanel=new Se("Color",ve.defaultColorSet,ve.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.fontFamilyPanel=new ut("Font",ve.defaultFontFamilies,ve.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe}return ce(W,re),W.prototype.ownsTarget=function(V){if(re.prototype.ownsTarget.call(this,V)||V===this.visual||V===this.textElement||V===this.bgRectangle)return!0;var ne=!1;return this.textElement.childNodes.forEach(function(ve){ve===V&&(ne=!0)}),ne},W.prototype.createVisual=function(){this.visual=me.createGroup(),this.bgRectangle=me.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=me.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.isMoved=!1,this.pointerDownPoint=V,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(V),this._state="creating")},W.prototype.renderText=function(){var V=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ne){V.textElement.appendChild(me.createTSpan(ne.trim()===""?" ":ne.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},W.prototype.getTextScale=function(){var V=this.textElement.getBBox(),ne=1;if(V.width>0&&V.height>0){var ve=(1*this.width-this.width*this.padding*2/100)/V.width,oe=(1*this.height-this.height*this.padding*2/100)/V.height;ne=Math.min(ve,oe)}return ne},W.prototype.getTextPosition=function(V){var ne=this.textElement.getBBox(),ve=0,oe=0;return ne.width>0&&ne.height>0&&(ve=(this.width-ne.width*V)/2,oe=this.height/2-ne.height*V/2),{x:ve,y:oe}},W.prototype.sizeText=function(){var V=this.textElement.getBBox(),ne=this.getTextScale(),ve=this.getTextPosition(ne);ve.y-=V.y*ne,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ve.x+"px, "+ve.y+"px) scale("+ne+", "+ne+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ve.x,ve.y),this.textElement.transform.baseVal.getItem(1).setScale(ne,ne))},W.prototype.manipulate=function(V){re.prototype.manipulate.call(this,V),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(V.x-this.pointerDownPoint.x)>5||Math.abs(V.y-this.pointerDownPoint.y)>5)},W.prototype.resize=function(V){re.prototype.resize.call(this,V),this.isMoved=!0,this.setSize(),this.sizeText()},W.prototype.setSize=function(){re.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},W.prototype.pointerUp=function(V){var ne=this.state;ne==="creating"&&(this._suppressMarkerCreateEvent=!0),re.prototype.pointerUp.call(this,V),this.setSize(),(ne==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},W.prototype.showTextEditor=function(){var V=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ne){ne.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ne=Number.parseFloat(V.textEditor.style.fontSize);V.textEditor.clientWidth>=Number.parseInt(V.textEditor.style.maxWidth)&&ne>.9;)ne-=.1,V.textEditor.style.fontSize=Math.max(ne,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ne){ne.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ne){if(ne.clipboardData){var ve=ne.clipboardData.getData("text"),oe=window.getSelection();if(!oe.rangeCount)return!1;oe.deleteFromDocument(),oe.getRangeAt(0).insertNode(document.createTextNode(ve)),ne.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){V.textEditDivClicked(V.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},W.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var V=this.getTextScale(),ne=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ve=this.textElement.getBBox(),oe={x:ve.width*V,y:ve.height*V};ne.x-=oe.x/2,ne.y-=oe.y/2,this.textEditor.style.top=ne.y+"px",this.textEditor.style.left=ne.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ne.x+"px",this.textEditor.style.fontSize=Math.max(16*V,12)+"px",this.textElement.style.display="none"}},W.prototype.textEditDivClicked=function(V){this.text=V.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},W.prototype.select=function(){re.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},W.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),re.prototype.deselect.call(this)},W.prototype.dblClick=function(V,ne){re.prototype.dblClick.call(this,V,ne),this.showTextEditor()},W.prototype.setColor=function(V){this.textElement&&me.setAttributes(this.textElement,[["fill",V]]),this.color=V,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(V)},W.prototype.setFont=function(V){this.textElement&&me.setAttributes(this.textElement,[["font-family",V]]),this.fontFamily=V,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},W.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},W.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){var ne=V;this.color=ne.color,this.fontFamily=ne.fontFamily,this.padding=ne.padding,this.text=ne.text,this.createVisual(),re.prototype.restoreState.call(this,V),this.setSize()},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.setSize(),this.sizeText(),this.positionTextEditor()},W.typeName="TextMarker",W.title="Text marker",W.icon='',W}(Ot),Ze=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.color="transparent",oe.lineWidth=3,oe.drawing=!1,oe.pixelRatio=1,oe.color=ve.defaultColor,oe.lineWidth=ve.defaultStrokeWidth,oe.pixelRatio=ve.freehandPixelRatio,oe.setColor=oe.setColor.bind(oe),oe.addCanvas=oe.addCanvas.bind(oe),oe.finishCreation=oe.finishCreation.bind(oe),oe.setLineWidth=oe.setLineWidth.bind(oe),oe.colorPanel=new Se("Color",ve.defaultColorSet,ve.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.lineWidthPanel=new Ut("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),oe.lineWidthPanel.onWidthChanged=oe.setLineWidth,oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.visual&&V!==this.drawingImage)},W.prototype.createVisual=function(){this.visual=me.createGroup(),this.drawingImage=me.createImage(),this.visual.appendChild(this.drawingImage);var V=me.createTransform();this.visual.transform.baseVal.appendItem(V),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(V,ne){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(V.x,V.y),this.drawing=!0):re.prototype.pointerDown.call(this,V,ne)},W.prototype.manipulate=function(V){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(V.x,V.y),this.canvasContext.stroke()):re.prototype.manipulate.call(this,V)},W.prototype.resize=function(V){re.prototype.resize.call(this,V),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},W.prototype.pointerUp=function(V){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):re.prototype.pointerUp.call(this,V)},W.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},W.prototype.select=function(){this.state==="creating"&&this.finishCreation(),re.prototype.select.call(this)},W.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),re.prototype.deselect.call(this)},W.prototype.finishCreation=function(){for(var V=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ne=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ve=ne[0],oe=ne[1],tt=ne[2],Kt=ne[3],dn=!1,Cn=0;Cn0&&(dn=!0,CnKt&&(Kt=Cn),Jt>tt&&(tt=Jt));if(dn){this.left=ve/this.pixelRatio,this.top=oe/this.pixelRatio,this.width=(tt-ve)/this.pixelRatio,this.height=(Kt-oe)/this.pixelRatio;var Vn=document.createElement("canvas");Vn.width=tt-ve,Vn.height=Kt-oe,Vn.getContext("2d").putImageData(this.canvasContext.getImageData(ve,oe,tt-ve,Kt-oe),0,0),this.drawingImgUrl=Vn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},W.prototype.setDrawingImage=function(){me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},W.prototype.setColor=function(V){this.color=V,this.colorChanged(V)},W.prototype.setLineWidth=function(V){this.lineWidth=V},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({drawingImgUrl:this.drawingImgUrl},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){this.createVisual(),re.prototype.restoreState.call(this,V),this.drawingImgUrl=V.drawingImgUrl,this.setDrawingImage()},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.setDrawingImage()},W.typeName="FreehandMarker",W.title="Freehand marker",W.icon='',W}(Ot),ke=function(re){function W(V,ne,ve){var oe=re.call(this,V,ve||'')||this;return oe.typeBoxes=[],oe.currentType=ne,oe.setCurrentType=oe.setCurrentType.bind(oe),oe}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");ne.style.display="flex",ne.style.overflow="hidden",ne.style.flexGrow="2";for(var ve=function(Kt){var dn="both";switch(Kt){case 0:dn="both";break;case 1:dn="start";break;case 2:dn="end";break;case 3:dn="none"}var Cn=document.createElement("div");if(Cn.style.display="flex",Cn.style.flexGrow="2",Cn.style.alignItems="center",Cn.style.justifyContent="space-between",Cn.style.padding="5px",Cn.style.borderWidth="2px",Cn.style.borderStyle="solid",Cn.style.borderColor=dn===oe.currentType?oe.uiStyleSettings.toolboxAccentColor:"transparent",Cn.addEventListener("click",function(){V.setCurrentType(dn,Cn)}),ne.appendChild(Cn),dn==="both"||dn==="start"){var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.alignItems="center",Jt.style.minHeight="20px",Jt.innerHTML=` `,Jt.style.marginLeft="5px",Cn.appendChild(Jt)}var Vn=document.createElement("div");Vn.style.display="flex",Vn.style.alignItems="center",Vn.style.minHeight="20px",Vn.style.flexGrow="2";var Xn=document.createElement("hr");if(Xn.style.minWidth="20px",Xn.style.border="0px",Xn.style.borderTop="3px solid "+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee"),Xn.style.flexGrow="2",Vn.appendChild(Xn),Cn.appendChild(Vn),dn==="both"||dn==="end"){var lr=document.createElement("div");lr.style.display="flex",lr.style.alignItems="center",lr.style.minHeight="20px",lr.innerHTML=` `,lr.style.marginRight="5px",Cn.appendChild(lr)}oe.typeBoxes.push(Cn)},oe=this,tt=0;tt<4;tt++)ve(tt);return ne},W.prototype.setCurrentType=function(V,ne){var ve=this;this.currentType=V,this.typeBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings!==void 0?ve.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},W}(he),He=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.arrowType="end",oe.arrowBaseHeight=10,oe.arrowBaseWidth=10,oe.getArrowPoints=oe.getArrowPoints.bind(oe),oe.setArrowType=oe.setArrowType.bind(oe),oe.arrowTypePanel=new ke("Arrow type","end"),oe.arrowTypePanel.onArrowTypeChanged=oe.setArrowType,oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.arrow1&&V!==this.arrow2)},W.prototype.getArrowPoints=function(V,ne){var ve=this.arrowBaseWidth+2*this.strokeWidth,oe=this.arrowBaseHeight+2*this.strokeWidth;return V-ve/2+","+(ne+oe/2)+" "+V+","+(ne-oe/2)+" "+(V+ve/2)+","+(ne+oe/2)},W.prototype.createTips=function(){this.arrow1=me.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=me.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow2)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="creating"&&this.createTips()},W.prototype.adjustVisual=function(){if(re.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",me.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),me.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var V=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ne=this.arrow1.transform.baseVal.getItem(0);ne.setRotate(V,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ne,0);var ve=this.arrow2.transform.baseVal.getItem(0);ve.setRotate(V+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ve,0)}},W.prototype.setArrowType=function(V){this.arrowType=V,this.adjustVisual(),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({arrowType:this.arrowType},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V);var ne=V;this.arrowType=ne.arrowType,this.createTips(),this.adjustVisual()},W.typeName="ArrowMarker",W.title="Arrow marker",W.icon='',W}(Rt),we=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.fillColor=ve.defaultFillColor,oe.strokeWidth=0,oe.fillPanel=new Se("Color",ve.defaultColorSet,ve.defaultFillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe}return ce(W,re),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=re.prototype.getState.call(this);return V.typeName=W.typeName,V},W.typeName="CoverMarker",W.title="Cover marker",W.icon='',W}(dt),Le=function(re){function W(V,ne,ve,oe){var tt=re.call(this,V,oe||'')||this;return tt.opacities=[],tt.opacityBoxes=[],tt.opacities=ne,tt.currentOpacity=ve,tt.setCurrentOpacity=tt.setCurrentOpacity.bind(tt),tt}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");return ne.style.display="flex",ne.style.overflow="hidden",ne.style.flexGrow="2",ne.style.justifyContent="space-between",this.opacities.forEach(function(ve){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="center",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=ve===V.currentOpacity?V.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){V.setCurrentOpacity(ve,oe)}),ne.appendChild(oe);var tt=document.createElement("div");tt.innerText=100*ve+"%",oe.appendChild(tt),V.opacityBoxes.push(oe)}),ne},W.prototype.setCurrentOpacity=function(V,ne){var ve=this;this.currentOpacity=V,this.opacityBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},W}(he),Pe=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.setOpacity=oe.setOpacity.bind(oe),oe.fillColor=ve.defaultHighlightColor,oe.strokeWidth=0,oe.opacity=ve.defaultHighlightOpacity,oe.fillPanel=new Se("Color",ve.defaultColorSet,oe.fillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe.opacityPanel=new Le("Opacity",ve.defaultOpacitySteps,oe.opacity),oe.opacityPanel.onOpacityChanged=oe.setOpacity,oe}return ce(W,re),W.prototype.setOpacity=function(V){this.opacity=V,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=re.prototype.getState.call(this);return V.typeName=W.typeName,V},W.typeName="HighlightMarker",W.title="Highlight marker",W.icon='',W}(we),We='',Xe=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.bgColor="transparent",oe.tipPosition={x:0,y:0},oe.tipBase1Position={x:0,y:0},oe.tipBase2Position={x:0,y:0},oe.tipMoving=!1,oe.color=ve.defaultStrokeColor,oe.bgColor=ve.defaultFillColor,oe.fontFamily=ve.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setBgColor=oe.setBgColor.bind(oe),oe.getTipPoints=oe.getTipPoints.bind(oe),oe.positionTip=oe.positionTip.bind(oe),oe.setTipPoints=oe.setTipPoints.bind(oe),oe.colorPanel=new Se("Text color",ve.defaultColorSet,oe.color,''),oe.colorPanel.onColorChanged=oe.setColor,oe.bgColorPanel=new Se("Fill color",ve.defaultColorSet,oe.bgColor,We),oe.bgColorPanel.onColorChanged=oe.setBgColor,oe.fontFamilyPanel=new ut("Font",ve.defaultFontFamilies,ve.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe.tipGrip=new ct,oe.tipGrip.visual.transform.baseVal.appendItem(me.createTransform()),oe.controlBox.appendChild(oe.tipGrip.visual),oe}return ce(W,re),W.prototype.ownsTarget=function(V){return re.prototype.ownsTarget.call(this,V)||this.tipGrip.ownsTarget(V)||this.tip===V},W.prototype.createTip=function(){me.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=me.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},W.prototype.pointerDown=function(V,ne){this.state==="new"&&re.prototype.pointerDown.call(this,V,ne),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ne)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):re.prototype.pointerDown.call(this,V,ne)},W.prototype.pointerUp=function(V){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,re.prototype.pointerUp.call(this,V);else{var ne=this.state==="creating";re.prototype.pointerUp.call(this,V),this.setTipPoints(ne),this.positionTip()}},W.prototype.manipulate=function(V){if(this.tipMoving){var ne=this.unrotatePoint(V);this.tipPosition={x:ne.x-this.manipulationStartLeft,y:ne.y-this.manipulationStartTop},this.positionTip()}else re.prototype.manipulate.call(this,V)},W.prototype.setBgColor=function(V){this.bgRectangle&&this.tip&&(me.setAttributes(this.bgRectangle,[["fill",V]]),me.setAttributes(this.tip,[["fill",V]])),this.bgColor=V,this.fillColorChanged(V)},W.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},W.prototype.setTipPoints=function(V){V===void 0&&(V=!1);var ne=Math.min(this.height/2,15),ve=this.height/5;V&&(this.tipPosition={x:ne+ve/2,y:this.height+20});var oe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?oe.1)){var V=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ne=this.tip1.transform.baseVal.getItem(0);ne.setRotate(V,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ne,0);var ve=this.tip2.transform.baseVal.getItem(0);ve.setRotate(V+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ve,0)}},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=re.prototype.getState.call(this);return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V),this.createTips(),this.adjustVisual()},W.typeName="MeasurementMarker",W.title="Measurement marker",W.icon='',W}(Rt),en=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.strokePanel.colors=ve.defaultColorSet,oe.fillColor="transparent",oe}return ce(W,re),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=re.prototype.getState.call(this);return V.typeName=W.typeName,V},W.typeName="EllipseFrameMarker",W.title="Ellipse frame marker",W.icon='',W}(gt),Zt=function(){function re(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(re.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),re.prototype.addUndoStep=function(W){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(W)||(this.undoStack.push(W),JSON.stringify(this.lastRedoStep)!==JSON.stringify(W)&&this.redoStack.splice(0,this.redoStack.length))},re.prototype.replaceLastUndoStep=function(W){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=W)},re.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},re.prototype.undo=function(){if(this.undoStack.length>1){var W=this.undoStack.pop();return W!==void 0&&this.redoStack.push(W),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},re.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},re}(),xt=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.curveX=0,oe.curveY=0,oe.manipulationStartCurveX=0,oe.manipulationStartCurveY=0,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.positionGrips=oe.positionGrips.bind(oe),oe.addControlGrips=oe.addControlGrips.bind(oe),oe.adjustVisual=oe.adjustVisual.bind(oe),oe.setupControlBox=oe.setupControlBox.bind(oe),oe.resize=oe.resize.bind(oe),oe.strokeColor=ve.defaultColor,oe.strokeWidth=ve.defaultStrokeWidth,oe.strokeDasharray=ve.defaultStrokeDasharray,oe.strokePanel=new Se("Line color",ve.defaultColorSet,ve.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Ut("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new jt("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.visual&&V!==this.selectorCurve&&V!==this.visibleCurve&&!this.curveGrip.ownsTarget(V))},W.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},W.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorCurve=me.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=me.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=V.x,this.curveY=V.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ne)&&(this.activeGrip=this.curveGrip,this._state="resize")},W.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),me.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},W.prototype.setupControlBox=function(){re.prototype.setupControlBox.call(this),this.curveControlLine1=me.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=me.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},W.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,re.prototype.addControlGrips.call(this)},W.prototype.positionGrips=function(){re.prototype.positionGrips.call(this);var V=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-V/2,this.curveY-V/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},W.prototype.manipulate=function(V){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+V.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+V.y-this.manipulationStartY),re.prototype.manipulate.call(this,V)},W.prototype.resize=function(V){this.activeGrip===this.curveGrip&&(this.curveX=V.x,this.curveY=V.y),re.prototype.resize.call(this,V),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},W.prototype.setStrokeColor=function(V){this.strokeColor=V,this.adjustVisual(),this.colorChanged(V)},W.prototype.setStrokeWidth=function(V){this.strokeWidth=V,this.adjustVisual()},W.prototype.setStrokeDasharray=function(V){this.strokeDasharray=V,this.adjustVisual()},W.prototype.scale=function(V,ne){this.curveX=this.curveX*V,this.curveY=this.curveY*ne,re.prototype.scale.call(this,V,ne)},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V);var ne=V;this.strokeColor=ne.strokeColor,this.strokeWidth=ne.strokeWidth,this.strokeDasharray=ne.strokeDasharray,this.curveX=ne.curveX,this.curveY=ne.curveY,this.createVisual(),this.adjustVisual()},W.typeName="CurveMarker",W.title="Curve marker",W.icon='',W}(Et),Ct=function(){function re(W,V){V===void 0&&(V=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=W,this.cancelable=V}return Object.defineProperty(re.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),re.prototype.preventDefault=function(){this._defaultPrevented=!0},re}(),mt=function(re){function W(V,ne,ve){var oe=re.call(this,V,!1)||this;return oe.dataUrl=ne,oe.state=ve,oe}return ce(W,re),W}(Ct),Je=function(re){function W(V,ne,ve){ve===void 0&&(ve=!1);var oe=re.call(this,V,ve)||this;return oe.marker=ne,oe}return ce(W,re),W}(Ct),Qe=function(){function re(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return re.prototype.addEventListener=function(W,V){this[W].push(V)},re.prototype.removeEventListener=function(W,V){var ne=this[W].indexOf(V);ne>-1&&this[W].splice(ne,1)},re}(),Oe=function(){function re(W){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ve,this._isOpen=!1,this.undoRedoManager=new Zt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Qe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=re.instanceCounter++,this.styles=new pe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=W,this.targetRoot=document.body,this.width=W.clientWidth,this.height=W.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.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.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(re.prototype,"ALL_MARKER_TYPES",{get:function(){return[ze,Ze,He,vt,en,gt,Pe,Xe,Lt,we,Rt,xt]},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ze,Ze,He,vt,gt,Pe,Xe]},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ze,Ze,He,vt,Pe]},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(W){var V=this;this._availableMarkerTypes.splice(0),W.forEach(function(ne){if(typeof ne=="string"){var ve=V.ALL_MARKER_TYPES.find(function(oe){return oe.typeName===ne});ve!==void 0&&V._availableMarkerTypes.push(ve)}else V._availableMarkerTypes.push(ne)})},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(W){this._zoomLevel=W,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),re.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),se.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},re.prototype.show=function(){var W=this;this.styles.styleSheetRoot===void 0&&ae.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ae.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(V){return V(new Ct(W))})},re.prototype.render=function(){return ie(this,void 0,void 0,function(){var W;return ye(this,function(V){switch(V.label){case 0:return this.setCurrentMarker(),(W=new ge).naturalSize=this.renderAtNaturalSize,W.imageType=this.renderImageType,W.imageQuality=this.renderImageQuality,W.markersOnly=this.renderMarkersOnly,W.width=this.renderWidth,W.height=this.renderHeight,[4,W.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return V.sent(),[4,W.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,V.sent()]}})})},re.prototype.close=function(W){var V=this;if(W===void 0&&(W=!1),this.isOpen){var ne=!1;W||this.eventListeners.beforeclose.forEach(function(ve){var oe=new Ct(V,!0);ve(oe),oe.defaultPrevented&&(ne=!0)}),ne||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ve){return ve(new Ct(V))}),this.detachEvents(),this._isOpen=!1)}},re.prototype.addMarkersToToolbar=function(){for(var W,V=[],ne=0;nethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*W:this.editorCanvas.clientWidth,ne=V',W.title="Powered by marker.js",W.style.display="grid",W.style.alignItems="center",W.style.justifyItems="center",W.style.padding="3px",W.style.width="20px",W.style.height="20px",this.logoUI.appendChild(W),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},re.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},re.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},re.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},re.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var W=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=W+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.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.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.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.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Ke(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",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.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(W),1),W.dispose()},re.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},re.prototype.toolbarButtonClicked=function(W,V){if(W==="marker"&&V!==void 0)this.createNewMarker(V);else if(W==="action")switch(V){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},re.prototype.deleteSelectedMarker=function(){var W=this;if(this._currentMarker!==void 0){var V=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ve){var oe=new Je(W,W._currentMarker,!0);ve(oe),oe.defaultPrevented&&(V=!0)}),!V){var ne=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ve){return ve(new Je(W,ne))})}}},re.prototype.clear=function(){var W=this,V=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(tt){var Kt=new Je(W,void 0,!0);tt(Kt),Kt.defaultPrevented&&(V=!0)}),!V)){this.setCurrentMarker();for(var ne=function(tt){var Kt=ve.markers[tt];ve.setCurrentMarker(ve.markers[tt]),ve._currentMarker.dispose(),ve.markerImage.removeChild(ve._currentMarker.container),ve.markers.splice(ve.markers.indexOf(ve._currentMarker),1),ve.eventListeners.markerdelete.forEach(function(dn){return dn(new Je(W,Kt))})},ve=this,oe=this.markers.length-1;oe>=0;oe--)ne(oe);this.addUndoStep()}},Object.defineProperty(re.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),re.prototype.showNotesEditor=function(){var W;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(W=this._currentMarker.notes)!==null&&W!==void 0?W:"",this.overlayContainer.appendChild(this.notesArea))},re.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},re.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},re.prototype.addUndoStep=function(){var W=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var V=this.getState(),ne=this.undoRedoManager.getLastUndoStep();if(!ne||ne.width===V.width&&ne.height===V.height){var ve=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(V),ve1&&this.panTo({x:W.clientX,y:W.clientY}))},re.prototype.onPointerUp=function(W){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(W.clientX,W.clientY)),this.isDragging=!1,this.addUndoStep()},re.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},re.prototype.onKeyUp=function(W){this._currentMarker===void 0||this.notesArea!==void 0||W.key!=="Delete"&&W.key!=="Backspace"||this.deleteSelectedMarker()},re.prototype.clientToLocalCoordinates=function(W,V){var ne=this.markerImage.getBoundingClientRect();return{x:(W-ne.left)/this.zoomLevel,y:(V-ne.top)/this.zoomLevel}},re.prototype.onWindowResize=function(){this.positionUI()},re.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var W=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=W+"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=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},re.prototype.addLicenseKey=function(W){se.addKey(W)},re.prototype.addEventListener=function(W,V){this.eventListeners.addEventListener(W,V)},re.prototype.removeEventListener=function(W,V){this.eventListeners.removeEventListener(W,V)},re.prototype.renderState=function(W){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(W),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(re.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),re.prototype.focus=function(){var W=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(V){return V(new Ct(W))}))},re.prototype.blur=function(){var W=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(V){return V(new Ct(W))}))},re.instanceCounter=0,re}();/* ********************************** 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 je=function(re,W){return(je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,ne){V.__proto__=ne}||function(V,ne){for(var ve in ne)Object.prototype.hasOwnProperty.call(ne,ve)&&(V[ve]=ne[ve])})(re,W)};function St(re,W){if(typeof W!="function"&&W!==null)throw new TypeError("Class extends value "+String(W)+" is not a constructor or null");function V(){this.constructor=re}je(re,W),re.prototype=W===null?Object.create(W):(V.prototype=W.prototype,new V)}function bt(re,W,V,ne){return new(V||(V=Promise))(function(ve,oe){function tt(Cn){try{dn(ne.next(Cn))}catch(Jt){oe(Jt)}}function Kt(Cn){try{dn(ne.throw(Cn))}catch(Jt){oe(Jt)}}function dn(Cn){var Jt;Cn.done?ve(Cn.value):(Jt=Cn.value,Jt instanceof V?Jt:new V(function(Vn){Vn(Jt)})).then(tt,Kt)}dn((ne=ne.apply(re,W||[])).next())})}function Dt(re,W){var V,ne,ve,oe,tt={label:0,sent:function(){if(1&ve[0])throw ve[1];return ve[1]},trys:[],ops:[]};return oe={next:Kt(0),throw:Kt(1),return:Kt(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function Kt(dn){return function(Cn){return function(Jt){if(V)throw new TypeError("Generator is already executing.");for(;tt;)try{if(V=1,ne&&(ve=2&Jt[0]?ne.return:Jt[0]?ne.throw||((ve=ne.return)&&ve.call(ne),0):ne.next)&&!(ve=ve.call(ne,Jt[1])).done)return ve;switch(ne=0,ve&&(Jt=[2&Jt[0],ve.value]),Jt[0]){case 0:case 1:ve=Jt;break;case 4:return tt.label++,{value:Jt[1],done:!1};case 5:tt.label++,ne=Jt[1],Jt=[0];continue;case 7:Jt=tt.ops.pop(),tt.trys.pop();continue;default:if(!(ve=tt.trys,(ve=ve.length>0&&ve[ve.length-1])||Jt[0]!==6&&Jt[0]!==2)){tt=0;continue}if(Jt[0]===3&&(!ve||Jt[1]>ve[0]&&Jt[1]0&&V>0){var ne=new Ra(W,V),ve=ne.ratio>=1?20:ne.getHorizontalLength(20),oe=ne.ratio<1?20:ne.getVerticalLength(20),tt=document.createElementNS("http://www.w3.org/2000/svg","svg");tt.setAttribute("xmlns","http://www.w3.org/2000/svg"),tt.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(tt);var Kt=_t.createDefs();tt.appendChild(Kt);var dn=_t.createElement("clipPath",[["id","text-bg-clip"]]);Kt.appendChild(dn);var Cn=_t.createPath(_t.getHollowRectanglePath((24-ve)/2,(24-oe)/2,ve,oe,(24-ve)/2+2,(24-oe)/2+2,ve-4,oe-4));tt.appendChild(Cn);var Jt=_t.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Jt.appendChild(_t.createTSpan(W+":"+V)),tt.appendChild(Jt);var Vn=Jt.getBBox();_t.setAttributes(Jt,[["x",((24-Vn.width)/2).toString()],["y",((24-Vn.height)/2-Vn.y).toString()]]);var Xn=_t.createPath(_t.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Vn.width))/2,(24-Math.ceil(Vn.height))/2,Math.ceil(Vn.width),Math.ceil(Vn.height)));return dn.appendChild(Xn),_t.setAttributes(Cn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(tt),tt.outerHTML}return''},re}(),aa=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne)||this;return oe.isDropdownOpen=!1,oe.onClick=oe.dropdownButtonClicked,oe.dropdownButtons=ve,oe}return St(W,re),W.prototype.setupDropdown=function(){var V=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(ne){ne.className=V.className,ne.colorsClassName=V.colorsClassName,V.dropdownBlock.appendChild(ne.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},W.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},W.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},W.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},W.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},W.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},W}(kr),Kr=function(){function re(W,V){this.GRIP_SIZE=10,this.color=W,this.fillColor=V,this.visual=_t.createGroup(),this.visual.appendChild(_t.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(_t.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return re.prototype.ownsTarget=function(W){return W===this.visual||W===this.visual.childNodes[0]||W===this.visual.childNodes[1]},re.prototype.setCenter=function(W,V){this.visual.childNodes.forEach(function(ne){return _t.setAttributes(ne,[["cx",W.toString()],["cy",V.toString()]])})},re}(),_a=function(){function re(W,V,ne,ve){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=W,this.canvasHeight=V,this.margin=ne,this.container=ve,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(re.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(W){this._aspectRatio=W,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(W){this._isGridVisible=W,this.gridContainer&&_t.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(W){this._zoomFactor=W,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),re.prototype.open=function(){var W=this;this.cropShadeElement=_t.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=_t.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var V=0;Vthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-V.height/2),_t.setAttributes(this.cropRectElement,[["x",V.x.toString()],["y",V.y.toString()],["width",V.width.toString()],["height",V.height.toString()]]);var ne=V.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(oe,tt){var Kt=V.y+ne*(tt+1);_t.setAttributes(oe,[["x1",""+V.x],["y1",""+Kt],["x2",""+(V.x+V.width)],["y2",""+Kt]])});var ve=V.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(oe,tt){var Kt=V.x+ve*(tt+1);_t.setAttributes(oe,[["x1",""+Kt],["y1",""+V.y],["x2",""+Kt],["y2",""+(V.y+V.height)]])}),_t.setAttributes(this.cropShadeElement,[["d",_t.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,V.x,V.y,V.width,V.height)]]),this.topLeftGrip.setCenter(V.x,V.y),this.topRightGrip.setCenter(V.x+V.width,V.y),this.bottomLeftGrip.setCenter(V.x,V.y+V.height),this.bottomRightGrip.setCenter(V.x+V.width,V.y+V.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},re.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)},re.prototype.clientToLocalCoordinates=function(W,V){var ne=this.container.getBoundingClientRect();return{x:W-ne.left+this.margin,y:V-ne.top+this.margin}},re.prototype.onPointerDown=function(W){this.container.setPointerCapture(W.pointerId),this.previousPoint=this.clientToLocalCoordinates(W.clientX,W.clientY),this.cropRectElement===W.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(W.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(W.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(W.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(W.target)&&(this.activeGrip=this.bottomRightGrip)},re.prototype.onPointerMove=function(W){if(this.isMoving)this.move(this.clientToLocalCoordinates(W.clientX,W.clientY));else if(this.activeGrip){var V=this.clientToLocalCoordinates(W.clientX,W.clientY);this.resize(V)}W.preventDefault()},re.prototype.onPointerUp=function(W){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(W.pointerId)},re.prototype.move=function(W){var V=W.x-this.previousPoint.x,ne=W.y-this.previousPoint.y;this.zoomFactor!==1&&(V=-V/this.zoomFactor,ne=-ne/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+V),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+ne),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=W},re.prototype.resize=function(W){var V=Object.assign({},this.cropRect),ne=W.x-this.previousPoint.x,ve=W.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:V.x+nethis.canvasWidth*this.zoomFactor&&(ne=this.canvasWidth*this.zoomFactor-V.width),V.width+=ne}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(V.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(ne),V.height=this.aspectRatio.getVerticalLength(V.width)):(V.y+=ve,V.height=this.cropRect.y+this.cropRect.height-V.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?V.height=this.aspectRatio.getVerticalLength(V.width):V.height+=ve}V.width<10&&(V.x=this.cropRect.x,V.width=10),V.height<10&&(V.y=this.cropRect.y,V.height=10),this.previousPoint=W,V.x>=this.margin&&V.y>=this.margin&&V.x-this.margin+V.width<=this.canvasWidth&&V.y-this.margin+V.height<=this.canvasHeight&&(this.cropRect=V,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},re.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var W=this.cropRect.x+this.cropRect.width/2,V=this.cropRect.y+this.cropRect.height/2,ne=this.aspectRatio.getHorizontalLength(this.cropRect.height),ve=this.aspectRatio.getVerticalLength(this.cropRect.width);ne/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=W-this.cropRect.width/2,this.cropRect.y=V-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)}},re.prototype.getRescaledRect=function(W,V,ne,ve,oe,tt){var Kt=ne/W,dn=ve/V;return{x:(oe.x-tt)*Kt+tt,y:(oe.y-tt)*dn+tt,width:oe.width*Kt,height:oe.height*dn}},re.prototype.scaleCanvas=function(W,V){var ne=this.getRescaledRect(this.canvasWidth,this.canvasHeight,W,V,this.cropRect,this.margin);this.canvasWidth=W,this.canvasHeight=V,this.onCropChange&&this.onCropChange(ne),this.setCropRectangle(ne)},re}(),di=function(){function re(W){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=W,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(re.prototype,"angle",{get:function(){return this._angle},set:function(W){this._angle=W,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),re.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},re.prototype.onPointerDown=function(W){this.controlContainer.setPointerCapture(W.pointerId),this.isDragging=!0,this.previousPoint={x:W.clientX,y:W.clientY}},re.prototype.onPointerMove=function(W){this.isDragging&&(this.onAngleChange&&this.onAngleChange((W.clientX-this.previousPoint.x)/5),this.previousPoint.x=W.clientX)},re.prototype.onPointerUp=function(W){this.isDragging&&this.onAngleChange&&this.onAngleChange((W.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(W.pointerId)},re.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var W=this.angleLabelText.getBBox();_t.setAttributes(this.angleLabelElement,[["x",((this.width-W.width)/2).toString()],["y",(this.height/2).toString()]])}},re.prototype.positionScaleShape=function(){if(this.scaleShape){var W=this.scaleShape.transform.baseVal.getItem(0);W.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(W,0)}},re.prototype.getVisual=function(){var W=document.createElementNS("http://www.w3.org/2000/svg","svg");W.setAttribute("xmlns","http://www.w3.org/2000/svg"),W.setAttribute("width",this.width+"px"),W.setAttribute("height",this.height+"px"),W.setAttribute("viewBox","0 0 "+this.width+" "+this.height),W.style.flexShrink="0",document.body.appendChild(W);for(var V="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,ne=1;ne<=this.width/5+10;ne++){var ve=ne%5==0?this.height/3:this.height/6;V+="h4v"+-ve+"h1v"+ve}V+="v1H0Z",this.scaleShape=_t.createPath(V);var oe=_t.createTransform();this.scaleShape.transform.baseVal.appendItem(oe),W.appendChild(this.scaleShape),this.angleLabelElement=_t.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=_t.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var tt=_t.createTSpan("");return tt.innerHTML="°",this.angleLabelElement.appendChild(tt),W.appendChild(this.angleLabelElement),document.body.removeChild(W),W},re}(),Ei=function(){function re(){this.naturalSize=!1,this.imageType="image/png"}return re.prototype.rasterize=function(W,V,ne,ve,oe,tt,Kt){var dn=this;return new Promise(function(Cn){var Jt=document.createElement("canvas");Jt.width=W.width.baseVal.value-2*ve,Jt.height=W.height.baseVal.value-2*ve;var Vn=1,Xn=1;dn.naturalSize===!0?(Vn=V.naturalWidth/(W.width.baseVal.value-2*ve)/tt,Xn=V.naturalHeight/(W.height.baseVal.value-2*ve)/Kt,Jt.width=V.naturalWidth/tt,Jt.height=V.naturalHeight/Kt):dn.width!==void 0&&dn.height!==void 0&&(Vn=dn.width/ne.width,Xn=dn.height/ne.height,Jt.width*=Vn,Jt.height*=Xn);var lr=Jt.getContext("2d");lr.translate(Jt.width/2,Jt.height/2),lr.rotate(oe*Math.PI/180),lr.scale(tt,Kt),lr.translate(-Jt.width/2,-Jt.height/2),lr.drawImage(V,0,0,Jt.width,Jt.height);var Rr=document.createElement("canvas");Rr.width=ne.width*Vn,Rr.height=ne.height*Xn,Rr.getContext("2d").putImageData(lr.getImageData((ne.x-ve)*Vn,(ne.y-ve)*Xn,ne.width*Vn,ne.height*Xn),0,0),Cn(Rr.toDataURL(dn.imageType,dn.imageQuality))})},re}(),_e=function(){function re(W){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=re.instanceCounter++,this.styles=new Gt(this.instanceNo),this.target=W,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(re.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(W){this._zoomToCropEnabled=W,W?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(W){this._isGridVisible=W,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"gridLines",{get:function(){return this._gridLines},set:function(W){this._gridLines=W,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(W){this._rotationAngle=W,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"aspectRatio",{get:function(){var W;return(W=this._aspectRatio)!==null&&W!==void 0?W:this.aspectRatios[0]},set:function(W){this._aspectRatio=W},enumerable:!1,configurable:!0}),re.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},re.prototype.show=function(){this.showUI(),this.open()},re.prototype.close=function(W){W===void 0&&(W=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),W||this.closeEventListeners.forEach(function(V){return V()}),this._isOpen=!1)},re.prototype.addRenderEventListener=function(W){this.renderEventListeners.push(W)},re.prototype.removeRenderEventListener=function(W){this.renderEventListeners.indexOf(W)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(W),1)},re.prototype.addCloseEventListener=function(W){this.closeEventListeners.push(W)},re.prototype.removeCloseEventListener=function(W){this.closeEventListeners.indexOf(W)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(W),1)},re.prototype.setupResizeObserver=function(){var W=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){W.resize(W.target.clientWidth,W.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))},re.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var W=1*this.target.clientWidth/this.target.clientHeight,V=this.contentDiv.clientWidth/W>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*W:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,ne=V+2*this.CANVAS_MARGINW+this.CANVAS_MARGIN?this.target.offsetTop-(W+this.CANVAS_MARGIN):0;this.coverDiv.style.top=V+"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},re.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},re.prototype.addTopToolbar=function(){var W=this;this.topToolbar=new mn,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 V=new Mr;V.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(V);var ne=[];this.aspectRatios.forEach(function(Xn){var lr=new kr(Xr.getIcon(Xn.horizontal,Xn.vertical),Xn.horizontal===0&&Xn.vertical===0?"FREE":Xn.horizontal+":"+Xn.vertical);lr.onClick=function(){return W.ratioButtonClicked(Xn)},ne.push(lr)}),this.aspectRatioButton=new aa(Xr.getIcon(0,0),"Aspect ratio",ne),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,V.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var ve=new kr('',"Toggle grid");ve.isActive=this.isGridVisible,ve.onClick=function(){W.isGridVisible=!W.isGridVisible,ve.isActive=W.isGridVisible},V.addButton(ve);var oe=new kr('',"Zoom to selection");if(oe.isActive=this.zoomToCropEnabled,oe.onClick=function(){W.zoomToCropEnabled=!W.zoomToCropEnabled,oe.isActive=W.zoomToCropEnabled},V.addButton(oe),!Qt.isLicensed){var tt=new Un;this.topToolbar.addElementBlock(tt);var Kt=document.createElement("div");Kt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var dn=document.createElement("a");dn.style.color="currentColor",dn.href="https://markerjs.com/products/cropro",dn.target="_blank",dn.innerHTML='',Kt.appendChild(dn),tt.addElement(Kt)}var Cn=new Mr;Cn.minWidth=3*this.toolbarHeight+"px",Cn.contentAlign="end",this.topToolbar.addButtonBlock(Cn);var Jt=new kr('',"OK");Jt.onClick=this.startRenderAndClose,Cn.addButton(Jt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Jt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Vn=new kr('',"Close");Vn.onClick=this.close,Cn.addButton(Vn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Vn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},re.prototype.addBottomToolbar=function(){var W=this;this.bottomToolbar=new mn,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 V=new Mr;V.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(V);var ne=new kr('',"Rotate left");ne.onClick=this.rotateLeftButtonClicked,V.addButton(ne);var ve=new kr('',"Rotate right");ve.onClick=this.rotateRightButtonClicked,V.addButton(ve);var oe=new Un;oe.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(oe),this.straightener=new di("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(Cn){W.rotateBy(Cn),W.straightener.angle=W.rotationAngle},oe.addElement(this.straightener.getUI());var tt=new Mr;tt.minWidth=2*this.toolbarHeight+"px",tt.contentAlign="end",this.bottomToolbar.addButtonBlock(tt);var Kt=new kr('',"Flip horizontal");Kt.onClick=this.flipHorizontallyButtonClicked,tt.addButton(Kt);var dn=new kr('',"Flip vertical");dn.onClick=this.flipVerticallyButtonClicked,tt.addButton(dn)},re.prototype.ratioButtonClicked=function(W){this.aspectRatio=W,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},re.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Xr.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},re.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Ra(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},re.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},re.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},re.prototype.restoreState=function(W){if(W){var V=this.cropLayer.getRescaledRect(W.width,W.height,this.imageWidth,this.imageHeight,W.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(V),this.cropRectChanged(V),this.flippedHorizontally=W.flippedHorizontally,this.flippedVertically=W.flippedVertically,this.applyFlip(),this.rotationAngle=W.rotationAngle,this.applyRotation()}},re.prototype.clientToLocalCoordinates=function(W,V){var ne=this.cropImage.getBoundingClientRect();return{x:W-ne.left,y:V-ne.top}},re.prototype.onWindowResize=function(){this.positionUI()},re.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var W=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=W+"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()},re.prototype.rotateLeftButtonClicked=function(){var W=this.rotationAngle-90;this.rotationAngle%90!=0&&(W+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(W)},re.prototype.rotateRightButtonClicked=function(){var W=this.rotationAngle+90;this.rotationAngle%90!=0&&(W-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(W)},re.prototype.rotateTo=function(W){W=(W=W>180?W-360:W)<=-180?W+360:W,this.rotationAngle=W,this.applyRotation()},re.prototype.rotateBy=function(W){this.rotateTo((this.rotationAngle+W)%360)},re.prototype.applyRotation=function(){var W=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var V=this.editingTargetRotationContainer.transform.baseVal.getItem(0);V.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(V,0);var ne=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/ne.width,this.imageHeight/ne.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=W},re.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},re.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},re.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},re.prototype.startRenderAndClose=function(){return bt(this,void 0,void 0,function(){var W,V;return Dt(this,function(ne){switch(ne.label){case 0:return[4,this.render()];case 1:return W=ne.sent(),V=this.getState(),this.renderEventListeners.forEach(function(ve){return ve(W,V)}),this.close(!0),[2]}})})},re.prototype.render=function(){return bt(this,void 0,void 0,function(){var W;return Dt(this,function(V){switch(V.label){case 0:return(W=new Ei).naturalSize=this.renderAtNaturalSize,W.imageType=this.renderImageType,W.imageQuality=this.renderImageQuality,W.width=this.renderWidth,W.height=this.renderHeight,this.unzoomFromCrop(),_t.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,W.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 V.sent(),[4,W.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,V.sent()]}})})},re.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new fn("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 fn("toolbar_colors",` background-color: `+this.styles.settings.toolbarBackgroundColor+`; `)),this.toolbarBlockStyleClass=this.styles.addClass(new fn("toolbar-block",` display: flex; align-items: center; box-sizing: content-box; `));var W=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new fn("toolbar_button",` display: inline-block; width: `+(this.toolbarHeight-2*W)+`px; height: `+(this.toolbarHeight-2*W)+`px; padding: `+W+`px; cursor: default; user-select: none; box-sizing: content-box; `)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new fn("toolbar_button_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; `)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new fn("toolbar_active_button",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; background-color: `+this.styles.settings.toolbarBackgroundActiveColor+` `)),this.styles.addRule(new kt("."+this.toolbarButtonStyleClass.name+" svg",` height: `+this.toolbarHeight/2+`px; `)),this.styles.addRule(new kt("."+this.toolbarButtonStyleColorsClass.name+":hover",` background-color: `+this.styles.settings.toolbarBackgroundHoverColor+` `)),this.toolbarDropdownStyleClass=this.styles.addClass(new fn("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 fn("toolbar_dropdown_colors",` background-color: `+this.styles.settings.toolbarBackgroundColor+`; `)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new fn("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 fn("toolbar_straightener",` display: flex; overflow: hidden; justify-content: center; height: `+(this.toolbarHeight-2*W)+`px; padding: `+W+`px; cursor: default; user-select: none; box-sizing: content-box; `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new fn("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; `))},re.instanceCounter=0,re}(),Ie=v("8hTe"),Ye=v.n(Ie),yt=/]*>/g;function Xt(re){var W=document.createElement("div");return W.innerHTML=re,W.childNodes.length===0?"":W.childNodes[0].nodeValue}var sn=ee.a=function(re){var W=re.value,V=W===void 0?"":W,ne=re.edit,ve=ne===void 0?!1:ne,oe=re.className,tt=re.showTextOnly,Kt=re.showLines,dn=re.replaces,Cn=re.zoomImg,Jt=re.hasMask,Vn=re.style,Xn=Vn===void 0?{}:Vn,lr=re.stylesPrev,Rr=lr===void 0?{}:lr,qr=String(V),zr=Object(p.useRef)(),Ca=Object(p.useRef)(),Dr=Object(p.useState)(""),ya=Object(M.a)(Dr,2),ka=ya[0],fi=ya[1],Ka=Object(p.useState)("office"),qa=Object(M.a)(Ka,2),Si=qa[0],pi=qa[1],ui=function(){var Pr=new _e(Ca.current);Pr.displayMode="popup",Pr.addRenderEventListener(function(){var ca=Object(O.a)(n.a.mark(function Jr(ri){var pa;return n.a.wrap(function(Di){for(;;)switch(Di.prev=Di.next){case 0:return zr.current.style.display="none",Di.next=3,Object(fe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ri}});case 3:pa=Di.sent,pa!=null&&pa.id&&dn(Ca.current.getAttribute("src").replace(K.a.API_SERVER,""),"/api/attachments/".concat(pa==null?void 0:pa.id,"?type=").concat(pa.content_type));case 5:case"end":return Di.stop()}},Jr)}));return function(Jr){return ca.apply(this,arguments)}}()),Pr.show()},mi=function(){var Pr=new Oe(Ca.current);Pr.settings.displayMode="popup",Pr.addEventListener("render",function(){var ca=Object(O.a)(n.a.mark(function Jr(ri){var pa;return n.a.wrap(function(Di){for(;;)switch(Di.prev=Di.next){case 0:if(zr.current.style.display="none",!Ca.current){Di.next=6;break}return Di.next=4,Object(fe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ri.dataUrl}});case 4:pa=Di.sent,pa!=null&&pa.id&&dn(Ca.current.getAttribute("src").replace(K.a.API_SERVER,""),"/api/attachments/".concat(pa==null?void 0:pa.id,"?type=").concat(pa.content_type));case 6:case"end":return Di.stop()}},Jr)}));return function(Jr){return ca.apply(this,arguments)}}()),Pr.show(),window.markerArea=Pr},_i=Object(p.useMemo)(function(){zr.current&&(zr.current.style.zIndex=-1);try{var ua=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Pr=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ca=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;qr=qr.replace(ua,"("+K.a.API_SERVER+"/api/attachments/").replace(Pr,'"'+K.a.API_SERVER+"/api/attachments/").replace(ca,'"'+K.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(mo){}var Jr=H(qr),ri=x();if(qr.match(/\[TOC\]/)&&(Jr=Jr.replace("

    [TOC]

    ",P()),E()),Jr=Jr.replace(/(__special_katext_id_\d+__)/g,function(mo,Di){var ci=ri[Di],Wo=ci.type,Mo=ci.expression;return Object($.renderToString)(Xt(Mo)||"",{displayMode:Wo==="block",throwOnError:!1,output:"html"})}),Jr=Jr.replace(/▁/g,"\u2581\u2581\u2581"),g(),tt){var pa=document.createElement("div");return pa.innerHTML=Jr,pa.innerText}return setTimeout(function(){return Yi()},500),Jr},[qr]),ai=Object(p.useRef)();R.WebkitLineClamp=Kt,Kt&&(Xn=Object(_.a)(Object(_.a)({},Xn),R));function Hi(ua){var Pr=ua.target;if(Pr.tagName.toUpperCase()==="IMG"){if(Cn){var ca=Pr.getAttribute("src");fi(ca),pi("image")}}else if(Pr.tagName.toUpperCase()==="A"){var Jr=Pr.getAttribute("href");if(Jr.indexOf("office")>-1)ua.preventDefault(),fi(Jr),pi("office");else if(Jr.indexOf("application/pdf")>-1)ua.preventDefault(),fi(Jr),pi("pdf");else if(Jr.indexOf("text/html")>-1)ua.preventDefault(),fi(Jr),pi("html");else if(Jr.startsWith("#")){ua.preventDefault();var ri=document.getElementById(Jr.replace("#",""));ri&&ri.scrollIntoView(!0)}}}var Yi=function(){var Pr,ca=(Pr=ai.current)===null||Pr===void 0?void 0:Pr.querySelectorAll("video");ca==null||ca.forEach(function(Jr){if(Jr.oncontextmenu=function(){return!1},Jr.src.indexOf(".m3u8")>-1&&!Jr.canPlayType("application/vnd.apple.mpegurl")){if(z.a.isSupported()){var ri=new z.a;ri.loadSource(Jr.src),ri.attachMedia(Jr)}}})};Object(p.useEffect)(function(){if(ai.current&&_i&&(_i.match(yt)&&window.PR.prettyPrint()),ai.current)return ai.current.addEventListener("click",Hi),function(){ai.current.removeEventListener("click",Hi),g(),E()}},[_i,ai.current,Hi]);var $r=function(Pr){if(!ve)return;Pr.target.nodeName==="IMG"?(zr.current.style.zIndex=1,zr.current.style.display="flex",zr.current.style.width=Pr.target.clientWidth+"px",zr.current.style.height=Pr.target.clientHeight+"px",zr.current.style.top=Pr.target.offsetTop+"px",zr.current.style.left=Pr.target.offsetLeft+"px",Ca.current.src=Pr.target.getAttribute("src")):zr.current.style.display="none"};return a.a.createElement("div",{style:{position:"relative"}},a.a.createElement("div",{ref:ai,style:Object(_.a)({},Xn),className:"".concat(oe||""," markdown-body ").concat(Ye.a.mdBody),onMouseOver:$r,dangerouslySetInnerHTML:{__html:_i}}),a.a.createElement("div",{ref:zr,className:Ye.a.button},a.a.createElement(Q.a,null,a.a.createElement(k.a,{onClick:function(){return ui()}},"\u88C1\u526A"),a.a.createElement(k.a,{onClick:function(){return mi()}},"\u7F16\u8F91"))),a.a.createElement("img",{ref:Ca,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),a.a.createElement(te.a,{close:!0,data:ka,type:ka!=null&&ka.length?Si:"",style:Object(_.a)({},Rr),onClose:function(){return fi("")}}))}},"9VGf":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return I});var Z=v("q1tI"),Q=v.n(Z);function I(k,_){var O=Object(Z.useRef)();Object(Z.useEffect)(function(){O.current=k}),Object(Z.useEffect)(function(){function M(){O.current()}if(_!==null){var T=setInterval(M,_);return function(){return clearInterval(T)}}},[_])}},"9nDM":function(Be,ee,v){},"9z17":function(Be,ee,v){"use strict";v.d(ee,"b",function(){return w});var Z=v("g9YV"),Q=v("wCAj"),I=v("5NDa"),k=v("5rEg"),_=v("y8nQ"),O=v("Vl3Y"),M=v("2qtc"),T=v("kLXV"),n=v("7Kak"),p=v("9yH6"),a=v("9og8"),t=v("tJVT"),A=v("WmNS"),l=v.n(A),i=v("q1tI"),c=v.n(i),d=v("ie49"),f=v.n(d),o=v("HBuW"),u=function(s){var h=s.total,m=s.used,x=s.copy,g=s.canNotCopy,y=s.inPaper,U="";return x>0&&g>0?U="\u5176\u4E2D\u6709".concat(x,"\u4E2A\u5B9E\u8BAD\u53EF\u4EE5\u590D\u5236\uFF0C\u6709").concat(g,"\u4E2A\u5B9E\u8BAD\u672A\u5F00\u653E\u590D\u5236"):x>0&&g===0?U="\u5176\u4E2D\u6709".concat(x,"\u4E2A\u5B9E\u8BAD\u53EF\u4EE5\u590D\u5236"):x===0&&g>0&&(U="\u5176\u4E2D\u6709".concat(g,"\u4E2A\u5B9E\u8BAD\u672A\u5F00\u653E\u590D\u5236")),"\u5F53\u524D\u9009\u4E2D".concat(h,"\u4E2A\u5B9E\u8BAD\u4E2D\uFF0C\u6709").concat(m,"\u4E2A\u5B9E\u8BAD\u5DF2\u5728\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C").concat(U).concat(y?"\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4F7F\u7528\u8BD5\u5377\uFF1F":"")},E=function(s){return s?{reproducible:"\u8BD5\u5377\u4E2D\u4E0B\u5217\u5B9E\u8BAD\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u590D\u5236\u4E3A\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u5230\u8BFE\u5802\uFF1F",irreproducible:"\u8BD5\u5377\u4E2D\u4E0B\u5217\u91CD\u590D\u4F7F\u7528\u7684\u5B9E\u8BAD\u672A\u5F00\u542F\u590D\u5236\u6743\u9650\uFF0C\u82E5\u7EE7\u7EED\u4F7F\u7528\u4F1A\u5BFC\u81F4\u6210\u7EE9\u76F8\u4E92\u5F71\u54CD"}:{reproducible:"\u5F53\u524D\u5B9E\u8BAD\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C\u662F\u5426\u590D\u5236\u4E3A\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u5230\u8BFE\u5802\uFF1F",irreproducible:"\u540C\u4E00\u5B9E\u8BAD\u5728\u4E00\u4E2A\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u76F8\u4E92\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\uFF1F"}},R=function(s){var h=s.onCancel,m=s.onOk,x=s.visible,g=s.inPaper,y=s.renderData,U=s.type,N=Object(i.useState)(1),S=Object(t.a)(N,2),H=S[0],F=S[1],B=Object(i.useState)(!1),z=Object(t.a)(B,2),K=z[0],$=z[1],te=Object(i.useMemo)(function(){return(y==null?void 0:y.total_num)===1&&(y==null?void 0:y.can_copy_num)===1},[y]);return c.a.createElement(c.a.Fragment,null,te?c.a.createElement(T.a,{centered:!0,closable:!0,visible:x,title:"\u63D0\u793A",width:600,confirmLoading:K,onCancel:h,onOk:Object(a.a)(l.a.mark(function fe(){return l.a.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return $(!0),ce.next=3,m(H);case 3:$(!1);case 4:case"end":return ce.stop()}},fe)}))},c.a.createElement("div",{className:f.a.content,style:{marginBottom:20}},"\u5F53\u524D\u5B9E\u8BAD\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u95EE\u662F\u5426\u590D\u5236\u6210\u65B0\u5B9E\u8BAD\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u4E2D\uFF1F"),c.a.createElement(p.a.Group,{value:H,onChange:function(Ae){return F(Ae.target.value)},className:f.a.content,style:{marginBottom:30}},c.a.createElement(p.a,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),c.a.createElement(p.a,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")),c.a.createElement("div",{className:f.a.content,style:{marginBottom:10}},"\u8BF4\u660E\uFF1A"),c.a.createElement("div",{className:f.a.content},"\u590D\u5236\u5B9E\u8BAD\uFF1A\u590D\u5236\u4E00\u4EFD\u65B0\u7684\u5B9E\u8BAD\u8FDB\u5165\u8BFE\u5802\uFF0C\u539F\u5B9E\u8BAD\u7684\u8C03\u6574\u4E0D\u4F1A\u5F71\u54CD\u5230\u590D\u5236\u7684\u5B9E\u8BAD\u4E2D\u3002"),c.a.createElement("div",{className:f.a.content},"\u4E0D\u590D\u5236\u5B9E\u8BAD\uFF1A\u540C\u4E00\u5B9E\u8BAD\u5728\u4E00\u4E2A\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u76F8\u4E92\u5F71\u54CD\u3002")):c.a.createElement(T.a,{centered:!0,closable:!0,visible:x,title:"\u63D0\u793A",width:600,onCancel:h,onOk:Object(a.a)(l.a.mark(function fe(){return l.a.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return $(!0),ce.next=3,m(0);case 3:$(!1);case 4:case"end":return ce.stop()}},fe)}))},c.a.createElement("div",{className:f.a.content},"\u5F53\u524D\u5B9E\u8BAD\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u540C\u4E00\u5B9E\u8BAD\u5728\u4E00\u4E2A\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u76F8\u4E92\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\uFF1F")))},w=function(){var s=Object(i.useState)(!1),h=Object(t.a)(s,2),m=h[0],x=h[1],g=Object(i.useState)(),y=Object(t.a)(g,2),U=y[0],N=y[1],S=function(){return x(!1)},H=function(){var F=Object(a.a)(l.a.mark(function B(z){var K;return l.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.next=2,Object(o.p)(z);case 2:if(K=te.sent,!("status"in K)){te.next=5;break}return te.abrupt("return",!1);case 5:if(!(K.repeat_shixun_num===0)){te.next=7;break}return te.abrupt("return",!1);case 7:return N(K),x(!0),te.abrupt("return",!0);case 10:case"end":return te.stop()}},B)}));return function(z){return F.apply(this,arguments)}}();return[m,S,U,H]},P=function(s){var h=O.a.useForm(),m=Object(t.a)(h,1),x=m[0],g=Object(i.useState)(!1),y=Object(t.a)(g,2),U=y[0],N=y[1],S=s.onCancel,H=s.onOk,F=s.visible,B=s.inPaper,z=B===void 0?!1:B,K=s.renderData,$=s.type,te=Object(i.useMemo)(function(){return z?[{title:"\u5B9E\u8BAD\u540D\u79F0",dataIndex:"name",width:424,align:"center",className:f.a.tableCell},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:function(ye,le){return c.a.createElement(c.a.Fragment,null,c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le.stage_shixun_id:le.id),"is_copy"],initialValue:1},c.a.createElement(p.a.Group,null,c.a.createElement(p.a,{value:1},"\u662F"),c.a.createElement(p.a,{value:0},"\u5426"))),c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le==null?void 0:le.stage_shixun_id:le.id),"is_use"],hidden:!0,initialValue:1},c.a.createElement(k.a,{type:"hidden"})))}}]:[{title:"\u5B9E\u8BAD\u540D\u79F0",dataIndex:"name",width:424,align:"center",className:f.a.tableCell},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:function(ye,le){return c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le.stage_shixun_id:le.id),"is_use"],initialValue:1},c.a.createElement(p.a.Group,null,c.a.createElement(p.a,{value:1},"\u662F"),c.a.createElement(p.a,{value:0},"\u5426")))}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:function(ye,le){return c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le.stage_shixun_id:le.id),"is_copy"],initialValue:1},c.a.createElement(p.a.Group,null,c.a.createElement(p.a,{value:1},"\u662F"),c.a.createElement(p.a,{value:0},"\u5426")))}}]},[z]),fe=Object(i.useMemo)(function(){return z?[{title:"\u5B9E\u8BAD\u540D\u79F0",dataIndex:"name",width:424,className:f.a.tableCell,align:"center",render:function(ye,le){return c.a.createElement(c.a.Fragment,null,c.a.createElement("span",null,ye),c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le==null?void 0:le.stage_shixun_id:le.id),"is_copy"],hidden:!0,initialValue:0},c.a.createElement(k.a,{type:"hidden"})),c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le==null?void 0:le.stage_shixun_id:le.id),"is_use"],hidden:!0,initialValue:1},c.a.createElement(k.a,{type:"hidden"})))}}]:[{title:"\u5B9E\u8BAD\u540D\u79F0",dataIndex:"name",width:424,className:f.a.tableCell,align:"center"},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:function(ye,le){return c.a.createElement(c.a.Fragment,null,c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le==null?void 0:le.stage_shixun_id:le.id),"is_use"],initialValue:0},c.a.createElement(p.a.Group,null,c.a.createElement(p.a,{value:1},"\u662F"),c.a.createElement(p.a,{value:0},"\u5426"))),c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le==null?void 0:le.stage_shixun_id:le.id),"is_copy"],hidden:!0,initialValue:0},c.a.createElement(k.a,{type:"hidden"})))}}]},[z]),Ae=Object(i.useMemo)(function(){return u({total:K==null?void 0:K.total_num,used:K==null?void 0:K.repeat_shixun_num,copy:K==null?void 0:K.can_copy_num,canNotCopy:K==null?void 0:K.no_copy_num,inPaper:z})},[K,z]),ce=Object(i.useMemo)(function(){return E(z)},[z]);return c.a.createElement(T.a,{title:"\u5B9E\u8BAD\u91CD\u590D\u4F7F\u7528\u63D0\u793A",centered:!0,visible:F,confirmLoading:U,onOk:Object(a.a)(l.a.mark(function ie(){var ye,le;return l.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return N(!0),ye=x.getFieldsValue(),le=Object.keys(ye).map(function(ge){return{id:parseInt(ge),is_use:ye[ge].is_use,is_copy:ye[ge].is_copy}}),se.next=5,H(le);case 5:N(!1);case 6:case"end":return se.stop()}},ie)})),onCancel:S,width:800,okText:"\u786E\u8BA4",className:f.a.antdModal,destroyOnClose:!0},c.a.createElement(O.a,{form:x,preserve:!1},c.a.createElement("div",{className:f.a.brief},Ae),(K==null?void 0:K.can_copy_num)>0&&c.a.createElement("div",null,c.a.createElement("div",{className:f.a.contentTitle},"\u53EF\u590D\u5236\u5B9E\u8BAD"),c.a.createElement("div",{className:f.a.content},ce.reproducible),c.a.createElement("div",{className:f.a.tips},c.a.createElement("div",null,"\u590D\u5236\u5B9E\u8BAD\uFF1A\u590D\u5236\u4E00\u4EFD\u65B0\u7684\u5B9E\u8BAD\u8FDB\u5165\u8BFE\u5802\uFF0C\u539F\u5B9E\u8BAD\u7684\u8C03\u6574\u4E0D\u4F1A\u5F71\u54CD\u5230\u590D\u5236\u7684\u5B9E\u8BAD\u4E2D\u3002"),c.a.createElement("div",null,"\u4E0D\u590D\u5236\u5B9E\u8BAD\uFF1A\u540C\u4E00\u5B9E\u8BAD\u5728\u4E00\u4E2A\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u76F8\u4E92\u5F71\u54CD\u3002")),c.a.createElement(Q.a,{columns:te,className:f.a.antdTable,dataSource:K==null?void 0:K.can_copy_list,rowKey:$==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(K==null?void 0:K.no_copy_num)>0&&c.a.createElement("div",null,c.a.createElement("div",{className:f.a.contentTitle},"\u4E0D\u53EF\u590D\u5236\u5B9E\u8BAD"),c.a.createElement("div",{className:f.a.content},ce.irreproducible),c.a.createElement(Q.a,{columns:fe,className:f.a.antdTable,dataSource:K==null?void 0:K.no_copy_list,rowKey:$==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(K==null?void 0:K.no_use_list.length)>0&&(K==null?void 0:K.no_use_list.map(function(ie){return c.a.createElement("div",{key:$==="subject"?ie.stage_shixun_id:ie.id},c.a.createElement(O.a.Item,{name:["".concat($==="subject"?ie==null?void 0:ie.stage_shixun_id:ie.id),"is_copy"],hidden:!0,initialValue:0},c.a.createElement(k.a,{type:"hidden"})),c.a.createElement(O.a.Item,{name:["".concat($==="subject"?ie==null?void 0:ie.stage_shixun_id:ie.id),"is_use"],hidden:!0,initialValue:1},c.a.createElement(k.a,{type:"hidden"})))}))))},C=function(s){var h=s.modalType;return h==="multiple"?c.a.createElement(P,s):c.a.createElement(R,s)};ee.a=C},"A/g1":function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoIA+tBBAAgAAikjNZ47zCIh8E8mOjYO1aOD3L7DYzXZJurs8qhuzLqFsH22hcbUs6CMudAol8Ic2Dkkb0fuvEj3IinwvobjTOeRP1safOuIPIA/AMpxbsb4z3fc9PVUQLvRY37L/vMDxtT2peCBpU97BywlkD9sXjvbzcfG7jTSYeSCZyK6l9tTCkn75xXHAVcChh4zCDzLy1DfQ+U0tomcDaSO9A8rb0WWN5P3QK+SzCPx471bLdTWSYwFdZfXz/j+e7SG3MHE73SGu+19FE0gTNV+o8aU9pXls+Waw7E4r2fL9ZQkMB4jd5xd1r96fJ7cgeDX944vL8hv74ggdUZccRrLsw4/1fQCpLyYH7tRxKYCutv1M4rK26fKdd8Nn+euJnAySp9w+o5dettt+QSItHV+nb/qsXyzddj1KAXlnmSsuIMgV8v1sCgHxdWcj002QXgh8BCAqdq9B33T2tbltOlBWcEia+NtO86nd/QOtR3EGyxXmHZHXun78jow7tPCgAI6NixpGsbZ1ibj/d2gvkZy55EHpbcDiz8BkK62LRsNotjaX5TvK8NzH0lI5j0aQAQ4z69pjarfGwZTFphab55sCdogntAFCgZhfgLn3xtv19oPnTexuFjaR4ANJV6CWhzGEvNrpQPiYBOt+vVaWu+Nd7bCaDTTUCS9LDwSNQuiT17bM3fGPd4zn1YWSc8kqJO5e9H9P6LAeNvLp9ia755sCcoiftAKLqptoOI6oRXUsiJ+FxIf/MTM9quNRl1/XhN7p7zQWPUQTdb88CNcQ9GWXMQA3XCb5JWSngxYJxtSGtfXCxvuOqZrJ9VN53wpcMfhIxhs8jSb0aT2VLmyxn3edQ52hOnNf5dsfrN86H0x9Nqu8KgqbBxdF5hCdwwfyFkPmFnflO8rw3AL8qy/V9YzCmsl1I1pNTdp6N6t52mMaVu85mkTEb0ly6EzCeaprXfWGmbB3uCTHgOLk9FCqGkmhWcBlBjJ9MkUX1K3TcRzV5qmvYesdOum9G+Weqxmop+Zo65dFsAEydFTvC0E3HQIHVNWnvpvRVGRYu+G+Oenq4kxiIk+ZLIKbjitEO1Lvyr0/SHieD8qtLqQhbG/Qvl9C2OSIqMWvwHasUdWSW6Umojbh/VPNgTlOCCLWElsOB3hO7BL6XLHfCqOaXuYsA466aPR6XnAZQ8qHKB4fWJP4kNV7SrV3ymqwNVAFiTUe85HzLedaKNxfd/h4FvuPdoA9Hvj7ftmhMAkFbZyaxaQH1a3XwurL9tp4kN7fsUQz5fTnxbGH8GFt7DcwpecTuMFmlIaZ+bjOgvF2u7d/gnIWZR+Q1KPowcIIaAhQSarqmH/xE0TpQbb92M9uT7kdz+/HqfDB0EcF/ZRi1ggYFER/cYcMtMOO3jzlmVjXKDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},A2z3:function(Be,ee,v){Be.exports=v.p+"static/Certificate.80413b23.png"},AZ8Y:function(Be,ee,v){"use strict";v.r(ee);var Z=v("T2oS"),Q=v("W9HT"),I=v("k1fw"),k=v("9og8"),_=v("tJVT"),O=v("PpiC"),M=v("Znn+"),T=v("ZTPi"),n=v("WmNS"),p=v.n(n),a=v("q1tI"),t=v.n(a),A=v("Ty5D"),l=v("9kvl"),i=v("+L6B"),c=v("2/Rp"),d=v("oBTY"),f=v("pC0b"),o=v("GzdX"),u=v("+BJd"),E=v("mr32"),R=v("qVdP"),w=v("jsC+"),P=v("lUTK"),C=v("BvKs"),b=v("5Dmo"),s=v("3S7+"),h=v("7Kak"),m=v("9yH6"),x=v("2qtc"),g=v("kLXV"),y=v("miYZ"),U=v("tsqr"),N=v("0NbB"),S=v("JTSX"),H=v.n(S),F=v("xKgJ"),B=v("Mgx3"),z=v("ozfa"),K=v("MJZm"),$=v("sRBo"),te=v("kaz8"),fe=v("14J3"),Ae=v("BMrR"),ce=v("jCWc"),ie=v("kPKH"),ye=v("OaEy"),le=v("2fM7"),me=v("wd/R"),se=v.n(me),ge=v("kNP/"),ae=v.n(ge),pe=v("1vsH"),Me=v("9z17"),xe=le.a.Option,Ke=function(qe){var Bt=qe.pathsDetail,$t=qe.globalSetting,cn=qe.loading,Wt=qe.dispatch,_n=Object(O.a)(qe,["pathsDetail","globalSetting","loading","dispatch"]),rn=Object(A.i)(),Ht=Object(a.useState)(),An=Object(_.a)(Ht,2),qt=An[0],En=An[1],kn=Object(a.useState)([]),Yt=Object(_.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=Object(a.useState)([]),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1],hr=Object(a.useState)([]),pn=Object(_.a)(hr,2),Dn=pn[0],Nn=pn[1],Gn=Object(a.useState)(),yn=Object(_.a)(Gn,2),Kn=yn[0],or=yn[1],gr=Object(a.useState)(),Ur=Object(_.a)(gr,2),er=Ur[0],rr=Ur[1],Lr=Object(a.useState)(!0),Er=Object(_.a)(Lr,2),_r=Er[0],sa=Er[1];Object(a.useEffect)(function(){Bt.actionTabs.key==="PathsDetail-SendToClass"&&tr()},[Bt.actionTabs.key]);var ta=function(ba){switch(ba.item_type){case"Shixun":return t.a.createElement("span",null,t.a.createElement("span",{className:"mr5 c-light-primary"},"\u5B9E\u8BAD"),ba.name);case"Attachment":return t.a.createElement("span",null,t.a.createElement("span",{className:"mr5 c-cyan-blue"},"\u8BFE\u4EF6"),ba.name);case"VideoItem":return t.a.createElement("span",null,t.a.createElement("span",{className:"mr5 c-purple-8C1"},"\u89C6\u9891"),ba.name);case"StageCatalog":return t.a.createElement("span",null,ba.name);default:return""}},tr=function(){var da=Object(k.a)(p.a.mark(function ba(){var ha,Ta,Da;return p.a.wrap(function(Qr){for(;;)switch(Qr.prev=Qr.next){case 0:return Qr.next=2,Object(B.G)({id:rn.pathId});case 2:ha=Qr.sent,ha&&(ln((ha==null?void 0:ha.courses)||[]),Da=(Ta=ha.stages)===null||Ta===void 0?void 0:Ta.map(function(Wa,Ea){var za;return{title:Wa.state_name||"",key:Ea,children:(za=Wa.items)===null||za===void 0?void 0:za.map(function(hi,Ji){var Li;return Object(I.a)(Object(I.a)({},hi),{},{disabled:hi.is_jupyter,title:ta(hi),key:"".concat(Ea,"-").concat(Ji),children:(Li=hi.children)===null||Li===void 0?void 0:Li.map(function(Ci,Uo){return Object(I.a)(Object(I.a)({},Ci),{},{disabled:Ci.is_jupyter,title:ta(Ci),key:"".concat(Ea,"-").concat(Ji,"-").concat(Uo)})})})})}}),Sn(Da||[]));case 4:case"end":return Qr.stop()}},ba)}));return function(){return da.apply(this,arguments)}}(),vr=function(ba,ha){Nn(ba)},ja=function(ba){var ha=ba.target.checked,Ta=[];Vt==null||Vt.map(function(Da,Ua){var Qr;Ta.push(Ua),Da==null||((Qr=Da.children)===null||Qr===void 0)||Qr.map(function(Wa,Ea){var za;Ta.push("".concat(Ua,"-").concat(Ea)),Wa==null||((za=Wa.children)===null||za===void 0)||za.map(function(hi,Ji){Ta.push("".concat(Ua,"-").concat(Ea,"-").concat(Ji))})})}),Nn(ha?Ta:[])},ia=function(){var ba=Dn.filter(function(Qr){return typeof Qr=="string"}),ha=[],Ta=[],Da=[],Ua=[];return Vt==null||Vt.map(function(Qr,Wa){var Ea;Qr==null||((Ea=Qr.children)===null||Ea===void 0)||Ea.map(function(za,hi){var Ji;ba.includes("".concat(Wa,"-").concat(hi))&&(Da.push(za.stage_item_id),za.item_type==="Shixun"?ha.push(za.id):za.item_type==="Attachment"?Ua.push(za.id):za.item_type==="VideoItem"&&Ta.push(za.id)),za==null||((Ji=za.children)===null||Ji===void 0)||Ji.map(function(Li,Ci){ba.includes("".concat(Wa,"-").concat(hi,"-").concat(Ci))&&(Da.push(Li.stage_item_id),Li.item_type==="Shixun"?ha.push(Li.id):Li.item_type==="Attachment"?Ua.push(Li.id):Li.item_type==="VideoItem"&&Ta.push(Li.id))})})}),{shixunIds:ha,videoItemIds:Ta,stageItemIds:Da,coursewareIds:Ua}},Yn=Object(Me.b)(),vn=Object(_.a)(Yn,4),yr=vn[0],oi=vn[1],Cr=vn[2],Ir=vn[3],fr=function(){var da=Object(k.a)(p.a.mark(function ba(){var ha,Ta,Da;return p.a.wrap(function(Qr){for(;;)switch(Qr.prev=Qr.next){case 0:if(ha=ia(),Ta=ha.stageItemIds,qt){Qr.next=4;break}return U.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u53D1\u9001\u7684\u8BFE\u5802"),Qr.abrupt("return");case 4:if(!(!qn.length&&!cr.length&&!Pa.length)){Qr.next=7;break}return U.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u5B9E\u8BAD\u6216\u8005\u89C6\u9891"),Qr.abrupt("return");case 7:return rr(!0),Qr.next=10,Ir({id:rn.pathId,course_id:parseInt(qt),type:"subject",stage_item_id:Ta,sync_catelog:_r?1:0});case 10:if(Da=Qr.sent,Da){Qr.next=14;break}return Qr.next=14,ar(Ta.map(function(Wa){return{id:Wa,is_copy:0,is_use:1}}));case 14:rr(!1),Ln();case 16:case"end":return Qr.stop()}},ba)}));return function(){return da.apply(this,arguments)}}(),ar=function(){var da=Object(k.a)(p.a.mark(function ba(ha){var Ta;return p.a.wrap(function(Ua){for(;;)switch(Ua.prev=Ua.next){case 0:return Ua.next=2,Object(B.O)({id:rn.pathId,course_id:qt,stage_shixuns:ha.map(function(Qr){return{stage_shixun_id:Qr.id,is_copy:Qr.is_copy,is_use:Qr.is_use}}),sync_catelog:_r?1:0});case 2:Ta=Ua.sent,En(null),oi(),(Ta==null?void 0:Ta.status)===1&&g.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},Ta.message),onOk:function(){var Wa,Ea=Ta==null||((Wa=Ta.url.split("/"))===null||Wa===void 0)?void 0:Wa[2];Object(pe.S)("/classrooms/".concat(Ea,"/shixun_homework"))}});case 6:case"end":return Ua.stop()}},ba)}));return function(ha){return da.apply(this,arguments)}}(),Ln=function(){Wt({type:"pathsDetail/setActionTabs",payload:{}}),Nn([]),or(null)},Mn=ia(),gn=Mn.shixunIds,qn=gn===void 0?[]:gn,na=Mn.videoItemIds,cr=na===void 0?[]:na,jr=Mn.coursewareIds,Pa=jr===void 0?[]:jr;return t.a.createElement(t.a.Fragment,null,t.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Bt.actionTabs.key==="PathsDetail-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:er,width:600,onOk:fr,onCancel:Ln},t.a.createElement("div",{className:ae.a.wrap},t.a.createElement("div",{className:"mb10"},t.a.createElement(le.a,{placeholder:"\u8BF7\u9009\u62E9\u60A8\u8981\u53D1\u9001\u7684\u8BFE\u5802",defaultOpen:!1,value:qt,style:{width:"100%"},onSelect:function(ba){return En(ba)},optionLabelProp:"lable"},wn==null?void 0:wn.map(function(da,ba){return t.a.createElement(xe,{key:da.course_id,value:da.course_id,lable:da.course_name},t.a.createElement(Ae.a,{justify:"space-between"},t.a.createElement(ie.a,null,da.course_name),t.a.createElement(ie.a,null,se()(da.created_at).format("YYYY-MM-DD HH:mm"))))}))),t.a.createElement("div",{className:ae.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A",t.a.createElement("br",null),"1.\u8BF7\u5728\u672C\u8BFE\u7A0B\u4E2D\u9009\u62E9\u6240\u9700\u9879\u76EE\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\uFF1B",t.a.createElement("br",null),"2.\u672A\u53D1\u5E03\u7684\u5B9E\u8BAD\u4E0D\u80FD\u53D1\u9001\u81F3\u8BFE\u5802\uFF0C\u4E5F\u4E0D\u4F1A\u8FDB\u5165\u672C\u5F39\u7A97\u5907\u9009\u3002"),t.a.createElement("div",{className:ae.a.radioWrap},t.a.createElement("div",null,t.a.createElement(te.a,{value:Kn,onChange:ja,className:"font14 ml20"},"\u5168\u9009")),!!(Vt!=null&&Vt.length)&&t.a.createElement(K.a,{className:ae.a.tree,checkable:!0,defaultExpandAll:!0,treeData:Vt,checkedKeys:Dn,onCheck:function(ba,ha){return vr(ba,ha)}})),t.a.createElement("div",{className:ae.a.createMkdir},t.a.createElement(te.a,{checked:_r,onChange:function(ba){return sa(ba.target.checked)},className:"font14"},"\u9009\u4E2D\u7AE0\u8282\u5728\u8BFE\u5802\u4E2D\u540C\u6B65\u751F\u6210\u76EE\u5F55"),!!(qn.length+cr.length)&&t.a.createElement("span",null,t.a.createElement("span",null,"\u5DF2\u9009\u4E2D\uFF1A"),!!qn.length&&t.a.createElement(t.a.Fragment,null,t.a.createElement("span",{className:"c-light-primary"},qn.length," "),t.a.createElement("span",null,"\u4E2A\u5B9E\u8BAD")),!!cr.length&&t.a.createElement(t.a.Fragment,null,t.a.createElement("span",{className:"c-purple-8C1 ml5"},cr.length," "),t.a.createElement("span",null,"\u4E2A\u89C6\u9891")),!!Pa.length&&t.a.createElement(t.a.Fragment,null,t.a.createElement("span",{className:"c-cyan-blue ml5"},Pa.length," "),t.a.createElement("span",null,"\u4E2A\u8BFE\u4EF6")))))),t.a.createElement(Me.a,{visible:yr,inPaper:!1,renderData:Cr,onCancel:oi,onOk:ar,modalType:"multiple",type:"subject"}))},et=Object(l.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.loading,$t=lt.globalSetting;return{pathsDetail:qe,globalSetting:$t,loading:Bt.effects}})(Ke),he=v("NLgs"),Se=v("P5Jw"),Ue=v("5NDa"),Ne=v("5rEg"),ct=v("6UJt"),ft=v("DFOY"),Ot=v("y8nQ"),dt=v("Vl3Y"),Ut=v("ErOA"),jt=v("OC45"),ze=v.n(jt),Ve=function(qe){var Bt=qe.type,$t=qe.onCancel,cn=qe.onOk,Wt=dt.a.useForm(),_n=Object(_.a)(Wt,1),rn=_n[0],Ht=Object(a.useState)(!0),An=Object(_.a)(Ht,2),qt=An[0],En=An[1],kn=Object(a.useState)(!1),Yt=Object(_.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=Object(a.useState)([]),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1];Object(a.useEffect)(function(){hr()},[]);var hr=function(){var Dn=Object(k.a)(p.a.mark(function Nn(){var Gn;return p.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(!Bt){Kn.next=7;break}return ln(!0),Kn.next=4,Object(Ut.a)("/api/disciplines.json",{method:"get",params:{source:Bt}});case 4:Gn=Kn.sent,Sn(Gn.disciplines||[]),ln(!1);case 7:case"end":return Kn.stop()}},Nn)}));return function(){return Dn.apply(this,arguments)}}(),pn=function(){var Nn=rn.getFieldsValue(),Gn=Nn.sub_discipline_id,yn=Nn.discipline_name,Kn=Nn.sub_discipline_name;if((!Gn||Gn&&Gn.length===0)&&(!yn||!Kn))return U.b.warn("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"),!1;cn({user_customize:Gn&&Gn.length===0||!Gn,sub_discipline_id:Gn,discipline_name:yn,sub_discipline_name:Kn})};return t.a.createElement(g.a,{width:600,className:ze.a.applyPublicContainer,title:"\u6DFB\u52A0\u65B9\u5411&\u8BFE\u7A0B\u5F39\u7A97",okText:"\u7533\u8BF7\u516C\u5F00",visible:!0,onCancel:$t,onOk:pn},t.a.createElement("div",{className:ze.a.applyPublicContent},t.a.createElement("div",{className:ze.a.tips},"\u9700\u586B\u5199\u5B9E\u8DF5\u9879\u76EE\u7684\u65B9\u5411&\u8BFE\u7A0B\u540E\uFF0C\u624D\u80FD\u7533\u8BF7\u516C\u5F00"),t.a.createElement(dt.a,{labelCol:{span:4},labelAlign:"right",form:rn},t.a.createElement(dt.a.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"sub_discipline_id"},t.a.createElement(ft.a,{expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Vt,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:function(Nn,Gn){return rn.setFieldsValue({sub_discipline_id:Nn})}}),t.a.createElement("div",{className:ze.a.action,onClick:function(){return En(!qt)}},t.a.createElement("div",null,"\u81EA\u5B9A\u4E49\u65B9\u5411&\u8BFE\u7A0B"),t.a.createElement("div",null,t.a.createElement("span",null,qt?"\u5C55\u5F00":"\u6536\u8D77"),t.a.createElement("span",null,t.a.createElement("i",{className:"iconfont ".concat(qt?"icon-zhankai2":"icon-shouqi1")}))))),!qt&&t.a.createElement(t.a.Fragment,null,t.a.createElement(dt.a.Item,{label:"\u65B9\u5411",name:"discipline_name"},t.a.createElement(Ne.a,{placeholder:"\u8BF7\u8F93\u5165\u65B9\u5411",autoComplete:"off"})),t.a.createElement(dt.a.Item,{label:"\u8BFE\u7A0B",name:"sub_discipline_name"},t.a.createElement(Ne.a,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B",autoComplete:"off"})))),wn&&t.a.createElement("div",{className:ze.a.spin},t.a.createElement(Q.a,null))))},Et=Ve,Rt=v("9Bee"),ut=v("m3rI"),vt=v("OljG"),Ze=v.n(vt),ke=v("MKdu"),He=v.n(ke),we=v("Nddv"),Le=v.n(we),Pe=v("vUf6"),We=v.n(Pe),Xe=v("eqIj"),gt=v.n(Xe),Lt=v("ZKmM"),en=v.n(Lt),Zt=function(qe){var Bt,$t,cn,Wt,_n,rn,Ht,An,qt,En,kn,Yt,wn,ln,xn,an,Vt,Sn,hr,pn,Dn,Nn,Gn,yn,Kn,or,gr,Ur,er,rr,Lr,Er,_r,sa,ta,tr,vr,ja,ia,Yn,vn,yr,oi,Cr,Ir,fr,ar,Ln,Mn,gn,qn,na,cr,jr,Pa,da,ba,ha,Ta,Da,Ua,Qr,Wa,Ea,za,hi,Ji,Li,Ci,Uo,Ao,_o,as,fs,is,os,So,ps,Qi,Aa,wi,vi,vo,uo,Ki,ss,ls,qo,fo,zo,yo,es,Go,Oa,la,xi,Zi,Oo,co,No,Wi,Ai,Vo,Pn,ts,lo,Ha,Fi,Ti,Ro,Oi,Fo,ns,ms,Xo,Ss,Fs,On=qe.pathsDetail,nr=qe.user,zt=qe.globalSetting,on=qe.loading,Tn=qe.dispatch,Hn=Object(O.a)(qe,["pathsDetail","user","globalSetting","loading","dispatch"]),jn=Object(A.i)(),pr=Object(a.useState)({}),dr=Object(_.a)(pr,2),Bn=dr[0],Yr=dr[1],Ri=Object(a.useRef)(1),ir=Object(a.useState)(),si=Object(_.a)(ir,2),ao=si[0],zi=si[1],Wn=Object(a.useState)(!1),Qa=Object(_.a)(Wn,2),Gi=Qa[0],li=Qa[1],io=Object(a.useState)(!1),Yo=Object(_.a)(io,2),ko=Yo[0],jo=Yo[1],gs=Object(a.useState)({status:!1}),ki=Object(_.a)(gs,2),sl=ki[0],vl=ki[1],Os=((Bt=On.detail)===null||Bt===void 0?void 0:Bt.is_free)||(($t=On.detail)===null||$t===void 0?void 0:$t.can_learning);Object(a.useEffect)(function(){vl({status:!1})},[]),Object(a.useEffect)(function(){function ea(){return Fr.apply(this,arguments)}function Fr(){return Fr=Object(k.a)(p.a.mark(function Ga(){var Wr,ma,ga,Na,La,Vi,$a;return p.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:return Rn.next=2,Tn({type:"pathsDetail/getPathsDetail",payload:{id:jn.pathId}});case 2:Wr=Rn.sent,Wr!=null&&Wr.toast&&(Wr!=null&&(ma=Wr.toast)!==null&&ma!==void 0&&ma.is_open&&((ga=Wr.toast)===null||ga===void 0?void 0:ga.open_num)===-1?jo(!0):Wr!=null&&(Na=Wr.toast)!==null&&Na!==void 0&&Na.is_open&&(Wr==null||((La=Wr.toast)===null||La===void 0)?void 0:La.open_num)===1?($a=JSON.parse(localStorage.getItem("pathsshow"))||[],((Vi=$a.filter(function(xr){return xr===(jn==null?void 0:jn.pathId)}))===null||Vi===void 0?void 0:Vi.length)>0?jo(!1):(jo(!0),$a.push(jn==null?void 0:jn.pathId),localStorage.setItem("pathsshow",JSON.stringify($a)))):jo(!1));case 4:case"end":return Rn.stop()}},Ga)})),Fr.apply(this,arguments)}ea()},[]),Object(a.useEffect)(function(){var ea,Fr,Ga,Wr,ma=(ea=On.detail)===null||ea===void 0||((Fr=ea.courses)===null||Fr===void 0)?void 0:Fr.length;if(!ma)return;var ga;if((Ga=On.detail)!==null&&Ga!==void 0&&Ga.has_start){var Na,La,Vi=(Na=On.detail)===null||Na===void 0||((La=Na.courses)===null||La===void 0)?void 0:La.findIndex(function(Jn){var ra;return((ra=Jn.course_status)===null||ra===void 0?void 0:ra.status)===1});ga=Vi>-1?Vi:0}else{var $a,ys,Rn,xr,In,Gr=($a=On.detail)===null||$a===void 0||((ys=$a.courses)===null||ys===void 0||((Rn=ys.map(function(Jn){var ra;return(ra=Jn.course_status)===null||ra===void 0?void 0:ra.status}))===null||Rn===void 0))?void 0:Rn.lastIndexOf(2);ga=Gr>-1?Gr:0,Gr=(xr=On.detail)===null||xr===void 0||((In=xr.courses)===null||In===void 0)?void 0:In.findIndex(function(Jn){var ra;return((ra=Jn.course_status)===null||ra===void 0?void 0:ra.status)===0}),ga=Gr>-1?Gr:ga}Yr(((Wr=On.detail)===null||Wr===void 0?void 0:Wr.courses[ga])||{})},[On.detail]);var ks=function(Fr){var Ga,Wr,ma=(Ga=On.detail)===null||Ga===void 0||((Wr=Ga.courses)===null||Wr===void 0)?void 0:Wr.find(function(ga){return ga.course_id===Fr});Yr(ma||{}),Tn({type:"classroomList/setActionTabs",payload:{key:"\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4",name:Fr}})},us=function(){var ea=Object(k.a)(p.a.mark(function Fr(){var Ga;return p.a.wrap(function(ma){for(;;)switch(ma.prev=ma.next){case 0:return ma.next=2,Object(B.k)({container_id:jn.pathId,container_type:"Subject"});case 2:Ga=ma.sent,Ga.status===0&&(vs(),U.b.success(Ga.message));case 4:case"end":return ma.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),ll=function(){var ea=Object(k.a)(p.a.mark(function Fr(){var Ga;return p.a.wrap(function(ma){for(;;)switch(ma.prev=ma.next){case 0:return ma.next=2,Object(B.n)({container_id:jn.pathId,container_type:"Subject"});case 2:Ga=ma.sent,Ga.status===0&&(vs(),U.b.success(Ga.message));case 4:case"end":return ma.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),ul=function(){var ea=Object(k.a)(p.a.mark(function Fr(){return p.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u5220\u9664\u5B9E\u8DF5\u8BFE\u7A0B?"),onOk:function(){var ma=Object(k.a)(p.a.mark(function Na(){var La;return p.a.wrap(function($a){for(;;)switch($a.prev=$a.next){case 0:return $a.next=2,Object(B.q)({id:jn.pathId});case 2:La=$a.sent,La.status===1&&l.d.push("/paths");case 4:case"end":return $a.stop()}},Na)}));function ga(){return ma.apply(this,arguments)}return ga}()});case 1:case"end":return Wr.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),Sl=function(){var ea=Object(k.a)(p.a.mark(function Fr(){return p.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:g.a.info({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:t.a.createElement("div",{className:"tc"},"\u8BFE\u7A0B\u53D1\u5E03\u540E\u5373\u53EF\u53D1\u9001\u8BFE\u5802\u4F7F\u7528"),onOk:function(){var ma=Object(k.a)(p.a.mark(function Na(){var La;return p.a.wrap(function($a){for(;;)switch($a.prev=$a.next){case 0:return $a.next=2,Object(B.h)({id:jn.pathId});case 2:La=$a.sent,(La==null?void 0:La.status)===0&&(vs(),U.b.success(La.message));case 4:case"end":return $a.stop()}},Na)}));function ga(){return ma.apply(this,arguments)}return ga}()});case 1:case"end":return Wr.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),Zs=function(){var ea=Object(k.a)(p.a.mark(function Fr(){return p.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F"),okButtonProps:{loading:Gi},onOk:function(){var ma=Object(k.a)(p.a.mark(function Na(){var La;return p.a.wrap(function($a){for(;;)switch($a.prev=$a.next){case 0:return li(!0),$a.next=3,Object(B.m)({id:jn.pathId});case 3:La=$a.sent,(La==null?void 0:La.status)===1&&(vs(),U.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F")),li(!1);case 6:case"end":return $a.stop()}},Na)}));function ga(){return ma.apply(this,arguments)}return ga}()});case 1:case"end":return Wr.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),rs=function(){On.detail&&On.detail.has_sub_discipline?Qs({user_customize:!1}):cl(!0)},cl=function(Fr){vl({status:Fr})},Qs=function(Fr){g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A\u7533\u8BF7",cancelText:"\u53D6\u6D88\u7533\u8BF7",content:t.a.createElement("div",{className:"tc"},"\u516C\u5F00\u8BFE\u7A0B\u9700\u7ECF\u8FC7\u5E73\u53F0\u6807\u51C6\u5316\u5BA1\u6838\uFF0C\u5BA1\u6838\u5468\u671F\u4E3A1-2\u5929\uFF0C\u516C\u5F00",t.a.createElement("br",null),"\u7684\u8BFE\u7A0B\u5C06\u5BF9\u5E73\u53F0\u6240\u6709\u4EBA\u53EF\u89C1\u3002\u82E5\u4EC5\u672C\u4EBA\u6559\u5B66\u4F7F\u7528\u5219\u65E0\u9700",t.a.createElement("br",null),"\u7533\u8BF7\u516C\u5F00\uFF0C\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u5373\u53EF",t.a.createElement("br",null)),onOk:function(){var Ga=Object(k.a)(p.a.mark(function ma(){var ga,Na;return p.a.wrap(function(Vi){for(;;)switch(Vi.prev=Vi.next){case 0:return ga={user_customize:Fr.user_customize},Fr.user_customize?ga=Object(I.a)(Object(I.a)({},ga),{},{discipline_name:Fr.discipline_name,sub_discipline_name:Fr.sub_discipline_name}):Fr.sub_discipline_id&&(ga=Object(I.a)(Object(I.a)({},ga),{},{sub_discipline_id:Fr.sub_discipline_id})),Vi.next=4,Object(B.g)(Object(I.a)({id:jn.pathId},ga));case 4:Na=Vi.sent,((Na==null?void 0:Na.status)===0||(Na==null?void 0:Na.status)===1)&&(vs(),U.b.success("\u516C\u5F00\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u7684\u5BA1\u6838"));case 6:case"end":return Vi.stop()}},ma)}));function Wr(){return Ga.apply(this,arguments)}return Wr}()})},$s=function(){var ea=Object(k.a)(p.a.mark(function Fr(){return p.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BF7\u516C\u5F00\uFF1F"),onOk:function(){var ma=Object(k.a)(p.a.mark(function Na(){var La;return p.a.wrap(function($a){for(;;)switch($a.prev=$a.next){case 0:return $a.next=2,Object(B.l)({id:jn.pathId});case 2:La=$a.sent,(La==null?void 0:La.status)===0&&(vs(),U.b.success("\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u6210\u529F"));case 4:case"end":return $a.stop()}},Na)}));function ga(){return ma.apply(this,arguments)}return ga}()});case 1:case"end":return Wr.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),qs=function(){var ea=Object(k.a)(p.a.mark(function Fr(){return p.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"ml20"},t.a.createElement(m.a.Group,{defaultValue:1,onChange:function(ga){return Ri.current=ga.target.value}},t.a.createElement(m.a,{value:1,className:"mt10"},"\u5F00\u653E\u8BFE\u5802\uFF1A",t.a.createElement("span",null,"\u6240\u6709\u7528\u6237\u53EF\u4EE5\u968F\u65F6\u8BBF\u95EE")),t.a.createElement(m.a,{value:0,className:"mt10"},"\u79C1\u6709\u8BFE\u5802\uFF1A",t.a.createElement("span",null,"\u4EC5\u62A5\u540D\u53C2\u4E0E\u7684\u8BFE\u5802\u6210\u5458\u53EF\u4EE5\u8BBF\u95EE")))),onOk:function(){var ma=Object(k.a)(p.a.mark(function Na(){return p.a.wrap(function(Vi){for(;;)switch(Vi.prev=Vi.next){case 0:Object(pe.S)("/classrooms/news/".concat(jn.pathId,"/newgold/").concat(Ri.current));case 1:case"end":return Vi.stop()}},Na)}));function ga(){return ma.apply(this,arguments)}return ga}()});case 1:case"end":return Wr.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),yl=function(){g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u7ACB\u5373\u9884\u7EA6\uFF1F"),onOk:function(){var Fr=Object(k.a)(p.a.mark(function Wr(){var ma;return p.a.wrap(function(Na){for(;;)switch(Na.prev=Na.next){case 0:return Na.next=2,Object(B.i)({id:jn.pathId});case 2:ma=Na.sent,ma.status===0&&(zi(!0),U.b.success(ma.message));case 4:case"end":return Na.stop()}},Wr)}));function Ga(){return Fr.apply(this,arguments)}return Ga}()})},Rs=function(){if(!Object(he.e)(Tn))return;g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var Fr=Object(k.a)(p.a.mark(function Wr(){var ma,ga;return p.a.wrap(function(La){for(;;)switch(La.prev=La.next){case 0:return La.next=2,Object(B.K)({id:Bn==null?void 0:Bn.course_id});case 2:ma=La.sent,ma.status===0&&(U.b.success(ma.message),Tn({type:"pathsDetail/getPathsDetail",payload:{id:jn.pathId}}),((ga=Bn.course_status)===null||ga===void 0?void 0:ga.status)===1&&Object(pe.S)("/classrooms/".concat(Bn==null?void 0:Bn.course_id,"/shixun_homework")));case 4:case"end":return La.stop()}},Wr)}));function Ga(){return Fr.apply(this,arguments)}return Ga}()})},Ol=function(){var Fr;if((Fr=On.detail)!==null&&Fr!==void 0&&Fr.need_authorize){Object(he.a)(!1,"\u8BE5\u8BFE\u7A0B\u4E2D\u5305\u542B\u5B9E\u8BAD\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002");return}if(!Object(he.e)(Tn))return;Tn({type:"pathsDetail/setActionTabs",payload:{key:"PathsDetail-SendToClass"}})},vs=function(){Tn({type:"pathsDetail/getPathsDetail",payload:{id:jn.pathId}}),Tn({type:"pathsDetail/getRightData",payload:{id:jn.pathId}})},Bs=!!((cn=On.detail)!==null&&cn!==void 0&&cn.participant_count)&&!((Wt=On.detail)!==null&&Wt!==void 0&&Wt.allow_statistics),Ks=((_n=On.detail)===null||_n===void 0||((rn=_n.courses)===null||rn===void 0)?void 0:rn.findIndex(function(ea){return(ea==null?void 0:ea.course_id)===(Bn==null?void 0:Bn.course_id)}))+1,Is=Ks===((Ht=On.detail)===null||Ht===void 0||((An=Ht.courses)===null||An===void 0)?void 0:An.length);return t.a.createElement("section",null,t.a.createElement("aside",{className:H.a.banner,style:{backgroundImage:On!=null&&(qt=On.detail)!==null&&qt!==void 0&&(En=qt.attachments)!==null&&En!==void 0&&(kn=En[0])!==null&&kn!==void 0&&kn.url?"url(".concat(ut.a.API_SERVER+(On==null||((Yt=On.detail)===null||Yt===void 0||((wn=Yt.attachments)===null||wn===void 0||((ln=wn[0])===null||ln===void 0)))?void 0:ln.url),")"):"url(".concat(Ze.a,")"),marginBottom:(xn=On.detail)!==null&&xn!==void 0&&(an=xn.courses)!==null&&an!==void 0&&an.length?70:20}},t.a.createElement("aside",{className:H.a.wrp},t.a.createElement("div",{className:H.a.operationWrap},!!((Vt=On.detail)!==null&&Vt!==void 0&&Vt.is_free)&&((Sn=On.detail)===null||Sn===void 0?void 0:Sn.publish_status)!==0&&(((hr=On.detail)===null||hr===void 0?void 0:hr.allow_add_member)||!Object(F.m)())&&t.a.createElement(s.a,{placement:"bottom",title:"\u4EE5\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u5F62\u5F0F\u53D1\u9001\u5230\u6211\u7684\u8BFE\u5802"},t.a.createElement("span",{onClick:Ol,style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},t.a.createElement("img",{src:He.a,style:{marginRight:"10px"}}),"\u53D1\u9001\u81F3")),((pn=On.detail)===null||pn===void 0?void 0:pn.allow_statistics)&&((Dn=On.detail)===null||Dn===void 0?void 0:Dn.public_status)===2&&t.a.createElement("span",{onClick:function(){return l.d.push("/paths/".concat(jn.pathId,"/statistics"))},style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},t.a.createElement("img",{src:We.a,style:{marginRight:"10px"}}),"\u5B66\u4E60\u7EDF\u8BA1"),((Nn=On.detail)===null||Nn===void 0?void 0:Nn.is_share)&&t.a.createElement(Se.CopyToClipboard,{text:"".concat(window.location.origin,"/paths/").concat(jn.pathId,"?userid=").concat((Gn=nr.userInfo)===null||Gn===void 0?void 0:Gn.user_id),onCopy:function(){return U.b.success("\u5DF2\u590D\u5236\u8BFE\u7A0B\u5206\u4EAB\u4E13\u5C5E\u94FE\u63A5")}},t.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},t.a.createElement("img",{src:He.a,style:{marginRight:"10px"}}),"\u5206\u4EAB\u8BFE\u7A0B")),((yn=On.detail)===null||yn===void 0?void 0:yn.allow_add_member)&&t.a.createElement(w.a,{overlay:t.a.createElement(C.a,null,((Kn=On.detail)===null||Kn===void 0?void 0:Kn.courses)&&(((or=On.detail)===null||or===void 0?void 0:or.is_creator)&&!!((gr=nr.userInfo)!==null&&gr!==void 0&&gr.professional_certification)||Object(F.o)())&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:qs},"\u5F00\u8BFE"),((Ur=On.detail)===null||Ur===void 0?void 0:Ur.allow_statistics)&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:function(){return l.d.push("/paths/".concat(jn.pathId,"/edit"))}},"\u7F16\u8F91\u8BFE\u7A0B"),((er=On.detail)===null||er===void 0?void 0:er.allow_add_member)&&((rr=On.detail)===null||rr===void 0?void 0:rr.publish_status)===0&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:Sl},"\u53D1\u5E03\u8BFE\u7A0B"),((Lr=On.detail)===null||Lr===void 0?void 0:Lr.allow_statistics)&&((Er=On.detail)===null||Er===void 0?void 0:Er.publish_status)===2&&((_r=On.detail)===null||_r===void 0?void 0:_r.public_status)===0&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:Zs},"\u64A4\u9500\u53D1\u5E03"),((sa=On.detail)===null||sa===void 0?void 0:sa.allow_statistics)&&((ta=On.detail)===null||ta===void 0?void 0:ta.publish_status)===2&&((tr=On.detail)===null||tr===void 0?void 0:tr.public_status)===0&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:rs},"\u516C\u5F00\u8BFE\u7A0B"),((vr=On.detail)===null||vr===void 0?void 0:vr.allow_statistics)&&((ja=On.detail)===null||ja===void 0?void 0:ja.public_status)===1&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:$s},"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),Object(F.c)()&&((ia=On.detail)===null||ia===void 0?void 0:ia.allow_statistics)&&((Yn=On.detail)===null||Yn===void 0?void 0:Yn.public_status)===2&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:$s},"\u64A4\u9500\u516C\u5F00"),((vn=On.detail)===null||vn===void 0?void 0:vn.allow_delete)&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:ul},"\u5220\u9664\u8BFE\u7A0B"))},t.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},t.a.createElement("img",{src:Le.a,style:{marginRight:"10px"}}),"\u8BBE\u7F6E"))),t.a.createElement("p",{className:[H.a.titleWrap,((yr=On.detail)===null||yr===void 0||((oi=yr.name)===null||oi===void 0)?void 0:oi.indexOf(` `))&&H.a.titleFlexEnd].join(" ")},t.a.createElement("span",{className:H.a.title},t.a.createElement("strong",null,(Cr=On.detail)===null||Cr===void 0||((Ir=Cr.name)===null||Ir===void 0)?void 0:Ir.split(` `)[0]),t.a.createElement("span",{className:"font24"},t.a.createElement("br",null),(fr=On.detail)===null||fr===void 0||((ar=fr.name)===null||ar===void 0)?void 0:ar.split(` `).filter(function(ea,Fr){return Fr!==0}).join(""))),t.a.createElement("div",null,((Ln=On.detail)===null||Ln===void 0?void 0:Ln.excellent)&&t.a.createElement(E.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#44D7B6",border:"1px solid #44D7B6"}},"\u5F00\u653E\u8BFE\u7A0B"),((Mn=On.detail)===null||Mn===void 0?void 0:Mn.featured)>0&&t.a.createElement("div",null,((gn=On.detail)===null||gn===void 0?void 0:gn.featured)===1&&t.a.createElement(E.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#FF6500",border:"1px solid #FF6500"}},"\u56FD\u5BB6\u4E00\u6D41"),((qn=On.detail)===null||qn===void 0?void 0:qn.featured)===2&&t.a.createElement(E.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#4361F2",border:"1px solid #4361F2"}},"\u519B\u961F\u4E00\u6D41"),((na=On.detail)===null||na===void 0?void 0:na.featured)===3&&t.a.createElement(E.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#E9AD5D",border:"1px solid #E9AD5D"}},"\u7701\u7EA7\u4E00\u6D41"),((cr=On.detail)===null||cr===void 0?void 0:cr.featured)===4&&t.a.createElement(E.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#f7ce62",border:"1px solid #f7ce62"}},"\u7CBE\u54C1\u8BFE\u7A0B")),((jr=nr.userInfo)===null||jr===void 0?void 0:jr.login)&&((Pa=On.detail)===null||Pa===void 0?void 0:Pa.is_collect)&&t.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},onClick:us},t.a.createElement(s.a,{title:"\u53D6\u6D88\u6536\u85CF"},t.a.createElement("img",{src:gt.a,style:{marginRight:"10px"}})),t.a.createElement("span",{style:{height:"24px"}},"\u5DF2\u6536\u85CF")),((da=nr.userInfo)===null||da===void 0?void 0:da.login)&&!((ba=On.detail)!==null&&ba!==void 0&&ba.is_collect)&&t.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},onClick:ll},t.a.createElement(s.a,{title:"\u53D6\u6D88\u6536\u85CF"},t.a.createElement("img",{src:en.a,style:{marginRight:"10px"}})),t.a.createElement("span",{style:{height:"24px"}},"\u6536\u85CF")),!Object(F.p)()&&t.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},className:"mr15",onClick:function(){if(!Object(he.e)(Tn))return}},t.a.createElement("img",{src:en.a,style:{marginRight:"10px"}}),t.a.createElement("span",{style:{height:"24px"}},"\u6536\u85CF")))),t.a.createElement("div",{className:H.a.contentWrap},t.a.createElement("div",{className:H.a.contentLeftWrap},!!((ha=On.detail)!==null&&ha!==void 0&&ha.stages_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u7AE0\u8282"),t.a.createElement("p",{className:"mt3"},(Ta=On.detail)===null||Ta===void 0?void 0:Ta.stages_count)),!!((Da=On.detail)!==null&&Da!==void 0&&Da.shixuns_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u5355\u5143"),t.a.createElement("p",{className:"mt3"},(Ua=On.detail)===null||Ua===void 0?void 0:Ua.shixuns_count)),!!((Qr=On.detail)!==null&&Qr!==void 0&&Qr.challenge_choose_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u9009\u62E9\u9898\u5173\u5361"),t.a.createElement("p",{className:"mt3"},(Wa=On.detail)===null||Wa===void 0?void 0:Wa.challenge_choose_count)),!!((Ea=On.detail)!==null&&Ea!==void 0&&Ea.challenges_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u5B9E\u8DF5\u5173\u5361"),t.a.createElement("p",{className:"mt3"},(za=On.detail)===null||za===void 0?void 0:za.challenges_count)),!!((hi=On.detail)!==null&&hi!==void 0&&hi.videos_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u89C6\u9891"),t.a.createElement("p",{className:"mt3"},(Ji=On.detail)===null||Ji===void 0?void 0:Ji.videos_count)),!!((Li=On.detail)!==null&&Li!==void 0&&Li.attachment_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u8BFE\u4EF6"),t.a.createElement("p",{className:"mt3"},(Ci=On.detail)===null||Ci===void 0?void 0:Ci.attachment_count)),((Uo=On.detail)===null||Uo===void 0?void 0:Uo.publish_status)!==0&&!!((Ao=On.detail)!==null&&Ao!==void 0&&Ao.subject_score)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u7ECF\u9A8C\u503C"),t.a.createElement("p",{className:"mt3"},(_o=On.detail)===null||_o===void 0?void 0:_o.subject_score)),((as=On.detail)===null||as===void 0?void 0:as.publish_status)!==0&&!!((fs=On.detail)!==null&&fs!==void 0&&fs.member_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,t.a.createElement("span",null,(is=On.detail)!==null&&is!==void 0&&is.excellent?"\u53C2\u4E0E\u4EBA\u6570":"\u5B66\u4E60\u4EBA\u6570"),t.a.createElement(s.a,{title:"\u66F4\u65B0\u65F6\u95F4\uFF1A".concat(((os=On.detail)===null||os===void 0?void 0:os.member_count_update_at)||"--")},t.a.createElement("i",{className:"iconfont icon-xiaowenhao1 font14 ml5"}))),t.a.createElement("p",{className:"mt3"},(So=On.detail)===null||So===void 0?void 0:So.member_count)),((ps=On.detail)===null||ps===void 0?void 0:ps.subject_score)>=0&&t.a.createElement("span",{className:"font14 c-white"},t.a.createElement("span",null,"\u8BC4\u5206"),t.a.createElement("br",null),t.a.createElement(o.a,{allowHalf:!0,value:Object(pe.C)((Qi=On.detail)===null||Qi===void 0?void 0:Qi.averge_star),disabled:!0,className:H.a.rating})))),!!((Aa=On.detail)!==null&&Aa!==void 0&&(wi=Aa.courses)!==null&&wi!==void 0&&wi.length)&&t.a.createElement("aside",{className:H.a.nav},t.a.createElement("div",{className:H.a.navLeft},Bn.course_identity<4&&t.a.createElement(s.a,{placement:"bottom",title:"\u7F16\u8F91\u8BFE\u5802"},t.a.createElement("a",{href:"/classrooms/".concat(Bn==null?void 0:Bn.course_id,"/newgolds/settings"),target:"_blank"},t.a.createElement("i",{className:"iconfont icon-bianji1 ".concat(H.a.navLeftIcon)}))),t.a.createElement(w.a,{overlay:t.a.createElement(C.a,null,(vi=Object(d.a)((uo=On.detail)===null||uo===void 0?void 0:uo.courses))===null||vi===void 0||((vo=vi.reverse())===null||vo===void 0)?void 0:vo.map(function(ea,Fr){var Ga,Wr;return t.a.createElement(C.a.Item,{key:ea.course_id,onClick:function(){return ks(ea.course_id)}},t.a.createElement("span",{className:"font14"},"\u7B2C",((Ga=On.detail)===null||Ga===void 0||((Wr=Ga.courses)===null||Wr===void 0)?void 0:Wr.length)-Fr,"\u671F"))}))},t.a.createElement("div",null,t.a.createElement("span",{className:"font14 current"},"\u7B2C",t.a.createElement("span",{className:H.a.colorOrange},Ks),"\u671F"),t.a.createElement(N.a,null))),t.a.createElement("div",{className:H.a.navContent},t.a.createElement("div",{className:H.a.contentItem},t.a.createElement("div",{className:H.a.contentItemTitle},"\u5F00\u8BFE\u65F6\u95F4\uFF1A"),t.a.createElement("div",{className:H.a.contentItemText},Bn==null?void 0:Bn.start_date)),t.a.createElement("div",{className:H.a.verticalLine}),t.a.createElement("div",{className:H.a.contentItem},t.a.createElement("div",{className:H.a.contentItemTitle},"\u7ED3\u8BFE\u65F6\u95F4\uFF1A"),t.a.createElement("div",{className:H.a.contentItemText},Bn==null?void 0:Bn.end_date)),t.a.createElement("div",{className:H.a.verticalLine}),t.a.createElement("div",{className:H.a.contentItem},t.a.createElement("div",{className:H.a.contentItemTitle},(Ki=On.detail)!==null&&Ki!==void 0&&Ki.excellent?"\u53C2\u4E0E\u4EBA\u6570\uFF1A":"\u62A5\u540D\u4EBA\u6570\uFF1A"),t.a.createElement("div",{className:H.a.contentItemText},Bn==null?void 0:Bn.student_count," \u4EBA")))),t.a.createElement("div",{className:H.a.navRight,style:{display:"none"}},t.a.createElement("div",{className:H.a.flexRow},(Bn==null||((ss=Bn.course_status)===null||ss===void 0)?void 0:ss.status)===1&&t.a.createElement("div",{className:"mr20 c-red-ee4"},Bn==null||((ls=Bn.course_status)===null||ls===void 0)?void 0:ls.time),(Bn==null||((qo=Bn.course_status)===null||qo===void 0)?void 0:qo.status)===2&&Bn.course_identity<6&&t.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),((fo=Bn.course_status)===null||fo===void 0?void 0:fo.status)===2&&(Bn.course_identity<6?t.a.createElement("a",{className:H.a.classButton,href:"/classrooms/".concat(Bn==null||((zo=Bn.first_category_url)===null||zo===void 0||((yo=zo.split("/"))===null||yo===void 0))?void 0:yo[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"):t.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),((es=Bn.course_status)===null||es===void 0?void 0:es.status)===1&&Bn.course_identity>5&&t.a.createElement("div",{className:H.a.classButton,onClick:Rs},"\u7ACB\u5373\u52A0\u5165"),((Go=Bn.course_status)===null||Go===void 0?void 0:Go.status)===1&&Bn.course_identity===5&&t.a.createElement("a",{className:H.a.classButton,href:"/classrooms/".concat(Bn==null||((Oa=Bn.first_category_url)===null||Oa===void 0||((la=Oa.split("/"))===null||la===void 0))?void 0:la[2],"/announcement"),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),((xi=Bn.course_status)===null||xi===void 0?void 0:xi.status)===0&&Bn.course_identity>5&&t.a.createElement("div",{className:H.a.classButton,onClick:Rs},"\u7ACB\u5373\u62A5\u540D"),((Zi=Bn.course_status)===null||Zi===void 0?void 0:Zi.status)===0&&Bn.course_identity===5&&t.a.createElement("div",{className:H.a.classButton},"\u62A5\u540D\u6210\u529F"),((Bn==null||((Oo=Bn.course_status)===null||Oo===void 0)?void 0:Oo.status)===0||(Bn==null||((co=Bn.course_status)===null||co===void 0)?void 0:co.status)===1)&&Bn.course_identity<5&&t.a.createElement("a",{className:H.a.classButton,href:"/classrooms/".concat(Bn==null||((No=Bn.first_category_url)===null||No===void 0||((Wi=No.split("/"))===null||Wi===void 0))?void 0:Wi[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),Bs&&Is&&((Ai=On.detail)===null||Ai===void 0?void 0:Ai.has_participate)&&t.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),Bs&&Is&&!((Vo=On.detail)!==null&&Vo!==void 0&&Vo.has_participate)&&(ao?t.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):t.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bg28e),onClick:yl},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D"))),t.a.createElement("div",{className:H.a.flexRow},Bs&&!!((Pn=On.detail)!==null&&Pn!==void 0&&(ts=Pn.courses)!==null&&ts!==void 0&&ts.length)&&Is&&t.a.createElement("span",{className:"mt20"},t.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(lo=On.detail)===null||lo===void 0?void 0:lo.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),t.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",t.a.createElement("span",{className:"mr5 c-red-ee4"},ao===!0?((Ha=On.detail)===null||Ha===void 0?void 0:Ha.participant_count)+1:(Fi=On.detail)===null||Fi===void 0?void 0:Fi.participant_count),"\u4EBA")),Bs&&!((Ti=On.detail)!==null&&Ti!==void 0&&(Ro=Ti.courses)!==null&&Ro!==void 0&&Ro.length)&&Is&&t.a.createElement("span",null,!((Oi=On.detail)!==null&&Oi!==void 0&&Oi.has_participate)&&(ao===!0?t.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):t.a.createElement("a",{className:"".concat(H.a.classButton," ").concat(H.a.bg28e),onClick:yl},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((Fo=On.detail)===null||Fo===void 0?void 0:Fo.has_participate)&&t.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),t.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(ns=On.detail)===null||ns===void 0?void 0:ns.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),t.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",t.a.createElement("span",{className:"mr5 c-red-ee4"},ao===!0?((ms=On.detail)===null||ms===void 0?void 0:ms.participant_count)+1:(Xo=On.detail)===null||Xo===void 0?void 0:Xo.participant_count),"\u4EBA"))))))),t.a.createElement(et,null),sl.status&&t.a.createElement(Et,{type:"new_question",onCancel:function(){return cl(!1)},onOk:function(Fr){cl(!1),Qs(Fr)}}),t.a.createElement(g.a,{visible:ko,title:"\u8BFE\u7A0B\u63D0\u793A",width:593,maskClosable:!1,onCancel:function(){jo(!1)},centered:!0,footer:t.a.createElement("div",null,t.a.createElement(c.a,{type:"primary",onClick:function(){jo(!1)}},"\u6211\u77E5\u9053\u4E86"))},t.a.createElement(Rt.a,{style:{maxHeight:378,overflow:"auto"},value:On==null||((Ss=On.detail)===null||Ss===void 0||((Fs=Ss.toast)===null||Fs===void 0))?void 0:Fs.content})))},xt=Object(l.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.user,$t=lt.loading,cn=lt.globalSetting;return{pathsDetail:qe,user:Bt,globalSetting:cn,loading:$t.models.index}})(Zt),Ct=v("MXD1"),mt=v("CFYs"),Je=v("8Bcu"),Qe=v.n(Je),Oe=v("WPnJ"),je=v.n(Oe),St=v("g9YV"),bt=v("wCAj"),Dt=v("O3gP"),Qt=v("lrIw"),_t=v("RotF"),Gt=v.n(_t),kt=v("oUNq"),fn=v("lzim"),mn=v("55Ip"),Tr=function(qe){var Bt=qe.pathsDetail,$t=qe.loading,cn=qe.dispatch,Wt=qe.onReloadData,_n=Wt===void 0?function(){}:Wt,rn=Object(A.i)(),Ht=Object(a.useState)([]),An=Object(_.a)(Ht,2),qt=An[0],En=An[1],kn=Object(a.useState)(!0),Yt=Object(_.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=Object(a.useState)(!1),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1],hr=dt.a.useForm(),pn=Object(_.a)(hr,1),Dn=pn[0],Nn=Object(a.useState)([]),Gn=Object(_.a)(Nn,2),yn=Gn[0],Kn=Gn[1],or=Object(a.useState)(1),gr=Object(_.a)(or,2),Ur=gr[0],er=gr[1],rr=Object(a.useState)([]),Lr=Object(_.a)(rr,2),Er=Lr[0],_r=Lr[1],sa=Object(a.useState)(!0),ta=Object(_.a)(sa,2),tr=ta[0],vr=ta[1],ja=Object(a.useState)(!1),ia=Object(_.a)(ja,2),Yn=ia[0],vn=ia[1];Object(a.useEffect)(function(){Bt.actionTabs.key==="Collaborators-AddCollaborator"&&(vr(!0),ln(!0),yr())},[Bt.actionTabs.key]);var yr=function(){var Mn=Object(k.a)(p.a.mark(function gn(){var qn;return p.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:return cr.next=2,cn({type:"classroomList/getSchoolList",payload:{}});case 2:qn=cr.sent,En(qn.map(function(jr){return{value:jr}}));case 4:case"end":return cr.stop()}},gn)}));return function(){return Mn.apply(this,arguments)}}(),oi=function(){var gn,qn;if(!((gn=Dn.getFieldValue())!==null&&gn!==void 0&&(qn=gn.keyword)!==null&&qn!==void 0&&qn.trim())){U.b.warn("\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9"),Kn([]);return}vr(!1),ln(!0),Sn(!1),er(1),_r([]),Ir(!0)},Cr=function(gn){gn=String(gn);var qn=Er.indexOf(gn);qn<0?Er.push(gn):Er.splice(qn,1),_r(Object(d.a)(Er))},Ir=function(){var Mn=Object(k.a)(p.a.mark(function gn(){var qn,na,cr,jr,Pa,da=arguments;return p.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:if(qn=da.length>0&&da[0]!==void 0?da[0]:!1,!(wn&&!Vt||qn)){ha.next=11;break}return jr=Dn.getFieldValue(),Sn(!0),er(qn?1:Ur+1),ha.next=7,Object(kt.Ab)(Object(I.a)(Object(I.a)({page:qn?1:Ur+1,container_id:rn.pathId,container_type:3},jr),{},{school_name:(jr==null?void 0:jr.school_name)||null,keyword:(jr==null||((na=jr.keyword)===null||na===void 0)?void 0:na.trim())||null}));case 7:Pa=ha.sent,Kn(qn?Object(d.a)(Pa.users):[].concat(Object(d.a)(yn),Object(d.a)(Pa.users))),Sn(!1),((cr=Pa.users)===null||cr===void 0?void 0:cr.length)<10&&ln(!1);case 11:case"end":return ha.stop()}},gn)}));return function(){return Mn.apply(this,arguments)}}(),fr=function(){var Mn=Object(k.a)(p.a.mark(function gn(){var qn;return p.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:if(Er!=null&&Er.length){cr.next=4;break}U.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"),cr.next=10;break;case 4:return vn(!0),cr.next=7,Object(B.e)({id:rn.pathId,user_ids:Er});case 7:qn=cr.sent,vn(!1),qn&&(U.b.success("\u6DFB\u52A0\u6210\u529F"),ar(),_n&&_n());case 10:case"end":return cr.stop()}},gn)}));return function(){return Mn.apply(this,arguments)}}(),ar=function(){Dn.setFieldsValue({keyword:""}),cn({type:"pathsDetail/setActionTabs",payload:{}})},Ln=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(gn,qn){return t.a.createElement(te.a,{value:qn.numid,checked:Er.includes(String(qn.numid)),disabled:!!gn})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(gn,qn){return t.a.createElement(s.a,{placement:"bottom",title:gn},t.a.createElement(mn.a,{className:"bold c-black",to:"/users/".concat(qn.login),target:"_blank"},gn||"--"))}},{title:"\u624B\u673A\u53F7",width:100,dataIndex:"phone",ellipsis:!0,render:function(gn){return t.a.createElement(s.a,{placement:"bottom",title:gn},t.a.createElement("span",null,gn||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(gn){return t.a.createElement(s.a,{placement:"bottom",title:gn},t.a.createElement("span",null,gn||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(gn){return t.a.createElement(s.a,{placement:"bottom",title:gn},t.a.createElement("span",null,gn||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(gn){return t.a.createElement(s.a,{placement:"bottom",title:gn},t.a.createElement("span",null,gn||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(gn){return t.a.createElement(s.a,{placement:"bottom",title:gn},t.a.createElement("span",null,gn||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(gn){return gn?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(gn){return t.a.createElement(s.a,{placement:"bottom",title:gn?se()(gn).format("YYYY-MM-DD HH:mm"):"- -"},t.a.createElement("span",null,gn?se()(gn).format("YYYY-MM-DD HH:mm"):"- -"))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(gn){if(gn===1)return t.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];return t.a.createElement(g.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Bt.actionTabs.key==="Collaborators-AddCollaborator",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,centered:!0,keyboard:!1,maskClosable:!1,bodyStyle:{minHeight:200},confirmLoading:Yn,onOk:fr,onCancel:ar},t.a.createElement(dt.a,{layout:"inline",form:Dn,initialValues:{school_name:"",keyword:"",search_type:"1"},className:"mt10",onFinish:oi},t.a.createElement(dt.a.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},t.a.createElement(le.a,null,t.a.createElement(le.a.Option,{value:"1"},"\u59D3\u540D"),t.a.createElement(le.a.Option,{value:"2"},"\u624B\u673A\u53F7"),t.a.createElement(le.a.Option,{value:"3"},"\u90AE\u7BB1"))),t.a.createElement(dt.a.Item,{name:"keyword",label:"\u641C\u7D22\u5185\u5BB9"},t.a.createElement(Ne.a,{allowClear:!0,style:{width:280},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"})),t.a.createElement(dt.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},t.a.createElement(Qt.a,{allowClear:!0,defaultOpen:!1,options:qt,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",filterOption:function(gn,qn){return qn.value.toUpperCase().indexOf(gn.toUpperCase())!==-1}})),t.a.createElement(dt.a.Item,null,t.a.createElement(c.a,{htmlType:"submit",type:"primary",size:"large"},"\u641C\u7D22"))),tr&&t.a.createElement("div",{className:"tc font16 c-light-black mt40"},t.a.createElement("img",{src:fn.w,width:"100",alt:""}),t.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!tr&&t.a.createElement("section",null,t.a.createElement("div",{className:"flexd-table-header mt20"},t.a.createElement(bt.a,{pagination:!1,dataSource:[],columns:Ln})),t.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},t.a.createElement(Gt.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(gn){Ir()},hasMore:wn,useWindow:!1},t.a.createElement(bt.a,{loading:Vt,showHeader:!1,pagination:!1,dataSource:yn,columns:Ln,onRow:function(gn){return{onClick:function(na){na.currentTarget.querySelector("input").disabled||Cr(na.currentTarget.querySelector("input").value)}}}})))))},Mr=Object(l.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.loading;return{pathsDetail:qe,loading:Bt}})(Tr),kr=function(qe){var Bt=qe.pathsDetail,$t=qe.loading,cn=qe.dispatch,Wt=qe.data,_n=qe.onReloadData,rn=_n===void 0?function(){}:_n,Ht=Object(A.i)(),An=Object(a.useState)(!0),qt=Object(_.a)(An,2),En=qt[0],kn=qt[1],Yt=Object(a.useState)(!1),wn=Object(_.a)(Yt,2),ln=wn[0],xn=wn[1],an=dt.a.useForm(),Vt=Object(_.a)(an,1),Sn=Vt[0],hr=Object(a.useState)([]),pn=Object(_.a)(hr,2),Dn=pn[0],Nn=pn[1],Gn=Object(a.useState)(1),yn=Object(_.a)(Gn,2),Kn=yn[0],or=yn[1],gr=Object(a.useState)([]),Ur=Object(_.a)(gr,2),er=Ur[0],rr=Ur[1],Lr=Object(a.useState)(!0),Er=Object(_.a)(Lr,2),_r=Er[0],sa=Er[1],ta=Object(a.useState)(!1),tr=Object(_.a)(ta,2),vr=tr[0],ja=tr[1];Object(a.useEffect)(function(){Bt.actionTabs.key==="Collaborators-AddCourses"&&(sa(!0),kn(!0),ia())},[Bt.actionTabs.key]);var ia=function(){var fr=Object(k.a)(p.a.mark(function ar(){var Ln;return p.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return gn.next=2,cn({type:"classroomList/getSchoolList",payload:{}});case 2:Ln=gn.sent;case 3:case"end":return gn.stop()}},ar)}));return function(){return fr.apply(this,arguments)}}(),Yn=function(){sa(!1),kn(!0),xn(!1),or(1),rr([]),yr(!0)},vn=function(ar){ar=String(ar);var Ln=er.indexOf(ar);Ln<0?er.push(ar):er.splice(Ln,1),rr(Object(d.a)(er))},yr=function(){var fr=Object(k.a)(p.a.mark(function ar(){var Ln,Mn,gn,qn,na,cr=arguments;return p.a.wrap(function(Pa){for(;;)switch(Pa.prev=Pa.next){case 0:if(Ln=cr.length>0&&cr[0]!==void 0?cr[0]:!1,!(En&&!ln||Ln)){Pa.next=11;break}return qn=Sn.getFieldValue(),xn(!0),or(Ln?1:Kn+1),Pa.next=7,Object(kt.zb)({page:Ln?1:Kn+1,container_id:Ht.pathId,container_type:3,manager_name:(qn==null?void 0:qn.manager_name)||null,course_name:(qn==null||((Mn=qn.course_name)===null||Mn===void 0)?void 0:Mn.trim())||null});case 7:na=Pa.sent,Nn(Ln?Object(d.a)(na.courses):[].concat(Object(d.a)(Dn),Object(d.a)(na.courses))),xn(!1),((gn=na.courses)===null||gn===void 0?void 0:gn.length)<10&&kn(!1);case 11:case"end":return Pa.stop()}},ar)}));return function(){return fr.apply(this,arguments)}}(),oi=function(){var fr=Object(k.a)(p.a.mark(function ar(){var Ln,Mn,gn,qn;return p.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:if(er!=null&&er.length){cr.next=4;break}U.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u8BFE\u5802"),cr.next=19;break;case 4:if(!(Bt.actionTabs.type!=1)){cr.next=10;break}if(!((Bt==null||((Ln=Bt.Courses)===null||Ln===void 0||((Mn=Ln.spoc_courses)===null||Mn===void 0))?void 0:Mn.length)+(er==null?void 0:er.length)>3)){cr.next=8;break}return U.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2Aspoc\u8BFE\u5802"),cr.abrupt("return");case 8:cr.next=13;break;case 10:if(!((Wt==null||((gn=Wt.spoc_courses)===null||gn===void 0)?void 0:gn.length)+(er==null?void 0:er.length)>3)){cr.next=13;break}return U.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2A\u5386\u53F2\u8BFE\u5802"),cr.abrupt("return");case 13:return ja(!0),cr.next=16,Object(B.b)({id:Ht.pathId,course_ids:er,course_type:Bt.actionTabs.type});case 16:qn=cr.sent,ja(!1),qn&&(U.b.success("\u6DFB\u52A0\u6210\u529F"),Cr(),rn&&rn());case 19:case"end":return cr.stop()}},ar)}));return function(){return fr.apply(this,arguments)}}(),Cr=function(){Sn.setFieldsValue({course_name:"",manager_name:""}),rr([]),cn({type:"pathsDetail/setActionTabs",payload:{}})},Ir=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(ar,Ln){return t.a.createElement(te.a,{value:Ln.id,checked:er.includes(String(Ln.id)),disabled:!!ar})}},{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name",width:100,ellipsis:!0,render:function(ar){return t.a.createElement(s.a,{placement:"bottom",title:ar},t.a.createElement("span",null,ar||"--"))}},{title:"\u7BA1\u7406\u8005",width:100,dataIndex:"managers",ellipsis:!0,render:function(ar){return t.a.createElement(s.a,{placement:"bottom",title:ar},t.a.createElement("span",null,ar||"--"))}},{title:"\u8BFE\u5802\u6240\u5728\u5B66\u6821",width:150,dataIndex:"school_name",ellipsis:!0,render:function(ar){return t.a.createElement(s.a,{placement:"bottom",title:ar},t.a.createElement("span",null,ar||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",width:140,ellipsis:!0,render:function(ar){return t.a.createElement(s.a,{placement:"bottom",title:ar},t.a.createElement("span",null,ar))}},{title:"\u6210\u5458\u6570\u91CF",dataIndex:"course_members_count",width:80,render:function(ar){return t.a.createElement(s.a,{placement:"bottom",title:ar},t.a.createElement("span",null,ar||"--"))}}];return t.a.createElement(g.a,{title:"\u6DFB\u52A0\u8BFE\u5802",visible:Bt.actionTabs.key==="Collaborators-AddCourses",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,centered:!0,keyboard:!1,maskClosable:!1,bodyStyle:{minHeight:200},confirmLoading:vr,onOk:oi,onCancel:Cr},t.a.createElement(dt.a,{layout:"inline",form:Sn,initialValues:{course_name:"",manager_name:""},className:"mt10",onFinish:Yn},t.a.createElement(dt.a.Item,{name:"course_name",label:"\u8BFE\u5802\u540D\u79F0"},t.a.createElement(Ne.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0"})),t.a.createElement(dt.a.Item,{name:"manager_name",label:"\u8BFE\u5802\u7BA1\u7406\u8005"},t.a.createElement(Ne.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u7BA1\u7406\u8005\u540D\u79F0"})),t.a.createElement(dt.a.Item,null,t.a.createElement(c.a,{htmlType:"submit",type:"primary",size:"large"},"\u641C\u7D22"))),_r&&t.a.createElement("div",{className:"tc font16 c-light-black mt40"},t.a.createElement("img",{src:fn.w,width:"100",alt:""}),t.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!_r&&t.a.createElement("section",null,t.a.createElement("div",{className:"flexd-table-header mt20"},t.a.createElement(bt.a,{pagination:!1,dataSource:[],columns:Ir})),t.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},t.a.createElement(Gt.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(ar){yr()},hasMore:En,useWindow:!1},t.a.createElement(bt.a,{loading:ln,showHeader:!1,pagination:!1,dataSource:Dn,columns:Ir,onRow:function(ar){return{onClick:function(Mn){Mn.currentTarget.querySelector("input").disabled||vn(Mn.currentTarget.querySelector("input").value)}}}})))))},Un=Object(l.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.loading;return{pathsDetail:qe,loading:Bt}})(kr),Ra=v("2BaD"),Xr=v("1n7x"),aa=v.n(Xr),Kr=v("y1J/"),_a=v.n(Kr),di=v("A2z3"),Ei=v.n(di),_e=v("Ye+n"),Ie=v.n(_e),Ye=v("MPMw"),yt=v.n(Ye),Xt=function(qe){var Bt=qe.visible,$t=qe.onOk,cn=$t===void 0?function(){}:$t,Wt=qe.onCancel,_n=Wt===void 0?function(){}:Wt,rn=qe.data,Ht=rn===void 0?{}:rn,An=Object(a.useRef)();Object(a.useEffect)(function(){return Bt?document.body.setAttribute("class",Ie.a.bodyHeight):document.body.removeAttribute("class"),function(){document.body.removeAttribute("class")}},[Bt]);var qt={"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},En=function(){var kn=Object(k.a)(p.a.mark(function Yt(){var wn,ln,xn;return p.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return document.body.scrollIntoView(),wn={margin:[0,0,0,0],filename:"11.pdf",enableLinks:!1,html2canvas:{scale:5,allowTaint:!1,useCORS:!0},jsPDF:{format:[1412,Ht!=null&&Ht.is_icpc_first?2500:1e3],orientation:"landscape",unit:"px"},image:{type:"jpeg",quality:1}},ln=aa()().set(wn).from(An.current).toPdf(),Vt.next=5,ln.get("pdf");case 5:return ln=Vt.sent,Vt.next=8,ln.output("bloburl");case 8:xn=Vt.sent,Object(pe.x)("".concat(Ht.school_name,"-").concat(Ht.user_name,".pdf"),xn);case 10:case"end":return Vt.stop()}},Yt)}));return function(){return kn.apply(this,arguments)}}();return t.a.createElement(g.a,{visible:Bt,title:null,footer:t.a.createElement("div",null,t.a.createElement(c.a,{type:"primary",onClick:En},"\u4E0B\u8F7D\u8BC1\u4E66")),style:{background:"transparen",height:"740px"},centered:!0,width:Ht!=null&&Ht.is_icpc_first?840:1052,className:Ie.a.advertisementModal,maskClosable:!1,closeIcon:t.a.createElement(Ra.a,{onClick:_n,style:{fontSize:"25px",color:"#fff",marginLeft:"100px"}})},t.a.createElement("div",{ref:An},Ht!=null&&Ht.is_icpc_first?t.a.createElement("div",{style:{backgroundImage:"url(".concat(yt.a,")"),height:"1200px",width:"840px",padding:"1px 100px",backgroundSize:"100%",backgroundRepeat:"no-repeat"}},t.a.createElement("div",{style:{color:"#333",fontSize:"36px",marginTop:"465px",width:"100%",marginLeft:"24px"}},Ht==null?void 0:Ht.user_name),t.a.createElement("div",{style:{color:"#333",fontSize:"16px",marginTop:"223px",width:"100%",marginLeft:100}},Ht==null?void 0:Ht.passed_date)):t.a.createElement("div",{style:{backgroundImage:"url(".concat(Ei.a,")"),height:"740px",width:"1052px",padding:"1px 100px"}},t.a.createElement("div",{style:{color:"#EB5E00",fontSize:"36px",marginTop:"239px",width:"100%",textAlign:"center"}},Ht==null?void 0:Ht.school_name," ",Ht==null?void 0:Ht.user_name),t.a.createElement("div",{style:{color:"#0D3580",fontSize:"24px",marginTop:"30px",width:"100%",textAlign:"center"}},"\u4E8E",se()(Ht==null?void 0:Ht.created_at).format("YYYY\u5E74MM\u6708DD\u65E5"),"\u5B8C\u6210\u4E86EduCoder\u5E73\u53F0\u300A",Ht==null?void 0:Ht.subject_name,"\u300B\u8BFE\u7A0B\u5B66\u4E60\u3002"),t.a.createElement("div",{style:{color:"#0D3580",fontSize:"30px",marginTop:"50px",width:"100%",textAlign:"center",fontWeight:900}},"\u7279\u6B64\u8BC1\u660E"),t.a.createElement("div",{style:{color:"#0D3580",fontSize:"14px",marginTop:"30px",width:"100%",textAlign:"center"}},"On ",qt[se()(Ht==null?void 0:Ht.created_at).format("M")]," ",se()(Ht==null?void 0:Ht.created_at).format("DD"),"\uFF0C",se()(Ht==null?void 0:Ht.created_at).format("YYYY"),"\uFF0C completed the \u300A",Ht==null?void 0:Ht.subject_name_en,"\u300B course on EduCoder."),t.a.createElement("img",{src:_a.a,style:{position:"absolute",left:"820px",bottom:"130px"}}),t.a.createElement("div",{style:{color:"#0D3580",fontSize:"12px",width:"100%",display:"flex",paddingRight:"200px",position:"absolute",bottom:"150px"}},t.a.createElement("span",null,"\u8BC1\u4E66\u7F16\u53F7\uFF1A",Ht==null?void 0:Ht.code),t.a.createElement("span",{style:{marginLeft:"560px"}},"\u5728\u7EBF\u7F16\u7A0B\u5B66\u9662")))))},sn=Xt,re=v("YJCA"),W=v("wYyv"),V=v.n(W),ne=Object(re.b)(function(lt){var qe,Bt,$t,cn,Wt,_n,rn,Ht,An,qt=lt.item,En=lt.toIndex,kn=lt.params,Yt=lt.isShow,wn=lt.setShow,ln=lt.dispatch,xn=lt.classroomList,an=lt.handleDeleteMember,Vt=lt.pathsDetail;return t.a.createElement("span",{style:{display:"inline-block",width:"33%",padding:"5px",background:"#fff",marginTop:"10px"}},t.a.createElement("div",{className:je.a.directionItemWrap},t.a.createElement(s.a,{color:"#ffffff",placement:"bottom",title:t.a.createElement("div",{className:je.a.teamHeight},t.a.createElement("span",{title:qt==null?void 0:qt.name,style:{fontSize:"14px",color:"#333333",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"80px",overflow:"hidden"}},(qt==null||((qe=qt.name)===null||qe===void 0)?void 0:qe.length)>6?(qt==null||((Bt=qt.name)===null||Bt===void 0)?void 0:Bt.substr(0,6))+"...":(qt==null?void 0:qt.name)||"--"),t.a.createElement("span",{style:{marginLeft:"10px",color:"#999999",fontSize:"12px"}},(qt==null||(($t=qt.school)===null||$t===void 0)?void 0:$t.length)>9?(qt==null||((cn=qt.school)===null||cn===void 0)?void 0:cn.substr(0,9))+"...":qt==null?void 0:qt.school),t.a.createElement("div",{style:{height:"1px",width:"100%",border:"1px solid #f5f5f5",marginTop:"3px",marginBottom:"3px"}}),!(qt!=null&&qt.brief_introduction)&&t.a.createElement("div",{style:{textAlign:"center",marginTop:"20px"}},"\u6682\u65E0\u7B80\u4ECB"),(qt==null?void 0:qt.brief_introduction)&&t.a.createElement("div",{className:je.a.divHeight},qt==null?void 0:qt.brief_introduction))},t.a.createElement("img",{draggable:!1,className:je.a.imgradius,onClick:function(){Object(F.p)()?l.d.push("".concat(qt.user_url)):ln({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})},src:ut.a.API_SERVER+"/images/"+(qt==null?void 0:qt.image_url)}),t.a.createElement("div",null,(qt==null||((Wt=qt.name)===null||Wt===void 0)?void 0:Wt.length)>6?(qt==null||((_n=qt.name)===null||_n===void 0)?void 0:_n.substr(0,6))+"...":(qt==null?void 0:qt.name)||"--",t.a.createElement("br",null),t.a.createElement("span",{style:{color:"#999999"}},(qt==null||((rn=qt.school)===null||rn===void 0)?void 0:rn.length)>6?(qt==null||((Ht=qt.school)===null||Ht===void 0)?void 0:Ht.substr(0,6))+"...":(qt==null?void 0:qt.school)||"--"))),t.a.createElement("br",null),t.a.createElement("span",{className:je.a.groupActionWrap},t.a.createElement("i",{style:{display:!((An=Vt.detail)!==null&&An!==void 0&&An.allow_add_member)&&"none"},className:"iconfont icon-shanchu5 mr1 c-red font15 current",onClick:function(hr){hr.stopPropagation(),an(qt.id)}}))))}),ve=Object(re.a)(function(lt){var qe=lt.isShow,Bt=lt.setShow,$t=lt.pathsDetail,cn=lt.items,Wt=lt.params,_n=lt.dispatch,rn=lt.classroomList,Ht=lt.handleDeleteMember;return t.a.createElement("div",{className:"task-list-container"},cn==null?void 0:cn.map(function(An,qt){return t.a.createElement(ne,{key:"".concat(An.id),isShow:qe,setShow:Bt,dispatch:_n,pathsDetail:$t,handleDeleteMember:Ht,classroomList:rn,toIndex:qt+1,params:Wt,index:qt,item:An})}))}),oe=function(qe){var Bt=qe.isupdate,$t=qe.setisupdate,cn=qe.data,Wt=qe.classroomList,_n=qe.pathsDetail,rn=qe.operation,Ht=qe.callback,An=qe.handleDeleteMember,qt=qe.onCancel,En=qe.dispatch,kn=qe.visible,Yt=kn===void 0?!1:kn,wn=Object(a.useState)(cn),ln=Object(_.a)(wn,2),xn=ln[0],an=ln[1],Vt=Object(A.i)(),Sn=Object(a.useState)(),hr=Object(_.a)(Sn,2),pn=hr[0],Dn=hr[1],Nn=Object(a.useState)(!0),Gn=Object(_.a)(Nn,2),yn=Gn[0],Kn=Gn[1];function or(er){var rr=er.newIndex,Lr=er.oldIndex;if(!rn)return;an(V()(xn,Lr,rr))}Object(a.useEffect)(function(){Bt&&(gr(xn.map(function(er){return er==null?void 0:er.id})),$t(!1))},[Bt]),Object(a.useEffect)(function(){an(cn)},[JSON.stringify(cn)]);function gr(er){return Ur.apply(this,arguments)}function Ur(){return Ur=Object(k.a)(p.a.mark(function er(rr){var Lr;return p.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return _r.next=2,Object(Ut.a)("/api/paths/".concat(Vt==null?void 0:Vt.pathId,"/move_subject_members.json"),{method:"post",body:{user_ids:rr}});case 2:Lr=_r.sent,En({type:"pathsDetail/getRightData",payload:{id:Vt.pathId}});case 4:case"end":return _r.stop()}},er)})),Ur.apply(this,arguments)}return t.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},t.a.createElement(ve,{axis:"xy",helperClass:"dragging-li",isShow:yn,setShow:Kn,distance:2,disableAutoscroll:!0,dispatch:En,pathsDetail:_n,handleDeleteMember:An,classroomList:Wt,params:Vt,items:xn,onSortEnd:or}))},tt=Object(l.a)(function(lt){var qe=lt.classroomList,Bt=lt.pathsDetail;return{classroomList:qe,pathsDetail:Bt}})(oe),Kt=v("lseA"),dn=v.n(Kt),Cn=[2,5,8,11,14],Jt=Object(re.b)(function(lt){var qe,Bt,$t,cn,Wt=lt.item,_n=lt.toIndex,rn=lt.params,Ht=lt.dispatch,An=lt.classroomList,qt=lt.handleDeleteMember,En=lt.pathsDetail;return t.a.createElement("span",{onClick:function(){window.open(Wt==null?void 0:Wt.first_category_url)},style:{display:"inline-block",padding:"10px 20px",width:"100%",background:"#fff",marginTop:"5px"}},t.a.createElement("div",{className:dn.a.directionItemWrap},t.a.createElement("img",{className:dn.a.imgradius,src:ut.a.API_SERVER+(Wt==null?void 0:Wt.default_image)}),t.a.createElement("span",{className:dn.a.groupActionWrap},t.a.createElement(s.a,{title:Wt.name},t.a.createElement("span",{style:{fontSize:"18px",color:"#ffffff"}},((qe=Wt.name)===null||qe===void 0?void 0:qe.length)>7?t.a.createElement("span",null,(Bt=Wt.name)===null||Bt===void 0?void 0:Bt.substring(0,7),t.a.createElement("br",null)," ",($t=Wt.name)===null||$t===void 0?void 0:$t.substring(7,14),(Wt==null?void 0:Wt.name.length)>14&&"..."):Wt.name)))),t.a.createElement("div",{className:dn.a.bottomdiv},t.a.createElement(s.a,{title:"\u8BBF\u95EE\u6570\uFF1A".concat(Wt==null?void 0:Wt.visits),placement:"bottom"},t.a.createElement("span",null,t.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-chakan ml3 font15 current"}),t.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}},Wt==null?void 0:Wt.visits))),t.a.createElement(s.a,{title:"\u8BFE\u5802\u6210\u5458\u6570\uFF1A".concat(Wt==null?void 0:Wt.course_members_count),placement:"bottom"},t.a.createElement("span",null,t.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-ren ml3 font15 current"}),t.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}}," ",Wt==null?void 0:Wt.course_members_count))),t.a.createElement(s.a,{overlayStyle:{maxWidth:380},title:t.a.createElement("div",{style:{whiteSpace:"nowrap"}},"\u8BFE\u5802\u7684\u4EFB\u52A1\u6570(\u4F5C\u4E1A\u6570\uFF0B\u8BD5\u5377\u6570\uFF0B\u95EE\u5377\u6570)\uFF1A",Wt==null?void 0:Wt.tasks_count),placement:"bottom"},t.a.createElement("span",null,t.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-wenjian2 ml3 font15 current"}),t.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}}," ",Wt==null?void 0:Wt.tasks_count))),t.a.createElement(s.a,{title:"\u5220\u9664",placement:"bottom"},t.a.createElement("span",null,t.a.createElement("i",{style:{color:"#bbbbbb",display:!(En!=null&&(cn=En.detail)!==null&&cn!==void 0&&cn.allow_add_member)&&"none"},className:"iconfont icon-lajitong1 mr3 font15 current",onClick:function(Yt){Yt.stopPropagation(),qt(Wt.id)}})))))}),Vn=Object(re.a)(function(lt){var qe=lt.items,Bt=lt.params,$t=lt.dispatch,cn=lt.classroomList,Wt=lt.handleDeleteMember,_n=lt.pathsDetail;return t.a.createElement("div",{className:"task-list-container"},qe==null?void 0:qe.map(function(rn,Ht){return t.a.createElement(Jt,{key:"".concat(rn.id),dispatch:$t,pathsDetail:_n,handleDeleteMember:Wt,classroomList:cn,toIndex:Ht+1,params:Bt,index:Ht,item:rn})}))}),Xn=function(qe){var Bt=qe.data,$t=qe.classroomList,cn=qe.pathsDetail,Wt=qe.callback,_n=qe.handleDeleteMember,rn=qe.onCancel,Ht=qe.dispatch,An=qe.visible,qt=An===void 0?!1:An,En=Object(a.useState)(Bt),kn=Object(_.a)(En,2),Yt=kn[0],wn=kn[1],ln=Object(A.i)(),xn=Object(a.useState)(),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1];function hr(Nn){var Gn=Nn.newIndex,yn=Nn.oldIndex;pn(V()(Yt,yn,Gn).map(function(Kn){return Kn==null?void 0:Kn.id})),wn(V()(Yt,yn,Gn))}Object(a.useEffect)(function(){wn(Bt)},[JSON.stringify(Bt)]);function pn(Nn){return Dn.apply(this,arguments)}function Dn(){return Dn=Object(k.a)(p.a.mark(function Nn(Gn){var yn;return p.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,Object(Ut.a)("/api/paths/".concat(ln==null?void 0:ln.pathId,"/spoc_courses/move_position.json"),{method:"post",body:{ids:Gn}});case 2:yn=or.sent;case 3:case"end":return or.stop()}},Nn)})),Dn.apply(this,arguments)}return t.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},t.a.createElement(Vn,{axis:"y",helperClass:"dragging-li",pathsDetail:cn,distance:2,dispatch:Ht,handleDeleteMember:_n,classroomList:$t,params:ln,items:Yt,onSortEnd:hr}))},lr=Object(l.a)(function(lt){var qe=lt.classroomList,Bt=lt.pathsDetail;return{classroomList:qe,pathsDetail:Bt}})(Xn),Rr=v("V0Rq"),qr=v("HBuW"),zr=v("W6us"),Ca=v.n(zr),Dr=v("CnIC"),ya=v.n(Dr),ka=v("LZjx"),fi=v.n(ka),Ka=v("dhSg"),qa=v("cVA7"),Si=v.n(qa),pi=v("h6EL");function ui(lt){var qe=function(_n,rn){if(_n.localName===rn)return _n;for(var Ht=0,An=_n;An=An.parentNode;Ht++){if(An.localName===rn)return An;if(An==document.documentElement)return!1}},Bt=lt.target,$t=qe(Bt,"a");if(console.log([$t],$t==null?void 0:$t.href,44),$t!=null&&$t.href)return;if(Bt.tagName.toUpperCase()==="IMG"){var cn=Bt.src||Bt.getAttribute("src");cn&&cn.indexOf("/images/avatars/User")===-1&&(lt.stopPropagation(),lt.preventDefault(),Ka.a.publish("preview-image",cn))}}var mi=function(qe){var Bt,$t,cn,Wt,_n,rn,Ht,An,qt,En,kn,Yt,wn,ln,xn,an,Vt,Sn,hr,pn,Dn,Nn,Gn,yn,Kn,or,gr,Ur,er,rr,Lr,Er,_r,sa,ta,tr,vr,ja,ia,Yn,vn,yr,oi,Cr,Ir,fr,ar,Ln,Mn,gn,qn,na,cr,jr,Pa,da,ba,ha,Ta,Da,Ua,Qr,Wa,Ea,za,hi,Ji,Li,Ci,Uo,Ao,_o,as,fs,is,os,So,ps,Qi,Aa,wi,vi,vo,uo,Ki,ss,ls,qo,fo,zo,yo,es,Go,Oa,la,xi,Zi,Oo,co,No,Wi,Ai,Vo,Pn=qe.pathsDetail,ts=qe.user,lo=qe.globalSetting,Ha=qe.loading,Fi=qe.classroomList,Ti=qe.dispatch,Ro=Object(O.a)(qe,["pathsDetail","user","globalSetting","loading","classroomList","dispatch"]),Oi=Object(A.i)(),Fo=Object(a.useState)(!0),ns=Object(_.a)(Fo,2),ms=ns[0],Xo=ns[1],Ss=Object(a.useState)(!1),Fs=Object(_.a)(Ss,2),On=Fs[0],nr=Fs[1],zt=Object(a.useState)(),on=Object(_.a)(zt,2),Tn=on[0],Hn=on[1],jn=Object(a.useState)(),pr=Object(_.a)(jn,2),dr=pr[0],Bn=pr[1],Yr=Object(a.useState)({}),Ri=Object(_.a)(Yr,2),ir=Ri[0],si=Ri[1],ao=Object(a.useState)(),zi=Object(_.a)(ao,2),Wn=zi[0],Qa=zi[1],Gi=Object(a.useRef)(),li=Object(a.useState)(!1),io=Object(_.a)(li,2),Yo=io[0],ko=io[1],jo=Object(a.useState)({}),gs=Object(_.a)(jo,2),ki=gs[0],sl=gs[1],vl=Object(a.useState)(!1),Os=Object(_.a)(vl,2),ks=Os[0],us=Os[1],ll=Object(a.useState)(!1),ul=Object(_.a)(ll,2),Sl=ul[0],Zs=ul[1],rs=Object(A.h)();Object(a.useEffect)(function(){if(Gi.current)return Gi.current.addEventListener("mousedown",ui),function(){Gi.current.removeEventListener("mousedown",ui)}},[Gi.current]);var cl=function(){var Rn=Object(k.a)(p.a.mark(function xr(){var In;return p.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:if(dr!=null&&dr.trim()){Jn.next=3;break}return U.b.warn("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Jn.abrupt("return");case 3:return Jn.next=5,Object(B.U)({id:Oi.pathId,team_title:dr.trim()});case 5:In=Jn.sent,Hn(!Tn),(In==null?void 0:In.status)===0&&(Bn(null),U.b.success(In.message),Ti({type:"pathsDetail/getRightData",payload:{id:Oi.pathId}}));case 8:case"end":return Jn.stop()}},xr)}));return function(){return Rn.apply(this,arguments)}}();Object(a.useEffect)(function(){Ti({type:"pathsDetail/getCoureses",payload:{id:Oi.pathId}}),Qs()},[]);function Qs(){return $s.apply(this,arguments)}function $s(){return $s=Object(k.a)(p.a.mark(function Rn(){return p.a.wrap(function(In){for(;;)switch(In.prev=In.next){case 0:return In.t0=sl,In.next=3,Object(B.w)({id:Oi.pathId,course_type:1});case 3:In.t1=In.sent,(0,In.t0)(In.t1);case 5:case"end":return In.stop()}},Rn)})),$s.apply(this,arguments)}Object(a.useEffect)(function(){var Rn;if(((Rn=Fi.actionTabs)===null||Rn===void 0?void 0:Rn.key)==="\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4"){var xr,In,Gr=(xr=Pn.detail)===null||xr===void 0||((In=xr.courses)===null||In===void 0)?void 0:In.find(function(Jn){var ra;return Jn.course_id===((ra=Fi.actionTabs)===null||ra===void 0?void 0:ra.name)});si(Gr||{})}},[Fi.actionTabs]),Object(a.useEffect)(function(){var Rn,xr,In;if((Rn=Pn.detail)!==null&&Rn!==void 0&&Rn.has_start){var Gr,Jn,ra=(Gr=Pn.detail)===null||Gr===void 0||((Jn=Gr.courses)===null||Jn===void 0)?void 0:Jn.findIndex(function(Io){var Do;return parseInt((Do=Io.course_status)===null||Do===void 0?void 0:Do.status)===1});In=ra>-1?ra:0}else{var Nr,fa,yi,Ya,Bo,Ho=(Nr=Pn.detail)===null||Nr===void 0||((fa=Nr.courses)===null||fa===void 0||((yi=fa.map(function(Io){var Do;return parseInt((Do=Io.course_status)===null||Do===void 0?void 0:Do.status)}))===null||yi===void 0))?void 0:yi.lastIndexOf(2);In=Ho>-1?Ho:0,Ho=(Ya=Pn.detail)===null||Ya===void 0||((Bo=Ya.courses)===null||Bo===void 0)?void 0:Bo.findIndex(function(Io){var Do;return parseInt((Do=Io.course_status)===null||Do===void 0?void 0:Do.status)===0}),In=Ho>-1?Ho:In}if((xr=Pn.detail)!==null&&xr!==void 0&&xr.courses){var el;si(((el=Pn.detail)===null||el===void 0?void 0:el.courses[In])||{})}},[Pn.detail]);var qs=function(){var Rn=Object(k.a)(p.a.mark(function xr(In){return p.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:g.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6210\u5458\u5417\uFF1F"),onOk:function(){var ra=Object(k.a)(p.a.mark(function fa(){var yi,Ya;return p.a.wrap(function(Ho){for(;;)switch(Ho.prev=Ho.next){case 0:return Ho.next=2,Object(B.p)({id:Oi.pathId,user_id:In});case 2:yi=Ho.sent,(yi==null?void 0:yi.status)===1&&(((Ya=ts.userInfo)===null||Ya===void 0?void 0:Ya.user_id)===In&&(window.location.href=window.location.href),U.b.info(yi==null?void 0:yi.message),Bs());case 4:case"end":return Ho.stop()}},fa)}));function Nr(){return ra.apply(this,arguments)}return Nr}()});case 1:case"end":return Jn.stop()}},xr)}));return function(In){return Rn.apply(this,arguments)}}(),yl=function(){var Rn=Object(k.a)(p.a.mark(function xr(In){return p.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:g.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u8BFE\u5802\u5417\uFF1F"),onOk:function(){var ra=Object(k.a)(p.a.mark(function fa(){var yi;return p.a.wrap(function(Bo){for(;;)switch(Bo.prev=Bo.next){case 0:return Bo.next=2,Object(B.o)({id:Oi.pathId,courseid:In});case 2:yi=Bo.sent,(yi==null?void 0:yi.status)===0&&(U.b.info("\u5220\u9664\u6210\u529F"),Bs());case 4:case"end":return Bo.stop()}},fa)}));function Nr(){return ra.apply(this,arguments)}return Nr}()});case 1:case"end":return Jn.stop()}},xr)}));return function(In){return Rn.apply(this,arguments)}}(),Rs=function(){g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u7ACB\u5373\u9884\u7EA6\uFF1F"),onOk:function(){var xr=Object(k.a)(p.a.mark(function Gr(){var Jn;return p.a.wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:return Nr.next=2,Object(B.i)({id:Oi.pathId});case 2:Jn=Nr.sent,Jn.status===0&&(Qa(!0),U.b.success(Jn.message));case 4:case"end":return Nr.stop()}},Gr)}));function In(){return xr.apply(this,arguments)}return In}()})},Ol=function(){Ti({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator"}})},vs=function(xr){Ti({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCourses",type:xr}})},Bs=function(){Ti({type:"pathsDetail/getPathsDetail",payload:{id:Oi.pathId}}),Ti({type:"pathsDetail/getRightData",payload:{id:Oi.pathId}}),Ti({type:"pathsDetail/getCoureses",payload:{id:Oi.pathId}}),Qs()},Ks=function(){var xr;return Tn?t.a.createElement("div",{className:Qe.a.flexRow},t.a.createElement(Ne.a,{placeholder:"\u4F8B\u5982\uFF1A\u6559\u5B66\u56E2\u961F",value:dr,onChange:function(Gr){return Bn(Gr.target.value)}}),t.a.createElement(c.a,{className:"ml5",onClick:function(){return Hn(!Tn)}},"\u53D6\u6D88"),t.a.createElement(c.a,{className:"ml5",type:"primary",onClick:cl},"\u786E\u5B9A")):t.a.createElement("div",{className:Qe.a.directionItemWrap},t.a.createElement("span",{style:{fontSize:"16px",display:"flex",alignItems:"center"}}," ",t.a.createElement("img",{style:{marginRight:"10px"},src:ya.a})," ",(xr=Pn.rightData)===null||xr===void 0?void 0:xr.team_title),t.a.createElement("span",{className:Qe.a.groupActionWrap},t.a.createElement("i",{className:"iconfont icon-xiugai mr1 c-light-primary font15 current",onClick:function(){return Hn(!Tn)}})),!ks&&t.a.createElement("a",{style:{flex:"1",textAlign:"end"},onClick:function(){us(!0)}},"\u7F16\u8F91"),ks&&t.a.createElement("div",{style:{flex:"1",textAlign:"end"}},t.a.createElement("a",{onClick:function(){us(!1)}},"\u53D6\u6D88"),t.a.createElement("a",{onClick:function(){Zs(!0),setTimeout(function(){us(!1)},500)},style:{marginLeft:10}},"\u5B8C\u6210")))},Is=function(){var xr,In,Gr=new Image;Gr.src=fn.o;var Jn=((xr=Pn.rightData)===null||xr===void 0||((In=xr.tags)===null||In===void 0)?void 0:In.map(function(Nr,fa){return{name:Nr.tag_name,value:fa}}))||[],ra={backgroundColor:"#fff",tooltip:{pointFormat:"{series.name}"},series:[{type:"wordCloud",sizeRange:[10,30],rotationRange:[-90,90],rotationStep:45,gridSize:2,shape:"pentagon",maskImage:Gr,textStyle:{normal:{color:function(){return"rgb("+Math.round(Math.random()*255)+", "+Math.round(Math.random()*255)+", "+Math.round(Math.random()*255)+")"}}},left:"center",top:"center",right:null,bottom:null,width:"100%",height:"100%",data:Jn}]};return ra},ea=function(){if(!Object(he.e)(Ti))return;g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var xr=Object(k.a)(p.a.mark(function Gr(){var Jn,ra;return p.a.wrap(function(fa){for(;;)switch(fa.prev=fa.next){case 0:return fa.next=2,Object(B.K)({id:ir==null?void 0:ir.course_id});case 2:Jn=fa.sent,Jn.status===0&&(U.b.success(Jn.message),Ti({type:"pathsDetail/getPathsDetail",payload:{id:Oi.pathId}}),parseInt((ra=ir.course_status)===null||ra===void 0?void 0:ra.status)===1&&Object(pe.S)("".concat(ir==null?void 0:ir.first_category_url)));case 4:case"end":return fa.stop()}},Gr)}));function In(){return xr.apply(this,arguments)}return In}()})},Fr=function(){var Rn=Object(k.a)(p.a.mark(function xr(){var In,Gr,Jn;return p.a.wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:if(Object(he.e)(Ti)){Nr.next=2;break}return Nr.abrupt("return");case 2:return nr(!0),Nr.next=5,Object(Ut.a)("/api/payments.json",{method:"POST",body:{subject_id:Oi.pathId,payment_method:"wechat_qr"}});case 5:In=Nr.sent,In!=null&&In.num&&(nr(!1),l.d.push(rs!=null&&(Gr=rs.query)!==null&&Gr!==void 0&&Gr.userid?"/order/".concat(Oi.pathId,"/pay?order_num=").concat(In==null?void 0:In.num,"&userid=").concat(rs==null||((Jn=rs.query)===null||Jn===void 0)?void 0:Jn.userid):"/order/".concat(Oi.pathId,"/pay?order_num=").concat(In==null?void 0:In.num)));case 7:case"end":return Nr.stop()}},xr)}));return function(){return Rn.apply(this,arguments)}}(),Ga=function(){var Rn=Object(k.a)(p.a.mark(function xr(In,Gr){var Jn;return p.a.wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:if(Ti({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Gr){Nr.next=7;break}return Nr.next=4,Object(qr.D)({id:In});case 4:Nr.t0=Nr.sent,Nr.next=10;break;case 7:return Nr.next=9,Object(qr.E)({id:In});case 9:Nr.t0=Nr.sent;case 10:if(Jn=Nr.t0,Ti({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Jn!=null&&Jn.game_identifier||Jn!=null&&Jn.identifier)){Nr.next=15;break}return Object(pe.S)(Gr?"/tasks/".concat(Jn==null?void 0:Jn.identifier,"/jupyter"):"/tasks/".concat(Jn.game_identifier)),Nr.abrupt("return");case 15:(Jn==null?void 0:Jn.status)===2?ma(Jn==null?void 0:Jn.message):(Jn==null?void 0:Jn.status)===3&&Wr(Jn==null?void 0:Jn.message);case 16:case"end":return Nr.stop()}},xr)}));return function(In,Gr){return Rn.apply(this,arguments)}}(),Wr=function(xr){g.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",xr,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},ma=function Rn(xr){var In;xr=(In=xr)!==null&&In!==void 0&&In.includes(".json")?xr:"".concat(xr,".json"),g.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Gr=Object(k.a)(p.a.mark(function ra(){var Nr,fa;return p.a.wrap(function(Ya){for(;;)switch(Ya.prev=Ya.next){case 0:return Ya.next=2,Object(Rr.U)({url:xr});case 2:if(Nr=Ya.sent,Nr){Ya.next=5;break}return Ya.abrupt("return");case 5:return U.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Ya.next=8,Object(qr.E)({id:Nr.shixun_identifier});case 8:if(fa=Ya.sent,!(fa!=null&&fa.game_identifier)){Ya.next=12;break}return Object(pe.S)("/tasks/".concat(fa.game_identifier)),Ya.abrupt("return");case 12:(fa==null?void 0:fa.status)===2?Rn(fa==null?void 0:fa.message):(fa==null?void 0:fa.status)===3&&Wr(fa==null?void 0:fa.message);case 13:case"end":return Ya.stop()}},ra)}));function Jn(){return Gr.apply(this,arguments)}return Jn}()})},ga=function(){var xr;if(!Object(he.e)(Ti))return;var In=[];Pn==null||((xr=Pn.stageData)===null||xr===void 0)||xr.forEach(function(Jn){var ra;if(Jn.items&&(ra=Jn.items)!==null&&ra!==void 0&&ra.length){var Nr;(Nr=Jn.items)===null||Nr===void 0||Nr.forEach(function(fa){var yi;In.push(fa),fa.children&&(yi=fa.children)!==null&&yi!==void 0&&yi.length&&(In=In.concat(fa.children))})}});var Gr=In.find(function(Jn){return["VideoItem","Attachment","Shixun"].includes(Jn.item_type)});if(console.log(Gr,"stageParam"),Gr.item_type==="VideoItem"){Object(pe.S)("/video/".concat(Gr.id,"?subject_id=").concat(Oi.pathId));return}if(Gr.item_type==="Attachment"){Object(pe.S)(Gr.url);return}if(Gr.item_type==="Shixun"){Ga(Gr.identifier,Gr.is_jupyter);return}},Na=function(){var xr,In,Gr,Jn,ra=(xr=Pn.detail)===null||xr===void 0||((In=xr.learning_status)===null||In===void 0)?void 0:In[0],Nr=(Gr=Pn.detail)===null||Gr===void 0||((Jn=Gr.learning_status)===null||Jn===void 0)?void 0:Jn[1];if(ra==="can")return t.a.createElement(c.a,{onClick:ga,type:"primary"},"\u5F00\u59CB\u5B66\u4E60");if(ra==="disabled"){if(Nr==="try"||Nr==="unpayed")return t.a.createElement(c.a,{loading:On,onClick:Fr,type:"primary"},"\u7ACB\u5373\u8D2D\u4E70");if(Nr==="expired")return t.a.createElement(c.a,{disabled:!0,type:"primary"},"\u5DF2\u8FC7\u671F");if(Nr==="buyed")return t.a.createElement(c.a,{disabled:!0,type:"primary"},"\u672A\u5F00\u59CB")}},La=function(){var Rn=Object(k.a)(p.a.mark(function xr(){var In,Gr,Jn,ra,Nr,fa,yi,Ya,Bo,Ho,el,Io;return p.a.wrap(function(cs){for(;;)switch(cs.prev=cs.next){case 0:if(Ho=function(){var dl=Object(k.a)(p.a.mark(function Ds(){var Rl;return p.a.wrap(function(bs){for(;;)switch(bs.prev=bs.next){case 0:return bs.next=2,Object(Ut.a)("/api/users/".concat(ts.userInfo.login,"/subjects/request_certificate.json?subject_id=").concat(Oi.pathId),{method:"post"});case 2:Rl=bs.sent,(Rl==null?void 0:Rl.status)===0&&(U.b.info("\u63D0\u4EA4\u6210\u529F"),Ti({type:"pathsDetail/getRightData",payload:{id:Oi.pathId}}));case 4:case"end":return bs.stop()}},Ds)}));return function(){return dl.apply(this,arguments)}}(),(In=ts.userInfo)!==null&&In!==void 0&&In.professional_certification){cs.next=4;break}return g.a.confirm({title:"\u63D0\u793A",centered:!0,content:t.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(pe.S)("/account/certification")}}),cs.abrupt("return",!1);case 4:if(!(((Gr=Pn.rightData)===null||Gr===void 0||((Jn=Gr.progress)===null||Jn===void 0)?void 0:Jn.certificated)==="drafted")){cs.next=6;break}return cs.abrupt("return",!1);case 6:if(!(((ra=Pn.rightData)===null||ra===void 0||((Nr=ra.progress)===null||Nr===void 0)?void 0:Nr.certificated)==="none"||((fa=Pn.rightData)===null||fa===void 0||((yi=fa.progress)===null||yi===void 0)?void 0:yi.certificated)==="rejected")){cs.next=9;break}return((el=Pn.rightData)===null||el===void 0?void 0:el.progress.learned)===100?g.a.info({title:"\u7533\u8BF7\u8BC1\u4E66",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:'\u7533\u8BF7\u6210\u529F\uFF0C\u53EF\u4EE5\u5728\u4E2A\u4EBA\u4E2D\u5FC3"\u6211\u7684\u8BC1\u4E66"\u4E2D\u67E5\u770B',okText:"\u786E\u5B9A\u7533\u8BF7",onOk:Ho}):g.a.confirm({title:"\u7533\u8BF7\u8BC1\u4E66",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:"\u4F60\u76EE\u524D\u5B66\u4E60\u8FDB\u5EA6\u4E3A".concat((Io=Pn.rightData)===null||Io===void 0?void 0:Io.progress.learned,"%\uFF0C\u5EFA\u8BAE\u7533\u8BF7\u540E\u7EE7\u7EED\u8FDB\u884C\u8BFE\u7A0B\u5B66\u4E60"),okText:"\u786E\u5B9A\u7533\u8BF7",onOk:Ho}),cs.abrupt("return",!1);case 9:((Ya=Pn.rightData)===null||Ya===void 0||((Bo=Ya.progress)===null||Bo===void 0)?void 0:Bo.certificated)==="passed"&&ko(!0);case 10:case"end":return cs.stop()}},xr)}));return function(){return Rn.apply(this,arguments)}}(),Vi=!!((Bt=Pn.detail)!==null&&Bt!==void 0&&Bt.participant_count)&&!(($t=Pn.detail)!==null&&$t!==void 0&&$t.allow_statistics),$a=((cn=Pn.detail)===null||cn===void 0||((Wt=cn.courses)===null||Wt===void 0)?void 0:Wt.findIndex(function(Rn){return(Rn==null?void 0:Rn.course_id)===(ir==null?void 0:ir.course_id)}))+1,ys=$a===((_n=Pn.detail)===null||_n===void 0||((rn=_n.courses)===null||rn===void 0)?void 0:rn.length);return t.a.createElement("section",{className:Qe.a.rightWrap},((Ht=Pn.rightData)===null||Ht===void 0?void 0:Ht.qrcode_img)&&t.a.createElement("div",{className:Qe.a.qrCode},t.a.createElement("img",{src:(An=Pn.rightData)===null||An===void 0?void 0:An.qrcode_img})),((qt=Pn.rightData)===null||qt===void 0?void 0:qt.progress)&&t.a.createElement("div",{className:"".concat(Qe.a.card," ").concat(Qe.a.cardTop),style:{top:(En=Pn.detail)!==null&&En!==void 0&&(kn=En.courses)!==null&&kn!==void 0&&kn.length?"-140px":"-70px"}},parseInt(ir==null||((Yt=ir.course_status)===null||Yt===void 0)?void 0:Yt.status)===2&&ir.course_identity<6&&t.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),parseInt((wn=ir.course_status)===null||wn===void 0?void 0:wn.status)===2&&(ir.course_identity<6?"":t.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),t.a.createElement("div",{className:Qe.a.flexRow},Vi&&!!((ln=Pn.detail)!==null&&ln!==void 0&&(xn=ln.courses)!==null&&xn!==void 0&&xn.length)&&ys&&t.a.createElement("span",{className:"mt20"},t.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(an=Pn.detail)===null||an===void 0?void 0:an.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),t.a.createElement("p",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",t.a.createElement("span",{className:"mr5 c-red-ee4"},Wn===!0?((Vt=Pn.detail)===null||Vt===void 0?void 0:Vt.participant_count)+1:(Sn=Pn.detail)===null||Sn===void 0?void 0:Sn.participant_count),"\u4EBA")),Vi&&!((hr=Pn.detail)!==null&&hr!==void 0&&(pn=hr.courses)!==null&&pn!==void 0&&pn.length)&&ys&&t.a.createElement("span",null,!((Dn=Pn.detail)!==null&&Dn!==void 0&&Dn.has_participate)&&(Wn===!0?t.a.createElement("span",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):t.a.createElement("a",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bg28e),onClick:Rs},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((Nn=Pn.detail)===null||Nn===void 0?void 0:Nn.has_participate)&&t.a.createElement("span",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),t.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Gn=Pn.detail)===null||Gn===void 0?void 0:Gn.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),t.a.createElement("p",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",t.a.createElement("span",{className:"mr5 c-red-ee4"},Wn===!0?((yn=Pn.detail)===null||yn===void 0?void 0:yn.participant_count)+1:(Kn=Pn.detail)===null||Kn===void 0?void 0:Kn.participant_count),"\u4EBA"))),parseInt(ir==null||((or=ir.course_status)===null||or===void 0)?void 0:or.status)===1&&t.a.createElement("div",{className:"mr20 c-red-ee4"},ir==null||((gr=ir.course_status)===null||gr===void 0)?void 0:gr.time),t.a.createElement("p",{style:{display:ir.course_identity<6?"":"none"},className:"mb10 mt10 ".concat(Qe.a.flexRowAbout)},t.a.createElement("span",{style:{display:((Ur=ir.course_status)===null||Ur===void 0?void 0:Ur.status)<=1?"":"none"},className:"c-light-green font14"},"\u5DF2\u5B66",(er=Pn.rightData)===null||er===void 0?void 0:er.progress.learned,"%"),t.a.createElement("span",{style:{display:((rr=ir.course_status)===null||rr===void 0?void 0:rr.status)<=1?"":"none"},className:"c-light-black"},"\u5B66\u4E60\u8017\u65F6",Object(pe.bb)((Lr=Pn.rightData)===null||Lr===void 0?void 0:Lr.progress.time)," "),((Er=Pn.rightData)===null||Er===void 0||((_r=Er.progress)===null||_r===void 0)?void 0:_r.certificated)!="disabled"&&t.a.createElement(c.a,{disabled:((sa=Pn.rightData)===null||sa===void 0||((ta=sa.progress)===null||ta===void 0)?void 0:ta.certificated)==="drafted",onClick:La},((tr=Pn.rightData)===null||tr===void 0||((vr=tr.progress)===null||vr===void 0)?void 0:vr.certificated)==="none"&&"\u7533\u8BF7\u8BC1\u4E66",((ja=Pn.rightData)===null||ja===void 0||((ia=ja.progress)===null||ia===void 0)?void 0:ia.certificated)==="rejected"&&"\u7533\u8BF7\u8BC1\u4E66",((Yn=Pn.rightData)===null||Yn===void 0||((vn=Yn.progress)===null||vn===void 0)?void 0:vn.certificated)==="drafted"&&"\u5BA1\u6838\u4E2D",((yr=Pn.rightData)===null||yr===void 0||((oi=yr.progress)===null||oi===void 0)?void 0:oi.certificated)==="passed"&&"\u67E5\u770B\u8BC1\u4E66")),t.a.createElement(s.a,{placement:"bottom",title:"\u5B8C\u6210\u8BFE\u7A0B\u540E\u53EF\u83B7\u53D6\u8BC1\u4E66\uFF01",color:"yellow"}," ",t.a.createElement(mt.a,{percent:(Cr=Pn.rightData)===null||Cr===void 0?void 0:Cr.progress.learned,showInfo:!1,style:{display:((Ir=ir.course_status)===null||Ir===void 0?void 0:Ir.status)<=1&&ir.course_identity<6?"":"none"},status:"active",strokeColor:{"0%":"#29BD8B","100%":"#29BD8B"}})),parseInt((fr=ir.course_status)===null||fr===void 0?void 0:fr.status)===2&&((ar=Pn.detail)===null||ar===void 0?void 0:ar.allow_add_member)&&t.a.createElement("a",{className:Qe.a.classButton,href:"".concat(ir==null?void 0:ir.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),parseInt((Ln=ir.course_status)===null||Ln===void 0?void 0:Ln.status)===1&&ir.course_identity>5&&t.a.createElement("div",{className:Qe.a.classButton,onClick:ea},"\u7ACB\u5373\u52A0\u5165"),parseInt((Mn=ir.course_status)===null||Mn===void 0?void 0:Mn.status)===1&&ir.course_identity===5&&t.a.createElement("a",{className:Qe.a.classButton,href:"".concat(ir==null?void 0:ir.first_category_url),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),parseInt((gn=ir.course_status)===null||gn===void 0?void 0:gn.status)===0&&ir.course_identity>5&&t.a.createElement("div",{className:Qe.a.classButton,onClick:ea},"\u7ACB\u5373\u62A5\u540D"),parseInt((qn=ir.course_status)===null||qn===void 0?void 0:qn.status)===0&&ir.course_identity===5&&t.a.createElement("div",{className:Qe.a.classButton},"\u62A5\u540D\u6210\u529F"),(parseInt(ir==null||((na=ir.course_status)===null||na===void 0)?void 0:na.status)===0||parseInt(ir==null||((cr=ir.course_status)===null||cr===void 0)?void 0:cr.status)===1)&&ir.course_identity<5&&t.a.createElement("a",{className:Qe.a.classButton,href:"".concat(ir==null?void 0:ir.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),Vi&&ys&&((jr=Pn.detail)===null||jr===void 0?void 0:jr.has_participate)&&t.a.createElement("span",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),Vi&&ys&&!((Pa=Pn.detail)!==null&&Pa!==void 0&&Pa.has_participate)&&(Wn?t.a.createElement("span",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):t.a.createElement("span",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bg28e),onClick:Rs},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),!((da=Pn.detail)!==null&&da!==void 0&&da.excellent)&&((ba=Pn.detail)===null||ba===void 0?void 0:ba.is_free)!==!0&&t.a.createElement("div",{className:Qe.a.price},t.a.createElement("ul",null,t.a.createElement("li",{className:Qe.a.li1},!!((ha=Pn.detail)!==null&&ha!==void 0&&ha.origin_price)&&t.a.createElement("div",{className:Qe.a.discounts},"\u9650\u65F6\u4F18\u60E0"),t.a.createElement("div",{className:Qe.a.realPrice},t.a.createElement("span",null,"\uFFE5"),(Ta=Pn.detail)===null||Ta===void 0?void 0:Ta.price),!!((Da=Pn.detail)!==null&&Da!==void 0&&Da.origin_price)&&t.a.createElement("div",{className:Qe.a.lineationPrice},t.a.createElement("span",null,"\uFFE5"),(Ua=Pn.detail)===null||Ua===void 0?void 0:Ua.origin_price)),t.a.createElement("li",{className:Qe.a.li2},"\u8BFE\u7A0B\u6709\u6548\u671F\uFF1A",((Qr=Pn.detail)===null||Qr===void 0||((Wa=Qr.expiration_type)===null||Wa===void 0)?void 0:Wa.clazz)==="1"&&"\u6C38\u4E45\u6709\u6548",((Ea=Pn.detail)===null||Ea===void 0||((za=Ea.expiration_type)===null||za===void 0)?void 0:za.clazz)==="2"&&"\u8D2D\u4E70\u540E".concat((hi=Pn.detail)===null||hi===void 0||((Ji=hi.expiration_type)===null||Ji===void 0||((Li=Ji.days)===null||Li===void 0))?void 0:Li[0],"\u5929\u5185\u6709\u6548"),((Ci=Pn.detail)===null||Ci===void 0||((Uo=Ci.expiration_type)===null||Uo===void 0)?void 0:Uo.clazz)==="3"&&"".concat((Ao=Pn.detail)===null||Ao===void 0||((_o=Ao.expiration_type)===null||_o===void 0||((as=_o.days)===null||as===void 0))?void 0:as.join("\u5230")))),Na()),t.a.createElement("p",{className:"mb30",style:{marginTop:"15px"}},t.a.createElement("span",{className:"font16",style:{display:"flex",alignItems:"center"}},t.a.createElement("img",{style:{marginRight:"10px"},src:Ca.a})," ",(fs=Pn.detail)===null||fs===void 0?void 0:fs.learning_notes_title)),t.a.createElement("div",{ref:Gi},t.a.createElement(Rt.a,{className:"fon16",value:(is=Pn.detail)===null||is===void 0?void 0:is.learning_notes}))),!!((os=Pn.rightData)!==null&&os!==void 0&&(So=os.members)!==null&&So!==void 0&&So.length)&&t.a.createElement("div",{className:"".concat(Qe.a.card," pb0"),style:{marginTop:(ps=Pn.detail)!==null&&ps!==void 0&&(Qi=ps.courses)!==null&&Qi!==void 0&&Qi.length?-135:-65}},(Aa=Pn.detail)!==null&&Aa!==void 0&&Aa.allow_add_member?Ks():t.a.createElement("span",{style:{fontSize:"16px",display:"flex",alignItems:"center"}}," ",t.a.createElement("img",{style:{marginRight:"10px"},src:ya.a})," ",(wi=Pn.rightData)===null||wi===void 0?void 0:wi.team_title),ks&&t.a.createElement(tt,{setisupdate:Zs,isupdate:Sl,data:(vi=Pn.rightData)===null||vi===void 0?void 0:vi.members,operation:(vo=Pn.detail)===null||vo===void 0?void 0:vo.allow_add_member,handleDeleteMember:qs}),!ks&&t.a.createElement("div",{style:{width:"100%"}},(uo=Pn.rightData)===null||uo===void 0||((Ki=uo.members)===null||Ki===void 0)?void 0:Ki.map(function(Rn){var xr,In,Gr,Jn,ra,Nr,fa,yi;return t.a.createElement("div",{style:{display:"inline-block",width:"33%",padding:"5px",background:"#fff",marginTop:"10px"}},t.a.createElement("div",{className:je.a.directionItemWrap},t.a.createElement(s.a,{color:"#ffffff",placement:"bottom",title:t.a.createElement("div",{className:je.a.teamHeight},t.a.createElement("span",{title:Rn==null?void 0:Rn.name,style:{fontSize:"14px",color:"#333333",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"80px",overflow:"hidden"}},(Rn==null||((xr=Rn.name)===null||xr===void 0)?void 0:xr.length)>6?(Rn==null||((In=Rn.name)===null||In===void 0)?void 0:In.substr(0,6))+"...":(Rn==null?void 0:Rn.name)||"--"),t.a.createElement("span",{style:{marginLeft:"10px",color:"#999999",fontSize:"12px"}},(Rn==null||((Gr=Rn.school)===null||Gr===void 0)?void 0:Gr.length)>9?(Rn==null||((Jn=Rn.school)===null||Jn===void 0)?void 0:Jn.substr(0,9))+"...":Rn==null?void 0:Rn.school),t.a.createElement("div",{style:{height:"1px",width:"100%",border:"1px solid #f5f5f5",marginTop:"3px",marginBottom:"3px"}}),!(Rn!=null&&Rn.brief_introduction)&&t.a.createElement("div",{style:{textAlign:"center",marginTop:"20px"}},"\u6682\u65E0\u7B80\u4ECB"),(Rn==null?void 0:Rn.brief_introduction)&&t.a.createElement("div",{className:je.a.divHeight},Rn==null?void 0:Rn.brief_introduction))},t.a.createElement("img",{draggable:!1,className:je.a.imgradius,onClick:function(){},src:ut.a.API_SERVER+"/images/"+(Rn==null?void 0:Rn.image_url)}),t.a.createElement("div",null,(Rn==null||((ra=Rn.name)===null||ra===void 0)?void 0:ra.length)>6?(Rn==null||((Nr=Rn.name)===null||Nr===void 0)?void 0:Nr.substr(0,6))+"...":(Rn==null?void 0:Rn.name)||"--",t.a.createElement("br",null),t.a.createElement("span",{style:{color:"#999999"}},(Rn==null||((fa=Rn.school)===null||fa===void 0)?void 0:fa.length)>6?(Rn==null||((yi=Rn.school)===null||yi===void 0)?void 0:yi.substr(0,6))+"...":(Rn==null?void 0:Rn.school)||"--"))),t.a.createElement("br",null)))})),((ss=Pn.detail)===null||ss===void 0?void 0:ss.allow_add_member)&&t.a.createElement(Ae.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},t.a.createElement(ie.a,{className:"c-blue current",onClick:Ol},"+ \u6DFB\u52A0\u5408\u4F5C\u8005"))),!!((ls=Pn.rightData)!==null&&ls!==void 0&&(qo=ls.tags)!==null&&qo!==void 0&&qo.length)&&((fo=Pn.detail)===null||fo===void 0?void 0:fo.show_tag)&&t.a.createElement("div",{className:Qe.a.skillWrap},t.a.createElement("p",{className:"".concat(Qe.a.skillTopWrap," font16 mb20")},t.a.createElement("span",null,"\u6280\u80FD\u6807\u7B7E",t.a.createElement("span",{className:"ml5 c-grey-c"},(zo=Pn.rightData)===null||zo===void 0||((yo=zo.tags)===null||yo===void 0)?void 0:yo.length))),t.a.createElement(Si.a,{option:Is(),style:{height:370},opts:{renderer:"svg"}})),((es=Pn.detail)===null||es===void 0?void 0:es.show_spoc)===1&&t.a.createElement("div",{className:"".concat(Qe.a.card," pb0"),style:{marginTop:15}},t.a.createElement("p",{className:"font16",style:{display:"flex",alignItems:"center"}},t.a.createElement("img",{style:{marginRight:"10px"},src:fi.a}),"SPOC\u8BFE\u5802"),t.a.createElement(lr,{data:(Go=Pn.Courses)===null||Go===void 0?void 0:Go.spoc_courses,handleDeleteMember:yl}),((Oa=Pn.detail)===null||Oa===void 0?void 0:Oa.show_spoc)===1&&(Pn==null||((la=Pn.Courses)===null||la===void 0||((xi=la.spoc_courses)===null||xi===void 0))?void 0:xi.length)<3&&((Zi=Pn.detail)===null||Zi===void 0?void 0:Zi.allow_add_member)&&t.a.createElement(Ae.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},t.a.createElement(ie.a,{className:"c-blue current",onClick:function(){return vs()}},"+ \u6DFB\u52A0\u8BFE\u5802"))),((Oo=Pn.detail)===null||Oo===void 0?void 0:Oo.show_history)&&t.a.createElement("div",{className:"".concat(Qe.a.card," pb0"),style:{marginTop:15}},t.a.createElement("p",{className:"font16",style:{display:"flex",alignItems:"center"}},t.a.createElement("img",{style:{marginRight:"10px"},src:fi.a}),"\u5386\u53F2\u8BFE\u5802"),t.a.createElement(lr,{data:ki==null?void 0:ki.spoc_courses,handleDeleteMember:yl}),((co=Pn.detail)===null||co===void 0?void 0:co.show_history)&&(ki==null||((No=ki.spoc_courses)===null||No===void 0)?void 0:No.length)<3&&((Wi=Pn.detail)===null||Wi===void 0?void 0:Wi.allow_add_member)&&t.a.createElement(Ae.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},t.a.createElement(ie.a,{className:"c-blue current",onClick:function(){return vs(1)}},"+ \u6DFB\u52A0\u8BFE\u5802"))),t.a.createElement(Mr,{onReloadData:Bs}),t.a.createElement(Un,{onReloadData:Bs,data:ki}),t.a.createElement(sn,{visible:Yo,onCancel:function(){ko(!1)},data:((Ai=Pn.rightData)===null||Ai===void 0||((Vo=Ai.progress)===null||Vo===void 0)?void 0:Vo.info)||{}}))},_i=Object(l.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.user,$t=lt.loading,cn=lt.globalSetting,Wt=lt.classroomList;return{pathsDetail:qe,user:Bt,globalSetting:cn,loading:$t.models.index,classroomList:Wt}})(mi),ai=v("cWXX"),Hi=v("/ezw"),Yi=v("VlDO"),$r=v.n(Yi),ua=v("bbsP"),Pr=v("/wGt"),ca=v("DjyN"),Jr=v("NUBc"),ri=v("/zsF"),pa=v("PArb"),mo=v("vkP9"),Di=v("cCSd"),ci=v.n(Di),Wo=Ne.a.Search,Mo=[{id:"type",name:"\u7B5B\u9009",children:[{name:"\u5168\u90E8\u5B9E\u8BAD",id:"all",type:"type"},{name:"\u6211\u7684\u5B9E\u8BAD",id:"mine",type:"type"}]},{id:"diff",name:"\u96BE\u5EA6",children:[{name:"\u5168\u90E8",id:"",type:"diff"},{name:"\u521D\u7EA7",id:1,type:"diff"},{name:"\u4E2D\u7EA7",id:2,type:"diff"},{name:"\u4E2D\u9AD8\u7EA7",id:3,type:"diff"},{name:"\u9AD8\u7EA7",id:4,type:"diff"}]}],ii=function(qe){var Bt,$t=qe.classroomList,cn=qe.loading,Wt=qe.dispatch,_n=qe.cb,rn=qe.shixunIds,Ht=rn===void 0?[]:rn,An=Object(A.i)(),qt=Object(A.h)(),En=$t.actionTabs,kn=dt.a.useForm(),Yt=Object(_.a)(kn,1),wn=Yt[0],ln=$t.shixunLists,xn=Object(a.useState)([]),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1],hr=Object(a.useState)({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"}),pn=Object(_.a)(hr,2),Dn=pn[0],Nn=pn[1];Object(a.useEffect)(function(){$t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"&&(Dn.page=1,Wt({type:"classroomList/getShixunLists",payload:Object(I.a)({},Dn)}))},[$t.actionTabs.key]),Object(a.useEffect)(function(){return $t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?document.body.setAttribute("data-custom","height"):document.body.removeAttribute("data-custom"),function(){document.body.removeAttribute("data-custom")}},[$t.actionTabs.key]);var Gn=function(){Wt({type:"classroomList/setActionTabs",payload:{}}),Nn({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"})};return $t.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?null:t.a.createElement(Pr.a,{placement:"bottom",height:"100%",closable:!1,visible:$t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",className:ci.a.drawer,footer:t.a.createElement("div",{className:"tc"},t.a.createElement(c.a,{size:"large",onClick:function(){Gn(),Sn([]),_n("\u53D6\u6D88")},style:{marginRight:8}},"\u53D6\u6D88"),t.a.createElement(c.a,{size:"large",onClick:Object(k.a)(p.a.mark(function yn(){var Kn,or,gr,Ur;return p.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:Kn=function(Er){var _r=Vt[Er];if(Ht.includes(_r)){var sa,ta;return U.b.info("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\uFF1A".concat(ln==null||((sa=ln.shixun_list)===null||sa===void 0||((ta=sa.find(function(tr){return tr.id===_r}))===null||ta===void 0))?void 0:ta.title)),{v:void 0}}},or=0;case 2:if(!(or<(Vt==null?void 0:Vt.length))){rr.next=9;break}if(gr=Kn(or),!(typeof gr=="object")){rr.next=6;break}return rr.abrupt("return",gr.v);case 6:or++,rr.next=2;break;case 9:return rr.next=11,Object(B.N)({id:$t.actionTabs.id,subject_id:$t.actionTabs.subject_id,shixun_ids:Object(d.a)(Vt)});case 11:Ur=rr.sent,Sn([]),Ur!=null&&Ur.shixuns_list&&(Gn(),_n(Ur.shixuns_list));case 14:case"end":return rr.stop()}},yn)})),type:"primary"},"\u786E\u5B9A"))},t.a.createElement("section",{className:"tc"},t.a.createElement(mo.a,{onChange:function(Kn){Nn(Object(I.a)(Object(I.a)(Object(I.a)({},Dn),Kn),{},{page:1})),Wt({type:"classroomList/getShixunLists",payload:Object(I.a)(Object(I.a)(Object(I.a)({},Dn),Kn),{},{page:1})})}})),t.a.createElement("section",{className:"edu-container"},Mo.map(function(yn,Kn){var or;return t.a.createElement("ul",{className:ci.a.menu,key:Kn},t.a.createElement("li",null,yn.name),yn==null||((or=yn.children)===null||or===void 0)?void 0:or.map(function(gr,Ur){return t.a.createElement("li",{className:Dn[yn.id]==gr.id?ci.a.actived:"",onClick:function(){Dn[yn.id]=gr.id,Nn(Object(I.a)({},Dn)),Wt({type:"classroomList/getShixunLists",payload:Object(I.a)({},Dn)})}},t.a.createElement("strong",null,gr.name))}))}),ln==null||((Bt=ln.shixun_list)===null||Bt===void 0)?void 0:Bt.map(function(yn,Kn){return t.a.createElement("div",{className:ci.a.listItem,key:Kn},t.a.createElement(te.a,{checked:Vt.includes(yn.id),value:yn.id,onChange:function(gr){var Ur=Vt.indexOf(yn.id);Vt.indexOf(yn.id)>-1?Sn(Vt.filter(function(er){return er!==yn.id})):Sn(Vt.concat(yn.id))}}),t.a.createElement("div",{className:ci.a.info},t.a.createElement("div",{className:ci.a.title},t.a.createElement("div",{className:ci.a.titleLeft},t.a.createElement("a",{className:"c-black",href:"/shixuns/".concat(yn==null?void 0:yn.identifier,"/challenges"),target:"_blank"},t.a.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:yn.title}})),Object(F.v)()&&(yn==null?void 0:yn.mark_status)===1&&t.a.createElement(s.a,{title:yn==null?void 0:yn.mark_content},t.a.createElement("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10"},"\u6B63\u5E38")),Object(F.v)()&&(yn==null?void 0:yn.mark_status)===2&&t.a.createElement(s.a,{title:yn==null?void 0:yn.mark_content},t.a.createElement("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10"},"\u9700\u5B8C\u5584")),Object(F.v)()&&(yn==null?void 0:yn.mark_status)===3&&t.a.createElement(s.a,{title:yn==null?void 0:yn.mark_content},t.a.createElement("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10"},"\u65E0\u6CD5\u4F7F\u7528")))),t.a.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},t.a.createElement("span",{className:ci.a.description,dangerouslySetInnerHTML:{__html:yn.description}})),t.a.createElement("div",{className:" mt15"},yn.challenge_names.map(function(or,gr){return t.a.createElement("span",{key:gr,className:"mr30 font12"},"\u7B2C",gr+1,"\u5173 ",or," ")})),t.a.createElement(pa.a,{dashed:!0}),t.a.createElement("div",{className:"c-light-black mt20 font12"},t.a.createElement("span",null,yn.author_name),t.a.createElement("span",{className:"ml15 mr15"},"|"),t.a.createElement("span",null,yn.author_school_name),t.a.createElement("span",{className:"ml15 mr15"},"|"),t.a.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",yn.level),t.a.createElement("span",{className:"ml15 mr15"},"|"),t.a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),t.a.createElement("span",null,yn.study_count))))}),t.a.createElement("p",null)),t.a.createElement("div",{className:"tc"},t.a.createElement(Jr.a,{current:Dn.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:ln==null?void 0:ln.shixuns_count,onChange:function(Kn){Dn.page=Kn,Wt({type:"classroomList/getShixunLists",payload:Object(I.a)({},Dn)})}})))},go=Object(l.a)(function(lt){var qe=lt.classroomList,Bt=lt.loading;return{classroomList:qe,loading:Bt}})(ii),no=v("Ot1p"),hs=v("qdXH"),xo=v("sBCT"),Cs=v("500L"),ws=v("giR+"),ho=v("fyUT"),As=v("dwhp"),mr=v("IxHN"),Vr=v("M8RZ"),ur=v("BdwD"),oa=v("9nDM"),wa=function(qe){var Bt=qe.user,$t=qe.onReplyDiscuss,cn=qe.dispatch,Wt=qe.id,_n=qe.activeDiscussIndex,rn=Object(a.useState)(""),Ht=Object(_.a)(rn,2),An=Ht[0],qt=Ht[1];function En(wn){qt(wn)}var kn=Object(A.i)();function Yt(){if(!An){U.b.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}$t(Wt,An),cn({type:"pathsDetail/getPathsDetail",payload:{id:kn.pathId}}),qt("")}return t.a.createElement("div",{key:Wt,className:"discuss-item-editor",style:{display:_n===Wt?"block":"none",width:"100%"}},t.a.createElement(no.a,{miniToolbar:!0,startInit:_n===Wt,defaultValue:An,id:Wt,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:En}),t.a.createElement("a",{onClick:Yt,className:"btn-send"},"\u53D1\u9001"))},ei=Object(l.a)(function(lt){var qe=lt.shixunsDetail,Bt=lt.loading,$t=lt.globalSetting;return{shixunsDetail:qe,globalSetting:$t,loading:Bt.models.index}})(wa),Ba=function(qe){var Bt=qe.user,$t=qe.upDataList,cn=qe.page,Wt=qe.getTypeNumber,_n=qe.dispatch,rn=Object(A.i)(),Ht=function(){var An=Object(k.a)(p.a.mark(function qt(En,kn){var Yt;return p.a.wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:return ln.next=2,Object(B.L)({id:En,content:kn});case 2:Yt=ln.sent,(Yt==null?void 0:Yt.status)===0&&$t(1);case 4:case"end":return ln.stop()}},qt)}));return function(En,kn){return An.apply(this,arguments)}}();return t.a.createElement("div",{className:"discuss-item-container bg-white"},t.a.createElement("a",{href:"/users/".concat(Bt.login),target:"_blank"},t.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(ut.a.IMG_SERVER,"/images/").concat(Bt.image_url),width:"50"})),t.a.createElement("section",null,t.a.createElement(ei,{id:rn.pathId,activeDiscussIndex:rn.pathId,onReplyDiscuss:Ht})))},Ni=Object(l.a)(function(lt){var qe=lt.shixunsDetail,Bt=lt.loading,$t=lt.globalSetting;return{shixunsDetail:qe,globalSetting:$t,loading:Bt.models.index}})(Ba),Ma=v("fXAG");function xa(lt){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Object(Ut.c)("/discusses.json?page=".concat(qe-1,"&container_identifier=").concat(lt,"&container_type=Shixun"))}function Po(lt,qe){return Object(Ut.f)("/discusses/".concat(lt,"/top_or_down_discuss.json"),{top:qe})}function Za(lt,qe){return Object(Ut.f)("/discusses/".concat(lt,"/plus.json"),{container_type:"Discuss",type:qe?1:0})}function ro(lt,qe){return Object(Ut.f)("/discusses/".concat(lt,"/hidden.json"),qe)}function so(lt,qe){return Object(Ut.f)("/discusses/".concat(lt,"/reward_code.json"),qe)}function To(lt){return Object(Ut.a)("/api/discusses/".concat(lt,".json"),{method:"delete"})}function Vs(lt,qe){return Object(Ut.f)("/discusses/".concat(lt,"/reply.json"),{container_type:"Shixun",content:qe})}function ti(lt){return Object(Ut.f)("/discusses.json",lt)}var Sa=v("QcdW"),Ia=v("kaH+");function Eo(lt){var qe=lt.data,Bt=lt.index,$t=lt.adminOrOperator,cn=lt.parentDiscussIndex,Wt=lt.shixunIdentifier,_n=lt.isDelete,rn=lt.user,Ht=lt.onSetRewardData,An=lt.onSetActionType,qt=lt.deleteCommentAlert,En=lt.shixunName,kn=qe.author,Yt=qe.can_delete,wn=qe.manage,ln=qe.content,xn=qe.hidden,an=qe.id,Vt=qe.reward,Sn=qe.time;function hr(){Ht({id:an,index:Bt,user_id:kn.user_id,parentDiscussIndex:cn})}function pn(){An({id:an,index:Bt,params:{hidden:xn?"0":"1",container_identifier:Wt},type:"hidden-discuss",parentDiscussIndex:cn,message:xn?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}function Dn(){if(qt){g.a.info({title:"\u63D0\u793A",content:t.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",En,"\u300B\u5B9E\u8DF5\u9879\u76EE\uFF0C\u60A8\u4E0D\u662F\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u7BA1\u7406\u8005\uFF0C\u4E0D\u80FD\u5220\u9664\u8BC4\u8BBA\uFF01"),onOk:function(){}});return}An({id:an,index:Bt,type:"delete-discuss",parentDiscussIndex:cn,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}return t.a.createElement("div",{className:"second-level-discuss"},t.a.createElement("div",{className:"discuss-info-body"},t.a.createElement("div",{className:"discuss-info"},t.a.createElement("a",{href:"/users/".concat(kn.login),target:"_blank"},kn.name),t.a.createElement("span",{className:"grey"},Sn),Vt?t.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(Vt)},t.a.createElement("i",{className:"iconfont icon-gift c-orange "}),t.a.createElement("span",null,Vt)):null),t.a.createElement("div",{className:"btn-group"},$t?t.a.createElement("a",{onClick:hr,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},t.a.createElement("i",{className:"iconfont icon-jiangli"})):null,$t?t.a.createElement("a",{onClick:pn,title:xn?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},t.a.createElement("i",{className:xn?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,wn?t.a.createElement("a",{onClick:Dn,title:"\u5220\u9664"},t.a.createElement("i",{className:"iconfont icon-shanchu"})):null)),t.a.createElement(Rt.a,{className:"discuss-content",value:ln}))}var xs=function(lt){var qe=lt.data,Bt=lt.index,$t=lt.shixunIdentifier,cn=lt.adminOrOperator,Wt=lt.identity,_n=lt.onTopOrDownDiscuss,rn=lt.onPlusDiscuss,Ht=lt.onSetActionType,An=lt.onSetRewardData,qt=lt.user,En=lt.isDelete,kn=lt.activeDiscussIndex,Yt=lt.onReplyDiscuss,wn=lt.onSetActiveDiscussIndex,ln=qe.content,xn=qe.children,an=qe.game_url,Vt=qe.hidden,Sn=qe.id,hr=qe.position,pn=qe.praise_count,Dn=qe.reward,Nn=qe.sticky,Gn=qe.time,yn=qe.user_praise,Kn=qe.game_passed,or=qe.delete_comment_alert,gr=qe.author,Ur=qe.shixun_name,er=qe.manage;function rr(){wn(Sn)}function Lr(){_n(Sn,!Nn,Bt)}function Er(){rn(Sn,!yn,Bt)}function _r(){An({id:Sn,index:Bt,user_id:gr.user_id})}function sa(){if(or){g.a.info({title:"\u63D0\u793A",content:t.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",Ur,"\u300B\u5B9E\u8DF5\u9879\u76EE\uFF0C\u60A8\u4E0D\u662F\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u7BA1\u7406\u8005\uFF0C\u4E0D\u80FD\u5220\u9664\u8BC4\u8BBA\uFF01"),onOk:function(){}});return}Ht({id:Sn,index:Bt,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function ta(){Ht({id:Sn,index:Bt,params:{hidden:Vt?"0":"1",container_identifier:$t},type:"hidden-discuss",message:Vt?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}var tr=function(ja){var ia=ja.target,Yn=ia.nodeName,vn=ia.src;Yn==="IMG"&&(Ka.a.publish("preview-image",vn),console.log("src:",vn))};return t.a.createElement("div",{className:"discuss-item-container",key:Sn},t.a.createElement("a",{href:"/users/".concat(gr.login),target:"_blank"},t.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(ut.a.IMG_SERVER,"/images/").concat(gr.image_url),width:"50"})),t.a.createElement("section",null,t.a.createElement("div",{className:"discuss-info"},t.a.createElement("a",{href:"/users/".concat(gr.login),target:"_blank"},gr.name),t.a.createElement("span",{className:"grey"},Gn),hr?t.a.createElement("span",{className:"c-green"}," [\u7B2C",hr,"\u5173] "):null,an?t.a.createElement("a",{href:an,target:"_blank",className:"view-code",title:"\u70B9\u51FB\u67E5\u770BTA\u7684\u4EE3\u7801\u9875\u9762"},"\u67E5\u770B"):null,Dn?t.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(Dn)},t.a.createElement("i",{className:"iconfont icon-gift c-orange "}),t.a.createElement("span",null,Dn)):null,Wt<=5?t.a.createElement("span",{style:{flex:"1",textAlign:"right",color:Kn===1?"#29bd8b":""}},Kn||Kn===0?Kn===1?"\u5DF2\u901A\u5173":"\u672A\u901A\u5173":""):null),t.a.createElement("div",{onClick:tr},t.a.createElement(Rt.a,{className:"discuss-content",value:ln})),xn&&xn.length>0?t.a.createElement("div",{className:"reply-discuss-container",onClick:tr},xn.map(function(vr,ja){return t.a.createElement(Eo,{key:vr.id,data:vr,index:ja,deleteCommentAlert:or,shixunName:Ur,shixunIdentifier:$t,adminOrOperator:cn,user:qt,isDelete:En,onSetRewardData:An,onSetActionType:Ht,parentDiscussIndex:Bt})})):null,t.a.createElement("div",{className:"btn-group"},cn?t.a.createElement("a",{onClick:_r,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},t.a.createElement("i",{className:"iconfont icon-jiangli"})):null,cn?t.a.createElement("a",{onClick:ta,title:Vt?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},t.a.createElement("i",{className:Vt?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,er&&(!xn||xn.length==0)&&t.a.createElement("a",{onClick:sa,title:"\u5220\u9664"},t.a.createElement("i",{className:"iconfont icon-shanchu"})),t.a.createElement("a",{onClick:rr,title:"\u56DE\u590D"},t.a.createElement("i",{className:"iconfont icon-huifu1"})),t.a.createElement("a",{onClick:Er,className:yn?"c-orange":""},t.a.createElement("i",{className:yn?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),t.a.createElement("span",null,pn||""))),t.a.createElement(ei,{id:Sn,activeDiscussIndex:kn,onReplyDiscuss:Yt})))},Ts={showRewardDialog:!1,data:null,page:1,loading:!1,actionType:null,activeDiscussIndex:null};function Xs(lt,qe){switch(qe.type){case Ma.Q:return Object(I.a)(Object(I.a)({},lt),{},{loading:!0});case Ma.X:return Object(I.a)(Object(I.a)({},lt),{},{showRewardDialog:!0});case Ma.b:return Object(I.a)(Object(I.a)({},lt),{},{showRewardDialog:!1});case Ma.l:return Object(I.a)(Object(I.a)({},lt),qe.payload);case Ma.ab:return Object(I.a)(Object(I.a)({},lt),qe.payload);case Ma.x:return Object(I.a)(Object(I.a)({},lt),qe.payload);case Ma.z:return Object(I.a)(Object(I.a)({},lt),qe.payload);case Ma.H:return Object(I.a)(Object(I.a)({},lt),qe.payload);case Ma.a:return Object(I.a)(Object(I.a)({},lt),qe.payload);default:throw new Error}}var Ys=function(lt){var qe=lt.shixunIdentifier,Bt=lt.identity,$t=lt.activeIndex,cn=lt.user,Wt=lt.isShixunDetail,_n=Wt===void 0?!1:Wt,rn=lt.isDelete,Ht=lt.getTypeNumber,An=Object(a.useReducer)(Xs,Ts),qt=Object(_.a)(An,2),En=qt[0],kn=qt[1],Yt=En.page,wn=En.loading,ln=En.data,xn=En.actionType,an=En.showRewardDialog,Vt=En.activeDiscussIndex,Sn=Object(a.useRef)(),hr=Object(a.useRef)(),pn=Object(A.i)();function Dn(Cr){return Nn.apply(this,arguments)}function Nn(){return Nn=Object(k.a)(p.a.mark(function Cr(Ir){var fr;return p.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(!wn){Ln.next=2;break}return Ln.abrupt("return");case 2:return Ln.prev=2,kn({type:Ma.Q}),Ln.next=6,Object(B.A)(Object(I.a)(Object(I.a)({},pn),{},{page:Ir}));case 6:fr=Ln.sent,kn({type:Ma.l,payload:{activeDiscussIndex:null,page:Ir,data:fr,loading:!1}}),Ln.next=13;break;case 10:Ln.prev=10,Ln.t0=Ln.catch(2),console.log(Ln.t0);case 13:case"end":return Ln.stop()}},Cr,null,[[2,10]])})),Nn.apply(this,arguments)}function Gn(Cr){document.body.scrollIntoView(),Dn(Cr)}function yn(Cr,Ir,fr){return Kn.apply(this,arguments)}function Kn(){return Kn=Object(k.a)(p.a.mark(function Cr(Ir,fr,ar){var Ln;return p.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return gn.prev=0,gn.next=3,Za(Ir,fr);case 3:Ln=gn.sent,vn[ar].user_praise=fr,vn[ar].praise_count=Ln.praise_count,kn({type:Ma.x,payload:{data:Object(I.a)(Object(I.a)({},ln),{},{comments:vn})}}),gn.next=12;break;case 9:gn.prev=9,gn.t0=gn.catch(0),console.log(gn.t0);case 12:case"end":return gn.stop()}},Cr,null,[[0,9]])})),Kn.apply(this,arguments)}function or(Cr,Ir,fr){return gr.apply(this,arguments)}function gr(){return gr=Object(k.a)(p.a.mark(function Cr(Ir,fr,ar){return p.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return Mn.prev=0,Mn.next=3,Po(Ir,fr);case 3:vn[ar].sticky=fr,kn({type:Ma.ab,payload:{data:Object(I.a)(Object(I.a)({},ln),{},{comments:vn})}}),Mn.next=10;break;case 7:Mn.prev=7,Mn.t0=Mn.catch(0),console.log(Mn.t0);case 10:case"end":return Mn.stop()}},Cr,null,[[0,7]])})),gr.apply(this,arguments)}function Ur(){kn({type:Ma.z,payload:{actionType:null}})}function er(){return rr.apply(this,arguments)}function rr(){return rr=Object(k.a)(p.a.mark(function Cr(){var Ir,fr,ar,Ln,Mn,gn,qn,na;return p.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:if(Ir=xn.id,fr=xn.params,ar=xn.type,Ln=xn.index,Mn=xn.parentDiscussIndex,!(ar==="hidden-discuss")){jr.next=6;break}return jr.next=4,ro(Ir,fr);case 4:Mn?vn[Mn].children[Ln].hidden=fr.hidden==1:vn[Ln].hidden=fr.hidden==1,kn({type:Ma.z,payload:{actionType:null,data:Object(I.a)(Object(I.a)({},ln),{},{comments:vn})}});case 6:if(!(ar==="delete-discuss")){jr.next=31;break}return jr.next=9,To(Ir);case 9:if(!(Mn||Mn===0)){jr.next=22;break}gn=vn[Mn].children,qn=gn.length-1;case 12:if(!(qn>=0)){jr.next=19;break}if(!(gn[qn].id===Ir)){jr.next=16;break}return gn.splice(qn,1),jr.abrupt("break",19);case 16:qn--,jr.next=12;break;case 19:vn[Mn].children=gn,jr.next=30;break;case 22:na=vn.length-1;case 23:if(!(na>=0)){jr.next=30;break}if(!(vn[na].id===Ir)){jr.next=27;break}return vn.splice(na,1),jr.abrupt("break",30);case 27:na--,jr.next=23;break;case 30:kn({type:Ma.z,payload:{actionType:null,data:Object(I.a)(Object(I.a)({},ln),{},{comments:vn})}});case 31:case"end":return jr.stop()}},Cr)})),rr.apply(this,arguments)}function Lr(Cr){kn({type:Ma.z,payload:{actionType:Cr}})}function Er(){kn({type:Ma.b})}function _r(){return sa.apply(this,arguments)}function sa(){return sa=Object(k.a)(p.a.mark(function Cr(){var Ir,fr,ar,Ln,Mn,gn,qn;return p.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:return Ir=Sn.current,fr=Ir.id,ar=Ir.index,Ln=Ir.score,Mn=Ir.user_id,gn=Ir.parentDiscussIndex,cr.next=3,so(fr,{container_type:"Discusses",score:Ln,user_id:Mn});case 3:qn=cr.sent,gn?vn[gn].children[ar].reward=qn.code:vn[ar].reward=qn.code,kn({type:Ma.H,payload:{showRewardDialog:!1,data:Object(I.a)(Object(I.a)({},ln),{},{comments:vn})}}),Sn.current=null;case 7:case"end":return cr.stop()}},Cr)})),sa.apply(this,arguments)}function ta(Cr){Sn.current=Cr,kn({type:Ma.X})}function tr(Cr){Sn.current.score=Cr}function vr(Cr,Ir){return ja.apply(this,arguments)}function ja(){return ja=Object(k.a)(p.a.mark(function Cr(Ir,fr){return p.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.prev=0,Ln.next=3,Vs(Ir,fr);case 3:Dn(Yt),Ln.next=9;break;case 6:Ln.prev=6,Ln.t0=Ln.catch(0),console.log(Ln.t0);case 9:case"end":return Ln.stop()}},Cr,null,[[0,6]])})),ja.apply(this,arguments)}function ia(Cr){Vt===Cr?kn({type:Ma.a,payload:{activeDiscussIndex:null}}):kn({type:Ma.a,payload:{activeDiscussIndex:Cr}})}if(Object(a.useEffect)(function(){function Cr(){return Ir.apply(this,arguments)}function Ir(){return Ir=Object(k.a)(p.a.mark(function fr(){return p.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(!($t===3&&!ln&&qe)){Ln.next=3;break}return Ln.next=3,Dn(Yt);case 3:case"end":return Ln.stop()}},fr)})),Ir.apply(this,arguments)}Cr()},[pn.pathId]),!ln)return t.a.createElement(Q.a,{spinning:!0},t.a.createElement("div",{style:{height:"300px",width:"100%"}}));var Yn=ln.disscuss_count,vn=ln.comments,yr=ln.all,oi=ln.can_hidden;return t.a.createElement(a.Fragment,null,t.a.createElement("div",{className:"discuss-container",ref:hr},Yn===0?t.a.createElement(ur.a,null):null,Object(F.p)()&&t.a.createElement(Ni,{getTypeNumber:Ht,upDataList:Dn,page:Yt,user:cn}),t.a.createElement("aside",{className:"bg-white"},vn==null?void 0:vn.map(function(Cr,Ir){return t.a.createElement(xs,{user:cn,key:Cr.id,data:Cr,index:Ir,identity:Bt,onPaginationChange:Gn,shixunIdentifier:qe,isDelete:rn,onSetActionType:Lr,onTopOrDownDiscuss:or,adminOrOperator:oi,onPlusDiscuss:yn,onSetRewardData:ta,activeDiscussIndex:Vt,onSetActiveDiscussIndex:ia,onReplyDiscuss:vr})})),Yn>10?t.a.createElement("div",{className:"pagination-container tc"},t.a.createElement(Jr.a,{showQuickJumper:!0,showSizeChanger:!1,onChange:Gn,current:Yt,total:Yn})):null),t.a.createElement(Vr.a,null,t.a.createElement(g.a,{centered:!0,title:"\u63D0\u793A",visible:!!xn,onOk:er,onCancel:Ur},t.a.createElement("p",null,xn?xn.message:"")),t.a.createElement(g.a,{centered:!0,width:400,title:"\u5956\u52B1\u8BBE\u7F6E",visible:an,onCancel:Er,onOk:_r},t.a.createElement(ho.a,{placeholder:"\u8BF7\u8F93\u5165\u5956\u52B1\u7684\u91D1\u5E01\u6570\u91CF",min:1,onChange:tr,style:{width:"228px"}}))))},il=v("jZGp"),ml=v("LvDl"),Js=v("G2fZ"),Ps=v.n(Js),gl=Ne.a.Search,Us=function(qe){var Bt,$t,cn=qe.shixunsDetail,Wt=qe.globalSetting,_n=qe.loading,rn=qe.dispatch,Ht=Object(O.a)(qe,["shixunsDetail","globalSetting","loading","dispatch"]),An=Object(A.i)(),qt=Object(a.useState)(0),En=Object(_.a)(qt,2),kn=En[0],Yt=En[1],wn=Object(a.useState)([]),ln=Object(_.a)(wn,2),xn=ln[0],an=ln[1],Vt=Object(a.useState)(""),Sn=Object(_.a)(Vt,2),hr=Sn[0],pn=Sn[1],Dn=Object(a.useState)(),Nn=Object(_.a)(Dn,2),Gn=Nn[0],yn=Nn[1],Kn=Object(a.useState)(!1),or=Object(_.a)(Kn,2),gr=or[0],Ur=or[1],er=Object(a.useState)(!1),rr=Object(_.a)(er,2),Lr=rr[0],Er=rr[1],_r=Object(a.useState)({page:1,limit:10,type:"video"}),sa=Object(_.a)(_r,2),ta=sa[0],tr=sa[1];Object(a.useEffect)(function(){cn.actionTabs.key==="Stage-SendModal"&&(tr(ta),vr(ta))},[cn.actionTabs.key]);var vr=function(){var Ln=Object(k.a)(p.a.mark(function Mn(gn){var qn;return p.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:return cr.next=2,rn({type:"shixunsDetail/searchUserCourses",payload:gn});case 2:qn=cr.sent,qn.status===401?(rn({type:"shixunsDetail/setActionTabs",payload:{}}),Er(!1)):(Er(!0),Yt((qn==null?void 0:qn.courses_count)||0),an((qn==null?void 0:qn.course_list)||[]));case 4:case"end":return cr.stop()}},Mn)}));return function(gn){return Ln.apply(this,arguments)}}(),ja=function(Mn){var gn=Object(I.a)(Object(I.a)({},ta),{page:Mn,limit:10,search:encodeURI(hr)});tr(gn),vr(gn)},ia=Object(Me.b)(),Yn=Object(_.a)(ia,4),vn=Yn[0],yr=Yn[1],oi=Yn[2],Cr=Yn[3],Ir=function(){var Ln=Object(k.a)(p.a.mark(function Mn(){var gn,qn,na;return p.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:if(Gn){jr.next=3;break}return Ur(!0),jr.abrupt("return");case 3:return qn=(gn=cn.actionTabs.params)===null||gn===void 0?void 0:gn.id,Er(!1),jr.next=7,Cr({id:An==null?void 0:An.pathId,course_id:Gn,type:"subject",stage_item_id:qn,sync_catelog:0});case 7:if(na=jr.sent,na){jr.next=11;break}return jr.next=11,fr(0);case 11:case"end":return jr.stop()}},Mn)}));return function(){return Ln.apply(this,arguments)}}(),fr=function(){var Ln=Object(k.a)(p.a.mark(function Mn(gn){var qn,na,cr,jr,Pa,da,ba,ha;return p.a.wrap(function(Da){for(;;)switch(Da.prev=Da.next){case 0:if(jr=(qn=cn.actionTabs.params)===null||qn===void 0?void 0:qn.id,!((na=cn.actionTabs.params)!==null&&na!==void 0&&na.is_jupyter)){Da.next=8;break}return ba=(da=cn.actionTabs.params)===null||da===void 0?void 0:da.identifier,Da.next=5,Object(Ut.a)("/api/shixuns/".concat(ba,"/send_to_course.json"),{method:"Post",body:{course_id:Gn,identifier:ba,type:"normal",is_copy:gn}});case 5:Pa=Da.sent,Da.next=11;break;case 8:return Da.next=10,Object(B.O)({id:An==null?void 0:An.pathId,course_id:Gn,stage_shixuns:[{stage_shixun_id:jr,is_copy:gn,is_use:1}],sync_catelog:0,type:((ha=cn.actionTabs.params)===null||ha===void 0?void 0:ha.title)==="\u5B9E\u8BAD"?"shixun":"video"});case 10:Pa=Da.sent;case 11:ar(),yr(),((cr=Pa)===null||cr===void 0?void 0:cr.status)===1&&g.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},Pa.message),onOk:function(){var Qr,Wa,Ea;if((Qr=cn.actionTabs.params)!==null&&Qr!==void 0&&Qr.is_jupyter){var za;Object(pe.S)((za=Pa)===null||za===void 0?void 0:za.first_category_url);return}var hi=(Wa=Pa)===null||Wa===void 0||((Ea=Wa.url.split("/"))===null||Ea===void 0)?void 0:Ea[2];Object(pe.S)("/classrooms/".concat(hi,"/shixun_homework"))}});case 14:case"end":return Da.stop()}},Mn)}));return function(gn){return Ln.apply(this,arguments)}}(),ar=function(){pn(""),yn(null),Ur(!1),rn({type:"shixunsDetail/setActionTabs",payload:{}}),Er(!1)};return t.a.createElement(t.a.Fragment,null,t.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,title:"\u53D1\u9001".concat(((Bt=cn.actionTabs.params)===null||Bt===void 0?void 0:Bt.title)||"\u5B9E\u8BAD"),visible:Lr,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Ir,onCancel:ar},t.a.createElement("div",{className:Ps.a.wrap},t.a.createElement("div",{className:Ps.a.title},"\u9009\u62E9\u7684","\u53D1\u9001".concat((($t=cn.actionTabs.params)===null||$t===void 0?void 0:$t.title)||"\u5B9E\u8BAD"),"\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802"),t.a.createElement("div",{className:"mb10"},t.a.createElement(gl,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:hr,onChange:function(Mn){return pn(Mn.target.value)},onSearch:function(Mn){pn(Mn);var gn=Object(I.a)(Object(I.a)({},ta),{page:1,limit:10,search:encodeURI(Mn)});tr(gn),vr(gn)}})),t.a.createElement("div",{className:Ps.a.radioWrap},t.a.createElement(m.a.Group,{value:Gn,onChange:function(Mn){yn(Mn.target.value),Ur(!1)}},xn.map(function(Ln,Mn){return t.a.createElement(m.a,{className:Ps.a.radio,value:Ln.course_id,key:Mn},Ln.name)}))),gr&&t.a.createElement("div",{className:Ps.a.colorFF0000},"\u8BF7\u9009\u62E9\u4F60\u8981\u53D1\u9001\u7684\u8BFE\u5802"),kn>10&&t.a.createElement("div",{className:Ps.a.pagination},t.a.createElement(Jr.a,{size:"small",className:"mb20",showQuickJumper:!0,showSizeChanger:!1,defaultCurrent:1,current:ta==null?void 0:ta.page,pageSize:10,total:kn,onChange:ja})))),t.a.createElement(Me.a,{visible:vn,inPaper:!1,onOk:fr,onCancel:function(){ar(),yr()},renderData:oi,modalType:"single",type:"subject"}))},Ns=Object(l.a)(function(lt){var qe=lt.shixunsDetail,Bt=lt.loading,$t=lt.globalSetting;return{shixunsDetail:qe,globalSetting:$t,loading:Bt.models.index}})(Us),gi=["application/pdf","application/msword","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/ZIP"],Hs=function(qe){var Bt,$t,cn,Wt,_n,rn=qe.pathsDetail,Ht=qe.user,An=qe.globalSetting,qt=qe.loading,En=qe.dispatch,kn=Object(O.a)(qe,["pathsDetail","user","globalSetting","loading","dispatch"]),Yt=Object(A.i)(),wn=rn.stageData,ln=Object(a.useState)([]),xn=Object(_.a)(ln,2),an=xn[0],Vt=xn[1],Sn=Object(a.useState)(-1),hr=Object(_.a)(Sn,2),pn=hr[0],Dn=hr[1],Nn=Object(a.useState)(!1),Gn=Object(_.a)(Nn,2),yn=Gn[0],Kn=Gn[1],or=Object(a.useState)(!1),gr=Object(_.a)(or,2),Ur=gr[0],er=gr[1],rr=Object(a.useState)(!1),Lr=Object(_.a)(rr,2),Er=Lr[0],_r=Lr[1],sa=Object(a.useState)({name:"",is_jupyter:!1}),ta=Object(_.a)(sa,2),tr=ta[0],vr=ta[1],ja=dt.a.useForm(),ia=Object(_.a)(ja,1),Yn=ia[0],vn=dt.a.useForm(),yr=Object(_.a)(vn,1),oi=yr[0],Cr=dt.a.useForm(),Ir=Object(_.a)(Cr,1),fr=Ir[0],ar=dt.a.useForm(),Ln=Object(_.a)(ar,1),Mn=Ln[0],gn=Object(a.useState)(!1),qn=Object(_.a)(gn,2),na=qn[0],cr=qn[1],jr=Object(a.useState)([]),Pa=Object(_.a)(jr,2),da=Pa[0],ba=Pa[1],ha=Object(a.useState)(!1),Ta=Object(_.a)(ha,2),Da=Ta[0],Ua=Ta[1],Qr=Object(a.useState)("All"),Wa=Object(_.a)(Qr,2),Ea=Wa[0],za=Wa[1],hi=Object(a.useState)(!1),Ji=Object(_.a)(hi,2),Li=Ji[0],Ci=Ji[1],Uo=Object(a.useState)(0),Ao=Object(_.a)(Uo,2),_o=Ao[0],as=Ao[1],fs=Object(a.useState)([{name:"\u5168\u90E8",type:"All",number:0},{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",number:0},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",number:0},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",number:0},{name:"\u8BA8\u8BBA",type:"Discusses",number:0}]),is=Object(_.a)(fs,2),os=is[0],So=is[1],ps=Object(a.useState)(),Qi=Object(_.a)(ps,2),Aa=Qi[0],wi=Qi[1],vi=Object(a.useState)([]),vo=Object(_.a)(vi,2),uo=vo[0],Ki=vo[1],ss=function(zt){if(zt.key=="Enter"){var on=fr.getFieldValue("tag");if(fr.setFieldsValue({tag:""}),!on){U.b.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(uo.filter(function(Tn){return Tn===on}).length>0){U.b.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}uo.push(on),Ki(Object(d.a)(uo))}},ls=function(zt,on){zt.preventDefault(),Ki(Object(d.a)(uo.filter(function(Tn){return Tn!=on})))},qo=((Bt=rn.detail)===null||Bt===void 0?void 0:Bt.is_free)||(($t=rn.detail)===null||$t===void 0?void 0:$t.can_learning),fo=function(){var zt=rn.detail,on=zt.shixuns_count,Tn=on===void 0?0:on,Hn=zt.videos_count,jn=Hn===void 0?0:Hn,pr=zt.attachment_count,dr=pr===void 0?0:pr,Bn=zt.disscuss_count,Yr=Bn===void 0?0:Bn,Ri={All:Tn+jn+dr,Shixun:Tn,VideoItem:jn,Attachment:dr,Discusses:Yr},ir=os.map(function(si){return Object(I.a)(Object(I.a)({},si),{},{number:Ri[si.type]})});So(ir)};Object(a.useEffect)(function(){fo()},[rn.detail]),Object(a.useEffect)(function(){fo(),Vt(Object(d.a)(wn))},[wn]);var zo=function(){var nr=Object(k.a)(p.a.mark(function zt(on,Tn){var Hn;return p.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:if(En({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Tn){pr.next=7;break}return pr.next=4,Object(qr.D)({id:on});case 4:pr.t0=pr.sent,pr.next=10;break;case 7:return pr.next=9,Object(qr.E)({id:on});case 9:pr.t0=pr.sent;case 10:if(Hn=pr.t0,En({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Hn!=null&&Hn.game_identifier||Hn!=null&&Hn.identifier)){pr.next=15;break}return Object(pe.S)(Tn?"/tasks/".concat(Hn==null?void 0:Hn.identifier,"/jupyter"):"/tasks/".concat(Hn.game_identifier)),pr.abrupt("return");case 15:(Hn==null?void 0:Hn.status)===-3?Object(pe.q)():(Hn==null?void 0:Hn.status)===2?yo(Hn==null?void 0:Hn.message):(Hn==null?void 0:Hn.status)===3&&es(Hn==null?void 0:Hn.message);case 16:case"end":return pr.stop()}},zt)}));return function(on,Tn){return nr.apply(this,arguments)}}(),yo=function nr(zt){var on;zt=(on=zt)!==null&&on!==void 0&&on.includes(".json")?zt:"".concat(zt,".json"),g.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Tn=Object(k.a)(p.a.mark(function jn(){var pr,dr;return p.a.wrap(function(Yr){for(;;)switch(Yr.prev=Yr.next){case 0:return Yr.next=2,Object(Rr.U)({url:zt});case 2:if(pr=Yr.sent,pr){Yr.next=5;break}return Yr.abrupt("return");case 5:return U.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Yr.next=8,Object(qr.E)({id:pr.shixun_identifier});case 8:if(dr=Yr.sent,!(dr!=null&&dr.game_identifier)){Yr.next=12;break}return Object(pe.S)("/tasks/".concat(dr.game_identifier)),Yr.abrupt("return");case 12:(dr==null?void 0:dr.status)===2?nr(dr==null?void 0:dr.message):(dr==null?void 0:dr.status)===3&&es(dr==null?void 0:dr.message);case 13:case"end":return Yr.stop()}},jn)}));function Hn(){return Tn.apply(this,arguments)}return Hn}()})},es=function(zt){g.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",zt,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Go=function(){if(!Fo())return;cr(!0)};Object(a.useEffect)(function(){if(na){var nr={shixuns_list:[],attachments_list:[],items:[]};la(an.length,nr),Vt([].concat(Object(d.a)(an),[nr]))}},[na]);var Oa=function(){setTimeout(function(){pn===an.length-1&&na&&(ms(),Vt(an.filter(function(zt,on){return on!==an.length-1}))),Wi(),Dn(-1)},300)},la=function(zt,on){if(!Fo())return;Dn(zt),Yn.setFieldsValue({name:on.stage_name,description:on.stage_description,tagName:on.tag&&on.tag.name||""})},xi=function(zt){if(setTimeout(function(){document.documentElement.scrollTop=_o},300),zt==="\u53D6\u6D88")return;an[pn].items=an[pn].items.concat(zt),Vt(Object(d.a)(an))},Zi=function(){var nr=Object(k.a)(p.a.mark(function zt(on){var Tn;return p.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return jn.next=2,Object(B.P)(Object(I.a)({},on));case 2:return Tn=jn.sent,an[pn].items=on.list,jn.abrupt("return",Tn);case 5:case"end":return jn.stop()}},zt)}));return function(on){return nr.apply(this,arguments)}}(),Oo=function(zt){an[pn].items=an[pn].items.concat(Object(I.a)(Object(I.a)({},zt),{},{children:[]})),Vt(Object(d.a)(an))},co=function(zt){an[pn].items=an[pn].items.concat(zt),Vt(Object(d.a)(an))},No=function(){var nr=Object(k.a)(p.a.mark(function zt(on){var Tn,Hn,jn,pr,dr;return p.a.wrap(function(Yr){for(;;)switch(Yr.prev=Yr.next){case 0:if(Aa){Yr.next=8;break}return Yr.next=3,Object(B.f)(Object(I.a)({id:an[pn].stage_id,subject_id:Yt.pathId},on));case 3:return Tn=Yr.sent,Tn.id&&(Ua(!1),Hn=[Object(I.a)({},Tn)],an[pn].items=an[pn].items.concat(Hn),Vt(Object(d.a)(an))),Yr.abrupt("return",Tn);case 8:return Yr.next=10,Object(B.R)(Object(I.a)(Object(I.a)({id:Aa==null?void 0:Aa.id,subject_id:Yt.pathId},on),{},{video_id:(on==null?void 0:on.video_id)||(Aa==null||((jn=Aa.video_item)===null||jn===void 0)?void 0:jn.video_id),link:(on==null?void 0:on.link)||(Aa==null||((pr=Aa.video_item)===null||pr===void 0)?void 0:pr.link)}));case 10:return dr=Yr.sent,dr&&(U.b.success("\u4FEE\u6539\u6210\u529F"),Ua(!1),Wi()),Yr.abrupt("return",dr);case 13:case"end":return Yr.stop()}},zt)}));return function(on){return nr.apply(this,arguments)}}(),Wi=function(){En({type:"pathsDetail/getStageData",payload:{subject_id:Yt.pathId}}),En({type:"pathsDetail/getPathsDetail",payload:{id:Yt.pathId}}),En({type:"pathsDetail/getRightData",payload:{id:Yt.pathId}}),ms()},Ai=function(){var nr=Object(k.a)(p.a.mark(function zt(on,Tn){var Hn,jn,pr,dr,Bn,Yr,Ri,ir,si,ao,zi;return p.a.wrap(function(Qa){for(;;)switch(Qa.prev=Qa.next){case 0:if(!(!(on!=null&&on.name)||(on==null?void 0:on.name.replace(/(^\s*)|(\s*$)/g,""))==="")){Qa.next=2;break}return Qa.abrupt("return",U.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01"));case 2:if(ms(),pr=[],(Hn=an[pn].shixuns_list)===null||Hn===void 0||Hn.map(function(Gi){pr.push({type:Gi.item_type,id:Gi.id})}),(jn=an[pn].attachments_list)===null||jn===void 0||jn.map(function(Gi){pr.push({type:"Attachment",id:Gi.id})}),dr=on.tagName,Bn=Object(O.a)(on,["tagName"]),!na){Qa.next=16;break}return Yr=Object(I.a)(Object(I.a)({},Bn),{},{pathId:Yt.pathId,list:pr}),dr&&(Yr=Object(I.a)(Object(I.a)({},Yr),{},{stage_tag_attributes:{name:dr}})),Qa.next=12,Object(B.d)(Object(I.a)({},Yr));case 12:Ri=Qa.sent,Ri!=null&&Ri.subject_id&&(an[pn]=Object(I.a)(Object(I.a)(Object(I.a)({},an[pn]),Ri),{},{stage_name:Yr.name,stage_description:Yr.description,tag:Yr.stage_tag_attributes}),Vt(Object(d.a)(an))),Qa.next=24;break;case 16:return ir=Array.from(new Set(pr.map(function(Gi){return Gi.type}))),si=Object(I.a)(Object(I.a)({},Bn),{},{id:an[pn].stage_id,type:Array.from(new Set(pr.map(function(Gi){return Gi.type}))),list:pr}),ao=an[pn].tag&&an[pn].tag.id||"",si=Object(I.a)(Object(I.a)({},si),{},{stage_tag_attributes:ao?{id:ao,name:dr}:{name:dr}}),Qa.next=22,Object(B.T)(Object(I.a)({},si));case 22:zi=Qa.sent,zi!=null&&zi.subject_id&&(an[pn]=Object(I.a)(Object(I.a)(Object(I.a)({},an[pn]),zi),{},{stage_name:si.name,stage_description:si.description,tag:si.stage_tag_attributes}),Vt(Object(d.a)(an)));case 24:return cr(!1),Qa.abrupt("return");case 26:case"end":return Qa.stop()}},zt)}));return function(on,Tn){return nr.apply(this,arguments)}}(),Vo=function(zt,on,Tn){var Hn=Array.from(zt),jn=Hn.splice(on,1),pr=Object(_.a)(jn,1),dr=pr[0];return Hn.splice(Tn,0,dr),Hn},Pn=function(zt,on){g.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u5B9E\u8BAD\u5417\uFF1F",onOk:function(){an[pn][on||"shixuns_list"].splice(zt,1),U.b.success("\u5220\u9664\u6210\u529F"),Vt(Object(d.a)(an)),Ai(Yn.getFieldsValue(),on)}})},ts=function(zt){g.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u672C\u64CD\u4F5C\u5C06\u5220\u9664\u5F53\u524D\u76EE\u5F55\u53CA\u4E0B\u5C5E\u5B50\u76EE\u5F55\u5B9A\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var on=Object(k.a)(p.a.mark(function Hn(){var jn;return p.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,Object(B.s)(zt);case 2:jn=dr.sent,jn.status===0&&(U.b.success("\u5220\u9664\u6210\u529F"),Wi());case 4:case"end":return dr.stop()}},Hn)}));function Tn(){return on.apply(this,arguments)}return Tn}()})},lo=function(){var nr=Object(k.a)(p.a.mark(function zt(on){var Tn,Hn,jn,pr,dr,Bn;return p.a.wrap(function(Ri){for(;;)switch(Ri.prev=Ri.next){case 0:if(console.log(on),!((on==null?void 0:on.item_type)==="VideoItem")){Ri.next=9;break}return Ri.next=4,Object(hs.g)({id:on==null?void 0:on.stage_item_id});case 4:Tn=Ri.sent,wi(Tn),(on==null?void 0:on.item_type)==="VideoItem"?Ua(!0):(Ki((Tn==null||((Hn=Tn.tags)===null||Hn===void 0)?void 0:Hn.map(function(ir){return ir==null?void 0:ir.name}))||[]),fr.setFieldsValue({files:[{uid:Tn==null||((jn=Tn.attachment)===null||jn===void 0)?void 0:jn.id,name:Tn==null?void 0:Tn.name,response:{id:Tn==null||((pr=Tn.attachment)===null||pr===void 0)?void 0:pr.id}}]}),er(!0)),Ri.next=10;break;case 9:(on==null?void 0:on.item_type)==="Attachment"?g.a.confirm({title:"\u4FEE\u6539\u8BFE\u4EF6\u540D\u79F0",icon:null,centered:!0,okText:"\u786E\u8BA4\u4FEE\u6539",cancelText:"\u53D6\u6D88",content:t.a.createElement(Ne.a,{value:dr,onChange:function(si){dr=si.target.value},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u4EF6\u540D\u79F0"}),onOk:function(){var ir=Object(k.a)(p.a.mark(function ao(){var zi,Wn,Qa;return p.a.wrap(function(li){for(;;)switch(li.prev=li.next){case 0:if(dr){li.next=3;break}return U.b.info("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),li.abrupt("return",Promise.reject());case 3:return li.next=5,Object(Ut.a)("/api/attachments/".concat(on==null?void 0:on.id,".json"),{method:"put",body:{name:dr+(on==null||((zi=on.name)===null||zi===void 0)?void 0:zi.substr(on==null||((Wn=on.name)===null||Wn===void 0)?void 0:Wn.lastIndexOf(".")))}});case 5:Qa=li.sent,dr="",Wi();case 8:case"end":return li.stop()}},ao)}));function si(){return ir.apply(this,arguments)}return si}()}):g.a.confirm({title:"\u4FEE\u6539\u5C0F\u8282\u540D\u79F0",icon:null,centered:!0,okText:"\u786E\u8BA4\u4FEE\u6539",cancelText:"\u53D6\u6D88",content:t.a.createElement(Ne.a,{value:Bn,maxLength:40,onChange:function(si){Bn=si.target.value},placeholder:"\u8BF7\u8F93\u5165\u5C0F\u8282\u540D\u79F0"}),onOk:function(){var ir=Object(k.a)(p.a.mark(function ao(){var zi;return p.a.wrap(function(Qa){for(;;)switch(Qa.prev=Qa.next){case 0:if(Bn.replaceAll(" ","")){Qa.next=3;break}return U.b.info("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Qa.abrupt("return",Promise.reject());case 3:return Qa.next=5,Object(Ut.a)("/api/stages/".concat(on==null?void 0:on.stage_id,"/update_item_name.json"),{method:"put",body:{name:Bn,item_id:on==null?void 0:on.id}});case 5:zi=Qa.sent,Bn="",Wi();case 8:case"end":return Qa.stop()}},ao)}));function si(){return ir.apply(this,arguments)}return si}()});case 10:case"end":return Ri.stop()}},zt)}));return function(on){return nr.apply(this,arguments)}}(),Ha=function(zt){g.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u7AE0\u8282\u5417\uFF1F",onOk:function(){var on=Object(k.a)(p.a.mark(function Hn(){var jn;return p.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,Object(B.r)({id:zt});case 2:jn=dr.sent,jn.status===1&&(Dn(-1),U.b.success("\u5220\u9664\u6210\u529F"),Wi());case 4:case"end":return dr.stop()}},Hn)}));function Tn(){return on.apply(this,arguments)}return Tn}()})},Fi=function(){vr({name:"",is_jupyter:!1}),oi.setFieldsValue({name:"",is_jupyter:!1}),Ci(!1),Kn(!1)},Ti=function(zt,on){var Tn;if(!zt.destination)return;var Hn=Vo((Tn=an[pn])===null||Tn===void 0?void 0:Tn[on||"shixuns_list"],zt.source.index,zt.destination.index);an[pn][on||"shixuns_list"]=Hn,Vt(Object(d.a)(an)),Ai(Yn.getFieldsValue(),on)},Ro=function(){var nr=Object(k.a)(p.a.mark(function zt(on){var Tn;return p.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(Fo()){jn.next=2;break}return jn.abrupt("return");case 2:return jn.next=4,Object(B.S)({id:on});case 4:Tn=jn.sent,Tn.status===1&&Wi();case 6:case"end":return jn.stop()}},zt)}));return function(on){return nr.apply(this,arguments)}}(),Oi=function(){var nr=Object(k.a)(p.a.mark(function zt(on){var Tn;return p.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(Fo()){jn.next=2;break}return jn.abrupt("return");case 2:return jn.next=4,Object(B.t)({id:on});case 4:Tn=jn.sent,Tn.status===1&&Wi();case 6:case"end":return jn.stop()}},zt)}));return function(on){return nr.apply(this,arguments)}}(),Fo=function(){return pn!==-1?(g.a.info({icon:null,className:"custom-modal-divider ",okText:"\u77E5\u9053\u5566",title:"\u63D0\u793A",content:t.a.createElement("div",{className:"mt10 font14"},"\u5F53\u524D\u5355\u5143\u6709\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\u8BB0\u5F55\uFF0C\u8BF7\u5148\u4FDD\u5B58\uFF01"),onOk:function(){var on="Edit_".concat(pn),Tn=document.getElementById(on);Tn&&setTimeout(function(){return Tn.scrollIntoView({block:"start",behavior:"smooth"})})}}),!1):!0},ns=function(){Ai(Yn.getFieldsValue())},ms=function(){cr(!1)},Xo=function(){var zt,on,Tn,Hn,jn,pr;return((zt=rn.detail)===null||zt===void 0||((on=zt.courses)===null||on===void 0)?void 0:on.length)>0?(Tn=rn.detail)===null||Tn===void 0?void 0:Tn.allow_visit:!(((Hn=Ht.userInfo)===null||Hn===void 0?void 0:Hn.user_identity)==="\u5B66\u751F"&&(jn=rn.detail)!==null&&jn!==void 0&&jn.allow_visit&&(pr=rn.detail)!==null&&pr!==void 0&&pr.courses)},Ss=function(zt,on,Tn){var Hn,jn,pr,dr,Bn,Yr,Ri,ir,si,ao,zi,Wn;return Ea!=="All"&&zt.item_type!==Ea?null:t.a.createElement(Ae.a,{className:"list-item-row",align:"middle",key:on,gutter:[5,10]},t.a.createElement(ie.a,null,zt.item_type==="Shixun"?t.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"}):t.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"})),t.a.createElement(ie.a,{flex:1,className:!zt.allow_visit&&!zt.to_be_built&&(zt.shixun_status==="\u6682\u672A\u516C\u5F00"||zt.shixun_status==="\u5DF2\u5220\u9664")?$r.a.color204:""},!!(rn!=null&&(Hn=rn.detail)!==null&&Hn!==void 0&&Hn.cust_seq)&&t.a.createElement("span",{className:"mr8"},Tn+1,"-",on+1),zt.name,pn===-1&&zt.complete_status===1&&t.a.createElement("span",{className:$r.a.completed},t.a.createElement("i",{className:"iconfont icon-duigou1 mr5 font12"}),"\u5DF2\u5B8C\u6210")),t.a.createElement(ie.a,null,pn===Tn&&t.a.createElement("div",null,t.a.createElement(s.a,{title:"\u5220\u9664"},t.a.createElement("span",{onClick:function(){Pn(on,"shixuns_list")},className:"iconfont icon-shanchu c-grey-c"}))),(((jn=Ht.userInfo)===null||jn===void 0?void 0:jn.admin)||((pr=Ht.userInfo)===null||pr===void 0?void 0:pr.business)||!(!((dr=rn.detail)!==null&&dr!==void 0&&dr.allow_statistics)&&((Bn=Ht.userInfo)===null||Bn===void 0?void 0:Bn.user_identity)==="\u5B66\u751F"&&(Yr=rn.detail)!==null&&Yr!==void 0&&Yr.allow_visit&&(Ri=rn.detail)!==null&&Ri!==void 0&&Ri.courses))&&pn!==Tn&&zt.item_type==="VideoItem"&&t.a.createElement("aside",null,t.a.createElement(c.a,{type:"primary",onClick:function(){var Gi,li;if(!((Gi=Ht.userInfo)!==null&&Gi!==void 0&&Gi.admin)&&!((li=Ht.userInfo)!==null&&li!==void 0&&li.business)&&!zt.can_view)return g.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:t.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});zt.link&&Object(hs.n)({is_f:1,id:zt.id,point:0,total:0}),Object(pe.S)(zt.link||"/video/".concat(zt.id,"?subject_id=").concat(Yt.pathId))}},zt.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((ir=Ht.userInfo)===null||ir===void 0?void 0:ir.admin)||(zt.allow_visit||zt.to_be_built||zt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&zt.shixun_status!=="\u5DF2\u5220\u9664")&&!(!((si=rn.detail)!==null&&si!==void 0&&si.allow_statistics)&&((ao=Ht.userInfo)===null||ao===void 0?void 0:ao.user_identity)==="\u5B66\u751F"&&(zi=rn.detail)!==null&&zi!==void 0&&zi.allow_visit&&(Wn=rn.detail)!==null&&Wn!==void 0&&Wn.courses))&&pn!==Tn&&zt.item_type==="Shixun"&&t.a.createElement("aside",null,t.a.createElement(mn.a,{to:"/shixuns/".concat(zt.identifier,"/challenges"),target:"_blank"},"\u67E5\u770B\u8BE6\u60C5"),zt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&t.a.createElement(c.a,{className:"ml20",type:"primary",onClick:function(){if(!Object(he.e)(En,!0))return;zo(zt.identifier,zt.is_jupyter||zt.is_jupyter_lab)}},"\u5F00\u59CB\u5B9E\u6218")),pn===-1&&!zt.allow_visit&&!zt.to_be_built&&zt.shixun_status==="\u6682\u672A\u516C\u5F00"&&t.a.createElement("span",{className:$r.a.color204},"\u6682\u672A\u516C\u5F00"),pn===-1&&!zt.allow_visit&&!zt.to_be_built&&zt.shixun_status==="\u5DF2\u5220\u9664"&&t.a.createElement("span",{className:$r.a.color204},"\u5DF2\u5220\u9664"),pn===-1&&zt.item_type==="Shixun"&&!!zt.challenges_count&&t.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",zt.challenges_count)))},Fs=function(zt){var on,Tn=[];if(zt.items&&(on=zt.items)!==null&&on!==void 0&&on.length){var Hn;(Hn=zt.items)===null||Hn===void 0||Hn.forEach(function(pr){var dr;Tn.push(pr),pr.children&&(dr=pr.children)!==null&&dr!==void 0&&dr.length&&(Tn=Tn.concat(pr.children))})}var jn=!!Tn.find(function(pr){return Object(ml.isEqual)(pr.learning_status,["can","try"])});return jn?t.a.createElement("aside",{className:$r.a.learn},"\u514D\u8D39\u8BD5\u5B66"):null},On=function(zt,on){var Tn,Hn,jn,pr,dr,Bn;if(Ea!=="All"&&!((Tn=zt.stage_tag)!==null&&Tn!==void 0&&Tn.includes(Ea)))return null;var Yr=!1,Ri=!1,ir=!1,si=!1;if(Ea==="All"){var ao,zi,Wn,Qa;Yr=(((ao=Ht.userInfo)===null||ao===void 0?void 0:ao.admin)||((zi=Ht.userInfo)===null||zi===void 0?void 0:zi.business)||((Wn=rn.detail)===null||Wn===void 0?void 0:Wn.allow_statistics))&&pn===on&&!na,(Qa=rn.detail)!==null&&Qa!==void 0&&Qa.allow_add_member&&qo&&pn!==on&&(Ri=!0,on>0&&(ir=!0),on0)return t.a.createElement("div",{key:zt,className:nr.type===Ea?$r.a.tabActive:$r.a.tab,onClick:function(){pn===-1?(za(nr.type),Dn(-1)):U.b.warn("\u8BF7\u5148\u53D6\u6D88\u7F16\u8F91\u72B6\u6001")}},t.a.createElement("span",{className:$r.a.s1},nr.name),t.a.createElement("span",{className:$r.a.s2},nr.number))})),Ea!=="Discusses"&&t.a.createElement(t.a.Fragment,null,t.a.createElement(dt.a,{form:Yn,onFinish:Ai},an==null?void 0:an.map(function(nr,zt){return t.a.createElement("div",{key:zt},On(nr,zt))})),((cn=rn.detail)===null||cn===void 0?void 0:cn.allow_statistics)&&Ea==="All"&&!na&&t.a.createElement("div",{className:$r.a.addStage,onClick:Go},t.a.createElement("span",{className:$r.a.color4CA},"+\u70B9\u51FB\u65B0\u5EFA\u9636\u6BB5"),"\uFF08\u6DFB\u52A0\u4E00\u4E2A\u6216\u591A\u4E2A\u5B9E\u8BAD/\u89C6\u9891\u9879\u76EE\uFF0C\u7EC4\u6210\u4E00\u4E2A\u9636\u6BB5\uFF09"))),Ea==="Discusses"&&t.a.createElement("aside",{className:"mt20"},t.a.createElement(Ys,{activeIndex:3,isDelete:(Wt=rn.detail)===null||Wt===void 0?void 0:Wt.allow_add_member,shixunIdentifier:11,identity:(_n=Ht.userInfo)===null||_n===void 0?void 0:_n.role,getTypeNumber:fo,user:Ht.userInfo,isShixunDetail:!0})),t.a.createElement(g.a,{centered:!0,title:"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE",visible:yn,confirmLoading:Li,destroyOnClose:!0,onOk:Object(k.a)(p.a.mark(function nr(){var zt;return p.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Tn.next=2,oi.validateFields();case 2:return Ci(!0),Tn.next=5,Object(B.M)(Object(I.a)({id:an[pn].stage_id,subject_id:Yt.pathId},tr));case 5:zt=Tn.sent,Fi(),zt.id&&(oi.resetFields(),U.b.success("\u6DFB\u52A0\u6210\u529F"),xi([zt])),Ci(!1);case 9:case"end":return Tn.stop()}},nr)})),onCancel:Fi},t.a.createElement(dt.a,{form:oi,onValuesChange:function(zt){vr(Object(I.a)(Object(I.a)({},tr),zt))}},t.a.createElement(dt.a.Item,{label:"\u7C7B\u578B",name:"is_jupyter",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}]},t.a.createElement(m.a.Group,null,t.a.createElement(m.a,{defaultChecked:!0,value:!1},"\u5168\u6808\u5B9E\u8DF5\u9879\u76EE"),t.a.createElement(m.a,{value:!0},"Jupyter Notebook\u5B9E\u8DF5\u9879\u76EE"))),t.a.createElement(dt.a.Item,{label:"\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"}]},t.a.createElement(Ne.a,{suffix:t.a.createElement("span",null,tr.name.length,"/60")})))),t.a.createElement(g.a,{centered:!0,title:Aa?"\u7F16\u8F91\u6559\u5B66\u8BFE\u4EF6":"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6",visible:Ur,confirmLoading:Li,destroyOnClose:!0,onOk:Object(k.a)(p.a.mark(function nr(){var zt,on,Tn,Hn,jn,pr;return p.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Bn.next=2,fr.validateFields();case 2:return Ci(!0),Bn.next=5,fr.getFieldsValue();case 5:if(zt=Bn.sent,on=!1,Tn="",zt.files.forEach(function(Yr){(!Yr.response||!Yr.response.id)&&(on=!0,Tn=Yr.name)}),!on){Bn.next=11;break}return U.b.error("".concat(Tn," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20")),Bn.abrupt("return");case 11:if(Aa){Bn.next=18;break}return Bn.next=14,Object(B.c)({id:an[pn].stage_id,subject_id:Yt.pathId,tags:uo,attachment_ids:zt.files.map(function(Yr){return Yr.response.id})});case 14:Hn=Bn.sent,Hn.status===0&&(U.b.success("\u4FEE\u6539\u6210\u529F"),er(!1),co(Object(d.a)(Hn.items))),Bn.next=22;break;case 18:return Bn.next=20,Object(B.R)({id:Aa==null?void 0:Aa.id,subject_id:Yt.pathId,tags:uo,attachment_id:(jn=zt.files.map(function(Yr){return Yr.response.id}))===null||jn===void 0?void 0:jn[0]});case 20:pr=Bn.sent,pr.status===0&&(U.b.success("\u4FEE\u6539\u6210\u529F"),er(!1),co(Object(d.a)(pr.items)));case 22:Ci(!1);case 23:case"end":return Bn.stop()}},nr)})),onCancel:function(){er(!1),Ki([]),wi("")}},t.a.createElement(dt.a,{form:fr},t.a.createElement(dt.a.Item,{label:"\u8BFE\u4EF6\u5185\u5BB9",name:"files",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8BFE\u4EF6\u5185\u5BB9"}]},t.a.createElement(Cs.b,{aloneClear:!0,maxSize:Object(F.v)()?500:100,accept:gi.toString(),number:Aa?1:10})),t.a.createElement(dt.a.Item,{style:{marginLeft:8},label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag"},t.a.createElement(Ne.a,{onKeyUp:ss})),t.a.createElement("div",{className:$r.a["tagsList-content"]},uo.map(function(nr,zt){return t.a.createElement(E.a,{key:zt+nr,closable:!0,onClose:function(Tn){ls(Tn,nr)}},nr)})),t.a.createElement("div",null,t.a.createElement("span",{className:"c-red"},"\u6CE8\u610F\uFF1A"),t.a.createElement("br",null),"1\u3001\u4E0A\u4F20\u8BFE\u4EF6\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",t.a.createElement(mn.a,{to:"/users/mmipb3zhj/videos/protocol",target:"_blank"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B",t.a.createElement("br",null),"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Object(F.v)()?500:100,"M\uFF1B",t.a.createElement("br",null),"3\u3001\u5F53\u524D\u4EC5\u9650\u652F\u6301pdf\u3001word\u3001excel\u3001ppt\u3001zip\u6587\u4EF6\uFF1B",t.a.createElement("br",null),"4\u3001\u6587\u4EF6\u540D\u5C06\u88AB\u81EA\u52A8\u8BFB\u53D6\u4E3A\u7CFB\u7EDF\u5185\u8BE5\u8BFE\u4EF6\u7684\u540D\u79F0\uFF0C\u4E0A\u4F20\u524D\u8BF7\u6CE8\u610F\u8FD9\u4E00\u70B9\uFF1B",t.a.createElement("br",null),"5\u3001\u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6\u3002"))),t.a.createElement(g.a,{centered:!0,title:"\u65B0\u5EFA\u5C0F\u8282\u540D\u79F0",visible:Er,confirmLoading:Li,onOk:Object(k.a)(p.a.mark(function nr(){var zt,on;return p.a.wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,Mn.validateFields();case 2:return Ci(!0),Hn.next=5,Mn.getFieldsValue();case 5:return zt=Hn.sent,Hn.next=8,Object(B.a)({id:an[pn].stage_id,subject_id:Yt.pathId,name:zt.name});case 8:on=Hn.sent,on.status===0&&(U.b.success("\u6DFB\u52A0\u6210\u529F"),_r(!1),Oo(Object(I.a)({},on))),Ci(!1);case 11:case"end":return Hn.stop()}},nr)})),onCancel:function(){return _r(!1)}},t.a.createElement(dt.a,{form:Mn},t.a.createElement(dt.a.Item,{label:"",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u5C0F\u8282\u540D\u79F0"}]},t.a.createElement(Ne.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u5C0F\u8282\u540D\u79F0"})))),t.a.createElement(Ns,null),t.a.createElement(go,{shixunIds:da,cb:xi}),t.a.createElement(xo.a,{visible:Da,editData:Aa,onCancel:function(){return Ua(!1)},onOk:No}))},$o=Object(l.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.user,$t=lt.loading,cn=lt.globalSetting;return{pathsDetail:qe,user:Bt,globalSetting:cn,loading:$t.effects}})(Hs),ol=v("uRQ9"),$e=v.n(ol),pt=function(qe){var Bt=qe.user,$t=Object(O.a)(qe,["user"]),cn=Object(a.useState)([]),Wt=Object(_.a)(cn,2),_n=Wt[0],rn=Wt[1],Ht=Object(a.useState)(!0),An=Object(_.a)(Ht,2),qt=An[0],En=An[1],kn=Object(a.useState)(!1),Yt=Object(_.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=Object(a.useState)(!1),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1],hr=Object(a.useState)(0),pn=Object(_.a)(hr,2),Dn=pn[0],Nn=pn[1],Gn=Object(a.useState)({}),yn=Object(_.a)(Gn,2),Kn=yn[0],or=yn[1],gr=Object(A.i)(),Ur=Object(a.useState)({page:1,limit:10}),er=Object(_.a)(Ur,2),rr=er[0],Lr=er[1],Er=[{title:"\u59D3\u540D",dataIndex:"user_name",key:"user_name",align:"left"},{title:"\u7533\u8BF7\u65F6\u95F4",dataIndex:"created_at",key:"created_at",align:"left"},{title:"\u7533\u8BF7\u72B6\u6001",dataIndex:"state",key:"state",align:"left",render:function(Yn,vn){return t.a.createElement(t.a.Fragment,null,(vn==null?void 0:vn.state)==="drafted"&&t.a.createElement("span",null,"\u7533\u8BF7\u4E2D"),(vn==null?void 0:vn.state)==="rejected"&&t.a.createElement("span",{style:{color:"#E53333"}},"\u672A\u901A\u8FC7"),(vn==null?void 0:vn.state)==="passed"&&t.a.createElement("span",{style:{color:"#2FA34F"}},"\u901A\u8FC7"))}},{title:"\u5B66\u4E60\u8FDB\u5EA6",dataIndex:"process",key:"process",align:"left",render:function(Yn){return"".concat(Yn,"%")}},{title:"\u5BA1\u6279\u64CD\u4F5C",dataIndex:"action",key:"action",align:"left",render:function(Yn,vn){return t.a.createElement("div",{className:$e.a.actionsBtns},(vn==null?void 0:vn.state)==="drafted"&&t.a.createElement("span",{onClick:function(){return _r(vn)}},"\u540C\u610F"),(vn==null?void 0:vn.state)==="drafted"&&t.a.createElement("span",{onClick:function(){return sa(vn)}},"\u62D2\u7EDD"),(vn==null?void 0:vn.state)==="rejected"&&t.a.createElement("span",{onClick:function(){return ta(vn)}},"\u62D2\u7EDD\u539F\u56E0"),(vn==null?void 0:vn.state)==="passed"&&t.a.createElement("span",{onClick:function(){return tr(vn)}},"\u67E5\u770B\u8BC1\u4E66"))}}].filter(function(ia){return Vt?!0:ia.title!=="\u5B66\u4E60\u8FDB\u5EA6"&&ia.title!=="\u5BA1\u6279\u64CD\u4F5C"});Object(a.useEffect)(function(){vr(rr)},[rr]);var _r=function(){var ia=Object(k.a)(p.a.mark(function Yn(vn){var yr;return p.a.wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:return Cr.next=2,Object(Ut.a)("/api/paths/".concat(gr==null?void 0:gr.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:vn==null?void 0:vn.id,op:"pass"}});case 2:yr=Cr.sent,(yr==null?void 0:yr.status)===0&&vr(rr);case 4:case"end":return Cr.stop()}},Yn)}));return function(vn){return ia.apply(this,arguments)}}(),sa=function(Yn){var vn="";g.a.confirm({title:"\u8BC1\u4E66\u7533\u8BF7\u62D2\u7EDD",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:t.a.createElement("div",null,t.a.createElement("p",null,"\u62D2\u7EDD\u8BC1\u4E66\u53D1\u653E\u9700\u586B\u5199\u62D2\u7EDD\u539F\u56E0\u3002"),t.a.createElement("aside",{className:"flex-container"},t.a.createElement("sup",{className:"c-red-ee4"},"*"),t.a.createElement("span",null,"\u62D2\u7EDD\u539F\u56E0:"),t.a.createElement(Ne.a,{maxLength:30,style:{width:284,marginLeft:10},onChange:function(oi){return vn=oi.target.value}}))),okText:"\u786E\u5B9A\u62D2\u7EDD",cancelText:"\u53D6\u6D88",onOk:function(){var yr=Object(k.a)(p.a.mark(function Cr(){var Ir;return p.a.wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:if(vn){ar.next=3;break}return U.b.warn("\u62D2\u7EDD\u7406\u7531\u4E0D\u80FD\u4E3A\u7A7A"),ar.abrupt("return",Promise.reject());case 3:return ar.next=5,Object(Ut.a)("/api/paths/".concat(gr==null?void 0:gr.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:Yn==null?void 0:Yn.id,op:"reject",content:vn}});case 5:Ir=ar.sent,(Ir==null?void 0:Ir.status)===0&&vr(rr);case 7:case"end":return ar.stop()}},Cr)}));function oi(){return yr.apply(this,arguments)}return oi}()})},ta=function(Yn){g.a.info({title:"\u62D2\u7EDD\u539F\u56E0",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:t.a.createElement("div",null,Yn==null?void 0:Yn.content),okText:"\u786E\u5B9A"})},tr=function(Yn){or((Yn==null?void 0:Yn.info)||{}),ln(!0)},vr=function(){var ia=Object(k.a)(p.a.mark(function Yn(vn){var yr;return p.a.wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:return En(!0),Cr.next=3,Object(Ut.a)("/api/paths/".concat(gr==null?void 0:gr.pathId,"/request_certificates.json"),{method:"get",params:vn});case 3:yr=Cr.sent,yr!=null&&yr.data&&(rn(yr==null?void 0:yr.data),Nn((yr==null?void 0:yr.total_count)||0),Sn(yr==null?void 0:yr.is_manage)),En(!1);case 6:case"end":return Cr.stop()}},Yn)}));return function(vn){return ia.apply(this,arguments)}}(),ja=function(Yn,vn){var yr=Object(I.a)(Object(I.a)({},rr),{},{page:Yn,limit:vn});Lr(yr),vr(yr)};return t.a.createElement("div",{className:$e.a.certificate},t.a.createElement(bt.a,{dataSource:_n,rowKey:function(Yn){return Yn.id},columns:Er,loading:qt,pagination:{pageSize:rr.limit,total:Dn,current:rr.page,onChange:ja,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}),t.a.createElement(sn,{visible:wn,onCancel:function(){ln(!1),or({})},data:Kn}))},wt=Object(l.a)(function(lt){var qe=lt.user,Bt=lt.pathsDetail;return{user:qe,pathsDetail:Bt}})(pt);se.a.locale("ZH-cn");var nt=T.a.TabPane,Te=function(qe){var Bt=qe.data,$t=Object(a.useState)("1"),cn=Object(_.a)($t,2),Wt=cn[0],_n=cn[1],rn=Object(a.useState)(1),Ht=Object(_.a)(rn,2),An=Ht[0],qt=Ht[1],En=Object(a.useState)(),kn=Object(_.a)(En,2),Yt=kn[0],wn=kn[1],ln=Object(a.useState)(!0),xn=Object(_.a)(ln,2),an=xn[0],Vt=xn[1],Sn=Object(A.i)();function hr(){return pn.apply(this,arguments)}function pn(){return pn=Object(k.a)(p.a.mark(function Nn(){var Gn,yn;return p.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return Vt(!0),Wt==="1"?Gn="/api/paths/".concat(Sn.pathId,"/study_ranking_shixuns_passed.json"):Wt==="2"?Gn="/api/paths/".concat(Sn.pathId,"/study_ranking_videos.json"):Wt==="3"?Gn="/api/paths/".concat(Sn.pathId,"/study_ranking_pdf_attachments.json"):Wt==="4"&&(Gn="/api/paths/".concat(Sn.pathId,"/study_ranking_discusses.json")),or.next=4,Object(Ut.a)(Gn,{method:"get",params:{page:An}});case 4:yn=or.sent,Vt(!1),wn(yn);case 7:case"end":return or.stop()}},Nn)})),pn.apply(this,arguments)}Object(a.useEffect)(function(){hr()},[An,Wt]);var Dn=function(){var Gn,yn,Kn,or,gr,Ur,er,rr,Lr,Er,_r,sa,ta;return t.a.createElement(t.a.Fragment,null,t.a.createElement(Q.a,{spinning:an},t.a.createElement("div",{style:{height:"42px",background:"#fafafa",display:"flex",padding:"0px 5px",alignItems:"center"}},t.a.createElement("span",{style:{flex:"1"}},"\u6392\u540D"),t.a.createElement("span",{style:{flex:"1"}},"\u59D3\u540D"),Wt==="1"&&t.a.createElement("span",{style:{flex:"3"}},"\u901A\u8FC7\u5173\u5361\u6570"),Wt==="2"&&t.a.createElement("span",{style:{flex:"3"}},"\u7D2F\u8BA1\u5B66\u4E60\u65F6\u957F"),Wt==="3"&&t.a.createElement("span",{style:{flex:"3"}},"\u4E0B\u8F7D\u8D44\u6E90\u6B21\u6570"),Wt==="4"&&t.a.createElement("span",{style:{flex:"3"}},"\u53D1\u5E16\u6570")),(Yt==null?void 0:Yt.user_show)&&t.a.createElement("div",{style:{height:"42px",display:"flex",padding:"0px 5px",alignItems:"center"}},t.a.createElement("span",{style:{flex:"1"}},(Yt==null||((Gn=Yt.data_user)===null||Gn===void 0)?void 0:Gn.rank)===0&&(Yt==null||((yn=Yt.data_user)===null||yn===void 0)?void 0:yn.num)===0?"--":(Yt==null||((Kn=Yt.data_user)===null||Kn===void 0)?void 0:Kn.rank)<=100&&(Yt==null||((or=Yt.data_user)===null||or===void 0)?void 0:or.rank)!=0?Yt==null||((gr=Yt.data_user)===null||gr===void 0)?void 0:gr.rank:"\u672A\u4E0A\u699C"),t.a.createElement("span",{style:{flex:"1"}},Yt==null||((Ur=Yt.data_user)===null||Ur===void 0)?void 0:Ur.user_real_name),Wt==="1"&&t.a.createElement("span",{style:{flex:"3"}},(Yt==null||((er=Yt.data_user)===null||er===void 0)?void 0:er.num)||"--"),Wt==="2"&&t.a.createElement("span",{style:{flex:"3"}},Yt!=null&&(rr=Yt.data_user)!==null&&rr!==void 0&&rr.num?Object(pe.bb)(Yt==null||((Lr=Yt.data_user)===null||Lr===void 0)?void 0:Lr.num):"--"),Wt==="3"&&t.a.createElement("span",{style:{flex:"3"}},(Yt==null||((Er=Yt.data_user)===null||Er===void 0)?void 0:Er.num)||"--"),Wt==="4"&&t.a.createElement("span",{style:{flex:"3"}},(Yt==null||((_r=Yt.data_user)===null||_r===void 0)?void 0:_r.num)||"--")),(Yt==null?void 0:Yt.user_show)&&t.a.createElement(pa.a,null),(Yt==null||((sa=Yt.data)===null||sa===void 0)?void 0:sa.length)>0?Yt==null||((ta=Yt.data)===null||ta===void 0)?void 0:ta.map(function(tr,vr){return t.a.createElement("div",{style:{height:"42px",display:"flex",padding:"0px 5px",alignItems:"center"}},(tr==null?void 0:tr.rank)===1&&t.a.createElement("span",{style:{flex:"1",color:"#E02020"}},tr==null?void 0:tr.rank),(tr==null?void 0:tr.rank)===2&&t.a.createElement("span",{style:{flex:"1",color:"#FA6400"}},tr==null?void 0:tr.rank),(tr==null?void 0:tr.rank)===3&&t.a.createElement("span",{style:{flex:"1",color:"#F7B500"}},tr==null?void 0:tr.rank),(tr==null?void 0:tr.rank)>3&&t.a.createElement("span",{style:{flex:"1"}},tr==null?void 0:tr.rank),t.a.createElement("span",{style:{flex:"1"}},tr==null?void 0:tr.user_real_name),Wt==="1"&&t.a.createElement("span",{style:{flex:"3"}},tr==null?void 0:tr.num),Wt==="2"&&t.a.createElement("span",{style:{flex:"3"}},Object(pe.bb)(tr==null?void 0:tr.num)),Wt==="3"&&t.a.createElement("span",{style:{flex:"3"}},tr==null?void 0:tr.num),Wt==="4"&&t.a.createElement("span",{style:{flex:"3"}},tr==null?void 0:tr.num))}):t.a.createElement(ur.a,null),(Yt==null?void 0:Yt.count)>10&&t.a.createElement(Jr.a,{current:An,pageSize:10,showSizeChanger:!1,total:Yt==null?void 0:Yt.count,style:{textAlign:"center",margin:"20px 0px"},onChange:function(vr){qt(vr)}})))};return t.a.createElement("div",null,t.a.createElement(T.a,{activeKey:Wt,style:{background:"#fff",padding:"0px 20px"},onChange:function(Gn){_n(Gn),qt(1)}},t.a.createElement(nt,{tab:"\u901A\u5173\u699C",style:{background:"#fff"},key:"1"},t.a.createElement(Dn,null)),t.a.createElement(nt,{tab:"\u89C6\u9891\u5B66\u4E60\u699C",key:"2"},t.a.createElement(Dn,null)),t.a.createElement(nt,{tab:"\u4E0B\u8F7D\u8D44\u6E90\u699C",key:"3"},t.a.createElement(Dn,null)),t.a.createElement(nt,{tab:"\u4E92\u52A8\u8BA8\u8BBA\u699C",key:"4"},t.a.createElement(Dn,null))))},Ge=v("XzQ7"),Re=v.n(Ge),it=v("ho57"),st=v.n(it),Tt=T.a.TabPane;function ht(lt){var qe=function(_n,rn){if(_n.localName===rn)return _n;for(var Ht=0,An=_n;An=An.parentNode;Ht++){if(An.localName===rn)return An;if(An==document.documentElement)return!1}},Bt=lt.target,$t=qe(Bt,"a");if(console.log([$t],$t==null?void 0:$t.href,44),$t!=null&&$t.href)return;if(Bt.tagName.toUpperCase()==="IMG"){var cn=Bt.src||Bt.getAttribute("src");cn&&cn.indexOf("/images/avatars/User")===-1&&(lt.stopPropagation(),lt.preventDefault(),Ka.a.publish("preview-image",cn))}}var Mt=function(qe){var Bt,$t,cn=qe.pathsDetail,Wt=qe.globalSetting,_n=qe.loading,rn=qe.dispatch,Ht=Object(O.a)(qe,["pathsDetail","globalSetting","loading","dispatch"]),An=Object(A.i)(),qt=Ht.location.query,En=Object(a.useRef)(),kn=Object(a.useState)("stage"),Yt=Object(_.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=[{name:"\u8BFE\u7A0B\u7AE0\u8282",key:"stage"},{name:"\u6392\u884C\u699C",key:"ranking"},{name:"\u8BC1\u4E66\u7533\u8BF7",key:"certificate"}].filter(function(Vt){var Sn;return(Sn=cn.detail)!==null&&Sn!==void 0&&Sn.excellent?!0:Vt.key!=="certificate"});Object(a.useEffect)(function(){if(En.current)return En.current.addEventListener("mousedown",ht),function(){En.current.removeEventListener("mousedown",ht)}},[En.current]),Object(a.useEffect)(function(){if(!An.pathId)return;an()},[An.pathId]),Object(a.useEffect)(function(){var Vt;Object(pe.X)((Vt=cn.detail)===null||Vt===void 0?void 0:Vt.name)},[cn]);var an=function(){var Vt=Object(k.a)(p.a.mark(function Sn(){var hr;return p.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Dn.next=2,rn({type:"pathsDetail/getPathsDetail",payload:Object(I.a)({id:An.pathId},qt)});case 2:hr=Dn.sent,rn({type:"pathsDetail/getRightData",payload:{id:An.pathId}}),rn({type:"pathsDetail/getStageData",payload:{subject_id:An.pathId}}),hr!=null&&hr.id&&qt.token&&(location.href=location.pathname);case 6:case"end":return Dn.stop()}},Sn)}));return function(){return Vt.apply(this,arguments)}}();return t.a.createElement(Q.a,{spinning:!1},t.a.createElement("section",{className:Re.a.bg},t.a.createElement(xt,null),t.a.createElement(Ia.a,null),t.a.createElement("section",{style:{marginTop:((Bt=cn.detail)===null||Bt===void 0?void 0:Bt.excellent)&&"89px"},className:"edu-container mb80 ".concat(Re.a.wrap)},t.a.createElement("aside",{className:Re.a.content},t.a.createElement("div",{className:Re.a.intro},t.a.createElement("div",{className:Re.a.introTitle},t.a.createElement("span",{className:"font16",style:{display:"flex",alignItems:"center"}},t.a.createElement("img",{src:st.a,style:{marginRight:"10px"}}),"\u8BFE\u7A0B\u4ECB\u7ECD")),t.a.createElement("div",{ref:En},t.a.createElement(Rt.a,{value:($t=cn.detail)===null||$t===void 0?void 0:$t.description}))),t.a.createElement(T.a,{className:Re.a.wrapTabs,activeKey:wn,onChange:function(Sn){return ln(Sn)},tabBarGutter:50,tabBarStyle:{height:76}},xn.map(function(Vt){return t.a.createElement(Tt,{tab:Vt.name,key:Vt.key})})),wn==="stage"&&t.a.createElement($o,null),wn==="ranking"&&t.a.createElement(Te,null),wn==="certificate"&&t.a.createElement(wt,null)),t.a.createElement(_i,null))))},tn=ee.default=Object(l.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.loading,$t=lt.globalSetting;return{pathsDetail:qe,globalSetting:$t,loading:Bt}})(Mt)},BPZU:function(Be,ee){var v=32,Z=7,Q=256;function I(a){for(var t=0;a>=v;)t|=a&1,a>>=1;return a+t}function k(a,t,A,l){var i=t+1;if(i===A)return 1;if(l(a[i++],a[t])<0){for(;i=0;)i++;return i-t}function _(a,t,A){for(A--;t>>1,i(c,a[o])<0?f=o:d=o+1;var u=l-d;switch(u){case 3:a[d+3]=a[d+2];case 2:a[d+2]=a[d+1];case 1:a[d+1]=a[d];break;default:for(;u>0;)a[d+u]=a[d+u-1],u--}a[d]=c}}function M(a,t,A,l,i,c){var d=0,f=0,o=1;if(c(a,t[A+i])>0){for(f=l-i;o0;)d=o,o=(o<<1)+1,o<=0&&(o=f);o>f&&(o=f),d+=i,o+=i}else{for(f=i+1;of&&(o=f);var u=d;d=i-o,o=i-u}for(d++;d>>1);c(a,t[A+E])>0?d=E+1:o=E}return o}function T(a,t,A,l,i,c){var d=0,f=0,o=1;if(c(a,t[A+i])<0){for(f=i+1;of&&(o=f);var u=d;d=i-o,o=i-u}else{for(f=l-i;o=0;)d=o,o=(o<<1)+1,o<=0&&(o=f);o>f&&(o=f),d+=i,o+=i}for(d++;d>>1);c(a,t[A+E])<0?o=E:d=E+1}return o}function n(a,t){var A=Z,l=0,i=Q,c=0,d,f,o=0;l=a.length,l<2*Q&&(i=l>>>1);var u=[];c=l<120?5:l<1542?10:l<119151?19:40,d=[],f=[];function E(s,h){d[o]=s,f[o]=h,o+=1}function R(){for(;o>1;){var s=o-2;if(s>=1&&f[s-1]<=f[s]+f[s+1]||s>=2&&f[s-2]<=f[s]+f[s-1])f[s-1]f[s+1])break;P(s)}}function w(){for(;o>1;){var s=o-2;s>0&&f[s-1]=Z||F>=Z);if(B)break;S<0&&(S=0),S+=2}if(A=S,A<1&&(A=1),h===1){for(g=0;g=0;g--)a[H+g]=a[S+g];a[N]=u[U];return}for(var F=A;;){var B=0,z=0,K=!1;do if(t(u[U],a[y])<0){if(a[N--]=a[y--],B++,z=0,--h===0){K=!0;break}}else if(a[N--]=u[U--],z++,B=0,--x===1){K=!0;break}while((B|z)=0;g--)a[H+g]=a[S+g];if(h===0){K=!0;break}}if(a[N--]=u[U--],--x===1){K=!0;break}if(z=x-M(a[y],u,0,x,x-1,t),z!==0){for(N-=z,U-=z,x-=z,H=N+1,S=U+1,g=0;g=Z||z>=Z);if(K)break;F<0&&(F=0),F+=2}if(A=F,A<1&&(A=1),x===1){for(N-=h,y-=h,H=N+1,S=y+1,g=h-1;g>=0;g--)a[H+g]=a[S+g];a[N]=u[U]}else{if(x===0)throw new Error;for(S=N-(x-1),g=0;gf&&(o=f),O(a,A,A+o,A+c,t),c=o}d.pushRun(A,c),d.mergeRuns(),i-=c,A+=c}while(i!==0);d.forceMergeRuns()}Be.exports=p},BU3w:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return O});var Z=v("MNnm"),Q="rc-util-key";function I(M){if(M.attachTo)return M.attachTo;var T=document.querySelector("head");return T||document.body}function k(M){var T,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Z.a)())return null;var p=document.createElement("style");if((T=n.csp)===null||T===void 0?void 0:T.nonce){var a;p.nonce=(a=n.csp)===null||a===void 0?void 0:a.nonce}p.innerHTML=M;var t=I(n),A=t.firstChild;return n.prepend&&t.prepend?t.prepend(p):n.prepend&&A?t.insertBefore(p,A):t.appendChild(p),p}var _=new Map;function O(M,T){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=I(n);if(!_.has(p)){var a=k("",n),t=a.parentNode;_.set(p,t),t.removeChild(a)}var A=Array.from(_.get(p).children).find(function(f){return f.tagName==="STYLE"&&f[Q]===T});if(A){var l,i;if(((l=n.csp)===null||l===void 0?void 0:l.nonce)&&A.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var c;A.nonce=(c=n.csp)===null||c===void 0?void 0:c.nonce}return A.innerHTML!==M&&(A.innerHTML=M),A}var d=k(M,n);return d[Q]=T,d}},Bd2K:function(Be,ee,v){(function(Z){Z(v("VrN/"),v("osHv"))})(function(Z){Z.defineOption("autoCloseTags",!1,function(n,p,a){if(a!=Z.Init&&a&&n.removeKeyMap("autoCloseTags"),!p)return;var t={name:"autoCloseTags"};(typeof p!="object"||p.whenClosing!==!1)&&(t["'/'"]=function(A){return O(A)}),(typeof p!="object"||p.whenOpening!==!1)&&(t["'>'"]=function(A){return k(A)}),n.addKeyMap(t)});var Q=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],I=["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 k(n){if(n.getOption("disableInput"))return Z.Pass;for(var p=n.listSelections(),a=[],t=n.getOption("autoCloseTags"),A=0;Al.ch&&(o=o.slice(0,o.length-i.end+l.ch));var w=o.toLowerCase();if(!o||i.type=="string"&&(i.end!=l.ch||!/[\"\']/.test(i.string.charAt(i.string.length-1))||i.string.length==1)||i.type=="tag"&&f.close||i.string.indexOf("/")==l.ch-i.start-1||E&&M(E,w)>-1||T(n,c.mode.xmlCurrentContext&&c.mode.xmlCurrentContext(d)||[],o,l,!0))return Z.Pass;var P=typeof t=="object"&&t.emptyTags;if(P&&M(P,o)>-1){a[A]={text:"/>",newPos:Z.Pos(l.line,l.ch+2)};continue}var C=R&&M(R,w)>-1;a[A]={indent:C,text:">"+(C?` `:"")+"",newPos:C?Z.Pos(l.line+1,0):Z.Pos(l.line,l.ch+1)}}for(var b=typeof t=="object"&&t.dontIndentOnAutoClose,A=p.length-1;A>=0;A--){var s=a[A];n.replaceRange(s.text,p[A].head,p[A].anchor,"+insert");var h=n.listSelections().slice(0);h[A]={head:s.newPos,anchor:s.newPos},n.setSelections(h),!b&&s.indent&&(n.indentLine(s.newPos.line,null,!0),n.indentLine(s.newPos.line+1,null,!0))}}function _(n,p){for(var a=n.listSelections(),t=[],A=p?"/":""&&(E+=">"),t[c]=E}if(n.replaceSelections(t),a=n.listSelections(),!i)for(var c=0;c=0&&p[d]==a;d--)++c;t=i.to;for(var d=1;d0){for(var p=0;p1&&arguments[1]!==void 0?arguments[1]:"",p=[],a=0;a.5?R:E}function p(E,R,w,P,C){var b=E.length;if(C===1)for(var s=0;sC;if(b)E.length=C;else for(var s=P;s=0&&!(F[he]<=et);he--);he=Math.min(he,x-2)}else{for(he=ce;heet);he++);he=Math.min(he-1,x-2)}ce=he,ie=et;var Se=F[he+1]-F[he];if(Se===0)return;if(le=(et-F[he])/Se,m)if(se=B[he],me=B[he===0?he:he-1],ge=B[he>x-2?x-1:he+1],ae=B[he>x-3?x-1:he+2],y)A(me,se,ge,ae,le,le*le,le*le*le,s(Ke,C),S);else{var Ue;if(U)Ue=A(me,se,ge,ae,le,le*le,le*le*le,pe,1),Ue=c(pe);else{if(N)return n(se,ge,le);Ue=l(me,se,ge,ae,le,le*le,le*le*le)}h(Ke,C,Ue)}else if(y)p(B[he],B[he+1],le,s(Ke,C),S);else{var Ue;if(U)p(B[he],B[he+1],le,pe,1),Ue=c(pe);else{if(N)return n(B[he],B[he+1],le);Ue=T(B[he],B[he+1],le)}h(Ke,C,Ue)}},xe=new Z({target:E._target,life:H,loop:E._loop,delay:E._delay,onframe:Me,ondestroy:w});return R&&R!=="spline"&&(xe.easing=R),xe}var o=function(E,R,w,P){this._tracks={},this._target=E,this._loop=R||!1,this._getter=w||O,this._setter=P||M,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};o.prototype={when:function(E,R){var w=this._tracks;for(var P in R){if(!R.hasOwnProperty(P))continue;if(!w[P]){w[P]=[];var C=this._getter(this._target,P);if(C==null)continue;E!==0&&w[P].push({time:0,value:i(C)})}w[P].push({time:E,value:R[P]})}return this},during:function(E){return this._onframeList.push(E),this},pause:function(){for(var E=0;E1&&p&&p.length>1){var t=I(p)/I(a);!isFinite(t)&&(t=1),T.pinchScale=t;var A=k(p);return T.pinchX=A[0],T.pinchY=A[1],{type:"pinch",target:M[0].target,event:T}}}},O=Q;Be.exports=O},"Cg/j":function(Be,ee,v){"use strict";v.d(ee,"b",function(){return Z}),v.d(ee,"a",function(){return Q}),v.d(ee,"c",function(){return k}),v.d(ee,"d",function(){return _});var Z;(function(O){O.serviceIds=new Map,O.DI_TARGET="$di$target",O.DI_DEPENDENCIES="$di$dependencies";function M(T){return T[O.DI_DEPENDENCIES]||[]}O.getServiceDependencies=M})(Z||(Z={}));const Q=k("instantiationService");function I(O,M,T,n){M[Z.DI_TARGET]===M?M[Z.DI_DEPENDENCIES].push({id:O,index:T,optional:n}):(M[Z.DI_DEPENDENCIES]=[{id:O,index:T,optional:n}],M[Z.DI_TARGET]=M)}function k(O){if(Z.serviceIds.has(O))return Z.serviceIds.get(O);const M=function(T,n,p){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");I(M,T,p,!1)};return M.toString=()=>O,Z.serviceIds.set(O,M),M}function _(O){return function(M,T,n){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");I(O,M,n,!0)}}},CnIC:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAWCAYAAADTlvzyAAAAAXNSR0IArs4c6QAAA+JJREFUSA2dVltslEUUPmf+f7cXt+oKRKzVtCoICbARtVEJIA+mQiMaI00UXuCBRCT2AZPGaCJvWjUmQowPSBpN+kK8RKVNCIZLorIEVEqFmABVgxsuspi2wHZ3Z+f4za7/9r9sSe0k7Zz55pzzzZzL7M80zdHaJ7fnx+g9EeokptkklGGm/geX0PZDq1hP0w1MpzHm7pA5LLQfZKka6t/MaqZ1p7q4UGMvArkRBMC+IWnTpvC4EMeEzI+bD9NWoZpk1nzt1Yu0cXB44js27qMlY+pE0fAzqfjPtXxHCPcOFZdr0tuIlWOvfyXnnBWmTQjh1MNQtynSBVaynhFnROOFgZP6y84lbl/YSPmBPackAeBVOHc8vP8MuVgnvHWtGQdacO66ygT2jDw/eKLwUADDIkDYmNePIU/1fqWR626V3I8HZMT+eBYHCw3AHSEoSEjKzA0rzLuNcmGs1np+MnY5jDNJcxgL3NBRztWwwsuLdAy1PBbGQ+uRpclCJOwiEvEXINTaBPMAr66hFSieSPL9hErRVyLc7sfKsnL+CmMBwtzZ2K9EcsmvBLL2jpZiP4rvhh+vyrj9ylbqU8RPVzFPKBX3e6I3Bwi7uriE8O3yNu2MbuCuB/hZiBuwV/Lv4RATsxto/YZ79eZwsQnJt51LG/7061s5QGiBzlT8qGL+3MresC/MruV6HP2108PsjHZ4+532UhzifX4cUTl9PBX7xI95coTQbhjhBk/Bzqi20fGSm4UwJ4ALzUPLHqVQcaBY6lb+QfYgkYHDTI69JwsPs+GXgMyvoHLpWsF8/dqxullaUw9uumBSuyIhrMcScerdsayUE0OrEcrW/2z/IaW+uJw9v2/jqrYJz65MODh0o0UoZl+YhXYDoctlS/xpzw/OQuSwG0QtnsFUM4h/g7N3P1qhf4+zbIKXZFlXZIwV716Tih2wax4YlkeopF+HXAmByLm3foqlM9fofZDdXTb6H/9AfLolSVu2L9YdSMFizxSHObQ65X7AAycKH4O3fAPE/sK2tDo8mnc+g2LN/HoObjbb6r2jXq/pbZcX8Zjf5emyMT3WaeXqEFjR7rG88wbEGZNZ57ZFsjn3TXbUgF1XB6ukwo/JLziRwUlyrxyI5RHGch6rSjMXnjyYkcn3FalicjOVoknLrbq+cM+W7+MJVGN65hw+S/RSoo4WfbiMGuONdOap+3nU7pYJfWrUvFOeM4a2olKfwG0D/ejXm0qGQ/upkcaj0HuxmwfDehFCT2HdHnGO/E1tukhJx6Em9FgTctOEz4cmtM8t+BOkwn485TCPk6Er+Nk+n7yTRm72ffMvtr1U/uTpxS8AAAAASUVORK5CYII="},DBLp:function(Be,ee){function v(){}v.prototype={diff:function(_,O,M){M||(M=function(o,u){return o===u}),this.equals=M;var T=this;_=_.slice(),O=O.slice();var n=O.length,p=_.length,a=1,t=n+p,A=[{newPos:-1,components:[]}],l=this.extractCommon(A[0],O,_,0);if(A[0].newPos+1>=n&&l+1>=p){for(var i=[],c=0;c=n&&w+1>=p)return Z(T,u.components,O,_);A[o]=u}a++}for(;a<=t;){var f=d();if(f)return f}},pushComponent:function(_,O,M){var T=_[_.length-1];T&&T.added===O&&T.removed===M?_[_.length-1]={count:T.count+1,added:O,removed:M}:_.push({count:1,added:O,removed:M})},extractCommon:function(_,O,M,T){for(var n=O.length,p=M.length,a=_.newPos,t=a-T,A=0;a+1k||t<-k}var O=function(t){t=t||{},t.position||(this.position=[0,0]),t.rotation==null&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},M=O.prototype;M.transform=null,M.needLocalTransform=function(){return _(this.rotation)||_(this.position[0])||_(this.position[1])||_(this.scale[0]-1)||_(this.scale[1]-1)};var T=[];M.updateTransform=function(){var t=this.parent,A=t&&t.transform,l=this.needLocalTransform(),i=this.transform;if(!(l||A)){i&&I(i);return}i=i||Z.create(),l?this.getLocalTransform(i):I(i),A&&(l?Z.mul(i,t.transform,i):Z.copy(i,t.transform)),this.transform=i;var c=this.globalScaleRatio;if(c!=null&&c!==1){this.getGlobalScale(T);var d=T[0]<0?-1:1,f=T[1]<0?-1:1,o=((T[0]-d)*c+d)/T[0]||0,u=((T[1]-f)*c+f)/T[1]||0;i[0]*=o,i[1]*=o,i[2]*=u,i[3]*=u}this.invTransform=this.invTransform||Z.create(),Z.invert(this.invTransform,i)},M.getLocalTransform=function(t){return O.getLocalTransform(this,t)},M.setTransform=function(t){var A=this.transform,l=t.dpr||1;A?t.setTransform(l*A[0],l*A[1],l*A[2],l*A[3],l*A[4],l*A[5]):t.setTransform(l,0,0,l,0,0)},M.restoreTransform=function(t){var A=t.dpr||1;t.setTransform(A,0,0,A,0,0)};var n=[],p=Z.create();M.setLocalTransform=function(t){if(!t)return;var A=t[0]*t[0]+t[1]*t[1],l=t[2]*t[2]+t[3]*t[3],i=this.position,c=this.scale;_(A-1)&&(A=Math.sqrt(A)),_(l-1)&&(l=Math.sqrt(l)),t[0]<0&&(A=-A),t[3]<0&&(l=-l),i[0]=t[4],i[1]=t[5],c[0]=A,c[1]=l,this.rotation=Math.atan2(-t[1]/l,t[0]/A)},M.decomposeTransform=function(){if(!this.transform)return;var t=this.parent,A=this.transform;t&&t.transform&&(Z.mul(n,t.invTransform,A),A=n);var l=this.origin;l&&(l[0]||l[1])&&(p[4]=l[0],p[5]=l[1],Z.mul(n,A,p),n[4]-=l[0],n[5]-=l[1],A=n),this.setLocalTransform(A)},M.getGlobalScale=function(t){var A=this.transform;return t=t||[],A?(t[0]=Math.sqrt(A[0]*A[0]+A[1]*A[1]),t[1]=Math.sqrt(A[2]*A[2]+A[3]*A[3]),A[0]<0&&(t[0]=-t[0]),A[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},M.transformCoordToLocal=function(t,A){var l=[t,A],i=this.invTransform;return i&&Q.applyTransform(l,l,i),l},M.transformCoordToGlobal=function(t,A){var l=[t,A],i=this.transform;return i&&Q.applyTransform(l,l,i),l},O.getLocalTransform=function(t,A){A=A||[],I(A);var l=t.origin,i=t.scale||[1,1],c=t.rotation||0,d=t.position||[0,0];return l&&(A[4]-=l[0],A[5]-=l[1]),Z.scale(A,A,i),c&&Z.rotate(A,A,c),l&&(A[4]+=l[0],A[5]+=l[1]),A[4]+=d[0],A[5]+=d[1],A};var a=O;Be.exports=a},Dagg:function(Be,ee,v){var Z=v("Gev7"),Q=v("mFDi"),I=v("bYtY"),k=v("Xnb7");function _(M){Z.call(this,M)}_.prototype={constructor:_,type:"image",brush:function(M,T){var n=this.style,p=n.image;n.bind(M,this,T);var a=this._image=k.createOrUpdateImage(p,this._image,this,this.onload);if(!a||!k.isImageReady(a))return;var t=n.x||0,A=n.y||0,l=n.width,i=n.height,c=a.width/a.height;if(l==null&&i!=null?l=i*c:i==null&&l!=null?i=l/c:l==null&&i==null&&(l=a.width,i=a.height),this.setTransform(M),n.sWidth&&n.sHeight){var d=n.sx||0,f=n.sy||0;M.drawImage(a,d,f,n.sWidth,n.sHeight,t,A,l,i)}else if(n.sx&&n.sy){var d=n.sx,f=n.sy,o=l-d,u=i-f;M.drawImage(a,d,f,o,u,t,A,l,i)}else M.drawImage(a,t,A,l,i);n.text!=null&&(this.restoreTransform(M),this.drawRectText(M,this.getBoundingRect()))},getBoundingRect:function(){var M=this.style;return this._rect||(this._rect=new Q(M.x||0,M.y||0,M.width||0,M.height||0)),this._rect}},I.inherits(_,Z);var O=_;Be.exports=O},DlQD:function(Be,ee,v){(function(Z,Q){Be.exports=Q()})(this,function(){"use strict";function Z(Ze,ke){for(var He=0;HeZe.length)&&(ke=Ze.length);for(var He=0,we=new Array(ke);He=Ze.length?{done:!0}:{done:!1,value:Ze[we++]}}}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 He=Ze[Symbol.iterator](),He.next.bind(He)}function O(Ze,ke){return ke={exports:{}},Ze(ke,ke.exports),ke.exports}var M=O(function(Ze){function ke(){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 He(we){Ze.exports.defaults=we}Ze.exports={defaults:ke(),getDefaults:ke,changeDefaults:He}}),T=M.defaults,n=M.getDefaults,p=M.changeDefaults,a=/[&<>"']/,t=/[&<>"']/g,A=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,i={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(ke){return i[ke]};function d(Ze,ke){if(ke){if(a.test(Ze))return Ze.replace(t,c)}else if(A.test(Ze))return Ze.replace(l,c);return Ze}var f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function o(Ze){return Ze.replace(f,function(ke,He){return He=He.toLowerCase(),He==="colon"?":":He.charAt(0)==="#"?He.charAt(1)==="x"?String.fromCharCode(parseInt(He.substring(2),16)):String.fromCharCode(+He.substring(1)):""})}var u=/(^|[^\[])\^/g;function E(Ze,ke){Ze=Ze.source||Ze,ke=ke||"";var He={replace:function(Le,Pe){return Pe=Pe.source||Pe,Pe=Pe.replace(u,"$1"),Ze=Ze.replace(Le,Pe),He},getRegex:function(){return new RegExp(Ze,ke)}};return He}var R=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(Ze,ke,He){if(Ze){var we;try{we=decodeURIComponent(o(He)).replace(R,"").toLowerCase()}catch(Le){return null}if(we.indexOf("javascript:")===0||we.indexOf("vbscript:")===0||we.indexOf("data:")===0)return null}ke&&!w.test(He)&&(He=m(ke,He));try{He=encodeURI(He).replace(/%25/g,"%")}catch(Le){return null}return He}var C={},b=/^[^:]+:\/*[^/]*$/,s=/^([^:]+:)[\s\S]*$/,h=/^([^:]+:\/*[^/]*)[\s\S]*$/;function m(Ze,ke){C[" "+Ze]||(b.test(Ze)?C[" "+Ze]=Ze+"/":C[" "+Ze]=U(Ze,"/",!0)),Ze=C[" "+Ze];var He=Ze.indexOf(":")===-1;return ke.substring(0,2)==="//"?He?ke:Ze.replace(s,"$1")+ke:ke.charAt(0)==="/"?He?ke:Ze.replace(h,"$1")+ke:Ze+ke}var x={exec:function(){}};function g(Ze){for(var ke=1,He,we;ke=0&&Xe[Lt]==="\\";)gt=!gt;return gt?"|":" |"}),we=He.split(/ \|/),Le=0;if(we.length>ke)we.splice(ke);else for(;we.length=we.length?Le.slice(we.length):Le}).join(` `)}var Ae=function(){function Ze(He){this.options=He||F}var ke=Ze.prototype;return ke.space=function(we){var Le=this.rules.block.newline.exec(we);if(Le)return Le[0].length>1?{type:"space",raw:Le[0]}:{raw:` `}},ke.code=function(we,Le){var Pe=this.rules.block.code.exec(we);if(Pe){var We=Le[Le.length-1];if(We&&We.type==="paragraph")return{raw:Pe[0],text:Pe[0].trimRight()};var Xe=Pe[0].replace(/^ {4}/gm,"");return{type:"code",raw:Pe[0],codeBlockStyle:"indented",text:this.options.pedantic?Xe:B(Xe,` `)}}},ke.fences=function(we){var Le=this.rules.block.fences.exec(we);if(Le){var Pe=Le[0],We=fe(Pe,Le[3]||"");return{type:"code",raw:Pe,lang:Le[2]?Le[2].trim():Le[2],text:We}}},ke.heading=function(we){var Le=this.rules.block.heading.exec(we);if(Le)return{type:"heading",raw:Le[0],depth:Le[1].length,text:Le[2]}},ke.nptable=function(we){var Le=this.rules.block.nptable.exec(we);if(Le){var Pe={type:"table",header:z(Le[1].replace(/^ *| *\| *$/g,"")),align:Le[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Le[3]?Le[3].replace(/\n$/,"").split(` `):[],raw:Le[0]};if(Pe.header.length===Pe.align.length){var We=Pe.align.length,Xe;for(Xe=0;Xe ?/gm,"");return{type:"blockquote",raw:Le[0],text:Pe}}},ke.list=function(we){var Le=this.rules.block.list.exec(we);if(Le){for(var Pe=Le[0],We=Le[2],Xe=We.length>1,gt=We[We.length-1]===")",Lt={type:"list",raw:Pe,ordered:Xe,start:Xe?+We.slice(0,-1):"",loose:!1,items:[]},en=Le[0].match(this.rules.block.item),Zt=!1,xt,Ct,mt,Je,Qe,Oe,je,St=en.length,bt=0;bt1||this.options.smartLists&&mt!==We)&&(Je=en.slice(bt+1).join(` `),Lt.raw=Lt.raw.substring(0,Lt.raw.length-Je.length),bt=St-1)),Qe=Zt||/\n\n(?!\s*$)/.test(xt),bt!==St-1&&(Zt=xt.charAt(xt.length-1)===` `,Qe||(Qe=Zt)),Qe&&(Lt.loose=!0),Oe=/^\[[ xX]\] /.test(xt),je=void 0,Oe&&(je=xt[1]!==" ",xt=xt.replace(/^\[[ xX]\] +/,"")),Lt.items.push({type:"list_item",raw:Pe,task:Oe,checked:je,loose:Qe,text:xt});return Lt}},ke.html=function(we){var Le=this.rules.block.html.exec(we);if(Le)return{type:this.options.sanitize?"paragraph":"html",raw:Le[0],pre:!this.options.sanitizer&&(Le[1]==="pre"||Le[1]==="script"||Le[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Le[0]):K(Le[0]):Le[0]}},ke.def=function(we){var Le=this.rules.block.def.exec(we);if(Le){Le[3]&&(Le[3]=Le[3].substring(1,Le[3].length-1));var Pe=Le[1].toLowerCase().replace(/\s+/g," ");return{tag:Pe,raw:Le[0],href:Le[2],title:Le[3]}}},ke.table=function(we){var Le=this.rules.block.table.exec(we);if(Le){var Pe={type:"table",header:z(Le[1].replace(/^ *| *\| *$/g,"")),align:Le[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Le[3]?Le[3].replace(/\n$/,"").split(` `):[]};if(Pe.header.length===Pe.align.length){Pe.raw=Le[0];var We=Pe.align.length,Xe;for(Xe=0;Xe/i.test(We[0])&&(Le=!1),!Pe&&/^<(pre|code|kbd|script)(\s|>)/i.test(We[0])?Pe=!0:Pe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(We[0])&&(Pe=!1),{type:this.options.sanitize?"text":"html",raw:We[0],inLink:Le,inRawBlock:Pe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(We[0]):K(We[0]):We[0]}},ke.link=function(we){var Le=this.rules.inline.link.exec(we);if(Le){var Pe=$(Le[2],"()");if(Pe>-1){var We=Le[0].indexOf("!")===0?5:4,Xe=We+Le[1].length+Pe;Le[2]=Le[2].substring(0,Pe),Le[0]=Le[0].substring(0,Xe).trim(),Le[3]=""}var gt=Le[2],Lt="";if(this.options.pedantic){var en=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(gt);en?(gt=en[1],Lt=en[3]):Lt=""}else Lt=Le[3]?Le[3].slice(1,-1):"";gt=gt.trim().replace(/^<([\s\S]*)>$/,"$1");var Zt=te(Le,{href:gt&>.replace(this.rules.inline._escapes,"$1"),title:Lt&&Lt.replace(this.rules.inline._escapes,"$1")},Le[0]);return Zt}},ke.reflink=function(we,Le){var Pe;if((Pe=this.rules.inline.reflink.exec(we))||(Pe=this.rules.inline.nolink.exec(we))){var We=(Pe[2]||Pe[1]).replace(/\s+/g," ");if(We=Le[We.toLowerCase()],!We||!We.href){var Xe=Pe[0].charAt(0);return{type:"text",raw:Xe,text:Xe}}var gt=te(Pe,We,Pe[0]);return gt}},ke.strong=function(we,Le,Pe){Pe===void 0&&(Pe="");var We=this.rules.inline.strong.start.exec(we);if(We&&(!We[1]||We[1]&&(Pe===""||this.rules.inline.punctuation.exec(Pe)))){Le=Le.slice(-1*we.length);var Xe=We[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Xe.lastIndex=0;for(var gt;(We=Xe.exec(Le))!=null;)if(gt=this.rules.inline.strong.middle.exec(Le.slice(0,We.index+3)),gt)return{type:"strong",raw:we.slice(0,gt[0].length),text:we.slice(2,gt[0].length-2)}}},ke.em=function(we,Le,Pe){Pe===void 0&&(Pe="");var We=this.rules.inline.em.start.exec(we);if(We&&(!We[1]||We[1]&&(Pe===""||this.rules.inline.punctuation.exec(Pe)))){Le=Le.slice(-1*we.length);var Xe=We[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Xe.lastIndex=0;for(var gt;(We=Xe.exec(Le))!=null;)if(gt=this.rules.inline.em.middle.exec(Le.slice(0,We.index+2)),gt)return{type:"em",raw:we.slice(0,gt[0].length),text:we.slice(1,gt[0].length-1)}}},ke.codespan=function(we){var Le=this.rules.inline.code.exec(we);if(Le){var Pe=Le[2].replace(/\n/g," "),We=/[^ ]/.test(Pe),Xe=Pe.startsWith(" ")&&Pe.endsWith(" ");return We&&Xe&&(Pe=Pe.substring(1,Pe.length-1)),Pe=K(Pe,!0),{type:"codespan",raw:Le[0],text:Pe}}},ke.br=function(we){var Le=this.rules.inline.br.exec(we);if(Le)return{type:"br",raw:Le[0]}},ke.del=function(we){var Le=this.rules.inline.del.exec(we);if(Le)return{type:"del",raw:Le[0],text:Le[1]}},ke.autolink=function(we,Le){var Pe=this.rules.inline.autolink.exec(we);if(Pe){var We,Xe;return Pe[2]==="@"?(We=K(this.options.mangle?Le(Pe[1]):Pe[1]),Xe="mailto:"+We):(We=K(Pe[1]),Xe=We),{type:"link",raw:Pe[0],text:We,href:Xe,tokens:[{type:"text",raw:We,text:We}]}}},ke.url=function(we,Le){var Pe;if(Pe=this.rules.inline.url.exec(we)){var We,Xe;if(Pe[2]==="@")We=K(this.options.mangle?Le(Pe[0]):Pe[0]),Xe="mailto:"+We;else{var gt;do gt=Pe[0],Pe[0]=this.rules.inline._backpedal.exec(Pe[0])[0];while(gt!==Pe[0]);We=K(Pe[0]),Pe[1]==="www."?Xe="http://"+We:Xe=We}return{type:"link",raw:Pe[0],text:We,href:Xe,tokens:[{type:"text",raw:We,text:We}]}}},ke.inlineText=function(we,Le,Pe){var We=this.rules.inline.text.exec(we);if(We){var Xe;return Le?Xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(We[0]):K(We[0]):We[0]:Xe=K(this.options.smartypants?Pe(We[0]):We[0]),{type:"text",raw:We[0],text:Xe}}},Ze}(),ce=H.noopTest,ie=H.edit,ye=H.merge,le={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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:ce,table:ce,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};le._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,le._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,le.def=ie(le.def).replace("label",le._label).replace("title",le._title).getRegex(),le.bullet=/(?:[*+-]|\d{1,9}[.)])/,le.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,le.item=ie(le.item,"gm").replace(/bull/g,le.bullet).getRegex(),le.list=ie(le.list).replace(/bull/g,le.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+le.def.source+")").getRegex(),le._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",le._comment=//,le.html=ie(le.html,"i").replace("comment",le._comment).replace("tag",le._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),le.paragraph=ie(le._paragraph).replace("hr",le.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",")|<(?:script|pre|style|!--)").replace("tag",le._tag).getRegex(),le.blockquote=ie(le.blockquote).replace("paragraph",le.paragraph).getRegex(),le.normal=ye({},le),le.gfm=ye({},le.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*|$)"}),le.gfm.nptable=ie(le.gfm.nptable).replace("hr",le.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",")|<(?:script|pre|style|!--)").replace("tag",le._tag).getRegex(),le.gfm.table=ie(le.gfm.table).replace("hr",le.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",")|<(?:script|pre|style|!--)").replace("tag",le._tag).getRegex(),le.pedantic=ye({},le.normal,{html:ie(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",le._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:ce,paragraph:ie(le.normal._paragraph).replace("hr",le.hr).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",le.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var me={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ce,tag:"^comment|^|^<[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:ce,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",me.punctuation=ie(me.punctuation).replace(/punctuation/g,me._punctuation).getRegex(),me._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",me._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",me.em.start=ie(me.em.start).replace(/punctuation/g,me._punctuation).getRegex(),me.em.middle=ie(me.em.middle).replace(/punctuation/g,me._punctuation).replace(/overlapSkip/g,me._overlapSkip).getRegex(),me.em.endAst=ie(me.em.endAst,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.em.endUnd=ie(me.em.endUnd,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.strong.start=ie(me.strong.start).replace(/punctuation/g,me._punctuation).getRegex(),me.strong.middle=ie(me.strong.middle).replace(/punctuation/g,me._punctuation).replace(/blockSkip/g,me._blockSkip).getRegex(),me.strong.endAst=ie(me.strong.endAst,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.strong.endUnd=ie(me.strong.endUnd,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.blockSkip=ie(me._blockSkip,"g").getRegex(),me.overlapSkip=ie(me._overlapSkip,"g").getRegex(),me._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,me._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,me._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])?)+(?![-_])/,me.autolink=ie(me.autolink).replace("scheme",me._scheme).replace("email",me._email).getRegex(),me._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,me.tag=ie(me.tag).replace("comment",le._comment).replace("attribute",me._attribute).getRegex(),me._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,me._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,me._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,me.link=ie(me.link).replace("label",me._label).replace("href",me._href).replace("title",me._title).getRegex(),me.reflink=ie(me.reflink).replace("label",me._label).getRegex(),me.reflinkSearch=ie(me.reflinkSearch,"g").replace("reflink",me.reflink).replace("nolink",me.nolink).getRegex(),me.normal=ye({},me),me.pedantic=ye({},me.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:ie(/^!?\[(label)\]\((.*?)\)/).replace("label",me._label).getRegex(),reflink:ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",me._label).getRegex()}),me.gfm=ye({},me.normal,{escape:ie(me.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&&(we="x"+we.toString(16)),ke+="&#"+we+";";return ke}var Ke=function(){function Ze(He){this.tokens=[],this.tokens.links=Object.create(null),this.options=He||ge,this.options.tokenizer=this.options.tokenizer||new Ae,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var we={block:ae.normal,inline:pe.normal};this.options.pedantic?(we.block=ae.pedantic,we.inline=pe.pedantic):this.options.gfm&&(we.block=ae.gfm,this.options.breaks?we.inline=pe.breaks:we.inline=pe.gfm),this.tokenizer.rules=we}Ze.lex=function(we,Le){var Pe=new Ze(Le);return Pe.lex(we)};var ke=Ze.prototype;return ke.lex=function(we){return we=we.replace(/\r\n|\r/g,` `).replace(/\t/g," "),this.blockTokens(we,this.tokens,!0),this.inline(this.tokens),this.tokens},ke.blockTokens=function(we,Le,Pe){Le===void 0&&(Le=[]),Pe===void 0&&(Pe=!0),we=we.replace(/^ +$/gm,"");for(var We,Xe,gt,Lt;we;){if(We=this.tokenizer.space(we)){we=we.substring(We.raw.length),We.type&&Le.push(We);continue}if(We=this.tokenizer.code(we,Le)){we=we.substring(We.raw.length),We.type?Le.push(We):(Lt=Le[Le.length-1],Lt.raw+=` `+We.raw,Lt.text+=` `+We.text);continue}if(We=this.tokenizer.fences(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.heading(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.nptable(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.hr(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.blockquote(we)){we=we.substring(We.raw.length),We.tokens=this.blockTokens(We.text,[],Pe),Le.push(We);continue}if(We=this.tokenizer.list(we)){for(we=we.substring(We.raw.length),gt=We.items.length,Xe=0;Xe0)for(;(en=this.tokenizer.rules.inline.reflinkSearch.exec(Lt))!=null;)Zt.includes(en[0].slice(en[0].lastIndexOf("[")+1,-1))&&(Lt=Lt.slice(0,en.index)+"["+"a".repeat(en[0].length-2)+"]"+Lt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(en=this.tokenizer.rules.inline.blockSkip.exec(Lt))!=null;)Lt=Lt.slice(0,en.index)+"["+"a".repeat(en[0].length-2)+"]"+Lt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;we;){if(gt=this.tokenizer.escape(we)){we=we.substring(gt.raw.length),Le.push(gt);continue}if(gt=this.tokenizer.tag(we,Pe,We)){we=we.substring(gt.raw.length),Pe=gt.inLink,We=gt.inRawBlock,Le.push(gt);continue}if(gt=this.tokenizer.link(we)){we=we.substring(gt.raw.length),gt.type==="link"&&(gt.tokens=this.inlineTokens(gt.text,[],!0,We)),Le.push(gt);continue}if(gt=this.tokenizer.reflink(we,this.tokens.links)){we=we.substring(gt.raw.length),gt.type==="link"&&(gt.tokens=this.inlineTokens(gt.text,[],!0,We)),Le.push(gt);continue}if(gt=this.tokenizer.strong(we,Lt,Xe)){we=we.substring(gt.raw.length),gt.tokens=this.inlineTokens(gt.text,[],Pe,We),Le.push(gt);continue}if(gt=this.tokenizer.em(we,Lt,Xe)){we=we.substring(gt.raw.length),gt.tokens=this.inlineTokens(gt.text,[],Pe,We),Le.push(gt);continue}if(gt=this.tokenizer.codespan(we)){we=we.substring(gt.raw.length),Le.push(gt);continue}if(gt=this.tokenizer.br(we)){we=we.substring(gt.raw.length),Le.push(gt);continue}if(gt=this.tokenizer.del(we)){we=we.substring(gt.raw.length),gt.tokens=this.inlineTokens(gt.text,[],Pe,We),Le.push(gt);continue}if(gt=this.tokenizer.autolink(we,xe)){we=we.substring(gt.raw.length),Le.push(gt);continue}if(!Pe&&(gt=this.tokenizer.url(we,xe))){we=we.substring(gt.raw.length),Le.push(gt);continue}if(gt=this.tokenizer.inlineText(we,We,Me)){we=we.substring(gt.raw.length),Xe=gt.raw.slice(-1),Le.push(gt);continue}if(we){var xt="Infinite loop on byte: "+we.charCodeAt(0);if(this.options.silent){console.error(xt);break}else throw new Error(xt)}}return Le},Q(Ze,null,[{key:"rules",get:function(){return{block:ae,inline:pe}}}]),Ze}(),et=M.defaults,he=H.cleanUrl,Se=H.escape,Ue=function(){function Ze(He){this.options=He||et}var ke=Ze.prototype;return ke.code=function(we,Le,Pe){var We=(Le||"").match(/\S*/)[0];if(this.options.highlight){var Xe=this.options.highlight(we,We);Xe!=null&&Xe!==we&&(Pe=!0,we=Xe)}return We?'
    '+(Pe?we:Se(we,!0))+`
    `:"
    "+(Pe?we:Se(we,!0))+`
    `},ke.blockquote=function(we){return`
    `+we+`
    `},ke.html=function(we){return we},ke.heading=function(we,Le,Pe,We){return this.options.headerIds?"'+we+" `:""+we+" `},ke.hr=function(){return this.options.xhtml?`
    `:`
    `},ke.list=function(we,Le,Pe){var We=Le?"ol":"ul",Xe=Le&&Pe!==1?' start="'+Pe+'"':"";return"<"+We+Xe+`> `+we+" `},ke.listitem=function(we){return"
  • "+we+`
  • `},ke.checkbox=function(we){return" "},ke.paragraph=function(we){return"

    "+we+`

    `},ke.table=function(we,Le){return Le&&(Le=""+Le+""),` `+we+` `+Le+`
    `},ke.tablerow=function(we){return` `+we+` `},ke.tablecell=function(we,Le){var Pe=Le.header?"th":"td",We=Le.align?"<"+Pe+' align="'+Le.align+'">':"<"+Pe+">";return We+we+" `},ke.strong=function(we){return""+we+""},ke.em=function(we){return""+we+""},ke.codespan=function(we){return""+we+""},ke.br=function(){return this.options.xhtml?"
    ":"
    "},ke.del=function(we){return""+we+""},ke.link=function(we,Le,Pe){if(we=he(this.options.sanitize,this.options.baseUrl,we),we===null)return Pe;var We='",We},ke.image=function(we,Le,Pe){if(we=he(this.options.sanitize,this.options.baseUrl,we),we===null)return Pe;var We=''+Pe+'":">",We},ke.text=function(we){return we},Ze}(),Ne=function(){function Ze(){}var ke=Ze.prototype;return ke.strong=function(we){return we},ke.em=function(we){return we},ke.codespan=function(we){return we},ke.del=function(we){return we},ke.html=function(we){return we},ke.text=function(we){return we},ke.link=function(we,Le,Pe){return""+Pe},ke.image=function(we,Le,Pe){return""+Pe},ke.br=function(){return""},Ze}(),ct=function(){function Ze(){this.seen={}}var ke=Ze.prototype;return ke.slug=function(we){var Le=we.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Le)){var Pe=Le;do this.seen[Pe]++,Le=Pe+"-"+this.seen[Pe];while(this.seen.hasOwnProperty(Le))}return this.seen[Le]=0,Le},Ze}(),ft=M.defaults,Ot=H.unescape,dt=function(){function Ze(He){this.options=He||ft,this.options.renderer=this.options.renderer||new Ue,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ne,this.slugger=new ct}Ze.parse=function(we,Le){var Pe=new Ze(Le);return Pe.parse(we)};var ke=Ze.prototype;return ke.parse=function(we,Le){Le===void 0&&(Le=!0);var Pe="",We,Xe,gt,Lt,en,Zt,xt,Ct,mt,Je,Qe,Oe,je,St,bt,Dt,Qt,_t,Gt=we.length;for(We=0;We0&&bt.tokens[0].type==="text"?(bt.tokens[0].text=_t+" "+bt.tokens[0].text,bt.tokens[0].tokens&&bt.tokens[0].tokens.length>0&&bt.tokens[0].tokens[0].type==="text"&&(bt.tokens[0].tokens[0].text=_t+" "+bt.tokens[0].tokens[0].text)):bt.tokens.unshift({type:"text",text:_t}):St+=_t),St+=this.parse(bt.tokens,je),mt+=this.renderer.listitem(St,Qt,Dt);Pe+=this.renderer.list(mt,Qe,Oe);continue}case"html":{Pe+=this.renderer.html(Je.text);continue}case"paragraph":{Pe+=this.renderer.paragraph(this.parseInline(Je.tokens));continue}case"text":{for(mt=Je.tokens?this.parseInline(Je.tokens):Je.text;We+1An error occurred:

    "+ze(gt.message+"",!0)+"
    ";throw gt}}ut.options=ut.setOptions=function(Ze){return Ut(ut.defaults,Ze),Et(ut.defaults),ut},ut.getDefaults=Ve,ut.defaults=Rt,ut.use=function(Ze){var ke=Ut({},Ze);if(Ze.renderer&&function(){var we=ut.defaults.renderer||new Ue,Le=function(Xe){var gt=we[Xe];we[Xe]=function(){for(var Lt=arguments.length,en=new Array(Lt),Zt=0;Zt`,triples:"",explode:"[]{}"},I=Z.Pos;Z.defineOption("autoCloseBrackets",!1,function(i,c,d){d&&d!=Z.Init&&(i.removeKeyMap(_),i.state.closeBrackets=null),c&&(O(k(c,"pairs")),i.state.closeBrackets=c,i.addKeyMap(_))});function k(i,c){return c=="pairs"&&typeof i=="string"?i:typeof i=="object"&&i[c]!=null?i[c]:Q[c]}var _={Backspace:n,Enter:p};function O(i){for(var c=0;c=0;o--){var E=f[o].head;i.replaceRange("",I(E.line,E.ch-1),I(E.line,E.ch+1),"+delete")}}function p(i){var c=T(i),d=c&&k(c,"explode");if(!d||i.getOption("disableInput"))return Z.Pass;for(var f=i.listSelections(),o=0;o0;return{anchor:new I(i.anchor.line,i.anchor.ch+(c?-1:1)),head:new I(i.head.line,i.head.ch+(c?1:-1))}}function t(i,c){var d=T(i);if(!d||i.getOption("disableInput"))return Z.Pass;var f=k(d,"pairs"),o=f.indexOf(c);if(o==-1)return Z.Pass;for(var u=k(d,"closeBefore"),E=k(d,"triples"),R=f.charAt(o+1)==c,w=i.listSelections(),P=o%2==0,C,b=0;b=0&&i.getRange(h,I(h.line,h.ch+3))==c+c+c?m="skipThree":m="skip";else if(R&&h.ch>1&&E.indexOf(c)>=0&&i.getRange(I(h.line,h.ch-2),h)==c+c){if(h.ch>2&&/\bstring/.test(i.getTokenTypeAt(I(h.line,h.ch-2))))return Z.Pass;m="addFour"}else if(R){var g=h.ch==0?" ":i.getRange(I(h.line,h.ch-1),h);if(!Z.isWordChar(x)&&g!=c&&!Z.isWordChar(g))m="both";else return Z.Pass}else if(P&&(x.length===0||/\s/.test(x)||u.indexOf(x)>-1))m="both";else return Z.Pass;if(!C)C=m;else if(C!=m)return Z.Pass}var y=o%2?f.charAt(o-1):c,U=o%2?c:f.charAt(o+1);i.operation(function(){if(C=="skip")i.execCommand("goCharRight");else if(C=="skipThree")for(var N=0;N<3;N++)i.execCommand("goCharRight");else if(C=="surround"){for(var S=i.getSelections(),N=0;N0&&($.percent=$.loaded/$.total*100),H.onProgress($)});var B=new FormData;H.data&&Object.keys(H.data).forEach(function(K){var $=H.data[K];if(Array.isArray($)){$.forEach(function(te){B.append(K+"[]",te)});return}B.append(K,H.data[K])}),H.file instanceof Blob?B.append(H.filename,H.file,H.file.name):B.append(H.filename,H.file),F.onerror=function($){H.onError($)},F.onload=function(){return F.status<200||F.status>=300?H.onError(_(H,F),O(F)):H.onSuccess(O(F),F)},F.open(H.method,H.action,!0),H.withCredentials&&"withCredentials"in F&&(F.withCredentials=!0);var z=H.headers||{};return z["X-Requested-With"]!==null&&F.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(z).forEach(function(K){z[K]!==null&&F.setRequestHeader(K,z[K])}),F.send(B),{abort:function(){F.abort()}}}var T=+new Date,n=0;function p(){return"rc-upload-"+T+"-"+ ++n}function a(H,F){return H.indexOf(F,H.length-F.length)!==-1}var t=function(H,F){if(H&&F){var B=Array.isArray(F)?F:F.split(","),z=H.name||"",K=H.type||"",$=K.replace(/\/.*$/,"");return B.some(function(te){var fe=te.trim();return fe.charAt(0)==="."?a(z.toLowerCase(),fe.toLowerCase()):/\/\*$/.test(fe)?$===fe.replace(/\/.*$/,""):K===fe})}return!0};function A(H,F){var B=H.createReader(),z=[];function K(){B.readEntries(function($){var te=Array.prototype.slice.apply($);z=z.concat(te);var fe=!te.length;fe?F(z):K()})}K()}var l=function(F,B,z){var K=function $(te,fe){fe=fe||"",te.isFile?te.file(function(Ae){z(Ae)&&(te.fullPath&&!Ae.webkitRelativePath&&(Object.defineProperties(Ae,{webkitRelativePath:{writable:!0}}),Ae.webkitRelativePath=te.fullPath.replace(/^\//,""),Object.defineProperties(Ae,{webkitRelativePath:{writable:!1}})),B([Ae]))}):te.isDirectory&&A(te,function(Ae){Ae.forEach(function(ce){$(ce,""+fe+te.name+"/")})})};F.forEach(function($){K($.webkitGetAsEntry())})},i=l,c=Object.assign||function(H){for(var F=1;F=0)continue;if(!Object.prototype.hasOwnProperty.call(H,z))continue;B[z]=H[z]}return B}function E(H,F){if(!(H instanceof F))throw new TypeError("Cannot call a class as a function")}function R(H,F){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:H}function w(H,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);H.prototype=Object.create(F&&F.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(H,F):H.__proto__=F)}var P=function(F){return Object.keys(F).reduce(function(B,z){return(z.substr(0,5)==="data-"||z.substr(0,5)==="aria-"||z==="role")&&(B[z]=F[z]),B},{})},C=function(H){w(F,H);function F(){var B,z,K,$;E(this,F);for(var te=arguments.length,fe=Array(te),Ae=0;Ae3&&(T=v.call(T,1));for(var p=O.length,a=0;a4&&(T=v.call(T,1,T.length-1));for(var p=T[T.length-1],a=O.length,t=0;tthis._ux||d(R-this._yi)>this._uy||this._len<5;return this.addData(M.L,E,R),this._ctx&&w&&(this._needsDash()?this._dashedLineTo(E,R):this._ctx.lineTo(E,R)),w&&(this._xi=E,this._yi=R),this},bezierCurveTo:function(E,R,w,P,C,b){return this.addData(M.C,E,R,w,P,C,b),this._ctx&&(this._needsDash()?this._dashedBezierTo(E,R,w,P,C,b):this._ctx.bezierCurveTo(E,R,w,P,C,b)),this._xi=C,this._yi=b,this},quadraticCurveTo:function(E,R,w,P){return this.addData(M.Q,E,R,w,P),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(E,R,w,P):this._ctx.quadraticCurveTo(E,R,w,P)),this._xi=w,this._yi=P,this},arc:function(E,R,w,P,C,b){return this.addData(M.A,E,R,w,w,P,C-P,0,b?0:1),this._ctx&&this._ctx.arc(E,R,w,P,C,b),this._xi=l(C)*w+E,this._yi=i(C)*w+R,this},arcTo:function(E,R,w,P,C){return this._ctx&&this._ctx.arcTo(E,R,w,P,C),this},rect:function(E,R,w,P){return this._ctx&&this._ctx.rect(E,R,w,P),this.addData(M.R,E,R,w,P),this},closePath:function(){this.addData(M.Z);var E=this._ctx,R=this._x0,w=this._y0;return E&&(this._needsDash()&&this._dashedLineTo(R,w),E.closePath()),this._xi=R,this._yi=w,this},fill:function(E){E&&E.fill(),this.toStatic()},stroke:function(E){E&&E.stroke(),this.toStatic()},setLineDash:function(E){if(E instanceof Array){this._lineDash=E,this._dashIdx=0;for(var R=0,w=0;wR.length&&(this._expandData(),R=this.data);for(var w=0;w0&&y<=E||m<0&&y>=E||m===0&&(x>0&&U<=R||x<0&&U>=R);){if(H=this._dashIdx,N=C[H],y+=m*N,U+=x*N,this._dashIdx=(H+1)%S,m>0&&ys||x>0&&Uh)continue;b[H%2?"moveTo":"lineTo"](m>=0?t(y,E):A(y,E),x>=0?t(U,R):A(U,R))}m=y-E,x=U-R,this._dashOffset=-c(m*m+x*x)},_dashedBezierTo:function(E,R,w,P,C,b){var s=this._dashSum,h=this._dashOffset,m=this._lineDash,x=this._ctx,g=this._xi,y=this._yi,U,N,S,H=Z.cubicAt,F=0,B=this._dashIdx,z=m.length,K,$,te=0;for(h<0&&(h=s+h),h%=s,U=0;U<1;U+=.1)N=H(g,E,w,C,U+.1)-H(g,E,w,C,U),S=H(y,R,P,b,U+.1)-H(y,R,P,b,U),F+=c(N*N+S*S);for(;Bh);B++);for(U=(te-h)/F;U<=1;)K=H(g,E,w,C,U),$=H(y,R,P,b,U),B%2?x.moveTo(K,$):x.lineTo(K,$),U+=m[B]/F,B=(B+1)%z;B%2!==0&&x.lineTo(C,b),N=C-K,S=b-$,this._dashOffset=-c(N*N+S*S)},_dashedQuadraticTo:function(E,R,w,P){var C=w,b=P;w=(w+2*E)/3,P=(P+2*R)/3,E=(this._xi+2*E)/3,R=(this._yi+2*R)/3,this._dashedBezierTo(E,R,w,P,C,b)},toStatic:function(){var E=this.data;E instanceof Array&&(E.length=this._len,f&&(this.data=new Float32Array(E)))},getBoundingRect:function(){T[0]=T[1]=p[0]=p[1]=Number.MAX_VALUE,n[0]=n[1]=a[0]=a[1]=-Number.MAX_VALUE;for(var E=this.data,R=0,w=0,P=0,C=0,b=0;bm||d(h-b)>x||y===g-1)&&(E.lineTo(s,h),C=s,b=h);break;case M.C:E.bezierCurveTo(R[y++],R[y++],R[y++],R[y++],R[y++],R[y++]),C=R[y-2],b=R[y-1];break;case M.Q:E.quadraticCurveTo(R[y++],R[y++],R[y++],R[y++]),C=R[y-2],b=R[y-1];break;case M.A:var N=R[y++],S=R[y++],H=R[y++],F=R[y++],B=R[y++],z=R[y++],K=R[y++],$=R[y++],te=H>F?H:F,fe=H>F?1:H/F,Ae=H>F?F/H:1,ce=Math.abs(H-F)>.001,ie=B+z;ce?(E.translate(N,S),E.rotate(K),E.scale(fe,Ae),E.arc(0,0,te,B,ie,1-$),E.scale(1/fe,1/Ae),E.rotate(-K),E.translate(-N,-S)):E.arc(N,S,te,B,ie,1-$),y===1&&(w=l(B)*H+N,P=i(B)*F+S),C=l(ie)*H+N,b=i(ie)*F+S;break;case M.R:w=C=R[y],P=b=R[y+1],E.rect(R[y++],R[y++],R[y++],R[y++]);break;case M.Z:E.closePath(),C=w,b=P}}}},o.CMD=M;var u=o;Be.exports=u},ItGF:function(Be,ee){var v={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?v={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?v={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?v={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:v=Q(navigator.userAgent);var Z=v;function Q(I){var k={},_={},O=I.match(/Firefox\/([\d.]+)/),M=I.match(/MSIE\s([\d.]+)/)||I.match(/Trident\/.+?rv:(([\d.]+))/),T=I.match(/Edge\/([\d.]+)/),n=/micromessenger/i.test(I);return O&&(_.firefox=!0,_.version=O[1]),M&&(_.ie=!0,_.version=M[1]),T&&(_.edge=!0,_.version=T[1]),n&&(_.weChat=!0),{browser:_,os:k,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!_.ie&&!_.edge,pointerEventsSupported:"onpointerdown"in window&&(_.edge||_.ie&&_.version>=11),domSupported:typeof document!="undefined"}}Be.exports=Z},IxHN:function(Be,ee,v){"use strict";var Z=v("q1tI"),Q=v.n(Z),I=v("07cG"),k=v.n(I);ee.a=function(_){var O=_.message,M=_.className,T=_.children,n=_.style,p=n===void 0?{}:n;return Q.a.createElement("div",{className:"".concat(k.a.idsRingWrapper," ").concat(M)},Q.a.createElement("div",{className:k.a.ldsRing},Q.a.createElement("div",null),Q.a.createElement("div",null),Q.a.createElement("div",null),Q.a.createElement("div",null)),O?Q.a.createElement("p",{style:p},O):null,T)}},JTSX:function(Be,ee,v){Be.exports={flex_box_center:"flex_box_center___2jvp9",flex_space_between:"flex_space_between___YQ3n3",flex_box_vertical_center:"flex_box_vertical_center___lMDl8",flex_box_center_end:"flex_box_center_end___14pJI",flex_box_column:"flex_box_column___3MPcr",banner:"banner___1CNID",wrp:"wrp___2yuj2",titleWrap:"titleWrap___3rqyq",titleFlexEnd:"titleFlexEnd___3qeo-",title:"title___1sz3A",titleIcon:"titleIcon___oKhIk",contentWrap:"contentWrap___2hSfm",verticalLine:"verticalLine___1hWY5",contentLeftWrap:"contentLeftWrap___3cPFj",openCourseTag:"openCourseTag___2nNhU",ratingWrap:"ratingWrap___QZ8mo",ratingTitle:"ratingTitle___1sMbV",rating:"rating___tJ9xt",popoverWrap:"popoverWrap___16eNE",popverLeft:"popverLeft___1EzpC",popoverRight:"popoverRight___1dYpr",popverScore:"popverScore___2QZ2F",popoverRateWrap:"popoverRateWrap___2O45Q",popoverProgress:"popoverProgress___2jOeY",button:"button___1WaHd",operationWrap:"operationWrap___3_Xdi",forkWrap:"forkWrap___36Nap",fork:"fork___1AtQN",forkNum:"forkNum___3b1MG",buttonTransparent:"buttonTransparent___INxBh",buttonLearnStatistics:"buttonLearnStatistics___350-U",publishPopverWrap:"publishPopverWrap___2uMcI",colorFF6802:"colorFF6802___W5JBU",w140:"w140___20QZ6",nav:"nav___UcDQM",navLeft:"navLeft___1IpLj",navContent:"navContent___g-IkK",flexRow:"flexRow___2Srtn",navRight:"navRight___1wX_D",navLeftIcon:"navLeftIcon___33sNL",colorOrange:"colorOrange___1lWTV",contentItem:"contentItem___3BAmt",contentItemTitle:"contentItemTitle___3X1lp",contentItemText:"contentItemText___2Px0w",classButton:"classButton___1uAy6",bg28e:"bg28e___34ke7",bgGray:"bgGray___1wX3O"}},JWDV:function(Be,ee,v){Be.exports=v.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return Z});var Z;(function(Q){function I(u){return u&&typeof u=="object"&&typeof u[Symbol.iterator]=="function"}Q.is=I;const k=Object.freeze([]);function _(){return k}Q.empty=_;function*O(u){yield u}Q.single=O;function M(u){return u||k}Q.from=M;function T(u){return!u||u[Symbol.iterator]().next().done===!0}Q.isEmpty=T;function n(u){return u[Symbol.iterator]().next().value}Q.first=n;function p(u,E){for(const R of u)if(E(R))return!0;return!1}Q.some=p;function a(u,E){for(const R of u)if(E(R))return R;return}Q.find=a;function*t(u,E){for(const R of u)E(R)&&(yield R)}Q.filter=t;function*A(u,E){let R=0;for(const w of u)yield E(w,R++)}Q.map=A;function*l(...u){for(const E of u)for(const R of E)yield R}Q.concat=l;function*i(u){for(const E of u)for(const R of E)yield R}Q.concatNested=i;function c(u,E,R){let w=R;for(const P of u)w=E(w,P);return w}Q.reduce=c;function*d(u,E,R=u.length){for(E<0&&(E+=u.length),R<0?R+=u.length:R>u.length&&(R=u.length);Ew===P){const w=u[Symbol.iterator](),P=E[Symbol.iterator]();for(;;){const C=w.next(),b=P.next();if(C.done!==b.done)return!1;if(C.done)return!0;if(!R(C.value,b.value))return!1}}Q.equals=o})(Z||(Z={}))},JeFH:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvWF6E04BiYxxUEQK0lcUe/BNx9qlLQFUKIt38mOVIAnA6gG4AugM104Qe0ajo1gA+FEHTwVhc96CoAbzy9txJP7KpAPKWKWFRQrCawZEoHZHnN4yEFVbX65DZeIKW8DVI+DiHimrtVSnlCCDFUCHGihc+TYJl7jwf1DlOW5KHWltCiLqSCfndqIm7vlwDLsi41DOP9Nm6z1cullL0BLATAP1tavxZCvNTqw5iDpJSnwrZ2rC60tKvXFTayOCc/AXGGwNIpHdDRCOZA9/QXQtASfrIlpdQg5TYpxMDXDlVhf7mJ/DoLZQEbNabEnf0TMbVTLL+PCHJZy15kL5EQk6ctK8De8mATWaige09LxC19lYIuMQxj7k8mROhBUsrbAfydOW/pd3XIr7VQXG+jImjjtHYePHlmMmDb7wpdv/yHfDcV5Idt7c0NalmTl+Sh2pTh8OYqiF5FBXXwWEeh6acKIWp+yMPbco2U9icS4pyJSwuwsywQDrM1lsQDA5JwW78EPu4iIcS8lhUkHwfw+1s3l2LesRrE6o2jARV032mJuLlv689qy94bRRwpL2YIe3F/Fe7bVqYiEqMs82CvBAOrpmQA0vpUaAZry1ZXCMXZS22ISVM/L8CBSlPFbnfRg/53FCQfAXD/7VtKMTen4XB5qDf38eO+AUm0+usMw3j1exR0GYB3nttXicd2VSDu/0ZB/WCZuzaU2NqMNYUKZHFRQR3jdKyclgGvZa0XhjGqVe2EYbZlzYGm3fmbjSX47EQtYiIEaxTiPNa3IQ/6SUOc46nyUgDvRh8uFXRlNx+eGKKg8d1CiDktCRYIBM7wGPrW5flBce36IgVuIldkiANwsRDiox9ySG25RkqZEIpInRiRGKKFAGwJtPNqWD4tE8nC3AXNOEMIYbX2bLcOugbA63N2V+CpvZWNLK8RSPCYx6ErFPdzgIRBsK2tn+ebuG5Dw+HWWRLnZsXhxWEERnhMCHH/93hQMqzggaP1RuovPs9TsDpSRZEgAcAvhRAftHZAP+ZzadurLCHGTl5agMNVTkRyz3HxlA7o7LVyoOk/KJe7ChoKyE0Lj9fhpk0ljT0oBLs/m9QBp8SYuSEF/eQwW0oZDyuYc7BWb3/usjyY0qmiA7bEqLQYvD0mlWf1ohDixu9RkICUGwJCDJu4OB/HaixERrn/RZj9NIDbZq4vxvLcOnWeVBBR5fzsTPT3WaXQPb2FEEWtGYBSUHV1dYd4r+fA7hrNf8HyfBCgu5bHB//UhaqUkoVIOoBhAPrRBmzbLtSAWyul1mnSkjzk19nqcIO2xMBkLxZOSCP6eU/oOvNMRI6UQgjBbaolpXwZwHUz1hRhXWF9ozBHBf2UhaqUMgYA+T3Wb8Nh2+2haWUASDBf/PDX5XjpYFU4ItHo3hmThuFJMgiPt4sQIu/7ZOFnrgcZsO3tFdBOzV6Up2BhZKFKzX+cnYFTfXZFdV2gt9/v/1FUjySdBDkLltUVUqbD8BjRFsRYfeGqQmwvCSiYTKG6+XR8PjkDBuQ2CLEItt0NQrSDgAe2TIG0bWh6IYTYzLINwB/u31qG149UNwrXVND1Pf340xlJ/NofTfXU19f39Xq9s2Gb/WHLTjA8ityLXm8crsa928rCe6i3JF4a3h5TM3UJ3fMEbDsTQhB3xwOaH9KKhRAVEPpRAK8KIdaEQ7S07XkQ4oJzlxcqmBtZgfPQPhiXjiGJdn2IizvWmmtGfy6lZFW9RwKxJC4Lak10idPw6M5yFNbb+GXXeFzcNV7ddsvmEnx8rFbBZKKf9FgNi7LTkRLTUHrSy/k3opWgDSRqzt8BnABkp1cPVeOB7eVNFBQBOO4RQjzZVjlCXsrcdUlREDhaaSIzVmDZd3X49EQtuvkN/On0JFU7rs6rw9Xri8NnSQN5cnA7XO6QtY0WQ0CpBcTrjoUBKCAb0aAgKWfT8m7cVIKFx53DcRfDzH9Gp2F0CiQML0HC/rYKpmgcK7hnY4kUV68rUjH53yPb456vSrG33MRV3X145uxk9di/7KrA0/scsELj8BsCn2WnI8unozJo48ZNpThYaeLBgYnYWFiPuTm1qgh8a0wqvJBFsILJK4ulPnNdUSNDI+C4oHMcnh2qAMd/CyEeaqscIQV9CuAXF64sxLqCekUd8bQe31WBjDgNyyZloFO8joMVJs5fUYiAdMAKEd0fByTiJqcOwz8PVOH1w1U4MyUGl54Shxs3l6qQPOesZIzLYItHnBGpoGvpVpGH426ervmv4e0xrRNDrhgshNjWVsEU/LTMfTlBvePUJXmqsv7nsBS8eaQaq/LrMSkzFm+Odto17x2twV1fliojoSKJguaPT0PfJI8SctLnBYoE/duZyYoxeOVQNXonGlg5NQMeKbfBtjKP1GkdiOSCIbDB51KOiR1i8dpI9T1/F0Lc0VY5Qgr6C4B7fr2xRBXE/9UlHqPSY3DP1jL4DIF549JwajuPYkKmLisI51N6ENn0+weoEKsMcfaucozJiFVsyTXrihXyZBg8t5MHEPrASAWNAbD6g6M1uCN0OO7m+WAexi9PUSFoLGPjjxLMNldYQh9PtmBPWQCzB7XDzrIg3jlag8EpHiwYn6YKu/UF9bhibTGMUMyiF707JhVnp3ph2sD0lYX4orgejw9uh5wqCy8erELfRAMrpmRAk3I5YPtroA9lPs0LgQ3ul4hwWGoM3h+bSsDxutB1GmWbl5TySgBv/m1PpTrg4WkxuKG3Hzdsckj+N0elYkxGjArPF6wsxI5SJ2XwHGd08+GvTk2Hlw86bMPZqTGKgmI4DNAZRrTHtEwD0IwBkQrqBjO4f0s5PJeuLmwCTx8+PQmzevn53POFECQD27yklH8D8NvrNhRj/rFaxSxz46y9uvsNLMpOQ5JXw+FKE+etKAzXMTzYV4a3x6SOTnS+bE0RluXW4bFB7VBYZ+Mf+yrRN8nAyikZENL6BEJUAtrl01cUYnvocHgfQzUtm+ESkB8LoV3YZiEcpDgYtvXVkrwgfrWhGF19BmYPSsJvNpWi0rTxzFnJ4XxKL1sUKv7pwdM6xeFfw1WIxYff1uCWLaUYlOzBg6cn4ep1xUqJLzUo6LRIBfnJBp8IGllTluaiNlQB80G86bd9E3DPaYqmv0YI8caPFGwmgNfo2k/srsDlp8Qr6/n91jKkxmjq4Dr79CahgbnjqQYPBhmPD3Nq8OczklAdlHhyTwX6JXlCCpLzIcQOAA+wplsQkU9p0V18uvI0XVqrhWaM+5FyJMMyD3xTr6VOXZoHQwhVSN/5ZamqvR6MyDN/+roc/wpB7UYeDCgjo1JoNGwiXrWuSHGhLSlIwLLWB3R9+ITF+ar76OIEKmhmD5/bibxTCEFPaPOSUp4FaW9ZeCKAK9cWIjszFtf38mPWphIFBOaOS1PJngfJ5LorhCb5/Q8NTMKveysPxj1fluLFA1UqxFF5j+wsR/8kD9ZOy2SIWwCHwnl99s4KPLu/gRlhqGwf49AticLeAaExn7ZKt0QLKqXkWa0L6vqIMZ/l43BVEO+NTsXsXRXYURpU3OEDpzt55pWDVXjwawdN0oO5zwUT0lTk2FJUjwtWFqFPoqFY7l+uLkKVaePVkak4p0NUiOPDpGW9BU2bcdGqQnxV3AC1eQjnd47D8w76mS2EuK/N2nFCQxos8+CROi3pmT3lGJcRi3GZMThQEYTf0NAtwQjDYoaOz79zqnAq6Na+CfiD48F4dl8l3v6mBvcPSFR55aUDVciM1/HyiPZU0GIIQVZ7Fa8hSnRJUwIO/j97W508P5xuaU5WaVkvQdOuZzTgc6/p4VP1I/dDUjQjTle3LT5Ri1kbHXaGhpcVr6tQ7vdoCuUxb9Eo7+yfgPu3laOo3sJ9A5MwJt3DQqIBxSkFSevPgPbHyDqE/67olvQYvD1a0S0vCyFm/UgFMe0vAHBOa/f/cVsZXjvsFJqKMO3uwxODneRKS9SEaJQnSeqSlARAmuVvsM0ja4tsjZ7q1nSN6Ra7HLpBuoX1RpuXlJKMxluhcqzF+1lwX7LaKSu4Rw6tUEHpcboqIUwpm5C6vFYA3wEYFD3Vo6B2dGhwkqsXn2Wn8VsWCE2b3maJQjdIy3oWmnbzoUoTu0sD4J8Mp2VBG+MzY1U9xPX8/ipVxFJBTK6/6BSHf4aSKwWl0tgrMm2pckCiV7iCPsueECwz51Cd3v6cz3PDvB6fy+v/MyYNo5Jhw/D2FUKw5d/mFQgEzvZ4PBtKA7bOsMYocLTKVF6UYGi4f2CiYq+P11j4xfICVAUdVpvjBJ9MSEP3BIdEoWyUg+iNy+fRVLiHo6Ah0QrKZu76z5Fqlbjd0MB7WXitmJoBr5QbhaaNaLNEroKkZKv3+ivWOkhMF05Di0ZwVmqMgtr8+8c5DsJhLUQPJpR9zyFMwVKAwIAWqLwJAt0SdLwxJg0+2NugaUMh7a8qpDYgmrpiuH5uaAqmdyYiFMOEQw+1eUkpR3IqjWiUYcqlxnig3Ne8cakYmhajCutpywuVEfIafv7h2FSckeLF8WoLszYWozhgKzaEi2TJY4OSMaFDDEzTHButIDabdq8sssQ16xoof35hokdg2bQOSBXBQ8Lw9mqzRA0Kuo1h6IHtZSAdE2kEGaR0JqarMECGYMba4jBhyuRKwpR10ltHqnHXV2WID6EY7o/UysppHZCpBQ/C8PRh11IKfdoUNiErzHBNRc8jFUNwYprmVI/Hs+THyCKl7MjWxs4qzXfhinwVwtzD5HfMGZKMy7rFK2WRcXDhPg3qjVGpGJsRg9waC5OXFaAiKMPhmt7E8uFXPX1sUJ4TraBUwsd9NVry+cvyQHjDC9xqfmF2Jnr7ZAU0/WYyF5ZlBXVdZ+uBtHkhgJLWUJGUcjyAFe+G2ILIBO4RAgsmpKJ3ogeHKkyct7IAAduxSCZXwvAEj8CSUOL1hhTkTh4tntwBXY3AMeGN6SKlfB7AjVeuLcaagrpwnHc6tAm4zxm9eoZgIiQiaT1WmoW5ublFHTt2/N62vpTSoJdWSW1g9uI8VY+5XsTvuK1vAn4fAjXXbyjGkhDgoQeTaiLlRDZl2rJCfFcbgZhNiQcGJuGGPgqxXhKtIC9sc0exbfSZuCgX5cGG+QTGblbgrFuaLCtILZZBEzmAthuatgXAJgC7opt7UsosWOb+rytF/EUr8xs11BTnNyoVozNiUFRnYeryQpTUO77PeM7kSnS0pSigilXG9EgD+nRSB/SMDeZB92ax+0p67O4vy/Du0eowt8jDu7RrPJ46y+H9Gi9m7WA9OH+uaQcgxVZo2kYAXzU3TSSl/A/Ht/5rdRE2FzW0NqiECzvH4x9Dne+4f1sZXncBjynxyKAkXNvTr8IzywnSVW5rnB70+9DkkRoNa7LFEB2TvSQfR6ut8HwCFXR1D78q9MgxsQ3AhMeDIyLJ8nnQJUFHsoMunWWrIRNO4XDQYzWngVQNIe2vK0P5gUx2ZL311JBkXNotXiXPc1YUKhDBz0kiMrn2SDAUPD1vRUGYZ6MH8WvnT8xEvzirCIansxr9Bd5+anclntxbEQ6HlKN/Oy+u6BavWHQeJnOyz9CQGqujY7yBLgkecIgozJ1bZiU0fSOEmA/gUyHEtxRPSnkngDkPbCvHq4cb+j7MmUNDlBIP+B97SQk5I200kDv7JeAuZzYPl68pwvqIvlXU5zObKsiy3oCmXXXxKvJdgUYQkBqnYoii3EUrpiAMN0keTYUi4nomyKEZcch05+5tcz804zXCdABPsKl2yaoibClusDxu7u7+ibijv8P2snDbVFQfhslMroNSvMirtVTiLQ84YcWN//MmZGCAzy6F4ekCgHPmq9/5pgZ3R9RCym4kFI0ULQc/Y5jlQTIf9kr04Mz2XgzPiMOApJDlUVm6MS8YDD7r8XiINFa/d7RGuOQun+H2sBiSmRvfP1qjWAYCnqiiHzdvLlG0l9s9iKr5rm+qIOlM1xCZfBLVdmgmJoT/ycX5lnSUyAezah+c4sW5WfGY2iUOPgVx7G+gaXyFZURkrcMHcXNXdPPhLyEy8abNJVgQ2jyN4/WR7RUUJ2SdtrxAQVh6l2svH43PwOl+uxyGh72nNNjmvpWFtrhmXWGTWqM1WYhc6W18NsEIPZdM+PSufvTya4AVtKF7lsK2sr8utz00aNdQ3AERNySvyqvDNaG+ED32vKw4vODMWOCh0ESvm4sV493bj/sHKibixuYUdAOAF6Lbtc0JFIlcmvvchcG8jo2sy06Jx8zeCfCFYke0dTOsTciMxb9HOW0HjiO/dMgJHRTs6RAJGc0Su8Yxd3w6BiXKSuieHirxm8HDe2q0xOlRbfwmYT0CgbUkJ5VFKEwyl3u8oU8CBrRzapnSehtTlxegIMScu6Dq4/FpiiPcWRoE2RlmUxrayLQYvBMqGUj0so8UqaAbeoWpojuaU9D5DOccvPtzqFBsbtOM26xhyoO2StbMEU0eFnEjvYqxmXCZMHdkeoxqa7PKdhc3f1o7L+YTTgsWq5V4dKez+Wg+jiTjyvw6lQe5qDR2fc9MlNUwPD0BFMO29hVYeveJi3OV10VNYYW/l8+vNKkAp6qPGqdrJD4Pn8aSYAjF7nOgkgn+stVF2BgBFKhQth0IeFjvqGLVlGCEcUqGdAX93/3GKRkiFeS25W3bvrc5BZ0NyM3zcupw65aSJtOZ7mEwRr8wNEX1c5Z8V4ttJQGF+qIH1qOVSyUxIb86IgUDkr3IXpoftjx3uI+MBS2VdPxvv2iI3bf2ScAfHHiMO74oxQffNgw48t73xqbj7CS7FoaX7zB9J01zY0DXh41flN8IykbuiV5Lqp9Tn5wJZIf0WLXDn5IiakmpjA40mut6+vDIoHaNvJ33Rno8cyVzZm6t81wW/Qx/CR5NFevkHd0ZPj7zVz39iqlnBGxOQd3ZF9pQCmPGmoIw/IsUyn0Dgl/S1e+4OamOJSfqlJD7Kkz1by1ZIjcxOdTZvDTC8sLt7YnpCmxExu7oZtdjO8rx3IHGEzPvjk3DsCRZF1LQCWnbH0GIC5ubs3DlIay9JwKYENZTSQuP1SqPYK0SPQDp3suQReiwYnK6Ipdd5oOfc78kc2/qk6A8k/0twmlGHRofzy4zTse24gAuWeNEESqD913bw1E6gEeaU1AKK+QDofk0WmZzoYskH2sWkqiRix7yRVFAdQpzqhvPpbnXEUGNSY/BW6NTG1meS2Z+NC4NA5I9qhN58aoiFbvJVU3uGItXRjj5iQz2wzsahkIYUt4Zm47h7WR4sEVKSV7uZhUO8xxmPHrR0i/uEo+nQ/MQkZ/nVJsKIr//bU2TQXxe5+6XHs9zohLckTUe9KyefjzseEIYTtMrvRoUpUWU+E2liXNXFKIuNGTJ+8iMk00g2m1OQSxWdxbZRm8Wq6QhmnNzh85oh8u6NZ5QIXTlLNjf91Y2mex0hWdTikPst/ZLULxaZIs9Eq19W+Vsntczdg9J8aqeEXNeJFfH51JBb49Jx4hkOwAjhm8B5kgp2RZ59M4vStUhRw/T8z4a1NntY/DBuNQmhsgcee/WMhURmosGBA0MjQuz05SXTF3mhDFeq1o0WXF4PoTWIuE0IwV5xbNSvYpc5dyCO+qmFNTdh8cc5v6pZvO6NM11AV0fOWFRPk5E0BCR1sUH3d43Ab8L0Rn8jNwS0R/Hj2itzT2c3tPDb+DDcWmqixqJcHh9ZPeU4YZwmuiI1trDr+PT7HR10Gvz63HVuoa5BSrorTHpGJksAzC8bCN868zhNWXnI+Wg5XcO0Uh+TmiGPOONQ9X4y+4K1cJuLsRxP/Tqv4eQJf9OApjhkddHd08f3F6OV0KIVPWwhrXHlE6xSt5zlheGR4R5rld392G2o6B/NK8g254LIS4i8thd1vQ9G94ZNcKkRlypnCNVZpO3CsKhzZJIi9Xx0vAUDGmvKlirPGjrfJ8nt9ZhFLhB9x0efgeti/PNZKzTYjUsmZiu6ivuiwMZbkihBb/ltBGCIQUdlVKy7/QJhzMeCnU1o0McrZmTOJ9mp6GLz1Dv8/x5RznmH69VRWtz0YP38JDZRAzxbWpMj/ex00tERtRK7yL7QWNlRGEbh0Uw5XpySDtc0d2nDI811JchUoDyX9XNh8edWvCF5hUk5XOcvKRFrA1ZRLRgbmh4dWQKnttXpV6fpBVHDjy691Agbur0ZA/+OiQZpyWzWwjONbAiunJGhOU5yMiP/z4jSVX6v95UonIRn8HD+mBMKrr4DQe6rnD6LG67Qs3uJUsTHhXiqKCz+eotK3WGmOZCHDfCZ88dm6qg9h+3l6mhlehXVyKNjAq9q38iZjkt+BO2bc/RNDw1L6c+jHzpmWkxDjtPg/oop0bVOxSYaeOWvn4FILhmbSjG4ojuccRw5cstKehBAH+6dUsp5kW8qxOpJB4eebgOcbqi0psLaS6lQgqI3NftpybB7zAmfHn3N7ZtX6tp2ov0vGdCg4pU5PSsOLzqzK6pxR81CNJrTaB9aFiY0JXexbEqV0Fvjk7D2BSYMLx80fmIlLIXrODedSVSvzLiXZ1oY6MVD2znwd4KE7Wm3fQtw1CByetGcMhlQJIaEwPkIUCws3oIZvDYvlo9gQM3zE0uA7F0UrpiIbiIbflfre30fZw5WuAPX5XhzW8cQleh1VPinTfxgH+3pKDf8E2C1tgEKoDJO9JruDGGG1oQc8yUjnG4rlcC+iTqpHlKoWlU/nMceJdSjgawhvnk42M1yIo3kBqroXeiF0NTlZftA+R+SMpix4PDj0KvghBZpo0uVNCByqCK+QpcjErD+BRuKIY56JDk/LcZPLCnRk+avjyv0UsB0Uri/Sw4Iw+EMjBSsBgelOLBzB5+nNfZfYXWfh/Q7uJvRvAHMyDlF3UQgx7dXoZYQ1NcXlqsgeyOsTTKenBWAjYhbxxs6YemG3B+EGQY5xo4ekbPZF7j/OEcR0FzW1IQmeCPommI5iyPnkQlURgqhxU26Y3JHeNwXhcfsuL4/p9pQTdIzfP9ngPuc6SU3AU7mo0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(Be,ee,v){Be.exports=v.p+"static/qrcode.2267e4d5.png"},K2GJ:function(Be,ee,v){var Z=v("fW2E"),Q=v("gut8"),I=Q.ContextCachedBy,k=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],_=function(t){this.extendFrom(t,!1)};function O(t,A,l){var i=A.x==null?0:A.x,c=A.x2==null?1:A.x2,d=A.y==null?0:A.y,f=A.y2==null?0:A.y2;A.global||(i=i*l.width+l.x,c=c*l.width+l.x,d=d*l.height+l.y,f=f*l.height+l.y),i=isNaN(i)?0:i,c=isNaN(c)?1:c,d=isNaN(d)?0:d,f=isNaN(f)?0:f;var o=t.createLinearGradient(i,d,c,f);return o}function M(t,A,l){var i=l.width,c=l.height,d=Math.min(i,c),f=A.x==null?.5:A.x,o=A.y==null?.5:A.y,u=A.r==null?.5:A.r;A.global||(f=f*i+l.x,o=o*c+l.y,u=u*d);var E=t.createRadialGradient(f,o,0,f,o,u);return E}_.prototype={constructor:_,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,A,l){var i=this,c=l&&l.style,d=!c||t.__attrCachedBy!==I.STYLE_BIND;t.__attrCachedBy=I.STYLE_BIND;for(var f=0;f0},extendFrom:function(t,A){if(t)for(var l in t)t.hasOwnProperty(l)&&(A===!0||(A===!1?!this.hasOwnProperty(l):t[l]!=null))&&(this[l]=t[l])},set:function(t,A){typeof t=="string"?this[t]=A:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,A,l){for(var i=A.type==="radial"?M:O,c=i(t,A,l),d=A.colorStops,f=0;f=0)continue;if(!Object.prototype.hasOwnProperty.call(t,i))continue;l[i]=t[i]}return l}function T(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function n(t,A){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:t}function p(t,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);t.prototype=Object.create(A&&A.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(t,A):t.__proto__=A)}var a=function(t){p(A,t);function A(l){T(this,A);var i=n(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,l));return i.scrollListener=i.scrollListener.bind(i),i.eventListenerOptions=i.eventListenerOptions.bind(i),i.mousewheelListener=i.mousewheelListener.bind(i),i}return Z(A,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var i=this.getParentElement(this.scrollComponent);i.scrollTop=i.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var i=!1,c={get passive(){i=!0}};try{document.addEventListener("test",null,c),document.removeEventListener("test",null,c)}catch(d){}return i}},{key:"eventListenerOptions",value:function(){var i=this.props.useCapture;return this.isPassiveSupported()&&(i={useCapture:this.props.useCapture,passive:!0}),i}},{key:"setDefaultLoader",value:function(i){this.defaultLoader=i}},{key:"detachMousewheelListener",value:function(){var i=window;this.props.useWindow===!1&&(i=this.scrollComponent.parentNode),i.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var i=window;this.props.useWindow===!1&&(i=this.getParentElement(this.scrollComponent)),i.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),i.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(i){var c=this.props.getScrollParent&&this.props.getScrollParent();return c!=null?c:i&&i.parentNode}},{key:"filterProps",value:function(i){return i}},{key:"attachScrollListener",value:function(){var i=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!i)return;var c=window;this.props.useWindow===!1&&(c=i),c.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),c.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),c.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(i){i.deltaY===1&&!this.isPassiveSupported()&&i.preventDefault()}},{key:"scrollListener",value:function(){var i=this.scrollComponent,c=window,d=this.getParentElement(i),f=void 0;if(this.props.useWindow){var o=document.documentElement||document.body.parentNode||document.body,u=c.pageYOffset!==void 0?c.pageYOffset:o.scrollTop;this.props.isReverse?f=u:f=this.calculateOffset(i,u)}else this.props.isReverse?f=d.scrollTop:f=i.scrollHeight-d.scrollTop-d.clientHeight;f1&&arguments[1]!==void 0?arguments[1]:1,He=Ne.length,we=0;we1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(B).map(function(K,$){if(!_.isValidElement(K)||!K.type)return null;var te=K.type.isSelectOptGroup,fe=K.key,Ae=K.props,ce=Ae.children,ie=Object(M.a)(Ae,["children"]);return z||!te?C(K):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(fe===null?$:fe,"__"),label:fe},ie),{},{options:b(ce)})}).filter(function(K){return K})}var s=v("2Qr1"),h=v("qNPg"),m=v("U8pU"),x=v("Kwbf"),g=v("WKfj");function y(B){var z=B.mode,K=B.options,$=B.children,te=B.backfill,fe=B.allowClear,Ae=B.placeholder,ce=B.getInputElement,ie=B.showSearch,ye=B.onSearch,le=B.defaultOpen,me=B.autoFocus,se=B.labelInValue,ge=B.value,ae=B.inputValue,pe=B.optionLabelProp,Me=z==="multiple"||z==="tags",xe=ie!==void 0?ie:Me||z==="combobox",Ke=K||b($);if(Object(x.a)(z!=="tags"||Ke.every(function(Ue){return!Ue.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),z==="tags"||z==="combobox"){var et=Ke.some(function(Ue){return Ue.options?Ue.options.some(function(Ne){return typeof("value"in Ne?Ne.value:Ne.key)=="number"}):typeof("value"in Ue?Ue.value:Ue.key)=="number"});Object(x.a)(!et,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(x.a)(z!=="combobox"||!pe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(x.a)(z==="combobox"||!te,"`backfill` only works with `combobox` mode."),Object(x.a)(z==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(x.b)(z!=="combobox"||!ce||!fe||!Ae,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ye&&!xe&&z!=="combobox"&&z!=="tags"&&Object(x.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(x.b)(!le||me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ge!=null){var he=Object(g.d)(ge);Object(x.a)(!se||he.every(function(Ue){return Object(m.a)(Ue)==="object"&&("key"in Ue||"value"in Ue)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(x.a)(!Me||Array.isArray(ge),"`value` should be array when `mode` is `multiple` or `tags`")}if($){var Se=null;Object(P.a)($).some(function(Ue){if(!_.isValidElement(Ue)||!Ue.type)return!1;var Ne=Ue.type;if(Ne.isSelectOption)return!1;if(Ne.isSelectOptGroup){var ct=Object(P.a)(Ue.props.children).every(function(ft){return!_.isValidElement(ft)||!Ue.type||ft.type.isSelectOption?!0:(Se=ft.type,!1)});return!ct}return Se=Ne,!0}),Se&&Object(x.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Se.displayName||Se.name||Se,"`.")),Object(x.a)(ae===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var U=y,N=Object(h.a)({prefixCls:"rc-select",components:{optionList:f},convertChildrenToData:b,flattenOptions:s.d,getLabeledValue:s.e,filterOptions:s.b,isValueDisabled:s.g,findValueOption:s.c,warningProps:U,fillOptionsWithMissingValue:s.a}),S=function(B){Object(I.a)(K,B);var z=Object(k.a)(K);function K(){var $;return Object(Z.a)(this,K),$=z.apply(this,arguments),$.selectRef=_.createRef(),$.focus=function(){$.selectRef.current.focus()},$.blur=function(){$.selectRef.current.blur()},$}return Object(Q.a)(K,[{key:"render",value:function(){return _.createElement(N,Object.assign({ref:this.selectRef},this.props))}}]),K}(_.Component);S.Option=u,S.OptGroup=R;var H=S,F=ee.c=H},M8RZ:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return n});var Z=v("fWQN"),Q=v("mtLc"),I=v("yKVA"),k=v("879j"),_=v("q1tI"),O=v.n(_),M=v("i8i4"),T=v.n(M),n=function(p){Object(I.a)(t,p);var a=Object(k.a)(t);function t(A){var l;Object(Z.a)(this,t),l=a.call(this,A);var i=window.document;return l.node=i.createElement("div"),i.body.appendChild(l.node),l}return Object(Q.a)(t,[{key:"render",value:function(){var l=this.props.children;return Object(M.createPortal)(l,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),t}(O.a.Component)},MEGo:function(Be,ee,v){var Z=v("4fz+"),Q=v("Dagg"),I=v("dqUG"),k=v("2fw6"),_=v("x6Kt"),O=v("rmlV"),M=v("yxFR"),T=v("y+Vt"),n=v("h7HQ"),p=v("1Jh7"),a=v("SKnc"),t=v("K2GJ"),A=v("Fofx"),l=v("NC18"),i=l.createFromString,c=v("bYtY"),d=c.isString,f=c.extend,o=c.defaults,u=c.trim,E=c.each,R=/[\s,]+/;function w(K){if(d(K)){var $=new DOMParser;K=$.parseFromString(K,"text/xml")}for(K.nodeType===9&&(K=K.firstChild);K.nodeName.toLowerCase()!=="svg"||K.nodeType!==1;)K=K.nextSibling;return K}function P(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}P.prototype.parse=function(K,$){$=$||{};var te=w(K);if(!te)throw new Error("Illegal svg");var fe=new Z;this._root=fe;var Ae=te.getAttribute("viewBox")||"",ce=parseFloat(te.getAttribute("width")||$.width),ie=parseFloat(te.getAttribute("height")||$.height);isNaN(ce)&&(ce=null),isNaN(ie)&&(ie=null),g(te,fe,null,!0);for(var ye=te.firstChild;ye;)this._parseNode(ye,fe),ye=ye.nextSibling;var le,me;if(Ae){var se=u(Ae).split(R);se.length>=4&&(le={x:parseFloat(se[0]||0),y:parseFloat(se[1]||0),width:parseFloat(se[2]),height:parseFloat(se[3])})}if(le&&ce!=null&&ie!=null&&(me=B(le,ce,ie),!$.ignoreViewBox)){var ge=fe;fe=new Z,fe.add(ge),ge.scale=me.scale.slice(),ge.position=me.position.slice()}return!$.ignoreRootClip&&ce!=null&&ie!=null&&fe.setClipPath(new _({shape:{x:0,y:0,width:ce,height:ie}})),{root:fe,width:ce,height:ie,viewBoxRect:le,viewBoxTransform:me}},P.prototype._parseNode=function(K,$){var te=K.nodeName.toLowerCase();te==="defs"?this._isDefine=!0:te==="text"&&(this._isText=!0);var fe;if(this._isDefine){var Ae=b[te];if(Ae){var ce=Ae.call(this,K),ie=K.getAttribute("id");ie&&(this._defs[ie]=ce)}}else{var Ae=C[te];Ae&&(fe=Ae.call(this,K,$),$.add(fe))}for(var ye=K.firstChild;ye;)ye.nodeType===1&&this._parseNode(ye,fe),ye.nodeType===3&&this._isText&&this._parseText(ye,fe),ye=ye.nextSibling;te==="defs"?this._isDefine=!1:te==="text"&&(this._isText=!1)},P.prototype._parseText=function(K,$){if(K.nodeType===1){var te=K.getAttribute("dx")||0,fe=K.getAttribute("dy")||0;this._textX+=parseFloat(te),this._textY+=parseFloat(fe)}var Ae=new I({style:{text:K.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});h($,Ae),g(K,Ae,this._defs);var ce=Ae.style.fontSize;ce&&ce<9&&(Ae.style.fontSize=9,Ae.scale=Ae.scale||[1,1],Ae.scale[0]*=ce/9,Ae.scale[1]*=ce/9);var ie=Ae.getBoundingRect();return this._textX+=ie.width,$.add(Ae),Ae};var C={g:function(K,$){var te=new Z;return h($,te),g(K,te,this._defs),te},rect:function(K,$){var te=new _;return h($,te),g(K,te,this._defs),te.setShape({x:parseFloat(K.getAttribute("x")||0),y:parseFloat(K.getAttribute("y")||0),width:parseFloat(K.getAttribute("width")||0),height:parseFloat(K.getAttribute("height")||0)}),te},circle:function(K,$){var te=new k;return h($,te),g(K,te,this._defs),te.setShape({cx:parseFloat(K.getAttribute("cx")||0),cy:parseFloat(K.getAttribute("cy")||0),r:parseFloat(K.getAttribute("r")||0)}),te},line:function(K,$){var te=new M;return h($,te),g(K,te,this._defs),te.setShape({x1:parseFloat(K.getAttribute("x1")||0),y1:parseFloat(K.getAttribute("y1")||0),x2:parseFloat(K.getAttribute("x2")||0),y2:parseFloat(K.getAttribute("y2")||0)}),te},ellipse:function(K,$){var te=new O;return h($,te),g(K,te,this._defs),te.setShape({cx:parseFloat(K.getAttribute("cx")||0),cy:parseFloat(K.getAttribute("cy")||0),rx:parseFloat(K.getAttribute("rx")||0),ry:parseFloat(K.getAttribute("ry")||0)}),te},polygon:function(K,$){var te=K.getAttribute("points");te&&(te=m(te));var fe=new n({shape:{points:te||[]}});return h($,fe),g(K,fe,this._defs),fe},polyline:function(K,$){var te=new T;h($,te),g(K,te,this._defs);var fe=K.getAttribute("points");fe&&(fe=m(fe));var Ae=new p({shape:{points:fe||[]}});return Ae},image:function(K,$){var te=new Q;return h($,te),g(K,te,this._defs),te.setStyle({image:K.getAttribute("xlink:href"),x:K.getAttribute("x"),y:K.getAttribute("y"),width:K.getAttribute("width"),height:K.getAttribute("height")}),te},text:function(K,$){var te=K.getAttribute("x")||0,fe=K.getAttribute("y")||0,Ae=K.getAttribute("dx")||0,ce=K.getAttribute("dy")||0;this._textX=parseFloat(te)+parseFloat(Ae),this._textY=parseFloat(fe)+parseFloat(ce);var ie=new Z;return h($,ie),g(K,ie,this._defs),ie},tspan:function(K,$){var te=K.getAttribute("x"),fe=K.getAttribute("y");te!=null&&(this._textX=parseFloat(te)),fe!=null&&(this._textY=parseFloat(fe));var Ae=K.getAttribute("dx")||0,ce=K.getAttribute("dy")||0,ie=new Z;return h($,ie),g(K,ie,this._defs),this._textX+=Ae,this._textY+=ce,ie},path:function(K,$){var te=K.getAttribute("d")||"",fe=i(te);return h($,fe),g(K,fe,this._defs),fe}},b={lineargradient:function(K){var $=parseInt(K.getAttribute("x1")||0,10),te=parseInt(K.getAttribute("y1")||0,10),fe=parseInt(K.getAttribute("x2")||10,10),Ae=parseInt(K.getAttribute("y2")||0,10),ce=new a($,te,fe,Ae);return s(K,ce),ce},radialgradient:function(K){}};function s(K,$){for(var te=K.firstChild;te;){if(te.nodeType===1){var fe=te.getAttribute("offset");fe.indexOf("%")>0?fe=parseInt(fe,10)/100:fe?fe=parseFloat(fe):fe=0;var Ae=te.getAttribute("stop-color")||"#000000";$.addColorStop(fe,Ae)}te=te.nextSibling}}function h(K,$){K&&K.__inheritedStyle&&($.__inheritedStyle||($.__inheritedStyle={}),o($.__inheritedStyle,K.__inheritedStyle))}function m(K){for(var $=u(K).split(R),te=[],fe=0;fe<$.length;fe+=2){var Ae=parseFloat($[fe]),ce=parseFloat($[fe+1]);te.push([Ae,ce])}return te}var x={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function g(K,$,te,fe){var Ae=$.__inheritedStyle||{},ce=$.type==="text";if(K.nodeType===1&&(S(K,$),f(Ae,F(K)),!fe)){for(var ie in x)if(x.hasOwnProperty(ie)){var ye=K.getAttribute(ie);ye!=null&&(Ae[x[ie]]=ye)}}var le=ce?"textFill":"fill",me=ce?"textStroke":"stroke";$.style=$.style||new t;var se=$.style;Ae.fill!=null&&se.set(le,U(Ae.fill,te)),Ae.stroke!=null&&se.set(me,U(Ae.stroke,te)),E(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(ge){var ae=ge==="lineWidth"&&ce?"textStrokeWidth":ge;Ae[ge]!=null&&se.set(ae,parseFloat(Ae[ge]))}),(!Ae.textBaseline||Ae.textBaseline==="auto")&&(Ae.textBaseline="alphabetic"),Ae.textBaseline==="alphabetic"&&(Ae.textBaseline="bottom"),Ae.textAlign==="start"&&(Ae.textAlign="left"),Ae.textAlign==="end"&&(Ae.textAlign="right"),E(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(ge){Ae[ge]!=null&&se.set(ge,Ae[ge])}),Ae.lineDash&&($.style.lineDash=u(Ae.lineDash).split(R)),se[me]&&se[me]!=="none"&&($[me]=!0),$.__inheritedStyle=Ae}var y=/url\(\s*#(.*?)\)/;function U(K,$){var te=$&&K&&K.match(y);if(te){var fe=u(te[1]),Ae=$[fe];return Ae}return K}var N=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function S(K,$){var te=K.getAttribute("transform");if(te){te=te.replace(/,/g," ");var fe=null,Ae=[];te.replace(N,function(le,me,se){Ae.push(me,se)});for(var ce=Ae.length-1;ce>0;ce-=2){var ie=Ae[ce],ye=Ae[ce-1];fe=fe||A.create();switch(ye){case"translate":ie=u(ie).split(R),A.translate(fe,fe,[parseFloat(ie[0]),parseFloat(ie[1]||0)]);break;case"scale":ie=u(ie).split(R),A.scale(fe,fe,[parseFloat(ie[0]),parseFloat(ie[1]||ie[0])]);break;case"rotate":ie=u(ie).split(R),A.rotate(fe,fe,parseFloat(ie[0]));break;case"skew":ie=u(ie).split(R),console.warn("Skew transform is not supported yet");break;case"matrix":var ie=u(ie).split(R);fe[0]=parseFloat(ie[0]),fe[1]=parseFloat(ie[1]),fe[2]=parseFloat(ie[2]),fe[3]=parseFloat(ie[3]),fe[4]=parseFloat(ie[4]),fe[5]=parseFloat(ie[5]);break}}$.setLocalTransform(fe)}}var H=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F(K){var $=K.getAttribute("style"),te={};if(!$)return te;var fe={};H.lastIndex=0;for(var Ae;(Ae=H.exec($))!=null;)fe[Ae[1]]=Ae[2];for(var ce in x)x.hasOwnProperty(ce)&&fe[ce]!=null&&(te[x[ce]]=fe[ce]);return te}function B(K,$,te){var fe=$/K.width,Ae=te/K.height,ce=Math.min(fe,Ae),ie=[ce,ce],ye=[-(K.x+K.width/2)*ce+$/2,-(K.y+K.height/2)*ce+te/2];return{scale:ie,position:ye}}function z(K,$){var te=new P;return te.parse(K,$)}ee.parseXML=w,ee.makeViewBoxTransform=B,ee.parseSVG=z},MI8n:function(Be,ee,v){"use strict";v.d(ee,"c",function(){return _}),v.d(ee,"b",function(){return n}),v.d(ee,"e",function(){return p}),v.d(ee,"a",function(){return a}),v.d(ee,"d",function(){return t}),v.d(ee,"f",function(){return A});var Z=v("/cxE"),Q=v("pmY6"),I=v("24hK"),k=v("5Y4S"),_;(function(l){l.None=()=>Q.a.None;function i(y){return(U,N=null,S)=>{let H=!1,F;return F=y(B=>H?void 0:(F?F.dispose():H=!0,U.call(N,B)),null,S),H&&F.dispose(),F}}l.once=i;function c(y,U){return R((N,S=null,H)=>y(F=>N.call(S,U(F)),null,H))}l.map=c;function d(y,U){return R((N,S=null,H)=>y(F=>{U(F),N.call(S,F)},null,H))}l.forEach=d;function f(y,U){return R((N,S=null,H)=>y(F=>U(F)&&N.call(S,F),null,H))}l.filter=f;function o(y){return y}l.signal=o;function u(...y){return(U,N=null,S)=>Object(Q.e)(...y.map(H=>H(F=>U.call(N,F),null,S)))}l.any=u;function E(y,U,N){let S=N;return c(y,H=>(S=U(S,H),S))}l.reduce=E;function R(y){let U;const N=new n({onFirstListenerAdd(){U=y(N.fire,N)},onLastListenerRemove(){U.dispose()}});return N.event}function w(y,U,N=100,S=!1,H){let F,B,z,K=0;const $=new n({leakWarningThreshold:H,onFirstListenerAdd(){F=y(te=>{K++,B=U(B,te),S&&!z&&($.fire(B),B=void 0),clearTimeout(z),z=setTimeout(()=>{const fe=B;B=void 0,z=void 0,(!S||K>1)&&$.fire(fe),K=0},N)})},onLastListenerRemove(){F.dispose()}});return $.event}l.debounce=w;function P(y,U=(N,S)=>N===S){let N=!0,S;return f(y,H=>{const F=N||!U(H,S);return N=!1,S=H,F})}l.latch=P;function C(y,U){return[l.filter(y,U),l.filter(y,N=>!U(N))]}l.split=C;function b(y,U=!1,N=[]){let S=N.slice(),H=y(z=>{S?S.push(z):B.fire(z)});const F=()=>{S&&S.forEach(z=>B.fire(z)),S=null},B=new n({onFirstListenerAdd(){H||(H=y(z=>B.fire(z)))},onFirstListenerDidAdd(){S&&(U?setTimeout(F):F())},onLastListenerRemove(){H&&H.dispose(),H=null}});return B.event}l.buffer=b;class s{constructor(y){this.event=y}map(y){return new s(c(this.event,y))}forEach(y){return new s(d(this.event,y))}filter(y){return new s(f(this.event,y))}reduce(y,U){return new s(E(this.event,y,U))}latch(){return new s(P(this.event))}debounce(y,U=100,N=!1,S){return new s(w(this.event,y,U,N,S))}on(y,U,N){return this.event(y,U,N)}once(y,U,N){return i(this.event)(y,U,N)}}function h(y){return new s(y)}l.chain=h;function m(y,U,N=S=>S){const S=(...z)=>B.fire(N(...z)),H=()=>y.on(U,S),F=()=>y.removeListener(U,S),B=new n({onFirstListenerAdd:H,onLastListenerRemove:F});return B.event}l.fromNodeEventEmitter=m;function x(y,U,N=S=>S){const S=(...z)=>B.fire(N(...z)),H=()=>y.addEventListener(U,S),F=()=>y.removeEventListener(U,S),B=new n({onFirstListenerAdd:H,onLastListenerRemove:F});return B.event}l.fromDOMEventEmitter=x;function g(y){return new Promise(U=>i(y)(U))}l.toPromise=g})(_||(_={}));class O{constructor(l){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${l}_${O._idPool++}`}start(l){this._stopWatch=new k.a(!0),this._listenerCount=l}stop(){if(this._stopWatch){const l=this._stopWatch.elapsed();this._elapsedOverall+=l,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${l.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}O._idPool=0;let M=-1;class T{constructor(l,i=Math.random().toString(18).slice(2,5)){this.customThreshold=l,this.name=i,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(l){let i=M;if(typeof this.customThreshold=="number"&&(i=this.customThreshold),i<=0||l{const f=this._stacks.get(c)||0;this._stacks.set(c,f-1)}}}class n{constructor(l){var i;this._disposed=!1,this._options=l,this._leakageMon=M>0?new T(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((i=this._options)===null||i===void 0?void 0:i._profName)?new O(this._options._profName):void 0}get event(){return this._event||(this._event=(l,i,c)=>{var d;this._listeners||(this._listeners=new I.a);const f=this._listeners.isEmpty();f&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(i?[l,i]:l);f&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,l,i);const u=(d=this._leakageMon)===null||d===void 0?void 0:d.check(this._listeners.size),E=Object(Q.i)(()=>{if(u&&u(),!this._disposed&&(o(),this._options&&this._options.onLastListenerRemove)){const R=this._listeners&&!this._listeners.isEmpty();R||this._options.onLastListenerRemove(this)}});return c instanceof Q.b?c.add(E):Array.isArray(c)&&c.push(E),E}),this._event}fire(l){var i,c;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new I.a);for(let d of this._listeners)this._deliveryQueue.push([d,l]);for((i=this._perfMon)===null||i===void 0||i.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[d,f]=this._deliveryQueue.shift();try{typeof d=="function"?d.call(void 0,f):d[0].call(d[1],f)}catch(o){Object(Z.f)(o)}}(c=this._perfMon)===null||c===void 0||c.stop()}}dispose(){var l,i,c,d,f;this._disposed||(this._disposed=!0,(l=this._listeners)===null||l===void 0||l.clear(),(i=this._deliveryQueue)===null||i===void 0||i.clear(),(d=(c=this._options)===null||c===void 0?void 0:c.onLastListenerRemove)===null||d===void 0||d.call(c),(f=this._leakageMon)===null||f===void 0||f.dispose())}}class p extends n{constructor(l){super(l);this._isPaused=0,this._eventQueue=new I.a,this._mergeFn=l==null?void 0:l.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const l=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(l))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(l){this._listeners&&(this._isPaused!==0?this._eventQueue.push(l):super.fire(l))}}class a extends p{constructor(l){var i;super(l);this._delay=(i=l.delay)!==null&&i!==void 0?i:100}fire(l){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(l)}}class t{constructor(){this.buffers=[]}wrapEvent(l){return(i,c,d)=>l(f=>{const o=this.buffers[this.buffers.length-1];o?o.push(()=>i.call(c,f)):i.call(c,f)},void 0,d)}bufferEvents(l){const i=[];this.buffers.push(i);const c=l();return this.buffers.pop(),i.forEach(d=>d()),c}}class A{constructor(){this.listening=!1,this.inputEvent=_.None,this.inputEventListener=Q.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(l){this.inputEvent=l,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=l(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MKOG:function(Be,ee,v){var Z=v("bYtY"),Q=v("YH21"),I=Q.Dispatcher,k=v("mLcG"),_=v("Bq2U"),O=function(T){T=T||{},this.stage=T.stage||{},this.onframe=T.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,I.call(this)};O.prototype={constructor:O,addClip:function(T){this._clips.push(T)},addAnimator:function(T){T.animation=this;for(var n=T.getClips(),p=0;p=0&&this._clips.splice(n,1)},removeAnimator:function(T){for(var n=T.getClips(),p=0;p=0,O=i.indexOf("Macintosh")>=0,a=(i.indexOf("Macintosh")>=0||i.indexOf("iPad")>=0||i.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,M=i.indexOf("Linux")>=0,p=!0,t=navigator.language,A=t;else if(typeof d=="object"){_=d.platform==="win32",O=d.platform==="darwin",M=d.platform==="linux",T=M&&!!d.env.SNAP&&!!d.env.SNAP_REVISION,t=k,A=k;const y=d.env.VSCODE_NLS_CONFIG;if(y)try{const U=JSON.parse(y),N=U.availableLanguages["*"];t=U.locale,A=N||k,l=U._translationsConfigFile}catch(U){}n=!0}else console.error("Unable to resolve platform.");let o=0;O?o=1:_?o=3:M&&(o=2);const u=_,E=O,R=M,w=n,P=p,C=a,b=i,s=function(){if(c.setImmediate)return c.setImmediate.bind(c);if(typeof c.postMessage=="function"&&!c.importScripts){let N=[];c.addEventListener("message",H=>{if(H.data&&H.data.vscodeSetImmediateId)for(let F=0,B=N.length;F{const F=++S;N.push({id:F,callback:H}),c.postMessage({vscodeSetImmediateId:F},"*")}}if(typeof(d==null?void 0:d.nextTick)=="function")return d.nextTick.bind(d);const U=Promise.resolve();return N=>U.then(N)}(),h=O||a?2:_?1:3;let m=!0,x=!1;function g(){if(!x){x=!0;const y=new Uint8Array(2);y[0]=1,y[1]=2;const U=new Uint16Array(y.buffer);m=U[0]===(2<<8)+1}return m}}).call(this,v("IyRk"),v("Q2Ig"))},MPMw:function(Be,ee,v){Be.exports=v.p+"static/xly.53dde837.png"},N0LK:function(Be,ee,v){"use strict";v.d(ee,"C",function(){return Z}),v.d(ee,"v",function(){return I}),v.d(ee,"s",function(){return k}),v.d(ee,"t",function(){return _}),v.d(ee,"U",function(){return O}),v.d(ee,"J",function(){return M}),v.d(ee,"O",function(){return T}),v.d(ee,"p",function(){return n}),v.d(ee,"T",function(){return p}),v.d(ee,"q",function(){return a}),v.d(ee,"N",function(){return t}),v.d(ee,"M",function(){return A}),v.d(ee,"Q",function(){return l}),v.d(ee,"u",function(){return i}),v.d(ee,"x",function(){return c}),v.d(ee,"I",function(){return d}),v.d(ee,"f",function(){return f}),v.d(ee,"h",function(){return o}),v.d(ee,"g",function(){return u}),v.d(ee,"i",function(){return E}),v.d(ee,"G",function(){return R}),v.d(ee,"H",function(){return w}),v.d(ee,"r",function(){return P}),v.d(ee,"R",function(){return C}),v.d(ee,"d",function(){return b}),v.d(ee,"e",function(){return s}),v.d(ee,"E",function(){return h}),v.d(ee,"F",function(){return m}),v.d(ee,"j",function(){return x}),v.d(ee,"z",function(){return g}),v.d(ee,"K",function(){return U}),v.d(ee,"L",function(){return N}),v.d(ee,"m",function(){return H}),v.d(ee,"k",function(){return B}),v.d(ee,"A",function(){return K}),v.d(ee,"a",function(){return $}),v.d(ee,"n",function(){return te}),v.d(ee,"l",function(){return fe}),v.d(ee,"D",function(){return Ae}),v.d(ee,"B",function(){return ce}),v.d(ee,"b",function(){return ie}),v.d(ee,"S",function(){return ye}),v.d(ee,"o",function(){return le}),v.d(ee,"P",function(){return me}),v.d(ee,"w",function(){return se}),v.d(ee,"c",function(){return ge}),v.d(ee,"y",function(){return Me});function Z(he){return!he||typeof he!="string"?!0:he.trim().length===0}const Q=/{(\d+)}/g;function I(he,...Se){return Se.length===0?he:he.replace(Q,function(Ue,Ne){const ct=parseInt(Ne,10);return isNaN(ct)||ct<0||ct>=Se.length?Ue:Se[ct]})}function k(he){return he.replace(/[<>&]/g,function(Se){switch(Se){case"<":return"<";case">":return">";case"&":return"&";default:return Se}})}function _(he){return he.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function O(he,Se=" "){const Ue=M(he,Se);return T(Ue,Se)}function M(he,Se){if(!he||!Se)return he;const Ue=Se.length;if(Ue===0||he.length===0)return he;let Ne=0;for(;he.indexOf(Se,Ne)===Ne;)Ne=Ne+Ue;return he.substring(Ne)}function T(he,Se){if(!he||!Se)return he;const Ue=Se.length,Ne=he.length;if(Ue===0||Ne===0)return he;let ct=Ne,ft=-1;for(;!(ft=he.lastIndexOf(Se,ct-1),ft===-1||ft+Ue!==ct);){if(ft===0)return"";ct=ft}return he.substring(0,ct)}function n(he){return he.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function p(he){return he.replace(/\*/g,"")}function a(he,Se,Ue={}){if(!he)throw new Error("Cannot create regex from empty string");Se||(he=_(he)),Ue.wholeWord&&(/\B/.test(he.charAt(0))||(he="\\b"+he),/\B/.test(he.charAt(he.length-1))||(he=he+"\\b"));let Ne="";return Ue.global&&(Ne+="g"),Ue.matchCase||(Ne+="i"),Ue.multiline&&(Ne+="m"),Ue.unicode&&(Ne+="u"),new RegExp(he,Ne)}function t(he){if(he.source==="^"||he.source==="^$"||he.source==="$"||he.source==="^\\s*$")return!1;const Se=he.exec("");return!!(Se&&he.lastIndex===0)}function A(he){return(he.global?"g":"")+(he.ignoreCase?"i":"")+(he.multiline?"m":"")+(he.unicode?"u":"")}function l(he){return he.split(/\r\n|\r|\n/)}function i(he){for(let Se=0,Ue=he.length;Se=0;Ue--){const Ne=he.charCodeAt(Ue);if(Ne!==32&&Ne!==9)return Ue}return-1}function f(he,Se){return heSe?1:0}function o(he,Se,Ue=0,Ne=he.length,ct=0,ft=Se.length){for(;Uejt)return 1}const Ot=Ne-Ue,dt=ft-ct;return Otdt?1:0}function u(he,Se){return E(he,Se,0,he.length,0,Se.length)}function E(he,Se,Ue=0,Ne=he.length,ct=0,ft=Se.length){for(;Ue=128||jt>=128)return o(he.toLowerCase(),Se.toLowerCase(),Ue,Ne,ct,ft);R(Ut)&&(Ut-=32),R(jt)&&(jt-=32);const ze=Ut-jt;if(ze===0)continue;return ze}const Ot=Ne-Ue,dt=ft-ct;return Otdt?1:0}function R(he){return he>=97&&he<=122}function w(he){return he>=65&&he<=90}function P(he,Se){return he.length===Se.length&&E(he,Se)===0}function C(he,Se){const Ue=Se.length;return Se.length>he.length?!1:E(he,Se,0,Ue)===0}function b(he,Se){let Ue,Ne=Math.min(he.length,Se.length);for(Ue=0;Ue1){const Ne=he.charCodeAt(Se-2);if(h(Ne))return x(Ne,Ue)}return Ue}function U(he,Se){const Ue=ae.getInstance(),Ne=Se,ct=he.length,ft=g(he,ct,Se);Se+=ft>=65536?2:1;let Ot=Ue.getGraphemeBreakType(ft);for(;Se=65536?2:1,Ot=Ut}return Se-Ne}function N(he,Se){const Ue=ae.getInstance(),Ne=Se,ct=y(he,Se);Se-=ct>=65536?2:1;let ft=Ue.getGraphemeBreakType(ct);for(;Se>0;){const Ot=y(he,Se),dt=Ue.getGraphemeBreakType(Ot);if(ge(dt,ft))break;Se-=Ot>=65536?2:1,ft=dt}return Ne-Se}const S=/(?:[\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 H(he){return S.test(he)}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 B(he){return F.test(he)}const z=/^[\t\n\r\x20-\x7E]*$/;function K(he){return z.test(he)}const $=/[\u2028\u2029]/;function te(he){return $.test(he)}function fe(he){for(let Se=0,Ue=he.length;Se=11904&&he<=55215||he>=63744&&he<=64255||he>=65281&&he<=65374}function ce(he){return he>=127462&&he<=127487||he===8986||he===8987||he===9200||he===9203||he>=9728&&he<=10175||he===11088||he===11093||he>=127744&&he<=128591||he>=128640&&he<=128764||he>=128992&&he<=129003||he>=129280&&he<=129535||he>=129648&&he<=129750}const ie=String.fromCharCode(65279);function ye(he){return!!(he&&he.length>0&&he.charCodeAt(0)===65279)}function le(he,Se=!1){return he?(Se&&(he=he.replace(/\\./g,"")),he.toLowerCase()!==he):!1}function me(he){const Se=90-65+1;return he=he%(2*Se),heSe[3*Ne+1])Ne=2*Ne+1;else return Se[3*Ne+2];return 0}}ae._INSTANCE=null;function pe(){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 Me(he,Se){if(he===0)return 0;const Ue=xe(he,Se);if(Ue!==void 0)return Ue;const Ne=y(Se,he);return he-=Ke(Ne),he}function xe(he,Se){let Ue=y(Se,he);for(he-=Ke(Ue);et(Ue)||Ue===65039||Ue===8419;){if(he===0)return;Ue=y(Se,he),he-=Ke(Ue)}if(!ce(Ue))return;if(he>=0){const Ne=y(Se,he);Ne===8205&&(he-=Ke(Ne))}return he}function Ke(he){return he>=65536?2:1}function et(he){return 127995<=he&&he<=127999}},NC18:function(Be,ee,v){var Z=v("y+Vt"),Q=v("IMiH"),I=v("7oTu"),k=Math.sqrt,_=Math.sin,O=Math.cos,M=Math.PI,T=function(o){return Math.sqrt(o[0]*o[0]+o[1]*o[1])},n=function(o,u){return(o[0]*u[0]+o[1]*u[1])/(T(o)*T(u))},p=function(o,u){return(o[0]*u[1]1&&(C*=k(U),b*=k(U));var N=(w===P?-1:1)*k((C*C*(b*b)-C*C*(y*y)-b*b*(g*g))/(C*C*(y*y)+b*b*(g*g)))||0,S=N*C*y/b,H=N*-b*g/C,F=(o+E)/2+O(x)*S-_(x)*H,B=(u+R)/2+_(x)*S+O(x)*H,z=p([1,0],[(g-S)/C,(y-H)/b]),K=[(g-S)/C,(y-H)/b],$=[(-1*g-S)/C,(-1*y-H)/b],te=p(K,$);n(K,$)<=-1&&(te=M),n(K,$)>=1&&(te=0),P===0&&te>0&&(te=te-2*M),P===1&&te<0&&(te=te+2*M),m.addData(h,F,B,C,b,z,te,x,P)}var t=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,A=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function l(o){if(!o)return new Q;for(var u=0,E=0,R=u,w=E,P,C=new Q,b=Q.CMD,s=o.match(t),h=0;h1&&arguments[1]!==void 0?arguments[1]:!1;return!!(f(C)&&o(b))},f=function(C){return Object(a.p)()?!0:(C({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},o=function(){var C,b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,s=Object(p.c)()._store.getState(),h=s.user;return(C=h.userInfo)!==null&&C!==void 0&&C.profile_completed?!0:(_.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:b?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){p.d.push("/account/profile/edit")}}),!1)},u=function(){var C,b=Object(p.c)()._store.getState(),s=b.user;return(C=s.userInfo)!==null&&C!==void 0&&C.professional_certification?!0:(_.a.confirm({title:"\u63D0\u793A",centered:!0,content:n.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(t.S)("/account/certification")}}),!1)},E=function(){var C;if(Object(a.a)())return!0;var b=Object(p.c)()._store.getState(),s=b.user,h=b.globalSetting;return _.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc",style:{marginLeft:-38}},n.a.createElement("p",null,"\u626B\u7801\u6DFB\u52A0\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),n.a.createElement("img",{src:c.a.IMG_SERVER+(h==null||((C=h.setting)===null||C===void 0)?void 0:C.authority_qrcode_url),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1},R=function(C,b){var s;if(C)return!0;var h=Object(p.c)()._store.getState(),m=h.user,x=h.globalSetting;return _.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:n.a.createElement("div",null,n.a.createElement("p",null,b||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),n.a.createElement("div",{style:{marginLeft:"110px"}},n.a.createElement("img",{src:c.a.IMG_SERVER+(x==null||((s=x.setting)===null||s===void 0)?void 0:s.authority_qrcode_url),width:200}),n.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(t.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1},w=function(C){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=Object(p.c)()._store.getState(),h=s.shixunsDetail.detail;return(h==null?void 0:h.public)===2||(h==null?void 0:h.public)===1||(h==null?void 0:h.shixun_status)===3?(_.a.info({centered:!0,icon:n.a.createElement(A.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc",style:{marginLeft:-38}},n.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},n.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(h==null?void 0:h.public)===2?"\u5DF2\u516C\u5F00":(h==null?void 0:h.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",b,"\u3002"),n.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),n.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:i.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(h==null?void 0:h.shixun_status)===2?(_.a.confirm({centered:!0,icon:n.a.createElement(A.a,null),title:"\u63D0\u793A",content:n.a.createElement("div",null,n.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",b,"\u3002"),n.a.createElement("br",null),n.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){_.a.confirm({width:440,centered:!0,icon:n.a.createElement(A.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var x=Object(I.a)(M.a.mark(function y(){var U;return M.a.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,C({type:"shixunsDetail/cancelRelease",payload:{id:h==null?void 0:h.identifier}});case 2:U=S.sent,U.status!==401&&(Q.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),C({type:"shixunsDetail/getShixunsDetail",payload:{id:h==null?void 0:h.identifier}}),C({type:"practiceSetting/getCommonData",payload:{id:h==null?void 0:h.identifier}}));case 4:case"end":return S.stop()}},y)}));function g(){return x.apply(this,arguments)}return g}()})}}),!0):!1}},Nddv:function(Be,ee,v){Be.exports=v.p+"static/sz.d6b17ad9.svg"},Nmxd:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8BZkJd667nPzM71LSqLrExC94k2bJbqk+Im65xQIzr7wmA9RUFcTDIQtJWQDaB3A5lT+ur34bFRJ8WbdV1VRAowGB5wTagCdFF29BOAxSzAjbkTiWrZWU+oCSJgTScwCV1K8m7rPyfe9acAcgeaVFsIHjXD7ptyYxw/vqq5ZMHcHGOZvaE7OfTvindf97CQ3bRkgorXDodiRUiYDuhYlZAeDe6zKxuTJ1j34awDC8u0XD7hht4RuwkctxvOxlFWyYFJ7jUDnC7UHU1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NohK:function(Be,ee,v){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.default=void 0;var Z=function(I){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,_=null;return function(){for(var O=this,M=arguments.length,T=new Array(M),n=0;n=0;c-=1){var d=T.get(c)||new Set;d.forEach(function(f){var o=f.parent,u=f.node;if(p(u)||!f.parent||i.has(f.parent.key))return;if(p(f.parent.node)){i.add(o.key);return}var E=!0,R=!1;(o.children||[]).filter(function(w){return!p(w.node)}).forEach(function(w){var P=w.key,C=a.has(P);E&&!C&&(E=!1),!R&&(C||t.has(P))&&(R=!0)}),E&&a.add(o.key),R&&t.add(o.key),i.add(o.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Q(t,a))}}function _(M,T,n,p,a){for(var t=new Set(M),A=new Set(T),l=0;l<=p;l+=1){var i=n.get(l)||new Set;i.forEach(function(o){var u=o.key,E=o.node,R=o.children,w=R===void 0?[]:R;!t.has(u)&&!A.has(u)&&!a(E)&&w.filter(function(P){return!a(P.node)}).forEach(function(P){t.delete(P.key)})})}A=new Set;for(var c=new Set,d=p;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(o){var u=o.parent,E=o.node;if(a(E)||!o.parent||c.has(o.parent.key))return;if(a(o.parent.node)){c.add(u.key);return}var R=!0,w=!1;(u.children||[]).filter(function(P){return!a(P.node)}).forEach(function(P){var C=P.key,b=t.has(C);R&&!b&&(R=!1),!w&&(b||A.has(C))&&(w=!0)}),R||t.delete(u.key),w&&A.add(u.key),c.add(u.key)})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(Q(A,t))}}function O(M,T,n,p){var a=[],t;p?t=p:t=I;var A=new Set(M.filter(function(d){var f=!!n[d];return f||a.push(d),f})),l=new Map,i=0;Object.keys(n).forEach(function(d){var f=n[d],o=f.level,u=l.get(o);u||(u=new Set,l.set(o,u)),u.add(f),i=Math.max(i,o)}),Object(Z.a)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var c;return T===!0?c=k(A,l,i,t):c=_(A,T.halfCheckedKeys,l,i,t),c}},OC45:function(Be,ee,v){Be.exports={applyPublicContainer:"applyPublicContainer___3sK8L",applyPublicContent:"applyPublicContent___3Hye1",spin:"spin___3-Uh7",tips:"tips___3d-sF",action:"action___3Uny2"}},OLES:function(Be,ee,v){"use strict";var Z=v("U8pU"),Q=v("VTBJ"),I=v("Ff2n"),k=v("q1tI"),_=v("uciX"),O=v("7ixt"),M=function(A){var l=A.overlay,i=A.prefixCls,c=A.id,d=A.overlayInnerStyle;return k.createElement("div",{className:"".concat(i,"-inner"),id:c,role:"tooltip",style:d},typeof l=="function"?l():l)},T=M,n=function(A,l){var i=A.overlayClassName,c=A.trigger,d=c===void 0?["hover"]:c,f=A.mouseEnterDelay,o=f===void 0?0:f,u=A.mouseLeaveDelay,E=u===void 0?.1:u,R=A.overlayStyle,w=A.prefixCls,P=w===void 0?"rc-tooltip":w,C=A.children,b=A.onVisibleChange,s=A.afterVisibleChange,h=A.transitionName,m=A.animation,x=A.placement,g=x===void 0?"right":x,y=A.align,U=y===void 0?{}:y,N=A.destroyTooltipOnHide,S=N===void 0?!1:N,H=A.defaultVisible,F=A.getTooltipContainer,B=A.overlayInnerStyle,z=Object(I.a)(A,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),K=Object(k.useRef)(null);Object(k.useImperativeHandle)(l,function(){return K.current});var $=Object(Q.a)({},z);"visible"in A&&($.popupVisible=A.visible);var te=function(){var ye=A.arrowContent,le=ye===void 0?null:ye,me=A.overlay,se=A.id;return[k.createElement("div",{className:"".concat(P,"-arrow"),key:"arrow"},le),k.createElement(T,{key:"content",prefixCls:P,id:se,overlay:me,overlayInnerStyle:B})]},fe=!1,Ae=!1;if(typeof S=="boolean")fe=S;else if(S&&Object(Z.a)(S)==="object"){var ce=S.keepParent;fe=ce===!0,Ae=ce===!1}return k.createElement(_.a,Object.assign({popupClassName:i,prefixCls:P,popup:te,action:d,builtinPlacements:O.a,popupPlacement:g,ref:K,popupAlign:U,getPopupContainer:F,onPopupVisibleChange:b,afterPopupVisibleChange:s,popupTransitionName:h,popupAnimation:m,defaultPopupVisible:H,destroyPopupOnHide:fe,autoDestroy:Ae,mouseLeaveDelay:E,popupStyle:R,mouseEnterDelay:o},$),C)},p=Object(k.forwardRef)(n),a=ee.a=p},OS9S:function(Be,ee,v){var Z=v("bYtY"),Q=Z.inherits,I=v("Gev7"),k=v("mFDi");function _(T){I.call(this,T),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}_.prototype.incremental=!0,_.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},_.prototype.addDisplayable=function(T,n){n?this._temporaryDisplayables.push(T):this._displayables.push(T),this.dirty()},_.prototype.addDisplayables=function(T,n){n=n||!1;for(var p=0;p=0&&C.splice(b,1),C}function a(w,P){var C=w.slice();return C.indexOf(P)===-1&&C.push(P),C}function t(w){return w.split("-")}function A(w,P){return"".concat(w,"-").concat(P)}function l(w){return w&&w.type&&w.type.isTreeNode}function i(w,P){var C=[w],b=P[w];function s(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];h.forEach(function(m){var x=m.key,g=m.children;C.push(x),s(g)})}return s(b.children),C}function c(w,P){var C=w.clientY,b=P.selectHandle.getBoundingClientRect(),s=b.top,h=b.bottom,m=b.height,x=Math.max(m*T,n);return C<=s+x?-1:C>=h-x?1:0}function d(w,P){if(!w)return;var C=P.multiple;return C?w.slice():w.length?[w[0]]:w}var f=function(P){return P};function o(w,P){if(!w)return[];var C=P||{},b=C.processProps,s=b===void 0?f:b,h=Array.isArray(w)?w:[w];return h.map(function(m){var x=m.children,g=Object(I.a)(m,["children"]),y=o(x,P);return _.a.createElement(M.a,Object.assign({},s(g)),y)})}function u(w){if(!w)return null;var P;if(Array.isArray(w))P={checkedKeys:w,halfCheckedKeys:void 0};else if(Object(Q.a)(w)==="object")P={checkedKeys:w.checked||void 0,halfCheckedKeys:w.halfChecked||void 0};else return Object(O.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function E(w,P){var C=new Set;function b(s){if(C.has(s))return;var h=P[s];if(!h)return;C.add(s);var m=h.parent,x=h.node;if(x.disabled)return;m&&b(m.key)}return(w||[]).forEach(function(s){b(s)}),Object(Z.a)(C)}function R(w){var P={};return Object.keys(w).forEach(function(C){(C.startsWith("data-")||C.startsWith("aria-"))&&(P[C]=w[C])}),P}},Ohmc:function(Be,ee,v){Be.exports=v.p+"static/certificate.fc32dc1b.jpg"},OljG:function(Be,ee,v){Be.exports=v.p+"static/banner.4c45dd73.png"},Ot1p:function(Be,ee,v){"use strict";var Z=v("2qtc"),Q=v("kLXV"),I=v("rAM+"),k=v("miYZ"),_=v("tsqr"),O=v("9og8"),M=v("tJVT"),T=v("jrin"),n=v("WmNS"),p=v.n(n),a=v("q1tI"),t=v.n(a),A=v("VrN/"),l=v.n(A),i=v("bdgK"),c=v("p77/"),d=v("Bd2K"),f=v("ELLl"),o=v("19Vz"),u=v("lZu9"),E=v("+NIl"),R=v("kSUc"),w=v("9Bee"),P=function(Xe){var gt=Xe.value,Lt=gt===void 0?"":gt,en=Xe.className,Zt=Xe.showTextOnly,xt=Xe.showLines,Ct=Xe.style,mt=Ct===void 0?{}:Ct,Je=Object(a.useMemo)(function(){return""},[Lt]);return t.a.createElement(t.a.Fragment,null,t.a.createElement("div",{dangerouslySetInnerHTML:{__html:Je}}))},C=v("0Owb"),b=v("dejd"),s=v("C+DQ"),h=v("1vsH"),m=v("m3rI"),x=[{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 g(Xe){var gt=Xe.onActionCallback,Lt=Xe.title,en=Xe.icon,Zt=Xe.actionName,xt=Xe.className,Ct=xt===void 0?"":xt,mt=Xe.children;function Je(){gt(Zt)}return t.a.createElement("a",{title:Lt,className:Ct,onClick:Je},t.a.createElement("i",{className:"md-iconfont ".concat(en)}),mt)}var y=function(Xe){var gt=Xe.watch,Lt=Xe.showNullButton,en=Xe.onActionCallback,Zt=Xe.fullScreen,xt=Xe.insertTemp,Ct=Xe.hidetoolBar,mt=Xe.uuid,Je=Xe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(h.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(h.F)("_educoder_session"),"&key=").concat(mt,"&api=").concat(encodeURIComponent(m.a.PROXY_SERVER)));var Qe=[].concat(x,[{title:"".concat(gt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(gt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return t.a.createElement("ul",{className:"markdown-toolbar-container"},!Ct&&Qe.map(function(Oe,je){return t.a.createElement("li",{key:je},Oe.actionName?t.a.createElement(g,Object(C.a)({},Oe,{onActionCallback:en})):t.a.createElement("span",{className:"v-line"}))}),Lt?t.a.createElement("li",null,t.a.createElement(g,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:en},t.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,xt&&t.a.createElement("li",null,t.a.createElement(g,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(xt),onActionCallback:en},t.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),t.a.createElement("li",{className:"btn-full-screen"},t.a.createElement(g,{icon:"".concat(Zt?"icon-shrink":"icon-enlarge"),title:Zt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:en})))},U=v("M8RZ"),N=v("+L6B"),S=v("2/Rp"),H=v("y8nQ"),F=v("Vl3Y"),B=v("5NDa"),z=v("5rEg"),K={labelCol:{span:4},wrapperCol:{span:20}},$=function(Xe){var gt=Xe.callback,Lt=Xe.onCancel;function en(Zt){gt(Zt)}return t.a.createElement(F.a,Object(C.a)({},K,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:en}),t.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},t.a.createElement(z.a,null)),t.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},t.a.createElement(z.a,null)),t.a.createElement("div",{className:"flex-container flex-end"},t.a.createElement(S.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),t.a.createElement(S.a,{type:"ghost",onClick:Lt},"\u53D6\u6D88")))},te=v("7ahc"),fe=v("HmJG"),Ae=v("BjJ7"),ce=F.a.useForm,ie={width:280,marginRight:10},ye={labelCol:{span:5},wrapperCol:{span:19}},le=function(Xe){var gt=Xe.callback,Lt=Xe.onCancel,en=ce(),Zt=Object(M.a)(en,1),xt=Zt[0];function Ct(Qe){gt(Qe)}function mt(Qe,Oe){if(Qe.status===-1){_.b.error(Qe.message);return}xt.setFieldsValue({src:"/api/attachments/".concat(Qe.id),type:Oe.type})}function Je(Qe){var Oe=Qe.target.files[0];se(Oe,mt)}return t.a.createElement(F.a,Object(C.a)({form:xt},ye,{className:"upload-image-panel",onFinish:Ct}),t.a.createElement(F.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},t.a.createElement("div",{className:"flex-container"},t.a.createElement(F.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},t.a.createElement(z.a,{style:ie})),t.a.createElement(me,{onFileChange:Je}))),t.a.createElement(F.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},t.a.createElement(z.a,{style:{width:264}})),t.a.createElement(F.a.Item,{style:{textAlign:"right"}},t.a.createElement(S.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),t.a.createElement(S.a,{type:"ghost",onClick:Lt},"\u53D6\u6D88")))};function me(Xe){var gt=Xe.onFileChange;return t.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",t.a.createElement("input",{type:"file",onChange:gt}))}function se(Xe,gt){if(!Xe)throw new String("\u6CA1\u6709\u6587\u4EF6");var Lt=new FormData;Lt.append("editormd-image-file",Xe),Lt.append("file_param_name","editormd-image-file"),Lt.append("byxhr","true");var en=new window.XMLHttpRequest;en.withCredentials=!0,en.addEventListener("load",function(Zt){gt(JSON.parse(Zt.target.responseText),Xe)},!1),en.addEventListener("error",function(Zt){console.error(Zt)},!1),en.open("POST","".concat(Ae.a,"/api/attachments.json")),en.send(Lt)}var ge=v("giR+"),ae=v("fyUT"),pe=v("7Kak"),Me=v("9yH6"),xe=Me.a.Group,Ke={margin:"0 8px"},et=function(Xe){var gt=Xe.callback,Lt=Xe.onCancel;function en(Zt){gt(Zt)}return t.a.createElement(F.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:en},t.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},t.a.createElement("span",{style:Ke},"\u5355\u5143\u683C\u6570\uFF1A"),t.a.createElement("span",{style:Ke},"\u884C\u6570"),t.a.createElement(F.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},t.a.createElement(ae.a,null)),t.a.createElement("span",{style:Ke},"\u5217\u6570"),t.a.createElement(F.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},t.a.createElement(ae.a,null))),t.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},t.a.createElement("span",{style:Ke},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),t.a.createElement(F.a.Item,{name:"align"},t.a.createElement(xe,null,t.a.createElement(Me.a,{value:"default"},t.a.createElement("i",{className:"fa fa-align-justify"})),t.a.createElement(Me.a,{value:"left"},t.a.createElement("i",{className:"fa fa-align-left"})),t.a.createElement(Me.a,{value:"center"},t.a.createElement("i",{className:"fa fa-align-center"})),t.a.createElement(Me.a,{value:"right"},t.a.createElement("i",{className:"fa fa-align-right"}))))),t.a.createElement("div",{className:"flex-container flex-end"},t.a.createElement(S.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),t.a.createElement(S.a,{type:"ghost",onClick:Lt},"\u53D6\u6D88")))},he=v("ErOA"),Se=v("7Cbv"),Ue="link",Ne="upload-image",ct="code-block",ft="add-table",Ot="------------",dt={default:Ot,left:":".concat(Ot),center:":".concat(Ot,":"),right:"".concat(Ot,":")},Ut=v("9VGf"),jt,ze;function Ve(){}var Et=0,Rt=1e4,ut="\u2581",vt=` **\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 Ze(Xe){return/^\d+$/.test(Xe)?"".concat(Xe,"px"):Xe}var ke=navigator.platform.toUpperCase().indexOf("MAC")>=0,He=ke?"Cmd":"Ctrl",we=["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"],Le=(jt={},Object(T.a)(jt,He+"-B","bold"),Object(T.a)(jt,He+"-I","italic"),jt),Pe=(ze={},Object(T.a)(ze,Ue,"\u6DFB\u52A0\u94FE\u63A5"),Object(T.a)(ze,ct,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(T.a)(ze,Ne,"\u6DFB\u52A0\u6587\u4EF6"),Object(T.a)(ze,ft,"\u6DFB\u52A0\u8868\u683C"),ze),We=ee.a=function(Xe){var gt=Xe.defaultValue,Lt=gt===void 0?"":gt,en=Xe.onChange,Zt=Xe.width,xt=Zt===void 0?"100%":Zt,Ct=Xe.height,mt=Ct===void 0?400:Ct,Je=Xe.miniToolbar,Qe=Je===void 0?!1:Je,Oe=Xe.isFocus,je=Oe===void 0?!1:Oe,St=Xe.watch,bt=Xe.insertTemp,Dt=Xe.mode,Qt=Dt===void 0?"markdown":Dt,_t=Xe.id,Gt=_t===void 0?"markdown-editor-id":_t,kt=Xe.showResizeBar,fn=kt===void 0?!1:kt,mn=Xe.noStorage,Tr=mn===void 0?!1:mn,Mr=Xe.showNullButton,kr=Mr===void 0?!1:Mr,Un=Xe.hidetoolBar,Ra=Un===void 0?!1:Un,Xr=Xe.fullScreen,aa=Xr===void 0?!1:Xr,Kr=Xe.onBlur,_a=Xe.onCMBeforeChange,di=Xe.onFullScreen,Ei=Xe.className,_e=Ei===void 0?"":Ei,Ie=Xe.disablePaste,Ye=Ie===void 0?!1:Ie,yt=Xe.placeholder,Xt=yt===void 0?"":yt,sn=Xe.values,re=sn===void 0?"":sn,W=Object(a.useState)(null),V=Object(M.a)(W,2),ne=V[0],ve=V[1],oe=Object(a.useState)(Lt),tt=Object(M.a)(oe,2),Kt=tt[0],dn=tt[1],Cn=Object(a.useState)(St),Jt=Object(M.a)(Cn,2),Vn=Jt[0],Xn=Jt[1],lr=Object(a.useState)(aa),Rr=Object(M.a)(lr,2),qr=Rr[0],zr=Rr[1],Ca=Object(a.useState)(""),Dr=Object(M.a)(Ca,2),ya=Dr[0],ka=Dr[1],fi=Object(a.useState)(0),Ka=Object(M.a)(fi,2),qa=Ka[0],Si=Ka[1],pi=Object(a.useState)(mt),ui=Object(M.a)(pi,2),mi=ui[0],_i=ui[1],ai=Object(a.useState)(!1),Hi=Object(M.a)(ai,2),Yi=Hi[0],$r=Hi[1],ua=Object(a.useRef)(Object(Se.a)()),Pr=Object(a.useRef)(!1),ca=Object(a.useRef)(),Jr=Object(a.useRef)(),ri=Object(a.useRef)(),pa=Object(a.useRef)(),mo=Object(a.useRef)(),Di=function(){var mr=Object(O.a)(p.a.mark(function Vr(){var ur,oa;return p.a.wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:return ei.next=2,Object(he.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ua.current}});case 2:oa=ei.sent,oa!=null&&(ur=oa.attachments)!==null&&ur!==void 0&&ur.length&&(console.log("cm:",ne,Jr),oa.attachments.map(function(Ba){Ba.content_type.indexOf("image")>-1?ne.replaceSelection("![,](/api/attachments/".concat(Ba.id,"?type=").concat(Ba.content_type,")")):Ba.content_type.indexOf("video")>-1?ne.replaceSelection('')):Ba.content_type.indexOf("pdf")>-1?ne.replaceSelection('
    ').concat(Ba.name,"")):ne.replaceSelection("[".concat(Ba.name,"](").concat(m.a.API_SERVER,"/api/attachments/").concat(Ba.id,"?type=").concat(Ba.content_type,")"))}));case 4:case"end":return ei.stop()}},Vr)}));return function(){return mr.apply(this,arguments)}}();Object(a.useEffect)(function(){dn(re),ne==null||ne.setValue(re)},[re]),Object(a.useEffect)(function(){di==null||di(qr)},[qr]),Object(a.useEffect)(function(){if(Jr.current){var mr=l.a.fromTextArea(Jr.current,{mode:Qt,lineNumbers:!Qe,lineWrapping:!0,value:Lt,autoCloseTags:!0,autoCloseBrackets:!0});je&&mr.focus();function Vr(ur,oa){if(Ye){oa.preventDefault();return}var wa=oa.clipboardData;if(wa){var ei=wa.types.toString(),Ba=wa.items;if(ei==="Files"||wa.types.indexOf("Files")>-1){if(oa.preventDefault(),Qt=="stex")return;try{var Ni,Ma=Ba[1];((Ni=Ba[0])===null||Ni===void 0?void 0:Ni.kind)==="file"&&(Ma=Ba[0]);var xa=Ma.getAsFile(),Po=xa.name.split(".").pop();se(xa,function(Za){if(Za.id){var ro,so,To;(xa==null||((ro=xa.type)===null||ro===void 0)?void 0:ro.indexOf("image"))>-1?mr.replaceSelection("![,](/api/attachments/".concat(Za.id,"?type=").concat(Za.content_type,")")):(xa==null||((so=xa.type)===null||so===void 0)?void 0:so.indexOf("video"))>-1?mr.replaceSelection('')):(xa==null||((To=xa.type)===null||To===void 0)?void 0:To.indexOf("pdf"))>-1?mr.replaceSelection('').concat(xa.name,"")):we.includes(Po)?mr.replaceSelection('').concat(xa.name,"")):mr.replaceSelection("[".concat(xa.name,"](").concat(m.a.API_SERVER,"/api/attachments/").concat(Za.id,"?type=").concat(Za.content_type,")"))}else(Za==null?void 0:Za.status)===401&&(document.location.href="/user/login")})}catch(Za){_.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return mr.on("paste",Vr),mr.on("dragleave",function(ur,oa){ri.current.classList.remove("mouse-hover-md")}),mr.on("dragover",function(ur,oa){ri.current.classList.add("mouse-hover-md")}),mr.on("drop",function(ur,oa){ri.current.classList.add("mouse-hover-md");var wa;if(wa=oa.dataTransfer.files,wa.length>0){oa.preventDefault(),oa.stopPropagation();for(var ei=function(Ma){var xa=wa[Ma],Po=xa.name.split(".").pop();se(xa,function(Za){if(Za.id){var ro,so,To;(xa==null||((ro=xa.type)===null||ro===void 0)?void 0:ro.indexOf("image"))>-1?mr.replaceSelection("![,](/api/attachments/".concat(Za.id,"?type=").concat(Za.content_type,")")):(xa==null||((so=xa.type)===null||so===void 0)?void 0:so.indexOf("video"))>-1?mr.replaceSelection('')):(xa==null||((To=xa.type)===null||To===void 0)?void 0:To.indexOf("pdf"))>-1?mr.replaceSelection('').concat(xa.name,"")):we.includes(Po)?mr.replaceSelection('').concat(xa.name,"")):mr.replaceSelection("[".concat(xa.name,"](").concat(m.a.API_SERVER,"/api/attachments/").concat(Za.id,"?type=").concat(Za.content_type,")"))}else(Za==null?void 0:Za.status)===401&&(document.location.href="/user/login")})},Ba=0;Ba0||Ba.target.offsetWidth>0)&&(ci(),ne.setSize("100%","100%"),ne.refresh())}}catch(Ni){wa.e(Ni)}finally{wa.f()}});return ur.observe(Jr.current.parentElement),ur}if(ne){var Vr=mr();return function(){Vr.unobserve(Jr.current.parentElement)}}},[ne,ci]),Object(a.useEffect)(function(){if(ne){for(var mr=[],Vr=function(){var Ba=oa[ur];wa=Object(M.a)(Ba,2);var Ni=wa[0],Ma=wa[1],xa=Object(T.a)({},Ni,function(){Wo(Ma)});mr.push(xa),ne.addKeyMap(xa)},ur=0,oa=Object.entries(Le);ur0){var mr=new Date().getTime(),Vr=window.sessionStorage.getItem(Gt);mr>=qa+Rt&&(!Vr||Vr!==Kt)&&(window.sessionStorage.setItem(Gt,Kt),$r(!0))}},Rt),Object(a.useEffect)(function(){Xn(St)},[ne,St]),Object(a.useEffect)(function(){ne&&(je&&ne.focus())},[ne,je]),Object(a.useEffect)(function(){if(Vn&&ne){var mr=ne.getScrollerElement();function Vr(ur){var oa=ur.target;if(mo.current){var wa=oa.scrollTop/oa.scrollHeight;mo.current.scrollTop=mo.current.scrollHeight*wa}}return mr.addEventListener("scroll",Vr),function(){mr.removeEventListener("scroll",Vr)}}},[ne,Vn]),Object(a.useEffect)(function(){if(ne&&_a){function mr(Vr,ur){_a(Vr,ur)}return ne.on("beforeChange",mr),function(){ne.off("beforeChange",mr)}}},[ne,_a]),Object(a.useEffect)(function(){if(ne&&Kr){function mr(){Kr(ne.getValue())}return ne.on("blur",mr),function(){ne.off("blur",mr)}}},[ne,Kr]),Object(a.useEffect)(function(){if(ne){function mr(Vr){var ur=Vr.getValue();dn(ur),Si(new Date().getTime()),Vr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),en&&en(ur)}return ne.on("change",mr),function(){ne.off("change",mr)}}},[ne,en]),Object(a.useEffect)(function(){ne&&(Lt==null?(ne.setValue(""),dn("")):Lt!==ne.getValue()&&(ne.setValue(Lt),dn(Lt),ne.setCursor(ne.lineCount(),0)))},[ne,Lt]);var Wo=Object(a.useCallback)(function(mr){var Vr=ne.getCursor(),ur=ne.getSelection(),oa=ur.split(` `);switch(mr){case"bold":return ne.replaceSelection("**"+ur+"**"),ur===""&&ne.setCursor(Vr.line,Vr.ch+2),ne.focus();case"italic":return ne.replaceSelection("*"+ur+"*"),ur===""&&ne.setCursor(Vr.line,Vr.ch+1),ne.focus();case"code":return ne.replaceSelection("`"+ur+"`"),ur===""&&ne.setCursor(Vr.line,Vr.ch+1),ne.focus();case"inline-latex":return ne.replaceSelection("`$$"+ur+"$$`"),ur===""&&ne.setCursor(Vr.line,Vr.ch+3),ne.focus();case"latex":return ne.replaceSelection("```latex\n"+ur+"\n```"),ne.setCursor(Vr.line+1,ur.length+1),ne.focus();case"line-break":return ne.replaceSelection(`
    `),ne.focus();case"list-ul":return ur===""?ne.replaceSelection("- "+ur):ne.replaceSelection(oa.map(function(wa){return wa===""?"":"- ".concat(wa)}).join(` `)),ne.focus();case"list-ol":return ur===""?ne.replaceSelection("1. "+ur):ne.replaceSelection(oa.map(function(wa,ei){return wa===""?"":"".concat(ei+1,". ").concat(wa)}).join(` `)),ne.focus();case"add-null-ch":return ur===""&&ne.setCursor(Vr.line,Vr.ch+1),ne.replaceSelection(ut),ne.focus();case"inster-template-1":return ur===""&&ne.setCursor(Vr.line,Vr.ch),ne.replaceSelection(vt),ne.focus();case"eraser":return ne.setValue(""),ne.focus();case"trigger-watch":return Xn(!Vn),ne.focus();case"trigger-full-screen":return zr(!qr),ne.focus();case Ue:ka(Ue);return;case ct:ka(ct);return;case Ne:ka(Ne);return;case ft:ka(ft);return;default:throw new Error}},[ne,Vn,qr]),Mo=Object(a.useCallback)(function(mr){ka("");switch(ya){case Ue:var Vr=mr.title,ur=mr.link;return ne.replaceSelection("[".concat(Vr,"](").concat(ur,")")),ne.focus();case ct:var oa=mr.language,wa=mr.content;return ne.replaceSelection(["```"+oa,wa,"```"].join(` `)),ne.focus();case Ne:var ei=mr.src,Ba=mr.alt;return Ba?ne.replaceSelection("![ ".concat(Ba," ]( ").concat(ei,' "').concat(Ba,'" )')):ne.replaceSelection("![,](".concat(ei,")")),ne.focus();case ft:for(var Ni=mr.row,Ma=mr.col,xa=mr.align,Po=` `,Za=0;Za300&&(Ni=300);var Ma=mt+Ni+"px";_i(Ma)}}return mr.addEventListener("mousedown",oa),document.addEventListener("mousemove",ei),document.addEventListener("mouseup",wa),function(){mr.removeEventListener("mousedown",oa),document.removeEventListener("mousemove",ei),document.removeEventListener("mouseup",wa)}}},[ne,pa]),Object(a.useEffect)(function(){_i(mt)},[mt]);var no=Ze(xt),hs=Ze(mi),xo={width:no,height:hs},Cs=Object(a.useMemo)(function(){if(qa){var mr=new Date(qa),Vr=mr.getHours(),ur=mr.getMinutes(),oa=mr.getSeconds();return Vr=Vr<10?"0"+Vr:Vr,ur=ur<10?"0"+ur:ur,oa=oa<10?"0"+oa:oa,"".concat(Vr,":").concat(ur,":").concat(oa)}return 0},[qa]);function ws(){window.sessionStorage.removeItem(Gt),$r(!1),Si(0)}function ho(){$r(!1),Si(0),ne.setValue(window.sessionStorage.getItem(Gt))}function As(mr,Vr){var ur=ne.getValue();ur=ur.replace(mr,Vr),dn(ur),ne==null||ne.setValue(ur)}return t.a.createElement(a.Fragment,null,t.a.createElement("div",{className:"markdown-editor-wrapper",ref:ri},t.a.createElement("div",{className:"markdown-editor-container ".concat(_e," ").concat(Vn?"on-preview":""," ").concat(Qe?"mini":""," ").concat(qr?"full-screen":""),style:xo},t.a.createElement(y,{insertTemp:bt,watch:Vn,fullScreen:qr,showNullButton:kr,onActionCallback:Wo,hidetoolBar:Ra,uuid:ua.current,setOpenPhones:function(){Pr.current=!0}}),t.a.createElement("div",{className:"markdown-editor-body"},t.a.createElement("div",{className:"codemirror-container"},t.a.createElement("textarea",{ref:Jr,placeholder:Xt})),Vn?t.a.createElement("div",{ref:mo,className:"preview-container"},Qt==="stex"&&t.a.createElement(P,{value:Kt}),Qt!=="stex"&&t.a.createElement(w.a,{edit:!0,value:Kt,replaces:As})):null))),fn?t.a.createElement("a",{ref:pa,className:"editor-resize"}):null,t.a.createElement(U.a,null,Pe[ya]?t.a.createElement(Q.a,{centered:!0,title:Pe[ya],visible:!0,onCancel:go,footer:null,className:"markdown-popup-form"},ii):null))}},P47w:function(Be,ee,v){var Z=v("hydK"),Q=Z.createElement,I=v("IMiH"),k=v("mFDi"),_=v("Fofx"),O=v("6GrX"),M=v("pzxd"),T=v("dqUG"),n=I.CMD,p=Array.prototype.join,a="none",t=Math.round,A=Math.sin,l=Math.cos,i=Math.PI,c=Math.PI*2,d=180/i,f=1e-4;function o(K){return t(K*1e4)/1e4}function u(K){return K-f}function E(K,$){var te=$?K.textFill:K.fill;return te!=null&&te!==a}function R(K,$){var te=$?K.textStroke:K.stroke;return te!=null&&te!==a}function w(K,$){$&&P(K,"transform","matrix("+p.call($,",")+")")}function P(K,$,te){(!te||te.type!=="linear"&&te.type!=="radial")&&K.setAttribute($,te)}function C(K,$,te){K.setAttributeNS("http://www.w3.org/1999/xlink",$,te)}function b(K,$,te,fe){if(E($,te)){var Ae=te?$.textFill:$.fill;Ae=Ae==="transparent"?a:Ae,P(K,"fill",Ae),P(K,"fill-opacity",$.fillOpacity!=null?$.fillOpacity*$.opacity:$.opacity)}else P(K,"fill",a);if(R($,te)){var ce=te?$.textStroke:$.stroke;ce=ce==="transparent"?a:ce,P(K,"stroke",ce);var ie=te?$.textStrokeWidth:$.lineWidth,ye=!te&&$.strokeNoScale?fe.getLineScale():1;P(K,"stroke-width",ie/ye),P(K,"paint-order",te?"stroke":"fill"),P(K,"stroke-opacity",$.strokeOpacity!=null?$.strokeOpacity:$.opacity);var le=$.lineDash;le?(P(K,"stroke-dasharray",$.lineDash.join(",")),P(K,"stroke-dashoffset",t($.lineDashOffset||0))):P(K,"stroke-dasharray",""),$.lineCap&&P(K,"stroke-linecap",$.lineCap),$.lineJoin&&P(K,"stroke-linejoin",$.lineJoin),$.miterLimit&&P(K,"stroke-miterlimit",$.miterLimit)}else P(K,"stroke",a)}function s(K){for(var $=[],te=K.data,fe=K.len(),Ae=0;Ae=c:-pe>=c),he=pe>0?pe%c:pe%c+c,Se=!1;et?Se=!0:u(Ke)?Se=!1:Se=he>=i===!!xe;var Ue=o(le+se*l(ae)),Ne=o(me+ge*A(ae));et&&(xe?pe=c-1e-4:pe=-c+1e-4,Se=!0,Ae===9&&$.push("M",Ue,Ne));var ct=o(le+se*l(ae+pe)),ft=o(me+ge*A(ae+pe));$.push("A",o(se),o(ge),t(Me*d),+Se,+xe,ct,ft);break;case n.Z:ie="Z";break;case n.R:var ct=o(te[Ae++]),ft=o(te[Ae++]),Ot=o(te[Ae++]),dt=o(te[Ae++]);$.push("M",ct,ft,"L",ct+Ot,ft,"L",ct+Ot,ft+dt,"L",ct,ft+dt,"L",ct,ft);break}ie&&$.push(ie);for(var Ut=0;Utjt){for(;dt255?255:s}function k(s){return s=Math.round(s),s<0?0:s>360?360:s}function _(s){return s<0?0:s>1?1:s}function O(s){return s.length&&s.charAt(s.length-1)==="%"?I(parseFloat(s)/100*255):I(parseInt(s,10))}function M(s){return s.length&&s.charAt(s.length-1)==="%"?_(parseFloat(s)/100):_(parseFloat(s))}function T(s,h,m){return m<0?m+=1:m>1&&(m-=1),m*6<1?s+(h-s)*m*6:m*2<1?h:m*3<2?s+(h-s)*(2/3-m)*6:s}function n(s,h,m){return s+(h-s)*m}function p(s,h,m,x,g){return s[0]=h,s[1]=m,s[2]=x,s[3]=g,s}function a(s,h){return s[0]=h[0],s[1]=h[1],s[2]=h[2],s[3]=h[3],s}var t=new Z(20),A=null;function l(s,h){A&&a(A,h),A=t.put(s,A||h.slice())}function i(s,h){if(!s)return;h=h||[];var m=t.get(s);if(m)return a(h,m);s=s+"";var x=s.replace(/ /g,"").toLowerCase();if(x in Q)return a(h,Q[x]),l(s,h),h;if(x.charAt(0)==="#"){if(x.length===4){var g=parseInt(x.substr(1),16);if(!(g>=0&&g<=4095)){p(h,0,0,0,1);return}return p(h,(g&3840)>>4|(g&3840)>>8,g&240|(g&240)>>4,g&15|(g&15)<<4,1),l(s,h),h}else if(x.length===7){var g=parseInt(x.substr(1),16);if(!(g>=0&&g<=16777215)){p(h,0,0,0,1);return}return p(h,(g&16711680)>>16,(g&65280)>>8,g&255,1),l(s,h),h}return}var y=x.indexOf("("),U=x.indexOf(")");if(y!==-1&&U+1===x.length){var N=x.substr(0,y),S=x.substr(y+1,U-(y+1)).split(","),H=1;switch(N){case"rgba":if(S.length!==4){p(h,0,0,0,1);return}H=M(S.pop());case"rgb":if(S.length!==3){p(h,0,0,0,1);return}return p(h,O(S[0]),O(S[1]),O(S[2]),H),l(s,h),h;case"hsla":if(S.length!==4){p(h,0,0,0,1);return}return S[3]=M(S[3]),c(S,h),l(s,h),h;case"hsl":if(S.length!==3){p(h,0,0,0,1);return}return c(S,h),l(s,h),h;default:return}}p(h,0,0,0,1);return}function c(s,h){var m=(parseFloat(s[0])%360+360)%360/360,x=M(s[1]),g=M(s[2]),y=g<=.5?g*(x+1):g+x-g*x,U=g*2-y;return h=h||[],p(h,I(T(U,y,m+1/3)*255),I(T(U,y,m)*255),I(T(U,y,m-1/3)*255),1),s.length===4&&(h[3]=s[3]),h}function d(s){if(!s)return;var h=s[0]/255,m=s[1]/255,x=s[2]/255,g=Math.min(h,m,x),y=Math.max(h,m,x),U=y-g,N=(y+g)/2,S,H;if(U===0)S=0,H=0;else{N<.5?H=U/(y+g):H=U/(2-y-g);var F=((y-h)/6+U/2)/U,B=((y-m)/6+U/2)/U,z=((y-x)/6+U/2)/U;h===y?S=z-B:m===y?S=1/3+F-z:x===y&&(S=2/3+B-F),S<0&&(S+=1),S>1&&(S-=1)}var K=[S*360,H,N];return s[3]!=null&&K.push(s[3]),K}function f(s,h){var m=i(s);if(m){for(var x=0;x<3;x++)h<0?m[x]=m[x]*(1-h)|0:m[x]=(255-m[x])*h+m[x]|0,m[x]>255?m[x]=255:s[x]<0&&(m[x]=0);return b(m,m.length===4?"rgba":"rgb")}}function o(s){var h=i(s);if(h)return((1<<24)+(h[0]<<16)+(h[1]<<8)+ +h[2]).toString(16).slice(1)}function u(s,h,m){if(!(h&&h.length)||!(s>=0&&s<=1))return;m=m||[];var x=s*(h.length-1),g=Math.floor(x),y=Math.ceil(x),U=h[g],N=h[y],S=x-g;return m[0]=I(n(U[0],N[0],S)),m[1]=I(n(U[1],N[1],S)),m[2]=I(n(U[2],N[2],S)),m[3]=_(n(U[3],N[3],S)),m}var E=u;function R(s,h,m){if(!(h&&h.length)||!(s>=0&&s<=1))return;var x=s*(h.length-1),g=Math.floor(x),y=Math.ceil(x),U=i(h[g]),N=i(h[y]),S=x-g,H=b([I(n(U[0],N[0],S)),I(n(U[1],N[1],S)),I(n(U[2],N[2],S)),_(n(U[3],N[3],S))],"rgba");return m?{color:H,leftIndex:g,rightIndex:y,value:x}:H}var w=R;function P(s,h,m,x){if(s=i(s),s)return s=d(s),h!=null&&(s[0]=k(h)),m!=null&&(s[1]=M(m)),x!=null&&(s[2]=M(x)),b(c(s),"rgba")}function C(s,h){if(s=i(s),s&&h!=null)return s[3]=_(h),b(s,"rgba")}function b(s,h){if(!s||!s.length)return;var m=s[0]+","+s[1]+","+s[2];return(h==="rgba"||h==="hsva"||h==="hsla")&&(m+=","+s[3]),h+"("+m+")"}ee.parse=i,ee.lift=f,ee.toHex=o,ee.fastLerp=u,ee.fastMapToColor=E,ee.lerp=R,ee.mapToColor=w,ee.modifyHSL=P,ee.modifyAlpha=C,ee.stringify=b},QuXc:function(Be,ee){var v=function(Q){this.colorStops=Q||[]};v.prototype={constructor:v,addColorStop:function(Q,I){this.colorStops.push({offset:Q,color:I})}};var Z=v;Be.exports=Z},RDYZ:function(Be,ee,v){var Z=v("dMvE");function Q(k){this._target=k.target,this._life=k.life||1e3,this._delay=k.delay||0,this._initialized=!1,this.loop=k.loop==null?!1:k.loop,this.gap=k.gap||0,this.easing=k.easing||"Linear",this.onframe=k.onframe,this.ondestroy=k.ondestroy,this.onrestart=k.onrestart,this._pausedTime=0,this._paused=!1}Q.prototype={constructor:Q,step:function(k,_){if(this._initialized||(this._startTime=k+this._delay,this._initialized=!0),this._paused){this._pausedTime+=_;return}var O=(k-this._startTime-this._pausedTime)/this._life;if(O<0)return;O=Math.min(O,1);var M=this.easing,T=typeof M=="string"?Z[M]:M,n=typeof T=="function"?T(O):O;return this.fire("frame",n),O===1?this.loop?(this.restart(k),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(k){var _=(k-this._startTime-this._pausedTime)%this._life;this._startTime=k-_+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(k,_){k="on"+k,this[k]&&this[k](this._target,_)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var I=Q;Be.exports=I},RMFE:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RXMa:function(Be,ee,v){var Z=v("y+Vt"),Q=Z.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(I,k){var _=k.cx,O=k.cy,M=Math.PI*2;I.moveTo(_+k.r,O),I.arc(_,O,k.r,0,M,!1),I.moveTo(_+k.r0,O),I.arc(_,O,k.r0,0,M,!0)}});Be.exports=Q},RotF:function(Be,ee,v){Be.exports=v("LSTS")},RxwV:function(Be,ee,v){"use strict";var Z=v("q1tI"),Q=v("uciX"),I=v("2W6z"),k=v.n(I),_=v("4IlW"),O=v("uK0f"),M=v.n(O);function T(ie,ye){if(ie===ye)return!0;if(!ie||!ye)return!1;var le=ie.length;if(ye.length!==le)return!1;for(var me=0;me0;(ft||ge.isLeaf===!1)&&(Ne+=" ".concat(Me,"-menu-item-expand"),ge.loading||(ct=Z.createElement("span",{className:"".concat(Me,"-menu-item-expand-icon")},Ke))),xe==="hover"&&(ft||ge.isLeaf===!1)&&(Ue={onMouseEnter:this.delayOnSelect.bind(this,he),onMouseLeave:this.delayOnSelect.bind(this),onClick:he}),this.isActiveOption(ge,ae)&&(Ne+=" ".concat(Me,"-menu-item-active"),Ue.ref=this.saveMenuItem(ae)),ge.disabled&&(Ne+=" ".concat(Me,"-menu-item-disabled"));var Ot=null;ge.loading&&(Ne+=" ".concat(Me,"-menu-item-loading"),Ot=et||null);var dt="";return"title"in ge?dt=ge.title:typeof ge[this.getFieldName("label")]=="string"&&(dt=ge[this.getFieldName("label")]),Z.createElement("li",Object.assign({key:ge[this.getFieldName("value")],className:Ne,title:dt},Ue,{role:"menuitem",onMouseDown:function(jt){return jt.preventDefault()}}),ge[this.getFieldName("label")],ct,Ot)}},{key:"getActiveOptions",value:function(ge){var ae=this,pe=this.props.options,Me=ge||this.props.activeValue;return M()(pe,function(xe,Ke){return xe[ae.getFieldName("value")]===Me[Ke]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var ge=this,ae=this.props.options,pe=this.getActiveOptions().map(function(Me){return Me[ge.getFieldName("children")]}).filter(function(Me){return!!Me});return pe.unshift(ae),pe}},{key:"delayOnSelect",value:function(ge){for(var ae=this,pe=arguments.length,Me=new Array(pe>1?pe-1:0),xe=1;xe=0)continue;if(!Object.prototype.propertyIsEnumerable.call(ie,me))continue;le[me]=ie[me]}}return le}function b(ie,ye){if(ie==null)return{};var le={},me=Object.keys(ie),se,ge;for(ge=0;ge=0)continue;le[se]=ie[se]}return le}function s(ie){return g(ie)||x(ie)||m(ie)||h()}function h(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(ie,ye){if(!ie)return;if(typeof ie=="string")return y(ie,ye);var le=Object.prototype.toString.call(ie).slice(8,-1);if(le==="Object"&&ie.constructor&&(le=ie.constructor.name),le==="Map"||le==="Set")return Array.from(ie);if(le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(le))return y(ie,ye)}function x(ie){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(ie))return Array.from(ie)}function g(ie){if(Array.isArray(ie))return y(ie)}function y(ie,ye){(ye==null||ye>ie.length)&&(ye=ie.length);for(var le=0,me=new Array(ye);le=et.length?0:Se):(Se-=1,Se=Se<0?et.length-1:Se):Se=0,xe[Ke]=et[Se][ge.getFieldName("value")]}else if(pe.keyCode===_.a.LEFT||pe.keyCode===_.a.BACKSPACE)pe.preventDefault(),xe.splice(xe.length-1,1);else if(pe.keyCode===_.a.RIGHT)pe.preventDefault(),et[he]&&et[he][ge.getFieldName("children")]&&xe.push(et[he][ge.getFieldName("children")][0][ge.getFieldName("value")]);else if(pe.keyCode===_.a.ESC||pe.keyCode===_.a.TAB){ge.setPopupVisible(!1);return}(!xe||xe.length===0)&&ge.setPopupVisible(!1);var Ue=ge.getActiveOptions(xe),Ne=Ue[Ue.length-1];ge.handleMenuSelect(Ne,Ue.length-1,pe),ge.props.onKeyDown&&ge.props.onKeyDown(pe)},ge.saveTrigger=function(pe){ge.trigger=pe};var ae=[];return"value"in se?ae=se.value||[]:"defaultValue"in se&&(ae=se.defaultValue||[]),k()(!("filedNames"in se),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),ge.state={popupVisible:se.popupVisible,activeValue:ae,value:ae,prevProps:se},ge.defaultFieldNames={label:"label",value:"value",children:"children"},ge}return S(me,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(ge){var ae=this.defaultFieldNames,pe=this.props,Me=pe.fieldNames,xe=pe.filedNames;return"filedNames"in this.props?xe[ge]||ae[ge]:Me[ge]||ae[ge]}},{key:"getFieldNames",value:function(){var ge=this.props,ae=ge.fieldNames,pe=ge.filedNames;return"filedNames"in this.props?pe:ae}},{key:"getCurrentLevelOptions",value:function(){var ge=this,ae=this.props.options,pe=ae===void 0?[]:ae,Me=this.state.activeValue,xe=Me===void 0?[]:Me,Ke=M()(pe,function(et,he){return et[ge.getFieldName("value")]===xe[he]},{childrenKeyName:this.getFieldName("children")});return Ke[Ke.length-2]?Ke[Ke.length-2][this.getFieldName("children")]:s(pe).filter(function(et){return!et.disabled})}},{key:"getActiveOptions",value:function(ge){var ae=this;return M()(this.props.options||[],function(pe,Me){return pe[ae.getFieldName("value")]===ge[Me]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var ge=this.props,ae=ge.prefixCls,pe=ge.transitionName,Me=ge.popupClassName,xe=ge.options,Ke=xe===void 0?[]:xe,et=ge.disabled,he=ge.builtinPlacements,Se=ge.popupPlacement,Ue=ge.children,Ne=ge.dropdownRender,ct=C(ge,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),ft=Z.createElement("div",null),Ot="";Ke&&Ke.length>0?ft=Z.createElement(E,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):Ot=" ".concat(ae,"-menus-empty");var dt=ft;return Ne&&(dt=Ne(ft)),Z.createElement(Q.a,Object.assign({ref:this.saveTrigger},ct,{popupPlacement:Se,builtinPlacements:he,popupTransitionName:pe,action:et?[]:["click"],popupVisible:et?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(ae,"-menus"),popupClassName:Me+Ot,popup:dt}),Z.cloneElement(Ue,{onKeyDown:this.handleKeyDown,tabIndex:et?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(ge,ae){var pe=ae.prevProps,Me=pe===void 0?{}:pe,xe={prevProps:ge};return"value"in ge&&!T(Me.value,ge.value)&&(xe.value=ge.value||[],"loadData"in ge||(xe.activeValue=ge.value||[])),"popupVisible"in ge&&(xe.popupVisible=ge.popupVisible),xe}}]),me}(Z.Component);return ie.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:w,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},ie}(),Ae=fe,ce=ee.a=Ae},"SA+Z":function(Be,ee,v){var Z=v("wTVA"),Q=v("EbDI"),I=v("ZhPi"),k=v("wkBT");function _(O){return Z(O)||Q(O)||I(O)||k()}Be.exports=_,Be.exports.__esModule=!0,Be.exports.default=Be.exports},SJMd:function(Be,ee){/** * @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 v,Z,Q,I=!1,k,_;window.PR_SHOULD_USE_CONTINUATION=!0;var O,M;(function(){var T=window,n=["break,continue,do,else,for,if,return,while"],p=[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"],a=[p,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],t=[a,"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"],A=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],l=[a,"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"],i="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",c=[a,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],d="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",f=[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"],o=[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"],u=[n,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],E=[t,l,A,c,d,f,o,u],R=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,w="str",P="kwd",C="com",b="typ",s="lit",h="pun",m="pln",x="tag",g="dec",y="src",U="atn",N="atv",S="nocode",H="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function F(xe){for(var Ke=0,et=!1,he=!1,Se=0,Ue=xe.length;Se122||(we<65||He>90||Et.push([Math.max(65,He)|32,Math.min(we,90)|32]),we<97||He>122||Et.push([Math.max(97,He)&~32,Math.min(we,122)&~32]))}}Et.sort(function(Xe,gt){return Xe[0]-gt[0]||gt[1]-Xe[1]});for(var Le=[],Pe=[],vt=0;vtWe[0]&&(We[1]+1>We[0]&&ut.push("-"),ut.push(Ot(We[1])))}return ut.push("]"),ut.join("")}function Ut(ze){for(var Ve=ze.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")),Et=Ve.length,Rt=[],ut=0,vt=0;ut=2&&He==="["?Ve[ut]=dt(Ze):He!=="\\"&&(Ve[ut]=Ze.replace(/[a-zA-Z]/g,function(Pe){var We=Pe.charCodeAt(0);return"["+String.fromCharCode(We&~32,We|32)+"]"}))}return Ve.join("")}for(var jt=[],Se=0,Ue=xe.length;Se=0;)et[jt.charAt(ze)]=Ut;var Ve=Ut[1],Et=""+Ve;ft.hasOwnProperty(Et)||(ct.push(Ve),ft[Et]=null)}ct.push(/[\0-\uffff]/),he=F(ct)})();var Se=Ke.length,Ue=function(Ne){for(var ct=Ne.sourceCode,ft=Ne.basePos,Ot=Ne.sourceNode,dt=[ft,m],Ut=0,jt=ct.match(he)||[],ze={},Ve=0,Et=jt.length;Ve=5&&ut.substring(0,5)==="lang-",Ze&&!(vt&&typeof vt[1]=="string")&&(Ze=!1,ut=y),Ze||(ze[Rt]=ut)}var we=Ut;if(Ut+=Rt.length,!Ze)dt.push(ft+we,ut);else{var Le=vt[1],Pe=Rt.indexOf(Le),We=Pe+Le.length;vt[2]&&(We=Rt.length-vt[2].length,Pe=We-Le.length);var Xe=ut.substring(5);z(Ot,ft+we,Rt.substring(0,Pe),Ue,dt),z(Ot,ft+we+Pe,Le,me(Xe,Le),dt),z(Ot,ft+we+We,Rt.substring(We),Ue,dt)}}Ne.decorations=dt};return Ue}function fe(xe){var Ke=[],et=[];xe.tripleQuotedStrings?Ke.push([w,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):xe.multiLineStrings?Ke.push([w,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Ke.push([w,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),xe.verbatimStrings&&et.push([w,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var he=xe.hashComments;he&&(xe.cStyleComments?(he>1?Ke.push([C,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Ke.push([C,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),et.push([w,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Ke.push([C,/^#[^\r\n]*/,null,"#"])),xe.cStyleComments&&(et.push([C,/^\/\/[^\r\n]*/,null]),et.push([C,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Se=xe.regexLiterals;if(Se){var Ue=Se>1?"":` \r`,Ne=Ue?".":"[\\S\\s]",ct="/(?=[^/*"+Ue+"])(?:[^/\\x5B\\x5C"+Ue+"]|\\x5C"+Ne+"|\\x5B(?:[^\\x5C\\x5D"+Ue+"]|\\x5C"+Ne+")*(?:\\x5D|$))+/";et.push(["lang-regex",RegExp("^"+H+"("+ct+")")])}var ft=xe.types;ft&&et.push([b,ft]);var Ot=(""+xe.keywords).replace(/^ | $/g,"");Ot.length&&et.push([P,new RegExp("^(?:"+Ot.replace(/[\s,]+/g,"|")+")\\b"),null]),Ke.push([m,/^\s+/,null,` \r \xA0`]);var dt="^.[^\\s\\w.$@'\"`/\\\\]*";return xe.regexLiterals&&(dt+="(?!s*/)"),et.push([s,/^@[a-z_$][a-z_$@0-9]*/i,null],[b,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[m,/^[a-z_$][a-z_$@0-9]*/i,null],[s,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[m,/^\\[\s\S]?/,null],[h,new RegExp(dt),null]),te(Ke,et)}var Ae=fe({keywords:E,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ce(xe,Ke,et){for(var he=/(?:^|\s)nocode(?:\s|$)/,Se=/\r\n?|\n/,Ue=xe.ownerDocument,Ne=Ue.createElement("li");xe.firstChild;)Ne.appendChild(xe.firstChild);var ct=[Ne];function ft(Ve){var Et=Ve.nodeType;if(Et==1&&!he.test(Ve.className))if(Ve.nodeName==="br")Ot(Ve),Ve.parentNode&&Ve.parentNode.removeChild(Ve);else for(var Rt=Ve.firstChild;Rt;Rt=Rt.nextSibling)ft(Rt);else if((Et==3||Et==4)&&et){var ut=Ve.nodeValue,vt=ut.match(Se);if(vt){var Ze=ut.substring(0,vt.index);Ve.nodeValue=Ze;var ke=ut.substring(vt.index+vt[0].length);if(ke){var He=Ve.parentNode;He.insertBefore(Ue.createTextNode(ke),Ve.nextSibling)}Ot(Ve),Ze||Ve.parentNode.removeChild(Ve)}}}function Ot(Ve){for(;!Ve.nextSibling;)if(Ve=Ve.parentNode,!Ve)return;function Et(vt,Ze){var ke=Ze?vt.cloneNode(!1):vt,He=vt.parentNode;if(He){var we=Et(He,1),Le=vt.nextSibling;we.appendChild(ke);for(var Pe=Le;Pe;Pe=Le)Le=Pe.nextSibling,we.appendChild(Pe)}return ke}for(var Rt=Et(Ve.nextSibling,0),ut;(ut=Rt.parentNode)&&ut.nodeType===1;)Rt=ut;ct.push(Rt)}for(var dt=0;dt=He&&(ft+=2),Ue>=we&&(Ut+=2)}}finally{ut&&(ut.style.display=vt)}}var ye={};function le(xe,Ke){for(var et=Ke.length;--et>=0;){var he=Ke[et];ye.hasOwnProperty(he)?T.console&&console.warn("cannot override language handler %s",he):ye[he]=xe}}function me(xe,Ke){return xe&&ye.hasOwnProperty(xe)||(xe=/^\s*]*(?:>|$)/],[C,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[h,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),le(te([[m,/^[\s]+/,null,` \r `],[N,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[x,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[U,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[h,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),le(te([],[[N,/^[\s\S]+/]]),["uq.val"]),le(fe({keywords:t,hashComments:!0,cStyleComments:!0,types:R}),["c","cc","cpp","cxx","cyc","m"]),le(fe({keywords:"null,true,false"}),["json"]),le(fe({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:R}),["cs"]),le(fe({keywords:A,cStyleComments:!0}),["java"]),le(fe({keywords:u,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),le(fe({keywords:f,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),le(fe({keywords:d,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),le(fe({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),le(fe({keywords:c,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),le(fe({keywords:i,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),le(te([],[[w,/^[\s\S]+/]]),["regex"]);function se(xe){var Ke=xe.langExtension;try{var et=B(xe.sourceNode,xe.pre),he=et.sourceCode;xe.sourceCode=he,xe.spans=et.spans,xe.basePos=0,me(Ke,he)(xe),ie(xe)}catch(Se){T.console&&console.log(Se&&Se.stack||Se)}}function ge(xe,Ke,et){var he=et||!1,Se=Ke||null,Ue=document.createElement("div");Ue.innerHTML="
    "+xe+"
    ",Ue=Ue.firstChild,he&&ce(Ue,he,!0);var Ne={langExtension:Se,numberLines:he,sourceNode:Ue,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return se(Ne),Ue.innerHTML}function ae(xe,Ke){var et=Ke||document.body,he=et.ownerDocument||document;function Se(ke){return et.getElementsByTagName(ke)}for(var Ue=[Se("pre"),Se("code"),Se("xmp")],Ne=[],ct=0;ct-O&&sO||s<-O}function i(s,h,m,x,g){var y=1-g;return y*y*(y*s+3*g*h)+g*g*(g*x+3*y*m)}function c(s,h,m,x,g){var y=1-g;return 3*(((h-s)*y+2*(m-h)*g)*y+(x-m)*g*g)}function d(s,h,m,x,g,y){var U=x+3*(h-m)-s,N=3*(m-h*2+s),S=3*(h-s),H=s-g,F=N*N-3*U*S,B=N*S-9*U*H,z=S*S-3*N*H,K=0;if(A(F)&&A(B))if(A(N))y[0]=0;else{var $=-S/N;$>=0&&$<=1&&(y[K++]=$)}else{var te=B*B-4*F*z;if(A(te)){var fe=B/F,$=-N/U+fe,Ae=-fe/2;$>=0&&$<=1&&(y[K++]=$),Ae>=0&&Ae<=1&&(y[K++]=Ae)}else if(te>0){var ce=_(te),ie=F*N+1.5*U*(-B+ce),ye=F*N+1.5*U*(-B-ce);ie<0?ie=-k(-ie,n):ie=k(ie,n),ye<0?ye=-k(-ye,n):ye=k(ye,n);var $=(-N-(ie+ye))/(3*U);$>=0&&$<=1&&(y[K++]=$)}else{var le=(2*F*N-3*U*B)/(2*_(F*F*F)),me=Math.acos(le)/3,se=_(F),ge=Math.cos(me),$=(-N-2*se*ge)/(3*U),Ae=(-N+se*(ge+T*Math.sin(me)))/(3*U),ae=(-N+se*(ge-T*Math.sin(me)))/(3*U);$>=0&&$<=1&&(y[K++]=$),Ae>=0&&Ae<=1&&(y[K++]=Ae),ae>=0&&ae<=1&&(y[K++]=ae)}}return K}function f(s,h,m,x,g){var y=6*m-12*h+6*s,U=9*h+3*x-3*s-9*m,N=3*h-3*s,S=0;if(A(U)){if(l(y)){var H=-N/y;H>=0&&H<=1&&(g[S++]=H)}}else{var F=y*y-4*U*N;if(A(F))g[0]=-y/(2*U);else if(F>0){var B=_(F),H=(-y+B)/(2*U),z=(-y-B)/(2*U);H>=0&&H<=1&&(g[S++]=H),z>=0&&z<=1&&(g[S++]=z)}}return S}function o(s,h,m,x,g,y){var U=(h-s)*g+s,N=(m-h)*g+h,S=(x-m)*g+m,H=(N-U)*g+U,F=(S-N)*g+N,B=(F-H)*g+H;y[0]=s,y[1]=U,y[2]=H,y[3]=B,y[4]=B,y[5]=F,y[6]=S,y[7]=x}function u(s,h,m,x,g,y,U,N,S,H,F){var B,z=.005,K=Infinity,$,te,fe,Ae;p[0]=S,p[1]=H;for(var ce=0;ce<1;ce+=.05)a[0]=i(s,m,g,U,ce),a[1]=i(h,x,y,N,ce),fe=I(p,a),fe=0&&fe=0&&H<=1&&(g[S++]=H)}}else{var F=U*U-4*y*N;if(A(F)){var H=-U/(2*y);H>=0&&H<=1&&(g[S++]=H)}else if(F>0){var B=_(F),H=(-U+B)/(2*y),z=(-U-B)/(2*y);H>=0&&H<=1&&(g[S++]=H),z>=0&&z<=1&&(g[S++]=z)}}return S}function P(s,h,m){var x=s+m-2*h;return x===0?.5:(s-h)/x}function C(s,h,m,x,g){var y=(h-s)*x+s,U=(m-h)*x+h,N=(U-y)*x+y;g[0]=s,g[1]=y,g[2]=N,g[3]=N,g[4]=U,g[5]=m}function b(s,h,m,x,g,y,U,N,S){var H,F=.005,B=Infinity;p[0]=U,p[1]=N;for(var z=0;z<1;z+=.05){a[0]=E(s,m,g,z),a[1]=E(h,x,y,z);var K=I(p,a);K=0&&K=0;--u)if(o[u]===f)return!0;return!1}),d):null:d[0]},A.prototype.update=function(i,c){if(!i)return;var d=this.getDefs(!1);if(i[this._domName]&&d.contains(i[this._domName]))typeof c=="function"&&c(i);else{var f=this.add(i);f&&(i[this._domName]=f)}},A.prototype.addDom=function(i){var c=this.getDefs(!0);c.appendChild(i)},A.prototype.removeDom=function(i){var c=this.getDefs(!1);c&&i[this._domName]&&(c.removeChild(i[this._domName]),i[this._domName]=null)},A.prototype.getDoms=function(){var i=this.getDefs(!1);if(!i)return[];var c=[];return I.each(this._tagNames,function(d){var f=i.getElementsByTagName(d);c=c.concat([].slice.call(f))}),c},A.prototype.markAllUnused=function(){var i=this.getDoms(),c=this;I.each(i,function(d){d[c._markLabel]=a})},A.prototype.markUsed=function(i){i&&(i[this._markLabel]=t)},A.prototype.removeUnused=function(){var i=this.getDefs(!1);if(!i)return;var c=this.getDoms(),d=this;I.each(c,function(f){f[d._markLabel]!==t&&i.removeChild(f)})},A.prototype.getSvgProxy=function(i){return i instanceof k?T:i instanceof _?n:i instanceof O?p:T},A.prototype.getTextSvgElement=function(i){return i.__textSvgEl},A.prototype.getSvgElement=function(i){return i.__svgEl};var l=A;Be.exports=l},T6xi:function(Be,ee,v){var Z=v("YgsL"),Q=v("nCxF");function I(k,_,O){var M=_.points,T=_.smooth;if(M&&M.length>=2){if(T&&T!=="spline"){var n=Q(M,T,O,_.smoothConstraint);k.moveTo(M[0][0],M[0][1]);for(var p=M.length,a=0;a<(O?p:p-1);a++){var t=n[a*2],A=n[a*2+1],l=M[(a+1)%p];k.bezierCurveTo(t[0],t[1],A[0],A[1],l[0],l[1])}}else{T==="spline"&&(M=Z(M,O)),k.moveTo(M[0][0],M[0][1]);for(var a=1,i=M.length;a=0),_.set("isFirefox",k.indexOf("Firefox")>=0),_.set("isChrome",k.indexOf("Chrome")>=0),_.set("isSafari",k.indexOf("Safari")>=0);const O=Object.prototype.hasOwnProperty;class M{static has(S){return t.create(S)}static equals(S,H){return A.create(S,H)}static regex(S,H){return w.create(S,H)}static not(S){return d.create(S)}static and(...S){return b.create(S,null)}static or(...S){return s.create(S,null,!0)}static deserialize(S,H=!1){return S?this._deserializeOrExpression(S,H):void 0}static _deserializeOrExpression(S,H){let F=S.split("||");return s.create(F.map(B=>this._deserializeAndExpression(B,H)),null,!0)}static _deserializeAndExpression(S,H){let F=S.split("&&");return b.create(F.map(B=>this._deserializeOne(B,H)),null)}static _deserializeOne(S,H){if(S=S.trim(),S.indexOf("!=")>=0){let F=S.split("!=");return c.create(F[0].trim(),this._deserializeValue(F[1],H))}if(S.indexOf("==")>=0){let F=S.split("==");return A.create(F[0].trim(),this._deserializeValue(F[1],H))}if(S.indexOf("=~")>=0){let F=S.split("=~");return w.create(F[0].trim(),this._deserializeRegexValue(F[1],H))}if(S.indexOf(" in ")>=0){let F=S.split(" in ");return l.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(S)){const F=S.split(">=");return u.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(S)){const F=S.split(">");return o.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(S)){const F=S.split("<=");return R.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(S)){const F=S.split("<");return E.create(F[0].trim(),F[1].trim())}return/^\!\s*/.test(S)?d.create(S.substr(1).trim()):t.create(S)}static _deserializeValue(S,H){if(S=S.trim(),S==="true")return!0;if(S==="false")return!1;let F=/^'([^']*)'$/.exec(S);return F?F[1].trim():S}static _deserializeRegexValue(S,H){if(Object(Q.C)(S)){if(H)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let F=S.indexOf("/"),B=S.lastIndexOf("/");if(F===B||F<0){if(H)throw new Error(`bad regexp-value '${S}', missing /-enclosure`);return console.warn(`bad regexp-value '${S}', missing /-enclosure`),null}let z=S.slice(F+1,B),K=S[B+1]==="i"?"i":"";try{return new RegExp(z,K)}catch($){if(H)throw new Error(`bad regexp-value '${S}', parse error: ${$}`);return console.warn(`bad regexp-value '${S}', parse error: ${$}`),null}}}function T(S,H){const F=S?S.substituteConstants():void 0,B=H?H.substituteConstants():void 0;return!F&&!B?!0:!F||!B?!1:F.equals(B)}function n(S,H){return S.cmp(H)}class p{constructor(){this.type=0}cmp(S){return this.type-S.type}equals(S){return S.type===this.type}substituteConstants(){return this}evaluate(S){return!1}serialize(){return"false"}keys(){return[]}negate(){return a.INSTANCE}}p.INSTANCE=new p;class a{constructor(){this.type=1}cmp(S){return this.type-S.type}equals(S){return S.type===this.type}substituteConstants(){return this}evaluate(S){return!0}serialize(){return"true"}keys(){return[]}negate(){return p.INSTANCE}}a.INSTANCE=new a;class t{constructor(S,H){this.key=S,this.negated=H,this.type=2}static create(S,H=null){const F=_.get(S);return typeof F=="boolean"?F?a.INSTANCE:p.INSTANCE:new t(S,H)}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,S.key)}equals(S){return S.type===this.type?this.key===S.key:!1}substituteConstants(){const S=_.get(this.key);return typeof S=="boolean"?S?a.INSTANCE:p.INSTANCE:this}evaluate(S){return!!S.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=d.create(this.key,this)),this.negated}}class A{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=4}static create(S,H,F=null){if(typeof H=="boolean")return H?t.create(S,F):d.create(S,F);const B=_.get(S);if(typeof B=="boolean"){const z=B?"true":"false";return H===z?a.INSTANCE:p.INSTANCE}return new A(S,H,F)}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){const S=_.get(this.key);if(typeof S=="boolean"){const H=S?"true":"false";return this.value===H?a.INSTANCE:p.INSTANCE}return this}evaluate(S){return S.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}class l{constructor(S,H){this.key=S,this.valueKey=H,this.type=10,this.negated=null}static create(S,H){return new l(S,H)}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.valueKey,S.key,S.valueKey)}equals(S){return S.type===this.type?this.key===S.key&&this.valueKey===S.valueKey:!1}substituteConstants(){return this}evaluate(S){const H=S.getValue(this.valueKey),F=S.getValue(this.key);return Array.isArray(H)?H.indexOf(F)>=0:typeof F=="string"&&typeof H=="object"&&H!==null?O.call(H,F):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=i.create(this)),this.negated}}class i{constructor(S){this._actual=S,this.type=11}static create(S){return new i(S)}cmp(S){return S.type!==this.type?this.type-S.type:this._actual.cmp(S._actual)}equals(S){return S.type===this.type?this._actual.equals(S._actual):!1}substituteConstants(){return this}evaluate(S){return!this._actual.evaluate(S)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class c{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=5}static create(S,H,F=null){if(typeof H=="boolean")return H?d.create(S,F):t.create(S,F);const B=_.get(S);if(typeof B=="boolean"){const z=B?"true":"false";return H===z?p.INSTANCE:a.INSTANCE}return new c(S,H,F)}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){const S=_.get(this.key);if(typeof S=="boolean"){const H=S?"true":"false";return this.value===H?p.INSTANCE:a.INSTANCE}return this}evaluate(S){return S.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class d{constructor(S,H){this.key=S,this.negated=H,this.type=3}static create(S,H=null){const F=_.get(S);return typeof F=="boolean"?F?p.INSTANCE:a.INSTANCE:new d(S,H)}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,S.key)}equals(S){return S.type===this.type?this.key===S.key:!1}substituteConstants(){const S=_.get(this.key);return typeof S=="boolean"?S?p.INSTANCE:a.INSTANCE:this}evaluate(S){return!S.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=t.create(this.key,this)),this.negated}}function f(S,H){if(typeof S=="string"){const F=parseFloat(S);isNaN(F)||(S=F)}return typeof S=="string"||typeof S=="number"?H(S):p.INSTANCE}class o{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=12}static create(S,H,F=null){return f(H,B=>new o(S,B,F))}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}class u{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=13}static create(S,H,F=null){return f(H,B=>new u(S,B,F))}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this.value,this)),this.negated}}class E{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=14}static create(S,H,F=null){return f(H,B=>new E(S,B,F))}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))new R(S,B,F))}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=o.create(this.key,this.value,this)),this.negated}}class w{constructor(S,H){this.key=S,this.regexp=H,this.type=7,this.negated=null}static create(S,H){return new w(S,H)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.keyS.key)return 1;const H=this.regexp?this.regexp.source:"",F=S.regexp?S.regexp.source:"";return HF?1:0}equals(S){if(S.type===this.type){const H=this.regexp?this.regexp.source:"",F=S.regexp?S.regexp.source:"";return this.key===S.key&&H===F}return!1}substituteConstants(){return this}evaluate(S){let H=S.getValue(this.key);return this.regexp?this.regexp.test(H):!1}serialize(){const S=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${S}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this)),this.negated}}class P{constructor(S){this._actual=S,this.type=8}static create(S){return new P(S)}cmp(S){return S.type!==this.type?this.type-S.type:this._actual.cmp(S._actual)}equals(S){return S.type===this.type?this._actual.equals(S._actual):!1}substituteConstants(){return this}evaluate(S){return!this._actual.evaluate(S)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function C(S){let H=null;for(let F=0,B=S.length;FS.expr.length)return 1;for(let H=0,F=this.expr.length;H1;){const z=F[F.length-1];if(z.type!==9)break;F.pop();const K=F.pop(),$=F.length===0,te=s.create(z.expr.map(fe=>b.create([fe,K],null)),null,$);te&&(F.push(te),F.sort(n))}return F.length===1?F[0]:new b(F,H)}serialize(){return this.expr.map(S=>S.serialize()).join(" && ")}keys(){const S=[];for(let H of this.expr)S.push(...H.keys());return S}negate(){if(!this.negated){const S=[];for(let H of this.expr)S.push(H.negate());this.negated=s.create(S,this,!0)}return this.negated}}class s{constructor(S,H){this.expr=S,this.negated=H,this.type=9}static create(S,H,F){return s._normalizeArr(S,H,F)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.expr.lengthS.expr.length)return 1;for(let H=0,F=this.expr.length;HS.serialize()).join(" || ")}keys(){const S=[];for(let H of this.expr)S.push(...H.keys());return S}negate(){if(!this.negated){let S=[];for(let H of this.expr)S.push(H.negate());for(;S.length>1;){const H=S.shift(),F=S.shift(),B=[];for(const K of N(H))for(const $ of N(F))B.push(b.create([K,$],null));const z=S.length===0;S.unshift(s.create(B,null,z))}this.negated=S[0]}return this.negated}}class h extends t{constructor(S,H,F){super(S,null);this._defaultValue=H,typeof F=="object"?h._info.push(Object.assign(Object.assign({},F),{key:S})):F!==!0&&h._info.push({key:S,description:F,type:H!=null?typeof H:void 0})}static all(){return h._info.values()}bindTo(S){return S.createKey(this.key,this._defaultValue)}getValue(S){return S.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(S){return A.create(this.key,S)}}h._info=[];const m=Object(I.c)("contextKeyService"),x="setContext";function g(S,H){return SH?1:0}function y(S,H,F,B){return SF?1:HB?1:0}function U(S,H){if(H.type===6&&S.type!==9&&S.type!==6){for(const z of H.expr)if(S.equals(z))return!0}const F=S.negate(),B=N(F).concat(N(H));B.sort(n);for(let z=0;z=0;l--)if(this.__items[l].match(A))return!0;return!1},p.prototype.set_indent=function(A,l){this.is_empty()&&(this.__indent_count=A||0,this.__alignment_count=l||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.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)},p.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},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var A=this.__parent.current_line;return A.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),A.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),A.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,A.__items[0]===" "&&(A.__items.splice(0,1),A.__character_count-=1),!0}return!1},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(A){this.__items.push(A);var l=A.lastIndexOf(` `);l!==-1?this.__character_count=A.length-l:this.__character_count+=A.length},p.prototype.pop=function(){var A=null;return this.is_empty()||(A=this.__items.pop(),this.__character_count-=A.length),A},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.prototype.toString=function(){var A="";return this.is_empty()?this.__parent.indent_empty_lines&&(A=this.__parent.get_indent_string(this.__indent_count)):(A=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),A+=this.__items.join("")),A};function a(A,l){this.__cache=[""],this.__indent_size=A.indent_size,this.__indent_string=A.indent_char,A.indent_with_tabs||(this.__indent_string=new Array(A.indent_size+1).join(A.indent_char)),l=l||"",A.indent_level>0&&(l=new Array(A.indent_level+1).join(this.__indent_string)),this.__base_string=l,this.__base_string_length=l.length}a.prototype.get_indent_size=function(A,l){var i=this.__base_string_length;return l=l||0,A<0&&(i=0),i+=A*this.__indent_size,i+=l,i},a.prototype.get_indent_string=function(A,l){var i=this.__base_string;return l=l||0,A<0&&(A=0,i=""),l+=A*this.__indent_size,this.__ensure_cache(l),i+=this.__cache[l],i},a.prototype.__ensure_cache=function(A){for(;A>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var A=this.__cache.length,l=0,i="";this.__indent_size&&A>=this.__indent_size&&(l=Math.floor(A/this.__indent_size),A-=l*this.__indent_size,i=new Array(l+1).join(this.__indent_string)),A&&(i+=new Array(A+1).join(" ")),this.__cache.push(i)};function t(A,l){this.__indent_cache=new a(A,l),this.raw=!1,this._end_with_newline=A.end_with_newline,this.indent_size=A.indent_size,this.wrap_line_length=A.wrap_line_length,this.indent_empty_lines=A.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},t.prototype.get_line_number=function(){return this.__lines.length},t.prototype.get_indent_string=function(A,l){return this.__indent_cache.get_indent_string(A,l)},t.prototype.get_indent_size=function(A,l){return this.__indent_cache.get_indent_size(A,l)},t.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},t.prototype.add_new_line=function(A){return this.is_empty()||!A&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},t.prototype.get_code=function(A){this.trim(!0);var l=this.current_line.pop();l&&(l[l.length-1]===` `&&(l=l.replace(/\n+$/g,"")),this.current_line.push(l)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(` `);return A!==` `&&(i=i.replace(/[\n]/g,A)),i},t.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},t.prototype.set_indent=function(A,l){return A=A||0,l=l||0,this.next_line.set_indent(A,l),this.__lines.length>1?(this.current_line.set_indent(A,l),!0):(this.current_line.set_indent(),!1)},t.prototype.add_raw_token=function(A){for(var l=0;l1&&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},t.prototype.just_added_newline=function(){return this.current_line.is_empty()},t.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},t.prototype.ensure_empty_line_above=function(A,l){for(var i=this.__lines.length-2;i>=0;){var c=this.__lines[i];if(c.is_empty())break;if(c.item(0).indexOf(A)!==0&&c.item(-1)!==l){this.__lines.splice(i+1,0,new p(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},n.exports.Output=t},,,,function(n){function p(A,l){this.raw_options=a(A,l),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}p.prototype._get_array=function(A,l){var i=this.raw_options[A],c=l||[];return typeof i=="object"?i!==null&&typeof i.concat=="function"&&(c=i.concat()):typeof i=="string"&&(c=i.split(/[^a-zA-Z0-9_\/\-]+/)),c},p.prototype._get_boolean=function(A,l){var i=this.raw_options[A],c=i===void 0?!!l:!!i;return c},p.prototype._get_characters=function(A,l){var i=this.raw_options[A],c=l||"";return typeof i=="string"&&(c=i.replace(/\\r/,"\r").replace(/\\n/,` `).replace(/\\t/," ")),c},p.prototype._get_number=function(A,l){var i=this.raw_options[A];l=parseInt(l,10),isNaN(l)&&(l=0);var c=parseInt(i,10);return isNaN(c)&&(c=l),c},p.prototype._get_selection=function(A,l,i){var c=this._get_selection_list(A,l,i);if(c.length!==1)throw new Error("Invalid Option Value: The option '"+A+`' can only be one of the following values: `+l+` You passed in: '`+this.raw_options[A]+"'");return c[0]},p.prototype._get_selection_list=function(A,l,i){if(!l||l.length===0)throw new Error("Selection list cannot be empty.");if(i=i||[l[0]],!this._is_valid_selection(i,l))throw new Error("Invalid Default Value!");var c=this._get_array(A,i);if(!this._is_valid_selection(c,l))throw new Error("Invalid Option Value: The option '"+A+`' can contain only the following values: `+l+` You passed in: '`+this.raw_options[A]+"'");return c},p.prototype._is_valid_selection=function(A,l){return A.length&&l.length&&!A.some(function(i){return l.indexOf(i)===-1})};function a(A,l){var i={};A=t(A);var c;for(c in A)c!==l&&(i[c]=A[c]);if(l&&A[l])for(c in A[l])i[c]=A[l][c];return i}function t(A){var l={},i;for(i in A){var c=i.replace(/-/g,"_");l[c]=A[i]}return l}n.exports.Options=p,n.exports.normalizeOpts=t,n.exports.mergeOpts=a},,function(n){var p=RegExp.prototype.hasOwnProperty("sticky");function a(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position=0&&t=0&&A=t.length&&this.__input.substring(A-t.length,A).toLowerCase()===t},n.exports.InputScanner=a},,,,,function(n){function p(a,t){a=typeof a=="string"?a:a.source,t=typeof t=="string"?t:t.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+t,"g")}p.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var A=this.__directive_pattern.exec(a);A;)t[A[1]]=A[2],A=this.__directive_pattern.exec(a);return t},p.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},n.exports.Directives=p},,function(n,p,a){var t=a(16).Beautifier,A=a(17).Options;function l(i,c){var d=new t(i,c);return d.beautify()}n.exports=l,n.exports.defaultOptions=function(){return new A}},function(n,p,a){var t=a(17).Options,A=a(2).Output,l=a(8).InputScanner,i=a(13).Directives,c=new i(/\/\*/,/\*\//),d=/\r\n|[\r\n]/,f=/\r\n|[\r\n]/g,o=/\s/,u=/(?:\s|\n)+/g,E=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,R=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function w(P,C){this._source_text=P||"",this._options=new t(C),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}w.prototype.eatString=function(P){var C="";for(this._ch=this._input.next();this._ch;){if(C+=this._ch,this._ch==="\\")C+=this._input.next();else if(P.indexOf(this._ch)!==-1||this._ch===` `)break;this._ch=this._input.next()}return C},w.prototype.eatWhitespace=function(P){for(var C=o.test(this._input.peek()),b=0;o.test(this._input.peek());)this._ch=this._input.next(),P&&this._ch===` `&&((b===0||b0&&this._indentLevel--},w.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P=this._source_text,C=this._options.eol;C==="auto"&&(C=` `,P&&d.test(P||"")&&(C=P.match(d)[0])),P=P.replace(f,` `);var b=P.match(/^[\t ]*/)[0];this._output=new A(this._options,b),this._input=new l(P),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var s=0,h=!1,m=!1,x=!1,g=!1,y=!1,U=!1,N=this._ch,S=!1,H,F,B;H=this._input.read(u),F=H!=="",B=N,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),N=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var z=this._input.read(E),K=c.get_directives(z);K&&K.ignore==="start"&&(z+=c.readIgnored(this._input)),this.print_string(z),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(R)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(F),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var $=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);$.match(/[ :]$/)&&($=this.eatString(": ").replace(/\s$/,""),this.print_string($),this._output.space_before_token=!0),$=$.replace(/\s$/,""),$==="extend"?g=!0:$==="import"&&(y=!0),$ in this.NESTED_AT_RULE?(this._nestedLevel+=1,$ in this.CONDITIONAL_GROUP_RULE&&(x=!0)):!h&&s===0&&$.indexOf(":")!==-1&&(m=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(F),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")m&&(m=!1,this.outdent()),x?(x=!1,h=this._indentLevel>=this._nestedLevel):h=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&h&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(B==="("?this._output.space_before_token=!1:B!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),B==="{"&&this._output.trim(!0),y=!1,g=!1,m&&(this.outdent(),m=!1),this.print_string(this._ch),h=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var te=0;te"||this._ch==="+"||this._ch==="~")&&!m&&s===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&o.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(F),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),o.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var ce=B==='"'||B==="'";this.preserveSingleSpace(ce||F),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` `&&S&&this._output.add_new_line()}var ie=this._output.get_code(C);return ie},n.exports.Beautifier=w},function(n,p,a){var t=a(6).Options;function A(l){t.call(this,l,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var i=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||i;var c=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var d=0;d` ${a} `).trim():""}class M{constructor(n,p,a){this.id=n,this.definition=p,this.description=a,I.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var T;(function(n){n.iconNameSegment="[A-Za-z0-9]+",n.iconNameExpression="[A-Za-z0-9\\-]+",n.iconModifierExpression="~[A-Za-z]+";const p=new RegExp(`^(${n.iconNameExpression})(${n.iconModifierExpression})?$`);function a(l){if(l instanceof M)return["codicon","codicon-"+l.id];const i=p.exec(l.id);if(!i)return a(M.error);let[,c,d]=i;const f=["codicon","codicon-"+c];return d&&f.push("codicon-modifier-"+d.substr(1)),f}n.asClassNameArray=a;function t(l){return a(l).join(" ")}n.asClassName=t;function A(l){return"."+a(l).join(".")}n.asCSSSelector=A})(T||(T={})),function(n){n.add=new n("add",{fontCharacter:"\\ea60"}),n.plus=new n("plus",n.add.definition),n.gistNew=new n("gist-new",n.add.definition),n.repoCreate=new n("repo-create",n.add.definition),n.lightbulb=new n("lightbulb",{fontCharacter:"\\ea61"}),n.lightBulb=new n("light-bulb",{fontCharacter:"\\ea61"}),n.repo=new n("repo",{fontCharacter:"\\ea62"}),n.repoDelete=new n("repo-delete",{fontCharacter:"\\ea62"}),n.gistFork=new n("gist-fork",{fontCharacter:"\\ea63"}),n.repoForked=new n("repo-forked",{fontCharacter:"\\ea63"}),n.gitPullRequest=new n("git-pull-request",{fontCharacter:"\\ea64"}),n.gitPullRequestAbandoned=new n("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),n.recordKeys=new n("record-keys",{fontCharacter:"\\ea65"}),n.keyboard=new n("keyboard",{fontCharacter:"\\ea65"}),n.tag=new n("tag",{fontCharacter:"\\ea66"}),n.tagAdd=new n("tag-add",{fontCharacter:"\\ea66"}),n.tagRemove=new n("tag-remove",{fontCharacter:"\\ea66"}),n.person=new n("person",{fontCharacter:"\\ea67"}),n.personFollow=new n("person-follow",{fontCharacter:"\\ea67"}),n.personOutline=new n("person-outline",{fontCharacter:"\\ea67"}),n.personFilled=new n("person-filled",{fontCharacter:"\\ea67"}),n.gitBranch=new n("git-branch",{fontCharacter:"\\ea68"}),n.gitBranchCreate=new n("git-branch-create",{fontCharacter:"\\ea68"}),n.gitBranchDelete=new n("git-branch-delete",{fontCharacter:"\\ea68"}),n.sourceControl=new n("source-control",{fontCharacter:"\\ea68"}),n.mirror=new n("mirror",{fontCharacter:"\\ea69"}),n.mirrorPublic=new n("mirror-public",{fontCharacter:"\\ea69"}),n.star=new n("star",{fontCharacter:"\\ea6a"}),n.starAdd=new n("star-add",{fontCharacter:"\\ea6a"}),n.starDelete=new n("star-delete",{fontCharacter:"\\ea6a"}),n.starEmpty=new n("star-empty",{fontCharacter:"\\ea6a"}),n.comment=new n("comment",{fontCharacter:"\\ea6b"}),n.commentAdd=new n("comment-add",{fontCharacter:"\\ea6b"}),n.alert=new n("alert",{fontCharacter:"\\ea6c"}),n.warning=new n("warning",{fontCharacter:"\\ea6c"}),n.search=new n("search",{fontCharacter:"\\ea6d"}),n.searchSave=new n("search-save",{fontCharacter:"\\ea6d"}),n.logOut=new n("log-out",{fontCharacter:"\\ea6e"}),n.signOut=new n("sign-out",{fontCharacter:"\\ea6e"}),n.logIn=new n("log-in",{fontCharacter:"\\ea6f"}),n.signIn=new n("sign-in",{fontCharacter:"\\ea6f"}),n.eye=new n("eye",{fontCharacter:"\\ea70"}),n.eyeUnwatch=new n("eye-unwatch",{fontCharacter:"\\ea70"}),n.eyeWatch=new n("eye-watch",{fontCharacter:"\\ea70"}),n.circleFilled=new n("circle-filled",{fontCharacter:"\\ea71"}),n.primitiveDot=new n("primitive-dot",{fontCharacter:"\\ea71"}),n.closeDirty=new n("close-dirty",{fontCharacter:"\\ea71"}),n.debugBreakpoint=new n("debug-breakpoint",{fontCharacter:"\\ea71"}),n.debugBreakpointDisabled=new n("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),n.debugHint=new n("debug-hint",{fontCharacter:"\\ea71"}),n.primitiveSquare=new n("primitive-square",{fontCharacter:"\\ea72"}),n.edit=new n("edit",{fontCharacter:"\\ea73"}),n.pencil=new n("pencil",{fontCharacter:"\\ea73"}),n.info=new n("info",{fontCharacter:"\\ea74"}),n.issueOpened=new n("issue-opened",{fontCharacter:"\\ea74"}),n.gistPrivate=new n("gist-private",{fontCharacter:"\\ea75"}),n.gitForkPrivate=new n("git-fork-private",{fontCharacter:"\\ea75"}),n.lock=new n("lock",{fontCharacter:"\\ea75"}),n.mirrorPrivate=new n("mirror-private",{fontCharacter:"\\ea75"}),n.close=new n("close",{fontCharacter:"\\ea76"}),n.removeClose=new n("remove-close",{fontCharacter:"\\ea76"}),n.x=new n("x",{fontCharacter:"\\ea76"}),n.repoSync=new n("repo-sync",{fontCharacter:"\\ea77"}),n.sync=new n("sync",{fontCharacter:"\\ea77"}),n.clone=new n("clone",{fontCharacter:"\\ea78"}),n.desktopDownload=new n("desktop-download",{fontCharacter:"\\ea78"}),n.beaker=new n("beaker",{fontCharacter:"\\ea79"}),n.microscope=new n("microscope",{fontCharacter:"\\ea79"}),n.vm=new n("vm",{fontCharacter:"\\ea7a"}),n.deviceDesktop=new n("device-desktop",{fontCharacter:"\\ea7a"}),n.file=new n("file",{fontCharacter:"\\ea7b"}),n.fileText=new n("file-text",{fontCharacter:"\\ea7b"}),n.more=new n("more",{fontCharacter:"\\ea7c"}),n.ellipsis=new n("ellipsis",{fontCharacter:"\\ea7c"}),n.kebabHorizontal=new n("kebab-horizontal",{fontCharacter:"\\ea7c"}),n.mailReply=new n("mail-reply",{fontCharacter:"\\ea7d"}),n.reply=new n("reply",{fontCharacter:"\\ea7d"}),n.organization=new n("organization",{fontCharacter:"\\ea7e"}),n.organizationFilled=new n("organization-filled",{fontCharacter:"\\ea7e"}),n.organizationOutline=new n("organization-outline",{fontCharacter:"\\ea7e"}),n.newFile=new n("new-file",{fontCharacter:"\\ea7f"}),n.fileAdd=new n("file-add",{fontCharacter:"\\ea7f"}),n.newFolder=new n("new-folder",{fontCharacter:"\\ea80"}),n.fileDirectoryCreate=new n("file-directory-create",{fontCharacter:"\\ea80"}),n.trash=new n("trash",{fontCharacter:"\\ea81"}),n.trashcan=new n("trashcan",{fontCharacter:"\\ea81"}),n.history=new n("history",{fontCharacter:"\\ea82"}),n.clock=new n("clock",{fontCharacter:"\\ea82"}),n.folder=new n("folder",{fontCharacter:"\\ea83"}),n.fileDirectory=new n("file-directory",{fontCharacter:"\\ea83"}),n.symbolFolder=new n("symbol-folder",{fontCharacter:"\\ea83"}),n.logoGithub=new n("logo-github",{fontCharacter:"\\ea84"}),n.markGithub=new n("mark-github",{fontCharacter:"\\ea84"}),n.github=new n("github",{fontCharacter:"\\ea84"}),n.terminal=new n("terminal",{fontCharacter:"\\ea85"}),n.console=new n("console",{fontCharacter:"\\ea85"}),n.repl=new n("repl",{fontCharacter:"\\ea85"}),n.zap=new n("zap",{fontCharacter:"\\ea86"}),n.symbolEvent=new n("symbol-event",{fontCharacter:"\\ea86"}),n.error=new n("error",{fontCharacter:"\\ea87"}),n.stop=new n("stop",{fontCharacter:"\\ea87"}),n.variable=new n("variable",{fontCharacter:"\\ea88"}),n.symbolVariable=new n("symbol-variable",{fontCharacter:"\\ea88"}),n.array=new n("array",{fontCharacter:"\\ea8a"}),n.symbolArray=new n("symbol-array",{fontCharacter:"\\ea8a"}),n.symbolModule=new n("symbol-module",{fontCharacter:"\\ea8b"}),n.symbolPackage=new n("symbol-package",{fontCharacter:"\\ea8b"}),n.symbolNamespace=new n("symbol-namespace",{fontCharacter:"\\ea8b"}),n.symbolObject=new n("symbol-object",{fontCharacter:"\\ea8b"}),n.symbolMethod=new n("symbol-method",{fontCharacter:"\\ea8c"}),n.symbolFunction=new n("symbol-function",{fontCharacter:"\\ea8c"}),n.symbolConstructor=new n("symbol-constructor",{fontCharacter:"\\ea8c"}),n.symbolBoolean=new n("symbol-boolean",{fontCharacter:"\\ea8f"}),n.symbolNull=new n("symbol-null",{fontCharacter:"\\ea8f"}),n.symbolNumeric=new n("symbol-numeric",{fontCharacter:"\\ea90"}),n.symbolNumber=new n("symbol-number",{fontCharacter:"\\ea90"}),n.symbolStructure=new n("symbol-structure",{fontCharacter:"\\ea91"}),n.symbolStruct=new n("symbol-struct",{fontCharacter:"\\ea91"}),n.symbolParameter=new n("symbol-parameter",{fontCharacter:"\\ea92"}),n.symbolTypeParameter=new n("symbol-type-parameter",{fontCharacter:"\\ea92"}),n.symbolKey=new n("symbol-key",{fontCharacter:"\\ea93"}),n.symbolText=new n("symbol-text",{fontCharacter:"\\ea93"}),n.symbolReference=new n("symbol-reference",{fontCharacter:"\\ea94"}),n.goToFile=new n("go-to-file",{fontCharacter:"\\ea94"}),n.symbolEnum=new n("symbol-enum",{fontCharacter:"\\ea95"}),n.symbolValue=new n("symbol-value",{fontCharacter:"\\ea95"}),n.symbolRuler=new n("symbol-ruler",{fontCharacter:"\\ea96"}),n.symbolUnit=new n("symbol-unit",{fontCharacter:"\\ea96"}),n.activateBreakpoints=new n("activate-breakpoints",{fontCharacter:"\\ea97"}),n.archive=new n("archive",{fontCharacter:"\\ea98"}),n.arrowBoth=new n("arrow-both",{fontCharacter:"\\ea99"}),n.arrowDown=new n("arrow-down",{fontCharacter:"\\ea9a"}),n.arrowLeft=new n("arrow-left",{fontCharacter:"\\ea9b"}),n.arrowRight=new n("arrow-right",{fontCharacter:"\\ea9c"}),n.arrowSmallDown=new n("arrow-small-down",{fontCharacter:"\\ea9d"}),n.arrowSmallLeft=new n("arrow-small-left",{fontCharacter:"\\ea9e"}),n.arrowSmallRight=new n("arrow-small-right",{fontCharacter:"\\ea9f"}),n.arrowSmallUp=new n("arrow-small-up",{fontCharacter:"\\eaa0"}),n.arrowUp=new n("arrow-up",{fontCharacter:"\\eaa1"}),n.bell=new n("bell",{fontCharacter:"\\eaa2"}),n.bold=new n("bold",{fontCharacter:"\\eaa3"}),n.book=new n("book",{fontCharacter:"\\eaa4"}),n.bookmark=new n("bookmark",{fontCharacter:"\\eaa5"}),n.debugBreakpointConditionalUnverified=new n("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),n.debugBreakpointConditional=new n("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),n.debugBreakpointConditionalDisabled=new n("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),n.debugBreakpointDataUnverified=new n("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),n.debugBreakpointData=new n("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),n.debugBreakpointDataDisabled=new n("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),n.debugBreakpointLogUnverified=new n("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),n.debugBreakpointLog=new n("debug-breakpoint-log",{fontCharacter:"\\eaab"}),n.debugBreakpointLogDisabled=new n("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),n.briefcase=new n("briefcase",{fontCharacter:"\\eaac"}),n.broadcast=new n("broadcast",{fontCharacter:"\\eaad"}),n.browser=new n("browser",{fontCharacter:"\\eaae"}),n.bug=new n("bug",{fontCharacter:"\\eaaf"}),n.calendar=new n("calendar",{fontCharacter:"\\eab0"}),n.caseSensitive=new n("case-sensitive",{fontCharacter:"\\eab1"}),n.check=new n("check",{fontCharacter:"\\eab2"}),n.checklist=new n("checklist",{fontCharacter:"\\eab3"}),n.chevronDown=new n("chevron-down",{fontCharacter:"\\eab4"}),n.dropDownButton=new n("drop-down-button",n.chevronDown.definition),n.chevronLeft=new n("chevron-left",{fontCharacter:"\\eab5"}),n.chevronRight=new n("chevron-right",{fontCharacter:"\\eab6"}),n.chevronUp=new n("chevron-up",{fontCharacter:"\\eab7"}),n.chromeClose=new n("chrome-close",{fontCharacter:"\\eab8"}),n.chromeMaximize=new n("chrome-maximize",{fontCharacter:"\\eab9"}),n.chromeMinimize=new n("chrome-minimize",{fontCharacter:"\\eaba"}),n.chromeRestore=new n("chrome-restore",{fontCharacter:"\\eabb"}),n.circleOutline=new n("circle-outline",{fontCharacter:"\\eabc"}),n.debugBreakpointUnverified=new n("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),n.circleSlash=new n("circle-slash",{fontCharacter:"\\eabd"}),n.circuitBoard=new n("circuit-board",{fontCharacter:"\\eabe"}),n.clearAll=new n("clear-all",{fontCharacter:"\\eabf"}),n.clippy=new n("clippy",{fontCharacter:"\\eac0"}),n.closeAll=new n("close-all",{fontCharacter:"\\eac1"}),n.cloudDownload=new n("cloud-download",{fontCharacter:"\\eac2"}),n.cloudUpload=new n("cloud-upload",{fontCharacter:"\\eac3"}),n.code=new n("code",{fontCharacter:"\\eac4"}),n.collapseAll=new n("collapse-all",{fontCharacter:"\\eac5"}),n.colorMode=new n("color-mode",{fontCharacter:"\\eac6"}),n.commentDiscussion=new n("comment-discussion",{fontCharacter:"\\eac7"}),n.compareChanges=new n("compare-changes",{fontCharacter:"\\eafd"}),n.creditCard=new n("credit-card",{fontCharacter:"\\eac9"}),n.dash=new n("dash",{fontCharacter:"\\eacc"}),n.dashboard=new n("dashboard",{fontCharacter:"\\eacd"}),n.database=new n("database",{fontCharacter:"\\eace"}),n.debugContinue=new n("debug-continue",{fontCharacter:"\\eacf"}),n.debugDisconnect=new n("debug-disconnect",{fontCharacter:"\\ead0"}),n.debugPause=new n("debug-pause",{fontCharacter:"\\ead1"}),n.debugRestart=new n("debug-restart",{fontCharacter:"\\ead2"}),n.debugStart=new n("debug-start",{fontCharacter:"\\ead3"}),n.debugStepInto=new n("debug-step-into",{fontCharacter:"\\ead4"}),n.debugStepOut=new n("debug-step-out",{fontCharacter:"\\ead5"}),n.debugStepOver=new n("debug-step-over",{fontCharacter:"\\ead6"}),n.debugStop=new n("debug-stop",{fontCharacter:"\\ead7"}),n.debug=new n("debug",{fontCharacter:"\\ead8"}),n.deviceCameraVideo=new n("device-camera-video",{fontCharacter:"\\ead9"}),n.deviceCamera=new n("device-camera",{fontCharacter:"\\eada"}),n.deviceMobile=new n("device-mobile",{fontCharacter:"\\eadb"}),n.diffAdded=new n("diff-added",{fontCharacter:"\\eadc"}),n.diffIgnored=new n("diff-ignored",{fontCharacter:"\\eadd"}),n.diffModified=new n("diff-modified",{fontCharacter:"\\eade"}),n.diffRemoved=new n("diff-removed",{fontCharacter:"\\eadf"}),n.diffRenamed=new n("diff-renamed",{fontCharacter:"\\eae0"}),n.diff=new n("diff",{fontCharacter:"\\eae1"}),n.discard=new n("discard",{fontCharacter:"\\eae2"}),n.editorLayout=new n("editor-layout",{fontCharacter:"\\eae3"}),n.emptyWindow=new n("empty-window",{fontCharacter:"\\eae4"}),n.exclude=new n("exclude",{fontCharacter:"\\eae5"}),n.extensions=new n("extensions",{fontCharacter:"\\eae6"}),n.eyeClosed=new n("eye-closed",{fontCharacter:"\\eae7"}),n.fileBinary=new n("file-binary",{fontCharacter:"\\eae8"}),n.fileCode=new n("file-code",{fontCharacter:"\\eae9"}),n.fileMedia=new n("file-media",{fontCharacter:"\\eaea"}),n.filePdf=new n("file-pdf",{fontCharacter:"\\eaeb"}),n.fileSubmodule=new n("file-submodule",{fontCharacter:"\\eaec"}),n.fileSymlinkDirectory=new n("file-symlink-directory",{fontCharacter:"\\eaed"}),n.fileSymlinkFile=new n("file-symlink-file",{fontCharacter:"\\eaee"}),n.fileZip=new n("file-zip",{fontCharacter:"\\eaef"}),n.files=new n("files",{fontCharacter:"\\eaf0"}),n.filter=new n("filter",{fontCharacter:"\\eaf1"}),n.flame=new n("flame",{fontCharacter:"\\eaf2"}),n.foldDown=new n("fold-down",{fontCharacter:"\\eaf3"}),n.foldUp=new n("fold-up",{fontCharacter:"\\eaf4"}),n.fold=new n("fold",{fontCharacter:"\\eaf5"}),n.folderActive=new n("folder-active",{fontCharacter:"\\eaf6"}),n.folderOpened=new n("folder-opened",{fontCharacter:"\\eaf7"}),n.gear=new n("gear",{fontCharacter:"\\eaf8"}),n.gift=new n("gift",{fontCharacter:"\\eaf9"}),n.gistSecret=new n("gist-secret",{fontCharacter:"\\eafa"}),n.gist=new n("gist",{fontCharacter:"\\eafb"}),n.gitCommit=new n("git-commit",{fontCharacter:"\\eafc"}),n.gitCompare=new n("git-compare",{fontCharacter:"\\eafd"}),n.gitMerge=new n("git-merge",{fontCharacter:"\\eafe"}),n.githubAction=new n("github-action",{fontCharacter:"\\eaff"}),n.githubAlt=new n("github-alt",{fontCharacter:"\\eb00"}),n.globe=new n("globe",{fontCharacter:"\\eb01"}),n.grabber=new n("grabber",{fontCharacter:"\\eb02"}),n.graph=new n("graph",{fontCharacter:"\\eb03"}),n.gripper=new n("gripper",{fontCharacter:"\\eb04"}),n.heart=new n("heart",{fontCharacter:"\\eb05"}),n.home=new n("home",{fontCharacter:"\\eb06"}),n.horizontalRule=new n("horizontal-rule",{fontCharacter:"\\eb07"}),n.hubot=new n("hubot",{fontCharacter:"\\eb08"}),n.inbox=new n("inbox",{fontCharacter:"\\eb09"}),n.issueClosed=new n("issue-closed",{fontCharacter:"\\eba4"}),n.issueReopened=new n("issue-reopened",{fontCharacter:"\\eb0b"}),n.issues=new n("issues",{fontCharacter:"\\eb0c"}),n.italic=new n("italic",{fontCharacter:"\\eb0d"}),n.jersey=new n("jersey",{fontCharacter:"\\eb0e"}),n.json=new n("json",{fontCharacter:"\\eb0f"}),n.kebabVertical=new n("kebab-vertical",{fontCharacter:"\\eb10"}),n.key=new n("key",{fontCharacter:"\\eb11"}),n.law=new n("law",{fontCharacter:"\\eb12"}),n.lightbulbAutofix=new n("lightbulb-autofix",{fontCharacter:"\\eb13"}),n.linkExternal=new n("link-external",{fontCharacter:"\\eb14"}),n.link=new n("link",{fontCharacter:"\\eb15"}),n.listOrdered=new n("list-ordered",{fontCharacter:"\\eb16"}),n.listUnordered=new n("list-unordered",{fontCharacter:"\\eb17"}),n.liveShare=new n("live-share",{fontCharacter:"\\eb18"}),n.loading=new n("loading",{fontCharacter:"\\eb19"}),n.location=new n("location",{fontCharacter:"\\eb1a"}),n.mailRead=new n("mail-read",{fontCharacter:"\\eb1b"}),n.mail=new n("mail",{fontCharacter:"\\eb1c"}),n.markdown=new n("markdown",{fontCharacter:"\\eb1d"}),n.megaphone=new n("megaphone",{fontCharacter:"\\eb1e"}),n.mention=new n("mention",{fontCharacter:"\\eb1f"}),n.milestone=new n("milestone",{fontCharacter:"\\eb20"}),n.mortarBoard=new n("mortar-board",{fontCharacter:"\\eb21"}),n.move=new n("move",{fontCharacter:"\\eb22"}),n.multipleWindows=new n("multiple-windows",{fontCharacter:"\\eb23"}),n.mute=new n("mute",{fontCharacter:"\\eb24"}),n.noNewline=new n("no-newline",{fontCharacter:"\\eb25"}),n.note=new n("note",{fontCharacter:"\\eb26"}),n.octoface=new n("octoface",{fontCharacter:"\\eb27"}),n.openPreview=new n("open-preview",{fontCharacter:"\\eb28"}),n.package_=new n("package",{fontCharacter:"\\eb29"}),n.paintcan=new n("paintcan",{fontCharacter:"\\eb2a"}),n.pin=new n("pin",{fontCharacter:"\\eb2b"}),n.play=new n("play",{fontCharacter:"\\eb2c"}),n.run=new n("run",{fontCharacter:"\\eb2c"}),n.plug=new n("plug",{fontCharacter:"\\eb2d"}),n.preserveCase=new n("preserve-case",{fontCharacter:"\\eb2e"}),n.preview=new n("preview",{fontCharacter:"\\eb2f"}),n.project=new n("project",{fontCharacter:"\\eb30"}),n.pulse=new n("pulse",{fontCharacter:"\\eb31"}),n.question=new n("question",{fontCharacter:"\\eb32"}),n.quote=new n("quote",{fontCharacter:"\\eb33"}),n.radioTower=new n("radio-tower",{fontCharacter:"\\eb34"}),n.reactions=new n("reactions",{fontCharacter:"\\eb35"}),n.references=new n("references",{fontCharacter:"\\eb36"}),n.refresh=new n("refresh",{fontCharacter:"\\eb37"}),n.regex=new n("regex",{fontCharacter:"\\eb38"}),n.remoteExplorer=new n("remote-explorer",{fontCharacter:"\\eb39"}),n.remote=new n("remote",{fontCharacter:"\\eb3a"}),n.remove=new n("remove",{fontCharacter:"\\eb3b"}),n.replaceAll=new n("replace-all",{fontCharacter:"\\eb3c"}),n.replace=new n("replace",{fontCharacter:"\\eb3d"}),n.repoClone=new n("repo-clone",{fontCharacter:"\\eb3e"}),n.repoForcePush=new n("repo-force-push",{fontCharacter:"\\eb3f"}),n.repoPull=new n("repo-pull",{fontCharacter:"\\eb40"}),n.repoPush=new n("repo-push",{fontCharacter:"\\eb41"}),n.report=new n("report",{fontCharacter:"\\eb42"}),n.requestChanges=new n("request-changes",{fontCharacter:"\\eb43"}),n.rocket=new n("rocket",{fontCharacter:"\\eb44"}),n.rootFolderOpened=new n("root-folder-opened",{fontCharacter:"\\eb45"}),n.rootFolder=new n("root-folder",{fontCharacter:"\\eb46"}),n.rss=new n("rss",{fontCharacter:"\\eb47"}),n.ruby=new n("ruby",{fontCharacter:"\\eb48"}),n.saveAll=new n("save-all",{fontCharacter:"\\eb49"}),n.saveAs=new n("save-as",{fontCharacter:"\\eb4a"}),n.save=new n("save",{fontCharacter:"\\eb4b"}),n.screenFull=new n("screen-full",{fontCharacter:"\\eb4c"}),n.screenNormal=new n("screen-normal",{fontCharacter:"\\eb4d"}),n.searchStop=new n("search-stop",{fontCharacter:"\\eb4e"}),n.server=new n("server",{fontCharacter:"\\eb50"}),n.settingsGear=new n("settings-gear",{fontCharacter:"\\eb51"}),n.settings=new n("settings",{fontCharacter:"\\eb52"}),n.shield=new n("shield",{fontCharacter:"\\eb53"}),n.smiley=new n("smiley",{fontCharacter:"\\eb54"}),n.sortPrecedence=new n("sort-precedence",{fontCharacter:"\\eb55"}),n.splitHorizontal=new n("split-horizontal",{fontCharacter:"\\eb56"}),n.splitVertical=new n("split-vertical",{fontCharacter:"\\eb57"}),n.squirrel=new n("squirrel",{fontCharacter:"\\eb58"}),n.starFull=new n("star-full",{fontCharacter:"\\eb59"}),n.starHalf=new n("star-half",{fontCharacter:"\\eb5a"}),n.symbolClass=new n("symbol-class",{fontCharacter:"\\eb5b"}),n.symbolColor=new n("symbol-color",{fontCharacter:"\\eb5c"}),n.symbolConstant=new n("symbol-constant",{fontCharacter:"\\eb5d"}),n.symbolEnumMember=new n("symbol-enum-member",{fontCharacter:"\\eb5e"}),n.symbolField=new n("symbol-field",{fontCharacter:"\\eb5f"}),n.symbolFile=new n("symbol-file",{fontCharacter:"\\eb60"}),n.symbolInterface=new n("symbol-interface",{fontCharacter:"\\eb61"}),n.symbolKeyword=new n("symbol-keyword",{fontCharacter:"\\eb62"}),n.symbolMisc=new n("symbol-misc",{fontCharacter:"\\eb63"}),n.symbolOperator=new n("symbol-operator",{fontCharacter:"\\eb64"}),n.symbolProperty=new n("symbol-property",{fontCharacter:"\\eb65"}),n.wrench=new n("wrench",{fontCharacter:"\\eb65"}),n.wrenchSubaction=new n("wrench-subaction",{fontCharacter:"\\eb65"}),n.symbolSnippet=new n("symbol-snippet",{fontCharacter:"\\eb66"}),n.tasklist=new n("tasklist",{fontCharacter:"\\eb67"}),n.telescope=new n("telescope",{fontCharacter:"\\eb68"}),n.textSize=new n("text-size",{fontCharacter:"\\eb69"}),n.threeBars=new n("three-bars",{fontCharacter:"\\eb6a"}),n.thumbsdown=new n("thumbsdown",{fontCharacter:"\\eb6b"}),n.thumbsup=new n("thumbsup",{fontCharacter:"\\eb6c"}),n.tools=new n("tools",{fontCharacter:"\\eb6d"}),n.triangleDown=new n("triangle-down",{fontCharacter:"\\eb6e"}),n.triangleLeft=new n("triangle-left",{fontCharacter:"\\eb6f"}),n.triangleRight=new n("triangle-right",{fontCharacter:"\\eb70"}),n.triangleUp=new n("triangle-up",{fontCharacter:"\\eb71"}),n.twitter=new n("twitter",{fontCharacter:"\\eb72"}),n.unfold=new n("unfold",{fontCharacter:"\\eb73"}),n.unlock=new n("unlock",{fontCharacter:"\\eb74"}),n.unmute=new n("unmute",{fontCharacter:"\\eb75"}),n.unverified=new n("unverified",{fontCharacter:"\\eb76"}),n.verified=new n("verified",{fontCharacter:"\\eb77"}),n.versions=new n("versions",{fontCharacter:"\\eb78"}),n.vmActive=new n("vm-active",{fontCharacter:"\\eb79"}),n.vmOutline=new n("vm-outline",{fontCharacter:"\\eb7a"}),n.vmRunning=new n("vm-running",{fontCharacter:"\\eb7b"}),n.watch=new n("watch",{fontCharacter:"\\eb7c"}),n.whitespace=new n("whitespace",{fontCharacter:"\\eb7d"}),n.wholeWord=new n("whole-word",{fontCharacter:"\\eb7e"}),n.window=new n("window",{fontCharacter:"\\eb7f"}),n.wordWrap=new n("word-wrap",{fontCharacter:"\\eb80"}),n.zoomIn=new n("zoom-in",{fontCharacter:"\\eb81"}),n.zoomOut=new n("zoom-out",{fontCharacter:"\\eb82"}),n.listFilter=new n("list-filter",{fontCharacter:"\\eb83"}),n.listFlat=new n("list-flat",{fontCharacter:"\\eb84"}),n.listSelection=new n("list-selection",{fontCharacter:"\\eb85"}),n.selection=new n("selection",{fontCharacter:"\\eb85"}),n.listTree=new n("list-tree",{fontCharacter:"\\eb86"}),n.debugBreakpointFunctionUnverified=new n("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),n.debugBreakpointFunction=new n("debug-breakpoint-function",{fontCharacter:"\\eb88"}),n.debugBreakpointFunctionDisabled=new n("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),n.debugStackframeActive=new n("debug-stackframe-active",{fontCharacter:"\\eb89"}),n.debugStackframeDot=new n("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),n.debugStackframe=new n("debug-stackframe",{fontCharacter:"\\eb8b"}),n.debugStackframeFocused=new n("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),n.debugBreakpointUnsupported=new n("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),n.symbolString=new n("symbol-string",{fontCharacter:"\\eb8d"}),n.debugReverseContinue=new n("debug-reverse-continue",{fontCharacter:"\\eb8e"}),n.debugStepBack=new n("debug-step-back",{fontCharacter:"\\eb8f"}),n.debugRestartFrame=new n("debug-restart-frame",{fontCharacter:"\\eb90"}),n.callIncoming=new n("call-incoming",{fontCharacter:"\\eb92"}),n.callOutgoing=new n("call-outgoing",{fontCharacter:"\\eb93"}),n.menu=new n("menu",{fontCharacter:"\\eb94"}),n.expandAll=new n("expand-all",{fontCharacter:"\\eb95"}),n.feedback=new n("feedback",{fontCharacter:"\\eb96"}),n.groupByRefType=new n("group-by-ref-type",{fontCharacter:"\\eb97"}),n.ungroupByRefType=new n("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),n.account=new n("account",{fontCharacter:"\\eb99"}),n.bellDot=new n("bell-dot",{fontCharacter:"\\eb9a"}),n.debugConsole=new n("debug-console",{fontCharacter:"\\eb9b"}),n.library=new n("library",{fontCharacter:"\\eb9c"}),n.output=new n("output",{fontCharacter:"\\eb9d"}),n.runAll=new n("run-all",{fontCharacter:"\\eb9e"}),n.syncIgnored=new n("sync-ignored",{fontCharacter:"\\eb9f"}),n.pinned=new n("pinned",{fontCharacter:"\\eba0"}),n.githubInverted=new n("github-inverted",{fontCharacter:"\\eba1"}),n.debugAlt=new n("debug-alt",{fontCharacter:"\\eb91"}),n.serverProcess=new n("server-process",{fontCharacter:"\\eba2"}),n.serverEnvironment=new n("server-environment",{fontCharacter:"\\eba3"}),n.pass=new n("pass",{fontCharacter:"\\eba4"}),n.stopCircle=new n("stop-circle",{fontCharacter:"\\eba5"}),n.playCircle=new n("play-circle",{fontCharacter:"\\eba6"}),n.record=new n("record",{fontCharacter:"\\eba7"}),n.debugAltSmall=new n("debug-alt-small",{fontCharacter:"\\eba8"}),n.vmConnect=new n("vm-connect",{fontCharacter:"\\eba9"}),n.cloud=new n("cloud",{fontCharacter:"\\ebaa"}),n.merge=new n("merge",{fontCharacter:"\\ebab"}),n.exportIcon=new n("export",{fontCharacter:"\\ebac"}),n.graphLeft=new n("graph-left",{fontCharacter:"\\ebad"}),n.magnet=new n("magnet",{fontCharacter:"\\ebae"}),n.notebook=new n("notebook",{fontCharacter:"\\ebaf"}),n.redo=new n("redo",{fontCharacter:"\\ebb0"}),n.checkAll=new n("check-all",{fontCharacter:"\\ebb1"}),n.pinnedDirty=new n("pinned-dirty",{fontCharacter:"\\ebb2"}),n.passFilled=new n("pass-filled",{fontCharacter:"\\ebb3"}),n.circleLargeFilled=new n("circle-large-filled",{fontCharacter:"\\ebb4"}),n.circleLargeOutline=new n("circle-large-outline",{fontCharacter:"\\ebb5"}),n.combine=new n("combine",{fontCharacter:"\\ebb6"}),n.gather=new n("gather",{fontCharacter:"\\ebb6"}),n.table=new n("table",{fontCharacter:"\\ebb7"}),n.variableGroup=new n("variable-group",{fontCharacter:"\\ebb8"}),n.typeHierarchy=new n("type-hierarchy",{fontCharacter:"\\ebb9"}),n.typeHierarchySub=new n("type-hierarchy-sub",{fontCharacter:"\\ebba"}),n.typeHierarchySuper=new n("type-hierarchy-super",{fontCharacter:"\\ebbb"}),n.gitPullRequestCreate=new n("git-pull-request-create",{fontCharacter:"\\ebbc"}),n.runAbove=new n("run-above",{fontCharacter:"\\ebbd"}),n.runBelow=new n("run-below",{fontCharacter:"\\ebbe"}),n.notebookTemplate=new n("notebook-template",{fontCharacter:"\\ebbf"}),n.debugRerun=new n("debug-rerun",{fontCharacter:"\\ebc0"}),n.workspaceTrusted=new n("workspace-trusted",{fontCharacter:"\\ebc1"}),n.workspaceUntrusted=new n("workspace-untrusted",{fontCharacter:"\\ebc2"}),n.workspaceUnspecified=new n("workspace-unspecified",{fontCharacter:"\\ebc3"}),n.terminalCmd=new n("terminal-cmd",{fontCharacter:"\\ebc4"}),n.terminalDebian=new n("terminal-debian",{fontCharacter:"\\ebc5"}),n.terminalLinux=new n("terminal-linux",{fontCharacter:"\\ebc6"}),n.terminalPowershell=new n("terminal-powershell",{fontCharacter:"\\ebc7"}),n.terminalTmux=new n("terminal-tmux",{fontCharacter:"\\ebc8"}),n.terminalUbuntu=new n("terminal-ubuntu",{fontCharacter:"\\ebc9"}),n.terminalBash=new n("terminal-bash",{fontCharacter:"\\ebca"}),n.arrowSwap=new n("arrow-swap",{fontCharacter:"\\ebcb"}),n.copy=new n("copy",{fontCharacter:"\\ebcc"}),n.personAdd=new n("person-add",{fontCharacter:"\\ebcd"}),n.filterFilled=new n("filter-filled",{fontCharacter:"\\ebce"}),n.wand=new n("wand",{fontCharacter:"\\ebcf"}),n.debugLineByLine=new n("debug-line-by-line",{fontCharacter:"\\ebd0"}),n.inspect=new n("inspect",{fontCharacter:"\\ebd1"}),n.layers=new n("layers",{fontCharacter:"\\ebd2"}),n.layersDot=new n("layers-dot",{fontCharacter:"\\ebd3"}),n.layersActive=new n("layers-active",{fontCharacter:"\\ebd4"}),n.compass=new n("compass",{fontCharacter:"\\ebd5"}),n.compassDot=new n("compass-dot",{fontCharacter:"\\ebd6"}),n.compassActive=new n("compass-active",{fontCharacter:"\\ebd7"}),n.azure=new n("azure",{fontCharacter:"\\ebd8"}),n.issueDraft=new n("issue-draft",{fontCharacter:"\\ebd9"}),n.gitPullRequestClosed=new n("git-pull-request-closed",{fontCharacter:"\\ebda"}),n.gitPullRequestDraft=new n("git-pull-request-draft",{fontCharacter:"\\ebdb"}),n.debugAll=new n("debug-all",{fontCharacter:"\\ebdc"}),n.debugCoverage=new n("debug-coverage",{fontCharacter:"\\ebdd"}),n.runErrors=new n("run-errors",{fontCharacter:"\\ebde"}),n.folderLibrary=new n("folder-library",{fontCharacter:"\\ebdf"}),n.debugContinueSmall=new n("debug-continue-small",{fontCharacter:"\\ebe0"}),n.beakerStop=new n("beaker-stop",{fontCharacter:"\\ebe1"}),n.graphLine=new n("graph-line",{fontCharacter:"\\ebe2"}),n.graphScatter=new n("graph-scatter",{fontCharacter:"\\ebe3"}),n.pieChart=new n("pie-chart",{fontCharacter:"\\ebe4"}),n.bracket=new n("bracket",n.json.definition),n.bracketDot=new n("bracket-dot",{fontCharacter:"\\ebe5"}),n.bracketError=new n("bracket-error",{fontCharacter:"\\ebe6"}),n.lockSmall=new n("lock-small",{fontCharacter:"\\ebe7"}),n.azureDevops=new n("azure-devops",{fontCharacter:"\\ebe8"}),n.verifiedFilled=new n("verified-filled",{fontCharacter:"\\ebe9"})}(M||(M={}))},VlDO:function(Be,ee,v){Be.exports={flex_box_center:"flex_box_center___3v0of",flex_space_between:"flex_space_between___2ON3P",flex_box_vertical_center:"flex_box_vertical_center___1dze4",flex_box_center_end:"flex_box_center_end___VPAo5",flex_box_column:"flex_box_column___2f1aL",icons:"icons___hbWcc",shixuns:"shixuns___ed3FZ",buttons:"buttons___7shdA",addStage:"addStage___4vVUv",color4CA:"color4CA___1C3hM",color204:"color204___37f6U",completed:"completed___3Qqbj",actionTabs:"actionTabs___1GrUM",tab:"tab___3Ipqh",s1:"s1___3EKnf",s2:"s2___2nrm0",tabActive:"tabActive___24bZy",learn:"learn___HaTK4",labelContainer:"labelContainer___IVQXc",text:"text___z1m4c",tag:"tag___8gKDz","tagsList-content":"tagsList-content___YxKUD"}},VpOo:function(Be,ee){function v(Z,Q){var I=Q.x,k=Q.y,_=Q.width,O=Q.height,M=Q.r,T,n,p,a;_<0&&(I=I+_,_=-_),O<0&&(k=k+O,O=-O),typeof M=="number"?T=n=p=a=M:M instanceof Array?M.length===1?T=n=p=a=M[0]:M.length===2?(T=p=M[0],n=a=M[1]):M.length===3?(T=M[0],n=a=M[1],p=M[2]):(T=M[0],n=M[1],p=M[2],a=M[3]):T=n=p=a=0;var t;T+n>_&&(t=T+n,T*=_/t,n*=_/t),p+a>_&&(t=p+a,p*=_/t,a*=_/t),n+p>O&&(t=n+p,n*=O/t,p*=O/t),T+a>O&&(t=T+a,T*=O/t,a*=O/t),Z.moveTo(I+T,k),Z.lineTo(I+_-n,k),n!==0&&Z.arc(I+_-n,k+n,n,-Math.PI/2,0),Z.lineTo(I+_,k+O-p),p!==0&&Z.arc(I+_-p,k+O-p,p,0,Math.PI/2),Z.lineTo(I+a,k+O),a!==0&&Z.arc(I+a,k+O-a,a,Math.PI/2,Math.PI),Z.lineTo(I,k+T),T!==0&&Z.arc(I+T,k+T,T,Math.PI,Math.PI*1.5)}ee.buildPath=v},"VrN/":function(Be,ee,v){(function(Z,Q){Be.exports=Q()})(this,function(){"use strict";var Z=navigator.userAgent,Q=navigator.platform,I=/gecko\/\d/i.test(Z),k=/MSIE \d/.test(Z),_=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Z),O=/Edge\/(\d+)/.exec(Z),M=k||_||O,T=M&&(k?document.documentMode||6:+(O||_)[1]),n=!O&&/WebKit\//.test(Z),p=n&&/Qt\/\d+\.\d+/.test(Z),a=!O&&/Chrome\//.test(Z),t=/Opera\//.test(Z),A=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Z),i=/PhantomJS/.test(Z),c=!O&&/AppleWebKit/.test(Z)&&/Mobile\/\w+/.test(Z),d=/Android/.test(Z),f=c||d||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Z),o=c||/Mac/.test(Q),u=/\bCrOS\b/.test(Z),E=/win/i.test(Q),R=t&&Z.match(/Version\/(\d*\.\d*)/);R&&(R=Number(R[1])),R&&R>=15&&(t=!1,n=!0);var w=o&&(p||t&&(R==null||R<12.11)),P=I||M&&T>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var b=function(e,r){var L=e.className,D=C(r).exec(L);if(D){var j=L.slice(D.index+D[0].length);e.className=L.slice(0,D.index)+(j?D[1]+j:"")}};function s(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function h(e,r){return s(e).appendChild(r)}function m(e,r,L,D){var j=document.createElement(e);if(L&&(j.className=L),D&&(j.style.cssText=D),typeof r=="string")j.appendChild(document.createTextNode(r));else if(r)for(var q=0;q=r)return ue+(r-q);ue+=be-q,ue+=L-ue%L,q=be+1}}var K=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};K.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},K.prototype.set=function(e,r){this.f=r;var L=+new Date+e;(!this.id||L=r)return D+Math.min(ue,r-j);if(j+=q-D,j+=L-j%L,D=q+1,j>=r)return D}}var le=[""];function me(e){for(;le.length<=e;)le.push(se(le)+" ");return le[e]}function se(e){return e[e.length-1]}function ge(e,r){for(var L=[],D=0;D"\x80"&&(e.toUpperCase()!=e.toLowerCase()||xe.test(e))}function et(e,r){return r?r.source.indexOf("\\w")>-1&&Ke(e)?!0:r.test(e):Ke(e)}function he(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var Se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ue(e){return e.charCodeAt(0)>=768&&Se.test(e)}function Ne(e,r,L){for(;(L<0?r>0:rL?-1:1;;){if(r==L)return r;var j=(r+L)/2,q=D<0?Math.ceil(j):Math.floor(j);if(q==r)return e(q)?r:L;e(q)?L=q:r=q+D}}function ft(e,r,L,D){if(!e)return D(r,L,"ltr",0);for(var j=!1,q=0;qr||r==L&&ue.to==r)&&(D(Math.max(ue.from,r),Math.min(ue.to,L),ue.level==1?"rtl":"ltr",q),j=!0)}j||D(r,L,"ltr")}var Ot=null;function dt(e,r,L){var D;Ot=null;for(var j=0;jr)return j;q.to==r&&(q.from!=q.to&&L=="before"?D=j:Ot=j),q.from==r&&(q.from!=q.to&&L!="before"?D=j:Ot=j)}return D!=null?D:Ot}var Ut=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function L(De){return De<=247?e.charAt(De):1424<=De&&De<=1524?"R":1536<=De&&De<=1785?r.charAt(De-1536):1774<=De&&De<=2220?"r":8192<=De&&De<=8203?"w":De==8204?"b":"L"}var D=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,j=/[stwN]/,q=/[LRr]/,ue=/[Lb1n]/,be=/[1n]/;function Ee(De,ot,At){this.level=De,this.from=ot,this.to=At}return function(De,ot){var At=ot=="ltr"?"L":"R";if(De.length==0||ot=="ltr"&&!D.test(De))return!1;for(var Nt=De.length,Pt=[],hn=0;hn-1&&(D[r]=j.slice(0,q).concat(j.slice(q+1)))}}}function ut(e,r){var L=Et(e,r);if(!L.length)return;for(var D=Array.prototype.slice.call(arguments,2),j=0;j0}function He(e){e.prototype.on=function(r,L){Ve(this,r,L)},e.prototype.off=function(r,L){Rt(this,r,L)}}function we(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Le(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Pe(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function We(e){we(e),Le(e)}function Xe(e){return e.target||e.srcElement}function gt(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),o&&e.ctrlKey&&r==1&&(r=3),r}var Lt=function(){if(M&&T<9)return!1;var e=m("div");return"draggable"in e||"dragDrop"in e}(),en;function Zt(e){if(en==null){var r=m("span","\u200B");h(e,m("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(en=r.offsetWidth<=1&&r.offsetHeight>2&&!(M&&T<8))}var L=en?m("span","\u200B"):m("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return L.setAttribute("cm-text",""),L}var xt;function Ct(e){if(xt!=null)return xt;var r=h(e,document.createTextNode("A\u062EA")),L=g(r,0,1).getBoundingClientRect(),D=g(r,1,2).getBoundingClientRect();return s(e),!L||L.left==L.right?!1:xt=D.right-L.right<3}var mt=` b`.split(/\n/).length!=3?function(e){for(var r=0,L=[],D=e.length;r<=D;){var j=e.indexOf(` `,r);j==-1&&(j=e.length);var q=e.slice(r,e.charAt(j-1)=="\r"?j-1:j),ue=q.indexOf("\r");ue!=-1?(L.push(q.slice(0,ue)),r+=ue+1):(L.push(q),r=j+1)}return L}:function(e){return e.split(/\r\n?|\n/)},Je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(r){return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch(L){}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},Qe=function(){var e=m("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Oe=null;function je(e){if(Oe!=null)return Oe;var r=h(e,m("span","x")),L=r.getBoundingClientRect(),D=g(r,0,1).getBoundingClientRect();return Oe=Math.abs(L.left-D.left)>1}var St={},bt={};function Dt(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),St[e]=r}function Qt(e,r){bt[e]=r}function _t(e){if(typeof e=="string"&&bt.hasOwnProperty(e))e=bt[e];else if(e&&typeof e.name=="string"&&bt.hasOwnProperty(e.name)){var r=bt[e.name];typeof r=="string"&&(r={name:r}),e=Me(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return _t("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return _t("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Gt(e,r){r=_t(r);var L=St[r.name];if(!L)return Gt(e,"text/plain");var D=L(e,r);if(kt.hasOwnProperty(r.name)){var j=kt[r.name];for(var q in j){if(!j.hasOwnProperty(q))continue;D.hasOwnProperty(q)&&(D["_"+q]=D[q]),D[q]=j[q]}}if(D.name=r.name,r.helperType&&(D.helperType=r.helperType),r.modeProps)for(var ue in r.modeProps)D[ue]=r.modeProps[ue];return D}var kt={};function fn(e,r){var L=kt.hasOwnProperty(e)?kt[e]:kt[e]={};B(r,L)}function mn(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var L={};for(var D in r){var j=r[D];j instanceof Array&&(j=j.concat([])),L[D]=j}return L}function Tr(e,r){for(var L;e.innerMode&&!(L=e.innerMode(r),!L||L.mode==e);)r=L.state,e=L.mode;return L||{mode:e,state:r}}function Mr(e,r,L){return e.startState?e.startState(r,L):!0}var kr=function(e,r,L){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=L};kr.prototype.eol=function(){return this.pos>=this.string.length},kr.prototype.sol=function(){return this.pos==this.lineStart},kr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},kr.prototype.next=function(){if(this.posr},kr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},kr.prototype.skipToEnd=function(){this.pos=this.string.length},kr.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},kr.prototype.backUp=function(e){this.pos-=e},kr.prototype.column=function(){return this.lastColumnPos0?null:(q&&r!==!1&&(this.pos+=q[0].length),q)}},kr.prototype.current=function(){return this.string.slice(this.start,this.pos)},kr.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},kr.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},kr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Un(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var L=e;!L.lines;)for(var D=0;;++D){var j=L.children[D],q=j.chunkSize();if(r=e.first&&rL?_e(L,Un(e,L).text.length):V(r,Un(e,r.line).text.length)}function V(e,r){var L=e.ch;return L==null||L>r?_e(e.line,r):L<0?_e(e.line,0):e}function ne(e,r){for(var L=[],D=0;Dthis.maxLookAhead&&(this.maxLookAhead=e),r},oe.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},oe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},oe.fromSaved=function(e,r,L){return r instanceof ve?new oe(e,mn(e.mode,r.state),L,r.lookAhead):new oe(e,mn(e.mode,r),L)},oe.prototype.save=function(e){var r=e!==!1?mn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ve(r,this.maxLookAhead):r};function tt(e,r,L,D){var j=[e.state.modeGen],q={};qr(e,r.text,e.doc.mode,L,function(De,ot){return j.push(De,ot)},q,D);for(var ue=L.state,be=function(De){L.baseTokens=j;var ot=e.state.overlays[De],At=1,Nt=0;L.state=!0,qr(e,r.text,ot.mode,L,function(Pt,hn){for(var bn=At;NtPt&&j.splice(At,1,Pt,j[At+1],Fn),At+=2,Nt=Math.min(Pt,Fn)}if(!hn)return;if(ot.opaque)j.splice(bn,At-bn,Pt,"overlay "+hn),At=bn+2;else for(;bne.options.maxHighlightLength&&mn(e.doc.mode,D.state),q=tt(e,r,D);j&&(D.state=j),r.stateAfter=D.save(!j),r.styles=q.styles,q.classes?r.styleClasses=q.classes:r.styleClasses&&(r.styleClasses=null),L===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function dn(e,r,L){var D=e.doc,j=e.display;if(!D.mode.startState)return new oe(D,!0,r);var q=zr(e,r,L),ue=q>D.first&&Un(D,q-1).stateAfter,be=ue?oe.fromSaved(D,ue,q):new oe(D,Mr(D.mode),q);return D.iter(q,r,function(Ee){Cn(e,Ee.text,be);var De=be.line;Ee.stateAfter=De==r-1||De%5==0||De>=j.viewFrom&&Der.start)return q}throw new Error("Mode "+e.name+" failed to advance stream.")}var Xn=function(e,r,L){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=L};function lr(e,r,L,D){var j=e.doc,q=j.mode,ue;r=W(j,r);var be=Un(j,r.line),Ee=dn(e,r.line,L),De=new kr(be.text,e.options.tabSize,Ee),ot;for(D&&(ot=[]);(D||De.pose.options.maxHighlightLength?(be=!1,ue&&Cn(e,r,D,ot.pos),ot.pos=r.length,At=null):At=Rr(Vn(L,ot,D.state,Nt),q),Nt){var Pt=Nt[0].name;Pt&&(At="m-"+(At?Pt+" "+At:Pt))}if(!be||De!=At){for(;Eeue;--be){if(be<=q.first)return q.first;var Ee=Un(q,be-1),De=Ee.stateAfter;if(De&&(!L||be+(De instanceof ve?De.lookAhead:0)<=q.modeFrontier))return be;var ot=z(Ee.text,null,e.options.tabSize);(j==null||D>ot)&&(j=be-1,D=ot)}return j}function Ca(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),e.highlightFrontierL;D--){var j=Un(e,D).stateAfter;if(j&&(!(j instanceof ve)||D+j.lookAhead=r:q.to>r);(D||(D=[])).push(new Ka(ue,q.from,Ee?null:q.to))}}return D}function mi(e,r,L){var D;if(e)for(var j=0;j=r:q.to>r);if(be||q.from==r&&ue.type=="bookmark"&&(!L||q.marker.insertLeft)){var Ee=q.from==null||(ue.inclusiveLeft?q.from<=r:q.from0&&be)for(var br=0;br0)continue;var ot=[Ee,1],At=Ie(De.from,be.from),Nt=Ie(De.to,be.to);(At<0||!ue.inclusiveLeft&&!At)&&ot.push({from:De.from,to:be.from}),(Nt>0||!ue.inclusiveRight&&!Nt)&&ot.push({from:be.to,to:De.to}),j.splice.apply(j,ot),Ee+=ot.length-3}return j}function Yi(e){var r=e.markedSpans;if(!r)return;for(var L=0;Lr)&&(!D||ca(D,q.marker)<0)&&(D=q.marker)}return D}function Di(e,r,L,D,j){var q=Un(e,r),ue=ya&&q.markedSpans;if(ue)for(var be=0;be=0&&At<=0||ot<=0&&At>=0)continue;if(ot<=0&&(Ee.marker.inclusiveRight&&j.inclusiveLeft?Ie(De.to,L)>=0:Ie(De.to,L)>0)||ot>=0&&(Ee.marker.inclusiveRight&&j.inclusiveLeft?Ie(De.from,D)<=0:Ie(De.from,D)<0))return!0}}function ci(e){for(var r;r=ri(e);)e=r.find(-1,!0).line;return e}function Wo(e){for(var r;r=pa(e);)e=r.find(1,!0).line;return e}function Mo(e){for(var r,L;r=pa(e);)e=r.find(1,!0).line,(L||(L=[])).push(e);return L}function ii(e,r){var L=Un(e,r),D=ci(L);return L==D?r:Kr(D)}function go(e,r){if(r>e.lastLine())return r;var L=Un(e,r),D;if(!no(e,L))return r;for(;D=pa(L);)L=D.find(1,!0).line;return Kr(L)+1}function no(e,r){var L=ya&&r.markedSpans;if(L)for(var D=void 0,j=0;jr.maxLineLength&&(r.maxLineLength=j,r.maxLine=D)})}var ho=function(e,r,L){this.text=e,$r(this,r),this.height=L?L(this):1};ho.prototype.lineNo=function(){return Kr(this)},He(ho);function As(e,r,L,D){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Yi(e),$r(e,L);var j=D?D(e):1;j!=e.height&&aa(e,j)}function mr(e){e.parent=null,Yi(e)}var Vr={},ur={};function oa(e,r){if(!e||/^\s*$/.test(e))return null;var L=r.addModeClass?ur:Vr;return L[e]||(L[e]=e.replace(/\S+/g,"cm-$&"))}function wa(e,r){var L=x("span",null,null,n?"padding-right: .1px":null),D={pre:x("pre",[L],"CodeMirror-line"),content:L,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var j=0;j<=(r.rest?r.rest.length:0);j++){var q=j?r.rest[j-1]:r.line,ue=void 0;D.pos=0,D.addToken=Ba,Ct(e.display.measure)&&(ue=jt(q,e.doc.direction))&&(D.addToken=Ma(D.addToken,ue)),D.map=[];var be=r!=e.display.externalMeasured&&Kr(q);Po(q,D,Kt(e,q,be)),q.styleClasses&&(q.styleClasses.bgClass&&(D.bgClass=S(q.styleClasses.bgClass,D.bgClass||"")),q.styleClasses.textClass&&(D.textClass=S(q.styleClasses.textClass,D.textClass||""))),D.map.length==0&&D.map.push(0,0,D.content.appendChild(Zt(e.display.measure))),j==0?(r.measure.map=D.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(D.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(n){var Ee=D.content.lastChild;(/\bcm-tab\b/.test(Ee.className)||Ee.querySelector&&Ee.querySelector(".cm-tab"))&&(D.content.className="cm-tab-wrap-hack")}return ut(e,"renderLine",e,r.line,D.pre),D.pre.className&&(D.textClass=S(D.pre.className,D.textClass||"")),D}function ei(e){var r=m("span","\u2022","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function Ba(e,r,L,D,j,q,ue){if(!r)return;var be=e.splitSpaces?Ni(r,e.trailingSpace):r,Ee=e.cm.state.specialChars,De=!1,ot;if(!Ee.test(r))e.col+=r.length,ot=document.createTextNode(be),e.map.push(e.pos,e.pos+r.length,ot),M&&T<9&&(De=!0),e.pos+=r.length;else{ot=document.createDocumentFragment();for(var At=0;;){Ee.lastIndex=At;var Nt=Ee.exec(r),Pt=Nt?Nt.index-At:r.length-At;if(Pt){var hn=document.createTextNode(be.slice(At,At+Pt));M&&T<9?ot.appendChild(m("span",[hn])):ot.appendChild(hn),e.map.push(e.pos,e.pos+Pt,hn),e.col+=Pt,e.pos+=Pt}if(!Nt)break;At+=Pt+1;var bn=void 0;if(Nt[0]==" "){var Fn=e.cm.options.tabSize,Zn=Fn-e.col%Fn;bn=ot.appendChild(m("span",me(Zn),"cm-tab")),bn.setAttribute("role","presentation"),bn.setAttribute("cm-text"," "),e.col+=Zn}else Nt[0]=="\r"||Nt[0]==` `?(bn=ot.appendChild(m("span",Nt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),bn.setAttribute("cm-text",Nt[0]),e.col+=1):(bn=e.cm.options.specialCharPlaceholder(Nt[0]),bn.setAttribute("cm-text",Nt[0]),M&&T<9?ot.appendChild(m("span",[bn])):ot.appendChild(bn),e.col+=1);e.map.push(e.pos,e.pos+1,bn),e.pos++}}if(e.trailingSpace=be.charCodeAt(r.length-1)==32,L||D||j||De||q||ue){var sr=L||"";D&&(sr+=D),j&&(sr+=j);var $n=m("span",[ot],sr,q);if(ue)for(var br in ue)ue.hasOwnProperty(br)&&br!="style"&&br!="class"&&$n.setAttribute(br,ue[br]);return e.content.appendChild($n)}e.content.appendChild(ot)}function Ni(e,r){if(e.length>1&&!/ /.test(e))return e;for(var L=r,D="",j=0;jDe&&At.from<=De);Nt++);if(At.to>=ot)return e(L,D,j,q,ue,be,Ee);e(L,D.slice(0,At.to-De),j,q,null,be,Ee),q=null,D=D.slice(At.to-De),De=At.to}}}function xa(e,r,L,D){var j=!D&&L.widgetNode;j&&e.map.push(e.pos,e.pos+r,j),!D&&e.cm.display.input.needsContentAttribute&&(j||(j=e.content.appendChild(document.createElement("span"))),j.setAttribute("cm-marker",L.id)),j&&(e.cm.display.input.setUneditable(j),e.content.appendChild(j)),e.pos+=r,e.trailingSpace=!1}function Po(e,r,L){var D=e.markedSpans,j=e.text,q=0;if(!D){for(var ue=1;ueEe||Fa.collapsed&&Hr.to==Ee&&Hr.from==Ee)){if(Hr.to!=null&&Hr.to!=Ee&&Pt>Hr.to&&(Pt=Hr.to,bn=""),Fa.className&&(hn+=" "+Fa.className),Fa.css&&(Nt=(Nt?Nt+";":"")+Fa.css),Fa.startStyle&&Hr.from==Ee&&(Fn+=" "+Fa.startStyle),Fa.endStyle&&Hr.to==Pt&&(br||(br=[])).push(Fa.endStyle,Hr.to),Fa.title&&((sr||(sr={})).title=Fa.title),Fa.attributes)for(var ji in Fa.attributes)(sr||(sr={}))[ji]=Fa.attributes[ji];Fa.collapsed&&(!Zn||ca(Zn.marker,Fa)<0)&&(Zn=Hr)}else Hr.from>Ee&&Pt>Hr.from&&(Pt=Hr.from)}if(br)for(var Co=0;Co=be)break;for(var ds=Math.min(be,Pt);;){if(ot){var Qo=Ee+ot.length;if(!Zn){var po=Qo>ds?ot.slice(0,ds-Ee):ot;r.addToken(r,po,At?At+hn:hn,Fn,Ee+po.length==Pt?bn:"",Nt,sr)}if(Qo>=ds){ot=ot.slice(ds-Ee),Ee=ds;break}Ee=Qo,Fn=""}ot=j.slice(q,q=L[De++]),At=oa(L[De++],r.cm.options)}}}function Za(e,r,L){this.line=r,this.rest=Mo(r),this.size=this.rest?Kr(se(this.rest))-L+1:1,this.node=this.text=null,this.hidden=no(e,r)}function ro(e,r,L){for(var D=[],j,q=r;q2&&q.push((Ee.bottom+De.top)/2-L.top)}}q.push(L.bottom-L.top)}}function Re(e,r,L){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var D=0;DL)return{map:e.measure.maps[j],cache:e.measure.caches[j],before:!0}}function it(e,r){r=ci(r);var L=Kr(r),D=e.display.externalMeasured=new Za(e.doc,r,L);D.lineN=L;var j=D.built=wa(e,D);return D.text=j.pre,h(e.display.lineMeasure,j.pre),D}function st(e,r,L,D){return Mt(e,ht(e,r),L,D)}function Tt(e,r){if(r>=e.display.viewFrom&&r=L.lineN&&rr)&&(q=Ee-be,j=q-1,r>=Ee&&(ue="right")),j!=null){if(D=e[De+2],be==Ee&&L==(D.insertLeft?"left":"right")&&(ue=L),L=="left"&&j==0)for(;De&&e[De-2]==e[De-3]&&e[De-1].insertLeft;)D=e[(De-=3)+2],ue="left";if(L=="right"&&j==Ee-be)for(;De=0&&!((L=e[j]).left!=L.right);j--);return L}function Bt(e,r,L,D){var j=lt(r.map,L,D),q=j.node,ue=j.start,be=j.end,Ee=j.collapse,De;if(q.nodeType==3){for(var ot=0;ot<4;ot++){for(;ue&&Ue(r.line.text.charAt(j.coverStart+ue));)--ue;for(;j.coverStart+be0&&(Ee=D="right");var At;e.options.lineWrapping&&(At=q.getClientRects()).length>1?De=At[D=="right"?At.length-1:0]:De=q.getBoundingClientRect()}if(M&&T<9&&!ue&&(!De||!De.left&&!De.right)){var Nt=q.parentNode.getClientRects()[0];Nt?De={left:Nt.left,right:Nt.left+yn(e.display),top:Nt.top,bottom:Nt.bottom}:De=tn}for(var Pt=De.top-r.rect.top,hn=De.bottom-r.rect.top,bn=(Pt+hn)/2,Fn=r.view.measure.heights,Zn=0;Zn=D.text.length?(Ee=D.text.length,De="before"):Ee<=0&&(Ee=0,De="after"),!be)return ue(De=="before"?Ee-1:Ee,De=="before");function ot(hn,bn,Fn){var Zn=be[bn],sr=Zn.level==1;return ue(Fn?hn-1:hn,sr!=Fn)}var At=dt(be,Ee,De),Nt=Ot,Pt=ot(Ee,At,De=="before");return Nt!=null&&(Pt.other=ot(Ee,Nt,De!="before")),Pt}function wn(e,r){var L=0;r=W(e.doc,r),e.options.lineWrapping||(L=yn(e.display)*r.ch);var D=Un(e.doc,r.line),j=xo(D)+ol(e.display);return{left:L,right:L,top:j,bottom:j+D.height}}function ln(e,r,L,D,j){var q=_e(e,r,L);return q.xRel=j,D&&(q.outside=D),q}function xn(e,r,L){var D=e.doc;if(L+=e.display.viewOffset,L<0)return ln(D.first,0,null,-1,-1);var j=_a(D,L),q=D.first+D.size-1;if(j>q)return ln(D.first+D.size-1,Un(D,q).text.length,null,1,1);r<0&&(r=0);for(var ue=Un(D,j);;){var be=hr(e,ue,j,r,L),Ee=mo(ue,be.ch+(be.xRel>0||be.outside>0?1:0));if(!Ee)return be;var De=Ee.find(1);if(De.line==j)return De;ue=Un(D,j=De.line)}}function an(e,r,L,D){D-=An(r);var j=r.text.length,q=ct(function(ue){return Mt(e,L,ue-1).bottom<=D},j,0);return j=ct(function(ue){return Mt(e,L,ue).top>D},q,j),{begin:q,end:j}}function Vt(e,r,L,D){L||(L=ht(e,r));var j=qt(e,r,Mt(e,L,D),"line").top;return an(e,r,L,j)}function Sn(e,r,L,D){return e.bottom<=L?!1:e.top>L?!0:(D?e.left:e.right)>r}function hr(e,r,L,D,j){j-=xo(r);var q=ht(e,r),ue=An(r),be=0,Ee=r.text.length,De=!0,ot=jt(r,e.doc.direction);if(ot){var At=(e.options.lineWrapping?Dn:pn)(e,r,L,q,ot,D,j);De=At.level!=1,be=De?At.from:At.to-1,Ee=De?At.to:At.from-1}var Nt=null,Pt=null,hn=ct(function(Zr){var Hr=Mt(e,q,Zr);return Hr.top+=ue,Hr.bottom+=ue,Sn(Hr,D,j,!1)?(Hr.top<=j&&Hr.left<=D&&(Nt=Zr,Pt=Hr),!0):!1},be,Ee),bn,Fn,Zn=!1;if(Pt){var sr=D-Pt.left=br.bottom?1:0}return hn=Ne(r.text,hn,1),ln(L,hn,Fn,Zn,D-bn)}function pn(e,r,L,D,j,q,ue){var be=ct(function(At){var Nt=j[At],Pt=Nt.level!=1;return Sn(Yt(e,_e(L,Pt?Nt.to:Nt.from,Pt?"before":"after"),"line",r,D),q,ue,!0)},0,j.length-1),Ee=j[be];if(be>0){var De=Ee.level!=1,ot=Yt(e,_e(L,De?Ee.from:Ee.to,De?"after":"before"),"line",r,D);Sn(ot,q,ue,!0)&&ot.top>ue&&(Ee=j[be-1])}return Ee}function Dn(e,r,L,D,j,q,ue){var be=an(e,r,D,ue),Ee=be.begin,De=be.end;/\s/.test(r.text.charAt(De-1))&&De--;for(var ot=null,At=null,Nt=0;Nt=De||Pt.to<=Ee)continue;var hn=Pt.level!=1,bn=Mt(e,D,hn?Math.min(De,Pt.to)-1:Math.max(Ee,Pt.from)).right,Fn=bnFn)&&(ot=Pt,At=Fn)}return ot||(ot=j[j.length-1]),ot.fromDe&&(ot={from:ot.from,to:De,level:ot.level}),ot}var Nn;function Gn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Nn==null){Nn=m("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Nn.appendChild(document.createTextNode("x")),Nn.appendChild(m("br"));Nn.appendChild(document.createTextNode("x"))}h(e.measure,Nn);var L=Nn.offsetHeight/50;return L>3&&(e.cachedTextHeight=L),s(e.measure),L||1}function yn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=m("span","xxxxxxxxxx"),L=m("pre",[r],"CodeMirror-line-like");h(e.measure,L);var D=r.getBoundingClientRect(),j=(D.right-D.left)/10;return j>2&&(e.cachedCharWidth=j),j||10}function Kn(e){for(var r=e.display,L={},D={},j=r.gutters.clientLeft,q=r.gutters.firstChild,ue=0;q;q=q.nextSibling,++ue){var be=e.display.gutterSpecs[ue].className;L[be]=q.offsetLeft+q.clientLeft+j,D[be]=q.clientWidth}return{fixedPos:or(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:L,gutterWidth:D,wrapperWidth:r.wrapper.clientWidth}}function or(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function gr(e){var r=Gn(e.display),L=e.options.lineWrapping,D=L&&Math.max(5,e.display.scroller.clientWidth/yn(e.display)-3);return function(j){if(no(e.doc,j))return 0;var q=0;if(j.widgets)for(var ue=0;ue0&&(De=Un(e.doc,Ee.line).text).length==Ee.ch){var ot=z(De,De.length,e.options.tabSize)-De.length;Ee=_e(Ee.line,Math.max(0,Math.round((q-pt(e.display).left)/yn(e.display))-ot))}return Ee}function rr(e,r){if(r>=e.display.viewTo)return null;if(r-=e.display.viewFrom,r<0)return null;for(var L=e.display.view,D=0;Dr)&&(j.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=j.viewTo)ya&&ii(e.doc,r)j.viewFrom?_r(e):(j.viewFrom+=D,j.viewTo+=D);else if(r<=j.viewFrom&&L>=j.viewTo)_r(e);else if(r<=j.viewFrom){var q=sa(e,L,L+D,1);q?(j.view=j.view.slice(q.index),j.viewFrom=q.lineN,j.viewTo+=D):_r(e)}else if(L>=j.viewTo){var ue=sa(e,r,r,-1);ue?(j.view=j.view.slice(0,ue.index),j.viewTo=ue.lineN):_r(e)}else{var be=sa(e,r,r,-1),Ee=sa(e,L,L+D,1);be&&Ee?(j.view=j.view.slice(0,be.index).concat(ro(e,be.lineN,Ee.lineN)).concat(j.view.slice(Ee.index)),j.viewTo+=D):_r(e)}var De=j.externalMeasured;De&&(L=j.lineN&&r=D.viewTo)return;var q=D.view[rr(e,r)];if(q.node==null)return;var ue=q.changes||(q.changes=[]);$(ue,L)==-1&&ue.push(L)}function _r(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function sa(e,r,L,D){var j=rr(e,r),q,ue=e.display.view;if(!ya||L==e.doc.first+e.doc.size)return{index:j,lineN:L};for(var be=e.display.viewFrom,Ee=0;Ee0){if(j==ue.length-1)return null;q=be+ue[j].size-r,j++}else q=be-r;r+=q,L+=q}for(;ii(e.doc,L)!=L;){if(j==(D<0?0:ue.length-1))return null;L+=D*ue[j-(D<0?1:0)].size,j+=D}return{index:j,lineN:L}}function ta(e,r,L){var D=e.display,j=D.view;j.length==0||r>=D.viewTo||L<=D.viewFrom?(D.view=ro(e,r,L),D.viewFrom=r):(D.viewFrom>r?D.view=ro(e,r,D.viewFrom).concat(D.view):D.viewFromL&&(D.view=D.view.slice(0,rr(e,L)))),D.viewTo=L}function tr(e){for(var r=e.display.view,L=0,D=0;D=e.display.viewTo||be.to().line0?r.blinker=setInterval(function(){e.hasFocus()||fr(e),r.cursorDiv.style.visibility=(L=!L)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}function oi(e){e.state.focused||(e.display.input.focus(),Ir(e))}function Cr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,fr(e))},100)}function Ir(e,r){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(ut(e,"focus",e,r),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),n&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),yr(e)}function fr(e,r){if(e.state.delayingBlurEvent)return;e.state.focused&&(ut(e,"blur",e,r),e.state.focused=!1,b(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function ar(e){for(var r=e.display,L=r.lineDiv.offsetTop,D=0;D.005||ot<-.005)&&(aa(j.line,ue),Ln(j.line),j.rest))for(var At=0;Ate.display.sizerWidth){var Nt=Math.ceil(be/yn(e.display));Nt>e.display.maxLineLength&&(e.display.maxLineLength=Nt,e.display.maxLine=j.line,e.display.maxLineChanged=!0)}}}function Ln(e){if(e.widgets)for(var r=0;r=ue&&(q=_a(r,xo(Un(r,Ee))-e.wrapper.clientHeight),ue=Ee)}return{from:q,to:Math.max(ue,q+1)}}function gn(e,r){if(vt(e,"scrollCursorIntoView"))return;var L=e.display,D=L.sizer.getBoundingClientRect(),j=null;if(r.top+D.top<0?j=!0:r.bottom+D.top>(window.innerHeight||document.documentElement.clientHeight)&&(j=!1),j!=null&&!i){var q=m("div","\u200B",null,`position: absolute; top: `+(r.top-L.viewOffset-ol(e.display))+`px; height: `+(r.bottom-r.top+wt(e)+L.barHeight)+`px; left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(q),q.scrollIntoView(j),e.display.lineSpace.removeChild(q)}}function qn(e,r,L,D){D==null&&(D=0);var j;!e.options.lineWrapping&&r==L&&(r=r.ch?_e(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r,L=r.sticky=="before"?_e(r.line,r.ch+1,"before"):r);for(var q=0;q<5;q++){var ue=!1,be=Yt(e,r),Ee=!L||L==r?be:Yt(e,L);j={left:Math.min(be.left,Ee.left),top:Math.min(be.top,Ee.top)-D,right:Math.max(be.left,Ee.left),bottom:Math.max(be.bottom,Ee.bottom)+D};var De=cr(e,j),ot=e.doc.scrollTop,At=e.doc.scrollLeft;if(De.scrollTop!=null&&(Da(e,De.scrollTop),Math.abs(e.doc.scrollTop-ot)>1&&(ue=!0)),De.scrollLeft!=null&&(Qr(e,De.scrollLeft),Math.abs(e.doc.scrollLeft-At)>1&&(ue=!0)),!ue)break}return j}function na(e,r){var L=cr(e,r);L.scrollTop!=null&&Da(e,L.scrollTop),L.scrollLeft!=null&&Qr(e,L.scrollLeft)}function cr(e,r){var L=e.display,D=Gn(e.display);r.top<0&&(r.top=0);var j=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:L.scroller.scrollTop,q=Te(e),ue={};r.bottom-r.top>q&&(r.bottom=r.top+q);var be=e.doc.height+$e(L),Ee=r.topbe-D;if(r.topj+q){var ot=Math.min(r.top,(De?be:r.bottom)-q);ot!=j&&(ue.scrollTop=ot)}var At=e.options.fixedGutter?0:L.gutters.offsetWidth,Nt=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:L.scroller.scrollLeft-At,Pt=nt(e)-L.gutters.offsetWidth,hn=r.right-r.left>Pt;return hn&&(r.right=r.left+Pt),r.left<10?ue.scrollLeft=0:r.leftPt+Nt-3&&(ue.scrollLeft=r.right+(hn?0:10)-Pt),ue}function jr(e,r){if(r==null)return;ha(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r}function Pa(e){ha(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function da(e,r,L){(r!=null||L!=null)&&ha(e),r!=null&&(e.curOp.scrollLeft=r),L!=null&&(e.curOp.scrollTop=L)}function ba(e,r){ha(e),e.curOp.scrollToPos=r}function ha(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var L=wn(e,r.from),D=wn(e,r.to);Ta(e,L,D,r.margin)}}function Ta(e,r,L,D){var j=cr(e,{left:Math.min(r.left,L.left),top:Math.min(r.top,L.top)-D,right:Math.max(r.right,L.right),bottom:Math.max(r.bottom,L.bottom)+D});da(e,j.scrollLeft,j.scrollTop)}function Da(e,r){if(Math.abs(e.doc.scrollTop-r)<2)return;I||yo(e,{top:r}),Ua(e,r,!0),I&&yo(e),vo(e,100)}function Ua(e,r,L){if(r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),e.display.scroller.scrollTop==r&&!L)return;e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r)}function Qr(e,r,L,D){if(r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(L?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!D)return;e.doc.scrollLeft=r,la(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r)}function Wa(e){var r=e.display,L=r.gutters.offsetWidth,D=Math.round(e.doc.height+$e(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?L:0,docHeight:D,scrollHeight:D+wt(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:L}}var Ea=function(e,r,L){this.cm=L;var D=this.vert=m("div",[m("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),j=this.horiz=m("div",[m("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");D.tabIndex=j.tabIndex=-1,e(D),e(j),Ve(D,"scroll",function(){D.clientHeight&&r(D.scrollTop,"vertical")}),Ve(j,"scroll",function(){j.clientWidth&&r(j.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,M&&T<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ea.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,L=e.scrollHeight>e.clientHeight+1,D=e.nativeBarWidth;if(L){this.vert.style.display="block",this.vert.style.bottom=r?D+"px":"0";var j=e.viewHeight-(r?D:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+j)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=L?D+"px":"0",this.horiz.style.left=e.barLeft+"px";var q=e.viewWidth-e.barLeft-(L?D:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+q)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(D==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:L?D:0,bottom:r?D:0}},Ea.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ea.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ea.prototype.zeroWidthHack=function(){var e=o&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new K,this.disableVert=new K},Ea.prototype.enableZeroWidthBar=function(e,r,L){e.style.pointerEvents="auto";function D(){var j=e.getBoundingClientRect(),q=L=="vert"?document.elementFromPoint(j.right-1,(j.top+j.bottom)/2):document.elementFromPoint((j.right+j.left)/2,j.bottom-1);q!=e?e.style.pointerEvents="none":r.set(1e3,D)}r.set(1e3,D)},Ea.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var za=function(){};za.prototype.update=function(){return{bottom:0,right:0}},za.prototype.setScrollLeft=function(){},za.prototype.setScrollTop=function(){},za.prototype.clear=function(){};function hi(e,r){r||(r=Wa(e));var L=e.display.barWidth,D=e.display.barHeight;Ji(e,r);for(var j=0;j<4&&L!=e.display.barWidth||D!=e.display.barHeight;j++)L!=e.display.barWidth&&e.options.lineWrapping&&ar(e),Ji(e,Wa(e)),L=e.display.barWidth,D=e.display.barHeight}function Ji(e,r){var L=e.display,D=L.scrollbars.update(r);L.sizer.style.paddingRight=(L.barWidth=D.right)+"px",L.sizer.style.paddingBottom=(L.barHeight=D.bottom)+"px",L.heightForcer.style.borderBottom=D.bottom+"px solid transparent",D.right&&D.bottom?(L.scrollbarFiller.style.display="block",L.scrollbarFiller.style.height=D.bottom+"px",L.scrollbarFiller.style.width=D.right+"px"):L.scrollbarFiller.style.display="",D.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(L.gutterFiller.style.display="block",L.gutterFiller.style.height=D.bottom+"px",L.gutterFiller.style.width=r.gutterWidth+"px"):L.gutterFiller.style.display=""}var Li={native:Ea,null:za};function Ci(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&b(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Li[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),Ve(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,L){L=="horizontal"?Qr(e,r):Da(e,r)},e),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)}var Uo=0;function Ao(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Uo},To(e.curOp)}function _o(e){var r=e.curOp;r&&ti(r,function(L){for(var D=0;D=L.viewTo)||L.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new Ki(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function is(e){e.updatedDisplay=e.mustUpdate&&fo(e.cm,e.update)}function os(e){var r=e.cm,L=r.display;e.updatedDisplay&&ar(r),e.barMeasure=Wa(r),L.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=st(r,L.maxLine,L.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(L.scroller.clientWidth,L.sizer.offsetLeft+e.adjustWidthTo+wt(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,L.sizer.offsetLeft+e.adjustWidthTo-nt(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=L.input.prepareSelection())}function So(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var L=+new Date+e.options.workTime,D=dn(e,r.highlightFrontier),j=[];r.iter(D.line,Math.min(r.first+r.size,e.display.viewTo+500),function(q){if(D.line>=e.display.viewFrom){var ue=q.styles,be=q.text.length>e.options.maxHighlightLength?mn(r.mode,D.state):null,Ee=tt(e,q,D,!0);be&&(D.state=be),q.styles=Ee.styles;var De=q.styleClasses,ot=Ee.classes;ot?q.styleClasses=ot:De&&(q.styleClasses=null);for(var At=!ue||ue.length!=q.styles.length||De!=ot&&(!De||!ot||De.bgClass!=ot.bgClass||De.textClass!=ot.textClass),Nt=0;!At&&NtL)return vo(e,e.options.workDelay),!0}),r.highlightFrontier=D.line,r.modeFrontier=Math.max(r.modeFrontier,D.line),j.length&&Qi(e,function(){for(var q=0;q=L.viewFrom&&r.visible.to<=L.viewTo&&(L.updateLineNumbers==null||L.updateLineNumbers>=L.viewTo)&&L.renderedView==L.view&&tr(e)==0)return!1;xi(e)&&(_r(e),r.dims=Kn(e));var j=D.first+D.size,q=Math.max(r.visible.from-e.options.viewportMargin,D.first),ue=Math.min(j,r.visible.to+e.options.viewportMargin);L.viewFromue&&L.viewTo-ue<20&&(ue=Math.min(j,L.viewTo)),ya&&(q=ii(e.doc,q),ue=go(e.doc,ue));var be=q!=L.viewFrom||ue!=L.viewTo||L.lastWrapHeight!=r.wrapperHeight||L.lastWrapWidth!=r.wrapperWidth;ta(e,q,ue),L.viewOffset=xo(Un(e.doc,L.viewFrom)),e.display.mover.style.top=L.viewOffset+"px";var Ee=tr(e);if(!be&&Ee==0&&!r.force&&L.renderedView==L.view&&(L.updateLineNumbers==null||L.updateLineNumbers>=L.viewTo))return!1;var De=ls(e);return Ee>4&&(L.lineDiv.style.display="none"),es(e,L.updateLineNumbers,r.dims),Ee>4&&(L.lineDiv.style.display=""),L.renderedView=L.view,qo(De),s(L.cursorDiv),s(L.selectionDiv),L.gutters.style.height=L.sizer.style.minHeight=0,be&&(L.lastWrapHeight=r.wrapperHeight,L.lastWrapWidth=r.wrapperWidth,vo(e,400)),L.updateLineNumbers=null,!0}function zo(e,r){for(var L=r.viewport,D=!0;;D=!1){if(!D||!e.options.lineWrapping||r.oldDisplayWidth==nt(e)){if(L&&L.top!=null&&(L={top:Math.min(e.doc.height+$e(e.display)-Te(e),L.top)}),r.visible=Mn(e.display,e.doc,L),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else D&&(r.visible=Mn(e.display,e.doc,L));if(!fo(e,r))break;ar(e);var j=Wa(e);vr(e),hi(e,j),Oa(e,j),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function yo(e,r){var L=new Ki(e,r);if(fo(e,L)){ar(e),zo(e,L);var D=Wa(e);vr(e),hi(e,D),Oa(e,D),L.finish()}}function es(e,r,L){var D=e.display,j=e.options.lineNumbers,q=D.lineDiv,ue=q.firstChild;function be(hn){var bn=hn.nextSibling;return n&&o&&e.display.currentWheelTarget==hn?hn.style.display="none":hn.parentNode.removeChild(hn),bn}for(var Ee=D.view,De=D.viewFrom,ot=0;ot-1&&(Pt=!1),xs(e,At,De,L)),Pt&&(s(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(Ei(e.options,De)))),ue=At.node.nextSibling}De+=At.size}for(;ue;)ue=be(ue)}function Go(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px"}function Oa(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+wt(e)+"px"}function la(e){var r=e.display,L=r.view;if(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))return;for(var D=or(r)-r.scroller.scrollLeft+e.doc.scrollLeft,j=r.gutters.offsetWidth,q=D+"px",ue=0;ueue.clientWidth,Ee=ue.scrollHeight>ue.clientHeight;if(!(D&&be||j&&Ee))return;if(j&&o&&n){e:for(var De=r.target,ot=q.view;De!=ue;De=De.parentNode)for(var At=0;At=0&&Ie(e,D.to())<=0)return L}return-1};var Ha=function(e,r){this.anchor=e,this.head=r};Ha.prototype.from=function(){return sn(this.anchor,this.head)},Ha.prototype.to=function(){return Xt(this.anchor,this.head)},Ha.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Fi(e,r,L){var D=e&&e.options.selectionsMayTouch,j=r[L];r.sort(function(Nt,Pt){return Ie(Nt.from(),Pt.from())}),L=$(r,j);for(var q=1;q0:Ee>=0){var De=sn(be.from(),ue.from()),ot=Xt(be.to(),ue.to()),At=be.empty()?ue.from()==ue.head:be.from()==be.head;q<=L&&--L,r.splice(--q,2,new Ha(At?ot:De,At?De:ot))}}return new lo(r,L)}function Ti(e,r){return new lo([new Ha(e,r||e)],0)}function Ro(e){return e.text?_e(e.from.line+e.text.length-1,se(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Oi(e,r){if(Ie(e,r.from)<0)return e;if(Ie(e,r.to)<=0)return Ro(r);var L=e.line+r.text.length-(r.to.line-r.from.line)-1,D=e.ch;return e.line==r.to.line&&(D+=Ro(r).ch-r.to.ch),_e(L,D)}function Fo(e,r){for(var L=[],D=0;D1&&e.remove(be.line+1,hn-1),e.insert(be.line+1,Zn)}Ia(e,"change",e,r)}function nr(e,r,L){function D(j,q,ue){if(j.linked)for(var be=0;be1&&!e.done[e.done.length-2].ranges)return e.done.pop(),se(e.done)}function Bn(e,r,L,D){var j=e.history;j.undone.length=0;var q=+new Date,ue,be;if((j.lastOp==D||j.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&j.lastModTime>q-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(ue=dr(j,j.lastOp==D)))be=se(ue.changes),Ie(r.from,r.to)==0&&Ie(r.from,be.to)==0?be.to=Ro(r):ue.changes.push(jn(e,r));else{var Ee=se(j.done);for((!Ee||!Ee.ranges)&&ir(e.sel,j.done),ue={changes:[jn(e,r)],generation:j.generation},j.done.push(ue);j.done.length>j.undoDepth;)j.done.shift(),j.done[0].ranges||j.done.shift()}j.done.push(L),j.generation=++j.maxGeneration,j.lastModTime=j.lastSelTime=q,j.lastOp=j.lastSelOp=D,j.lastOrigin=j.lastSelOrigin=r.origin,be||ut(e,"historyAdded")}function Yr(e,r,L,D){var j=r.charAt(0);return j=="*"||j=="+"&&L.ranges.length==D.ranges.length&&L.somethingSelected()==D.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Ri(e,r,L,D){var j=e.history,q=D&&D.origin;L==j.lastSelOp||q&&j.lastSelOrigin==q&&(j.lastModTime==j.lastSelTime&&j.lastOrigin==q||Yr(e,q,se(j.done),r))?j.done[j.done.length-1]=r:ir(r,j.done),j.lastSelTime=+new Date,j.lastSelOrigin=q,j.lastSelOp=L,D&&D.clearRedo!==!1&&pr(j.undone)}function ir(e,r){var L=se(r);L&&L.ranges&&L.equals(e)||r.push(e)}function si(e,r,L,D){var j=r["spans_"+e.id],q=0;e.iter(Math.max(e.first,L),Math.min(e.first+e.size,D),function(ue){ue.markedSpans&&((j||(j=r["spans_"+e.id]={}))[q]=ue.markedSpans),++q})}function ao(e){if(!e)return null;for(var r,L=0;L-1&&(se(be)[At]=De[At],delete De[At]))}}return D}function Gi(e,r,L,D){if(D){var j=e.anchor;if(L){var q=Ie(r,j)<0;q!=Ie(L,j)<0?(j=r,r=L):q!=Ie(r,L)<0&&(r=L)}return new Ha(j,r)}else return new Ha(L||r,r)}function li(e,r,L,D,j){j==null&&(j=e.cm&&(e.cm.display.shift||e.extend)),ki(e,new lo([Gi(e.sel.primary(),r,L,j)],0),D)}function io(e,r,L){for(var D=[],j=e.cm&&(e.cm.display.shift||e.extend),q=0;q=r.ch:be.to>r.ch))){if(j&&(ut(Ee,"beforeCursorEnter"),Ee.explicitlyCleared))if(q.markedSpans){--ue;continue}else break;if(!Ee.atomic)continue;if(L){var At=Ee.find(D<0?1:-1),Nt=void 0;if((D<0?ot:De)&&(At=ul(e,At,-D,At&&At.line==r.line?q:null)),At&&At.line==r.line&&(Nt=Ie(At,L))&&(D<0?Nt<0:Nt>0))return us(e,At,r,D,j)}var Pt=Ee.find(D<0?-1:1);return(D<0?De:ot)&&(Pt=ul(e,Pt,D,Pt.line==r.line?q:null)),Pt?us(e,Pt,r,D,j):null}}return r}function ll(e,r,L,D,j){var q=D||1,ue=us(e,r,L,q,j)||!j&&us(e,r,L,q,!0)||us(e,r,L,-q,j)||!j&&us(e,r,L,-q,!0);return ue||(e.cantEdit=!0,_e(e.first,0))}function ul(e,r,L,D){return L<0&&r.ch==0?r.line>e.first?W(e,_e(r.line-1)):null:L>0&&r.ch==(D||Un(e,r.line)).text.length?r.line=0;--j)cl(e,{from:D[j].from,to:D[j].to,text:j?[""]:r.text,origin:r.origin});else cl(e,r)}function cl(e,r){if(r.text.length==1&&r.text[0]==""&&Ie(r.from,r.to)==0)return;var L=Fo(e,r);Bn(e,r,L,e.cm?e.cm.curOp.id:NaN),qs(e,r,L,_i(e,r));var D=[];nr(e,function(j,q){!q&&$(D,j.history)==-1&&(Bs(j.history,r),D.push(j.history)),qs(j,r,null,_i(j,r))})}function Qs(e,r,L){var D=e.cm&&e.cm.state.suppressEdits;if(D&&!L)return;for(var j=e.history,q,ue=e.sel,be=r=="undo"?j.done:j.undone,Ee=r=="undo"?j.undone:j.done,De=0;De=0;--Pt){var hn=Nt(Pt);if(hn)return hn.v}}function $s(e,r){if(r==0)return;if(e.first+=r,e.sel=new lo(ge(e.sel.ranges,function(j){return new Ha(_e(j.anchor.line+r,j.anchor.ch),_e(j.head.line+r,j.head.ch))}),e.sel.primIndex),e.cm){Lr(e.cm,e.first,e.first-r,r);for(var L=e.cm.display,D=L.viewFrom;De.lastLine())return;if(r.from.lineq&&(r={from:r.from,to:_e(q,Un(e,q).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Ra(e,r.from,r.to),L||(L=Fo(e,r)),e.cm?yl(e.cm,r,D):On(e,r,D),sl(e,L,Ae),e.cantEdit&&ll(e,_e(e.firstLine(),0))&&(e.cantEdit=!1)}function yl(e,r,L){var D=e.doc,j=e.display,q=r.from,ue=r.to,be=!1,Ee=q.line;e.options.lineWrapping||(Ee=Kr(ci(Un(D,q.line))),D.iter(Ee,ue.line+1,function(Pt){if(Pt==j.maxLine)return be=!0,!0})),D.sel.contains(r.from,r.to)>-1&&Ze(e),On(D,r,L,gr(e)),e.options.lineWrapping||(D.iter(Ee,q.line+r.text.length,function(Pt){var hn=Cs(Pt);hn>j.maxLineLength&&(j.maxLine=Pt,j.maxLineLength=hn,j.maxLineChanged=!0,be=!1)}),be&&(e.curOp.updateMaxLine=!0)),Ca(D,q.line),vo(e,400);var De=r.text.length-(ue.line-q.line)-1;r.full?Lr(e):q.line==ue.line&&r.text.length==1&&!Fs(e.doc,r)?Er(e,q.line,"text"):Lr(e,q.line,ue.line+1,De);var ot=ke(e,"changes"),At=ke(e,"change");if(At||ot){var Nt={from:q,to:ue,text:r.text,removed:r.removed,origin:r.origin};At&&Ia(e,"change",e,Nt),ot&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Nt)}e.display.selForContextMenu=null}function Rs(e,r,L,D,j){var q;D||(D=L),Ie(D,L)<0&&(q=[D,L],L=q[0],D=q[1]),typeof r=="string"&&(r=e.splitLines(r)),rs(e,{from:L,to:D,text:r,origin:j})}function Ol(e,r,L,D){L1||!(this.children[0]instanceof Is))){var be=[];this.collapse(be),this.children=[new Is(be)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r50){for(var ue=j.lines.length%25+25,be=ue;be10);e.parent.maybeSpill()},iterN:function(e,r,L){for(var D=0;De.display.maxLineLength&&(e.display.maxLine=De,e.display.maxLineLength=ot,e.display.maxLineChanged=!0)}D!=null&&e&&this.collapsed&&Lr(e,D,j+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Os(e.doc)),e&&Ia(e,"markerCleared",e,this,D,j),r&&_o(e),this.parent&&this.parent.clear()},ga.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var L,D,j=0;j0||ue==0&&q.clearWhenEmpty!==!1)return q;if(q.replacedWith&&(q.collapsed=!0,q.widgetNode=x("span",[q.replacedWith],"CodeMirror-widget"),D.handleMouseEvents||q.widgetNode.setAttribute("cm-ignore-events","true"),D.insertLeft&&(q.widgetNode.insertLeft=!0)),q.collapsed){if(Di(e,r.line,r,L,q)||r.line!=L.line&&Di(e,L.line,r,L,q))throw new Error("Inserting collapsed marker partially overlapping an existing one");fi()}q.addToHistory&&Bn(e,{from:r,to:L,origin:"markText"},e.sel,NaN);var be=r.line,Ee=e.cm,De;if(e.iter(be,L.line+1,function(At){Ee&&q.collapsed&&!Ee.options.lineWrapping&&ci(At)==Ee.display.maxLine&&(De=!0),q.collapsed&&be!=r.line&&aa(At,0),pi(At,new Ka(q,be==r.line?r.ch:null,be==L.line?L.ch:null)),++be}),q.collapsed&&e.iter(r.line,L.line+1,function(At){no(e,At)&&aa(At,0)}),q.clearOnEnter&&Ve(q,"beforeCursorEnter",function(){return q.clear()}),q.readOnly&&(ka(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),q.collapsed&&(q.id=++ma,q.atomic=!0),Ee){if(De&&(Ee.curOp.updateMaxLine=!0),q.collapsed)Lr(Ee,r.line,L.line+1);else if(q.className||q.startStyle||q.endStyle||q.css||q.attributes||q.title)for(var ot=r.line;ot<=L.line;ot++)Er(Ee,ot,"text");q.atomic&&Os(Ee.doc),Ia(Ee,"markerAdded",Ee,q)}return q}var La=function(e,r){this.markers=e,this.primary=r;for(var L=0;L=0;Ee--)rs(this,D[Ee]);be?gs(this,be):this.cm&&Pa(this.cm)}),undo:vi(function(){Qs(this,"undo")}),redo:vi(function(){Qs(this,"redo")}),undoSelection:vi(function(){Qs(this,"undo",!0)}),redoSelection:vi(function(){Qs(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,L=0,D=0;D=e.ch)&&r.push(j.marker.parent||j.marker)}return r},findMarks:function(e,r,L){e=W(this,e),r=W(this,r);var D=[],j=e.line;return this.iter(e.line,r.line+1,function(q){var ue=q.markedSpans;if(ue)for(var be=0;be=Ee.to||Ee.from==null&&j!=e.line||Ee.from!=null&&j==r.line&&Ee.from>=r.ch)&&(!L||L(Ee.marker))&&D.push(Ee.marker.parent||Ee.marker)}++j}),D},getAllMarks:function(){var e=[];return this.iter(function(r){var L=r.markedSpans;if(L)for(var D=0;De)return r=e,!0;e-=q,++L}),W(this,_e(L,r))},indexFromPos:function(e){e=W(this,e);var r=e.ch;if(e.liner&&(r=e.from),e.to!=null&&e.to-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var ot=e.dataTransfer.getData("Text");if(ot){var At;if(r.state.draggingText&&!r.state.draggingText.copy&&(At=r.listSelections()),sl(r.doc,Ti(L,L)),At)for(var Nt=0;Nt=0;be--)Rs(e.doc,"",D[be].from,D[be].to,"+delete");Pa(e)})}function du(e,r,L){var D=Ne(e.text,r+L,L);return D<0||D>e.text.length?null:D}function hu(e,r,L){var D=du(e,r.ch,L);return D==null?null:new _e(r.line,D,L<0?"after":"before")}function $l(e,r,L,D,j){if(e){r.doc.direction=="rtl"&&(j=-j);var q=jt(L,r.doc.direction);if(q){var ue=j<0?se(q):q[0],be=j<0==(ue.level==1),Ee=be?"after":"before",De;if(ue.level>0||r.doc.direction=="rtl"){var ot=ht(r,L);De=j<0?L.text.length-1:0;var At=Mt(r,ot,De).top;De=ct(function(Nt){return Mt(r,ot,Nt).top==At},j<0==(ue.level==1)?ue.from:ue.to-1,De),Ee=="before"&&(De=du(L,De,1))}else De=j<0?ue.to:ue.from;return new _e(D,De,Ee)}}return new _e(D,j<0?L.text.length:0,j<0?"before":"after")}function Au(e,r,L,D){var j=jt(r,e.doc.direction);if(!j)return hu(r,L,D);L.ch>=r.text.length?(L.ch=r.text.length,L.sticky="before"):L.ch<=0&&(L.ch=0,L.sticky="after");var q=dt(j,L.ch,L.sticky),ue=j[q];if(e.doc.direction=="ltr"&&ue.level%2==0&&(D>0?ue.to>L.ch:ue.from=ue.from&&Nt>=ot.begin)){var Pt=At?"before":"after";return new _e(L.line,Nt,Pt)}}var hn=function(Zn,sr,$n){for(var br=function(ji,Co){return Co?new _e(L.line,be(ji,1),"before"):new _e(L.line,ji,"after")};Zn>=0&&Zn0==(Zr.level!=1),Fa=Hr?$n.begin:be($n.end,-1);if(Zr.from<=Fa&&Fa0?ot.end:be(ot.begin,-1);return Fn!=null&&!(D>0&&Fn==r.text.length)&&(bn=hn(D>0?0:j.length-1,D,De(Fn)),bn)?bn:null}var Fl={selectAll:Sl,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ae)},killLine:function(e){return Ws(e,function(r){if(r.empty()){var L=Un(e.doc,r.head.line).text.length;return r.head.ch==L&&r.head.line0)j=new _e(j.line,j.ch+1),e.replaceRange(q.charAt(j.ch-1)+q.charAt(j.ch-2),_e(j.line,j.ch-2),j,"+transpose");else if(j.line>e.doc.first){var ue=Un(e.doc,j.line-1).text;ue&&(j=new _e(j.line,1),e.replaceRange(q.charAt(0)+e.doc.lineSeparator()+ue.charAt(ue.length-1),_e(j.line-1,ue.length-1),j,"+transpose"))}}L.push(new Ha(j,j))}e.setSelections(L)})},newlineAndIndent:function(e){return Qi(e,function(){for(var r=e.listSelections(),L=r.length-1;L>=0;L--)e.replaceRange(e.doc.lineSeparator(),r[L].anchor,r[L].head,"+input");r=e.listSelections();for(var D=0;De&&Ie(r,this.pos)==0&&L==this.button};var hl,jl;function Bu(e,r){var L=+new Date;return jl&&jl.compare(L,e,r)?(hl=jl=null,"triple"):hl&&hl.compare(L,e,r)?(jl=new Bl(L,e,r),hl=null,"double"):(hl=new Bl(L,e,r),jl=null,"single")}function nu(e){var r=this,L=r.display;if(vt(r,e)||L.activeTouch&&L.input.supportsTouch())return;if(L.input.ensurePolled(),L.shift=e.shiftKey,$o(L,e)){n||(L.scroller.draggable=!1,setTimeout(function(){return L.scroller.draggable=!0},100));return}if(mu(r,e))return;var D=er(r,e),j=gt(e),q=D?Bu(D,j):"single";if(window.focus(),j==1&&r.state.selectingText&&r.state.selectingText(e),D&&Iu(r,j,D,q,e))return;j==1?D?Lu(r,D,q,e):Xe(e)==L.scroller&&we(e):j==2?(D&&li(r.doc,D),setTimeout(function(){return L.input.focus()},20)):j==3&&(P?r.display.input.onContextMenu(e):Cr(r))}function Iu(e,r,L,D,j){var q="Click";return D=="double"?q="Double"+q:D=="triple"&&(q="Triple"+q),q=(r==1?"Left":r==2?"Middle":"Right")+q,kl(e,Zl(q,j),j,function(ue){if(typeof ue=="string"&&(ue=Fl[ue]),!ue)return!1;var be=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),be=ue(e,L)!=fe}finally{e.state.suppressEdits=!1}return be})}function Du(e,r,L){var D=e.getOption("configureMouse"),j=D?D(e,r,L):{};if(j.unit==null){var q=u?L.shiftKey&&L.metaKey:L.altKey;j.unit=q?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(j.extend==null||e.doc.extend)&&(j.extend=e.doc.extend||L.shiftKey),j.addNew==null&&(j.addNew=o?L.metaKey:L.ctrlKey),j.moveOnDrag==null&&(j.moveOnDrag=!(o?L.altKey:L.ctrlKey)),j}function Lu(e,r,L,D){M?setTimeout(F(oi,e),0):e.curOp.focus=U();var j=Du(e,L,D),q=e.doc.sel,ue;e.options.dragDrop&&Lt&&!e.isReadOnly()&&L=="single"&&(ue=q.contains(r))>-1&&(Ie((ue=q.ranges[ue]).from(),r)<0||r.xRel>0)&&(Ie(ue.to(),r)>0||r.xRel<0)?qu(e,D,r,j):Mu(e,D,r,j)}function qu(e,r,L,D){var j=e.display,q=!1,ue=Aa(e,function(De){n&&(j.scroller.draggable=!1),e.state.draggingText=!1,Rt(j.wrapper.ownerDocument,"mouseup",ue),Rt(j.wrapper.ownerDocument,"mousemove",be),Rt(j.scroller,"dragstart",Ee),Rt(j.scroller,"drop",ue),q||(we(De),D.addNew||li(e.doc,L,null,null,D.extend),n&&!A||M&&T==9?setTimeout(function(){j.wrapper.ownerDocument.body.focus({preventScroll:!0}),j.input.focus()},20):j.input.focus())}),be=function(De){q=q||Math.abs(r.clientX-De.clientX)+Math.abs(r.clientY-De.clientY)>=10},Ee=function(){return q=!0};n&&(j.scroller.draggable=!0),e.state.draggingText=ue,ue.copy=!D.moveOnDrag,j.scroller.dragDrop&&j.scroller.dragDrop(),Ve(j.wrapper.ownerDocument,"mouseup",ue),Ve(j.wrapper.ownerDocument,"mousemove",be),Ve(j.scroller,"dragstart",Ee),Ve(j.scroller,"drop",ue),Cr(e),setTimeout(function(){return j.input.focus()},20)}function Hl(e,r,L){if(L=="char")return new Ha(r,r);if(L=="word")return e.findWordAt(r);if(L=="line")return new Ha(_e(r.line,0),W(e.doc,_e(r.line+1,0)));var D=L(e,r);return new Ha(D.from,D.to)}function Mu(e,r,L,D){var j=e.display,q=e.doc;we(r);var ue,be,Ee=q.sel,De=Ee.ranges;if(D.addNew&&!D.extend?(be=q.sel.contains(L),be>-1?ue=De[be]:ue=new Ha(L,L)):(ue=q.sel.primary(),be=q.sel.primIndex),D.unit=="rectangle")D.addNew||(ue=new Ha(L,L)),L=er(e,r,!0,!0),be=-1;else{var ot=Hl(e,L,D.unit);D.extend?ue=Gi(ue,ot.anchor,ot.head,D.extend):ue=ot}D.addNew?be==-1?(be=De.length,ki(q,Fi(e,De.concat([ue]),be),{scroll:!1,origin:"*mouse"})):De.length>1&&De[be].empty()&&D.unit=="char"&&!D.extend?(ki(q,Fi(e,De.slice(0,be).concat(De.slice(be+1)),0),{scroll:!1,origin:"*mouse"}),Ee=q.sel):Yo(q,be,ue,ce):(be=0,ki(q,new lo([ue],0),ce),Ee=q.sel);var At=L;function Nt($n){if(Ie(At,$n)==0)return;if(At=$n,D.unit=="rectangle"){for(var br=[],Zr=e.options.tabSize,Hr=z(Un(q,L.line).text,L.ch,Zr),Fa=z(Un(q,$n.line).text,$n.ch,Zr),ji=Math.min(Hr,Fa),Co=Math.max(Hr,Fa),oo=Math.min(L.line,$n.line),ds=Math.min(e.lastLine(),Math.max(L.line,$n.line));oo<=ds;oo++){var Qo=Un(q,oo).text,po=ye(Qo,ji,Zr);ji==Co?br.push(new Ha(_e(oo,po),_e(oo,po))):Qo.length>po&&br.push(new Ha(_e(oo,po),_e(oo,ye(Qo,Co,Zr))))}br.length||br.push(new Ha(L,L)),ki(q,Fi(e,Ee.ranges.slice(0,be).concat(br),be),{origin:"*mouse",scroll:!1}),e.scrollIntoView($n)}else{var Ko=ue,Lo=Hl(e,$n,D.unit),zn=Ko.anchor,qi;Ie(Lo.anchor,zn)>0?(qi=Lo.head,zn=sn(Ko.from(),Lo.anchor)):(qi=Lo.anchor,zn=Xt(Ko.to(),Lo.head));var eo=Ee.ranges.slice(0);eo[be]=Pu(e,new Ha(W(q,zn),qi)),ki(q,Fi(e,eo,be),ce)}}var Pt=j.wrapper.getBoundingClientRect(),hn=0;function bn($n){var br=++hn,Zr=er(e,$n,!0,D.unit=="rectangle");if(!Zr)return;if(Ie(Zr,At)!=0){e.curOp.focus=U(),Nt(Zr);var Hr=Mn(j,q);(Zr.line>=Hr.to||Zr.linePt.bottom?20:0;Fa&&setTimeout(Aa(e,function(){if(hn!=br)return;j.scroller.scrollTop+=Fa,bn($n)}),50)}}function Fn($n){e.state.selectingText=!1,hn=Infinity,$n&&(we($n),j.input.focus()),Rt(j.wrapper.ownerDocument,"mousemove",Zn),Rt(j.wrapper.ownerDocument,"mouseup",sr),q.history.lastSelOrigin=null}var Zn=Aa(e,function($n){$n.buttons===0||!gt($n)?Fn($n):bn($n)}),sr=Aa(e,Fn);e.state.selectingText=sr,Ve(j.wrapper.ownerDocument,"mousemove",Zn),Ve(j.wrapper.ownerDocument,"mouseup",sr)}function Pu(e,r){var L=r.anchor,D=r.head,j=Un(e.doc,L.line);if(Ie(L,D)==0&&L.sticky==D.sticky)return r;var q=jt(j);if(!q)return r;var ue=dt(q,L.ch,L.sticky),be=q[ue];if(be.from!=L.ch&&be.to!=L.ch)return r;var Ee=ue+(be.from==L.ch==(be.level!=1)?0:1);if(Ee==0||Ee==q.length)return r;var De;if(D.line!=L.line)De=(D.line-L.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var ot=dt(q,D.ch,D.sticky),At=ot-ue||(D.ch-L.ch)*(be.level==1?-1:1);ot==Ee-1||ot==Ee?De=At<0:De=At>0}var Nt=q[Ee+(De?-1:0)],Pt=De==(Nt.level==1),hn=Pt?Nt.from:Nt.to,bn=Pt?"after":"before";return L.ch==hn&&L.sticky==bn?r:new Ha(new _e(L.line,hn,bn),D)}function Uu(e,r,L,D){var j,q;if(r.touches)j=r.touches[0].clientX,q=r.touches[0].clientY;else try{j=r.clientX,q=r.clientY}catch(Nt){return!1}if(j>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;D&&we(r);var ue=e.display,be=ue.lineDiv.getBoundingClientRect();if(q>be.bottom||!ke(e,L))return Pe(r);q-=be.top-ue.viewOffset;for(var Ee=0;Ee=j){var ot=_a(e.doc,q),At=e.display.gutterSpecs[Ee];return ut(e,L,e,ot,At.className,r),Pe(r)}}}function mu(e,r){return Uu(e,r,"gutterClick",!0)}function gu(e,r){if($o(e.display,r)||Il(e,r))return;if(vt(e,r,"contextmenu"))return;P||e.display.input.onContextMenu(r)}function Il(e,r){return ke(e,"gutterContextMenu")?Uu(e,r,"gutterContextMenu",!1):!1}function ru(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),_n(e)}var tl={toString:function(){return"CodeMirror.Init"}},Nu={},au={};function ec(e){var r=e.optionHandlers;function L(D,j,q,ue){e.defaults[D]=j,q&&(r[D]=ue?function(be,Ee,De){De!=tl&&q(be,Ee,De)}:q)}e.defineOption=L,e.Init=tl,L("value","",function(D,j){return D.setValue(j)},!0),L("mode",null,function(D,j){D.doc.modeOption=j,Xo(D)},!0),L("indentUnit",2,Xo,!0),L("indentWithTabs",!1),L("smartIndent",!0),L("tabSize",4,function(D){Ss(D),_n(D),Lr(D)},!0),L("lineSeparator",null,function(D,j){if(D.doc.lineSep=j,!j)return;var q=[],ue=D.doc.first;D.doc.iter(function(Ee){for(var De=0;;){var ot=Ee.text.indexOf(j,De);if(ot==-1)break;De=ot+j.length,q.push(_e(ue,ot))}ue++});for(var be=q.length-1;be>=0;be--)Rs(D.doc,j,q[be],_e(q[be].line,q[be].ch+j.length))}),L("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(D,j,q){D.state.specialChars=new RegExp(j.source+(j.test(" ")?"":"| "),"g"),q!=tl&&D.refresh()}),L("specialCharPlaceholder",ei,function(D){return D.refresh()},!0),L("electricChars",!0),L("inputStyle",f?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),L("spellcheck",!1,function(D,j){return D.getInputField().spellcheck=j},!0),L("autocorrect",!1,function(D,j){return D.getInputField().autocorrect=j},!0),L("autocapitalize",!1,function(D,j){return D.getInputField().autocapitalize=j},!0),L("rtlMoveVisually",!E),L("wholeLineUpdateBefore",!0),L("theme","default",function(D){ru(D),co(D)},!0),L("keyMap","default",function(D,j,q){var ue=bo(j),be=q!=tl&&bo(q);be&&be.detach&&be.detach(D,ue),ue.attach&&ue.attach(D,be||null)}),L("extraKeys",null),L("configureMouse",null),L("lineWrapping",!1,Fu,!0),L("gutters",[],function(D,j){D.display.gutterSpecs=Zi(j,D.options.lineNumbers),co(D)},!0),L("fixedGutter",!0,function(D,j){D.display.gutters.style.left=j?or(D.display)+"px":"0",D.refresh()},!0),L("coverGutterNextToScrollbar",!1,function(D){return hi(D)},!0),L("scrollbarStyle","native",function(D){Ci(D),hi(D),D.display.scrollbars.setScrollTop(D.doc.scrollTop),D.display.scrollbars.setScrollLeft(D.doc.scrollLeft)},!0),L("lineNumbers",!1,function(D,j){D.display.gutterSpecs=Zi(D.options.gutters,j),co(D)},!0),L("firstLineNumber",1,co,!0),L("lineNumberFormatter",function(D){return D},co,!0),L("showCursorWhenSelecting",!1,vr,!0),L("resetSelectionOnContextMenu",!0),L("lineWiseCopyCut",!0),L("pasteLinesPerSelection",!0),L("selectionsMayTouch",!1),L("readOnly",!1,function(D,j){j=="nocursor"&&(fr(D),D.display.input.blur()),D.display.input.readOnlyChanged(j)}),L("screenReaderLabel",null,function(D,j){j=j===""?null:j,D.display.input.screenReaderLabelChanged(j)}),L("disableInput",!1,function(D,j){j||D.display.input.reset()},!0),L("dragDrop",!0,tc),L("allowDropFileTypes",null),L("cursorBlinkRate",530),L("cursorScrollMargin",0),L("cursorHeight",1,vr,!0),L("singleCursorHeightPerLine",!0,vr,!0),L("workTime",100),L("workDelay",100),L("flattenSpans",!0,Ss,!0),L("addModeClass",!1,Ss,!0),L("pollInterval",100),L("undoDepth",200,function(D,j){return D.doc.history.undoDepth=j}),L("historyEventDelay",1250),L("viewportMargin",10,function(D){return D.refresh()},!0),L("maxHighlightLength",1e4,Ss,!0),L("moveInputWithCursor",!0,function(D,j){j||D.display.input.resetPosition()}),L("tabindex",null,function(D,j){return D.display.input.getField().tabIndex=j||""}),L("autofocus",null),L("direction","ltr",function(D,j){return D.doc.setDirection(j)},!0),L("phrases",null)}function tc(e,r,L){var D=L&&L!=tl;if(!r!=!D){var j=e.display.dragFunctions,q=r?Ve:Rt;q(e.display.scroller,"dragstart",j.start),q(e.display.scroller,"dragenter",j.enter),q(e.display.scroller,"dragover",j.over),q(e.display.scroller,"dragleave",j.leave),q(e.display.scroller,"drop",j.drop)}}function Fu(e){e.options.lineWrapping?(N(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(b(e.display.wrapper,"CodeMirror-wrap"),ws(e)),Ur(e),Lr(e),_n(e),setTimeout(function(){return hi(e)},100)}function Xi(e,r){var L=this;if(!(this instanceof Xi))return new Xi(e,r);this.options=r=r?B(r):{},B(Nu,r,!1);var D=r.value;typeof D=="string"?D=new In(D,r.mode,null,r.lineSeparator,r.direction):r.mode&&(D.modeOption=r.mode),this.doc=D;var j=new Xi.inputStyles[r.inputStyle](this),q=this.display=new No(e,D,j,r);q.wrapper.CodeMirror=this,ru(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ci(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new K,keySeq:null,specialChars:null},r.autofocus&&!f&&q.input.focus(),M&&T<11&&setTimeout(function(){return L.display.input.reset(!0)},20),ku(this),Bo(),Ao(this),this.curOp.forceUpdate=!0,zt(this,D),r.autofocus&&!f||this.hasFocus()?setTimeout(function(){L.hasFocus()&&!L.state.focused&&Ir(L)},20):fr(this);for(var ue in au)au.hasOwnProperty(ue)&&au[ue](this,r[ue],tl);xi(this),r.finishInit&&r.finishInit(this);for(var be=0;be20*20}Ve(r.scroller,"touchstart",function(Ee){if(!vt(e,Ee)&&!q(Ee)&&!mu(e,Ee)){r.input.ensurePolled(),clearTimeout(L);var De=+new Date;r.activeTouch={start:De,moved:!1,prev:De-D.end<=300?D:null},Ee.touches.length==1&&(r.activeTouch.left=Ee.touches[0].pageX,r.activeTouch.top=Ee.touches[0].pageY)}}),Ve(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ve(r.scroller,"touchend",function(Ee){var De=r.activeTouch;if(De&&!$o(r,Ee)&&De.left!=null&&!De.moved&&new Date-De.start<300){var ot=e.coordsChar(r.activeTouch,"page"),At;!De.prev||ue(De,De.prev)?At=new Ha(ot,ot):!De.prev.prev||ue(De,De.prev.prev)?At=e.findWordAt(ot):At=new Ha(_e(ot.line,0),W(e.doc,_e(ot.line+1,0))),e.setSelection(At.anchor,At.head),e.focus(),we(Ee)}j()}),Ve(r.scroller,"touchcancel",j),Ve(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Da(e,r.scroller.scrollTop),Qr(e,r.scroller.scrollLeft,!0),ut(e,"scroll",e))}),Ve(r.scroller,"mousewheel",function(Ee){return ts(e,Ee)}),Ve(r.scroller,"DOMMouseScroll",function(Ee){return ts(e,Ee)}),Ve(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(Ee){vt(e,Ee)||We(Ee)},over:function(Ee){vt(e,Ee)||(Nr(e,Ee),We(Ee))},start:function(Ee){return ra(e,Ee)},drop:Aa(e,Jn),leave:function(Ee){vt(e,Ee)||fa(e)}};var be=r.input.getField();Ve(be,"keyup",function(Ee){return Ou.call(e,Ee)}),Ve(be,"keydown",Aa(e,tu)),Ve(be,"keypress",Aa(e,Ru)),Ve(be,"focus",function(Ee){return Ir(e,Ee)}),Ve(be,"blur",function(Ee){return fr(e,Ee)})}var iu=[];Xi.defineInitHook=function(e){return iu.push(e)};function bl(e,r,L,D){var j=e.doc,q;L==null&&(L="add"),L=="smart"&&(j.mode.indent?q=dn(e,r).state:L="prev");var ue=e.options.tabSize,be=Un(j,r),Ee=z(be.text,null,ue);be.stateAfter&&(be.stateAfter=null);var De=be.text.match(/^\s*/)[0],ot;if(!D&&!/\S/.test(be.text))ot=0,L="not";else if(L=="smart"&&(ot=j.mode.indent(q,be.text.slice(De.length),be.text),ot==fe||ot>150)){if(!D)return;L="prev"}L=="prev"?r>j.first?ot=z(Un(j,r-1).text,null,ue):ot=0:L=="add"?ot=Ee+e.options.indentUnit:L=="subtract"?ot=Ee-e.options.indentUnit:typeof L=="number"&&(ot=Ee+L),ot=Math.max(0,ot);var At="",Nt=0;if(e.options.indentWithTabs)for(var Pt=Math.floor(ot/ue);Pt;--Pt)Nt+=ue,At+=" ";if(Ntue,Ee=mt(r),De=null;if(be&&D.ranges.length>1)if(Ls&&Ls.text.join(` `)==r){if(D.ranges.length%Ls.text.length==0){De=[];for(var ot=0;ot=0;Nt--){var Pt=D.ranges[Nt],hn=Pt.from(),bn=Pt.to();Pt.empty()&&(L&&L>0?hn=_e(hn.line,hn.ch-L):e.state.overwrite&&!be?bn=_e(bn.line,Math.min(Un(q,bn.line).text.length,bn.ch+se(Ee).length)):be&&Ls&&Ls.lineWise&&Ls.text.join(` `)==Ee.join(` `)&&(hn=bn=_e(hn.line,0)));var Fn={from:hn,to:bn,text:De?De[Nt%De.length]:Ee,origin:j||(be?"paste":e.state.cutIncoming>ue?"cut":"+input")};rs(e.doc,Fn),Ia(e,"inputRead",e,Fn)}r&&!be&&Wl(e,r),Pa(e),e.curOp.updateInput<2&&(e.curOp.updateInput=At),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Kl(e,r){var L=e.clipboardData&&e.clipboardData.getData("Text");if(L)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Qi(r,function(){return vu(r,L,0,null,"paste")}),!0}function Wl(e,r){if(!e.options.electricChars||!e.options.smartIndent)return;for(var L=e.doc.sel,D=L.ranges.length-1;D>=0;D--){var j=L.ranges[D];if(j.head.ch>100||D&&L.ranges[D-1].head.line==j.head.line)continue;var q=e.getModeAt(j.head),ue=!1;if(q.electricChars){for(var be=0;be-1){ue=bl(e,j.head.line,"smart");break}}else q.electricInput&&(q.electricInput.test(Un(e.doc,j.head.line).text.slice(0,j.head.ch))&&(ue=bl(e,j.head.line,"smart")));ue&&Ia(e,"electricInput",e,j.head.line)}}function yu(e){for(var r=[],L=[],D=0;Dq&&(bl(this,be.head.line,D,!0),q=be.head.line,ue==this.doc.sel.primIndex&&Pa(this));else{var Ee=be.from(),De=be.to(),ot=Math.max(q,Ee.line);q=Math.min(this.lastLine(),De.line-(De.ch?0:1))+1;for(var At=ot;At0&&Yo(this.doc,ue,new Ha(Ee,Nt[ue].to()),Ae)}}}),getTokenAt:function(D,j){return lr(this,D,j)},getLineTokens:function(D,j){return lr(this,_e(D),j,!0)},getTokenTypeAt:function(D){D=W(this.doc,D);var j=Kt(this,Un(this.doc,D.line)),q=0,ue=(j.length-1)/2,be=D.ch,Ee;if(be==0)Ee=j[2];else for(;;){var De=q+ue>>1;if((De?j[De*2-1]:0)>=be)ue=De;else if(j[De*2+1]Ee&&(D=Ee,ue=!0),be=Un(this.doc,D)}else be=D;return qt(this,be,{top:0,left:0},j||"page",q||ue).top+(ue?this.doc.height-xo(be):0)},defaultTextHeight:function(){return Gn(this.display)},defaultCharWidth:function(){return yn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(D,j,q,ue,be){var Ee=this.display;D=Yt(this,W(this.doc,D));var De=D.bottom,ot=D.left;if(j.style.position="absolute",j.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(j),Ee.sizer.appendChild(j),ue=="over")De=D.top;else if(ue=="above"||ue=="near"){var At=Math.max(Ee.wrapper.clientHeight,this.doc.height),Nt=Math.max(Ee.sizer.clientWidth,Ee.lineSpace.clientWidth);(ue=="above"||D.bottom+j.offsetHeight>At)&&D.top>j.offsetHeight?De=D.top-j.offsetHeight:D.bottom+j.offsetHeight<=At&&(De=D.bottom),ot+j.offsetWidth>Nt&&(ot=Nt-j.offsetWidth)}j.style.top=De+"px",j.style.left=j.style.right="",be=="right"?(ot=Ee.sizer.clientWidth-j.offsetWidth,j.style.right="0px"):(be=="left"?ot=0:be=="middle"&&(ot=(Ee.sizer.clientWidth-j.offsetWidth)/2),j.style.left=ot+"px"),q&&na(this,{left:ot,top:De,right:ot+j.offsetWidth,bottom:De+j.offsetHeight})},triggerOnKeyDown:wi(tu),triggerOnKeyPress:wi(Ru),triggerOnKeyUp:Ou,triggerOnMouseDown:wi(nu),execCommand:function(D){if(Fl.hasOwnProperty(D))return Fl[D].call(null,this)},triggerElectric:wi(function(D){Wl(this,D)}),findPosH:function(D,j,q,ue){var be=1;j<0&&(be=-1,j=-j);for(var Ee=W(this.doc,D),De=0;De0&&ot(q.charAt(ue-1));)--ue;for(;be.5||this.options.lineWrapping)&&Ur(this),ut(this,"refresh",this)}),swapDoc:wi(function(D){var j=this.doc;return j.cm=null,this.state.selectingText&&this.state.selectingText(),zt(this,D),_n(this),this.display.input.reset(),da(this,D.scrollLeft,D.scrollTop),this.curOp.forceScroll=!0,Ia(this,"swapDoc",this,j),j}),phrase:function(D){var j=this.options.phrases;return j&&Object.prototype.hasOwnProperty.call(j,D)?j[D]:D},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},He(e),e.registerHelper=function(D,j,q){L.hasOwnProperty(D)||(L[D]=e[D]={_global:[]}),L[D][j]=q},e.registerGlobalHelper=function(D,j,q,ue){e.registerHelper(D,j,ue),L[D]._global.push({pred:q,val:ue})}}function ou(e,r,L,D,j){var q=r,ue=L,be=Un(e,r.line),Ee=j&&e.direction=="rtl"?-L:L;function De(){var sr=r.line+Ee;return sr=e.first+e.size?!1:(r=new _e(sr,r.ch,r.sticky),be=Un(e,sr))}function ot(sr){var $n;if(D=="codepoint"){var br=be.text.charCodeAt(r.ch+(D>0?0:-1));isNaN(br)?$n=null:$n=new _e(r.line,Math.max(0,Math.min(be.text.length,r.ch+L*(br>=55296&&br<56320?2:1))),-L)}else j?$n=Au(e.cm,be,r,L):$n=hu(be,r,L);if($n==null)if(!sr&&De())r=$l(j,e.cm,be,r.line,Ee);else return!1;else r=$n;return!0}if(D=="char"||D=="codepoint")ot();else if(D=="column")ot(!0);else if(D=="word"||D=="group")for(var At=null,Nt=D=="group",Pt=e.cm&&e.cm.getHelper(r,"wordChars"),hn=!0;!(L<0&&!ot(!hn));hn=!1){var bn=be.text.charAt(r.ch)||` `,Fn=et(bn,Pt)?"w":Nt&&bn==` `?"n":!Nt||/\s/.test(bn)?null:"p";if(Nt&&!hn&&!Fn&&(Fn="s"),At&&At!=Fn){L<0&&(L=1,ot(),r.sticky="after");break}if(Fn&&(At=Fn),L>0&&!ot(!hn))break}var Zn=ll(e,r,q,ue,!0);return Ye(q,Zn)&&(Zn.hitSide=!0),Zn}function Qu(e,r,L,D){var j=e.doc,q=r.left,ue;if(D=="page"){var be=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ee=Math.max(be-.5*Gn(e.display),3);ue=(L>0?r.bottom:r.top)+L*Ee}else D=="line"&&(ue=L>0?r.bottom+3:r.top-3);for(var De;!(De=xn(e,q,ue),!De.outside);){if(L<0?ue<=0:ue>=j.height){De.hitSide=!0;break}ue+=L*5}return De}var Bi=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new K,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Bi.prototype.init=function(e){var r=this,L=this,D=L.cm,j=L.div=e.lineDiv;bu(j,D.options.spellcheck,D.options.autocorrect,D.options.autocapitalize);function q(be){for(var Ee=be.target;Ee;Ee=Ee.parentNode){if(Ee==j)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ee.className))break}return!1}Ve(j,"paste",function(be){if(!q(be)||vt(D,be)||Kl(be,D))return;T<=11&&setTimeout(Aa(D,function(){return r.updateFromDOM()}),20)}),Ve(j,"compositionstart",function(be){r.composing={data:be.data,done:!1}}),Ve(j,"compositionupdate",function(be){r.composing||(r.composing={data:be.data,done:!1})}),Ve(j,"compositionend",function(be){r.composing&&(be.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Ve(j,"touchstart",function(){return L.forceCompositionEnd()}),Ve(j,"input",function(){r.composing||r.readFromDOMSoon()});function ue(be){if(!q(be)||vt(D,be))return;if(D.somethingSelected())Ql({lineWise:!1,text:D.getSelections()}),be.type=="cut"&&D.replaceSelection("",null,"cut");else if(D.options.lineWiseCopyCut){var Ee=yu(D);Ql({lineWise:!0,text:Ee.text}),be.type=="cut"&&D.operation(function(){D.setSelections(Ee.ranges,0,Ae),D.replaceSelection("",null,"cut")})}else return;if(be.clipboardData){be.clipboardData.clearData();var De=Ls.text.join(` `);if(be.clipboardData.setData("Text",De),be.clipboardData.getData("Text")==De){be.preventDefault();return}}var ot=ju(),At=ot.firstChild;D.display.lineSpace.insertBefore(ot,D.display.lineSpace.firstChild),At.value=Ls.text.join(` `);var Nt=document.activeElement;H(At),setTimeout(function(){D.display.lineSpace.removeChild(ot),Nt.focus(),Nt==j&&L.showPrimarySelection()},50)}Ve(j,"copy",ue),Ve(j,"cut",ue)},Bi.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Bi.prototype.prepareSelection=function(){var e=ja(this.cm,!1);return e.focus=document.activeElement==this.div,e},Bi.prototype.showSelection=function(e,r){if(!e||!this.cm.display.view.length)return;(e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Bi.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Bi.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,L=r.doc.sel.primary(),D=L.from(),j=L.to();if(r.display.viewTo==r.display.viewFrom||D.line>=r.display.viewTo||j.line=r.display.viewFrom&&El(r,D)||{node:be[0].measure.map[2],offset:0},De=j.linee.firstLine()&&(D=_e(D.line-1,Un(e.doc,D.line-1).length)),j.ch==Un(e.doc,j.line).text.length&&j.liner.viewTo-1)return!1;var q,ue,be;D.line==r.viewFrom||(q=rr(e,D.line))==0?(ue=Kr(r.view[0].line),be=r.view[0].node):(ue=Kr(r.view[q].line),be=r.view[q-1].node.nextSibling);var Ee=rr(e,j.line),De,ot;if(Ee==r.view.length-1?(De=r.viewTo-1,ot=r.lineDiv.lastChild):(De=Kr(r.view[Ee+1].line)-1,ot=r.view[Ee+1].node.previousSibling),!be)return!1;for(var At=e.doc.splitLines(_l(e,be,ot,ue,De)),Nt=Ra(e.doc,_e(ue,0),_e(De,Un(e.doc,De).text.length));At.length>1&&Nt.length>1;)if(se(At)==se(Nt))At.pop(),Nt.pop(),De--;else if(At[0]==Nt[0])At.shift(),Nt.shift(),ue++;else break;for(var Pt=0,hn=0,bn=At[0],Fn=Nt[0],Zn=Math.min(bn.length,Fn.length);PtD.ch&&sr.charCodeAt(sr.length-hn-1)==$n.charCodeAt($n.length-hn-1);)Pt--,hn++;At[At.length-1]=sr.slice(0,sr.length-hn).replace(/^\u200b+/,""),At[0]=At[0].slice(Pt).replace(/\u200b+$/,"");var Zr=_e(ue,Pt),Hr=_e(De,Nt.length?se(Nt).length-hn:0);if(At.length>1||At[0]||Ie(Zr,Hr))return Rs(e.doc,At,Zr,Hr,"+input"),!0},Bi.prototype.ensurePolled=function(){this.forceCompositionEnd()},Bi.prototype.reset=function(){this.forceCompositionEnd()},Bi.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Bi.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},Bi.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Qi(this.cm,function(){return Lr(e.cm)})},Bi.prototype.setUneditable=function(e){e.contentEditable="false"},Bi.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Aa(this.cm,vu)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Bi.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Bi.prototype.onContextMenu=function(){},Bi.prototype.resetPosition=function(){},Bi.prototype.needsContentAttribute=!0;function El(e,r){var L=Tt(e,r.line);if(!L||L.hidden)return null;var D=Un(e.doc,r.line),j=Re(L,D,r.line),q=jt(D,e.doc.direction),ue="left";if(q){var be=dt(q,r.ch);ue=be%2?"right":"left"}var Ee=lt(j.map,r.ch,ue);return Ee.offset=Ee.collapse=="right"?Ee.end:Ee.start,Ee}function Ku(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function $i(e,r){return r&&(e.bad=!0),e}function _l(e,r,L,D,j){var q="",ue=!1,be=e.doc.lineSeparator(),Ee=!1;function De(Pt){return function(hn){return hn.id==Pt}}function ot(){ue&&(q+=be,Ee&&(q+=be),ue=Ee=!1)}function At(Pt){Pt&&(ot(),q+=Pt)}function Nt(Pt){if(Pt.nodeType==1){var hn=Pt.getAttribute("cm-text");if(hn){At(hn);return}var bn=Pt.getAttribute("cm-marker"),Fn;if(bn){var Zn=e.findMarks(_e(D,0),_e(j+1,0),De(+bn));Zn.length&&(Fn=Zn[0].find(0))&&At(Ra(e.doc,Fn.from,Fn.to).join(be));return}if(Pt.getAttribute("contenteditable")=="false")return;var sr=/^(pre|div|p|li|table|br)$/i.test(Pt.nodeName);if(!/^br$/i.test(Pt.nodeName)&&Pt.textContent.length==0)return;sr&&ot();for(var $n=0;$n=9&&r.hasSelection&&(r.hasSelection=null),L.poll()}),Ve(j,"paste",function(ue){if(vt(D,ue)||Kl(ue,D))return;D.state.pasteIncoming=+new Date,L.fastPoll()});function q(ue){if(vt(D,ue))return;if(D.somethingSelected())Ql({lineWise:!1,text:D.getSelections()});else if(D.options.lineWiseCopyCut){var be=yu(D);Ql({lineWise:!0,text:be.text}),ue.type=="cut"?D.setSelections(be.ranges,null,Ae):(L.prevInput="",j.value=be.text.join(` `),H(j))}else return;ue.type=="cut"&&(D.state.cutIncoming=+new Date)}Ve(j,"cut",q),Ve(j,"copy",q),Ve(e.scroller,"paste",function(ue){if($o(e,ue)||vt(D,ue))return;if(!j.dispatchEvent){D.state.pasteIncoming=+new Date,L.focus();return}var be=new Event("paste");be.clipboardData=ue.clipboardData,j.dispatchEvent(be)}),Ve(e.lineSpace,"selectstart",function(ue){$o(e,ue)||we(ue)}),Ve(j,"compositionstart",function(){var ue=D.getCursor("from");L.composing&&L.composing.range.clear(),L.composing={start:ue,range:D.markText(ue,D.getCursor("to"),{className:"CodeMirror-composing"})}}),Ve(j,"compositionend",function(){L.composing&&(L.poll(),L.composing.range.clear(),L.composing=null)})},Mi.prototype.createField=function(e){this.wrapper=ju(),this.textarea=this.wrapper.firstChild},Mi.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Mi.prototype.prepareSelection=function(){var e=this.cm,r=e.display,L=e.doc,D=ja(e);if(e.options.moveInputWithCursor){var j=Yt(e,L.sel.primary().head,"div"),q=r.wrapper.getBoundingClientRect(),ue=r.lineDiv.getBoundingClientRect();D.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,j.top+ue.top-q.top)),D.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,j.left+ue.left-q.left))}return D},Mi.prototype.showSelection=function(e){var r=this.cm,L=r.display;h(L.cursorDiv,e.cursors),h(L.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Mi.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var r=this.cm;if(r.somethingSelected()){this.prevInput="";var L=r.getSelection();this.textarea.value=L,r.state.focused&&H(this.textarea),M&&T>=9&&(this.hasSelection=L)}else e||(this.prevInput=this.textarea.value="",M&&T>=9&&(this.hasSelection=null))},Mi.prototype.getField=function(){return this.textarea},Mi.prototype.supportsTouch=function(){return!1},Mi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!f||U()!=this.textarea))try{this.textarea.focus()}catch(e){}},Mi.prototype.blur=function(){this.textarea.blur()},Mi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Mi.prototype.receivedFocus=function(){this.slowPoll()},Mi.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Mi.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function L(){var D=r.poll();!D&&!e?(e=!0,r.polling.set(60,L)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,L)},Mi.prototype.poll=function(){var e=this,r=this.cm,L=this.textarea,D=this.prevInput;if(this.contextMenuPending||!r.state.focused||Je(L)&&!D&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var j=L.value;if(j==D&&!r.somethingSelected())return!1;if(M&&T>=9&&this.hasSelection===j||o&&/[\uf700-\uf7ff]/.test(j))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var q=j.charCodeAt(0);if(q==8203&&!D&&(D="\u200B"),q==8666)return this.reset(),this.cm.execCommand("undo")}for(var ue=0,be=Math.min(D.length,j.length);ue1e3||j.indexOf(` `)>-1?L.value=e.prevInput="":e.prevInput=j,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Mi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Mi.prototype.onKeyPress=function(){M&&T>=9&&(this.hasSelection=null),this.fastPoll()},Mi.prototype.onContextMenu=function(e){var r=this,L=r.cm,D=L.display,j=r.textarea;r.contextMenuPending&&r.contextMenuPending();var q=er(L,e),ue=D.scroller.scrollTop;if(!q||t)return;var be=L.options.resetSelectionOnContextMenu;be&&L.doc.sel.contains(q)==-1&&Aa(L,ki)(L.doc,Ti(q),Ae);var Ee=j.style.cssText,De=r.wrapper.style.cssText,ot=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",j.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-ot.top-5)+"px; left: "+(e.clientX-ot.left-5)+`px; z-index: 1000; background: `+(M?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var At;n&&(At=window.scrollY),D.input.focus(),n&&window.scrollTo(null,At),D.input.reset(),L.somethingSelected()||(j.value=r.prevInput=" "),r.contextMenuPending=Pt,D.selForContextMenu=L.doc.sel,clearTimeout(D.detectingSelectAll);function Nt(){if(j.selectionStart!=null){var bn=L.somethingSelected(),Fn="\u200B"+(bn?j.value:"");j.value="\u21DA",j.value=Fn,r.prevInput=bn?"":"\u200B",j.selectionStart=1,j.selectionEnd=Fn.length,D.selForContextMenu=L.doc.sel}}function Pt(){if(r.contextMenuPending!=Pt)return;if(r.contextMenuPending=!1,r.wrapper.style.cssText=De,j.style.cssText=Ee,M&&T<9&&D.scrollbars.setScrollTop(D.scroller.scrollTop=ue),j.selectionStart!=null){(!M||M&&T<9)&&Nt();var bn=0,Fn=function(){D.selForContextMenu==L.doc.sel&&j.selectionStart==0&&j.selectionEnd>0&&r.prevInput=="\u200B"?Aa(L,Sl)(L):bn++<10?D.detectingSelectAll=setTimeout(Fn,500):(D.selForContextMenu=null,D.input.reset())};D.detectingSelectAll=setTimeout(Fn,200)}}if(M&&T>=9&&Nt(),P){We(e);var hn=function(){Rt(window,"mouseup",hn),setTimeout(Pt,20)};Ve(window,"mouseup",hn)}else setTimeout(Pt,50)},Mi.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Mi.prototype.setUneditable=function(){},Mi.prototype.needsContentAttribute=!1;function zl(e,r){if(r=r?B(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var L=U();r.autofocus=L==e||e.getAttribute("autofocus")!=null&&L==document.body}function D(){e.value=be.getValue()}var j;if(e.form&&(Ve(e.form,"submit",D),!r.leaveSubmitMethodAlone)){var q=e.form;j=q.submit;try{var ue=q.submit=function(){D(),q.submit=j,q.submit(),q.submit=ue}}catch(Ee){}}r.finishInit=function(Ee){Ee.save=D,Ee.getTextArea=function(){return e},Ee.toTextArea=function(){Ee.toTextArea=isNaN,D(),e.parentNode.removeChild(Ee.getWrapperElement()),e.style.display="",e.form&&(Rt(e.form,"submit",D),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=j))}},e.style.display="none";var be=Xi(function(Ee){return e.parentNode.insertBefore(Ee,e.nextSibling)},r);return be}function rl(e){e.off=Rt,e.on=Ve,e.wheelEventPixels=Pn,e.Doc=In,e.splitLines=mt,e.countColumn=z,e.findColumn=ye,e.isWordChar=Ke,e.Pass=fe,e.signal=ut,e.Line=ho,e.changeEnd=Ro,e.scrollbarModel=Li,e.Pos=_e,e.cmpPos=Ie,e.modes=St,e.mimeModes=bt,e.resolveMode=_t,e.getMode=Gt,e.modeExtensions=kt,e.extendMode=fn,e.copyState=mn,e.startState=Mr,e.innerMode=Tr,e.commands=Fl,e.keyMap=Ds,e.keyName=cu,e.isModifierKey=wu,e.lookupKey=bs,e.normalizeKeyMap=Cu,e.StringStream=kr,e.SharedTextMarker=La,e.TextMarker=ga,e.LineWidget=Fr,e.e_preventDefault=we,e.e_stopPropagation=Le,e.e_stop=We,e.addClass=N,e.contains=y,e.rmClass=b,e.keyNames=Io}ec(Xi),Hu(Xi);var Wu="iter insert remove copy getEditor constructor".split(" ");for(var Gl in In.prototype)In.prototype.hasOwnProperty(Gl)&&$(Wu,Gl)<0&&(Xi.prototype[Gl]=function(e){return function(){return e.apply(this.doc,arguments)}}(In.prototype[Gl]));return He(In),Xi.inputStyles={textarea:Mi,contenteditable:Bi},Xi.defineMode=function(e){!Xi.defaults.mode&&e!="null"&&(Xi.defaults.mode=e),Dt.apply(this,arguments)},Xi.defineMIME=Qt,Xi.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Xi.defineMIME("text/plain","null"),Xi.defineExtension=function(e,r){Xi.prototype[e]=r},Xi.defineDocExtension=function(e,r){In.prototype[e]=r},Xi.fromTextArea=zl,rl(Xi),Xi.version="5.58.2",Xi})},W6BS:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1uuJNZvNXxDvLBVszUtW5xSm0WL8Mh9hV0xoGFfKRItVzjYJmaFSQtHAFqVwY3i/pi7Kl2e6N9SOJaxkJk4q0CmqcZVBaGtybFY5OIaCscqKqsaUYBE6LYU08Jimi/dxrIYjudM5ynCohzCyvZaw3iCLEviqW3ntDxR1SreTDCbQ1OI65c2qZKQsY0RKlUVFoVxWcsS5DLdnHisKk6iX1iTeBOXlNgqK4kXxmTdgapAVlWKYpKLsuVYykSJictxVtKPNMq1K0saFiym8wWzKKkiSnKeDSud9i1llOe0XE3PrUTMLEmerys1zpVEYCVWIjqVS1aGEjYlJKrvKvYrAVoWGcKgxIkBYmKuurlRTuOqmkIrdCEOJ8qpyIuc/iInL7R5oAEoOVEXRv0cx8HyHBZxZAySJilplqFE8i3bGLHXqZvFlEp4qOJOKM6zrJKkUuN7Lp6t8GxxxcqIEtfCsnFNw1yViuQuxlVNbJ6AFNUuSjEUmbFWBfJEZITF6rywalW5ryyJc21czpSSy/RmErpSFIU2bJWWRRTFVcqwHPOdo3I8HbO60mVi1Y31qwqmYkN+Ox5Nl/Kv2V7t4DhWJWoSfZZFzy3whTUJCxNA4m02meVWgAWcASr31Kgk1+XJwitfl3ykDaPyWdzTiIeW9xKDBWlREkkgVmloWTdWorBIcwajiTlryZOkJClSVDRARUN0HvPut7+NuarxbD8hKqrEbcJTjDePTfiJiKy267iOu8yBot6KrgC0xWMkHiUMSiNsri2GqAoCCYETJlWU6VJcRpiTxUp6yMU1JQ7lPMJKFZvGXUXic4ijtKodxY7KIs8LFlFElC4rEbFwFsGsTzk74sbNI/70UsQDd67zyXe9mSKes3XnnVxZKK7sz8yzxcWWkWMW3mk3cB1xzyqXmtRg2LRMvMn13tItxXVFeBwJF0kfAlIqHgEoYPJSJFjyU0kugITJQlVgTYo4UVlFlmvyRFxUtNliMl2wWLqlZTuUyZxkvE/Wv8rFG2P+aq/g/yR1Um+dT53L+MyvvoUXD2esFGPO7qyhWqs8f3PGMMEsrCpQFM1miOvYOLbCtW2U5EgKE2+uFANWWamnI6AroTEKWyocAxDULClKEXsBUrEkqlm5ZxQXZLkIx7INEoYtG5NC4qxSYsthOJ+RZZp8MSUeXGF84wYv7A74q8OSZ4Yp+dadnGpYvKkW88vr8L5feQffGyo8yyU/usIDpwJ2du7gRuJyaRBRaI1rKxqdLkVekC5mzIaHnFnv4DRWsFWBrWxciTeTSKRIKAlcSTlV2hG3NwAnaVFKjFUsanItLiklmMUsTsky0dOTvk5R2DapUaXCKKhtW+xd36W/+zyH13Z5+uox3+6XXKWH17D4OTfi/tWQerLg2qjgvtNNPvbrv8K1m4c49R5Huk6jHtCY3eTcVkh9ZZtn+xnXb+4zH+9x/cJFJkf7BI7iNz78OO3tc9xc5NSEIaEsLxhNMpo1m9W2Z0SryqXiriVqnIjICIPaMJMLuKIqdhdJsgQoNQMMo4RUa0rbMbknGRxwcOUZLj73It/dnfA3U8U4Vpzq+Lxho8YOBcPpnCuJy1z5lG6Dd52Gjzx+nmf6BSvJDWppjFrZ5jj2qLs5O/6cuzZX+fZ3nuS//+GXTBz11k/R7K7yofe/lzu21om8JoeLAlvUM8lJC00YWKw0PcNelUbEVUvUKClLkf7MKKcxyDIdWEQnDJYWgac4mMdEGYz3d7n5/JNcuHCZJ/cWPD0u0Y7L2Y0G9wXgZDHXJhl7sUWSlnTXemzVYcsvOde1eeyD57kwUEROm3h0zE4zJcgXxO0dJrGibo24by0kmy/4ytf+mJuHx3RX1njiA49gez5NV+H1Nrl0nOFIzyhdia/otURxJVVonGUNqwaxLiVXSb4TIalctYrJJMlMvSe+/fyFF/iDL/1PvLCGH+3zv184Znde0Gp1eF3PYtWF/qzg4njBOLOot2qcabqc8nNCzyaKNLtzhwd26nzqo49xae+ItZpN4nWIW6tMR2N27DmBnTMPegwjm1P1jJ265vf/4IvYrsfjH3iUYPUU2XxA09J47TVujIQQi1oAnaazLCGlIKjKctWP88pFDbglwEK0o2oFnn3+Al/6+p/x7aeukRSKaf8Kd6+vMCngbCekKHN2+ykHixw3CNgRUC2bhl0yTkpuTguGqkFpe4jCvn1b87GPfYQfzBp0VETQ32WzV6OwA7LmNkk8o82Y0C4ZuqvU0hHf/PrXSCn5zQ9+AK97iv7xDVp1H0+VtFpdrs5sfNun2zzpMERdq/e3AIqWSCKXMksi8LtPP88Xv/a/+NZTV8nckE5vlWQ8ZHF4kbee7nF5EHMwzU2SXW/4nGo51FyYRQV7EfQz1whVqFLarQYbtYL1oGDdhw9/8AOo+ip7WY3RPKPXaaCm+3TtCK/WQNfXiZKYlrWg6RR8+ctfQyv40KPncbobFOni1vjEL2Ka7R6TMsCWErEs8BwIPZMt/w5AuUNZ8L3v/5D/9kd/yp8/dY1ZaRHW5IeKmhdiJxGL4R4bjYBpUrDTklbHYZzAzUXJsLDNA9qBzXrDZTVMWbczPJWT5jAvA+qBy71ntui26txz5gy9nTNE3gr9eY5da6KSEV0VmfxXNnqo6JBvfPUbaKX4yGOP0tjc4ehgn3araepbycV2HtNqNJmoJnkSUQsCVpoOlkwNbrmoFMXzOe/55L/nuVFCKwywpf6TYrdWJ2h2SKcT5jee5+c26xzNcg4XmrEWkCVrocVGqFi1clyVkOUpi8Iz8ZSqOkVjg6y+wYP+DX73n3+YZy5cZTE6IjoesNkOWNvcpLW6Req0SLyAdD6l5cQ0SPnDr3wdbdt86PwjWO0ViiTC93ziNMb1fMosMa+DhUWjXqfmO6w07R8HqEgWc9772f/M1cEY31Km0pdaUqoL16uhkgXp+AYrgccwKdgKNWtuQSiAsoJRDlOrSeT2SFtr0tNj1+u4cUJYU0S5zZnkAr/z6c8xi2BnewWdxswnxyz6+4wPbtDwLLa3t2msbuGvbZH29/jjr3wV7Xg88egjhJtnGPf3qbmeSc8iMKpIsL0ax4uSXqtJ4Dn0mnZVthkGpZBGkUYR7/7MF7g6nOJL3yWjBNfFDgLCRodiPjYJ/RdWC/L5hJG2megaU7tDFrSw7Rp23aNt2fRaHuuhzXY7pBfa3H/XFg/9k7dw/dJz2BtneXFvhvbq6DwhsApWuy08pyAeDTjcvUg02SdUDmfvOcuf/OW3cJ2Ax87/GrG3SjQfs73eIY1j07WUeY7teAwSixWpX215vsx8LNQgLpbdBESLiPd++j9ydTjDcaW6kxYILFtUyiFfLJiOD+gGAX4yZNy+h17DpRf6bPd8tkOHjW6dhqcME4WCRZwxj1LuP3c373/fO43r1ms1U8DPEs3hLGV3MKe/kM8JUvkHrk27XuNo90W+9T++SKfbpdXu8eivvYeodZpo2qfu26gix5f8kEZYtscwdel1mqau3Oh4+I6NGsZSqkFSwmgScf53/xPX+hPDoJQ7ruPg+QFOo0OnXKDGN7h7Z53NsKTVWaHpS5uSsUil77N5dnfI6TWfb//wiMZaB3824Wri8W/Pv4kHf+k9PHPtJg+tWBzqBmE559RaD6U1YehXRUSiORhF9Oea4+Njvvnl368YWVvn8fe/jwNrnWgyYLXbrCZudombx3h+jWHqGE+QY7O9BDgyAEtSA3DB+c99gWujObbkQXFyS4avVWvyxBtabDUcRrOUSVS1TtcOI06thTy1N+EX7+rx/Rsj3nhmhfF0SiMMaDnC4oI3PvB6nnjsPP3RhHbD5zD2IBkztQLy+QisOg07QzkO6w1PujrT9gyPjti7ecizL77Im99wP/vuafJkTCusUeYyJbDwSHFdj1R5rHVbpszcarumWVaTWGpRTYZiNIt55LNf4NJghGu7ph0x/ZhfpxO43FeLqXslea6o+VIO2SRFSTdUHExj1kOPZ/s59/U8vrM7YbXXppgOuZGF/Kt338tb3/M437uyyy+s+xxlLr4V0wzqFDqiXu9CnphFinpHmSbRBTXXIQzrXHnuaXScct2/h2S+T7veQBUpjhuaKYHjunhByEq3bXjZ7Mj9S9Q0LctqyFRw4dI1/sV/+K8cLyK6niKwLZM0m3aKVh5d1yJzfKJE5iZVz9Wf5ex0PK4Mc16/6nBtmnNn1zV5re471FTGPNE8/MbX8Vsf/U1GozHtekA/d3CKiKT0ydMZuRXg6oyFVrQ8mftUfZ909rWgxqXnnyXPUi6rM+hE7tEwY/6isPDLBa4XENbrZqxhpgwWPHimi5qnupQkOhsN+czv/TuSLEZJ01qYmbXpEeVGMq5r1VxKp40uJcFKV20xiXN6fsneXHNHy+IHfYsHVkue2Yuot+t48Zy9LOR33nGGdz72cf724lUe2nA50CENEiyvgU6m1MI6vjTctk3o2qSZNN/g26IZFrsXLpDGC75nvw4VjWj5MrbQxvA15vhuwFqnUc1mtAzKSt567ypqkelSW4pR/5hPfvbfEEuBbfYKSjKkMpFZSEGuLDphCH6DPNfVwMjCjCg6gc0gUWzVUo5ih9VAM4+1WV1YZIzTkrf9/Dk+8clPMZjO6dUcxri42YKs9CjSOTpo4Ocps1yKe5uiyMhKaXxdiiJl/9JFoijiyDmFThY4gWcmfalWODrFdXy2N1bJZcBVajNyfMu5VVSSlbJlwHH/iI9/4tNMU/BktKRcclVgaRtLi2UVnaAOQYM0l8FrhrJtJqliJdDsRTZ3hylPj33e0Em51M+pd3uEi0P2dIPf/qen+PWPfoKnL+/x4JrPXuYTFlMIOuTRGK/eoVbGLAqLRijViSbTOTU3QArR65dfZL6IcdbvIs1TdocF3bpPJ3RMzGWzASvr22C7ZpIn/x6+W+LUzPXgsN/nN574CEmSUtrVjo4lvaFTYDlSiSt6Gx1Cv0vhxliJTe6UlEnN7CRpw7QiLmVvopoOoF0sO2MclfzSm+/hM//y95guUtpShARtnCJmEeUoFeM1mziZJo4WeEHN7EUUSUpk73P95vfZvTYAvUa+ukGez9g7njPqF7Rd6RwKiugKi/llHMfHsnwzZG76ddTBwWGZZinD4YjPfvpzTGYzijwxsxBJxt07MlpnE1RmYbuKQG+iuhP0wEe1c+ILr8d2UhOrWldjDKu7TznaJFjbZX58Cqt2mTfd+y5+6+Nv53jyIr3mvYRunX5ymZ71MK6q4Qc+cVYwi2IaNR/PtdGpx7Xoqzx3+CeE84d54NR5IYhWo8Zf/s03+Oo3/wtrvW1Ct0PgrhA6K9TcDqV2jSAJc+rzn/98OZ1Ol/MVl7IsiOOINM0YTw4ZRJeJ9ZDpZEzQ9fGKDexmRJkVqMBn+twOyo5pNJsEYcjx8QG9h55kcel1hGcvMnvhHGrlBR66/1f55X+2zQvX/5q13r2QOQzzH/Lz7X/NYfEAvaZiePOQsrfOSnJIOwiNmz23+xccHr3AweGc8RjCIOD05lksakyjIzrBnRRimNmYXGdmHTs7pzh37pypadW1a9dKqRgODg7Y399nMhmTZZm5ecIxUTpgkR4yiQ+IFhPiLCeOZpSFB3GTXDdwdIv17hmarR4//MGT3PGL+1z/bo/em6/S/84pmg89zwPrj/COd55mMDkirNWwkx3G0QsUB2/Ba57jjq0OZTxGOS46ryYJ82jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},W6us:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IArs4c6QAAAv9JREFUSA2dVV1IVEEU/s7sqkuiUAahgREkQVjmS0FEBRWELz1Yj5ZSJBEaVm8RBOFbQSZIQUU9hFT4EqRuBdIP0oOia5lIZBRZoBWYy+a6O3M6s3DxXrurez1wOeee+b7zzZ05dwYIaD0x3dk9rNsD0hAOSgBjDwHTQXmBhZgwB7A8wcwjFI1xYYiw7sA2mshWJqRUHSkkso3b/LMPXJHOw9eaCko6OOUE1muY1pQx490xPuLOO3HZLV7b8BJz9X1QNnbybt8zok/plBlHwlxw5z1CIajbIMwQm87no1xugZeZVVkbN5S28YD5i2mTxmDmkdjm1t/geoux2O5hrpY9vCnhJOWrBzbnmOyr12T5Kg3M8UixunSyF8WJeXQxY7cX5X0jwmvZu9rH+5CeZXMxn1TH4uX/T8gpsfkOF83E0S8zrHRyS3rCu5Iwdo2eobgfzrN0bsCfWVzLWcQSGVt/p4WTxXy/aEM7b0wafBRyKAvPP03QBQoVX5ro82JA+MUYl+h5bKIwkge3IEZELCK1gUVsZZlYhgtcZWmQ6Ai2y5fk6VUYU6mkeaVZv02n9FDviD5m8TJYbf1KzOFGY6bFsB60tSmhn4SJ1HnA7JTZJCMR9TRTnFGyEhE315B6KHUjIhxWpPrCh6qoVwD2WTDCLxFemVmuWE0VfRPX6hTx7TrRGHIAQX02rq+QdE6XbJQOKmI5Ga4P0VfIticx7vrgl0xZjl9rW5KvkB1Yk4dzMsP3Ns7JBFtcBGksf8sqZI+Swnzsl3PsjT91IWsxFjt+gmYXst4oq5CFfTpNU43N2BtSaJBig16q/G+Ss2MWY7GLx93v0ua5W+YOSiFzfUAutu+N9DNXdk5C5R28Op1GnRQtcBc2QFwV4L4ILnnjWo7nKncXccc6jcPGoM2dc2Kex4TEUec9m8/pi44+4lD/FHbInxVxF9KM+I+zGLAHsTvvF+ck5BBLr3OL3KRNcjyxNMGVyWa654wt53NaOqeIzColcVL+L1nJTOwMLev/AaJkF76u7DFoAAAAAElFTkSuQmCC"},WPnJ:function(Be,ee,v){Be.exports={"sort-list-panel":"sort-list-panel___3NFo7","sort-list-tip":"sort-list-tip___1C7gJ","ant-drawer-content":"ant-drawer-content___z72s9","dragging-li":"dragging-li___2fI-b","task-list-container":"task-list-container___O3FkA",imgradius:"imgradius___2naxh",directionItemWrap:"directionItemWrap___12VCj",groupActionWrap:"groupActionWrap___3JLr9",teamHeight:"teamHeight___1JFgn",divHeight:"divHeight___3DCc8"}},WaYH:function(Be,ee,v){"use strict";var Z=v("rePB"),Q=v("Ff2n"),I=v("VTBJ"),k=v("1OyB"),_=v("vuIU"),O=v("JX7q"),M=v("Ji7U"),T=v("LK+K"),n=v("q1tI"),p=v("TSYQ"),a=v.n(p),t=v("sboe"),A=v("OZM5"),l=function(P){var C=P.prefixCls,b=P.level,s=P.isStart,h=P.isEnd;if(!b)return null;for(var m="".concat(C,"-indent-unit"),x=[],g=0;g1&&arguments[1]!==void 0?arguments[1]:!1,ie=Ae.getAttribute("id")||Ae.getAttribute("data-reactid")||Ae.getAttribute("name");if(ce&&U[ie])return U[ie];var ye=window.getComputedStyle(Ae),le=ye.getPropertyValue("box-sizing")||ye.getPropertyValue("-moz-box-sizing")||ye.getPropertyValue("-webkit-box-sizing"),me=parseFloat(ye.getPropertyValue("padding-bottom"))+parseFloat(ye.getPropertyValue("padding-top")),se=parseFloat(ye.getPropertyValue("border-bottom-width"))+parseFloat(ye.getPropertyValue("border-top-width")),ge=y.map(function(pe){return"".concat(pe,":").concat(ye.getPropertyValue(pe))}).join(";"),ae={sizingStyle:ge,paddingSize:me,borderSize:se,boxSizing:le};return ce&&ie&&(U[ie]=ae),ae}function H(Ae){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;N||(N=document.createElement("textarea"),N.setAttribute("tab-index","-1"),N.setAttribute("aria-hidden","true"),document.body.appendChild(N)),Ae.getAttribute("wrap")?N.setAttribute("wrap",Ae.getAttribute("wrap")):N.removeAttribute("wrap");var le=S(Ae,ce),me=le.paddingSize,se=le.borderSize,ge=le.boxSizing,ae=le.sizingStyle;N.setAttribute("style","".concat(ae,";").concat(g)),N.value=Ae.value||Ae.placeholder||"";var pe=Number.MIN_SAFE_INTEGER,Me=Number.MAX_SAFE_INTEGER,xe=N.scrollHeight,Ke;if(ge==="border-box"?xe+=se:ge==="content-box"&&(xe-=me),ie!==null||ye!==null){N.value=" ";var et=N.scrollHeight-me;ie!==null&&(pe=et*ie,ge==="border-box"&&(pe=pe+me+se),xe=Math.max(pe,xe)),ye!==null&&(Me=et*ye,ge==="border-box"&&(Me=Me+me+se),Ke=xe>Me?"":"hidden",xe=Math.min(Me,xe))}return{height:xe,minHeight:pe,maxHeight:Me,overflowY:Ke,resize:"none"}}var F=v("Gytx"),B=v.n(F),z;(function(Ae){Ae[Ae.NONE=0]="NONE",Ae[Ae.RESIZING=1]="RESIZING",Ae[Ae.RESIZED=2]="RESIZED"})(z||(z={}));var K=function(Ae){Object(k.a)(ie,Ae);var ce=Object(_.a)(ie);function ie(ye){var le;return Object(Q.a)(this,ie),le=ce.call(this,ye),le.nextFrameActionId=void 0,le.resizeFrameId=void 0,le.textArea=void 0,le.saveTextArea=function(me){le.textArea=me},le.handleResize=function(me){var se=le.state.resizeStatus,ge=le.props,ae=ge.autoSize,pe=ge.onResize;if(se!==z.NONE)return;typeof pe=="function"&&pe(me),ae&&le.resizeOnNextFrame()},le.resizeOnNextFrame=function(){cancelAnimationFrame(le.nextFrameActionId),le.nextFrameActionId=requestAnimationFrame(le.resizeTextarea)},le.resizeTextarea=function(){var me=le.props.autoSize;if(!me||!le.textArea)return;var se=me.minRows,ge=me.maxRows,ae=H(le.textArea,!1,se,ge);le.setState({textareaStyles:ae,resizeStatus:z.RESIZING},function(){cancelAnimationFrame(le.resizeFrameId),le.resizeFrameId=requestAnimationFrame(function(){le.setState({resizeStatus:z.RESIZED},function(){le.resizeFrameId=requestAnimationFrame(function(){le.setState({resizeStatus:z.NONE}),le.fixFirefoxAutoScroll()})})})})},le.renderTextArea=function(){var me=le.props,se=me.prefixCls,ge=se===void 0?"rc-textarea":se,ae=me.autoSize,pe=me.onResize,Me=me.className,xe=me.disabled,Ke=le.state,et=Ke.textareaStyles,he=Ke.resizeStatus,Se=Object(h.a)(le.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ue=x()(ge,Me,Object(T.a)({},"".concat(ge,"-disabled"),xe));"value"in Se&&(Se.value=Se.value||"");var Ne=Object(M.a)(Object(M.a)(Object(M.a)({},le.props.style),et),he===z.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return O.createElement(s,{onResize:le.handleResize,disabled:!(ae||pe)},O.createElement("textarea",Object(Z.a)({},Se,{className:Ue,style:Ne,ref:le.saveTextArea})))},le.state={textareaStyles:{},resizeStatus:z.NONE},le}return Object(I.a)(ie,[{key:"componentDidUpdate",value:function(le){(le.value!==this.props.value||!B()(le.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var le=this.textArea.selectionStart,me=this.textArea.selectionEnd;this.textArea.setSelectionRange(le,me)}}catch(se){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ie}(O.Component),$=K,te=function(Ae){Object(k.a)(ie,Ae);var ce=Object(_.a)(ie);function ie(ye){var le;Object(Q.a)(this,ie),le=ce.call(this,ye),le.resizableTextArea=void 0,le.focus=function(){le.resizableTextArea.textArea.focus()},le.saveTextArea=function(se){le.resizableTextArea=se},le.handleChange=function(se){var ge=le.props.onChange;le.setValue(se.target.value,function(){le.resizableTextArea.resizeTextarea()}),ge&&ge(se)},le.handleKeyDown=function(se){var ge=le.props,ae=ge.onPressEnter,pe=ge.onKeyDown;se.keyCode===13&&ae&&ae(se),pe&&pe(se)};var me=typeof ye.value=="undefined"||ye.value===null?ye.defaultValue:ye.value;return le.state={value:me},le}return Object(I.a)(ie,[{key:"setValue",value:function(le,me){"value"in this.props||this.setState({value:le},me)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return O.createElement($,Object(Z.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(le){return"value"in le?{value:le.value}:null}}]),ie}(O.Component),fe=ee.default=te},YH21:function(Be,ee,v){var Z=v("H6uX");ee.Dispatcher=Z;var Q=v("ItGF"),I=v("Ze12"),k=I.isCanvasEl,_=I.transformCoordWithViewport,O=typeof window!="undefined"&&!!window.addEventListener,M=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,T=[];function n(f,o,u,E){return u=u||{},E||!Q.canvasSupported?p(f,o,u):Q.browser.firefox&&o.layerX!=null&&o.layerX!==o.offsetX?(u.zrX=o.layerX,u.zrY=o.layerY):o.offsetX!=null?(u.zrX=o.offsetX,u.zrY=o.offsetY):p(f,o,u),u}function p(f,o,u){if(Q.domSupported&&f.getBoundingClientRect){var E=o.clientX,R=o.clientY;if(k(f)){var w=f.getBoundingClientRect();u.zrX=E-w.left,u.zrY=R-w.top;return}else if(_(T,f,E,R)){u.zrX=T[0],u.zrY=T[1];return}}u.zrX=u.zrY=0}function a(f){return f||window.event}function t(f,o,u){if(o=a(o),o.zrX!=null)return o;var E=o.type,R=E&&E.indexOf("touch")>=0;if(!R)n(f,o,o,u),o.zrDelta=o.wheelDelta?o.wheelDelta/120:-(o.detail||0)/3;else{var w=E!=="touchend"?o.targetTouches[0]:o.changedTouches[0];w&&n(f,w,o,u)}var P=o.button;return o.which==null&&P!==void 0&&M.test(o.type)&&(o.which=P&1?1:P&2?3:P&4?2:0),o}function A(f,o,u,E){O?f.addEventListener(o,u,E):f.attachEvent("on"+o,u)}function l(f,o,u,E){O?f.removeEventListener(o,u,E):f.detachEvent("on"+o,u)}var i=O?function(f){f.preventDefault(),f.stopPropagation(),f.cancelBubble=!0}:function(f){f.returnValue=!1,f.cancelBubble=!0};function c(f){return f.which===2||f.which===3}function d(f){return f.which>1}ee.clientToLocal=n,ee.getNativeEvent=a,ee.normalizeEvent=t,ee.addEventListener=A,ee.removeEventListener=l,ee.stop=i,ee.isMiddleOrRightButtonOnMouseUpDown=c,ee.notLeftMouse=d},"Ye+n":function(Be,ee,v){Be.exports={advertisementModal:"advertisementModal___2ZrRs",bodyHeight:"bodyHeight___3x6vP"}},YgsL:function(Be,ee,v){var Z=v("QBsz"),Q=Z.distance;function I(_,O,M,T,n,p,a){var t=(M-_)*.5,A=(T-O)*.5;return(2*(O-M)+t+A)*a+(-3*(O-M)-2*t-A)*p+t*n+O}function k(_,O){for(var M=_.length,T=[],n=0,p=1;pM-2?M-1:A+1],f=_[A>M-3?M-1:A+2]);var o=l*l,u=l*o;T.push([I(i[0],c[0],d[0],f[0],l,o,u),I(i[1],c[1],d[1],f[1],l,o,u)])}return T}Be.exports=k},ZKmM:function(Be,ee,v){Be.exports=v.p+"static/yc.ac1ebb9c.svg"},ZW9T:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return F});var Z=v("k1fw"),Q=v("oBTY"),I=v("miYZ"),k=v("tsqr"),_=v("rAM+"),O=v("tJVT"),M=v("PpiC"),T=v("q1tI"),n=v.n(T),p=v("bdgK"),a=v("9og8"),t=v("WmNS"),A=v.n(t),l={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},i={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` `)},{label:"System.out.println",content:["System.out.println($0)"].join(` `)},{label:"System.out.print",content:["System.out.print($0)"].join(` `)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},c={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(` `)},{label:"if",content:["if () {"," $0","}"].join(` `)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(` `)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(` `)},{label:"using namespace std;",content:["using namespace std;"].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},d={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},f=v("5VLF"),o=v.n(f),u={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},E=function(z,K){return K.map(function($){return{label:$,kind:z.languages.CompletionItemKind.Keyword,insertText:$}})},R=function(z){return Object.keys(u.tables).map(function(K){return{label:K,kind:z.languages.CompletionItemKind.Variable,insertText:K}})},w=function(z,K){var $=u.tables[z];return $?$.map(function(te){return{label:te,kind:K.languages.CompletionItemKind.Field,insertText:te}}):[]};function P(B,z,K,$,te){var fe=z.getWordUntilPosition(K),Ae={startLineNumber:K.lineNumber,endLineNumber:K.lineNumber,startColumn:fe.startColumn,endColumn:fe.endColumn},ce=$.map(function(ie){return{label:ie,kind:B.languages.CompletionItemKind.Keyword,insertText:ie,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ae}});return te.map(function(ie){ce.push(Object(Z.a)(Object(Z.a)({},ie),{},{range:Ae}))}),ce}var C=function(B){u.languages.map(function(te){return B.languages.registerDocumentFormattingEditProvider(te,{provideDocumentFormattingEdits:function(Ae,ce,ie){return Object(a.a)(A.a.mark(function ye(){var le;return A.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return le=o()(Ae.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),se.abrupt("return",[{range:Ae.getFullModelRange(),text:le}]);case 2:case"end":return se.stop()}},ye)}))()}}),te});var z=c.quickKey.map(function(te){return{label:te.label,kind:B.languages.CompletionItemKind.Method,insertText:te.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),K=d.quickKey.map(function(te){return{label:te.label,kind:B.languages.CompletionItemKind.Method,insertText:te.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),$=i.quickKey.map(function(te){return{label:te.label,kind:B.languages.CompletionItemKind.Method,insertText:te.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet}});B.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(fe,Ae){var ce=fe.getWordUntilPosition(Ae),ie={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ye=fe.getLineContent(Ae.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(Q.a)(c.keywords.map(function(le){return{label:le,kind:B.languages.CompletionItemKind.Function,documentation:le,insertText:le,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})),Object(Q.a)(c.quickKey.map(function(le){return{label:le.label,kind:B.languages.CompletionItemKind.Function,documentation:le.content,insertText:ye.startsWith("#")?le.content.replace(/#/,""):le.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})))}}}),B.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(fe,Ae){var ce=fe.getWordUntilPosition(Ae),ie={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn};return{suggestions:Object(Q.a)(l.keywords.map(function(ye){return{label:ye,kind:B.languages.CompletionItemKind.Function,documentation:ye,insertText:ye,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}}))}}}),B.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(fe,Ae){var ce=fe.getWordUntilPosition(Ae),ie={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ye=fe.getLineContent(Ae.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(Q.a)(i.keywords.map(function(le){return{label:le,kind:B.languages.CompletionItemKind.Function,documentation:le,insertText:le,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})),Object(Q.a)(i.quickKey.map(function(le){return{label:le.label,kind:B.languages.CompletionItemKind.Function,documentation:le.content,insertText:ye.startsWith("#")?le.content.replace(/#/,""):le.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})))}}}),B.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(fe,Ae){var ce=fe.getWordUntilPosition(Ae),ie={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ye=fe.getLineContent(Ae.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(Q.a)(d.keywords.map(function(le){return{label:le,kind:B.languages.CompletionItemKind.Function,documentation:le,insertText:le,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})),Object(Q.a)(d.quickKey.map(function(le){return{label:le.label,kind:B.languages.CompletionItemKind.Function,documentation:le.content,insertText:ye.startsWith("#")?le.content.replace(/#/,""):le.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})))}}})},b="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",s=v("fjLI"),h=v("LvDl"),m=v("+ua5");function x(B){return/^\d+$/.test(B)?"".concat(B,"px"):B}function g(){}var y=!1,U={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function N(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],z=B;if(Array.isArray(B)){for(var K=0;K0||Mr.target.offsetWidth>0)&&vt.current.instance.layout()}}catch(kr){mn.e(kr)}finally{mn.f()}}),kt.observe(ut.current)),kt}function Lt(){k.b.warn(decodeURIComponent(b))}var en=function(){var fn=vt.current.instance;if(fe!=null&&fn&&We){var mn=fn.getModel();mn&&fe!==mn.getValue()&&(y=!0,mn.setValue(fe),fn.layout(),y=!1)}};Object(T.useEffect)(function(){ke.current&&clearTimeout(ke.current),ke.current=setTimeout(function(){en()},500)},[fe,We,vt.current]),Object(T.useEffect)(function(){if(ze&&vt.current&&vt.current.instance){var kt=vt.current.instance;kt.changeViewZones(function(mn){var Tr=document.createElement("div");Tr.style.padding="10px 20px",Tr.style.width="calc(100% - 20px)",Tr.className="my-error-line-wrp",Tr.innerHTML=Et,mn.addZone({afterLineNumber:ze||11,heightInLines:3,domNode:Tr})});var fn={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};kt.addOverlayWidget(fn),kt.revealPositionInCenter({lineNumber:20,column:1})}},[ze,vt.current,We]);function Zt(){var kt=vt.current.instance;if(kt){var fn=kt.getSelection(),mn=vt.current.pastePos||{},Tr=new S.Range(mn.startLineNumber||fn.endLineNumber,mn.startColumn||fn.endColumn,mn.endLineNumber||fn.endLineNumber,mn.endColumn||fn.endColumn);setTimeout(function(){kt.executeEdits("",[{range:Tr,text:""}])},300)}}function xt(kt){(window.navigator.platform.match("Mac")?kt.metaKey:kt.ctrlKey)&&kt.keyCode==83&&(kt.preventDefault(),xe())}var Ct=function(){if(et&&vt.current.instance){var fn=vt.current.instance.getContentHeight();_t(fn0||ct.target.offsetWidth>0)&&et.layout()}}catch(ft){Ue.e(ft)}finally{Ue.f()}}),he.observe(le.current)),he}Object(T.useEffect)(function(){le.current&&Promise.all([v.e(16),v.e(28)]).then(v.t.bind(null,"M/lh",7)).then(function(et){S=et;var he=S.editor.createDiffEditor(le.current,Object(Z.a)(Object(Z.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ye),{},{wordWrap:!0}));ae(he);var Se=pe(he);return function(){he.dispose();var Ue=he.getModel();Ue&&Ue.dispose(),Se.unobserve(le.current)}})},[]),Object(T.useEffect)(function(){ge&&ge.setModel({original:S.editor.createModel(fe,ce),modified:S.editor.createModel(Ae,ce)})},[fe,Ae,ce,ge]);var Me=x(K),xe=x(te),Ke={width:Me,height:xe};return n.a.createElement("div",{className:"my-diff-editor",ref:le,style:Ke})}},Ze12:function(Be,ee,v){var Z=v("ItGF"),Q=v("hOwI"),I=Q.buildTransformer,k="___zrEVENTSAVED",_=[];function O(a,t,A,l,i){return M(_,t,l,i,!0)&&M(a,A,_[0],_[1])}function M(a,t,A,l,i){if(t.getBoundingClientRect&&Z.domSupported&&!p(t)){var c=t[k]||(t[k]={}),d=T(t,c),f=n(d,c,i);if(f)return f(a,A,l),!0}return!1}function T(a,t){var A=t.markers;if(A)return A;A=t.markers=[];for(var l=["left","right"],i=["top","bottom"],c=0;c<4;c++){var d=document.createElement("div"),f=d.style,o=c%2,u=(c>>1)%2;f.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",l[o]+":0",i[u]+":0",l[1-o]+":auto",i[1-u]+":auto",""].join("!important;"),a.appendChild(d),A.push(d)}return A}function n(a,t,A){for(var l=A?"invTrans":"trans",i=t[l],c=t.srcCoords,d=!0,f=[],o=[],u=0;u<4;u++){var E=a[u].getBoundingClientRect(),R=2*u,w=E.left,P=E.top;f.push(w,P),d=d&&c&&w===c[R]&&P===c[R+1],o.push(a[u].offsetLeft,a[u].offsetTop)}return d&&i?i:(t.srcCoords=f,t[l]=A?I(o,f):I(f,o))}function p(a){return a.nodeName.toUpperCase()==="CANVAS"}ee.transformLocalCoord=O,ee.transformCoordWithViewport=M,ee.isCanvasEl=p},ZpRC:function(Be,ee,v){"use strict";function Z(a){return typeof a=="object"&&a!=null&&a.nodeType===1}function Q(a,t){return(!t||a!=="hidden")&&a!=="visible"&&a!=="clip"}function I(a,t){if(a.clientHeightt||c>a&&d=t&&f>=A?c-a-l:d>t&&fA?d-t+i:0}var _=function(a,t){var A=window,l=t.scrollMode,i=t.block,c=t.inline,d=t.boundary,f=t.skipOverflowHiddenElements,o=typeof d=="function"?d:function(et){return et!==d};if(!Z(a))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,E=[],R=a;Z(R)&&o(R);){if((R=R.parentElement)===u){E.push(R);break}R!=null&&R===document.body&&I(R)&&!I(document.documentElement)||R!=null&&I(R,f)&&E.push(R)}for(var w=A.visualViewport?A.visualViewport.width:innerWidth,P=A.visualViewport?A.visualViewport.height:innerHeight,C=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,s=a.getBoundingClientRect(),h=s.height,m=s.width,x=s.top,g=s.right,y=s.bottom,U=s.left,N=i==="start"||i==="nearest"?x:i==="end"?y:x+h/2,S=c==="center"?U+m/2:c==="end"?g:U,H=[],F=0;F=0&&U>=0&&y<=P&&g<=w&&x>=te&&y<=Ae&&U>=ce&&g<=fe)return H;var ie=getComputedStyle(B),ye=parseInt(ie.borderLeftWidth,10),le=parseInt(ie.borderTopWidth,10),me=parseInt(ie.borderRightWidth,10),se=parseInt(ie.borderBottomWidth,10),ge=0,ae=0,pe="offsetWidth"in B?B.offsetWidth-B.clientWidth-ye-me:0,Me="offsetHeight"in B?B.offsetHeight-B.clientHeight-le-se:0;if(u===B)ge=i==="start"?N:i==="end"?N-P:i==="nearest"?k(b,b+P,P,le,se,b+N,b+N+h,h):N-P/2,ae=c==="start"?S:c==="center"?S-w/2:c==="end"?S-w:k(C,C+w,w,ye,me,C+S,C+S+m,m),ge=Math.max(0,ge+b),ae=Math.max(0,ae+C);else{ge=i==="start"?N-te-le:i==="end"?N-Ae+se+Me:i==="nearest"?k(te,Ae,K,le,se+Me,N,N+h,h):N-(te+K/2)+Me/2,ae=c==="start"?S-ce-ye:c==="center"?S-(ce+$/2)+pe/2:c==="end"?S-fe+me+pe:k(ce,fe,$,ye,me+pe,S,S+m,m);var xe=B.scrollLeft,Ke=B.scrollTop;N+=Ke-(ge=Math.max(0,Math.min(Ke+ge,B.scrollHeight-K+Me))),S+=xe-(ae=Math.max(0,Math.min(xe+ae,B.scrollWidth-$+pe)))}H.push({el:B,top:ge,left:ae})}return H};function O(a){return a===Object(a)&&Object.keys(a).length!==0}function M(a,t){t===void 0&&(t="auto");var A="scrollBehavior"in document.body.style;a.forEach(function(l){var i=l.el,c=l.top,d=l.left;i.scroll&&A?i.scroll({top:c,left:d,behavior:t}):(i.scrollTop=c,i.scrollLeft=d)})}function T(a){return a===!1?{block:"end",inline:"nearest"}:O(a)?a:{block:"start",inline:"nearest"}}function n(a,t){var A=!a.ownerDocument.documentElement.contains(a);if(O(t)&&typeof t.behavior=="function")return t.behavior(A?[]:_(a,t));if(A)return;var l=T(t);return M(_(a,l),l.behavior)}var p=ee.a=n},Zss7:function(Be,ee,v){var Z;(function(Q){var I=/^\s+/,k=/\s+$/,_=0,O=Q.round,M=Q.min,T=Q.max,n=Q.random;function p(se,ge){if(se=se||"",ge=ge||{},se instanceof p)return se;if(!(this instanceof p))return new p(se,ge);var ae=a(se);this._originalInput=se,this._r=ae.r,this._g=ae.g,this._b=ae.b,this._a=ae.a,this._roundA=O(100*this._a)/100,this._format=ge.format||ae.format,this._gradientType=ge.gradientType,this._r<1&&(this._r=O(this._r)),this._g<1&&(this._g=O(this._g)),this._b<1&&(this._b=O(this._b)),this._ok=ae.ok,this._tc_id=_++}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var se=this.toRgb();return(se.r*299+se.g*587+se.b*114)/1e3},getLuminance:function(){var se=this.toRgb(),ge,ae,pe,Me,xe,Ke;return ge=se.r/255,ae=se.g/255,pe=se.b/255,ge<=.03928?Me=ge/12.92:Me=Q.pow((ge+.055)/1.055,2.4),ae<=.03928?xe=ae/12.92:xe=Q.pow((ae+.055)/1.055,2.4),pe<=.03928?Ke=pe/12.92:Ke=Q.pow((pe+.055)/1.055,2.4),.2126*Me+.7152*xe+.0722*Ke},setAlpha:function(se){return this._a=H(se),this._roundA=O(100*this._a)/100,this},toHsv:function(){var se=i(this._r,this._g,this._b);return{h:se.h*360,s:se.s,v:se.v,a:this._a}},toHsvString:function(){var se=i(this._r,this._g,this._b),ge=O(se.h*360),ae=O(se.s*100),pe=O(se.v*100);return this._a==1?"hsv("+ge+", "+ae+"%, "+pe+"%)":"hsva("+ge+", "+ae+"%, "+pe+"%, "+this._roundA+")"},toHsl:function(){var se=A(this._r,this._g,this._b);return{h:se.h*360,s:se.s,l:se.l,a:this._a}},toHslString:function(){var se=A(this._r,this._g,this._b),ge=O(se.h*360),ae=O(se.s*100),pe=O(se.l*100);return this._a==1?"hsl("+ge+", "+ae+"%, "+pe+"%)":"hsla("+ge+", "+ae+"%, "+pe+"%, "+this._roundA+")"},toHex:function(se){return d(this._r,this._g,this._b,se)},toHexString:function(se){return"#"+this.toHex(se)},toHex8:function(se){return f(this._r,this._g,this._b,this._a,se)},toHex8String:function(se){return"#"+this.toHex8(se)},toRgb:function(){return{r:O(this._r),g:O(this._g),b:O(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+O(this._r)+", "+O(this._g)+", "+O(this._b)+")":"rgba("+O(this._r)+", "+O(this._g)+", "+O(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:O(F(this._r,255)*100)+"%",g:O(F(this._g,255)*100)+"%",b:O(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+O(F(this._r,255)*100)+"%, "+O(F(this._g,255)*100)+"%, "+O(F(this._b,255)*100)+"%)":"rgba("+O(F(this._r,255)*100)+"%, "+O(F(this._g,255)*100)+"%, "+O(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:N[d(this._r,this._g,this._b,!0)]||!1},toFilter:function(se){var ge="#"+o(this._r,this._g,this._b,this._a),ae=ge,pe=this._gradientType?"GradientType = 1, ":"";if(se){var Me=p(se);ae="#"+o(Me._r,Me._g,Me._b,Me._a)}return"progid:DXImageTransform.Microsoft.gradient("+pe+"startColorstr="+ge+",endColorstr="+ae+")"},toString:function(se){var ge=!!se;se=se||this._format;var ae=!1,pe=this._a<1&&this._a>=0,Me=!ge&&pe&&(se==="hex"||se==="hex6"||se==="hex3"||se==="hex4"||se==="hex8"||se==="name");return Me?se==="name"&&this._a===0?this.toName():this.toRgbString():(se==="rgb"&&(ae=this.toRgbString()),se==="prgb"&&(ae=this.toPercentageRgbString()),(se==="hex"||se==="hex6")&&(ae=this.toHexString()),se==="hex3"&&(ae=this.toHexString(!0)),se==="hex4"&&(ae=this.toHex8String(!0)),se==="hex8"&&(ae=this.toHex8String()),se==="name"&&(ae=this.toName()),se==="hsl"&&(ae=this.toHslString()),se==="hsv"&&(ae=this.toHsvString()),ae||this.toHexString())},clone:function(){return p(this.toString())},_applyModification:function(se,ge){var ae=se.apply(null,[this].concat([].slice.call(ge)));return this._r=ae._r,this._g=ae._g,this._b=ae._b,this.setAlpha(ae._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(R,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(se,ge){return se.apply(null,[this].concat([].slice.call(ge)))},analogous:function(){return this._applyCombination(g,arguments)},complement:function(){return this._applyCombination(s,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(h,arguments)},tetrad:function(){return this._applyCombination(m,arguments)}},p.fromRatio=function(se,ge){if(typeof se=="object"){var ae={};for(var pe in se)se.hasOwnProperty(pe)&&(pe==="a"?ae[pe]=se[pe]:ae[pe]=fe(se[pe]));se=ae}return p(se,ge)};function a(se){var ge={r:0,g:0,b:0},ae=1,pe=null,Me=null,xe=null,Ke=!1,et=!1;return typeof se=="string"&&(se=le(se)),typeof se=="object"&&(ye(se.r)&&ye(se.g)&&ye(se.b)?(ge=t(se.r,se.g,se.b),Ke=!0,et=String(se.r).substr(-1)==="%"?"prgb":"rgb"):ye(se.h)&&ye(se.s)&&ye(se.v)?(pe=fe(se.s),Me=fe(se.v),ge=c(se.h,pe,Me),Ke=!0,et="hsv"):ye(se.h)&&ye(se.s)&&ye(se.l)&&(pe=fe(se.s),xe=fe(se.l),ge=l(se.h,pe,xe),Ke=!0,et="hsl"),se.hasOwnProperty("a")&&(ae=se.a)),ae=H(ae),{ok:Ke,format:se.format||et,r:M(255,T(ge.r,0)),g:M(255,T(ge.g,0)),b:M(255,T(ge.b,0)),a:ae}}function t(se,ge,ae){return{r:F(se,255)*255,g:F(ge,255)*255,b:F(ae,255)*255}}function A(se,ge,ae){se=F(se,255),ge=F(ge,255),ae=F(ae,255);var pe=T(se,ge,ae),Me=M(se,ge,ae),xe,Ke,et=(pe+Me)/2;if(pe==Me)xe=Ke=0;else{var he=pe-Me;Ke=et>.5?he/(2-pe-Me):he/(pe+Me);switch(pe){case se:xe=(ge-ae)/he+(ge1&&(Ne-=1),Ne<1/6?Se+(Ue-Se)*6*Ne:Ne<1/2?Ue:Ne<2/3?Se+(Ue-Se)*(2/3-Ne)*6:Se}if(ge===0)pe=Me=xe=ae;else{var et=ae<.5?ae*(1+ge):ae+ge-ae*ge,he=2*ae-et;pe=Ke(he,et,se+1/3),Me=Ke(he,et,se),xe=Ke(he,et,se-1/3)}return{r:pe*255,g:Me*255,b:xe*255}}function i(se,ge,ae){se=F(se,255),ge=F(ge,255),ae=F(ae,255);var pe=T(se,ge,ae),Me=M(se,ge,ae),xe,Ke,et=pe,he=pe-Me;if(Ke=pe===0?0:he/pe,pe==Me)xe=0;else{switch(pe){case se:xe=(ge-ae)/he+(ge>1)+720)%360;--ge;)pe.h=(pe.h+Me)%360,xe.push(p(pe));return xe}function y(se,ge){ge=ge||6;for(var ae=p(se).toHsv(),pe=ae.h,Me=ae.s,xe=ae.v,Ke=[],et=1/ge;ge--;)Ke.push(p({h:pe,s:Me,v:xe})),xe=(xe+et)%1;return Ke}p.mix=function(se,ge,ae){ae=ae===0?0:ae||50;var pe=p(se).toRgb(),Me=p(ge).toRgb(),xe=ae/100,Ke={r:(Me.r-pe.r)*xe+pe.r,g:(Me.g-pe.g)*xe+pe.g,b:(Me.b-pe.b)*xe+pe.b,a:(Me.a-pe.a)*xe+pe.a};return p(Ke)},p.readability=function(se,ge){var ae=p(se),pe=p(ge);return(Q.max(ae.getLuminance(),pe.getLuminance())+.05)/(Q.min(ae.getLuminance(),pe.getLuminance())+.05)},p.isReadable=function(se,ge,ae){var pe=p.readability(se,ge),Me,xe;xe=!1,Me=me(ae);switch(Me.level+Me.size){case"AAsmall":case"AAAlarge":xe=pe>=4.5;break;case"AAlarge":xe=pe>=3;break;case"AAAsmall":xe=pe>=7;break}return xe},p.mostReadable=function(se,ge,ae){var pe=null,Me=0,xe,Ke,et,he;ae=ae||{},Ke=ae.includeFallbackColors,et=ae.level,he=ae.size;for(var Se=0;SeMe&&(Me=xe,pe=p(ge[Se]));return p.isReadable(se,pe,{level:et,size:he})||!Ke?pe:(ae.includeFallbackColors=!1,p.mostReadable(se,["#fff","#000"],ae))};var U=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=p.hexNames=S(U);function S(se){var ge={};for(var ae in se)se.hasOwnProperty(ae)&&(ge[se[ae]]=ae);return ge}function H(se){return se=parseFloat(se),(isNaN(se)||se<0||se>1)&&(se=1),se}function F(se,ge){K(se)&&(se="100%");var ae=$(se);return se=M(ge,T(0,parseFloat(se))),ae&&(se=parseInt(se*ge,10)/100),Q.abs(se-ge)<1e-6?1:se%ge/parseFloat(ge)}function B(se){return M(1,T(0,se))}function z(se){return parseInt(se,16)}function K(se){return typeof se=="string"&&se.indexOf(".")!=-1&&parseFloat(se)===1}function $(se){return typeof se=="string"&&se.indexOf("%")!=-1}function te(se){return se.length==1?"0"+se:""+se}function fe(se){return se<=1&&(se=se*100+"%"),se}function Ae(se){return Q.round(parseFloat(se)*255).toString(16)}function ce(se){return z(se)/255}var ie=function(){var se="[-\\+]?\\d+%?",ge="[-\\+]?\\d*\\.\\d+%?",ae="(?:"+ge+")|(?:"+se+")",pe="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?",Me="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?";return{CSS_UNIT:new RegExp(ae),rgb:new RegExp("rgb"+pe),rgba:new RegExp("rgba"+Me),hsl:new RegExp("hsl"+pe),hsla:new RegExp("hsla"+Me),hsv:new RegExp("hsv"+pe),hsva:new RegExp("hsva"+Me),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ye(se){return!!ie.CSS_UNIT.exec(se)}function le(se){se=se.replace(I,"").replace(k,"").toLowerCase();var ge=!1;if(U[se])se=U[se],ge=!0;else if(se=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ae;return(ae=ie.rgb.exec(se))?{r:ae[1],g:ae[2],b:ae[3]}:(ae=ie.rgba.exec(se))?{r:ae[1],g:ae[2],b:ae[3],a:ae[4]}:(ae=ie.hsl.exec(se))?{h:ae[1],s:ae[2],l:ae[3]}:(ae=ie.hsla.exec(se))?{h:ae[1],s:ae[2],l:ae[3],a:ae[4]}:(ae=ie.hsv.exec(se))?{h:ae[1],s:ae[2],v:ae[3]}:(ae=ie.hsva.exec(se))?{h:ae[1],s:ae[2],v:ae[3],a:ae[4]}:(ae=ie.hex8.exec(se))?{r:z(ae[1]),g:z(ae[2]),b:z(ae[3]),a:ce(ae[4]),format:ge?"name":"hex8"}:(ae=ie.hex6.exec(se))?{r:z(ae[1]),g:z(ae[2]),b:z(ae[3]),format:ge?"name":"hex"}:(ae=ie.hex4.exec(se))?{r:z(ae[1]+""+ae[1]),g:z(ae[2]+""+ae[2]),b:z(ae[3]+""+ae[3]),a:ce(ae[4]+""+ae[4]),format:ge?"name":"hex8"}:(ae=ie.hex3.exec(se))?{r:z(ae[1]+""+ae[1]),g:z(ae[2]+""+ae[2]),b:z(ae[3]+""+ae[3]),format:ge?"name":"hex"}:!1}function me(se){var ge,ae;return se=se||{level:"AA",size:"small"},ge=(se.level||"AA").toUpperCase(),ae=(se.size||"small").toLowerCase(),ge!=="AA"&&ge!=="AAA"&&(ge="AA"),ae!=="small"&&ae!=="large"&&(ae="small"),{level:ge,size:ae}}Be.exports?Be.exports=p:!(Z=function(){return p}.call(ee,v,ee,Be),Z!==void 0&&(Be.exports=Z))})(Math)},"a+yL":function(Be,ee,v){Be.exports={search:"search___t0h96",btn:"btn___t2oDx"}},aKvl:function(Be,ee,v){var Z=v("Sj9i"),Q=Z.quadraticProjectPoint;function I(k,_,O,M,T,n,p,a,t){if(p===0)return!1;var A=p;if(t>_+A&&t>M+A&&t>n+A||t<_-A&&tk+A&&a>O+A&&a>T+A||a>>1|(d&21845)<<1;f=(f&52428)>>>2|(f&13107)<<2,f=(f&61680)>>>4|(f&3855)<<4,c[d]=((f&65280)>>>8|(f&255)<<8)>>>1}for(var o=function(_e,Ie,Ye){for(var yt=_e.length,Xt=0,sn=new k(Ie);Xt>>V]=ne}else for(W=new k(yt),Xt=0;Xt>>15-_e[Xt];return W},u=new I(288),d=0;d<144;++d)u[d]=8;for(var d=144;d<256;++d)u[d]=9;for(var d=256;d<280;++d)u[d]=7;for(var d=280;d<288;++d)u[d]=8;for(var E=new I(32),d=0;d<32;++d)E[d]=5;var R=o(u,9,0),w=o(u,9,1),P=o(E,5,0),C=o(E,5,1),b=function(_e){for(var Ie=_e[0],Ye=1;Ye<_e.length;++Ye)_e[Ye]>Ie&&(Ie=_e[Ye]);return Ie},s=function(_e,Ie,Ye){var yt=Ie/8>>0;return(_e[yt]|_e[yt+1]<<8)>>>(Ie&7)&Ye},h=function(_e,Ie){var Ye=Ie/8>>0;return(_e[Ye]|_e[Ye+1]<<8|_e[Ye+2]<<16)>>>(Ie&7)},m=function(_e){return(_e/8>>0)+(_e&7&&1)},x=function(_e,Ie,Ye){(Ie==null||Ie<0)&&(Ie=0),(Ye==null||Ye>_e.length)&&(Ye=_e.length);var yt=new(_e instanceof k?k:_e instanceof _?_:I)(Ye-Ie);return yt.set(_e.subarray(Ie,Ye)),yt},g=function(_e,Ie,Ye){var yt=_e.length,Xt=!Ie||Ye,sn=!Ye||Ye.i;Ye||(Ye={}),Ie||(Ie=new I(yt*3));var re=function(Jr){var ri=Ie.length;if(Jr>ri){var pa=new I(Math.max(ri*2,Jr));pa.set(Ie),Ie=pa}},W=Ye.f||0,V=Ye.p||0,ne=Ye.b||0,ve=Ye.l,oe=Ye.d,tt=Ye.m,Kt=Ye.n,dn=yt*8;do{if(!ve){Ye.f=W=s(_e,V,1);var Cn=s(_e,V+1,3);if(V+=3,Cn)if(Cn==1)ve=w,oe=C,tt=9,Kt=5;else if(Cn==2){var lr=s(_e,V,31)+257,Rr=s(_e,V+10,15)+4,qr=lr+s(_e,V+5,31)+1;V+=14;for(var zr=new I(qr),Ca=new I(19),Dr=0;Drdn)break;for(var fi=o(Ca,ya,1),Dr=0;Dr>>4;if(Jt<16)zr[Dr++]=Jt;else{var qa=0,Si=0;for(Jt==16?(Si=3+s(_e,V,3),V+=2,qa=zr[Dr-1]):Jt==17?(Si=3+s(_e,V,7),V+=3):Jt==18&&(Si=11+s(_e,V,127),V+=7);Si--;)zr[Dr++]=qa}}var pi=zr.subarray(0,lr),ui=zr.subarray(lr);tt=b(pi),Kt=b(ui),ve=o(pi,tt,1),oe=o(ui,Kt,1)}else throw"invalid block type";else{var Jt=m(V)+4,Vn=_e[Jt-4]|_e[Jt-3]<<8,Xn=Jt+Vn;if(Xn>yt){if(sn)throw"unexpected EOF";break}Xt&&re(ne+Vn),Ie.set(_e.subarray(Jt,Xn),ne),Ye.b=ne+=Vn,Ye.p=V=Xn*8;continue}if(V>dn)throw"unexpected EOF"}Xt&&re(ne+131072);for(var mi=(1<>>4;if(V+=qa&15,V>dn)throw"unexpected EOF";if(!qa)throw"invalid length/literal";if(Hi<256)Ie[ne++]=Hi;else if(Hi==256){ve=null;break}else{var Yi=Hi-254;if(Hi>264){var Dr=Hi-257,$r=O[Dr];Yi=s(_e,V,(1<<$r)-1)+a[Dr],V+=$r}var ua=oe[h(_e,V)&_i],Pr=ua>>>4;if(!ua)throw"invalid distance";V+=ua&15;var ui=l[Pr];if(Pr>3){var $r=M[Pr];ui+=h(_e,V)&(1<<$r)-1,V+=$r}if(V>dn)throw"unexpected EOF";Xt&&re(ne+131072);for(var ca=ne+Yi;ne>0;_e[yt]|=Ye,_e[yt+1]|=Ye>>>8},U=function(_e,Ie,Ye){Ye<<=Ie&7;var yt=Ie/8>>0;_e[yt]|=Ye,_e[yt+1]|=Ye>>>8,_e[yt+2]|=Ye>>>16},N=function(_e,Ie){for(var Ye=[],yt=0;yt<_e.length;++yt)_e[yt]&&Ye.push({s:yt,f:_e[yt]});var Xt=Ye.length,sn=Ye.slice();if(!Xt)return[new I(0),0];if(Xt==1){var re=new I(Ye[0].s+1);return re[Ye[0].s]=1,[re,1]}Ye.sort(function(qr,zr){return qr.f-zr.f}),Ye.push({s:-1,f:25001});var W=Ye[0],V=Ye[1],ne=0,ve=1,oe=2;for(Ye[0]={s:-1,f:W.f+V.f,l:W,r:V};ve!=Xt-1;)W=Ye[Ye[ne].ftt&&(tt=sn[yt].s);var Kt=new k(tt+1),dn=S(Ye[ve-1],Kt,0);if(dn>Ie){var yt=0,Cn=0,Jt=dn-Ie,Vn=1<Ie)Cn+=Vn-(1<>>=Jt;Cn>0;){var lr=sn[yt].s;Kt[lr]=0&&Cn;--yt){var Rr=sn[yt].s;Kt[Rr]==Ie&&(--Kt[Rr],++Cn)}dn=Ie}return[new I(Kt),dn]},S=function(_e,Ie,Ye){return _e.s==-1?Math.max(S(_e.l,Ie,Ye+1),S(_e.r,Ie,Ye+1)):Ie[_e.s]=Ye},H=function(_e){for(var Ie=_e.length;Ie&&!_e[--Ie];);for(var Ye=new k(++Ie),yt=0,Xt=_e[0],sn=1,re=function(V){Ye[yt++]=V},W=1;W<=Ie;++W)if(_e[W]==Xt&&W!=Ie)++sn;else{if(!Xt&&sn>2){for(;sn>138;sn-=138)re(32754);sn>2&&(re(sn>10?sn-11<<5|28690:sn-3<<5|12305),sn=0)}else if(sn>3){for(re(Xt),--sn;sn>6;sn-=6)re(8304);sn>2&&(re(sn-3<<5|8208),sn=0)}for(;sn--;)re(Xt);sn=1,Xt=_e[W]}return[Ye.subarray(0,yt),Ie]},F=function(_e,Ie){for(var Ye=0,yt=0;yt>>8,_e[Xt+2]=_e[Xt]^255,_e[Xt+3]=_e[Xt+1]^255;for(var sn=0;sn4&&!ka[T[Ka-1]];--Ka);var qa=ne+5<<3,Si=F(Xt,u)+F(sn,E)+re,pi=F(Xt,tt)+F(sn,Cn)+re+14+3*Ka+F(Ca,ka)+(2*Ca[16]+3*Ca[17]+7*Ca[18]);if(qa<=Si&&qa<=pi)return B(Ie,ve,_e.subarray(V,V+ne));var ui,mi,_i,ai;if(y(Ie,ve,1+(pi15&&(y(Ie,ve,ua[Dr]>>>5&127),ve+=ua[Dr]>>>12)}}else ui=R,mi=u,_i=P,ai=E;for(var Dr=0;Dr255){var Pr=yt[Dr]>>>18&31;U(Ie,ve,ui[Pr+257]),ve+=mi[Pr+257],Pr>7&&(y(Ie,ve,yt[Dr]>>>23&31),ve+=O[Pr]);var ca=yt[Dr]&31;U(Ie,ve,_i[ca]),ve+=ai[ca],ca>3&&(U(Ie,ve,yt[Dr]>>>5&8191),ve+=M[ca])}else U(Ie,ve,ui[yt[Dr]]),ve+=mi[yt[Dr]];return U(Ie,ve,ui[256]),ve+mi[256]},K=new _([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),$=new I(0),te=function(_e,Ie,Ye,yt,Xt,sn){var re=_e.length,W=new I(yt+re+5*(1+Math.floor(re/7e3))+Xt),V=W.subarray(yt,W.length-Xt),ne=0;if(!Ie||re<8)for(var ve=0;ve<=re;ve+=65535){var oe=ve+65535;oe>>13,dn=tt&8191,Cn=(1<7e3||ka>24576)&&ui>423){ne=z(_e,V,0,qr,zr,Ca,ya,ka,Ka,ve-Ka,ne),ka=Dr=ya=0,Ka=ve;for(var mi=0;mi<286;++mi)zr[mi]=0;for(var mi=0;mi<30;++mi)Ca[mi]=0}var _i=2,ai=0,Hi=dn,Yi=Si-pi&32767;if(ui>2&&qa==Rr(ve-Yi))for(var $r=Math.min(Kt,ui)-1,ua=Math.min(32767,ve),Pr=Math.min(258,ui);Yi<=ua&&--Hi&&Si!=pi;){if(_e[ve+_i]==_e[ve+_i-Yi]){for(var ca=0;ca_i){if(_i=ca,ai=Yi,ca>$r)break;for(var Jr=Math.min(Yi,ca-2),ri=0,mi=0;miri&&(ri=Di,pi=pa)}}}Si=pi,pi=Jt[Si],Yi+=Si-pi+32768&32767}if(ai){qr[ka++]=268435456|t[_i]<<18|i[ai];var ci=t[_i]&31,Wo=i[ai]&31;ya+=O[ci]+M[Wo],++zr[257+ci],++Ca[Wo],fi=ve+_i,++Dr}else qr[ka++]=_e[ve],++zr[_e[ve]]}}ne=z(_e,V,sn,qr,zr,Ca,ya,ka,Ka,ve-Ka,ne),sn||(ne=B(V,ne,$))}return x(W,0,yt+m(ne)+Xt)},fe=function(){for(var _e=new _(256),Ie=0;Ie<256;++Ie){for(var Ye=Ie,yt=9;--yt;)Ye=(Ye&1&&3988292384)^Ye>>>1;_e[Ie]=Ye}return _e}(),Ae=function(){var _e=4294967295;return{p:function(Ie){for(var Ye=_e,yt=0;yt>>8;_e=Ye},d:function(){return _e^4294967295}}},ce=function(){var _e=1,Ie=0;return{p:function(Ye){for(var yt=_e,Xt=Ie,sn=Ye.length,re=0;re!=sn;){for(var W=Math.min(re+5552,sn);re>>8<<16|(Ie&255)<<8|Ie>>>8)+((_e&255)<<23)*2}}},ie=function(_e,Ie,Ye,yt,Xt){return te(_e,Ie.level==null?6:Ie.level,Ie.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(_e.length)))*1.5):12+Ie.mem,Ye,yt,!Xt)},ye=function(_e,Ie){var Ye={};for(var yt in _e)Ye[yt]=_e[yt];for(var yt in Ie)Ye[yt]=Ie[yt];return Ye},le=function(_e,Ie,Ye){for(var yt=_e(),Xt=_e.toString(),sn=Xt.slice(Xt.indexOf("[")+1,Xt.lastIndexOf("]")).replace(/ /g,"").split(","),re=0;re>>=8},Ut=function(_e,Ie){var Ye=Ie.filename;if(_e[0]=31,_e[1]=139,_e[2]=8,_e[8]=Ie.level<2?4:Ie.level==9?2:0,_e[9]=3,Ie.mtime!=0&&dt(_e,4,Math.floor(new Date(Ie.mtime||Date.now())/1e3)),Ye){_e[3]=8;for(var yt=0;yt<=Ye.length;++yt)_e[yt+10]=Ye.charCodeAt(yt)}},jt=function(_e){if(_e[0]!=31||_e[1]!=139||_e[2]!=8)throw"invalid gzip data";var Ie=_e[3],Ye=10;Ie&4&&(Ye+=_e[10]|(_e[11]<<8)+2);for(var yt=(Ie>>3&1)+(Ie>>4&1);yt>0;yt-=!_e[Ye++]);return Ye+(Ie&2)},ze=function(_e){var Ie=_e.length;return(_e[Ie-4]|_e[Ie-3]<<8|_e[Ie-2]<<16)+2*(_e[Ie-1]<<23)},Ve=function(_e){return 10+(_e.filename&&_e.filename.length+1||0)},Et=function(_e,Ie){var Ye=Ie.level,yt=Ye==0?0:Ye<6?1:Ye==9?3:2;_e[0]=120,_e[1]=yt<<6|(yt?32-2*yt:1)},Rt=function(_e){if((_e[0]&15)!=8||_e[0]>>>4>7||(_e[0]<<8|_e[1])%31)throw"invalid zlib data";if(_e[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function ut(_e,Ie){return!Ie&&typeof _e=="function"&&(Ie=_e,_e={}),this.ondata=Ie,_e}var vt=function(){function _e(Ie,Ye){!Ye&&typeof Ie=="function"&&(Ye=Ie,Ie={}),this.ondata=Ye,this.o=Ie||{}}return _e.prototype.p=function(Ie,Ye){this.ondata(ie(Ie,this.o,0,0,!Ye),Ye)},_e.prototype.push=function(Ie,Ye){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=Ye,this.p(Ie,Ye||!1)},_e}(),Ze=function(){function _e(Ie,Ye){ct([pe,function(){return[Ne,vt]}],this,ut.call(this,Ie,Ye),function(yt){var Xt=new vt(yt.data);onmessage=Ne(Xt)},6)}return _e}();function ke(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[pe],function(yt){return he(He(yt.data[0],yt.data[1]))},0,Ye)}function He(_e,Ie){return Ie===void 0&&(Ie={}),ie(_e,Ie,0,0)}var we=function(){function _e(Ie){this.s={},this.p=new I(0),this.ondata=Ie}return _e.prototype.e=function(Ie){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var Ye=this.p.length,yt=new I(Ye+Ie.length);yt.set(this.p),yt.set(Ie,Ye),this.p=yt},_e.prototype.c=function(Ie){this.d=this.s.i=Ie||!1;var Ye=this.s.b,yt=g(this.p,this.o,this.s);this.ondata(x(yt,Ye,this.s.b),this.d),this.o=x(yt,this.s.b-32768),this.s.b=this.o.length,this.p=x(this.p,this.s.p/8>>0),this.s.p&=7},_e.prototype.push=function(Ie,Ye){this.e(Ie),this.c(Ye)},_e}(),Le=function(){function _e(Ie){this.ondata=Ie,ct([ae,function(){return[Ne,we]}],this,0,function(){var Ye=new we;onmessage=Ne(Ye)},7)}return _e}();function Pe(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[ae],function(yt){return he(We(yt.data[0],Se(yt.data[1])))},1,Ye)}function We(_e,Ie){return g(_e,Ie)}var Xe=function(){function _e(Ie,Ye){this.c=Ae(),this.l=0,this.v=1,vt.call(this,Ie,Ye)}return _e.prototype.push=function(Ie,Ye){vt.prototype.push.call(this,Ie,Ye)},_e.prototype.p=function(Ie,Ye){this.c.p(Ie),this.l+=Ie.length;var yt=ie(Ie,this.o,this.v&&Ve(this.o),Ye&&8,!Ye);this.v&&(Ut(yt,this.o),this.v=0),Ye&&(dt(yt,yt.length-8,this.c.d()),dt(yt,yt.length-4,this.l)),this.ondata(yt,Ye)},_e}(),gt=function(){function _e(Ie,Ye){ct([pe,Me,function(){return[Ne,vt,Xe]}],this,ut.call(this,Ie,Ye),function(yt){var Xt=new Xe(yt.data);onmessage=Ne(Xt)},8)}return _e}();function Lt(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[pe,Me,function(){return[en]}],function(yt){return he(en(yt.data[0],yt.data[1]))},2,Ye)}function en(_e,Ie){Ie===void 0&&(Ie={});var Ye=Ae(),yt=_e.length;Ye.p(_e);var Xt=ie(_e,Ie,Ve(Ie),8),sn=Xt.length;return Ut(Xt,Ie),dt(Xt,sn-8,Ye.d()),dt(Xt,sn-4,yt),Xt}var Zt=function(){function _e(Ie){this.v=1,we.call(this,Ie)}return _e.prototype.push=function(Ie,Ye){if(we.prototype.e.call(this,Ie),this.v){var yt=jt(this.p);if(yt>=this.p.length&&!Ye)return;this.p=this.p.subarray(yt),this.v=0}if(Ye){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}we.prototype.c.call(this,Ye)},_e}(),xt=function(){function _e(Ie){this.ondata=Ie,ct([ae,xe,function(){return[Ne,we,Zt]}],this,0,function(){var Ye=new Zt;onmessage=Ne(Ye)},9)}return _e}();function Ct(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[ae,xe,function(){return[mt]}],function(yt){return he(mt(yt.data[0]))},3,Ye)}function mt(_e,Ie){return g(_e.subarray(jt(_e),-8),Ie||new I(ze(_e)))}var Je=function(){function _e(Ie,Ye){this.c=ce(),this.v=1,vt.call(this,Ie,Ye)}return _e.prototype.push=function(Ie,Ye){vt.prototype.push.call(this,Ie,Ye)},_e.prototype.p=function(Ie,Ye){this.c.p(Ie);var yt=ie(Ie,this.o,this.v&&2,Ye&&4,!Ye);this.v&&(Et(yt,this.o),this.v=0),Ye&&dt(yt,yt.length-4,this.c.d()),this.ondata(yt,Ye)},_e}(),Qe=function(){function _e(Ie,Ye){ct([pe,Ke,function(){return[Ne,vt,Je]}],this,ut.call(this,Ie,Ye),function(yt){var Xt=new Je(yt.data);onmessage=Ne(Xt)},10)}return _e}();function Oe(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[pe,Ke,function(){return[je]}],function(yt){return he(je(yt.data[0],yt.data[1]))},4,Ye)}function je(_e,Ie){Ie===void 0&&(Ie={});var Ye=ce();Ye.p(_e);var yt=ie(_e,Ie,2,4);return Et(yt,Ie),dt(yt,yt.length-4,Ye.d()),yt}var St=function(){function _e(Ie){this.v=1,we.call(this,Ie)}return _e.prototype.push=function(Ie,Ye){if(we.prototype.e.call(this,Ie),this.v){if(this.p.length<2&&!Ye)return;this.p=this.p.subarray(2),this.v=0}if(Ye){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}we.prototype.c.call(this,Ye)},_e}(),bt=function(){function _e(Ie){this.ondata=Ie,ct([ae,et,function(){return[Ne,we,St]}],this,0,function(){var Ye=new St;onmessage=Ne(Ye)},11)}return _e}();function Dt(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[ae,et,function(){return[Qt]}],function(yt){return he(Qt(yt.data[0],Se(yt.data[1])))},5,Ye)}function Qt(_e,Ie){return g((Rt(_e),_e.subarray(2,-4)),Ie)}var _t=function(){function _e(Ie){this.G=Zt,this.I=we,this.Z=St,this.ondata=Ie}return _e.prototype.push=function(Ie,Ye){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(Ie,Ye);else{if(this.p&&this.p.length){var yt=new I(this.p.length+Ie.length);yt.set(this.p),yt.set(Ie,this.p.length)}else this.p=Ie;if(this.p.length>2){var Xt=this,sn=function(){Xt.ondata.apply(Xt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(sn):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(sn):new this.Z(sn),this.s.push(this.p,Ye),this.p=null}}},_e}(),Gt=function(){function _e(Ie){this.G=xt,this.I=Le,this.Z=bt,this.ondata=Ie}return _e.prototype.push=function(Ie,Ye){_t.prototype.push.call(this,Ie,Ye)},_e}();function kt(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return _e[0]==31&&_e[1]==139&&_e[2]==8?Ct(_e,Ie,Ye):(_e[0]&15)!=8||_e[0]>>4>7||(_e[0]<<8|_e[1])%31?Pe(_e,Ie,Ye):Dt(_e,Ie,Ye)}function fn(_e,Ie){return _e[0]==31&&_e[1]==139&&_e[2]==8?mt(_e,Ie):(_e[0]&15)!=8||_e[0]>>4>7||(_e[0]<<8|_e[1])%31?We(_e,Ie):Qt(_e,Ie)}var mn=function(_e,Ie,Ye,yt){for(var Xt in _e){var sn=_e[Xt],re=Ie+Xt;sn instanceof I?Ye[re]=[sn,yt]:Array.isArray(sn)?Ye[re]=[sn[0],ye(yt,sn[1])]:mn(sn,re+"/",Ye,yt)}};function Tr(_e,Ie){var Ye=_e.length;if(!Ie&&typeof TextEncoder!="undefined")return new TextEncoder().encode(_e);for(var yt=new I(_e.length+(_e.length>>>1)),Xt=0,sn=function(ne){yt[Xt++]=ne},re=0;reyt.length){var W=new I(Xt+8+(Ye-re<<1));W.set(yt),yt=W}var V=_e.charCodeAt(re);V<128||Ie?sn(V):V<2048?(sn(192|V>>>6),sn(128|V&63)):V>55295&&V<57344?(V=65536+(V&1023<<10)|_e.charCodeAt(++re)&1023,sn(240|V>>>18),sn(128|V>>>12&63),sn(128|V>>>6&63),sn(128|V&63)):(sn(224|V>>>12),sn(128|V>>>6&63),sn(128|V&63))}return x(yt,0,Xt)}function Mr(_e,Ie){var Ye="";if(!Ie&&typeof TextDecoder!="undefined")return new TextDecoder().decode(_e);for(var yt=0;yt<_e.length;){var Xt=_e[yt++];Xt<128||Ie?Ye+=String.fromCharCode(Xt):Xt<224?Ye+=String.fromCharCode((Xt&31)<<6|_e[yt++]&63):Xt<240?Ye+=String.fromCharCode((Xt&15)<<12|(_e[yt++]&63)<<6|_e[yt++]&63):(Xt=((Xt&15)<<18|(_e[yt++]&63)<<12|(_e[yt++]&63)<<6|_e[yt++]&63)-65536,Ye+=String.fromCharCode(55296|Xt>>10,56320|Xt&1023))}return Ye}var kr=function(_e,Ie){return Ie+30+ft(_e,Ie+26)+ft(_e,Ie+28)},Un=function(_e,Ie,Ye){var yt=ft(_e,Ie+28),Xt=Mr(_e.subarray(Ie+46,Ie+46+yt),!(ft(_e,Ie+8)&2048)),sn=Ie+46+yt,re=Ye?Ra(_e,sn):[Ot(_e,Ie+20),Ot(_e,Ie+24),Ot(_e,Ie+42)],W=re[0],V=re[1],ne=re[2];return[ft(_e,Ie+10),W,V,Xt,sn+ft(_e,Ie+30)+ft(_e,Ie+32),ne]},Ra=function(_e,Ie){for(;ft(_e,Ie)!=1;Ie+=4+ft(_e,Ie+2));return[Ot(_e,Ie+12),Ot(_e,Ie+4),Ot(_e,Ie+20)]},Xr=function(_e,Ie,Ye,yt,Xt,sn,re,W,V,ne){var ve=sn.length,oe=yt.length;dt(_e,Ie,V!=null?33639248:67324752),Ie+=4,V!=null&&(_e[Ie]=20,Ie+=2),_e[Ie]=20,Ie+=2,_e[Ie++]=ne==8&&(W.level==1?6:W.level<6?4:W.level==9?2:0),_e[Ie++]=re&&8,_e[Ie]=ne,Ie+=2;var tt=new Date(W.mtime||Date.now()),Kt=tt.getFullYear()-1980;if(Kt<0||Kt>119)throw"date not in range 1980-2099";dt(_e,Ie,(Kt<<24)*2|tt.getMonth()+1<<21|tt.getDate()<<16|tt.getHours()<<11|tt.getMinutes()<<5|tt.getSeconds()>>>1),Ie+=4,dt(_e,Ie,Ye),dt(_e,Ie+4,oe),dt(_e,Ie+8,Xt),dt(_e,Ie+12,ve),Ie+=16,V!=null&&(dt(_e,Ie+=10,V),Ie+=4),_e.set(sn,Ie),Ie+=ve,V==null&&_e.set(yt,Ie)},aa=function(_e,Ie,Ye,yt,Xt){dt(_e,Ie,101010256),dt(_e,Ie+8,Ye),dt(_e,Ie+10,Ye),dt(_e,Ie+12,yt),dt(_e,Ie+16,Xt)};function Kr(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";var yt={};mn(_e,"",yt,Ie);var Xt=Object.keys(yt),sn=Xt.length,re=0,W=0,V=sn,ne=new Array(sn),ve=[],oe=function(){for(var Cn=0;Cn65535&&ya("filename too long",null),!Dr)ya(null,Xn);else if(qr<16e4)try{ya(null,He(Xn,lr))}catch(ka){ya(ka,null)}else ve.push(ke(Xn,lr,ya))},dn=0;dn65535)throw"filename too long";var Kt=ve?He(V,ne):V,dn=Kt.length,Cn=Ae();Cn.p(V),yt.push({t:ve,d:Kt,m:V.length,c:Cn.d(),u:re.length!=tt,n:oe,o:Xt,p:ne}),Xt+=30+tt+dn,sn+=76+2*tt+dn}for(var Jt=new I(sn+22),Vn=Xt,Xn=sn-Xt,lr=0;lr65558){Ie("invalid zip file",null);return}var re=ft(_e,sn+8);re||Ie(null,{});var W=re,V=Ot(_e,sn+16),ne=V==4294967295;if(ne){if(sn=Ot(_e,sn-12),Ot(_e,sn)!=101075792)throw"invalid zip file";W=re=Ot(_e,sn+32),V=Ot(_e,sn+48)}for(var ve=function(tt){var Kt=Un(_e,V,ne),dn=Kt[0],Cn=Kt[1],Jt=Kt[2],Vn=Kt[3],Xn=Kt[4],lr=Kt[5],Rr=kr(_e,lr);V=Xn;var qr=function(Ca,Dr){Ca?(yt(),Ie(Ca,null)):(Xt[Vn]=Dr,--re||Ie(null,Xt))};if(!dn)qr(null,x(_e,Rr,Rr+Cn));else if(dn==8){var zr=_e.subarray(Rr,Rr+Cn);if(Cn<32e4)try{qr(null,We(zr,new I(Jt)))}catch(Ca){qr(Ca,null)}else Ye.push(Pe(zr,{size:Jt},qr))}else qr("unknown compression type "+dn,null)},oe=0;oe65558)throw"invalid zip file";var yt=ft(_e,Ye+8);if(!yt)return{};var Xt=Ot(_e,Ye+16),sn=Xt==4294967295;if(sn){if(Ye=Ot(_e,Ye-12),Ot(_e,Ye)!=101075792)throw"invalid zip file";yt=Ot(_e,Ye+32),Xt=Ot(_e,Ye+48)}for(var re=0;re1?$-1:0),fe=1;fe<$;fe++)te[fe-1]=arguments[fe];F.apply(void 0,[S].concat(te))}},y.onKeyUp=function(S){var H=y.props.onKeyUp;if(y.stop(),y.recordCursorPosition(),H){for(var F=arguments.length,B=new Array(F>1?F-1:0),z=1;z=0)return parseInt(H.slice(H.indexOf("e-")+2),10);var F=0;return H.indexOf(".")>=0&&(F=H.length-H.indexOf(".")-1),F},y.getInputDisplayValue=function(S){var H=S||y.state,F=H.focused,B=H.inputValue,z=H.value,K;F?K=B:K=y.toPrecisionAsStep(z),K==null&&(K="");var $=y.formatWrapper(K);return w(y.props.decimalSeparator)&&($=$.toString().replace(".",y.props.decimalSeparator)),$},y.recordCursorPosition=function(){try{y.cursorStart=y.input.selectionStart,y.cursorEnd=y.input.selectionEnd,y.currentValue=y.input.value,y.cursorBefore=y.input.value.substring(0,y.cursorStart),y.cursorAfter=y.input.value.substring(y.cursorEnd)}catch(S){}},y.restoreByAfter=function(S){if(S===void 0)return!1;var H=y.input.value,F=H.lastIndexOf(S);if(F===-1)return!1;var B=y.cursorBefore.length;return y.lastKeyCode===t.a.DELETE&&y.cursorBefore.charAt(B-1)===S[0]?(y.fixCaret(B,B),!0):F+S.length===H.length?(y.fixCaret(F,F),!0):!1},y.partRestoreByAfter=function(S){return S===void 0?!1:Array.prototype.some.call(S,function(H,F){var B=S.substring(F);return y.restoreByAfter(B)})},y.isNotCompleteNumber=function(S){return isNaN(S)||S===""||S===null||S&&S.toString().indexOf(".")===S.toString().length-1},y.stop=function(){y.autoStepTimer&&clearTimeout(y.autoStepTimer)},y.down=function(S,H,F){y.pressingUpOrDown=!0,y.step("down",S,H,F)},y.up=function(S,H,F){y.pressingUpOrDown=!0,y.step("up",S,H,F)},y.saveInput=function(S){y.input=S};var U=g.value;U===void 0&&(U=g.defaultValue),y.state={focused:g.autoFocus};var N=y.getValidValue(y.toNumber(U));return y.state=l(l({},y.state),{},{inputValue:y.toPrecisionAsStep(N),value:N}),y}return Object(k.a)(x,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(y){var U=this.props,N=U.value,S=U.onChange,H=U.max,F=U.min,B=this.state.focused;if(y){if(!P(y.value,N)||!P(y.max,H)||!P(y.min,F)){var z=B?N:this.getValidValue(N),K;this.pressingUpOrDown?K=z:this.inputting?K=this.rawInput:K=this.toPrecisionAsStep(z),this.setState({value:z,inputValue:K})}var $="value"in this.props?N:this.state.value;"max"in this.props&&y.max!==H&&typeof $=="number"&&$>H&&S&&S(H),"min"in this.props&&y.min!==F&&typeof $=="number"&&$1&&arguments[1]!==void 0?arguments[1]:this.props.min,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,S=parseFloat(y);return isNaN(S)?y:(SN&&(S=N),S)}},{key:"setValue",value:function(y,U){var N=this.props.precision,S=this.isNotCompleteNumber(parseFloat(y))?null:parseFloat(y),H=this.state.value,F=H===void 0?null:H,B=this.state.inputValue,z=B===void 0?null:B,K=typeof S=="number"?S.toFixed(N):"".concat(S),$=S!==F||K!=="".concat(z);return"value"in this.props?(z=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:z},U)):this.setState({value:S,inputValue:this.toPrecisionAsStep(y)},U),$&&this.props.onChange(S),S}},{key:"getMaxPrecision",value:function(y){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,N=this.props,S=N.precision,H=N.step;if(w(S))return S;var F=this.getPrecision(U),B=this.getPrecision(H),z=this.getPrecision(y);return y?Math.max(z,F+B):F+B}},{key:"getPrecisionFactor",value:function(y){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,N=this.getMaxPrecision(y,U);return Math.pow(10,N)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(y){return this.props.formatter?this.props.formatter(y):y}},{key:"toPrecisionAsStep",value:function(y){if(this.isNotCompleteNumber(y)||y==="")return y;var U=Math.abs(this.getMaxPrecision(y));return isNaN(U)?y.toString():Number(y).toFixed(U)}},{key:"toNumber",value:function(y){var U=this.props.precision,N=this.state.focused,S=y&&y.length>16&&N;return this.isNotCompleteNumber(y)||S?y:w(U)?Math.round(y*Math.pow(10,U))/Math.pow(10,U):Number(y)}},{key:"upStep",value:function(y,U){var N=this.props.step,S=this.getPrecisionFactor(y,U),H=Math.abs(this.getMaxPrecision(y,U)),F=((S*y+S*N*U)/S).toFixed(H);return this.toNumber(F)}},{key:"downStep",value:function(y,U){var N=this.props.step,S=this.getPrecisionFactor(y,U),H=Math.abs(this.getMaxPrecision(y,U)),F=((S*y-S*N*U)/S).toFixed(H);return this.toNumber(F)}},{key:"step",value:function(y,U){var N=this,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,H=arguments.length>3?arguments[3]:void 0;this.stop(),U&&(U.persist(),U.preventDefault());var F=this.props;if(F.disabled)return;var B=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(B))return;var z=this["".concat(y,"Step")](B,S),K=z>F.max||zF.max?z=F.max:z=te),vt=(Ut||Ut===0)&&(isNaN(Ut)||Number(Ut)<=fe),Ze=ut||S||H,ke=vt||S||H,He=a()("".concat(N,"-handler"),"".concat(N,"-handler-up"),Object(Q.a)({},"".concat(N,"-handler-up-disabled"),Ze)),we=a()("".concat(N,"-handler"),"".concat(N,"-handler-down"),Object(Q.a)({},"".concat(N,"-handler-down-disabled"),ke)),Le=F?{onTouchStart:Ze?d:this.up,onTouchEnd:this.stop}:{onMouseDown:Ze?d:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Pe=F?{onTouchStart:ke?d:this.down,onTouchEnd:this.stop}:{onMouseDown:ke?d:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return n.a.createElement("div",{className:ze,style:Ae,title:ce,onMouseEnter:ie,onMouseLeave:ye,onMouseOver:le,onMouseOut:me,onFocus:function(){return null},onBlur:function(){return null}},n.a.createElement("div",{className:"".concat(N,"-handler-wrap")},n.a.createElement("span",Object.assign({unselectable:"on"},Le,{role:"button","aria-label":"Increase Value","aria-disabled":Ze,className:He}),z||n.a.createElement("span",{unselectable:"on",className:"".concat(N,"-handler-up-inner"),onClick:f})),n.a.createElement("span",Object.assign({unselectable:"on"},Pe,{role:"button","aria-label":"Decrease Value","aria-disabled":ke,className:we}),K||n.a.createElement("span",{unselectable:"on",className:"".concat(N,"-handler-down-inner"),onClick:f}))),n.a.createElement("div",{className:"".concat(N,"-input-wrap")},n.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":fe,"aria-valuemax":te,"aria-valuenow":Ut,required:se,type:pe,placeholder:Me,onPaste:ct,onClick:ge,onMouseUp:this.onMouseUp,className:"".concat(N,"-input"),tabIndex:ae,autoComplete:B,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Et?this.onKeyDown:d,onKeyUp:Et?this.onKeyUp:d,autoFocus:Ue,maxLength:Se,readOnly:H,disabled:S,max:te,min:fe,step:he,name:Ne,title:ce,id:xe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Rt),pattern:et,inputMode:Ke,onInput:ft},Ve))))}}]),x}(n.a.Component);C.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:R,min:-R,step:1,style:{},onChange:d,onKeyDown:d,onPressEnter:d,onFocus:d,onBlur:d,parser:o,required:!1,autoComplete:"off"};var b=C,s=ee.a=b},dqUG:function(Be,ee,v){var Z=v("Gev7"),Q=v("bYtY"),I=v("6GrX"),k=v("pzxd"),_=v("gut8"),O=_.ContextCachedBy,M=function(n){Z.call(this,n)};M.prototype={constructor:M,type:"text",brush:function(n,p){var a=this.style;this.__dirty&&k.normalizeTextStyle(a,!0),a.fill=a.stroke=a.shadowBlur=a.shadowColor=a.shadowOffsetX=a.shadowOffsetY=null;var t=a.text;if(t!=null&&(t+=""),!k.needDrawText(t,a)){n.__attrCachedBy=O.NONE;return}this.setTransform(n),k.renderText(this,n,t,a,null,p),this.restoreTransform(n)},getBoundingRect:function(){var n=this.style;if(this.__dirty&&k.normalizeTextStyle(n,!0),!this._rect){var p=n.text;p!=null?p+="":p="";var a=I.getBoundingRect(n.text+"",n.font,n.textAlign,n.textVerticalAlign,n.textPadding,n.textLineHeight,n.rich);if(a.x+=n.x||0,a.y+=n.y||0,k.getStroke(n.textStroke,n.textStrokeWidth)){var t=n.textStrokeWidth;a.x-=t/2,a.y-=t/2,a.width+=t,a.height+=t}this._rect=a}return this._rect}},Q.inherits(M,Z);var T=M;Be.exports=T},dwhp:function(Be,ee,v){},eqIj:function(Be,ee,v){Be.exports=v.p+"static/ys.bff91b04.svg"},fAei:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return u.a});var Z=v("rePB"),Q=v("VTBJ"),I=v("KQm4"),k=v("1OyB"),_=v("vuIU"),O=v("Ji7U"),M=v("LK+K"),T=v("q1tI"),n=v("4IlW"),p=v("Kwbf"),a=v("TSYQ"),t=v.n(a),A=v("sboe"),l=v("OZM5"),i=v("815F"),c=v("ODXe"),d=v("Ff2n"),f=v("+nKL"),o=v("8XRh"),u=v("WaYH"),E=function(fe,Ae){var ce=fe.className,ie=fe.style,ye=fe.motion,le=fe.motionNodes,me=fe.motionType,se=fe.onMotionStart,ge=fe.onMotionEnd,ae=fe.active,pe=fe.treeNodeRequiredProps,Me=Object(d.a)(fe,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),xe=T.useState(!0),Ke=Object(c.a)(xe,2),et=Ke[0],he=Ke[1],Se=T.useContext(A.a),Ue=Se.prefixCls,Ne=T.useRef(!1),ct=function(){Ne.current||ge(),Ne.current=!0};return Object(T.useEffect)(function(){le&&me==="hide"&&et&&he(!1)},[le]),Object(T.useEffect)(function(){return le&&se(),function(){le&&ct()}},[]),le?T.createElement(o.default,Object.assign({ref:Ae,visible:et},ye,{motionAppear:me==="show",onAppearEnd:ct,onLeaveEnd:ct}),function(ft,Ot){var dt=ft.className,Ut=ft.style;return T.createElement("div",{ref:Ot,className:t()("".concat(Ue,"-treenode-motion"),dt),style:Ut},le.map(function(jt){var ze=jt.data,Ve=ze.key,Et=Object(d.a)(ze,["key"]),Rt=jt.isStart,ut=jt.isEnd;delete Et.children;var vt=Object(i.f)(Ve,pe);return T.createElement(u.a,Object.assign({},Et,vt,{active:ae,data:jt.data,key:Ve,isStart:Rt,isEnd:ut}))}))}):T.createElement(u.a,Object.assign({domRef:Ae,className:ce,style:ie},Me,{active:ae}))};E.displayName="MotionTreeNode";var R=T.forwardRef(E),w=R;function P(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ae=te.length,ce=fe.length;if(Math.abs(Ae-ce)!==1)return{add:!1,key:null};function ie(ye,le){var me=new Map;ye.forEach(function(ge){me.set(ge,!0)});var se=le.filter(function(ge){return!me.has(ge)});return se.length===1?se[0]:null}return Ae ").concat(fe);return fe}var S=function(fe,Ae){var ce=fe.prefixCls,ie=fe.data,ye=fe.selectable,le=fe.checkable,me=fe.expandedKeys,se=fe.selectedKeys,ge=fe.checkedKeys,ae=fe.loadedKeys,pe=fe.loadingKeys,Me=fe.halfCheckedKeys,xe=fe.keyEntities,Ke=fe.disabled,et=fe.dragging,he=fe.dragOverNodeKey,Se=fe.dropPosition,Ue=fe.motion,Ne=fe.height,ct=fe.itemHeight,ft=fe.virtual,Ot=fe.focusable,dt=fe.activeItem,Ut=fe.focused,jt=fe.tabIndex,ze=fe.onKeyDown,Ve=fe.onFocus,Et=fe.onBlur,Rt=fe.onActiveChange,ut=fe.onListChangeStart,vt=fe.onListChangeEnd,Ze=Object(d.a)(fe,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),ke=T.useRef(null);T.useImperativeHandle(Ae,function(){return{scrollTo:function(fn){ke.current.scrollTo(fn)}}});var He=T.useState(me),we=Object(c.a)(He,2),Le=we[0],Pe=we[1],We=T.useState(ie),Xe=Object(c.a)(We,2),gt=Xe[0],Lt=Xe[1],en=T.useState(ie),Zt=Object(c.a)(en,2),xt=Zt[0],Ct=Zt[1],mt=T.useState([]),Je=Object(c.a)(mt,2),Qe=Je[0],Oe=Je[1],je=T.useState(null),St=Object(c.a)(je,2),bt=St[0],Dt=St[1];function Qt(){Lt(ie),Ct(ie),Oe([]),Dt(null),vt()}T.useEffect(function(){Pe(me);var kt=P(Le,me);if(kt.key!==null)if(kt.add){var fn=gt.findIndex(function(Ra){var Xr=Ra.data.key;return Xr===kt.key}),mn=y(C(gt,ie,kt.key),ft,Ne,ct),Tr=gt.slice();Tr.splice(fn+1,0,g),Ct(Tr),Oe(mn),Dt("show")}else{var Mr=ie.findIndex(function(Ra){var Xr=Ra.data.key;return Xr===kt.key}),kr=y(C(ie,gt,kt.key),ft,Ne,ct),Un=ie.slice();Un.splice(Mr+1,0,g),Ct(Un),Oe(kr),Dt("hide")}else gt!==ie&&(Lt(ie),Ct(ie))},[me,ie]),T.useEffect(function(){et||Qt()},[et]);var _t=Ue?xt:ie,Gt={expandedKeys:me,selectedKeys:se,loadedKeys:ae,loadingKeys:pe,checkedKeys:ge,halfCheckedKeys:Me,dragOverNodeKey:he,dropPosition:Se,keyEntities:xe};return T.createElement(T.Fragment,null,Ut&&dt&&T.createElement("span",{style:b,"aria-live":"assertive"},N(dt)),T.createElement("div",{role:"tree"},T.createElement("input",{style:b,disabled:Ot===!1||Ke,tabIndex:Ot!==!1?jt:null,onKeyDown:ze,onFocus:Ve,onBlur:Et,value:"",onChange:s})),T.createElement(f.a,Object.assign({},Ze,{data:_t,itemKey:U,height:Ne,fullHeight:!1,virtual:ft,itemHeight:ct,prefixCls:"".concat(ce,"-list"),ref:ke}),function(kt){var fn=kt.pos,mn=kt.data,Tr=mn.key,Mr=Object(d.a)(mn,["key"]),kr=kt.isStart,Un=kt.isEnd,Ra=Object(i.e)(Tr,fn);delete Mr.children;var Xr=Object(i.f)(Ra,Gt);return T.createElement(w,Object.assign({},Mr,Xr,{active:dt&&Tr===dt.data.key,pos:fn,data:kt.data,isStart:kr,isEnd:Un,motion:Ue,motionNodes:Tr===h?Qe:null,motionType:bt,onMotionStart:ut,onMotionEnd:Qt,treeNodeRequiredProps:Gt,onMouseMove:function(){Rt(null)}}))}))},H=T.forwardRef(S);H.displayName="NodeList";var F=H,B=v("NvD2"),z=function(te){Object(O.a)(Ae,te);var fe=Object(M.a)(Ae);function Ae(){var ce;return Object(k.a)(this,Ae),ce=fe.apply(this,arguments),ce.destroyed=!1,ce.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},ce.listRef=T.createRef(),ce.onNodeDragStart=function(ie,ye){var le=ce.state,me=le.expandedKeys,se=le.keyEntities,ge=ce.props.onDragStart,ae=ye.props.eventKey;ce.dragNode=ye;var pe=Object(l.b)(me,ae);ce.setState({dragging:!0,dragNodesKeys:Object(l.g)(ae,se)}),ce.setExpandedKeys(pe),ge&&ge({event:ie,node:Object(i.b)(ye.props)})},ce.onNodeDragEnter=function(ie,ye){var le=ce.state,me=le.expandedKeys,se=le.keyEntities,ge=le.dragNodesKeys,ae=ce.props.onDragEnter,pe=ye.props,Me=pe.pos,xe=pe.eventKey;if(!ce.dragNode||ge.indexOf(xe)!==-1)return;var Ke=Object(l.c)(ie,ye);if(ce.dragNode.props.eventKey===xe&&Ke===0){ce.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ce.setState({dragOverNodeKey:xe,dropPosition:Ke}),ce.delayedDragEnterLogic||(ce.delayedDragEnterLogic={}),Object.keys(ce.delayedDragEnterLogic).forEach(function(et){clearTimeout(ce.delayedDragEnterLogic[et])}),ce.delayedDragEnterLogic[Me]=window.setTimeout(function(){if(!ce.state.dragging)return;var et=Object(I.a)(me),he=se[xe];he&&(he.children||[]).length&&(et=Object(l.a)(me,xe)),"expandedKeys"in ce.props||ce.setExpandedKeys(et),ae&&ae({event:ie,node:Object(i.b)(ye.props),expandedKeys:et})},400)},0)},ce.onNodeDragOver=function(ie,ye){var le=ce.state.dragNodesKeys,me=ce.props.onDragOver,se=ye.props.eventKey;if(le.indexOf(se)!==-1)return;if(ce.dragNode&&se===ce.state.dragOverNodeKey){var ge=Object(l.c)(ie,ye);if(ge===ce.state.dropPosition)return;ce.setState({dropPosition:ge})}me&&me({event:ie,node:Object(i.b)(ye.props)})},ce.onNodeDragLeave=function(ie,ye){var le=ce.props.onDragLeave;ce.setState({dragOverNodeKey:""}),le&&le({event:ie,node:Object(i.b)(ye.props)})},ce.onNodeDragEnd=function(ie,ye){var le=ce.props.onDragEnd;ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),le&&le({event:ie,node:Object(i.b)(ye.props)}),ce.dragNode=null},ce.onNodeDrop=function(ie,ye){var le=ce.state,me=le.dragNodesKeys,se=me===void 0?[]:me,ge=le.dropPosition,ae=ce.props.onDrop,pe=ye.props,Me=pe.eventKey,xe=pe.pos;if(ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),se.indexOf(Me)!==-1){Object(p.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Ke=Object(l.k)(xe),et={event:ie,node:Object(i.b)(ye.props),dragNode:ce.dragNode?Object(i.b)(ce.dragNode.props):null,dragNodesKeys:se.slice(),dropPosition:ge+Number(Ke[Ke.length-1]),dropToGap:!1};ge!==0&&(et.dropToGap=!0),ae&&ae(et),ce.dragNode=null},ce.cleanDragState=function(){var ie=ce.state.dragging;ie&&ce.setState({dragging:!1})},ce.onNodeClick=function(ie,ye){var le=ce.props.onClick;le&&le(ie,ye)},ce.onNodeDoubleClick=function(ie,ye){var le=ce.props.onDoubleClick;le&&le(ie,ye)},ce.onNodeSelect=function(ie,ye){var le=ce.state.selectedKeys,me=ce.state.keyEntities,se=ce.props,ge=se.onSelect,ae=se.multiple,pe=ye.selected,Me=ye.key,xe=!pe;xe?ae?le=Object(l.a)(le,Me):le=[Me]:le=Object(l.b)(le,Me);var Ke=le.map(function(et){var he=me[et];return he?he.node:null}).filter(function(et){return et});ce.setUncontrolledState({selectedKeys:le}),ge&&ge(le,{event:"select",selected:xe,node:ye,selectedNodes:Ke,nativeEvent:ie.nativeEvent})},ce.onNodeCheck=function(ie,ye,le){var me=ce.state,se=me.keyEntities,ge=me.checkedKeys,ae=me.halfCheckedKeys,pe=ce.props,Me=pe.checkStrictly,xe=pe.onCheck,Ke=ye.key,et,he={event:"check",node:ye,checked:le,nativeEvent:ie.nativeEvent};if(Me){var Se=le?Object(l.a)(ge,Ke):Object(l.b)(ge,Ke),Ue=Object(l.b)(ae,Ke);et={checked:Se,halfChecked:Ue},he.checkedNodes=Se.map(function(Ut){return se[Ut]}).filter(function(Ut){return Ut}).map(function(Ut){return Ut.node}),ce.setUncontrolledState({checkedKeys:Se})}else{var Ne=Object(B.a)([].concat(Object(I.a)(ge),[Ke]),!0,se),ct=Ne.checkedKeys,ft=Ne.halfCheckedKeys;if(!le){var Ot=new Set(ct);Ot.delete(Ke);var dt=Object(B.a)(Array.from(Ot),{checked:!1,halfCheckedKeys:ft},se);ct=dt.checkedKeys,ft=dt.halfCheckedKeys}et=ct,he.checkedNodes=[],he.checkedNodesPositions=[],he.halfCheckedKeys=ft,ct.forEach(function(Ut){var jt=se[Ut];if(!jt)return;var ze=jt.node,Ve=jt.pos;he.checkedNodes.push(ze),he.checkedNodesPositions.push({node:ze,pos:Ve})}),ce.setUncontrolledState({checkedKeys:ct},!1,{halfCheckedKeys:ft})}xe&&xe(et,he)},ce.onNodeLoad=function(ie){return new Promise(function(ye){ce.setState(function(le){var me=le.loadedKeys,se=me===void 0?[]:me,ge=le.loadingKeys,ae=ge===void 0?[]:ge,pe=ce.props,Me=pe.loadData,xe=pe.onLoad,Ke=ie.key;if(!Me||se.indexOf(Ke)!==-1||ae.indexOf(Ke)!==-1)return{};var et=Me(ie);return et.then(function(){var he=ce.state,Se=he.loadedKeys,Ue=he.loadingKeys,Ne=Object(l.a)(Se,Ke),ct=Object(l.b)(Ue,Ke);xe&&xe(Ne,{event:"load",node:ie}),ce.setUncontrolledState({loadedKeys:Ne}),ce.setState({loadingKeys:ct}),ye()}),{loadingKeys:Object(l.a)(ae,Ke)}})})},ce.onNodeMouseEnter=function(ie,ye){var le=ce.props.onMouseEnter;le&&le({event:ie,node:ye})},ce.onNodeMouseLeave=function(ie,ye){var le=ce.props.onMouseLeave;le&&le({event:ie,node:ye})},ce.onNodeContextMenu=function(ie,ye){var le=ce.props.onRightClick;le&&(ie.preventDefault(),le({event:ie,node:ye}))},ce.onFocus=function(){var ie=ce.props.onFocus;ce.setState({focused:!0}),ie&&ie.apply(void 0,arguments)},ce.onBlur=function(){var ie=ce.props.onBlur;ce.setState({focused:!1}),ce.onActiveChange(null),ie&&ie.apply(void 0,arguments)},ce.getTreeNodeRequiredProps=function(){var ie=ce.state,ye=ie.expandedKeys,le=ie.selectedKeys,me=ie.loadedKeys,se=ie.loadingKeys,ge=ie.checkedKeys,ae=ie.halfCheckedKeys,pe=ie.dragOverNodeKey,Me=ie.dropPosition,xe=ie.keyEntities;return{expandedKeys:ye||[],selectedKeys:le||[],loadedKeys:me||[],loadingKeys:se||[],checkedKeys:ge||[],halfCheckedKeys:ae||[],dragOverNodeKey:pe,dropPosition:Me,keyEntities:xe}},ce.setExpandedKeys=function(ie){var ye=ce.state.treeData,le=Object(i.d)(ye,ie);ce.setUncontrolledState({expandedKeys:ie,flattenNodes:le},!0)},ce.onNodeExpand=function(ie,ye){var le=ce.state.expandedKeys,me=ce.state.listChanging,se=ce.props,ge=se.onExpand,ae=se.loadData,pe=ye.key,Me=ye.expanded;if(me)return;var xe=le.indexOf(pe),Ke=!Me;if(Object(p.a)(Me&&xe!==-1||!Me&&xe===-1,"Expand state not sync with index check"),Ke?le=Object(l.a)(le,pe):le=Object(l.b)(le,pe),ce.setExpandedKeys(le),ge&&ge(le,{node:ye,expanded:Ke,nativeEvent:ie.nativeEvent}),Ke&&ae){var et=ce.onNodeLoad(ye);et&&et.then(function(){var he=Object(i.d)(ce.state.treeData,le);ce.setUncontrolledState({flattenNodes:he})})}},ce.onListChangeStart=function(){ce.setUncontrolledState({listChanging:!0})},ce.onListChangeEnd=function(){setTimeout(function(){ce.setUncontrolledState({listChanging:!1})})},ce.onActiveChange=function(ie){var ye=ce.state.activeKey,le=ce.props.onActiveChange;if(ye===ie)return;ce.setState({activeKey:ie}),ie!==null&&ce.scrollTo({key:ie}),le&&le(ie)},ce.getActiveItem=function(){var ie=ce.state,ye=ie.activeKey,le=ie.flattenNodes;return ye===null?null:le.find(function(me){var se=me.data.key;return se===ye})||null},ce.offsetActiveKey=function(ie){var ye=ce.state,le=ye.flattenNodes,me=ye.activeKey,se=le.findIndex(function(pe){var Me=pe.data.key;return Me===me});se===-1&&ie<0&&(se=le.length),se=(se+ie+le.length)%le.length;var ge=le[se];if(ge){var ae=ge.data.key;ce.onActiveChange(ae)}else ce.onActiveChange(null)},ce.onKeyDown=function(ie){var ye=ce.state,le=ye.activeKey,me=ye.expandedKeys,se=ye.checkedKeys,ge=ce.props,ae=ge.onKeyDown,pe=ge.checkable,Me=ge.selectable;switch(ie.which){case n.a.UP:{ce.offsetActiveKey(-1),ie.preventDefault();break}case n.a.DOWN:{ce.offsetActiveKey(1),ie.preventDefault();break}}var xe=ce.getActiveItem();if(xe&&xe.data){var Ke=ce.getTreeNodeRequiredProps(),et=xe.data.isLeaf===!1||!!(xe.data.children||[]).length,he=Object(i.b)(Object(Q.a)(Object(Q.a)({},Object(i.f)(le,Ke)),{},{data:xe.data,active:!0}));switch(ie.which){case n.a.LEFT:{et&&me.includes(le)?ce.onNodeExpand({},he):xe.parent&&ce.onActiveChange(xe.parent.data.key),ie.preventDefault();break}case n.a.RIGHT:{et&&!me.includes(le)?ce.onNodeExpand({},he):xe.children&&xe.children.length&&ce.onActiveChange(xe.children[0].data.key),ie.preventDefault();break}case n.a.ENTER:case n.a.SPACE:{pe&&!he.disabled&&he.checkable!==!1&&!he.disableCheckbox?ce.onNodeCheck({},he,!se.includes(le)):!pe&&Me&&!he.disabled&&he.selectable!==!1&&ce.onNodeSelect({},he);break}}}ae&&ae(ie)},ce.setUncontrolledState=function(ie){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(ce.destroyed)return;var me=!1,se=!0,ge={};Object.keys(ie).forEach(function(ae){if(ae in ce.props){se=!1;return}me=!0,ge[ae]=ie[ae]}),me&&(!ye||se)&&ce.setState(Object(Q.a)(Object(Q.a)({},ge),le))},ce.scrollTo=function(ie){ce.listRef.current.scrollTo(ie)},ce}return Object(_.a)(Ae,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var ie,ye=this.state,le=ye.focused,me=ye.flattenNodes,se=ye.keyEntities,ge=ye.dragging,ae=ye.activeKey,pe=this.props,Me=pe.prefixCls,xe=pe.className,Ke=pe.style,et=pe.showLine,he=pe.focusable,Se=pe.tabIndex,Ue=Se===void 0?0:Se,Ne=pe.selectable,ct=pe.showIcon,ft=pe.icon,Ot=pe.switcherIcon,dt=pe.draggable,Ut=pe.checkable,jt=pe.checkStrictly,ze=pe.disabled,Ve=pe.motion,Et=pe.loadData,Rt=pe.filterTreeNode,ut=pe.height,vt=pe.itemHeight,Ze=pe.virtual,ke=pe.titleRender,He=pe.onContextMenu,we=Object(l.f)(this.props);return T.createElement(A.a.Provider,{value:{prefixCls:Me,selectable:Ne,showIcon:ct,icon:ft,switcherIcon:Ot,draggable:dt,checkable:Ut,checkStrictly:jt,disabled:ze,keyEntities:se,loadData:Et,filterTreeNode:Rt,titleRender:ke,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},T.createElement("div",{className:t()(Me,xe,(ie={},Object(Z.a)(ie,"".concat(Me,"-show-line"),et),Object(Z.a)(ie,"".concat(Me,"-focused"),le),Object(Z.a)(ie,"".concat(Me,"-active-focused"),ae!==null),ie))},T.createElement(F,Object.assign({ref:this.listRef,prefixCls:Me,style:Ke,data:me,disabled:ze,selectable:Ne,checkable:!!Ut,motion:Ve,dragging:ge,height:ut,itemHeight:vt,virtual:Ze,focusable:he,focused:le,tabIndex:Ue,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:He},this.getTreeNodeRequiredProps(),we))))}}],[{key:"getDerivedStateFromProps",value:function(ie,ye){var le=ye.prevProps,me={prevProps:ie};function se(ft){return!le&&ft in ie||le&&le[ft]!==ie[ft]}var ge;if(se("treeData")?ge=ie.treeData:se("children")&&(Object(p.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ge=Object(i.c)(ie.children)),ge){me.treeData=ge;var ae=Object(i.a)(ge);me.keyEntities=Object(Q.a)(Object(Z.a)({},h,x),ae.keyEntities)}var pe=me.keyEntities||ye.keyEntities;if(se("expandedKeys")||le&&se("autoExpandParent"))me.expandedKeys=ie.autoExpandParent||!le&&ie.defaultExpandParent?Object(l.e)(ie.expandedKeys,pe):ie.expandedKeys;else if(!le&&ie.defaultExpandAll){var Me=Object(Q.a)({},pe);delete Me[h],me.expandedKeys=Object.keys(Me).map(function(ft){return Me[ft].key})}else!le&&ie.defaultExpandedKeys&&(me.expandedKeys=ie.autoExpandParent||ie.defaultExpandParent?Object(l.e)(ie.defaultExpandedKeys,pe):ie.defaultExpandedKeys);if(me.expandedKeys||delete me.expandedKeys,ge||me.expandedKeys){var xe=Object(i.d)(ge||ye.treeData,me.expandedKeys||ye.expandedKeys);me.flattenNodes=xe}if(ie.selectable&&(se("selectedKeys")?me.selectedKeys=Object(l.d)(ie.selectedKeys,ie):!le&&ie.defaultSelectedKeys&&(me.selectedKeys=Object(l.d)(ie.defaultSelectedKeys,ie))),ie.checkable){var Ke;if(se("checkedKeys")?Ke=Object(l.j)(ie.checkedKeys)||{}:!le&&ie.defaultCheckedKeys?Ke=Object(l.j)(ie.defaultCheckedKeys)||{}:ge&&(Ke=Object(l.j)(ie.checkedKeys)||{checkedKeys:ye.checkedKeys,halfCheckedKeys:ye.halfCheckedKeys}),Ke){var et=Ke,he=et.checkedKeys,Se=he===void 0?[]:he,Ue=et.halfCheckedKeys,Ne=Ue===void 0?[]:Ue;if(!ie.checkStrictly){var ct=Object(B.a)(Se,!0,pe);Se=ct.checkedKeys,Ne=ct.halfCheckedKeys}me.checkedKeys=Se,me.halfCheckedKeys=Ne}}return se("loadedKeys")&&(me.loadedKeys=ie.loadedKeys),me}}]),Ae}(T.Component);z.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},z.TreeNode=u.a;var K=z,$=ee.b=K},fW2E:function(Be,ee){var v={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function Z(Q,I,k){return v.hasOwnProperty(I)?k*=Q.dpr:k}Be.exports=Z},fXAG:function(Be,ee,v){"use strict";v.d(ee,"j",function(){return Z}),v.d(ee,"i",function(){return Q}),v.d(ee,"k",function(){return I}),v.d(ee,"eb",function(){return k}),v.d(ee,"o",function(){return _}),v.d(ee,"S",function(){return O}),v.d(ee,"fb",function(){return M}),v.d(ee,"u",function(){return T}),v.d(ee,"v",function(){return n}),v.d(ee,"cb",function(){return p}),v.d(ee,"A",function(){return a}),v.d(ee,"m",function(){return t}),v.d(ee,"Y",function(){return A}),v.d(ee,"s",function(){return l}),v.d(ee,"N",function(){return i}),v.d(ee,"bb",function(){return c}),v.d(ee,"db",function(){return d}),v.d(ee,"l",function(){return f}),v.d(ee,"Q",function(){return o}),v.d(ee,"ab",function(){return u}),v.d(ee,"x",function(){return E}),v.d(ee,"z",function(){return R}),v.d(ee,"X",function(){return w}),v.d(ee,"b",function(){return P}),v.d(ee,"H",function(){return C}),v.d(ee,"a",function(){return b}),v.d(ee,"c",function(){return h}),v.d(ee,"P",function(){return m}),v.d(ee,"g",function(){return x}),v.d(ee,"t",function(){return g}),v.d(ee,"Z",function(){return y}),v.d(ee,"y",function(){return U}),v.d(ee,"B",function(){return N}),v.d(ee,"f",function(){return S}),v.d(ee,"e",function(){return H}),v.d(ee,"W",function(){return F}),v.d(ee,"h",function(){return B}),v.d(ee,"d",function(){return z}),v.d(ee,"R",function(){return $}),v.d(ee,"n",function(){return te}),v.d(ee,"F",function(){return fe}),v.d(ee,"I",function(){return Ae}),v.d(ee,"D",function(){return ce}),v.d(ee,"E",function(){return ie}),v.d(ee,"C",function(){return ye}),v.d(ee,"G",function(){return le}),v.d(ee,"U",function(){return me}),v.d(ee,"q",function(){return se}),v.d(ee,"r",function(){return ge}),v.d(ee,"V",function(){return ae}),v.d(ee,"T",function(){return pe}),v.d(ee,"p",function(){return Me}),v.d(ee,"M",function(){return xe}),v.d(ee,"L",function(){return Ke}),v.d(ee,"J",function(){return et}),v.d(ee,"K",function(){return he}),v.d(ee,"O",function(){return Se}),v.d(ee,"w",function(){return Ue});var Z="FETCH_TASK_START",Q="FETCH_TASK_FAILURE",I="FETCH_TASK_SUCCESS",k="UPDATE_TASK_DATA",_="HIDE_EVALUATE_RESULT",O="SHOW_EVALUATE_RESULT",M="UPDATE_TIMESTRAP",T="MOVE_X",n="MOVE_Y",p="TRIGGER_RIGHT_PANEL_MASK ",a="SET_ACTIVE_INDEX",t="GET_TASK_LIST",A="SHOW_TASK_LIST",l="HIDE_TASK_LIST",i="SET_TASK_STAR",c="TRIGGER_ENLARGE_UNITY3D ",d="TRIGGER_TAB_FIXED ",f="GET_DISCUSSES",o="SHOW_DISCUSSES_LOADING",u="TOP_OR_DOWN_DISCUSS",E="PLUS_DISCUSS",R="SET_ACTION_TYPE",w="SHOW_REWARD_DIALOG",P="CANCEL_REWARD_DIALOG",C="SET_REWARD",b="ACTIVE_DISCUSS_INDEX",s="CREATE_DISCUSS",h="DISABLE_DISCUSS",m="SHOW_ANSWER_LOADING",x="FETCH_ANSWER_INFO",g="HIGH_TIP_MODAL",y="SHOW_TIP_MODAL",U="SELECT_UNLOCK_ANSWER",N="SET_CHOOSE_ANSWERS",S="EVAL_CHOOSE_START",H="EVAL_CHOOSE_END",F="SHOW_REP_loading",B="FETCH_REP_CONTENT",z="EDIT_REP_CONTENT",K="SET_REP_PATH",$="SHOW_EVALUATE_LOADING",te="HIDE_EVALUATE_LOADING",fe="SET_EVALUATE_MESSAGE",Ae="SET_SHOW_DIR",ce="SET_EDITOR_SETTING",ie="SET_EDITOR_THEME",ye="SET_EDITOR_FONTSIZE",le="SET_REPOS",me="SHOW_PATH_LIST",se="HIDE_PATH_LIST",ge="HIDE_PICTURE_VIEW",ae="SHOW_PICTURE_VIEW",pe="SHOW_NOTICE",Me="HIDE_NOTICE",xe="SET_TAB_INDEX",Ke="SET_SSH_TABS",et="SET_SSH_CONFIGDATA",he="SET_SSH_CONFIGDATAARR",Se="SET_VNC_LOADING ",Ue="ON_TAB_TO_SPACE "},fcSX:function(Be,ee,v){"use strict";var Z=v("Ff2n"),Q=v("1OyB"),I=v("vuIU"),k=v("Ji7U"),_=v("md7G"),O=v("foSv"),M=v("1W/9"),T=v("q1tI"),n=v("rePB"),p=v("JX7q"),a=v("TSYQ"),t=v.n(a),A=v("qx4F"),l=v("4IlW");function i(S){return Array.isArray(S)?S:[S]}var c={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},d=Object.keys(c).filter(function(S){if(typeof document=="undefined")return!1;var H=document.getElementsByTagName("html")[0];return S in(H?H.style:{})})[0],f=c[d];function o(S,H,F,B){S.addEventListener?S.addEventListener(H,F,B):S.attachEvent&&S.attachEvent("on".concat(H),F)}function u(S,H,F,B){S.removeEventListener?S.removeEventListener(H,F,B):S.attachEvent&&S.detachEvent("on".concat(H),F)}function E(S,H){var F=typeof S=="function"?S(H):S;return Array.isArray(F)?F.length===2?F:[F[0],F[1]]:[F]}var R=function(H){return!isNaN(parseFloat(H))&&isFinite(H)},w=!(typeof window!="undefined"&&window.document&&window.document.createElement),P=function S(H,F,B,z){if(!F||F===document||F instanceof Document)return!1;if(F===H.parentNode)return!0;var K=Math.max(Math.abs(B),Math.abs(z))===Math.abs(z),$=Math.max(Math.abs(B),Math.abs(z))===Math.abs(B),te=F.scrollHeight-F.clientHeight,fe=F.scrollWidth-F.clientWidth,Ae=document.defaultView.getComputedStyle(F),ce=Ae.overflowY==="auto"||Ae.overflowY==="scroll",ie=Ae.overflowX==="auto"||Ae.overflowX==="scroll",ye=te&&ce,le=fe&&ie;return K&&(!ye||ye&&(F.scrollTop>=te&&z<0||F.scrollTop<=0&&z>0))||$&&(!le||le&&(F.scrollLeft>=fe&&B<0||F.scrollLeft<=0&&B>0))?S(H,F.parentNode,B,z):!1};function C(S){var H=b();return function(){var B=Object(O.a)(S),z;if(H){var K=Object(O.a)(this).constructor;z=Reflect.construct(B,arguments,K)}else z=B.apply(this,arguments);return Object(_.a)(this,z)}}function b(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(S){return!1}}var s={},h=function(S){Object(k.a)(F,S);var H=C(F);function F(B){var z;return Object(Q.a)(this,F),z=H.call(this,B),z.domFocus=function(){z.dom&&z.dom.focus()},z.removeStartHandler=function(K){if(K.touches.length>1)return;z.startPos={x:K.touches[0].clientX,y:K.touches[0].clientY}},z.removeMoveHandler=function(K){if(K.changedTouches.length>1)return;var $=K.currentTarget,te=K.changedTouches[0].clientX-z.startPos.x,fe=K.changedTouches[0].clientY-z.startPos.y;($===z.maskDom||$===z.handlerDom||$===z.contentDom&&P($,K.target,te,fe))&&K.cancelable&&K.preventDefault()},z.transitionEnd=function(K){var $=K.target;u($,f,z.transitionEnd),$.style.transition=""},z.onKeyDown=function(K){if(K.keyCode===l.a.ESC){var $=z.props.onClose;K.stopPropagation(),$&&$(K)}},z.onWrapperTransitionEnd=function(K){var $=z.props,te=$.open,fe=$.afterVisibleChange;K.target===z.contentWrapper&&K.propertyName.match(/transform$/)&&(z.dom.style.transition="",!te&&z.getCurrentDrawerSome()&&(document.body.style.overflowX="",z.maskDom&&(z.maskDom.style.left="",z.maskDom.style.width="")),fe&&fe(!!te))},z.openLevelTransition=function(){var K=z.props,$=K.open,te=K.width,fe=K.height,Ae=z.getHorizontalBoolAndPlacementName(),ce=Ae.isHorizontal,ie=Ae.placementName,ye=z.contentDom?z.contentDom.getBoundingClientRect()[ce?"width":"height"]:0,le=(ce?te:fe)||ye;z.setLevelAndScrolling($,ie,le)},z.setLevelTransform=function(K,$,te,fe){var Ae=z.props,ce=Ae.placement,ie=Ae.levelMove,ye=Ae.duration,le=Ae.ease,me=Ae.showMask;z.levelDom.forEach(function(se){se.style.transition="transform ".concat(ye," ").concat(le),o(se,f,z.transitionEnd);var ge=K?te:0;if(ie){var ae=E(ie,{target:se,open:K});ge=K?ae[0]:ae[1]||0}var pe=typeof ge=="number"?"".concat(ge,"px"):ge,Me=ce==="left"||ce==="top"?pe:"-".concat(pe);Me=me&&ce==="right"&&fe?"calc(".concat(Me," + ").concat(fe,"px)"):Me,se.style.transform=ge?"".concat($,"(").concat(Me,")"):""})},z.setLevelAndScrolling=function(K,$,te){var fe=z.props.onChange;if(!w){var Ae=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(A.a)(!0):0;z.setLevelTransform(K,$,te,Ae),z.toggleScrollingToDrawerAndBody(Ae)}fe&&fe(K)},z.toggleScrollingToDrawerAndBody=function(K){var $=z.props,te=$.getOpenCount,fe=$.getContainer,Ae=$.showMask,ce=$.open,ie=fe&&fe(),ye=te&&te();if(ie&&ie.parentNode===document.body&&Ae){var le=["touchstart"],me=[document.body,z.maskDom,z.handlerDom,z.contentDom];ce&&document.body.style.overflow!=="hidden"?(K&&z.addScrollingEffect(K),ye===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",me.forEach(function(se,ge){if(!se)return;o(se,le[ge]||"touchmove",ge?z.removeMoveHandler:z.removeStartHandler,z.passive)})):z.getCurrentDrawerSome()&&(ye||(document.body.style.overflow=""),document.body.style.touchAction="",K&&z.remScrollingEffect(K),me.forEach(function(se,ge){if(!se)return;u(se,le[ge]||"touchmove",ge?z.removeMoveHandler:z.removeStartHandler,z.passive)}))}},z.addScrollingEffect=function(K){var $=z.props,te=$.placement,fe=$.duration,Ae=$.ease,ce=$.getOpenCount,ie=$.switchScrollingEffect,ye=ce&&ce();ye===1&&ie();var le="width ".concat(fe," ").concat(Ae),me="transform ".concat(fe," ").concat(Ae);z.dom.style.transition="none";switch(te){case"right":z.dom.style.transform="translateX(-".concat(K,"px)");break;case"top":case"bottom":z.dom.style.width="calc(100% - ".concat(K,"px)"),z.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(z.timeout),z.timeout=setTimeout(function(){z.dom&&(z.dom.style.transition="".concat(me,",").concat(le),z.dom.style.width="",z.dom.style.transform="")})},z.remScrollingEffect=function(K){var $=z.props,te=$.placement,fe=$.duration,Ae=$.ease,ce=$.getOpenCount,ie=$.switchScrollingEffect,ye=ce&&ce();ye||ie(!0),d&&(document.body.style.overflowX="hidden"),z.dom.style.transition="none";var le,me="width ".concat(fe," ").concat(Ae),se="transform ".concat(fe," ").concat(Ae);switch(te){case"left":{z.dom.style.width="100%",me="width 0s ".concat(Ae," ").concat(fe);break}case"right":{z.dom.style.transform="translateX(".concat(K,"px)"),z.dom.style.width="100%",me="width 0s ".concat(Ae," ").concat(fe),z.maskDom&&(z.maskDom.style.left="-".concat(K,"px"),z.maskDom.style.width="calc(100% + ".concat(K,"px)"));break}case"top":case"bottom":{z.dom.style.width="calc(100% + ".concat(K,"px)"),z.dom.style.height="100%",z.dom.style.transform="translateZ(0)",le="height 0s ".concat(Ae," ").concat(fe);break}default:break}clearTimeout(z.timeout),z.timeout=setTimeout(function(){z.dom&&(z.dom.style.transition="".concat(se,",").concat(le?"".concat(le,","):"").concat(me),z.dom.style.transform="",z.dom.style.width="",z.dom.style.height="")})},z.getCurrentDrawerSome=function(){return!Object.keys(s).some(function(K){return s[K]})},z.getLevelDom=function(K){var $=K.level,te=K.getContainer;if(w)return;var fe=te&&te(),Ae=fe?fe.parentNode:null;if(z.levelDom=[],$==="all"){var ce=Ae?Array.prototype.slice.call(Ae.children):[];ce.forEach(function(ie){ie.nodeName!=="SCRIPT"&&ie.nodeName!=="STYLE"&&ie.nodeName!=="LINK"&&ie!==fe&&z.levelDom.push(ie)})}else $&&i($).forEach(function(ie){document.querySelectorAll(ie).forEach(function(ye){z.levelDom.push(ye)})})},z.getHorizontalBoolAndPlacementName=function(){var K=z.props.placement,$=K==="left"||K==="right",te="translate".concat($?"X":"Y");return{isHorizontal:$,placementName:te}},z.state={_self:Object(p.a)(z)},z}return Object(I.a)(F,[{key:"componentDidMount",value:function(){var z=this;if(!w){var K=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return K=!0,null}}))}catch(ce){}this.passive=K?{passive:!1}:!1}var $=this.props,te=$.open,fe=$.getContainer,Ae=fe&&fe();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),te&&(Ae&&Ae.parentNode===document.body&&(s[this.drawerId]=te),this.openLevelTransition(),this.forceUpdate(function(){z.domFocus()}))}},{key:"componentDidUpdate",value:function(z){var K=this.props,$=K.open,te=K.getContainer,fe=te&&te();$!==z.open&&($&&this.domFocus(),fe&&fe.parentNode===document.body&&(s[this.drawerId]=!!$),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var z=this.props,K=z.getOpenCount,$=z.open,te=z.switchScrollingEffect,fe=typeof K=="function"&&K();delete s[this.drawerId],$&&(this.setLevelTransform(!1),document.body.style.touchAction=""),fe||(document.body.style.overflow="",te(!0))}},{key:"render",value:function(){var z,K=this,$=this.props,te=$.className,fe=$.children,Ae=$.style,ce=$.width,ie=$.height,ye=$.defaultOpen,le=$.open,me=$.prefixCls,se=$.placement,ge=$.level,ae=$.levelMove,pe=$.ease,Me=$.duration,xe=$.getContainer,Ke=$.handler,et=$.onChange,he=$.afterVisibleChange,Se=$.showMask,Ue=$.maskClosable,Ne=$.maskStyle,ct=$.onClose,ft=$.onHandleClick,Ot=$.keyboard,dt=$.getOpenCount,Ut=$.switchScrollingEffect,jt=Object(Z.a)($,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","switchScrollingEffect"]),ze=this.dom?le:!1,Ve=t()(me,(z={},Object(n.a)(z,"".concat(me,"-").concat(se),!0),Object(n.a)(z,"".concat(me,"-open"),ze),Object(n.a)(z,te||"",!!te),Object(n.a)(z,"no-mask",!Se),z)),Et=this.getHorizontalBoolAndPlacementName(),Rt=Et.placementName,ut=se==="left"||se==="top"?"-100%":"100%",vt=ze?"":"".concat(Rt,"(").concat(ut,")"),Ze=Ke&&T.cloneElement(Ke,{onClick:function(He){Ke.props.onClick&&Ke.props.onClick(),ft&&ft(He)},ref:function(He){K.handlerDom=He}});return T.createElement("div",Object.assign({},jt,{tabIndex:-1,className:Ve,style:Ae,ref:function(He){K.dom=He},onKeyDown:ze&&Ot?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),Se&&T.createElement("div",{className:"".concat(me,"-mask"),onClick:Ue?ct:void 0,style:Ne,ref:function(He){K.maskDom=He}}),T.createElement("div",{className:"".concat(me,"-content-wrapper"),style:{transform:vt,msTransform:vt,width:R(ce)?"".concat(ce,"px"):ce,height:R(ie)?"".concat(ie,"px"):ie},ref:function(He){K.contentWrapper=He}},T.createElement("div",{className:"".concat(me,"-content"),ref:function(He){K.contentDom=He},onTouchStart:ze&&Se?this.removeStartHandler:void 0,onTouchMove:ze&&Se?this.removeMoveHandler:void 0},fe),Ze))}}],[{key:"getDerivedStateFromProps",value:function(z,K){var $=K.prevProps,te=K._self,fe={prevProps:z};if($!==void 0){var Ae=z.placement,ce=z.level;Ae!==$.placement&&(te.contentDom=null),ce!==$.level&&te.getLevelDom(z)}return fe}}]),F}(T.Component);h.defaultProps={switchScrollingEffect:function(){}};var m=h;function x(S){var H=g();return function(){var B=Object(O.a)(S),z;if(H){var K=Object(O.a)(this).constructor;z=Reflect.construct(B,arguments,K)}else z=B.apply(this,arguments);return Object(_.a)(this,z)}}function g(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(S){return!1}}var y=function(S){Object(k.a)(F,S);var H=x(F);function F(B){var z;Object(Q.a)(this,F),z=H.call(this,B),z.onHandleClick=function($){var te=z.props,fe=te.onHandleClick,Ae=te.open;if(fe&&fe($),typeof Ae=="undefined"){var ce=z.state.open;z.setState({open:!ce})}},z.onClose=function($){var te=z.props,fe=te.onClose,Ae=te.open;fe&&fe($),typeof Ae=="undefined"&&z.setState({open:!1})};var K=typeof B.open!="undefined"?B.open:!!B.defaultOpen;return z.state={open:K},"onMaskClick"in B&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),z}return Object(I.a)(F,[{key:"render",value:function(){var z=this,K=this.props,$=K.defaultOpen,te=K.getContainer,fe=K.wrapperClassName,Ae=K.forceRender,ce=K.handler,ie=Object(Z.a)(K,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),ye=this.state.open;if(!te)return T.createElement("div",{className:fe,ref:function(se){z.dom=se}},T.createElement(m,Object.assign({},ie,{open:ye,handler:ce,getContainer:function(){return z.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var le=!!ce||Ae;return T.createElement(M.a,{visible:ye,forceRender:le,getContainer:te,wrapperClassName:fe},function(me){var se=me.visible,ge=me.afterClose,ae=Object(Z.a)(me,["visible","afterClose"]);return T.createElement(m,Object.assign({},ie,ae,{open:se!==void 0?se:ye,afterVisibleChange:ge!==void 0?ge:ie.afterVisibleChange,handler:ce,onClose:z.onClose,onHandleClick:z.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(z,K){var $=K.prevProps,te={prevProps:z};return typeof $!="undefined"&&z.open!==$.open&&(te.open=z.open),te}}]),F}(T.Component);y.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:T.createElement("div",{className:"drawer-handle"},T.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var U=y,N=ee.a=U},fjLI:function(Be,ee,v){"use strict";v.d(ee,"f",function(){return A}),v.d(ee,"b",function(){return l}),v.d(ee,"a",function(){return i}),v.d(ee,"d",function(){return c}),v.d(ee,"e",function(){return d}),v.d(ee,"c",function(){return f});var Z=v("8HAY"),Q=v("Vhoy"),I=v("MI8n"),k=v("JYp7"),_=v("pmY6"),O=v("24hK"),M=v("nnTU"),T=v("T8No"),n=v("Cg/j"),p=v("t9D7"),a=function(o,u,E,R){var w=arguments.length,P=w<3?u:R===null?R=Object.getOwnPropertyDescriptor(u,E):R,C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(o,u,E,R);else for(var b=o.length-1;b>=0;b--)(C=o[b])&&(P=(w<3?C(P):w>3?C(u,E,P):C(u,E))||P);return w>3&&P&&Object.defineProperty(u,E,P),P},t=function(o,u){return function(E,R){u(E,R,o)}};function A(o){return o.command!==void 0}class l{constructor(o){this.id=l._idPool++,this._debugName=o}}l._idPool=0,l.CommandPalette=new l("CommandPalette"),l.EditorContext=new l("EditorContext"),l.SimpleEditorContext=new l("SimpleEditorContext"),l.EditorContextCopy=new l("EditorContextCopy"),l.EditorContextPeek=new l("EditorContextPeek"),l.MenubarEditMenu=new l("MenubarEditMenu"),l.MenubarCopy=new l("MenubarCopy"),l.MenubarGoMenu=new l("MenubarGoMenu"),l.MenubarSelectionMenu=new l("MenubarSelectionMenu"),l.InlineCompletionsActions=new l("InlineCompletionsActions");const i=Object(n.c)("menuService"),c=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new I.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:o=>o===l.CommandPalette}}addCommand(o){return this.addCommands(k.a.single(o))}addCommands(o){for(const u of o)this._commands.set(u.id,u);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(_.i)(()=>{let u=!1;for(const E of o)u=this._commands.delete(E.id)||u;u&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(o){return this._commands.get(o)}getCommands(){const o=new Map;return this._commands.forEach((u,E)=>o.set(E,u)),o}appendMenuItem(o,u){return this.appendMenuItems(k.a.single({id:o,item:u}))}appendMenuItems(o){const u=new Set,E=new O.a;for(const{id:R,item:w}of o){let P=this._menuItems.get(R);P||(P=new O.a,this._menuItems.set(R,P)),E.push(P.push(w)),u.add(R)}return this._onDidChangeMenu.fire(u),Object(_.i)(()=>{if(E.size>0){for(let R of E)R();this._onDidChangeMenu.fire(u),E.clear()}})}getMenuItems(o){let u;return this._menuItems.has(o)?u=[...this._menuItems.get(o)]:u=[],o===l.CommandPalette&&this._appendImplicitItems(u),u}_appendImplicitItems(o){const u=new Set;for(const E of o)A(E)&&(u.add(E.command.id),E.alt&&u.add(E.alt.id));this._commands.forEach((E,R)=>{u.has(R)||o.push({command:E})})}};class d extends Z.e{constructor(o,u,E,R){super(`submenuitem.${o.submenu.id}`,typeof o.title=="string"?o.title:o.title.value,[],"submenu");this.item=o,this._menuService=u,this._contextKeyService=E,this._options=R}get actions(){const o=[],u=this._menuService.createMenu(this.item.submenu,this._contextKeyService),E=u.getActions(this._options);u.dispose();for(const[,R]of E)R.length>0&&(o.push(...R),o.push(new Z.d));return o.length&&o.pop(),o}}let f=class o{constructor(u,E,R,w,P){var C,b;if(this._commandService=P,this.id=u.id,this.label=(R==null?void 0:R.renderShortTitle)&&u.shortTitle?typeof u.shortTitle=="string"?u.shortTitle:u.shortTitle.value:typeof u.title=="string"?u.title:u.title.value,this.tooltip=(b=typeof u.tooltip=="string"?u.tooltip:(C=u.tooltip)===null||C===void 0?void 0:C.value)!==null&&b!==void 0?b:"",this.enabled=!u.precondition||w.contextMatchesRules(u.precondition),this.checked=void 0,u.toggled){const s=u.toggled.condition?u.toggled:{condition:u.toggled};this.checked=w.contextMatchesRules(s.condition),this.checked&&s.tooltip&&(this.tooltip=typeof s.tooltip=="string"?s.tooltip:s.tooltip.value),s.title&&(this.label=typeof s.title=="string"?s.title:s.title.value)}this.item=u,this.alt=E?new o(E,void 0,R,w,P):void 0,this._options=R,p.d.isThemeIcon(u.icon)&&(this.class=Q.a.asClassName(u.icon))}dispose(){}run(...u){var E,R;let w=[];return((E=this._options)===null||E===void 0?void 0:E.arg)&&(w=[...w,this._options.arg]),((R=this._options)===null||R===void 0?void 0:R.shouldForwardArgs)&&(w=[...w,...u]),this._commandService.executeCommand(this.id,...w)}};f=a([t(3,T.b),t(4,M.b)],f)},fyJ8:function(Be,ee,v){"use strict";var Z=v("rePB"),Q=v("VTBJ"),I=v("Ff2n"),k=v("U8pU"),_=v("q1tI"),O=v.n(_),M=v("TSYQ"),T=v.n(M),n=v("c+Xe"),p=v("sR1s");function a(c){return c&&Object(k.a)(c)==="object"&&!Array.isArray(c)&&!_.isValidElement(c)}function t(c){return typeof c=="string"?!0:Object(n.c)(c)}function A(c,d){var f,o=c.prefixCls,u=c.className,E=c.record,R=c.index,w=c.dataIndex,P=c.render,C=c.children,b=c.component,s=b===void 0?"td":b,h=c.colSpan,m=c.rowSpan,x=c.fixLeft,g=c.fixRight,y=c.firstFixLeft,U=c.lastFixLeft,N=c.firstFixRight,S=c.lastFixRight,H=c.appendNode,F=c.additionalProps,B=F===void 0?{}:F,z=c.ellipsis,K=c.align,$=c.rowType,te=c.isSticky,fe="".concat(o,"-cell"),Ae,ce;if(C)ce=C;else{var ie=Object(p.b)(E,w);if(ce=ie,P){var ye=P(ie,E,R);a(ye)?(ce=ye.children,Ae=ye.props):ce=ye}}Object(k.a)(ce)==="object"&&!Array.isArray(ce)&&!_.isValidElement(ce)&&(ce=null),z&&(U||N)&&(ce=_.createElement("span",{className:"".concat(fe,"-content")},ce));var le=Ae||{},me=le.colSpan,se=le.rowSpan,ge=le.style,ae=le.className,pe=Object(I.a)(le,["colSpan","rowSpan","style","className"]),Me=me!==void 0?me:h,xe=se!==void 0?se:m;if(Me===0||xe===0)return null;var Ke={},et=typeof x=="number",he=typeof g=="number";et&&(Ke.position="sticky",Ke.left=x),he&&(Ke.position="sticky",Ke.right=g);var Se={};K&&(Se.textAlign=K);var Ue,Ne=z===!0?{showTitle:!0}:z;Ne&&(Ne.showTitle||$==="header")&&(typeof ce=="string"||typeof ce=="number"?Ue=ce.toString():_.isValidElement(ce)&&typeof ce.props.children=="string"&&(Ue=ce.props.children));var ct=Object(Q.a)(Object(Q.a)(Object(Q.a)({title:Ue},pe),B),{},{colSpan:Me&&Me!==1?Me:null,rowSpan:xe&&xe!==1?xe:null,className:T()(fe,u,(f={},Object(Z.a)(f,"".concat(fe,"-fix-left"),et),Object(Z.a)(f,"".concat(fe,"-fix-left-first"),y),Object(Z.a)(f,"".concat(fe,"-fix-left-last"),U),Object(Z.a)(f,"".concat(fe,"-fix-right"),he),Object(Z.a)(f,"".concat(fe,"-fix-right-first"),N),Object(Z.a)(f,"".concat(fe,"-fix-right-last"),S),Object(Z.a)(f,"".concat(fe,"-ellipsis"),z),Object(Z.a)(f,"".concat(fe,"-with-append"),H),Object(Z.a)(f,"".concat(fe,"-fix-sticky"),(et||he)&&te),f),B.className,ae),style:Object(Q.a)(Object(Q.a)(Object(Q.a)(Object(Q.a)({},B.style),Se),Ke),ge),ref:t(s)?d:null});return _.createElement(s,Object.assign({},ct),H,ce)}var l=_.forwardRef(A);l.displayName="Cell";var i=_.memo(l,function(c,d){return d.shouldCellUpdate?!d.shouldCellUpdate(d.record,c.record):!1});ee.a=i},gut8:function(Be,ee){var v={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},Z=9;ee.ContextCachedBy=v,ee.WILL_BE_RESTORED=Z},"h/US":function(Be,ee,v){"use strict";var Z=v("DZo9"),Q=v("8z0m"),I=v("miYZ"),k=v("tsqr"),_=v("+L6B"),O=v("2/Rp"),M=v("tJVT"),T=v("q1tI"),n=v.n(T),p=v("z7Xi"),a=v("jN4g"),t=v("m3rI"),A=v("w8Aa"),l=v.n(A),i=function(d){var f=d.value,o=d.onChange,u=d.getFileProgress,E=Object(T.useState)(!1),R=Object(M.a)(E,2),w=R[0],P=R[1],C=n.a.createElement(O.a,{loading:w,icon:n.a.createElement(p.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),b=function(){return n.a.createElement("div",{className:l.a.img},n.a.createElement("img",{src:t.a.API_SERVER+"/api/attachments/"+f,alt:"avatar",style:{width:288}}),n.a.createElement("div",null,n.a.createElement(a.a,{onClick:function(){return o("")},style:{fontSize:"16px",color:"red"}})))},s=function(m){if(u&&u(m),m.file.status==="uploading"){P(!0);return}if(m.file.status==="done"){var x,g,y,U;if(P(!1),m.file.status==="done"&&((x=m.file)===null||x===void 0||((g=x.response)===null||g===void 0)?void 0:g.status)===-1){var N,S;k.b.error((N=m.file)===null||N===void 0||((S=N.response)===null||S===void 0)?void 0:S.message);return}o(m==null||((y=m.file)===null||y===void 0||((U=y.response)===null||U===void 0))?void 0:U.id)}};return n.a.createElement(n.a.Fragment,null,f?b():n.a.createElement("div",null,n.a.createElement(Q.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(t.a.API_SERVER,"/api/attachments.json"),onChange:s,accept:"image/*"},C),n.a.createElement("div",{className:"mt20 c-light-black"},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"),n.a.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))};ee.a=i},h78n:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return y});var Z=v("q1tI"),Q=v.n(Z),I=v("TSYQ"),k=v.n(I),_={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},O=function(S){var H=S.map(function(){return Object(Z.useRef)()}),F=Object(Z.useRef)();return Object(Z.useEffect)(function(){var B=Date.now(),z=!1;Object.keys(H).forEach(function(K){var $=H[K].current;if(!$)return;z=!0;var te=$.style;te.transitionDuration=".3s, .3s, .3s, .06s",F.current&&B-F.current<100&&(te.transitionDuration="0s, 0s")}),z&&(F.current=Date.now())}),[H]};function M(){return M=Object.assign||function(N){for(var S=1;SN.length)&&(S=N.length);for(var H=0,F=new Array(S);H=0)continue;if(!Object.prototype.propertyIsEnumerable.call(N,F))continue;H[F]=N[F]}}return H}function i(N,S){if(N==null)return{};var H={},F=Object.keys(N),B,z;for(z=0;z=0)continue;H[B]=N[B]}return H}var c=function(S){var H=S.className,F=S.percent,B=S.prefixCls,z=S.strokeColor,K=S.strokeLinecap,$=S.strokeWidth,te=S.style,fe=S.trailColor,Ae=S.trailWidth,ce=S.transition,ie=l(S,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ie.gapPosition;var ye=Array.isArray(F)?F:[F],le=Array.isArray(z)?z:[z],me=O(ye),se=T(me,1),ge=se[0],ae=$/2,pe=100-$/2,Me="M ".concat(K==="round"?ae:0,",").concat(ae,` L `).concat(K==="round"?pe:100,",").concat(ae),xe="0 0 100 ".concat($),Ke=0;return Q.a.createElement("svg",M({className:k()("".concat(B,"-line"),H),viewBox:xe,preserveAspectRatio:"none",style:te},ie),Q.a.createElement("path",{className:"".concat(B,"-line-trail"),d:Me,strokeLinecap:K,stroke:fe,strokeWidth:Ae||$,fillOpacity:"0"}),ye.map(function(et,he){var Se={strokeDasharray:"".concat(et,"px, 100px"),strokeDashoffset:"-".concat(Ke,"px"),transition:ce||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ue=le[he]||le[le.length-1];return Ke+=et,Q.a.createElement("path",{key:he,className:"".concat(B,"-line-path"),d:Me,strokeLinecap:K,stroke:Ue,strokeWidth:$,fillOpacity:"0",ref:ge[he],style:Se})}))};c.defaultProps=_;var d=c;function f(){return f=Object.assign||function(N){for(var S=1;SN.length)&&(S=N.length);for(var H=0,F=new Array(S);H=0)continue;if(!Object.prototype.propertyIsEnumerable.call(N,F))continue;H[F]=N[F]}}return H}function b(N,S){if(N==null)return{};var H={},F=Object.keys(N),B,z;for(z=0;z=0)continue;H[B]=N[B]}return H}var s=0;function h(N){return+N.replace("%","")}function m(N){return Array.isArray(N)?N:[N]}function x(N,S,H,F){var B=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,z=arguments.length>5?arguments[5]:void 0,K=50-F/2,$=0,te=-K,fe=0,Ae=-2*K;switch(z){case"left":$=-K,te=0,fe=2*K,Ae=0;break;case"right":$=K,te=0,fe=-2*K,Ae=0;break;case"bottom":te=K,Ae=2*K;break;default:}var ce="M 50,50 m ".concat($,",").concat(te,` a `).concat(K,",").concat(K," 0 1 1 ").concat(fe,",").concat(-Ae,` a `).concat(K,",").concat(K," 0 1 1 ").concat(-fe,",").concat(Ae),ie=Math.PI*2*K,ye={stroke:H,strokeDasharray:"".concat(S/100*(ie-B),"px ").concat(ie,"px"),strokeDashoffset:"-".concat(B/2+N/100*(ie-B),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ce,pathStyle:ye}}var g=function(S){var H=S.prefixCls,F=S.strokeWidth,B=S.trailWidth,z=S.gapDegree,K=S.gapPosition,$=S.trailColor,te=S.strokeLinecap,fe=S.style,Ae=S.className,ce=S.strokeColor,ie=S.percent,ye=C(S,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),le=Object(Z.useMemo)(function(){return s+=1,s},[]),me=x(0,100,$,F,z,K),se=me.pathString,ge=me.pathStyle,ae=m(ie),pe=m(ce),Me=pe.find(function(Se){return Object.prototype.toString.call(Se)==="[object Object]"}),xe=O(ae),Ke=o(xe,1),et=Ke[0],he=function(){var Ue=0;return ae.map(function(Ne,ct){var ft=pe[ct]||pe[pe.length-1],Ot=Object.prototype.toString.call(ft)==="[object Object]"?"url(#".concat(H,"-gradient-").concat(le,")"):"",dt=x(Ue,Ne,ft,F,z,K);return Ue+=Ne,Q.a.createElement("path",{key:ct,className:"".concat(H,"-circle-path"),d:dt.pathString,stroke:Ot,strokeLinecap:te,strokeWidth:F,opacity:Ne===0?0:1,fillOpacity:"0",style:dt.pathStyle,ref:et[ct]})})};return Q.a.createElement("svg",f({className:k()("".concat(H,"-circle"),Ae),viewBox:"0 0 100 100",style:fe},ye),Me&&Q.a.createElement("defs",null,Q.a.createElement("linearGradient",{id:"".concat(H,"-gradient-").concat(le),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Me).sort(function(Se,Ue){return h(Se)-h(Ue)}).map(function(Se,Ue){return Q.a.createElement("stop",{key:Ue,offset:Se,stopColor:Me[Se]})}))),Q.a.createElement("path",{className:"".concat(H,"-circle-trail"),d:se,stroke:$,strokeLinecap:te,strokeWidth:B||F,fillOpacity:"0",style:ge}),he().reverse())};g.defaultProps=_;var y=g,U={Line:d,Circle:y}},h7HQ:function(Be,ee,v){var Z=v("y+Vt"),Q=v("T6xi"),I=Z.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(k,_){Q.buildPath(k,_,!0)}});Be.exports=I},hOwI:function(Be,ee){var v=Math.log(2);function Z(I,k,_,O,M,T){var n=O+"-"+M,p=I.length;if(T.hasOwnProperty(n))return T[n];if(k===1){var a=Math.round(Math.log((1<Q&&O>k||O_?M:0}Be.exports=v},iXp4:function(Be,ee,v){var Z=v("ItGF"),Q=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function I(k){return Z.browser.ie&&Z.browser.version>=11?function(){var _=this.__clipPaths,O=this.style,M;if(_)for(var T=0;T<_.length;T++){var n=_[T],p=n&&n.shape,a=n&&n.type;if(p&&(a==="sector"&&p.startAngle===p.endAngle||a==="rect"&&(!p.width||!p.height))){for(var t=0;t-1?Qe:0}else{var Oe,je,St,bt,Dt,Qt=(Oe=ie.detail)===null||Oe===void 0||((je=Oe.courses)===null||je===void 0||((St=je.map(function(Gt){var kt;return parseInt((kt=Gt.course_status)===null||kt===void 0?void 0:kt.status)}))===null||St===void 0))?void 0:St.lastIndexOf(2);Ct=Qt>-1?Qt:0,Qt=(bt=ie.detail)===null||bt===void 0||((Dt=bt.courses)===null||Dt===void 0)?void 0:Dt.findIndex(function(Gt){var kt;return parseInt((kt=Gt.course_status)===null||kt===void 0?void 0:kt.status)===0}),Ct=Qt>-1?Qt:Ct}if((xt=ie.detail)!==null&&xt!==void 0&&xt.courses){var _t;Rt(((_t=ie.detail)===null||_t===void 0?void 0:_t.courses[Ct])||{})}},[ie.detail]);var ut=function(xt,Ct){c.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u5B9E\u8BAD\u5417\uFF1F",onOk:function(){}})},vt=function(xt){c.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u7AE0\u8282\u5417\uFF1F",onOk:function(){var Ct=Object(l.a)(w.a.mark(function Je(){return w.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:case"end":return Oe.stop()}},Je)}));function mt(){return Ct.apply(this,arguments)}return mt}()})},Ze=function(){var Zt=Object(l.a)(w.a.mark(function xt(Ct,mt){var Je;return w.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(pe({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!mt){Oe.next=7;break}return Oe.next=4,Object(U.D)({id:Ct});case 4:Oe.t0=Oe.sent,Oe.next=10;break;case 7:return Oe.next=9,Object(U.E)({id:Ct});case 9:Oe.t0=Oe.sent;case 10:if(Je=Oe.t0,pe({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Je!=null&&Je.game_identifier||Je!=null&&Je.identifier)){Oe.next=15;break}return Object(x.S)(mt?"/tasks/".concat(Je==null?void 0:Je.identifier,"/jupyter"):"/tasks/".concat(Je.game_identifier,"?subject_id=").concat(ft.pathId||"")),Oe.abrupt("return");case 15:(Je==null?void 0:Je.status)===-3?Object(x.q)():(Je==null?void 0:Je.status)===2?ke(Je==null?void 0:Je.message):(Je==null?void 0:Je.status)===3&&He(Je==null?void 0:Je.message);case 16:case"end":return Oe.stop()}},xt)}));return function(Ct,mt){return Zt.apply(this,arguments)}}(),ke=function Zt(xt){var Ct;xt=(Ct=xt)!==null&&Ct!==void 0&&Ct.includes(".json")?xt:"".concat(xt,".json"),c.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var mt=Object(l.a)(w.a.mark(function Qe(){var Oe,je;return w.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,Object(y.U)({url:xt});case 2:if(Oe=bt.sent,Oe){bt.next=5;break}return bt.abrupt("return");case 5:return A.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),bt.next=8,Object(U.E)({id:Oe.shixun_identifier});case 8:if(je=bt.sent,!(je!=null&&je.game_identifier)){bt.next=12;break}return Object(x.S)("/tasks/".concat(je.game_identifier)),bt.abrupt("return");case 12:(je==null?void 0:je.status)===2?Zt(je==null?void 0:je.message):(je==null?void 0:je.status)===3&&He(je==null?void 0:je.message);case 13:case"end":return bt.stop()}},Qe)}));function Je(){return mt.apply(this,arguments)}return Je}()})},He=function(xt){c.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",xt,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},we=function(xt){console.log("onDragEnter:",xt)},Le=function(){var Zt=Object(l.a)(w.a.mark(function xt(Ct){var mt,Je,Qe,Oe,je,St,bt,Dt,Qt;return w.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:if(console.log("onDrop:",Ct),mt=Ct.node.props.eventKey,Je=Ct.dragNode.props.eventKey,Qe=Ct.node.props.pos.split("-"),Oe=Ct.dropPosition-Number(Qe[Qe.length-1]),!(Qe.length>2&&!Ct.node.dragOverGapBottom&&!Ct.node.dragOverGapTop)){Gt.next=7;break}return Gt.abrupt("return",!1);case 7:if(!(Ct.node.dragOver&&Ct.dragNodesKeys.length>1)){Gt.next=9;break}return Gt.abrupt("return",!1);case 9:if(!(Qe.length>2&&Ct.dragNodesKeys.length>1)){Gt.next=11;break}return Gt.abrupt("return",!1);case 11:return je=function kt(fn,mn,Tr){for(var Mr=0;Mr0&&Ct.node.props.expanded&&Oe===1?je(St,mt,function(kt){kt.children=kt.children||[],kt.children.unshift(bt)}):(je(St,mt,function(kt,fn,mn){Dt=mn,Qt=fn}),Oe===-1?Dt.splice(Qt,0,bt):Dt.splice(Qt+1,0,bt)):je(St,mt,function(kt){kt.children=kt.children||[],kt.children.unshift(bt)}),Gt.next=17,ge({stage_id:Me.stage_id,list:St});case 17:Pe(St,0,0,!0),console.log("data:",St),jt(Object(d.a)(St)),he([].concat(Object(d.a)(et),[Ct.node.key]));case 21:case"end":return Gt.stop()}},xt)}));return function(Ct){return Zt.apply(this,arguments)}}(),Pe=function Zt(xt,Ct,mt,Je){Ct=Ct||0,xt.map(function(Qe,Oe){try{var je;return Qe.key2=Ct+1+"-"+(Oe+1),Qe.key3=Me.index+1+"-"+(Oe+1),Qe.title="",Je||(Qe.key=Ct+1+"-"+(Oe+1)),Ct?Qe.index=mt+"-"+(Oe+1):Qe.index=Qe.key3,(je=Qe.children)!==null&&je!==void 0&&je.length&&(Ne.push(Qe.key2),Zt(Qe.children,Qe.key2,Qe.index,Je)),Qe}catch(St){}})},We=function(xt){var Ct=xt.learning_status,mt=xt.name,Je=(Ct==null?void 0:Ct[0])==="can"&&(Ct==null?void 0:Ct[1])==="try";return Je?C.a.createElement("div",{className:S.a.learn},C.a.createElement("span",{className:S.a.name},mt),C.a.createElement("span",{className:S.a.sign},"\u514D\u8D39\u8BD5\u5B66")):mt},Xe=function(xt){if(se!=="All")return;et.includes(xt)?he(et.filter(function(Ct){return Ct!=xt})):he(et.concat(xt))},gt=function(){var Zt=Object(l.a)(w.a.mark(function xt(Ct){return w.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(Object(K.e)(pe,!0)){Je.next=2;break}return Je.abrupt("return");case 2:if(!(Ct!=null&&Ct.need_authorize)){Je.next=5;break}return Object(K.a)(!1),Je.abrupt("return");case 5:if(!(Et!=null&&Et.course_id)){Je.next=8;break}return Je.next=8,Object(m.K)({id:Et==null?void 0:Et.course_id});case 8:Ze(Ct.identifier,Ct.is_jupyter||Ct.is_jupyter_lab);case 9:case"end":return Je.stop()}},xt)}));return function(Ct){return Zt.apply(this,arguments)}}(),Lt=function(){var Zt=Object(l.a)(w.a.mark(function xt(Ct){var mt,Je,Qe,Oe,je,St;return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(Object(K.e)(pe)){Dt.next=2;break}return Dt.abrupt("return");case 2:if(!(!((mt=le.userInfo)!==null&&mt!==void 0&&mt.admin)&&!((Je=le.userInfo)!==null&&Je!==void 0&&Je.business)&&!Ct.can_view&&Ct.item_type!=="Attachment")){Dt.next=4;break}return Dt.abrupt("return",c.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:C.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")}));case 4:Ct.link&&Object(g.n)({is_f:1,id:Ct.id,point:0,total:0}),je=Me!=null&&Me.course_id?"course_id=".concat(Me==null?void 0:Me.course_id):"subject_id=".concat(ft.pathId||Me.subject_id),St=Ct==null||((Qe=Ct.name)===null||Qe===void 0)?void 0:Qe.substr(Ct==null||((Oe=Ct.name)===null||Oe===void 0)?void 0:Oe.lastIndexOf(".")),St.toUpperCase()===".ZIP"?Object(x.v)(Ct.name,$.a.API_SERVER+Ct.url):Object(x.S)(Ct.link||"/video/".concat(Ct.id,"?").concat(je));case 8:case"end":return Dt.stop()}},xt)}));return function(Ct){return Zt.apply(this,arguments)}}(),en=function(xt){var Ct;return xt.item_type==="Shixun"?xt.is_all_choice?Ct=C.a.createElement(a.a,{title:"\u9009\u62E9\u9898"},C.a.createElement("i",{className:"iconfont icon-xuanzeti3 c-lake-blue font20"})):Ct=C.a.createElement(a.a,{title:"\u5B9E\u8BAD\u9898"},C.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"})):xt.item_type==="VideoItem"?Ct=C.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"}):xt.item_type==="StageCatalog"?Ct=C.a.createElement("i",{className:"iconfont icon-kongbai c-brilliant-blue font20"}):Ct=C.a.createElement("i",{className:"iconfont icon-kejian1 c-cyan-blue font20"}),Ct;xt.item_type==="Shixun"||xt.item_type==="StageCatalog"};return C.a.createElement(C.a.Fragment,null,C.a.createElement(Q.a,{className:S.a.tree,disabled:Me.disabled,expandedKeys:Object(d.a)(et),draggable:!0,onDragEnter:we,onDrop:Le,onExpand:Xe,blockNode:!0,titleRender:function(xt){var Ct,mt,Je,Qe=xt;if(Qe.item_type!==se&&se!=="All")return null;var Oe=xt.index.slice(0,1)==="1",je=(xt==null||((Ct=xt.learning_status)===null||Ct===void 0)?void 0:Ct[0])==="can";return C.a.createElement(k.a,{align:"middle",className:"font14",onClick:function(){return Xe(Qe.key)}},C.a.createElement(n.a,{flex:"30px"},en(xt)),C.a.createElement(n.a,{flex:"1",className:"c-grey-333"},Me.cust_seq&&C.a.createElement("span",{className:"mr10"},xt.index),xt.item_type!=="Attachment"&&We(xt),xt.item_type==="Attachment"&&C.a.createElement("a",{target:"_blank",onClick:Object(l.a)(w.a.mark(function St(){var bt;return w.a.wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:if(Object(K.e)(pe)){Qt.next=2;break}return Qt.abrupt("return");case 2:if(!(Et!=null&&Et.course_id)){Qt.next=6;break}return Qt.next=5,Object(m.K)({id:Et==null?void 0:Et.course_id});case 5:bt=Qt.sent;case 6:Qt.t0=xt.item_type,Qt.next=Qt.t0==="Attachment"?9:Qt.t0==="VideoItem"?11:Qt.t0==="Shixun"?13:15;break;case 9:return Lt(Qe),Qt.abrupt("break",15);case 11:return Lt(xt),Qt.abrupt("break",15);case 13:return gt(xt),Qt.abrupt("break",15);case 15:case"end":return Qt.stop()}},St)}))},xt.name),xt.item_type==="Shixun"&&xt.is_unity_3d&&C.a.createElement("span",{style:{background:"#a300d8",color:"#fff",borderRadius:"13px",marginLeft:"5px",width:"68px",height:"20px",display:"inline-block",textAlign:"center",fontSize:"12px"}},"\u865A\u62DF\u4EFF\u771F"),xt.item_type==="Shixun"&&xt.is_jupyter_lab&&C.a.createElement("span",{style:{background:"#ff6802",color:"#fff",borderRadius:"13px",marginLeft:"5px",width:"76px",height:"20px",display:"inline-block",textAlign:"center",fontSize:"12px"}},"JupyterLab"),xt.item_type==="Shixun"&&xt.is_jupyter&&C.a.createElement("span",{style:{background:"#ff6802",color:"#fff",borderRadius:"13px",marginLeft:"5px",width:"112px",height:"20px",display:"inline-block",textAlign:"center",fontSize:"12px"}},"Jupyter Notebook"),!!((mt=xt.schools)!==null&&mt!==void 0&&mt.length)&&C.a.createElement(a.a,{title:"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},C.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 ml10 c-orange",style:{transform:"translateY(1px)",display:"inline-block"}})),xt.item_type==="Shixun"&&!!(xt!=null&&xt.finished_challenges_count)&&C.a.createElement(a.a,{title:"\u5B8C\u6210\u5EA6:".concat(Math.round((xt==null?void 0:xt.finished_challenges_count)/(xt==null?void 0:xt.challenges_count)*100),"%")},C.a.createElement("i",{className:"iconfont icon-a-wanchengdu100 ml10 ".concat((xt==null?void 0:xt.finished_challenges_count)-(xt==null?void 0:xt.challenges_count)===0?"c-light-green":"c-grey-333"),style:{transform:"translateY(1px)",display:"inline-block"}}))),!Me.disabled&&C.a.createElement("aside",{style:{color:"#0152d9",fontSize:"14px",marginRight:"20px"}},"\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u9879\u76EE\u663E\u793A\u987A\u5E8F"),C.a.createElement(n.a,{className:"tr"},(Qe.item_type==="VideoItem"||(Qe==null?void 0:Qe.item_type)==="Attachment"||(Qe==null?void 0:Qe.item_type)==="StageCatalog")&&!Me.disabled&&C.a.createElement(a.a,{title:"\u7F16\u8F91"},C.a.createElement("span",{onClick:function(){Me.editVidoItem(Object(M.a)({stage_id:Me.stage_id},Qe))},style:{color:"#ccc",marginRight:"10px"}},C.a.createElement(h.a,null))),!Me.disabled&&C.a.createElement(C.a.Fragment,null,C.a.createElement(a.a,{title:"\u5220\u9664"},C.a.createElement("span",{onClick:function(){Me.deleteStages({id:Qe.stage_item_id,stage_id:Me.stage_id})},className:"iconfont icon-shanchu c-grey-c"}))),Me.showVideoPlay&&Me.disabled&&Qe.item_type==="VideoItem"&&je&&C.a.createElement("aside",null,ae&&C.a.createElement(O.a,{className:"mr10",type:"primary",onClick:Object(l.a)(w.a.mark(function St(){return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(Object(K.e)(pe)){Dt.next=2;break}return Dt.abrupt("return");case 2:pe({type:"shixunsDetail/setActionTabs",payload:{key:"Stage-SendModal",params:{id:Qe.stage_item_id,title:"\u89C6\u9891"}}});case 3:case"end":return Dt.stop()}},St)}))},"\u53D1\u9001"),C.a.createElement(O.a,{type:"primary",onClick:Object(l.a)(w.a.mark(function St(){return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:Lt(Qe);case 1:case"end":return Dt.stop()}},St)}))},Qe.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(Qe.allow_visit||Qe.to_be_built||!Qe.shixun_status)&&Me.disabled&&Qe.item_type==="Shixun"&&je&&C.a.createElement("aside",null,ae&&!Qe.shixun_status&&C.a.createElement(O.a,{className:"ml10",type:"primary",onClick:Object(l.a)(w.a.mark(function St(){return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(Object(K.e)(pe)){Dt.next=2;break}return Dt.abrupt("return");case 2:pe({type:"shixunsDetail/setActionTabs",payload:{key:"Stage-SendModal",params:{id:Qe.stage_item_id,title:"\u5B9E\u8BAD",is_jupyter:Qe==null?void 0:Qe.is_jupyter,identifier:Qe==null?void 0:Qe.identifier}}});case 3:case"end":return Dt.stop()}},St)}))},"\u53D1\u9001"),C.a.createElement(O.a,{className:"ml10",type:"primary",onClick:Object(l.a)(w.a.mark(function St(){return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(Object(K.e)(pe)){Dt.next=2;break}return Dt.abrupt("return");case 2:if(!(Et!=null&&Et.course_id)){Dt.next=5;break}return Dt.next=5,Object(m.K)({id:Et==null?void 0:Et.course_id});case 5:window.open("/shixuns/".concat(Qe.identifier,"/challenges"));case 6:case"end":return Dt.stop()}},St)}))},"\u67E5\u770B\u8BE6\u60C5"),!Qe.shixun_status&&C.a.createElement(O.a,{className:"ml10",type:"primary",onClick:Object(l.a)(w.a.mark(function St(){return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:gt(Qe);case 1:case"end":return Dt.stop()}},St)}))},Qe!=null&&Qe.need_authorize?"\u9700\u6388\u6743":xt!=null&&xt.finished_challenges_count?(xt==null?void 0:xt.finished_challenges_count)-(xt==null?void 0:xt.challenges_count)===0?"\u518D\u6B21\u5B9E\u6218":"\u7EE7\u7EED\u5B9E\u6218":"\u5F00\u59CB\u5B9E\u6218")),Me.disabled&&Qe.shixun_status==="\u6682\u672A\u516C\u5F00"&&C.a.createElement("span",{className:"".concat(S.a.color204," ml5")},"\u6682\u672A\u53D1\u5E03"),Qe.shixun_status==="\u5DF2\u5220\u9664"&&C.a.createElement("span",{className:"".concat(S.a.color204," ml5")},"\u5DF2\u5220\u9664"),Me.disabled&&Qe.item_type==="Shixun"&&!!Qe.challenges_count&&C.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",Qe.challenges_count),se==="All"&&!!((Je=xt.children)!==null&&Je!==void 0&&Je.length)&&C.a.createElement("span",{className:"ml10"},et.includes(xt.key)?C.a.createElement(B.a,null):C.a.createElement(z.a,null))))},treeData:Ut}))};ee.a=Object(s.a)(function(Ae){var ce=Ae.pathsDetail,ie=Ae.loading,ye=Ae.user,le=Ae.globalSetting;return{pathsDetail:ce,globalSetting:le,user:ye,loading:ie.effects}})(fe)},ji0R:function(Be,ee,v){Be.exports=v.p+"static/douyu.3e6df9ee.jpg"},juDX:function(Be,ee,v){v("P47w");var Z=v("aX58"),Q=Z.registerPainter,I=v("3CBa");Q("svg",I)},k3GJ:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return gl});var Z=v("rePB"),Q=v("ODXe"),I=v("Ff2n"),k=v("VTBJ"),_=v("q1tI"),O=v("TSYQ"),M=v.n(O),T=v("Zm9Q"),n=v("6cGi"),p=v("KQm4"),a=v("xEkU"),t=v.n(a),A=v("t23M");function l($e){var pt=Object(_.useRef)(),wt=Object(_.useRef)(!1);function nt(){for(var Te=arguments.length,Ge=new Array(Te),Re=0;ReMt&&(qe=Mt-lt),Object(_.useMemo)(function(){if(!Ge.length)return[0,0];for(var Bt=Ge.length,$t=Bt,cn=0;cnht+qe){$t=cn-1;break}}for(var _n=0,rn=Bt-1;rn>=0;rn-=1){var Ht=$e.get(Ge[rn].key)||E;if(Ht[Tt]1&&arguments[1]!==void 0?arguments[1]:!1,nt=pt&&typeof pt.getBoundingClientRect=="function"&&pt.getBoundingClientRect().width;if(nt){if(wt){var Te=getComputedStyle(pt),Ge=Te.marginLeft,Re=Te.marginRight;nt+=+Ge.replace("px","")+ +Re.replace("px","")}nt=+nt.toFixed(6)}return nt||0},Ue=function(pt,wt,nt){pt&&Object(N.a)(pt.style)==="object"&&(pt.style[wt]=nt)},Ne=function(){return ae.any},ct=v("bdgK"),ft=v("i8i4"),Ot=v.n(ft),dt=v("wgJM"),Ut=v("l4aY"),jt=v("m+aA"),ze=v("c+Xe"),Ve=v("zT1h"),Et=v("QC+M");function Rt($e,pt,wt){return wt?$e[0]===pt[0]:$e[0]===pt[0]&&$e[1]===pt[1]}function ut($e,pt,wt){var nt=$e[pt]||{};return Object(k.a)(Object(k.a)({},nt),wt)}function vt($e,pt,wt,nt){for(var Te=wt.points,Ge=Object.keys($e),Re=0;Re1&&arguments[1]!==void 0?arguments[1]:2;pt();var Ge=Object(dt.a)(function(){Te<=1?nt({isCanceled:function(){return Ge!==$e.current}}):wt(nt,Te-1)});$e.current=Ge}return _.useEffect(function(){return function(){pt()}},[]),[wt,pt]},Tr=[bt,Dt,Qt,_t],Mr=!1,kr=!0;function Un($e){return $e===Qt||$e===_t}var Ra=function($e,pt){var wt=_.useState(St),nt=Object(Q.a)(wt,2),Te=nt[0],Ge=nt[1],Re=mn(),it=Object(Q.a)(Re,2),st=it[0],Tt=it[1];function ht(){Ge(bt)}return fn(function(){if(Te!==St&&Te!==_t){var Mt=Tr.indexOf(Te),tn=Tr[Mt+1],lt=pt(Te);lt===Mr?Ge(tn):st(function(qe){function Bt(){if(qe.isCanceled())return;Ge(tn)}lt===!0?Bt():Promise.resolve(lt).then(Bt)})}},[$e,Te]),_.useEffect(function(){return function(){Tt()}},[]),[ht,Te]},Xr=function($e){var pt=Object(_.useRef)(),wt=Object(_.useRef)($e);wt.current=$e;var nt=_.useCallback(function(Re){wt.current(Re)},[]);function Te(Re){Re&&(Re.removeEventListener(Ct,nt),Re.removeEventListener(xt,nt))}function Ge(Re){pt.current&&pt.current!==Re&&Te(pt.current),Re&&Re!==pt.current&&(Re.addEventListener(Ct,nt),Re.addEventListener(xt,nt),pt.current=Re)}return _.useEffect(function(){return function(){Te(pt.current)}},[]),[Ge,Te]};function aa($e,pt,wt,nt){var Te=nt.motionEnter,Ge=Te===void 0?!0:Te,Re=nt.motionAppear,it=Re===void 0?!0:Re,st=nt.motionLeave,Tt=st===void 0?!0:st,ht=nt.motionDeadline,Mt=nt.motionLeaveImmediately,tn=nt.onAppearPrepare,lt=nt.onEnterPrepare,qe=nt.onLeavePrepare,Bt=nt.onAppearStart,$t=nt.onEnterStart,cn=nt.onLeaveStart,Wt=nt.onAppearActive,_n=nt.onEnterActive,rn=nt.onLeaveActive,Ht=nt.onAppearEnd,An=nt.onEnterEnd,qt=nt.onLeaveEnd,En=nt.onVisibleChanged,kn=Gt(),Yt=Object(Q.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=Gt(Je),an=Object(Q.a)(xn,2),Vt=an[0],Sn=an[1],hr=Gt(null),pn=Object(Q.a)(hr,2),Dn=pn[0],Nn=pn[1],Gn=Object(_.useRef)(!1),yn=Object(_.useRef)(null),Kn=Object(_.useRef)(!1),or=Object(_.useRef)(null);function gr(){var Yn=wt();return Yn||or.current}var Ur=Object(_.useRef)(!1);function er(Yn){var vn=gr();if(Yn&&!Yn.deadline&&Yn.target!==vn)return;var yr;Vt===Qe&&Ur.current?yr=Ht==null?void 0:Ht(vn,Yn):Vt===Oe&&Ur.current?yr=An==null?void 0:An(vn,Yn):Vt===je&&Ur.current&&(yr=qt==null?void 0:qt(vn,Yn)),yr!==!1&&!Kn.current&&(Sn(Je),Nn(null))}var rr=Xr(er),Lr=Object(Q.a)(rr,1),Er=Lr[0],_r=_.useMemo(function(){var Yn,vn,yr;switch(Vt){case"appear":return Yn={},Object(Z.a)(Yn,bt,tn),Object(Z.a)(Yn,Dt,Bt),Object(Z.a)(Yn,Qt,Wt),Yn;case"enter":return vn={},Object(Z.a)(vn,bt,lt),Object(Z.a)(vn,Dt,$t),Object(Z.a)(vn,Qt,_n),vn;case"leave":return yr={},Object(Z.a)(yr,bt,qe),Object(Z.a)(yr,Dt,cn),Object(Z.a)(yr,Qt,rn),yr;default:return{}}},[Vt]),sa=Ra(Vt,function(Yn){if(Yn===bt){var vn=_r[bt];return vn?vn(gr()):Mr}if(vr in _r){var yr;Nn(((yr=_r[vr])===null||yr===void 0?void 0:yr.call(_r,gr(),null))||null)}return vr===Qt&&(Er(gr()),ht>0&&(clearTimeout(yn.current),yn.current=setTimeout(function(){er({deadline:!0})},ht))),kr}),ta=Object(Q.a)(sa,2),tr=ta[0],vr=ta[1],ja=Un(vr);Ur.current=ja,fn(function(){ln(pt);var Yn=Gn.current;if(Gn.current=!0,!$e)return;var vn;!Yn&&pt&&it&&(vn=Qe),Yn&&pt&&Ge&&(vn=Oe),(Yn&&!pt&&Tt||!Yn&&Mt&&!pt&&Tt)&&(vn=je),vn&&(Sn(vn),tr())},[pt]),Object(_.useEffect)(function(){(Vt===Qe&&!it||Vt===Oe&&!Ge||Vt===je&&!Tt)&&Sn(Je)},[it,Ge,Tt]),Object(_.useEffect)(function(){return function(){clearTimeout(yn.current),Kn.current=!0}},[]),Object(_.useEffect)(function(){wn!==void 0&&Vt===Je&&(En==null||En(wn))},[wn,Vt]);var ia=Dn;return _r[bt]&&vr===Dt&&(ia=Object(k.a)({transition:"none"},ia)),[Vt,vr,ia,wn!=null?wn:pt]}var Kr=function($e){Object(s.a)(wt,$e);var pt=Object(h.a)(wt);function wt(){return Object(P.a)(this,wt),pt.apply(this,arguments)}return Object(C.a)(wt,[{key:"render",value:function(){return this.props.children}}]),wt}(_.Component),_a=Kr;function di($e){var pt=$e;Object(N.a)($e)==="object"&&(pt=$e.transitionSupport);function wt(Te){return!!(Te.motionName&&pt)}var nt=_.forwardRef(function(Te,Ge){var Re=Te.visible,it=Re===void 0?!0:Re,st=Te.removeOnLeave,Tt=st===void 0?!0:st,ht=Te.forceRender,Mt=Te.children,tn=Te.motionName,lt=Te.leavedClassName,qe=Te.eventProps,Bt=wt(Te),$t=Object(_.useRef)(),cn=Object(_.useRef)();function Wt(){try{return Object(jt.a)($t.current||cn.current)}catch(Sn){return null}}var _n=aa(Bt,it,Wt,Te),rn=Object(Q.a)(_n,4),Ht=rn[0],An=rn[1],qt=rn[2],En=rn[3],kn=_.useRef(En);En&&(kn.current=!0);var Yt=Object(_.useRef)(Ge);Yt.current=Ge;var wn=_.useCallback(function(Sn){$t.current=Sn,Object(ze.b)(Yt.current,Sn)},[]),ln,xn=Object(k.a)(Object(k.a)({},qe),{},{visible:it});if(!Mt)ln=null;else if(Ht===Je||!wt(Te))En?ln=Mt(Object(k.a)({},xn),wn):!Tt&&kn.current?ln=Mt(Object(k.a)(Object(k.a)({},xn),{},{className:lt}),wn):ht?ln=Mt(Object(k.a)(Object(k.a)({},xn),{},{style:{display:"none"}}),wn):ln=null;else{var an,Vt;An===bt?Vt="prepare":Un(An)?Vt="active":An===Dt&&(Vt="start"),ln=Mt(Object(k.a)(Object(k.a)({},xn),{},{className:M()(mt(tn,Ht),(an={},Object(Z.a)(an,mt(tn,"".concat(Ht,"-").concat(Vt)),Vt),Object(Z.a)(an,tn,typeof tn=="string"),an)),style:qt}),wn)}return _.createElement(_a,{ref:cn},ln)});return nt.displayName="CSSMotion",nt}var Ei=di(Zt),_e="add",Ie="keep",Ye="remove",yt="removed";function Xt($e){var pt;return $e&&Object(N.a)($e)==="object"&&"key"in $e?pt=$e:pt={key:$e},Object(k.a)(Object(k.a)({},pt),{},{key:String(pt.key)})}function sn(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $e.map(Xt)}function re(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],wt=[],nt=0,Te=pt.length,Ge=sn($e),Re=sn(pt);Ge.forEach(function(Tt){for(var ht=!1,Mt=nt;Mt1});return st.forEach(function(Tt){wt=wt.filter(function(ht){var Mt=ht.key,tn=ht.status;return Mt!==Tt||tn!==Ye}),wt.forEach(function(ht){ht.key===Tt&&(ht.status=Ie)})}),wt}var W=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function V($e){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ei,wt=function(nt){Object(s.a)(Ge,nt);var Te=Object(h.a)(Ge);function Ge(){var Re;return Object(P.a)(this,Ge),Re=Te.apply(this,arguments),Re.state={keyEntities:[]},Re.removeKey=function(it){Re.setState(function(st){var Tt=st.keyEntities;return{keyEntities:Tt.map(function(ht){return ht.key!==it?ht:Object(k.a)(Object(k.a)({},ht),{},{status:yt})})}})},Re}return Object(C.a)(Ge,[{key:"render",value:function(){var it=this,st=this.state.keyEntities,Tt=this.props,ht=Tt.component,Mt=Tt.children,tn=Tt.onVisibleChanged,lt=Object(I.a)(Tt,["component","children","onVisibleChanged"]),qe=ht||_.Fragment,Bt={};return W.forEach(function($t){Bt[$t]=lt[$t],delete lt[$t]}),delete lt.keys,_.createElement(qe,lt,st.map(function($t){var cn=$t.status,Wt=Object(I.a)($t,["status"]),_n=cn===_e||cn===Ie;return _.createElement(pt,Object(w.a)({},Bt,{key:Wt.key,visible:_n,eventProps:Wt,onVisibleChanged:function(Ht){tn==null||tn(Ht,{key:Wt.key}),Ht||it.removeKey(Wt.key)}}),Mt)}))}}],[{key:"getDerivedStateFromProps",value:function(it,st){var Tt=it.keys,ht=st.keyEntities,Mt=sn(Tt),tn=re(ht,Mt);return{keyEntities:tn.filter(function(lt){var qe=ht.find(function(Bt){var $t=Bt.key;return lt.key===$t});return!(qe&&qe.status===yt&<.status===Ye)})}}}]),Ge}(_.Component);return wt.defaultProps={component:"div"},wt}var ne=V(Zt),ve=Ei;function oe($e){var pt=$e.prefixCls,wt=$e.motion,nt=$e.animation,Te=$e.transitionName;return wt||(nt?{motionName:"".concat(pt,"-").concat(nt)}:Te?{motionName:Te}:null)}function tt($e){var pt=$e.prefixCls,wt=$e.visible,nt=$e.zIndex,Te=$e.mask,Ge=$e.maskMotion,Re=$e.maskAnimation,it=$e.maskTransitionName;if(!Te)return null;var st={};return(Ge||it||Re)&&(st=Object(k.a)({motionAppear:!0},oe({motion:Ge,prefixCls:pt,transitionName:it,animation:Re}))),_.createElement(ve,Object(w.a)({},st,{visible:wt,removeOnLeave:!0}),function(Tt){var ht=Tt.className;return _.createElement("div",{style:{zIndex:nt},className:M()("".concat(pt,"-mask"),ht)})})}var Kt=v("9mu1"),dn=v("o0o1"),Cn=v.n(dn),Jt=v("HaE+"),Vn=["measure","align",null,"motion"],Xn=function($e,pt){var wt=Object(_.useState)(null),nt=Object(Q.a)(wt,2),Te=nt[0],Ge=nt[1],Re=Object(_.useRef)(),it=Object(_.useRef)(!1);function st(Mt){it.current||Ge(Mt)}function Tt(){dt.a.cancel(Re.current)}function ht(Mt){Tt(),Re.current=Object(dt.a)(function(){st(function(tn){switch(Te){case"align":return"motion";case"motion":return"stable";default:}return tn}),Mt==null||Mt()})}return Object(_.useEffect)(function(){st("measure")},[$e]),Object(_.useEffect)(function(){switch(Te){case"measure":pt();break;default:}Te&&(Re.current=Object(dt.a)(Object(Jt.a)(Cn.a.mark(function Mt(){var tn,lt;return Cn.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:tn=Vn.indexOf(Te),lt=Vn[tn+1],lt&&tn!==-1&&st(lt);case 3:case"end":return Bt.stop()}},Mt)}))))},[Te]),Object(_.useEffect)(function(){return function(){it.current=!0,Tt()}},[]),[Te,ht]},lr=function($e){var pt=_.useState({width:0,height:0}),wt=Object(Q.a)(pt,2),nt=wt[0],Te=wt[1];function Ge(it){Te({width:it.offsetWidth,height:it.offsetHeight})}var Re=_.useMemo(function(){var it={};if($e){var st=nt.width,Tt=nt.height;$e.indexOf("height")!==-1&&Tt?it.height=Tt:$e.indexOf("minHeight")!==-1&&Tt&&(it.minHeight=Tt),$e.indexOf("width")!==-1&&st?it.width=st:$e.indexOf("minWidth")!==-1&&st&&(it.minWidth=st)}return it},[$e,nt]);return[Re,Ge]},Rr=_.forwardRef(function($e,pt){var wt=$e.visible,nt=$e.prefixCls,Te=$e.className,Ge=$e.style,Re=$e.children,it=$e.zIndex,st=$e.stretch,Tt=$e.destroyPopupOnHide,ht=$e.forceRender,Mt=$e.align,tn=$e.point,lt=$e.getRootDomNode,qe=$e.getClassNameFromAlign,Bt=$e.onAlign,$t=$e.onMouseEnter,cn=$e.onMouseLeave,Wt=$e.onMouseDown,_n=$e.onTouchStart,rn=Object(_.useRef)(),Ht=Object(_.useRef)(),An=Object(_.useState)(),qt=Object(Q.a)(An,2),En=qt[0],kn=qt[1],Yt=lr(st),wn=Object(Q.a)(Yt,2),ln=wn[0],xn=wn[1];function an(){st&&xn(lt())}var Vt=Xn(wt,an),Sn=Object(Q.a)(Vt,2),hr=Sn[0],pn=Sn[1],Dn=Object(_.useRef)();function Nn(){return tn||lt}function Gn(){var rr;(rr=rn.current)===null||rr===void 0||rr.forceAlign()}function yn(rr,Lr){var Er=qe(Lr);En!==Er&&kn(Er),hr==="align"&&(En!==Er?Promise.resolve().then(function(){Gn()}):pn(function(){var _r;(_r=Dn.current)===null||_r===void 0||_r.call(Dn)}),Bt==null||Bt(rr,Lr))}var Kn=Object(k.a)({},oe($e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(rr){var Lr=Kn[rr];Kn[rr]=function(Er,_r){return pn(),Lr==null?void 0:Lr(Er,_r)}});function or(){return new Promise(function(rr){Dn.current=rr})}_.useEffect(function(){!Kn.motionName&&hr==="motion"&&pn()},[Kn.motionName,hr]),_.useImperativeHandle(pt,function(){return{forceAlign:Gn,getElement:function(){return Ht.current}}});var gr=Object(k.a)(Object(k.a)({},ln),{},{zIndex:it,opacity:hr==="motion"||hr==="stable"||!wt?void 0:0,pointerEvents:hr==="stable"?void 0:"none"},Ge),Ur=!0;(Mt==null?void 0:Mt.points)&&(hr==="align"||hr==="stable")&&(Ur=!1);var er=Re;return _.Children.count(Re)>1&&(er=_.createElement("div",{className:"".concat(nt,"-content")},Re)),_.createElement(ve,Object(w.a)({visible:wt,ref:Ht,leavedClassName:"".concat(nt,"-hidden")},Kn,{onAppearPrepare:or,onEnterPrepare:or,removeOnLeave:Tt,forceRender:ht}),function(rr,Lr){var Er=rr.className,_r=rr.style,sa=M()(nt,Te,En,Er);return _.createElement(Kt.a,{target:Nn(),key:"popup",ref:rn,monitorWindowResize:!0,disabled:Ur,align:Mt,onAlign:yn},_.createElement("div",{ref:Lr,className:sa,onMouseEnter:$t,onMouseLeave:cn,onMouseDownCapture:Wt,onTouchStartCapture:_n,style:Object(k.a)(Object(k.a)({},_r),gr)},er))})});Rr.displayName="PopupInner";var qr=Rr,zr=_.forwardRef(function($e,pt){var wt=$e.prefixCls,nt=$e.visible,Te=$e.zIndex,Ge=$e.children,Re=$e.mobile;Re=Re===void 0?{}:Re;var it=Re.popupClassName,st=Re.popupStyle,Tt=Re.popupMotion,ht=Tt===void 0?{}:Tt,Mt=Re.popupRender,tn=_.useRef();_.useImperativeHandle(pt,function(){return{forceAlign:function(){},getElement:function(){return tn.current}}});var lt=Object(k.a)({zIndex:Te},st),qe=Ge;return _.Children.count(Ge)>1&&(qe=_.createElement("div",{className:"".concat(wt,"-content")},Ge)),Mt&&(qe=Mt(qe)),_.createElement(ve,Object(w.a)({visible:nt,ref:tn,removeOnLeave:!0},ht),function(Bt,$t){var cn=Bt.className,Wt=Bt.style,_n=M()(wt,it,cn);return _.createElement("div",{ref:$t,className:_n,style:Object(k.a)(Object(k.a)({},Wt),lt)},qe)})});zr.displayName="MobilePopupInner";var Ca=zr,Dr=["visible","mobile"],ya=_.forwardRef(function($e,pt){var wt=$e.visible,nt=$e.mobile,Te=Object(I.a)($e,Dr),Ge=Object(_.useState)(wt),Re=Object(Q.a)(Ge,2),it=Re[0],st=Re[1],Tt=Object(_.useState)(!1),ht=Object(Q.a)(Tt,2),Mt=ht[0],tn=ht[1],lt=Object(k.a)(Object(k.a)({},Te),{},{visible:it});Object(_.useEffect)(function(){st(wt),wt&&nt&&tn(Ze())},[wt,nt]);var qe=Mt?_.createElement(Ca,Object(w.a)({},lt,{mobile:nt,ref:pt})):_.createElement(qr,Object(w.a)({},lt,{ref:pt}));return _.createElement("div",null,_.createElement(tt,lt),qe)});ya.displayName="Popup";var ka=ya,fi=_.createContext(null),Ka=fi;function qa(){}function Si(){return""}function pi($e){return $e?$e.ownerDocument:window.document}var ui=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function mi($e){var pt=function(wt){Object(s.a)(Te,wt);var nt=Object(h.a)(Te);function Te(Ge){var Re;Object(P.a)(this,Te),Re=nt.call(this,Ge),Re.popupRef=_.createRef(),Re.triggerRef=_.createRef(),Re.attachId=void 0,Re.clickOutsideHandler=void 0,Re.touchOutsideHandler=void 0,Re.contextMenuOutsideHandler1=void 0,Re.contextMenuOutsideHandler2=void 0,Re.mouseDownTimeout=void 0,Re.focusTime=void 0,Re.preClickTime=void 0,Re.preTouchTime=void 0,Re.delayTimer=void 0,Re.hasPopupMouseDown=void 0,Re.onMouseEnter=function(st){var Tt=Re.props.mouseEnterDelay;Re.fireEvents("onMouseEnter",st),Re.delaySetPopupVisible(!0,Tt,Tt?null:st)},Re.onMouseMove=function(st){Re.fireEvents("onMouseMove",st),Re.setPoint(st)},Re.onMouseLeave=function(st){Re.fireEvents("onMouseLeave",st),Re.delaySetPopupVisible(!1,Re.props.mouseLeaveDelay)},Re.onPopupMouseEnter=function(){Re.clearDelayTimer()},Re.onPopupMouseLeave=function(st){var Tt;if(st.relatedTarget&&!st.relatedTarget.setTimeout&&Object(Ut.a)((Tt=Re.popupRef.current)===null||Tt===void 0?void 0:Tt.getElement(),st.relatedTarget))return;Re.delaySetPopupVisible(!1,Re.props.mouseLeaveDelay)},Re.onFocus=function(st){Re.fireEvents("onFocus",st),Re.clearDelayTimer(),Re.isFocusToShow()&&(Re.focusTime=Date.now(),Re.delaySetPopupVisible(!0,Re.props.focusDelay))},Re.onMouseDown=function(st){Re.fireEvents("onMouseDown",st),Re.preClickTime=Date.now()},Re.onTouchStart=function(st){Re.fireEvents("onTouchStart",st),Re.preTouchTime=Date.now()},Re.onBlur=function(st){Re.fireEvents("onBlur",st),Re.clearDelayTimer(),Re.isBlurToHide()&&Re.delaySetPopupVisible(!1,Re.props.blurDelay)},Re.onContextMenu=function(st){st.preventDefault(),Re.fireEvents("onContextMenu",st),Re.setPopupVisible(!0,st)},Re.onContextMenuClose=function(){Re.isContextMenuToShow()&&Re.close()},Re.onClick=function(st){if(Re.fireEvents("onClick",st),Re.focusTime){var Tt;if(Re.preClickTime&&Re.preTouchTime?Tt=Math.min(Re.preClickTime,Re.preTouchTime):Re.preClickTime?Tt=Re.preClickTime:Re.preTouchTime&&(Tt=Re.preTouchTime),Math.abs(Tt-Re.focusTime)<20)return;Re.focusTime=0}Re.preClickTime=0,Re.preTouchTime=0,Re.isClickToShow()&&(Re.isClickToHide()||Re.isBlurToHide())&&st&&st.preventDefault&&st.preventDefault();var ht=!Re.state.popupVisible;(Re.isClickToHide()&&!ht||ht&&Re.isClickToShow())&&Re.setPopupVisible(!Re.state.popupVisible,st)},Re.onPopupMouseDown=function(){if(Re.hasPopupMouseDown=!0,clearTimeout(Re.mouseDownTimeout),Re.mouseDownTimeout=window.setTimeout(function(){Re.hasPopupMouseDown=!1},0),Re.context){var st;(st=Re.context).onPopupMouseDown.apply(st,arguments)}},Re.onDocumentClick=function(st){if(Re.props.mask&&!Re.props.maskClosable)return;var Tt=st.target,ht=Re.getRootDomNode(),Mt=Re.getPopupDomNode();(!Object(Ut.a)(ht,Tt)||Re.isContextMenuOnly())&&!Object(Ut.a)(Mt,Tt)&&!Re.hasPopupMouseDown&&Re.close()},Re.getRootDomNode=function(){var st=Re.props.getTriggerDOMNode;if(st)return st(Re.triggerRef.current);try{var Tt=Object(jt.a)(Re.triggerRef.current);if(Tt)return Tt}catch(ht){}return Ot.a.findDOMNode(Object(b.a)(Re))},Re.getPopupClassNameFromAlign=function(st){var Tt=[],ht=Re.props,Mt=ht.popupPlacement,tn=ht.builtinPlacements,lt=ht.prefixCls,qe=ht.alignPoint,Bt=ht.getPopupClassNameFromAlign;return Mt&&tn&&Tt.push(vt(tn,lt,st,qe)),Bt&&Tt.push(Bt(st)),Tt.join(" ")},Re.getComponent=function(){var st=Re.props,Tt=st.prefixCls,ht=st.destroyPopupOnHide,Mt=st.popupClassName,tn=st.onPopupAlign,lt=st.popupMotion,qe=st.popupAnimation,Bt=st.popupTransitionName,$t=st.popupStyle,cn=st.mask,Wt=st.maskAnimation,_n=st.maskTransitionName,rn=st.maskMotion,Ht=st.zIndex,An=st.popup,qt=st.stretch,En=st.alignPoint,kn=st.mobile,Yt=st.forceRender,wn=Re.state,ln=wn.popupVisible,xn=wn.point,an=Re.getPopupAlign(),Vt={};return Re.isMouseEnterToShow()&&(Vt.onMouseEnter=Re.onPopupMouseEnter),Re.isMouseLeaveToHide()&&(Vt.onMouseLeave=Re.onPopupMouseLeave),Vt.onMouseDown=Re.onPopupMouseDown,Vt.onTouchStart=Re.onPopupMouseDown,_.createElement(ka,Object(w.a)({prefixCls:Tt,destroyPopupOnHide:ht,visible:ln,point:En&&xn,className:Mt,align:an,onAlign:tn,animation:qe,getClassNameFromAlign:Re.getPopupClassNameFromAlign},Vt,{stretch:qt,getRootDomNode:Re.getRootDomNode,style:$t,mask:cn,zIndex:Ht,transitionName:Bt,maskAnimation:Wt,maskTransitionName:_n,maskMotion:rn,ref:Re.popupRef,motion:lt,mobile:kn,forceRender:Yt}),typeof An=="function"?An():An)},Re.attachParent=function(st){dt.a.cancel(Re.attachId);var Tt=Re.props,ht=Tt.getPopupContainer,Mt=Tt.getDocument,tn=Re.getRootDomNode(),lt;ht?(tn||ht.length===0)&&(lt=ht(tn)):lt=Mt(Re.getRootDomNode()).body,lt?lt.appendChild(st):Re.attachId=Object(dt.a)(function(){Re.attachParent(st)})},Re.getContainer=function(){var st=Re.props.getDocument,Tt=st(Re.getRootDomNode()).createElement("div");return Tt.style.position="absolute",Tt.style.top="0",Tt.style.left="0",Tt.style.width="100%",Re.attachParent(Tt),Tt},Re.setPoint=function(st){var Tt=Re.props.alignPoint;if(!Tt||!st)return;Re.setState({point:{pageX:st.pageX,pageY:st.pageY}})},Re.handlePortalUpdate=function(){Re.state.prevPopupVisible!==Re.state.popupVisible&&Re.props.afterPopupVisibleChange(Re.state.popupVisible)},Re.triggerContextValue={onPopupMouseDown:Re.onPopupMouseDown};var it;return"popupVisible"in Ge?it=!!Ge.popupVisible:it=!!Ge.defaultPopupVisible,Re.state={prevPopupVisible:it,popupVisible:it},ui.forEach(function(st){Re["fire".concat(st)]=function(Tt){Re.fireEvents(st,Tt)}}),Re}return Object(C.a)(Te,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Re=this.props,it=this.state;if(it.popupVisible){var st;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(st=Re.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ve.a)(st,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(st=st||Re.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ve.a)(st,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(st=st||Re.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ve.a)(st,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ve.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),dt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Re;return((Re=this.popupRef.current)===null||Re===void 0?void 0:Re.getElement())||null}},{key:"getPopupAlign",value:function(){var Re=this.props,it=Re.popupPlacement,st=Re.popupAlign,Tt=Re.builtinPlacements;return it&&Tt?ut(Tt,it,st):st}},{key:"setPopupVisible",value:function(Re,it){var st=this.props.alignPoint,Tt=this.state.popupVisible;this.clearDelayTimer(),Tt!==Re&&("popupVisible"in this.props||this.setState({popupVisible:Re,prevPopupVisible:Tt}),this.props.onPopupVisibleChange(Re)),st&&it&&Re&&this.setPoint(it)}},{key:"delaySetPopupVisible",value:function(Re,it,st){var Tt=this,ht=it*1e3;if(this.clearDelayTimer(),ht){var Mt=st?{pageX:st.pageX,pageY:st.pageY}:null;this.delayTimer=window.setTimeout(function(){Tt.setPopupVisible(Re,Mt),Tt.clearDelayTimer()},ht)}else this.setPopupVisible(Re,st)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Re){var it=this.props.children.props,st=this.props;return it[Re]&&st[Re]?this["fire".concat(Re)]:it[Re]||st[Re]}},{key:"isClickToShow",value:function(){var Re=this.props,it=Re.action,st=Re.showAction;return it.indexOf("click")!==-1||st.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Re=this.props.action;return Re==="contextMenu"||Re.length===1&&Re[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Re=this.props,it=Re.action,st=Re.showAction;return it.indexOf("contextMenu")!==-1||st.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Re=this.props,it=Re.action,st=Re.hideAction;return it.indexOf("click")!==-1||st.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Re=this.props,it=Re.action,st=Re.showAction;return it.indexOf("hover")!==-1||st.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Re=this.props,it=Re.action,st=Re.hideAction;return it.indexOf("hover")!==-1||st.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Re=this.props,it=Re.action,st=Re.showAction;return it.indexOf("focus")!==-1||st.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Re=this.props,it=Re.action,st=Re.hideAction;return it.indexOf("focus")!==-1||st.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Re;(Re=this.popupRef.current)===null||Re===void 0||Re.forceAlign()}}},{key:"fireEvents",value:function(Re,it){var st=this.props.children.props[Re];st&&st(it);var Tt=this.props[Re];Tt&&Tt(it)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Re=this.state.popupVisible,it=this.props,st=it.children,Tt=it.forceRender,ht=it.alignPoint,Mt=it.className,tn=it.autoDestroy,lt=_.Children.only(st),qe={key:"trigger"};this.isContextMenuToShow()?qe.onContextMenu=this.onContextMenu:qe.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(qe.onClick=this.onClick,qe.onMouseDown=this.onMouseDown,qe.onTouchStart=this.onTouchStart):(qe.onClick=this.createTwoChains("onClick"),qe.onMouseDown=this.createTwoChains("onMouseDown"),qe.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(qe.onMouseEnter=this.onMouseEnter,ht&&(qe.onMouseMove=this.onMouseMove)):qe.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?qe.onMouseLeave=this.onMouseLeave:qe.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(qe.onFocus=this.onFocus,qe.onBlur=this.onBlur):(qe.onFocus=this.createTwoChains("onFocus"),qe.onBlur=this.createTwoChains("onBlur"));var Bt=M()(lt&<.props&<.props.className,Mt);Bt&&(qe.className=Bt);var $t=Object(k.a)({},qe);Object(ze.c)(lt)&&($t.ref=Object(ze.a)(this.triggerRef,lt.ref));var cn=_.cloneElement(lt,$t),Wt;return(Re||this.popupRef.current||Tt)&&(Wt=_.createElement($e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Re&&tn&&(Wt=null),_.createElement(Ka.Provider,{value:this.triggerContextValue},cn,Wt)}}],[{key:"getDerivedStateFromProps",value:function(Re,it){var st=Re.popupVisible,Tt={};return st!==void 0&&it.popupVisible!==st&&(Tt.popupVisible=st,Tt.prevPopupVisible=it.popupVisible),Tt}}]),Te}(_.Component);return pt.contextType=Ka,pt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Si,getDocument:pi,onPopupVisibleChange:qa,afterPopupVisibleChange:qa,onPopupAlign:qa,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},pt}var _i=mi(Et.a),ai={adjustX:1,adjustY:1},Hi={topLeft:{points:["bl","tl"],overflow:ai,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ai,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ai,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ai,offset:[4,0]}},Yi={topLeft:{points:["bl","tl"],overflow:ai,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ai,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ai,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ai,offset:[4,0]}},$r=Hi,ua=0,Pr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ca=function(pt,wt,nt){var Te=xe(wt),Ge=pt.getState();pt.setState({defaultActiveFirst:Object(k.a)(Object(k.a)({},Ge.defaultActiveFirst),{},Object(Z.a)({},Te,nt))})},Jr=function($e){Object(s.a)(wt,$e);var pt=Object(h.a)(wt);function wt(nt){var Te;Object(P.a)(this,wt),Te=pt.call(this,nt),Te.onDestroy=function(ht){Te.props.onDestroy(ht)},Te.onKeyDown=function(ht){var Mt=ht.keyCode,tn=Te.menuInstance,lt=Te.props.store,qe=Te.getVisible();if(Mt===c.a.ENTER)return Te.onTitleClick(ht),ca(lt,Te.props.eventKey,!0),!0;if(Mt===c.a.RIGHT)return qe?tn.onKeyDown(ht):(Te.triggerOpenChange(!0),ca(lt,Te.props.eventKey,!0)),!0;if(Mt===c.a.LEFT){var Bt;if(qe)Bt=tn.onKeyDown(ht);else return;return Bt||(Te.triggerOpenChange(!1),Bt=!0),Bt}return qe&&(Mt===c.a.UP||Mt===c.a.DOWN)?tn.onKeyDown(ht):void 0},Te.onOpenChange=function(ht){Te.props.onOpenChange(ht)},Te.onPopupVisibleChange=function(ht){Te.triggerOpenChange(ht,ht?"mouseenter":"mouseleave")},Te.onMouseEnter=function(ht){var Mt=Te.props,tn=Mt.eventKey,lt=Mt.onMouseEnter,qe=Mt.store;ca(qe,Te.props.eventKey,!1),lt({key:tn,domEvent:ht})},Te.onMouseLeave=function(ht){var Mt=Te.props,tn=Mt.parentMenu,lt=Mt.eventKey,qe=Mt.onMouseLeave;tn.subMenuInstance=Object(b.a)(Te),qe({key:lt,domEvent:ht})},Te.onTitleMouseEnter=function(ht){var Mt=Te.props,tn=Mt.eventKey,lt=Mt.onItemHover,qe=Mt.onTitleMouseEnter;lt({key:tn,hover:!0}),qe({key:tn,domEvent:ht})},Te.onTitleMouseLeave=function(ht){var Mt=Te.props,tn=Mt.parentMenu,lt=Mt.eventKey,qe=Mt.onItemHover,Bt=Mt.onTitleMouseLeave;tn.subMenuInstance=Object(b.a)(Te),qe({key:lt,hover:!1}),Bt({key:lt,domEvent:ht})},Te.onTitleClick=function(ht){var Mt=Object(b.a)(Te),tn=Mt.props;if(tn.onTitleClick({key:tn.eventKey,domEvent:ht}),tn.triggerSubMenuAction==="hover")return;Te.triggerOpenChange(!Te.getVisible(),"click"),ca(tn.store,Te.props.eventKey,!1)},Te.onSubMenuClick=function(ht){typeof Te.props.onClick=="function"&&Te.props.onClick(Te.addKeyPath(ht))},Te.onSelect=function(ht){Te.props.onSelect(ht)},Te.onDeselect=function(ht){Te.props.onDeselect(ht)},Te.getPrefixCls=function(){return"".concat(Te.props.rootPrefixCls,"-submenu")},Te.getActiveClassName=function(){return"".concat(Te.getPrefixCls(),"-active")},Te.getDisabledClassName=function(){return"".concat(Te.getPrefixCls(),"-disabled")},Te.getSelectedClassName=function(){return"".concat(Te.getPrefixCls(),"-selected")},Te.getOpenClassName=function(){return"".concat(Te.props.rootPrefixCls,"-submenu-open")},Te.getVisible=function(){return Te.state.isOpen},Te.getMode=function(){return Te.state.mode},Te.saveMenuInstance=function(ht){Te.menuInstance=ht},Te.addKeyPath=function(ht){return Object(k.a)(Object(k.a)({},ht),{},{keyPath:(ht.keyPath||[]).concat(Te.props.eventKey)})},Te.triggerOpenChange=function(ht,Mt){var tn=Te.props.eventKey,lt=function(){Te.onOpenChange({key:tn,item:Object(b.a)(Te),trigger:Mt,open:ht})};Mt==="mouseenter"?Te.mouseenterTimeout=setTimeout(function(){lt()},0):lt()},Te.isChildrenSelected=function(){var ht={find:!1};return et(Te.props.children,Te.props.selectedKeys,ht),ht.find},Te.isInlineMode=function(){return Te.getMode()==="inline"},Te.adjustWidth=function(){if(!Te.subMenuTitle||!Te.menuInstance)return;var ht=ft.findDOMNode(Te.menuInstance);if(ht.offsetWidth>=Te.subMenuTitle.offsetWidth)return;ht.style.minWidth="".concat(Te.subMenuTitle.offsetWidth,"px")},Te.saveSubMenuTitle=function(ht){Te.subMenuTitle=ht},Te.getBaseProps=function(){var ht=Object(b.a)(Te),Mt=ht.props,tn=Te.getMode();return{mode:tn==="horizontal"?"vertical":tn,visible:Te.getVisible(),level:Mt.level+1,inlineIndent:Mt.inlineIndent,focusable:!1,onClick:Te.onSubMenuClick,onSelect:Te.onSelect,onDeselect:Te.onDeselect,onDestroy:Te.onDestroy,selectedKeys:Mt.selectedKeys,eventKey:"".concat(Mt.eventKey,"-menu-"),openKeys:Mt.openKeys,motion:Mt.motion,onOpenChange:Te.onOpenChange,subMenuOpenDelay:Mt.subMenuOpenDelay,parentMenu:Object(b.a)(Te),subMenuCloseDelay:Mt.subMenuCloseDelay,forceSubMenuRender:Mt.forceSubMenuRender,triggerSubMenuAction:Mt.triggerSubMenuAction,builtinPlacements:Mt.builtinPlacements,defaultActiveFirst:Mt.store.getState().defaultActiveFirst[xe(Mt.eventKey)],multiple:Mt.multiple,prefixCls:Mt.rootPrefixCls,id:Te.internalMenuId,manualRef:Te.saveMenuInstance,itemIcon:Mt.itemIcon,expandIcon:Mt.expandIcon,direction:Mt.direction}},Te.getMotion=function(ht,Mt){var tn=Object(b.a)(Te),lt=tn.haveRendered,qe=Te.props,Bt=qe.motion,$t=qe.rootPrefixCls,cn=Object(k.a)(Object(k.a)({},Bt),{},{leavedClassName:"".concat($t,"-hidden"),removeOnLeave:!1,motionAppear:lt||!Mt||ht!=="inline"});return cn};var Ge=nt.store,Re=nt.eventKey,it=Ge.getState(),st=it.defaultActiveFirst;Te.isRootMenu=!1;var Tt=!1;return st&&(Tt=st[Re]),ca(Ge,Re,Tt),Te.state={mode:nt.mode,isOpen:nt.isOpen},Te}return Object(C.a)(wt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Te=this,Ge=this.props,Re=Ge.mode,it=Ge.parentMenu,st=Ge.manualRef,Tt=Ge.isOpen,ht=function(){Te.setState({mode:Re,isOpen:Tt})},Mt=Tt!==this.state.isOpen,tn=Re!==this.state.mode;if((tn||Mt)&&(dt.a.cancel(this.updateStateRaf),tn?this.updateStateRaf=Object(dt.a)(ht):ht()),st&&st(this),Re!=="horizontal"||!(it==null?void 0:it.isRootMenu)||!Tt)return;this.minWidthTimeout=setTimeout(function(){return Te.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Te=this.props,Ge=Te.onDestroy,Re=Te.eventKey;Ge&&Ge(Re),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),dt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Te,Ge){var Re=this.getBaseProps();return _.createElement(ws,Object(w.a)({},Re,{id:this.internalMenuId,className:Te,style:Ge}),this.props.children)}},{key:"renderChildren",value:function(){var Te=this,Ge=this.getBaseProps(),Re=Ge.mode,it=Ge.visible,st=Ge.forceSubMenuRender,Tt=Ge.direction,ht=this.getMotion(Re,it);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||it||st,!this.haveOpened)return _.createElement("div",null);var Mt=M()("".concat(Ge.prefixCls,"-sub"),Object(Z.a)({},"".concat(Ge.prefixCls,"-rtl"),Tt==="rtl"));return this.isInlineMode()?_.createElement(ve,Object(w.a)({visible:Ge.visible,forceRender:st},ht),function(tn){var lt=tn.className,qe=tn.style,Bt=M()(Mt,lt);return Te.renderPopupMenu(Bt,qe)}):this.renderPopupMenu(Mt)}},{key:"render",value:function(){var Te,Ge,Re,it=Object(k.a)({},this.props),st=this.getVisible(),Tt=this.getPrefixCls(),ht=this.isInlineMode(),Mt=this.getMode(),tn=M()(Tt,"".concat(Tt,"-").concat(Mt),(Te={},Object(Z.a)(Te,it.className,!!it.className),Object(Z.a)(Te,this.getOpenClassName(),st),Object(Z.a)(Te,this.getActiveClassName(),it.active||st&&!ht),Object(Z.a)(Te,this.getDisabledClassName(),it.disabled),Object(Z.a)(Te,this.getSelectedClassName(),this.isChildrenSelected()),Te));this.internalMenuId||(it.eventKey?this.internalMenuId="".concat(it.eventKey,"$Menu"):(ua+=1,this.internalMenuId="$__$".concat(ua,"$Menu")));var lt={},qe={},Bt={};it.disabled||(lt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},qe={onClick:this.onTitleClick},Bt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var $t={},cn=it.direction,Wt=cn==="rtl";ht&&(Wt?$t.paddingRight=it.inlineIndent*it.level:$t.paddingLeft=it.inlineIndent*it.level);var _n={};this.getVisible()&&(_n={"aria-owns":this.internalMenuId});var rn=null;Mt!=="horizontal"&&(rn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(rn=_.createElement(this.props.expandIcon,Object(k.a)({},this.props))));var Ht=_.createElement("div",Object(w.a)({ref:this.saveSubMenuTitle,style:$t,className:"".concat(Tt,"-title"),role:"button"},Bt,qe,{"aria-expanded":st},_n,{"aria-haspopup":"true",title:typeof it.title=="string"?it.title:void 0}),it.title,rn||_.createElement("i",{className:"".concat(Tt,"-arrow")})),An=this.renderChildren(),qt=((Ge=it.parentMenu)===null||Ge===void 0?void 0:Ge.isRootMenu)?it.parentMenu.props.getPopupContainer:function(Nn){return Nn.parentNode},En=Pr[Mt],kn=it.popupOffset?{offset:it.popupOffset}:{},Yt=M()((Re={},Object(Z.a)(Re,it.popupClassName,it.popupClassName&&!ht),Object(Z.a)(Re,"".concat(Tt,"-rtl"),Wt),Re)),wn=it.disabled,ln=it.triggerSubMenuAction,xn=it.subMenuOpenDelay,an=it.forceSubMenuRender,Vt=it.subMenuCloseDelay,Sn=it.builtinPlacements;he.forEach(function(Nn){return delete it[Nn]}),delete it.onClick;var hr=Wt?Object(k.a)(Object(k.a)({},Yi),Sn):Object(k.a)(Object(k.a)({},Hi),Sn);delete it.direction;var pn=this.getBaseProps(),Dn=ht?null:this.getMotion(pn.mode,pn.visible);return _.createElement("li",Object(w.a)({},it,lt,{className:tn,role:"menuitem"}),_.createElement(_i,{prefixCls:Tt,popupClassName:M()("".concat(Tt,"-popup"),Yt),getPopupContainer:qt,builtinPlacements:hr,popupPlacement:En,popupVisible:ht?!1:st,popupAlign:kn,popup:ht?null:An,action:wn||ht?[]:[ln],mouseEnterDelay:xn,mouseLeaveDelay:Vt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:an,popupMotion:Dn},Ht),ht?An:null)}}]),wt}(_.Component);Jr.defaultProps={onMouseEnter:pe,onMouseLeave:pe,onTitleMouseEnter:pe,onTitleMouseLeave:pe,onTitleClick:pe,manualRef:pe,mode:"vertical",title:""};var ri=Object(m.b)(function($e,pt){var wt=$e.openKeys,nt=$e.activeKey,Te=$e.selectedKeys,Ge=pt.eventKey,Re=pt.subMenuKey;return{isOpen:wt.indexOf(Ge)>-1,active:nt[Re]===Ge,selectedKeys:Te}})(Jr);ri.isSubMenu=!0;var pa=ri,mo="menuitem-overflowed",Di=.5,ci=function($e){Object(s.a)(wt,$e);var pt=Object(h.a)(wt);function wt(){var nt;return Object(P.a)(this,wt),nt=pt.apply(this,arguments),nt.resizeObserver=null,nt.mutationObserver=null,nt.originalTotalWidth=0,nt.overflowedItems=[],nt.menuItemSizes=[],nt.cancelFrameId=null,nt.state={lastVisibleIndex:void 0},nt.childRef=_.createRef(),nt.getMenuItemNodes=function(){var Te=nt.props.prefixCls,Ge=nt.childRef.current;return Ge?[].slice.call(Ge.children).filter(function(Re){return Re.className.split(" ").indexOf("".concat(Te,"-overflowed-submenu"))<0}):[]},nt.getOverflowedSubMenuItem=function(Te,Ge,Re){var it=nt.props,st=it.overflowedIndicator,Tt=it.level,ht=it.mode,Mt=it.prefixCls,tn=it.theme;if(Tt!==1||ht!=="horizontal")return null;var lt=nt.props.children[0],qe=lt.props,Bt=qe.children,$t=qe.title,cn=qe.style,Wt=Object(I.a)(qe,["children","title","style"]),_n=Object(k.a)({},cn),rn="".concat(Te,"-overflowed-indicator"),Ht="".concat(Te,"-overflowed-indicator");Ge.length===0&&Re!==!0?_n=Object(k.a)(Object(k.a)({},_n),{},{display:"none"}):Re&&(_n=Object(k.a)(Object(k.a)({},_n),{},{visibility:"hidden",position:"absolute"}),rn="".concat(rn,"-placeholder"),Ht="".concat(Ht,"-placeholder"));var An=tn?"".concat(Mt,"-").concat(tn):"",qt={};return he.forEach(function(En){Wt[En]!==void 0&&(qt[En]=Wt[En])}),_.createElement(pa,Object(w.a)({title:st,className:"".concat(Mt,"-overflowed-submenu"),popupClassName:An},qt,{key:rn,eventKey:Ht,disabled:!1,style:_n}),Ge)},nt.setChildrenWidthAndResize=function(){if(nt.props.mode!=="horizontal")return;var Te=nt.childRef.current;if(!Te)return;var Ge=Te.children;if(!Ge||Ge.length===0)return;var Re=Te.children[Ge.length-1];Ue(Re,"display","inline-block");var it=nt.getMenuItemNodes(),st=it.filter(function(Tt){return Tt.className.split(" ").indexOf(mo)>=0});st.forEach(function(Tt){Ue(Tt,"display","inline-block")}),nt.menuItemSizes=it.map(function(Tt){return Se(Tt,!0)}),st.forEach(function(Tt){Ue(Tt,"display","none")}),nt.overflowedIndicatorWidth=Se(Te.children[Te.children.length-1],!0),nt.originalTotalWidth=nt.menuItemSizes.reduce(function(Tt,ht){return Tt+ht},0),nt.handleResize(),Ue(Re,"display","none")},nt.handleResize=function(){if(nt.props.mode!=="horizontal")return;var Te=nt.childRef.current;if(!Te)return;var Ge=Se(Te);nt.overflowedItems=[];var Re=0,it;nt.originalTotalWidth>Ge+Di&&(it=-1,nt.menuItemSizes.forEach(function(st){Re+=st,Re+nt.overflowedIndicatorWidth<=Ge&&(it+=1)})),nt.setState({lastVisibleIndex:it})},nt}return Object(C.a)(wt,[{key:"componentDidMount",value:function(){var Te=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ge=this.childRef.current;if(!Ge)return;this.resizeObserver=new ct.default(function(Re){Re.forEach(function(){var it=Te.cancelFrameId;cancelAnimationFrame(it),Te.cancelFrameId=requestAnimationFrame(Te.setChildrenWidthAndResize)})}),[].slice.call(Ge.children).concat(Ge).forEach(function(Re){Te.resizeObserver.observe(Re)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Te.resizeObserver.disconnect(),[].slice.call(Ge.children).concat(Ge).forEach(function(Re){Te.resizeObserver.observe(Re)}),Te.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ge,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Te){var Ge=this,Re=this.state.lastVisibleIndex;return(Te||[]).reduce(function(it,st,Tt){var ht=st;if(Ge.props.mode==="horizontal"){var Mt=Ge.getOverflowedSubMenuItem(st.props.eventKey,[]);Re!==void 0&&Ge.props.className.indexOf("".concat(Ge.props.prefixCls,"-root"))!==-1&&(Tt>Re&&(ht=_.cloneElement(st,{style:{display:"none"},eventKey:"".concat(st.props.eventKey,"-hidden"),className:"".concat(mo)})),Tt===Re+1&&(Ge.overflowedItems=Te.slice(Re+1).map(function(lt){return _.cloneElement(lt,{key:lt.props.eventKey,mode:"vertical-left"})}),Mt=Ge.getOverflowedSubMenuItem(st.props.eventKey,Ge.overflowedItems)));var tn=[].concat(Object(p.a)(it),[Mt,ht]);return Tt===Te.length-1&&tn.push(Ge.getOverflowedSubMenuItem(st.props.eventKey,[],!0)),tn}return[].concat(Object(p.a)(it),[ht])},[])}},{key:"render",value:function(){var Te=this.props,Ge=Te.visible,Re=Te.prefixCls,it=Te.overflowedIndicator,st=Te.mode,Tt=Te.level,ht=Te.tag,Mt=Te.children,tn=Te.theme,lt=Object(I.a)(Te,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),qe=ht;return _.createElement(qe,Object(w.a)({ref:this.childRef},lt),this.renderChildren(Mt))}}]),wt}(_.Component);ci.defaultProps={tag:"div",className:""};var Wo=ci;function Mo($e){return $e.length?$e.every(function(pt){return!!pt.props.disabled}):!0}function ii($e,pt,wt){var nt=$e.getState();$e.setState({activeKey:Object(k.a)(Object(k.a)({},nt.activeKey),{},Object(Z.a)({},pt,wt))})}function go($e){return $e.eventKey||"0-menu-"}function no($e,pt){var wt=pt,nt=$e.children,Te=$e.eventKey;if(wt){var Ge;if(Ke(nt,function(Re,it){Re&&Re.props&&!Re.props.disabled&&wt===Me(Re,Te,it)&&(Ge=!0)}),Ge)return wt}return wt=null,$e.defaultActiveFirst&&Ke(nt,function(Re,it){!wt&&Re&&!Re.props.disabled&&(wt=Me(Re,Te,it))}),wt}function hs($e){if(!$e)return;var pt=this.instanceArray.indexOf($e);pt!==-1?this.instanceArray[pt]=$e:this.instanceArray.push($e)}var xo=function($e){Object(s.a)(wt,$e);var pt=Object(h.a)(wt);function wt(nt){var Te;return Object(P.a)(this,wt),Te=pt.call(this,nt),Te.onKeyDown=function(Ge,Re){var it=Ge.keyCode,st;if(Te.getFlatInstanceArray().forEach(function(ht){ht&&ht.props.active&&ht.onKeyDown&&(st=ht.onKeyDown(Ge))}),st)return 1;var Tt=null;return(it===c.a.UP||it===c.a.DOWN)&&(Tt=Te.step(it===c.a.UP?-1:1)),Tt?(Ge.preventDefault(),ii(Te.props.store,go(Te.props),Tt.props.eventKey),typeof Re=="function"&&Re(Tt),1):void 0},Te.onItemHover=function(Ge){var Re=Ge.key,it=Ge.hover;ii(Te.props.store,go(Te.props),it?Re:null)},Te.onDeselect=function(Ge){Te.props.onDeselect(Ge)},Te.onSelect=function(Ge){Te.props.onSelect(Ge)},Te.onClick=function(Ge){Te.props.onClick(Ge)},Te.onOpenChange=function(Ge){Te.props.onOpenChange(Ge)},Te.onDestroy=function(Ge){Te.props.onDestroy(Ge)},Te.getFlatInstanceArray=function(){return Te.instanceArray},Te.step=function(Ge){var Re=Te.getFlatInstanceArray(),it=Te.props.store.getState().activeKey[go(Te.props)],st=Re.length;if(!st)return null;Ge<0&&(Re=Re.concat().reverse());var Tt=-1;if(Re.every(function(lt,qe){return lt&<.props.eventKey===it?(Tt=qe,!1):!0}),!Te.props.defaultActiveFirst&&Tt!==-1&&Mo(Re.slice(Tt,st-1)))return;var ht=(Tt+1)%st,Mt=ht;do{var tn=Re[Mt];if(!tn||tn.props.disabled)Mt=(Mt+1)%st;else return tn}while(Mt!==ht);return null},Te.renderCommonMenuItem=function(Ge,Re,it){var st=Te.props.store.getState(),Tt=Object(b.a)(Te),ht=Tt.props,Mt=Me(Ge,ht.eventKey,Re),tn=Ge.props;if(!tn||typeof Ge.type=="string")return Ge;var lt=Mt===st.activeKey,qe=Object(k.a)(Object(k.a)({mode:tn.mode||ht.mode,level:ht.level,inlineIndent:ht.inlineIndent,renderMenuItem:Te.renderMenuItem,rootPrefixCls:ht.prefixCls,index:Re,parentMenu:ht.parentMenu,manualRef:tn.disabled?void 0:Object(g.a)(Ge.ref,hs.bind(Object(b.a)(Te))),eventKey:Mt,active:!tn.disabled&<,multiple:ht.multiple,onClick:function($t){(tn.onClick||pe)($t),Te.onClick($t)},onItemHover:Te.onItemHover,motion:ht.motion,subMenuOpenDelay:ht.subMenuOpenDelay,subMenuCloseDelay:ht.subMenuCloseDelay,forceSubMenuRender:ht.forceSubMenuRender,onOpenChange:Te.onOpenChange,onDeselect:Te.onDeselect,onSelect:Te.onSelect,builtinPlacements:ht.builtinPlacements,itemIcon:tn.itemIcon||Te.props.itemIcon,expandIcon:tn.expandIcon||Te.props.expandIcon},it),{},{direction:ht.direction});return(ht.mode==="inline"||Ne())&&(qe.triggerSubMenuAction="click"),_.cloneElement(Ge,Object(k.a)(Object(k.a)({},qe),{},{key:Mt||Re}))},Te.renderMenuItem=function(Ge,Re,it){if(!Ge)return null;var st=Te.props.store.getState(),Tt={openKeys:st.openKeys,selectedKeys:st.selectedKeys,triggerSubMenuAction:Te.props.triggerSubMenuAction,subMenuKey:it};return Te.renderCommonMenuItem(Ge,Re,Tt)},nt.store.setState({activeKey:Object(k.a)(Object(k.a)({},nt.store.getState().activeKey),{},Object(Z.a)({},nt.eventKey,no(nt,nt.activeKey)))}),Te.instanceArray=[],Te}return Object(C.a)(wt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Te){return this.props.visible||Te.visible||this.props.className!==Te.className||!U()(this.props.style,Te.style)}},{key:"componentDidUpdate",value:function(Te){var Ge=this.props,Re="activeKey"in Ge?Ge.activeKey:Ge.store.getState().activeKey[go(Ge)],it=no(Ge,Re);if(it!==Re)ii(Ge.store,go(Ge),it);else if("activeKey"in Te){var st=no(Te,Te.activeKey);it!==st&&ii(Ge.store,go(Ge),it)}}},{key:"render",value:function(){var Te=this,Ge=Object(w.a)({},this.props);this.instanceArray=[];var Re=M()(Ge.prefixCls,Ge.className,"".concat(Ge.prefixCls,"-").concat(Ge.mode)),it={className:Re,role:Ge.role||"menu"};Ge.id&&(it.id=Ge.id),Ge.focusable&&(it.tabIndex=0,it.onKeyDown=this.onKeyDown);var st=Ge.prefixCls,Tt=Ge.eventKey,ht=Ge.visible,Mt=Ge.level,tn=Ge.mode,lt=Ge.overflowedIndicator,qe=Ge.theme;return he.forEach(function(Bt){return delete Ge[Bt]}),delete Ge.onClick,_.createElement(Wo,Object(w.a)({},Ge,{prefixCls:st,mode:tn,tag:"ul",level:Mt,theme:qe,visible:ht,overflowedIndicator:lt},it),Object(T.a)(Ge.children).map(function(Bt,$t){return Te.renderMenuItem(Bt,$t,Tt||"0-menu-")}))}}]),wt}(_.Component);xo.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:pe};var Cs=Object(m.b)()(xo),ws=Cs,ho=v("Kwbf");function As($e,pt,wt){var nt=$e.prefixCls,Te=$e.motion,Ge=$e.defaultMotions,Re=Ge===void 0?{}:Ge,it=$e.openAnimation,st=$e.openTransitionName,Tt=pt.switchingModeFromInline;if(Te)return Te;if(Object(N.a)(it)==="object"&&it)Object(ho.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof it=="string")return{motionName:"".concat(nt,"-open-").concat(it)};if(st)return{motionName:st};var ht=Re[wt];return ht||(Tt?null:Re.other)}var mr=function($e){Object(s.a)(wt,$e);var pt=Object(h.a)(wt);function wt(nt){var Te;Object(P.a)(this,wt),Te=pt.call(this,nt),Te.onSelect=function(it){var st=Object(b.a)(Te),Tt=st.props;if(Tt.selectable){var ht=Te.store.getState(),Mt=ht.selectedKeys,tn=it.key;Tt.multiple?Mt=Mt.concat([tn]):Mt=[tn],"selectedKeys"in Tt||Te.store.setState({selectedKeys:Mt}),Tt.onSelect(Object(k.a)(Object(k.a)({},it),{},{selectedKeys:Mt}))}},Te.onClick=function(it){var st=Te.getRealMenuMode(),Tt=Object(b.a)(Te),ht=Tt.store,Mt=Tt.props.onOpenChange;st!=="inline"&&!("openKeys"in Te.props)&&(ht.setState({openKeys:[]}),Mt([])),Te.props.onClick(it)},Te.onKeyDown=function(it,st){Te.innerMenu.getWrappedInstance().onKeyDown(it,st)},Te.onOpenChange=function(it){var st=Object(b.a)(Te),Tt=st.props,ht=Te.store.getState().openKeys.concat(),Mt=!1,tn=function(qe){var Bt=!1;if(qe.open)Bt=ht.indexOf(qe.key)===-1,Bt&&ht.push(qe.key);else{var $t=ht.indexOf(qe.key);Bt=$t!==-1,Bt&&ht.splice($t,1)}Mt=Mt||Bt};Array.isArray(it)?it.forEach(tn):tn(it),Mt&&("openKeys"in Te.props||Te.store.setState({openKeys:ht}),Tt.onOpenChange(ht))},Te.onDeselect=function(it){var st=Object(b.a)(Te),Tt=st.props;if(Tt.selectable){var ht=Te.store.getState().selectedKeys.concat(),Mt=it.key,tn=ht.indexOf(Mt);tn!==-1&&ht.splice(tn,1),"selectedKeys"in Tt||Te.store.setState({selectedKeys:ht}),Tt.onDeselect(Object(k.a)(Object(k.a)({},it),{},{selectedKeys:ht}))}},Te.onMouseEnter=function(it){Te.restoreModeVerticalFromInline();var st=Te.props.onMouseEnter;st&&st(it)},Te.onTransitionEnd=function(it){var st=it.propertyName==="width"&&it.target===it.currentTarget,Tt=it.target.className,ht=Object.prototype.toString.call(Tt)==="[object SVGAnimatedString]"?Tt.animVal:Tt,Mt=it.propertyName==="font-size"&&ht.indexOf("anticon")>=0;(st||Mt)&&Te.restoreModeVerticalFromInline()},Te.setInnerMenu=function(it){Te.innerMenu=it},Te.isRootMenu=!0;var Ge=nt.defaultSelectedKeys,Re=nt.defaultOpenKeys;return"selectedKeys"in nt&&(Ge=nt.selectedKeys||[]),"openKeys"in nt&&(Re=nt.openKeys||[]),Te.store=Object(m.c)({selectedKeys:Ge,openKeys:Re,activeKey:{"0-menu-":no(nt,nt.activeKey)}}),Te.state={switchingModeFromInline:!1,prevProps:nt,inlineOpenKeys:[],store:Te.store},Te}return Object(C.a)(wt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Te){var Ge=this.props,Re=Ge.siderCollapsed,it=Ge.inlineCollapsed,st=Ge.onOpenChange;(!Te.inlineCollapsed&&it||!Te.siderCollapsed&&Re)&&st([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Te=this.props.collapsedWidth,Ge=this.store,Re=this.prevOpenKeys,it=this.getInlineCollapsed()&&(Te===0||Te==="0"||Te==="0px");it?(this.prevOpenKeys=Ge.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Re&&(this.store.setState({openKeys:Re}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Te=this.props.mode,Ge=this.state.switchingModeFromInline,Re=this.getInlineCollapsed();return Ge&&Re?"inline":Re?"vertical":Te}},{key:"getInlineCollapsed",value:function(){var Te=this.props,Ge=Te.inlineCollapsed,Re=Te.siderCollapsed;return Re!==void 0?Re:Ge}},{key:"restoreModeVerticalFromInline",value:function(){var Te=this.state.switchingModeFromInline;Te&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Te=Object(k.a)({},Object(x.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ge=this.getRealMenuMode();return Te.className+=" ".concat(Te.prefixCls,"-root"),Te.direction==="rtl"&&(Te.className+=" ".concat(Te.prefixCls,"-rtl")),Te=Object(k.a)(Object(k.a)({},Te),{},{mode:Ge,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:As(this.props,this.state,Ge)}),delete Te.openAnimation,delete Te.openTransitionName,_.createElement(m.a,{store:this.store},_.createElement(ws,Object(w.a)({},Te,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Te,Ge){var Re=Ge.prevProps,it=Ge.store,st=it.getState(),Tt={},ht={prevProps:Te};return Re.mode==="inline"&&Te.mode!=="inline"&&(ht.switchingModeFromInline=!0),"openKeys"in Te?Tt.openKeys=Te.openKeys||[]:((Te.inlineCollapsed&&!Re.inlineCollapsed||Te.siderCollapsed&&!Re.siderCollapsed)&&(ht.switchingModeFromInline=!0,ht.inlineOpenKeys=st.openKeys,Tt.openKeys=[]),(!Te.inlineCollapsed&&Re.inlineCollapsed||!Te.siderCollapsed&&Re.siderCollapsed)&&(Tt.openKeys=Ge.inlineOpenKeys,ht.inlineOpenKeys=[])),Object.keys(Tt).length&&it.setState(Tt),ht}}]),wt}(_.Component);mr.defaultProps={selectable:!0,onClick:pe,onSelect:pe,onOpenChange:pe,onDeselect:pe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:_.createElement("span",null,"\xB7\xB7\xB7")};var Vr=mr,ur=function($e){Object(s.a)(wt,$e);var pt=Object(h.a)(wt);function wt(){var nt;return Object(P.a)(this,wt),nt=pt.apply(this,arguments),nt.onKeyDown=function(Te){var Ge=Te.keyCode;return Ge===c.a.ENTER?(nt.onClick(Te),!0):void 0},nt.onMouseLeave=function(Te){var Ge=nt.props,Re=Ge.eventKey,it=Ge.onItemHover,st=Ge.onMouseLeave;it({key:Re,hover:!1}),st({key:Re,domEvent:Te})},nt.onMouseEnter=function(Te){var Ge=nt.props,Re=Ge.eventKey,it=Ge.onItemHover,st=Ge.onMouseEnter;it({key:Re,hover:!0}),st({key:Re,domEvent:Te})},nt.onClick=function(Te){var Ge=nt.props,Re=Ge.eventKey,it=Ge.multiple,st=Ge.onClick,Tt=Ge.onSelect,ht=Ge.onDeselect,Mt=Ge.isSelected,tn={key:Re,keyPath:[Re],item:Object(b.a)(nt),domEvent:Te};st(tn),it?Mt?ht(tn):Tt(tn):Mt||Tt(tn)},nt.saveNode=function(Te){nt.node=Te},nt}return Object(C.a)(wt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Te=this.props;Te.onDestroy&&Te.onDestroy(Te.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Te,Ge=Object(k.a)({},this.props),Re=M()(this.getPrefixCls(),Ge.className,(Te={},Object(Z.a)(Te,this.getActiveClassName(),!Ge.disabled&&Ge.active),Object(Z.a)(Te,this.getSelectedClassName(),Ge.isSelected),Object(Z.a)(Te,this.getDisabledClassName(),Ge.disabled),Te)),it=Object(k.a)(Object(k.a)({},Ge.attribute),{},{title:typeof Ge.title=="string"?Ge.title:void 0,className:Re,role:Ge.role||"menuitem","aria-disabled":Ge.disabled});Ge.role==="option"?it=Object(k.a)(Object(k.a)({},it),{},{role:"option","aria-selected":Ge.isSelected}):(Ge.role===null||Ge.role==="none")&&(it.role="none");var st={onClick:Ge.disabled?null:this.onClick,onMouseLeave:Ge.disabled?null:this.onMouseLeave,onMouseEnter:Ge.disabled?null:this.onMouseEnter},Tt=Object(k.a)({},Ge.style);Ge.mode==="inline"&&(Ge.direction==="rtl"?Tt.paddingRight=Ge.inlineIndent*Ge.level:Tt.paddingLeft=Ge.inlineIndent*Ge.level),he.forEach(function(Mt){return delete Ge[Mt]}),delete Ge.direction;var ht=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ht=_.createElement(this.props.itemIcon,this.props)),_.createElement("li",Object(w.a)({},Object(x.a)(Ge,["onClick","onMouseEnter","onMouseLeave","onSelect"]),it,st,{style:Tt,ref:this.saveNode}),Ge.children,ht)}}]),wt}(_.Component);ur.isMenuItem=!0,ur.defaultProps={onSelect:pe,onMouseEnter:pe,onMouseLeave:pe,manualRef:pe};var oa=Object(m.b)(function($e,pt){var wt=$e.activeKey,nt=$e.selectedKeys,Te=pt.eventKey,Ge=pt.subMenuKey;return{active:wt[Ge]===Te,isSelected:Array.isArray(nt)?nt.indexOf(Te)!==-1:nt===Te}})(ur),wa=oa,ei=function($e){Object(s.a)(wt,$e);var pt=Object(h.a)(wt);function wt(){var nt;return Object(P.a)(this,wt),nt=pt.apply(this,arguments),nt.renderInnerMenuItem=function(Te){var Ge=nt.props,Re=Ge.renderMenuItem,it=Ge.index;return Re(Te,it,nt.props.subMenuKey)},nt}return Object(C.a)(wt,[{key:"render",value:function(){var Te=Object(w.a)({},this.props),Ge=Te.className,Re=Ge===void 0?"":Ge,it=Te.rootPrefixCls,st="".concat(it,"-item-group-title"),Tt="".concat(it,"-item-group-list"),ht=Te.title,Mt=Te.children;return he.forEach(function(tn){return delete Te[tn]}),delete Te.direction,_.createElement("li",Object(w.a)({},Te,{onClick:function(lt){return lt.stopPropagation()},className:"".concat(Re," ").concat(it,"-item-group")}),_.createElement("div",{className:st,title:typeof ht=="string"?ht:void 0},ht),_.createElement("ul",{className:Tt},_.Children.map(Mt,this.renderInnerMenuItem)))}}]),wt}(_.Component);ei.isMenuItemGroup=!0,ei.defaultProps={disabled:!0};var Ba=ei,Ni=function(pt){var wt=pt.className,nt=pt.rootPrefixCls,Te=pt.style;return _.createElement("li",{className:"".concat(wt," ").concat(nt,"-item-divider"),style:Te})};Ni.defaultProps={disabled:!0,className:"",style:{}};var Ma=Ni,xa=Vr,Po=v("eDIo");function Za($e,pt){var wt=$e.prefixCls,nt=$e.editable,Te=$e.locale,Ge=$e.style;return!nt||nt.showAdd===!1?null:_.createElement("button",{ref:pt,type:"button",className:"".concat(wt,"-nav-add"),style:Ge,"aria-label":(Te==null?void 0:Te.addAriaLabel)||"Add tab",onClick:function(it){nt.onEdit("add",{event:it})}},nt.addIcon||"+")}var ro=_.forwardRef(Za);function so($e,pt){var wt=$e.prefixCls,nt=$e.id,Te=$e.tabs,Ge=$e.locale,Re=$e.mobile,it=$e.moreIcon,st=it===void 0?"More":it,Tt=$e.moreTransitionName,ht=$e.style,Mt=$e.className,tn=$e.editable,lt=$e.tabBarGutter,qe=$e.rtl,Bt=$e.onTabClick,$t=Object(_.useState)(!1),cn=Object(Q.a)($t,2),Wt=cn[0],_n=cn[1],rn=Object(_.useState)(null),Ht=Object(Q.a)(rn,2),An=Ht[0],qt=Ht[1],En="".concat(nt,"-more-popup"),kn="".concat(wt,"-dropdown"),Yt=An!==null?"".concat(En,"-").concat(An):null,wn=Ge==null?void 0:Ge.dropdownAriaLabel,ln=_.createElement(xa,{onClick:function(Dn){var Nn=Dn.key,Gn=Dn.domEvent;Bt(Nn,Gn),_n(!1)},id:En,tabIndex:-1,role:"listbox","aria-activedescendant":Yt,selectedKeys:[An],"aria-label":wn!==void 0?wn:"expanded dropdown"},Te.map(function(pn){return _.createElement(wa,{key:pn.key,id:"".concat(En,"-").concat(pn.key),role:"option","aria-controls":nt&&"".concat(nt,"-panel-").concat(pn.key),disabled:pn.disabled},pn.tab)}));function xn(pn){for(var Dn=Te.filter(function(or){return!or.disabled}),Nn=Dn.findIndex(function(or){return or.key===An})||0,Gn=Dn.length,yn=0;ynSn?(an=ln,En.current="x"):(an=xn,En.current="y");var hr=Date.now();hr-An.current>100&&(qt.current=!1),(pt(-an,-an)||qt.current)&&(wn.preventDefault(),qt.current=!0),An.current=hr}var Yt=Object(_.useRef)(null);Yt.current={onTouchStart:_n,onTouchMove:rn,onTouchEnd:Ht,onWheel:kn},_.useEffect(function(){function wn(Vt){Yt.current.onTouchStart(Vt)}function ln(Vt){Yt.current.onTouchMove(Vt)}function xn(Vt){Yt.current.onTouchEnd(Vt)}function an(Vt){Yt.current.onWheel(Vt)}return document.addEventListener("touchmove",ln,{passive:!1}),document.addEventListener("touchend",xn,{passive:!1}),$e.current.addEventListener("touchstart",wn,{passive:!1}),$e.current.addEventListener("wheel",an),function(){document.removeEventListener("touchmove",ln),document.removeEventListener("touchend",xn)}},[])}function Xs(){var $e=Object(_.useRef)(new Map);function pt(nt){return $e.current.has(nt)||$e.current.set(nt,_.createRef()),$e.current.get(nt)}function wt(nt){$e.current.delete(nt)}return[pt,wt]}function Ys($e,pt){var wt=_.useRef($e),nt=_.useState({}),Te=Object(Q.a)(nt,2),Ge=Te[1];function Re(it){var st=typeof it=="function"?it(wt.current):it;st!==wt.current&&pt(st,wt.current),wt.current=st,Ge({})}return[wt.current,Re]}var il=function(pt){var wt=pt.position,nt=pt.prefixCls,Te=pt.extra;if(!Te)return null;var Ge,Re=Te;return wt==="right"&&(Ge=Re.right||!Re.left&&Re||null),wt==="left"&&(Ge=Re.left||null),Ge?_.createElement("div",{className:"".concat(nt,"-extra-content")},Ge):null};function ml($e,pt){var wt,nt=_.useContext(Vs),Te=nt.prefixCls,Ge=nt.tabs,Re=$e.className,it=$e.style,st=$e.id,Tt=$e.animated,ht=$e.activeKey,Mt=$e.rtl,tn=$e.extra,lt=$e.editable,qe=$e.locale,Bt=$e.tabPosition,$t=$e.tabBarGutter,cn=$e.children,Wt=$e.onTabClick,_n=$e.onTabScroll,rn=Object(_.useRef)(),Ht=Object(_.useRef)(),An=Object(_.useRef)(),qt=Object(_.useRef)(),En=Xs(),kn=Object(Q.a)(En,2),Yt=kn[0],wn=kn[1],ln=Bt==="top"||Bt==="bottom",xn=Ys(0,function(Oa,la){ln&&_n&&_n({direction:Oa>la?"left":"right"})}),an=Object(Q.a)(xn,2),Vt=an[0],Sn=an[1],hr=Ys(0,function(Oa,la){!ln&&_n&&_n({direction:Oa>la?"top":"bottom"})}),pn=Object(Q.a)(hr,2),Dn=pn[0],Nn=pn[1],Gn=Object(_.useState)(0),yn=Object(Q.a)(Gn,2),Kn=yn[0],or=yn[1],gr=Object(_.useState)(0),Ur=Object(Q.a)(gr,2),er=Ur[0],rr=Ur[1],Lr=Object(_.useState)(0),Er=Object(Q.a)(Lr,2),_r=Er[0],sa=Er[1],ta=Object(_.useState)(0),tr=Object(Q.a)(ta,2),vr=tr[0],ja=tr[1],ia=Object(_.useState)(null),Yn=Object(Q.a)(ia,2),vn=Yn[0],yr=Yn[1],oi=Object(_.useState)(null),Cr=Object(Q.a)(oi,2),Ir=Cr[0],fr=Cr[1],ar=Object(_.useState)(0),Ln=Object(Q.a)(ar,2),Mn=Ln[0],gn=Ln[1],qn=Object(_.useState)(0),na=Object(Q.a)(qn,2),cr=na[0],jr=na[1],Pa=i(new Map),da=Object(Q.a)(Pa,2),ba=da[0],ha=da[1],Ta=u(Ge,ba,Kn),Da="".concat(Te,"-nav-operations-hidden"),Ua=0,Qr=0;ln?Mt?(Ua=0,Qr=Math.max(0,Kn-vn)):(Ua=Math.min(0,vn-Kn),Qr=0):(Ua=Math.min(0,Ir-er),Qr=0);function Wa(Oa){return OaQr?[Qr,!1]:[Oa,!0]}var Ea=Object(_.useRef)(),za=Object(_.useState)(),hi=Object(Q.a)(za,2),Ji=hi[0],Li=hi[1];function Ci(){Li(Date.now())}function Uo(){window.clearTimeout(Ea.current)}Ts(rn,function(Oa,la){var xi=!1;function Zi(Oo,co){Oo(function(No){var Wi=Wa(No+co),Ai=Object(Q.a)(Wi,2),Vo=Ai[0],Pn=Ai[1];return xi=Pn,Vo})}if(ln){if(vn>=Kn)return xi;Zi(Sn,Oa)}else{if(Ir>=er)return xi;Zi(Nn,la)}return Uo(),Ci(),xi}),Object(_.useEffect)(function(){return Uo(),Ji&&(Ea.current=window.setTimeout(function(){Li(0)},100)),Uo},[Ji]);function Ao(){var Oa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ht,la=Ta.get(Oa);if(!la)return;if(ln){var xi=Vt;Mt?la.rightVt+vn&&(xi=la.right+la.width-vn):la.left<-Vt?xi=-la.left:la.left+la.width>-Vt+vn&&(xi=-(la.left+la.width-vn)),Nn(0),Sn(Wa(xi)[0])}else{var Zi=Dn;la.top<-Dn?Zi=-la.top:la.top+la.height>-Dn+Ir&&(Zi=-(la.top+la.height-Ir)),Sn(0),Nn(Wa(Zi)[0])}}var _o=R(Ta,{width:vn,height:Ir,left:Vt,top:Dn},{width:_r,height:vr},{width:Mn,height:cr},Object(k.a)(Object(k.a)({},$e),{},{tabs:Ge})),as=Object(Q.a)(_o,2),fs=as[0],is=as[1],os=Ge.map(function(Oa){var la=Oa.key;return _.createElement(f,{id:st,prefixCls:Te,key:la,rtl:Mt,tab:Oa,closable:Oa.closable,editable:lt,active:la===ht,tabPosition:Bt,tabBarGutter:$t,renderWrapper:cn,removeAriaLabel:qe==null?void 0:qe.removeAriaLabel,ref:Yt(la),onClick:function(Zi){Wt(la,Zi)},onRemove:function(){wn(la)},onFocus:function(){Ao(la),Ci(),Mt||(rn.current.scrollLeft=0),rn.current.scrollTop=0}})}),So=l(function(){var Oa,la,xi,Zi,Oo,co,No,Wi,Ai,Vo=((Oa=rn.current)===null||Oa===void 0?void 0:Oa.offsetWidth)||0,Pn=((la=rn.current)===null||la===void 0?void 0:la.offsetHeight)||0,ts=((xi=qt.current)===null||xi===void 0?void 0:xi.offsetWidth)||0,lo=((Zi=qt.current)===null||Zi===void 0?void 0:Zi.offsetHeight)||0,Ha=((Oo=An.current)===null||Oo===void 0?void 0:Oo.offsetWidth)||0,Fi=((co=An.current)===null||co===void 0?void 0:co.offsetHeight)||0;yr(Vo),fr(Pn),gn(ts),jr(lo);var Ti=(((No=Ht.current)===null||No===void 0?void 0:No.offsetWidth)||0)-ts,Ro=(((Wi=Ht.current)===null||Wi===void 0?void 0:Wi.offsetHeight)||0)-lo;or(Ti),rr(Ro);var Oi=(Ai=An.current)===null||Ai===void 0?void 0:Ai.className.includes(Da);sa(Ti-(Oi?0:Ha)),ja(Ro-(Oi?0:Fi)),ha(function(){var Fo=new Map;return Ge.forEach(function(ns){var ms=ns.key,Xo=Yt(ms).current;Xo&&Fo.set(ms,{width:Xo.offsetWidth,height:Xo.offsetHeight,left:Xo.offsetLeft,top:Xo.offsetTop})}),Fo})}),ps=Ge.slice(0,fs),Qi=Ge.slice(is+1),Aa=[].concat(Object(p.a)(ps),Object(p.a)(Qi)),wi=Object(_.useState)(),vi=Object(Q.a)(wi,2),vo=vi[0],uo=vi[1],Ki=Ta.get(ht),ss=Object(_.useRef)();function ls(){t.a.cancel(ss.current)}Object(_.useEffect)(function(){var Oa={};return Ki&&(ln?(Mt?Oa.right=Ki.right:Oa.left=Ki.left,Oa.width=Ki.width):(Oa.top=Ki.top,Oa.height=Ki.height)),ls(),ss.current=t()(function(){uo(Oa)}),ls},[Ki,ln,Mt]),Object(_.useEffect)(function(){Ao()},[ht,Ki,Ta,ln]),Object(_.useEffect)(function(){So()},[Mt,$t,ht,Ge.map(function(Oa){return Oa.key}).join("_")]);var qo=!!Aa.length,fo="".concat(Te,"-nav-wrap"),zo,yo,es,Go;return ln?Mt?(yo=Vt>0,zo=Vt+vn` "'(~:]+/,i=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,c=/^\s*\[[^\]]+?\]:.*$/,d=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,f=" ";function o(F,B,z){return B.f=B.inline=z,z(F,B)}function u(F,B,z){return B.f=B.block=z,z(F,B)}function E(F){return!F||!/\S/.test(F.string)}function R(F){if(F.linkTitle=!1,F.linkHref=!1,F.linkText=!1,F.em=!1,F.strong=!1,F.strikethrough=!1,F.quote=0,F.indentedCode=!1,F.f==P){var B=_;if(!B){var z=Z.innerMode(k,F.htmlState);B=z.mode.name=="xml"&&z.state.tagStart===null&&!z.state.context&&z.state.tokenize.isInText}B&&(F.f=h,F.block=w,F.htmlState=null)}return F.trailingSpace=0,F.trailingSpaceNewLine=!1,F.prevLine=F.thisLine,F.thisLine={stream:null},null}function w(F,B){var z=F.column()===B.indentation,K=E(B.prevLine.stream),$=B.indentedCode,te=B.prevLine.hr,fe=B.list!==!1,Ae=(B.listStack[B.listStack.length-1]||0)+3;B.indentedCode=!1;var ce=B.indentation;if(B.indentationDiff===null&&(B.indentationDiff=B.indentation,fe)){for(B.list=null;ce=4&&($||B.prevLine.fencedCodeEnd||B.prevLine.header||K))return F.skipToEnd(),B.indentedCode=!0,M.code;if(F.eatSpace())return null;if(z&&B.indentation<=Ae&&(le=F.match(t))&&le[1].length<=6)return B.quote=0,B.header=le[1].length,B.thisLine.header=!0,I.highlightFormatting&&(B.formatting="header"),B.f=B.inline,b(B);if(B.indentation<=Ae&&F.eat(">"))return B.quote=z?1:B.quote+1,I.highlightFormatting&&(B.formatting="quote"),F.eatSpace(),b(B);if(!ye&&!B.setext&&z&&B.indentation<=Ae&&(le=F.match(p))){var me=le[1]?"ol":"ul";return B.indentation=ce+F.current().length,B.list=!0,B.quote=0,B.listStack.push(B.indentation),B.em=!1,B.strong=!1,B.code=!1,B.strikethrough=!1,I.taskLists&&F.match(a,!1)&&(B.taskList=!0),B.f=B.inline,I.highlightFormatting&&(B.formatting=["list","list-"+me]),b(B)}else{if(z&&B.indentation<=Ae&&(le=F.match(i,!0)))return B.quote=0,B.fencedEndRE=new RegExp(le[1]+"+ *$"),B.localMode=I.fencedCodeBlockHighlighting&&O(le[2]||I.fencedCodeBlockDefaultMode),B.localMode&&(B.localState=Z.startState(B.localMode)),B.f=B.block=C,I.highlightFormatting&&(B.formatting="code-block"),B.code=-1,b(B);if(B.setext||(!ie||!fe)&&!B.quote&&B.list===!1&&!B.code&&!ye&&!c.test(F.string)&&(le=F.lookAhead(1))&&(le=le.match(A)))return B.setext?(B.header=B.setext,B.setext=0,F.skipToEnd(),I.highlightFormatting&&(B.formatting="header")):(B.header=le[0].charAt(0)=="="?1:2,B.setext=B.header),B.thisLine.header=!0,B.f=B.inline,b(B);if(ye)return F.skipToEnd(),B.hr=!0,B.thisLine.hr=!0,M.hr;if(F.peek()==="[")return o(F,B,U)}return o(F,B,B.inline)}function P(F,B){var z=k.token(F,B.htmlState);if(!_){var K=Z.innerMode(k,B.htmlState);(K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText||B.md_inside&&F.current().indexOf(">")>-1)&&(B.f=h,B.block=w,B.htmlState=null)}return z}function C(F,B){var z=B.listStack[B.listStack.length-1]||0,K=B.indentation=F.quote?B.push(M.formatting+"-"+F.formatting[z]+"-"+F.quote):B.push("error"))}if(F.taskOpen)return B.push("meta"),B.length?B.join(" "):null;if(F.taskClosed)return B.push("property"),B.length?B.join(" "):null;if(F.linkHref?B.push(M.linkHref,"url"):(F.strong&&B.push(M.strong),F.em&&B.push(M.em),F.strikethrough&&B.push(M.strikethrough),F.emoji&&B.push(M.emoji),F.linkText&&B.push(M.linkText),F.code&&B.push(M.code),F.image&&B.push(M.image),F.imageAltText&&B.push(M.imageAltText,"link"),F.imageMarker&&B.push(M.imageMarker)),F.header&&B.push(M.header,M.header+"-"+F.header),F.quote&&(B.push(M.quote),!I.maxBlockquoteDepth||I.maxBlockquoteDepth>=F.quote?B.push(M.quote+"-"+F.quote):B.push(M.quote+"-"+I.maxBlockquoteDepth)),F.list!==!1){var K=(F.listStack.length-1)%3;K?K===1?B.push(M.list2):B.push(M.list3):B.push(M.list1)}return F.trailingSpaceNewLine?B.push("trailing-space-new-line"):F.trailingSpace&&B.push("trailing-space-"+(F.trailingSpace%2?"a":"b")),B.length?B.join(" "):null}function s(F,B){return F.match(l,!0)?b(B):void 0}function h(F,B){var z=B.text(F,B);if(typeof z!="undefined")return z;if(B.list)return B.list=null,b(B);if(B.taskList){var K=F.match(a,!0)[1]===" ";return K?B.taskOpen=!0:B.taskClosed=!0,I.highlightFormatting&&(B.formatting="task"),B.taskList=!1,b(B)}if(B.taskOpen=!1,B.taskClosed=!1,B.header&&F.match(/^#+$/,!0))return I.highlightFormatting&&(B.formatting="header"),b(B);var $=F.next();if(B.linkTitle){B.linkTitle=!1;var te=$;$==="("&&(te=")"),te=(te+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var fe="^\\s*(?:[^"+te+"\\\\]+|\\\\\\\\|\\\\.)"+te;if(F.match(new RegExp(fe),!0))return M.linkHref}if($==="`"){var Ae=B.formatting;I.highlightFormatting&&(B.formatting="code"),F.eatWhile("`");var ce=F.current().length;if(B.code==0&&(!B.quote||ce==1))return B.code=ce,b(B);if(ce==B.code){var ie=b(B);return B.code=0,ie}else return B.formatting=Ae,b(B)}else if(B.code)return b(B);if($==="\\"&&(F.next(),I.highlightFormatting)){var ye=b(B),le=M.formatting+"-escape";return ye?ye+" "+le:le}if($==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return B.imageMarker=!0,B.image=!0,I.highlightFormatting&&(B.formatting="image"),b(B);if($==="["&&B.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return B.imageMarker=!1,B.imageAltText=!0,I.highlightFormatting&&(B.formatting="image"),b(B);if($==="]"&&B.imageAltText){I.highlightFormatting&&(B.formatting="image");var ye=b(B);return B.imageAltText=!1,B.image=!1,B.inline=B.f=x,ye}if($==="["&&!B.image)return B.linkText&&F.match(/^.*?\]/)||(B.linkText=!0,I.highlightFormatting&&(B.formatting="link")),b(B);if($==="]"&&B.linkText){I.highlightFormatting&&(B.formatting="link");var ye=b(B);return B.linkText=!1,B.inline=B.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?x:h,ye}if($==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){B.f=B.inline=m,I.highlightFormatting&&(B.formatting="link");var ye=b(B);return ye?ye+=" ":ye="",ye+M.linkInline}if($==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){B.f=B.inline=m,I.highlightFormatting&&(B.formatting="link");var ye=b(B);return ye?ye+=" ":ye="",ye+M.linkEmail}if(I.xml&&$==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var me=F.string.indexOf(">",F.pos);if(me!=-1){var se=F.string.substring(F.start,me);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(se)&&(B.md_inside=!0)}return F.backUp(1),B.htmlState=Z.startState(k),u(F,B,P)}if(I.xml&&$==="<"&&F.match(/^\/\w*?>/))return B.md_inside=!1,"tag";if($==="*"||$==="_"){for(var ge=1,ae=F.pos==1?" ":F.string.charAt(F.pos-2);ge<3&&F.eat($);)ge++;var pe=F.peek()||" ",Me=!/\s/.test(pe)&&(!d.test(pe)||/\s/.test(ae)||d.test(ae)),xe=!/\s/.test(ae)&&(!d.test(ae)||/\s/.test(pe)||d.test(pe)),Ke=null,et=null;if(ge%2&&(!B.em&&Me&&($==="*"||!xe||d.test(ae))?Ke=!0:B.em==$&&xe&&($==="*"||!Me||d.test(pe))&&(Ke=!1)),ge>1&&(!B.strong&&Me&&($==="*"||!xe||d.test(ae))?et=!0:B.strong==$&&xe&&($==="*"||!Me||d.test(pe))&&(et=!1)),et!=null||Ke!=null){I.highlightFormatting&&(B.formatting=Ke==null?"strong":et==null?"em":"strong em"),Ke===!0&&(B.em=$),et===!0&&(B.strong=$);var ie=b(B);return Ke===!1&&(B.em=!1),et===!1&&(B.strong=!1),ie}}else if($===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return b(B);F.backUp(1)}if(I.strikethrough){if($==="~"&&F.eatWhile($)){if(B.strikethrough){I.highlightFormatting&&(B.formatting="strikethrough");var ie=b(B);return B.strikethrough=!1,ie}else if(F.match(/^[^\s]/,!1))return B.strikethrough=!0,I.highlightFormatting&&(B.formatting="strikethrough"),b(B)}else if($===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return b(B);F.backUp(2)}}if(I.emoji&&$===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){B.emoji=!0,I.highlightFormatting&&(B.formatting="emoji");var he=b(B);return B.emoji=!1,he}return $===" "&&(F.match(/^ +$/,!1)?B.trailingSpace++:B.trailingSpace&&(B.trailingSpaceNewLine=!0)),b(B)}function m(F,B){var z=F.next();if(z===">"){B.f=B.inline=h,I.highlightFormatting&&(B.formatting="link");var K=b(B);return K?K+=" ":K="",K+M.linkInline}return F.match(/^[^>]+/,!0),M.linkInline}function x(F,B){if(F.eatSpace())return null;var z=F.next();return z==="("||z==="["?(B.f=B.inline=y(z==="("?")":"]"),I.highlightFormatting&&(B.formatting="link-string"),B.linkHref=!0,b(B)):"error"}var g={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function y(F){return function(B,z){var K=B.next();if(K===F){z.f=z.inline=h,I.highlightFormatting&&(z.formatting="link-string");var $=b(z);return z.linkHref=!1,$}return B.match(g[F]),z.linkHref=!0,b(z)}}function U(F,B){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(B.f=N,F.next(),I.highlightFormatting&&(B.formatting="link"),B.linkText=!0,b(B)):o(F,B,h)}function N(F,B){if(F.match(/^\]:/,!0)){B.f=B.inline=S,I.highlightFormatting&&(B.formatting="link");var z=b(B);return B.linkText=!1,z}return F.match(/^([^\]\\]|\\.)+/,!0),M.linkText}function S(F,B){return F.eatSpace()?null:(F.match(/^[^\s]+/,!0),F.peek()===void 0?B.linkTitle=!0:F.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),B.f=B.inline=h,M.linkHref+" url")}var H={startState:function(){return{f:w,prevLine:{stream:null},thisLine:{stream:null},block:w,htmlState:null,indentation:0,inline:h,text:s,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(F){return{f:F.f,prevLine:F.prevLine,thisLine:F.thisLine,block:F.block,htmlState:F.htmlState&&Z.copyState(k,F.htmlState),indentation:F.indentation,localMode:F.localMode,localState:F.localMode?Z.copyState(F.localMode,F.localState):null,inline:F.inline,text:F.text,formatting:!1,linkText:F.linkText,linkTitle:F.linkTitle,linkHref:F.linkHref,code:F.code,em:F.em,strong:F.strong,strikethrough:F.strikethrough,emoji:F.emoji,header:F.header,setext:F.setext,hr:F.hr,taskList:F.taskList,list:F.list,listStack:F.listStack.slice(0),quote:F.quote,indentedCode:F.indentedCode,trailingSpace:F.trailingSpace,trailingSpaceNewLine:F.trailingSpaceNewLine,md_inside:F.md_inside,fencedEndRE:F.fencedEndRE}},token:function(F,B){if(B.formatting=!1,F!=B.thisLine.stream){if(B.header=0,B.hr=!1,F.match(/^\s*$/,!0))return R(B),null;if(B.prevLine=B.thisLine,B.thisLine={stream:F},B.taskList=!1,B.trailingSpace=0,B.trailingSpaceNewLine=!1,!B.localState&&(B.f=B.block,B.f!=P)){var z=F.match(/^\s*/,!0)[0].replace(/\t/g,f).length;if(B.indentation=z,B.indentationDiff=null,z>0)return null}}return B.f(F,B)},innerMode:function(F){return F.block==P?{state:F.htmlState,mode:k}:F.localState?{state:F.localState,mode:F.localMode}:{state:F,mode:H}},indent:function(F,B,z){return F.block==P&&k.indent?k.indent(F.htmlState,B,z):F.localState&&F.localMode.indent?F.localMode.indent(F.localState,B,z):Z.Pass},blankLine:R,getType:b,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return H},"xml"),Z.defineMIME("text/markdown","markdown"),Z.defineMIME("text/x-markdown","markdown")})},loD1:function(Be,ee){function v(Z,Q,I,k,_,O,M){if(_===0)return!1;var T=_,n=0,p=Z;if(M>Q+T&&M>k+T||MZ+T&&O>I+T||O=p.x&&T<=p.x+p.width&&n>=p.y&&n<=p.y+p.height},clone:function(){return new O(this.x,this.y,this.width,this.height)},copy:function(T){this.x=T.x,this.y=T.y,this.width=T.width,this.height=T.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},O.create=function(T){return new O(T.x,T.y,T.width,T.height)};var M=O;Be.exports=M},mLcG:function(Be,ee){var v=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(Z){setTimeout(Z,16)};Be.exports=v},n1HI:function(Be,ee,v){var Z=v("hX1E"),Q=Z.normalizeRadian,I=Math.PI*2;function k(_,O,M,T,n,p,a,t,A){if(a===0)return!1;var l=a;t-=_,A-=O;var i=Math.sqrt(t*t+A*A);if(i-l>M||i+ln&&(n+=I);var d=Math.atan2(A,t);return d<0&&(d+=I),d>=T&&d<=n||d+I>=T&&d+I<=n}ee.containStroke=k},n6Mw:function(Be,ee,v){var Z=v("SrGk"),Q=v("bYtY"),I=v("Fofx");function k(O,M){Z.call(this,O,M,"clipPath","__clippath_in_use__")}Q.inherits(k,Z),k.prototype.update=function(O){var M=this.getSvgElement(O);M&&this.updateDom(M,O.__clipPaths,!1);var T=this.getTextSvgElement(O);T&&this.updateDom(T,O.__clipPaths,!0),this.markUsed(O)},k.prototype.updateDom=function(O,M,T){if(M&&M.length>0){var n=this.getDefs(!0),p=M[0],a,t,A=T?"_textDom":"_dom";p[A]?(t=p[A].getAttribute("id"),a=p[A],n.contains(a)||n.appendChild(a)):(t="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,a=this.createElement("clipPath"),a.setAttribute("id",t),n.appendChild(a),p[A]=a);var l=this.getSvgProxy(p);if(p.transform&&p.parent.invTransform&&!T){var i=Array.prototype.slice.call(p.transform);I.mul(p.transform,p.parent.invTransform,p.transform),l.brush(p),p.transform=i}else l.brush(p);var c=this.getSvgElement(p);a.innerHTML="",a.appendChild(c.cloneNode()),O.setAttribute("clip-path","url(#"+t+")"),M.length>1&&this.updateDom(a,M.slice(1),T)}else O&&O.setAttribute("clip-path","none")},k.prototype.markUsed=function(O){var M=this;O.__clipPaths&&Q.each(O.__clipPaths,function(T){T._dom&&Z.prototype.markUsed.call(M,T._dom),T._textDom&&Z.prototype.markUsed.call(M,T._textDom)})};var _=k;Be.exports=_},n6Qo:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return T});var Z=v("q1tI"),Q=v("biw7"),I=v("fyJ8");function k(n){var p=n.className,a=n.index,t=n.children,A=n.colSpan,l=n.rowSpan,i=Z.useContext(Q.a),c=i.prefixCls,d=i.fixedInfoList,f=d[a];return Z.createElement(I.a,Object.assign({className:p,index:a,component:"td",prefixCls:c,record:null,dataIndex:null,render:function(){return{children:t,props:{colSpan:A,rowSpan:l}}}},f))}function _(n){return Z.createElement("tr",Object.assign({},n))}function O(n){var p=n.children,a=Z.useContext(Q.a),t=a.prefixCls;return Z.createElement("tfoot",{className:"".concat(t,"-summary")},p)}var M=ee.b=O,T={Cell:k,Row:_}},nCxF:function(Be,ee,v){var Z=v("QBsz"),Q=Z.min,I=Z.max,k=Z.scale,_=Z.distance,O=Z.add,M=Z.clone,T=Z.sub;function n(p,a,t,A){var l=[],i=[],c=[],d=[],f,o,u,E;if(A){u=[Infinity,Infinity],E=[-Infinity,-Infinity];for(var R=0,w=p.length;R{A();const i=this._commands.get(a);(i==null?void 0:i.isEmpty())&&this._commands.delete(a)});return this._onDidRegisterCommand.fire(a),l}registerCommandAlias(n,p){return T.registerCommand(n,(a,...t)=>a.get(M).executeCommand(p,...t))}getCommand(n){const p=this._commands.get(n);return!p||p.isEmpty()?void 0:Q.a.first(p)}getCommands(){const n=new Map;for(const p of this._commands.keys()){const a=this.getCommand(p);a&&n.set(p,a)}return n}};T.registerCommand("noop",()=>{})},nukY:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgWEQCAEy6IVWuCB62GVICFIYkcsvMC+LW8LL7BIiTiEhCweInjgPrRCC2KBJTBVYzm24yRO4ty3kziJj9ie+tC/d9oaT2b67ume7irJsjdbVf19X/266quvjjaEEG8w8yukk7ZAii1gMHODEOK3RPRSivXUqmXcAgb07+jomDk2NvYPZn4u4/bQ6qfUAiboSEKI5cz8XyJanVJdtVoZtsAE6EXYdzPzv4hoToZtolVPoQUmgV6E/QVm/hMRNaVQX61SRi3wDOiwg5Tya0qpn2TUJlrtFFqgIujFnv27zPztFOqsVcqgBaqCzsyGlPJXzPy5DNpFq5wyC1QFHXr29fVN6+/v/zszfyBlemt1MmYBW9Bhi3w+v7hQKJwkog0Zs41WN0UWcAS96K9vI6J3mHl+inTXqmTIAq5Ahz1yudxHDcN4k5mbM2QfrWpKLOAa9CLsB4ioLSW6azUyZAFPoBdh/w4RvZYhG2lVU2ABz6AXYf8FEb2cAv21ChmxgC/Qu7q6moeHh/9KRB/JiJ20mnVuAV+gQ+fu7u4FQ0ND/yGiLXVuAy1+BizgG/Ri2HEjEZ1k5kUZsJVWsY4tEAh06N3e3v7B8fHxt4hoWh3bIRbRm5qaaHx83NOzDcMg/DCz+RNlamhoMKtXSkX5mJrUHRh0SCml/CIzn8D+mJpInYKHNDY20p49e2hoaIguX75MIyMjrrRatWoVLVu2jJ48eUJnzpxxVcZPpunTp9POnTvNot3d3TQ8POynmsSUCQ1MIcSrzPx6YjSrIMiSJUvM3jCK9PTpU3r48KHrqhcvXkxr166lQqFAp06dMn+7SRp0N1Z6Nk+orS6E+Bkzf8WfKNGX2rdvH6EnjSINDAxQb2+v66p37NhBM2bMoNu3b9PVq1ddl9OguzbVpIyhgs7MTUKIvxDR8/7EibbU1q1byfI7w3pSc3MzTZkyhbyADsABOnzsrq4uwmhgJYw406ZVn+4sXbqUFi1aZLo8fX19VdUYHR2dNEqsWbOG5sxxf0ISckydOtWsH/J5mQ88ePCArl+/HpaJQ6knVNAhkRBiLjP/m4jedfBSntatW2eC5wV0QAc3CkBcuHBhkoWslyCo2S5dukT37t2bqGbTpk00b968oNW6Ko/n4vlJSqGDDuXy+fza4tbeZUlSNgpZvIKOSMvu3btNF+rs2bP0+PHjmoA+e/Zsc+RxmzBSwU1CunbtGmGEcJswAgwODrrNXpN8kYBehP29SincFTOjJprE9BCvoK9evZrgfgBwgG4lRDkA4/37923dhJUrV5qjAUA6d+5cVa0REvTibpRXpKMuHoDK5XKfMQzj17gNzEOxSLMi2oFGBCj9/f2Bn+UFdPSSu3btMiM/PT09pp9tpS1btpg+NEC/ePFiVbn0ZNRfk0XWo1viSCm/oZT6gT/xwi+1ceNGmj9/vum/huFHegHdylv+bPTkmCijF8bk1M5NCAo63Be87E4JLhZGDqQ7d+64WtiCXl5cHCcZwvz/kYMOYXO53DEiag1TcL91xQU6IilYgLFgHhsbM1VA775t2zaaOXMm3bp1y/SH7VJQ0MOa7FaSsdKcw287hV2uJqAzc6OU8nfM/KmwFfBaXxygoxcFzAjXwWXCD/4G/HBnADu2AnR2dpohQfw33KtKCf79woULzZXKauFF9KrVthaUgo4Frmp+PCbLVjjy0aNHtgtaGCGRMg86jNDV1TVreHj4bSLa5xXOMPPHBfrevXtt1cA2gLt375p58BIgMuM3YVTA6FAplYLe0dFB1shSntftZBTrEvv379eglxown8+vKBQKuMj03bhVDMkCHT1ntUb2IhZ6a/R+TnF0PBe9J0Jv2NeC3wsWLJiIoGByaiUNupcWcJe3Jq5LGex7C4XCP4lotjsRw81lgR5ureQIeqUec/v27aabgs1Z5XHnICu4drsNdY8edsvb1CelfEkp9fsaPnLiURboiGNbrkIYcmB0KF/8sasXkGMC6nWvS1BZNehBLeihvJTy+0qpb3ooElrWsH10P4JhQomFI7gwp0+frul+71LQ8aJX6/0RXsSkFwnrDXb75qEPkp6MltAgpXxZKYXD1bGkuEFHL46YOVwWgIF95aUJ/jn8d4AGWb0mLDjZjVQ6vOjVoj7ySymfU0rhQwOxnUaKE3RMXOGyIKRoRUbwN8J41g8gx8QU/46DGV6TUyweMlg9cKW6EfLE5i+EKCEDkvU3wpF2B0TwgpXuxPQqe5T5azYZ7ejoWDI6Oiri/nRMXKADGjwbPTr8eUADuK2tsFYj49/Pnz8/CfQbN244Roiw2one2gl0O5gwiuBFxG/E6LHjEQn77NevX2/G0vESej3+FyXAbuuuCehCCGybe4uZP+xWsKjyRQ06lvkBK8KNpYsxGzZsMMOJ5Qk+MtwX5Ec5q0cs7dGxkOTUU1rbcP2CDlcK+22wHQFbIxAFKj1Kh7g6dMCEG5vJgmwYi6pt7eqtFeg/YubDcShY/swoQUc8HaeYkDDJLN20hYkdXgIAi3/HyiZ+A5xKE8Jago5QJiCGy2KNKJUWjHD0DyMHZMao4/b4XxLaPXLQpZRfVUr9NAnKQoYoQS9d6ClfdbRO77s9UV8r0OGmbN682XSpADDcFMhYbWUULgxeWvjqyOs00iSl3SMFHVdhFAoFfEggMTfwRgn63LlzTWgwrEspfbWxdXgbk0ZrMhqV6zJr1izT98YLCvcJLon1ItptAbBsCF/9ypUr5tbipKfIQC8u96O1E3XKKErQcQ0FdhfCLcEVEW4TelW8JHAdMEHFSincgqhAh4sFOXEEEC9WJVfEDnSUwXFAa7sv3B3s1QljS4Vbm3nNFwnovb29UwcGBt5m5vd7FSjq/NbQiyEXPWWYCfFxTOawwGJ3cBm9NVwFREkANv4uvYYDL0kUoOMZmBDjlJIVOqw2eXWzqQsvCoCHj4/e/ebNm+be9SROVCMBXQjxc2b+cpgQhVXX8uXLzYZGQiMDyqCHBQCFtUEL9QLy0tNL6EFxiAFA46fS2U1MTHFYGr0jRoRSHx2ugdPEzwpVVgIXgANKjDhWOBNgIrpS7S4aN6BDV7ysGCWtemFLAI9DGEkCPnTQhRBfZ+YfhgVm2PWgQRA2C7Jpyk4mDN84JVQKJsAu36aLfPCL4TYAtvKXLcwFoxUrVhB+kAAfXhwsWNm5Gm5BR52wJerHQpQ1MiH2j5+kpFBBx+dfiAjXSSf6q9PwhzHkli/WBGkUAARocRlRpevbcPDCOnQBwJ1GkVLQnfaaQG7499CnUo8OEPFyA2zI5+aEvhfQLbuhDEKQSNjekMoeHVdcKKVEPd2sC5cCvW3Qa+qsfeZhNmzY4UXo6WWy6Ad0C3jY1cnVCtKp+CkbSo8uhJhRvLToPX6E0GUqW8Dy5d0ACrjQcwMwt7F6O7sHuakrie0ZCui5XO4EEX0piQpqmbQFYIHAoOdyuW8R0fe0ObUFkmyBQKBLKT/JzH9O0gVFSTa2li0+C/gGXUq5iZn/p78mHV/j6Se7t4Av0ItXV5zMyo257s2pcybVAp5Bx+dbpJS4T/GzSVVKy6UtUG4Bz6BLKV9TSuHr0TppC9SNBTyBXrwd9zf6o1x1075a0KIFXIMupdyulMItW7FcPKRbTFsgiAVcgd7e3j6vUCggwrI5yMN0WW2BuCzgCDpi5EKIPxLRi3EJqZ+rLRDUAo6gCyFeZ+ZXgz5Il9cWiNMCtqBLKb+glPplnALqZ2sLhGGBqqDn8/m9Sql30v6xrTCMqOtIvgUqgt7T07NwcHAQe8vXJV8FLaG2gLMFngEdX3+WUr7JzB9zLq5zaAvUhwWeAV0I8QYzv1If4msptQXcWWAS6Llc7gARtbkrqnNpC9SPBSZAb29vf9/4+Dg+phXblc71YzYtab1ZwAS9s7Nz6cjICK50ju0jWvVmOC1vfVnAKF7pjPsRP1RfomtptQXcWwB7y3+slDrkvojOqS1QfxZw3AJQfyppibNkgWPHjrGDvsowjMMa9CxRkUJdHUAfNwzjQGtr6wkNegobP0sq2YD+1DCMz7e2tv4B9tCgZ4mKFOpaBfTBxsbGTx85cuRvlsoa9BQ2fpZUqgD6w4aGhhdbWlpwS8VE0qBniYoU6loKumEYdxobG184fPhwR7mqGvQUNn6WVCoB/VpDQ8PzLS0tZyvpr0HPEhUp1LUI+gUi+vjRo0cvV1NRg57Cxs+SSsePH+9qamr6xKFDh27a6a1BzxIVKdS1ra1t4cGDB/udVPs/YIoD4AHLutsAAAAASUVORK5CYII="},onxn:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAQFElEQVRoQ71aCXRUVZr+7ttqr6yVPSRASCBIVFBUWgUURZFW7FYa9Xhc2lHWGdM9bYszaqa1tcUFV9RRu3V6etw4DQJqY4MDLUJQEQIYEsieqspW2Wp/9ZY7570ia1VIRXH+cyo59e6/3O/+//3vf/9XBGeR8sr/lipS6QpKyMUApoOiGISmgBIbJZSAwkdA+ihQB0JqCPAVy3K7Op5Z3Hm2pkF+qKKiik/sfV7lF5SSOwF6MSiYiekklBAcIqDvmAzkLy1/WNo7MfmR3N8bUF75fpOInnIK+iClsP2QSQzIEiAIBk8L9uwN7ooLgt9H54QBUUqJo3zHrZTgSVDkfx+jY8lcaqgDJ0awl5S6KGXWezYu+W9CCJ2IjQkByvzXnZNlRXoPlM4dywghBJRhwBACkNPRp1nRpqX/p6CqJq2Cqqr+XSdFgVGg2DRlG85FE7Y6i/Bs6NqvZdZwc9uz1zUnCiouIPrBzaxr9+Eb816v2zygKONXO+apKrZSUEeMcg0AwwAMB8JMaI2iABUFqihC7e0HMQr43YwDuGvqd/B2yni0bn7/X6W5i47J5aUC1K1pL9V5zwQurnXXqmnrKMX8vNdO3aQJp//641ug0D9RUMOgMs0BLBf9aN44C0RlGbKrHVSW8OCsY1hXVg0qq6issStfdOQ+ssrw+VKVKtfnPHvSM2aEjB6gFQuMzjaXi4AazclJOcWR391LqbphiI+AcGwMkDsNO7DCvBNFllYc8J6L273/8b0gamEot7WDhsJ4+JxDWHleva6ntQl0c2PRK/fYv1zESOwjjicPb463v2KW1rWyeIVK1Xc1JSeZ3E+XG35zDUB1PsKwYHgeGOaROVw13nI8jmxr9Chp6MvHPM9boDTB7K1SqH4/wLIgRgMIy4JTJZCudgR8Et77yW5cNrlb193WotLaOn7TvOn9a8KuwIbs3x/77ehViwHkXDntY0rpEo1RDPF0m3AB+b11OViOxSS2B4WcGy7GgXopH4u5SryVXwGek3W9vrAVs5zvIUSNCXtH6eiE4vNH+QkBa7fBEvRg2/kfoaOHxfrm+dh67R6k2RWdpaNeUpSWnu0ZZUk3BI93Xpy98eRXw43FAGpdWdQDihRR5CAGObCciu6kZGSrPeAhg+EU8FYRooVBRnonBENkUN8jrlV4PfjzhMFojHJ7Z9RDo6jQ7MOuqz8GI0r4pCEHN14Y9ZJGx48xvpIMP1V8kj91UuEksvzDKNrTiXSQsW3l9EKZyo2yxCDoF8ALCkxmKZpu4xBhVKQVt8FoD8EXtmCac0vioTagT8twEUlP21pSoOEwVH9AH51u7cFn132mlx5UoWCMrP5cSxQNDcQ9dQrNDhxsvzvj6eq34wNaVTRfVrEn4DOA52UIxkHgY656xsxWCBYR3zpn4drQxgl5ZyxmLQw1kMQg4IXCHfhZWUcMq9QnUc7MyqLb70m7/6ucuIDcq4uuFsPMTm2Q4/XT78zEqMid06DnCNfRPDyl3In3rQvGk5rQON/pxndXvQPeFCdMFJVSFaR/f9tVuRtP7IoJuTdWL69YLH/7aKLHCmeKIGtWiz7BhsqpCPeb4DVYEGSMCDEGeIkZzX6CPRkLcdhaOiEgA8xUkvGY5V3cPts1pnyoumdn+kPfXhMD6G+rrvDOVFsSLjQNSUE4Sty6obovihEJCjFGWwMEp4QcPFbym9gJaftGkvVUDZ4bO6z7G3Fw8fsjxhm5DyqXrD+TOoL9yfft178M+nHL6ut+eYFS++ZEltGYHEB6cZsu0vR1IYI91hhxr92B59hF2Jty0YgxqlJIzS16MtCJZSEUThpxxg0IqIEgjs99EbZhS82Fm6EIGaCMCUpARvCLnsys1452DgL6ZtUFTZlqX8FEAAmWMDJmOnWR9upcBKRS8JmZYA0GRDo7YJ5RisaICTc0XhajVnK69Yw2nBizGVx2ZiwoSvGu4xVcXDSU3tlIGxjZC8lcohe+3kr3kuynqj/VAblWlZSoqlIzETAaLyPIyDmvSRfz+yZDmXH/CBWHGv24o+VCRNSRVYMWZrp34hCbngY2OWlohFJI7jaszjqIh35SO/ickXog+I4jnKotFkH4uKc87d+PPK8DqrnvnA0WhOME+fgQM85pgWCOQFUIvBkPg5jSIPZ78W8n87HNnxdXgVavqZ5uqMEgqBx7NLBJdrCOdF02V2xFyN2LkqR+/M+SL4cB6oPR+w3CyXOhsnaEjvc+rnSJL+uAjq46vzZF9RWPP/1YDrPDi9TJ0TouJBbgSPhnuKlrCeRo+TcuKX1eKJ7Y4pmxmEFMZsy2tOH53C245dvFOHCTfqLoxEQ8MPqOIGKeAtk0Be3HfO8a3L07CS2/xNQa9PgIaPQYTpQIhS27V/8wbPSSpv3NOvX30QVIjEbZ5dYvd2xaKrR9IzW3gkpSDB9jEFCcKWP35e/huf8twK8WDt3zWLEdBv9xyIIDEdu5qK0UD2T2dewl7lXT57QR2xcZSq8pUSysICFtWrteIYym0rrN6KbRdBqPNCBSQ3TfaZlNSwKyM5r6RxPhOORmCTi44G30dipISWcx0IJhRRcM/hNQWTPCyfPwx12Oqhulb+qJc/W08/YyZQcul6oSKpEZXkZGqROsQUbEZ0QkJKCLSQHHS8g2dyGv6dMzrou2Z6SmxG7UhGFgNhOcXKbfZoau8QD4QA34sFO/2ASs83Hb3690bmL+XKUH+r7VlyoFSntCF5i0Ei1cAPexPB2MxHBYWvAHRAiHEtKMWnrmzK8VoFJT/AwXbyVYQtFy24cxQ8a+A2CUaBHbTS/BVftWeLcbX9pD+stnpvqCooeOWVMP6RKsISQVeNBwYCqoEsVfaSvFese9iUarvsqRxkZApYB2WYyzd4YrM3MyTq34a/SRKgKMAVAjMPf+Y5DtSM9CPHBsofQn05+3E+fKaUsppdsTmVFSvgc+jxV97uge0arxzcnzsdGstx4SJqXfCzAMWLMJES38ztCoKrL3Y+/1OwFVAhvphGLMBRd2QggMHZsvVK8A2yurNwpVbxDXyuInVao+mMhsUqe1oeXbfKgyp4MxmiRECI8Pci7BxuAt42a3eDbktg6ogWjoxKOrspx4e9F+ECUAPliPiPUcGPv2g1GjVYa2Fk/sW4E7hEOUIeSfNQ99Fqb8IgMi4x4cyYWdaDk8CRyvwGwdSrPZcxrwlW8WVnieQHhYY2hgggKVcD5biwuEE+hV7NitXIgONTUaRYEANFDxaEnqCUxNjuDBebVgpG4I/mrI5skQ/EPeURQWbYcmR8UJt5A4VxY9U8vm/0ux3Dp2uXvamjW7D+01mbDYIiDMUJzY87phz+lFQDThma478Mfg9RBIBD/lvsQ91q0oSWkAyw1VBIrCYFPHL/B44Jd6X05u17wUBGuzQfH5BrEdvHQjZJKEwgIruHArhEAtVNYIRhmqASNBAzqP50MFQ+0mcyrpXD2zaC+Zcvhi+URsqTxq2QzJAfg67BAMCiglGN6ltWT0w57bA5ZXoltCyzKnfa7IDJQID6oS/TkryPrnmuZXcEQqiXrqdJNRckWrd42ci9dDMJoh2UrAB2rBh1tjHBnw2NDbkIlDaqG47I1dRt3kf629uW6hdHjqePtIO4PkCA+GUIRD2gQBg0kGM8xbnEkEZ5T0LKh95AgHVeJ0MLLM6DIKyyJgMeAJ2y3Yq84eMkspIvWN+neWKOi6dh1UzgbRPgeC5yA4MuS9AaGexgwEu+x4UVlU8/Sbr83QAf1l3c+3XB6pWjYeoBHjFAj4DVBkogPSukMsR4e8RgFF1QAQKArRi1eNGq3ZeCr5VtQKsX1+rfzRyiCN1k/ZhQdKPoDC2NDdkA9HQfXwduDgVNqqChAOG7EC5U9/9Z8rH9CtfLL2p8tmSSe2TAiQ3ncnCAd5SJHxz2TKMnjVcQM+NM8f04zS3QOlt08fPzr/CeSbmxAJGOBzp+il1miSRQ7tVYXYJp5DH7Xeled5+Qa3Dkhrztd+XiNaaGhiBeppC5LEIBLmdW+NJonlsN86E8+lrICXGbtcVMPhwZou19iDo/PXQxF5hPvM0K762hVlNPW7UuF1pWFdeEXfR+88lqKND85g59orj5RKzedO1EvD+ZtIJt4WFiNV9qGdS8XXxhL0MPaEVMqdXVC90T2yvWwj5mXVwHMqG9aMfphTY88pLfG0VxVgu68MIc5Sef8b710yAtDna69cPU1qfiUh62dgOspNwUOWe9DGRM+ZRGmKtw62Xieuzq5Ceckn6D6ZCXNaAAZ7CLwp1jthrwnHvpuBfXIRvcZY+3Tpa1V6n3vQQ7RiAXe409/nUPosiU5iLL4QMaCeycFxbjK+4Gehkp8xpkoGKubKNdjgfwP9ioA8iweqyMKW1acDMaX64yaDzpocrHbdhg227YqBKMvyXju1YwQg7cvuNVfcXyy3nJ32J4AAMeFz4Tzs4mejgclBO5sCCoJ0tR9TVTeWipXIUz2YLrfoffMBsmb1InlSNwLdVljSYvveWqJ49OtbYGZlepehMpyXnZdKKvbop+2IXUwrKpjDHR93OdTeicVLgi6VwUJ7t89ijK4sQ2HP6dGrDm2PhLotetiNpgPVZXi741I8aN0t80R9Pv/VU4P9kJi0VLnm8iU5cvsOAu1Y//8jLZMlF3SBN0ZrRNFnBG8RRxza2utYf3syDjWVoIjV30Z8kzc7aR6579BgYRl30tvXLH7rPLn+7h8bjlZ5mFP9MDt8EMxD13lt4lpb2ZQc0qegnTeyyKOv2QE5FO3OSgzvFjjporyX6qKNwdMU/6UxpWTfmsuOFCrtZT8WKMKqyJkdbfSPpn5nql4XamMamN5GB0TvUK4KE6HbTqS5ma+eahgtO2ZY9fx2TlKtVziZp3Zl/FigUiZ3wOIYWZ/52pLR35oOU6oPtuw+dNdl6QfsAHmYlMZcEpiXsak6tnQY70bWubrUepjkNJTKTbGv8s8SSlOaD5Z0LwhL4XWmQvSa42rWrgf7+Fn7byVVV5KX6mLbTWcKueEa6etz+M+OphwqlZtmnSUME1bjJyb6vOmm8tc3PvrCeMIJZTLt5zBb1i59tUxuvDeRm+14RscbD1IB9Uo6ZnHRfp2XsX4489Ujy8eT08YTAjSg6Plf333p9HDLpzPlpnEvg4kYH83TrZrxcugy7IkU4SnrdszlW6AS5iOzndzu2FAbexmKY2RCgDR5zVsfrFm2YSrc92cqveNe2xMF9pk4HZvFMmQwflxrqMZFXKub49R1+ZtOne5hJaZpwoAG1GpXjhf/YXuxTK37pyLFPZSGErM7JleYCPVGRN7kreaXsp45OnY7aAwN3xvQcH1b1y65VabMwzMU5zQ79bMKmLHLm2GCEXC0jUkVRSLUF6hdW62c8n7WyzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},osHv:function(Be,ee,v){(function(Z){Z(v("VrN/"))})(function(Z){"use strict";var Q=Z.Pos;function I(d,f){return d.line-f.line||d.ch-f.ch}var k="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",_=k+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",O=new RegExp("<(/?)(["+k+"]["+_+"]*)","g");function M(d,f,o,u){this.line=f,this.ch=o,this.cm=d,this.text=d.getLine(f),this.min=u?Math.max(u.from,d.firstLine()):d.firstLine(),this.max=u?Math.min(u.to-1,d.lastLine()):d.lastLine()}function T(d,f){var o=d.cm.getTokenTypeAt(Q(d.line,f));return o&&/\btag\b/.test(o)}function n(d){return d.line>=d.max?void 0:(d.ch=0,d.text=d.cm.getLine(++d.line),!0)}function p(d){return d.line<=d.min?void 0:(d.text=d.cm.getLine(--d.line),d.ch=d.text.length,!0)}function a(d){for(;;){var f=d.text.indexOf(">",d.ch);if(f==-1){if(n(d))continue;return}if(!T(d,f+1)){d.ch=f+1;continue}var o=d.text.lastIndexOf("/",f),u=o>-1&&!/\S/.test(d.text.slice(o+1,f));return d.ch=f+1,u?"selfClose":"regular"}}function t(d){for(;;){var f=d.ch?d.text.lastIndexOf("<",d.ch-1):-1;if(f==-1){if(p(d))continue;return}if(!T(d,f+1)){d.ch=f;continue}O.lastIndex=f,d.ch=f;var o=O.exec(d.text);if(o&&o.index==f)return o}}function A(d){for(;;){O.lastIndex=d.ch;var f=O.exec(d.text);if(!f){if(n(d))continue;return}if(!T(d,f.index+1)){d.ch=f.index+1;continue}return d.ch=f.index+f[0].length,f}}function l(d){for(;;){var f=d.ch?d.text.lastIndexOf(">",d.ch-1):-1;if(f==-1){if(p(d))continue;return}if(!T(d,f+1)){d.ch=f;continue}var o=d.text.lastIndexOf("/",f),u=o>-1&&!/\S/.test(d.text.slice(o+1,f));return d.ch=f+1,u?"selfClose":"regular"}}function i(d,f){for(var o=[];;){var u=A(d),E,R=d.line,w=d.ch-(u?u[0].length:0);if(!u||!(E=a(d)))return;if(E=="selfClose")continue;if(u[1]){for(var P=o.length-1;P>=0;--P)if(o[P]==u[2]){o.length=P;break}if(P<0&&(!f||f==u[2]))return{tag:u[2],from:Q(R,w),to:Q(d.line,d.ch)}}else o.push(u[2])}}function c(d,f){for(var o=[];;){var u=l(d);if(!u)return;if(u=="selfClose"){t(d);continue}var E=d.line,R=d.ch,w=t(d);if(!w)return;if(w[1])o.push(w[2]);else{for(var P=o.length-1;P>=0;--P)if(o[P]==w[2]){o.length=P;break}if(P<0&&(!f||f==w[2]))return{tag:w[2],from:Q(d.line,d.ch),to:Q(E,R)}}}}Z.registerHelper("fold","xml",function(d,f){for(var o=new M(d,f.line,0);;){var u=A(o);if(!u||o.line!=f.line)return;var E=a(o);if(!E)return;if(!u[1]&&E!="selfClose"){var R=Q(o.line,o.ch),w=i(o,u[2]);return w&&I(w.from,R)>0?{from:R,to:w.from}:null}}}),Z.findMatchingTag=function(d,f,o){var u=new M(d,f.line,f.ch,o);if(u.text.indexOf(">")==-1&&u.text.indexOf("<")==-1)return;var E=a(u),R=E&&Q(u.line,u.ch),w=E&&t(u);if(!E||!w||I(u,f)>0)return;var P={from:Q(u.line,u.ch),to:R,tag:w[2]};return E=="selfClose"?{open:P,close:null,at:"open"}:w[1]?{open:c(u,w[2]),close:P,at:"close"}:(u=new M(d,R.line,R.ch,o),{open:P,close:i(u,w[2]),at:"open"})},Z.findEnclosingTag=function(d,f,o,u){for(var E=new M(d,f.line,f.ch,o);;){var R=c(E,u);if(!R)break;var w=new M(d,f.line,f.ch,o),P=i(w,R.tag);if(P)return{open:R,close:P}}},Z.scanForClosingTag=function(d,f,o,u){var E=new M(d,f.line,f.ch,u?{from:0,to:u}:null);return i(E,o)}})},p5ED:function(Be,ee,v){"use strict";var Z=v("+L6B"),Q=v("2/Rp"),I=v("5Dmo"),k=v("3S7+"),_=v("k1fw"),O=v("9og8"),M=v("tJVT"),T=v("WmNS"),n=v.n(T),p=v("q1tI"),a=v.n(p),t=v("vHTk"),A=v.n(t),l=v("yEEn"),i=v("ZW9T"),c=v("1vsH"),d=v("V0Rq"),f=v("m3rI");ee.a=function(o){var u,E,R,w,P,C,b,s=o.editOffice,h=s===void 0?"view":s,m=o.data,x=o.theme,g=o.type,y=o.filename,U=o.monacoEditor,N=o.className,S=o.style,H=o.close,F=o.onClose,B=o.hasMask,z=o.disabledDownload,K=Object(p.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),$=Object(M.a)(K,2),te=$[0],fe=$[1],Ae=Object(p.useState)(""),ce=Object(M.a)(Ae,2),ie=ce[0],ye=ce[1],le=Object(p.useState)(),me=Object(M.a)(le,2),se=me[0],ge=me[1],ae=window.ENV==="build"?"/react/build":"",pe=f.a.PROXY_SERVER||location.origin,Me,xe=1024*1024,Ke=10*xe,et=Object(p.useRef)();(u=m)!==null&&u!==void 0&&u.startsWith("/api")&&g!=="txt"&&(m=f.a.API_SERVER+m),g==="office"&&(Me=Object(c.T)(m).filesize,Me>Ke&&(g="other")),y&&U&&(U.filename=y),Object(p.useEffect)(function(){var Ne,ct,ft=(Ne=document.cookie)===null||Ne===void 0||((ct=Ne.replace(/\s/g,""))===null||ct===void 0)?void 0:ct.split(";");ft==null||ft.map(function(Ot){var dt=Ot.split("=");dt[0]==="_educoder_session"&&ye(dt[1])})},[]),Object(p.useEffect)(function(){g==="office"&&he()},[g,m]);var he=function(){var Ne=Object(O.a)(n.a.mark(function ct(){var ft,Ot,dt;return n.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return console.log("data:",m),ft=m,m.startsWith("http")||(ft=location.origin+ft),Ot=new URL(ft).pathname.split("/").pop(),jt.next=6,Object(d.W)({attachment_id:Ot});case 6:dt=jt.sent,ge(dt);case 8:case"end":return jt.stop()}},ct)}));return function(){return Ne.apply(this,arguments)}}(),Se=function(){if(m.startsWith("http")||m.startsWith("blob:")){Ue();return}Object(c.z)(y||"educoder",m,y)},Ue=function(){Object(c.x)(y||"educoder",decodeURIComponent(m))};return a.a.createElement("div",{style:Object(_.a)({},S||{}),className:"".concat(B&&A.a.bgBlack," ").concat(g?A.a.wrp:"hide")},H&&a.a.createElement("div",{className:A.a.close,ref:et},!z&&a.a.createElement(k.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return et.current}},a.a.createElement("span",{onClick:Ue},a.a.createElement("i",{className:"icon-quxiaozhiding"}))),a.a.createElement(k.a,{title:"\u5173\u95ED",getPopupContainer:function(){return et.current}},a.a.createElement("span",{className:"",onClick:F},a.a.createElement("i",{className:"icon-guanbi1"})))),a.a.createElement("div",{className:"".concat(A.a[N]," ").concat(N," ").concat(A.a.monaco," ").concat(g==="txt"?"show":"hide")},g==="txt"&&a.a.createElement(i.b,U)),g==="audio"&&a.a.createElement("audio",{src:"".concat(((E=m)===null||E===void 0?void 0:E.indexOf("http://"))>-1||((R=m)===null||R===void 0?void 0:R.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(m),autoPlay:!0}),g==="video"&&a.a.createElement(a.a.Fragment,null,((w=m)===null||w===void 0?void 0:w.indexOf("http"))>-1?a.a.createElement("video",{controls:!0,src:"".concat(m),autoPlay:!0}):a.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(m),autoPlay:!0})),g==="office"&&se&&a.a.createElement("iframe",{src:"".concat(ae,"/office.html?key=").concat(se.key,"&url=").concat(pe+se.url,"&callbackUrl=").concat(pe+se.callbackUrl,"&fileType=").concat(se.fileType,"&title=").concat(se.title,"&model=").concat(h,"&officeServer=").concat(f.a.OFFICE_SERVER,"&disabledDownload=").concat(!!z)}),g==="html"&&a.a.createElement("iframe",{src:m+"&disposition=inline"}),g==="pdf"&&a.a.createElement("iframe",{src:"".concat(ae,"/js/pdfview/index.html?url=").concat(m,"&disabledDownload=").concat(!!z)}),g==="image"&&a.a.createElement("img",{src:"".concat(((P=m)===null||P===void 0?void 0:P.indexOf("http://"))>-1||((C=m)===null||C===void 0?void 0:C.indexOf("https://"))>-1||(b=m)!==null&&b!==void 0&&b.startsWith("/api")?"":"data:image/png;base64,").concat(m)}),g==="other"&&a.a.createElement("div",null,a.a.createElement(Q.a,{type:"primary",size:"large",onClick:Se},a.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),g==="download"&&a.a.createElement(Q.a,{type:"primary",size:"large",onClick:Se},a.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Be,ee,v){},pmY6:function(Be,ee,v){"use strict";v.d(ee,"h",function(){return p}),v.d(ee,"g",function(){return t}),v.d(ee,"f",function(){return A}),v.d(ee,"e",function(){return l}),v.d(ee,"i",function(){return i}),v.d(ee,"b",function(){return c}),v.d(ee,"a",function(){return d}),v.d(ee,"d",function(){return f}),v.d(ee,"c",function(){return o});var Z=v("C/vA"),Q=v("JYp7");const I=!1;let k=null;function _(u){k=u}if(I){const u="__is_disposable_tracked__";_(new class{trackDisposable(E){const R=new Error("Potentially leaked disposable").stack;setTimeout(()=>{E[u]||console.log(R)},3e3)}setParent(E,R){if(E&&E!==d.None)try{E[u]=!0}catch(w){}}markAsDisposed(E){if(E&&E!==d.None)try{E[u]=!0}catch(R){}}markAsSingleton(E){}})}function O(u){return k==null||k.trackDisposable(u),u}function M(u){k==null||k.markAsDisposed(u)}function T(u,E){k==null||k.setParent(u,E)}function n(u,E){if(!k)return;for(const R of u)k.setParent(R,E)}function p(u){return k==null||k.markAsSingleton(u),u}class a extends Error{constructor(u){super(`Encountered errors while disposing of store. Errors: [${u.join(", ")}]`);this.errors=u}}function t(u){return typeof u.dispose=="function"&&u.dispose.length===0}function A(u){if(Q.a.is(u)){let E=[];for(const R of u)if(R)try{R.dispose()}catch(w){E.push(w)}if(E.length===1)throw E[0];if(E.length>1)throw new a(E);return Array.isArray(u)?[]:u}else if(u)return u.dispose(),u}function l(...u){const E=i(()=>A(u));return n(u,E),E}function i(u){const E=O({dispose:Object(Z.a)(()=>{M(E),u()})});return E}class c{constructor(){this._toDispose=new Set,this._isDisposed=!1,O(this)}dispose(){if(this._isDisposed)return;M(this),this._isDisposed=!0,this.clear()}clear(){try{A(this._toDispose.values())}finally{this._toDispose.clear()}}add(u){if(!u)return u;if(u===this)throw new Error("Cannot register a disposable on itself!");return T(u,this),this._isDisposed?c.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(u),u}}c.DISABLE_DISPOSED_WARNING=!1;class d{constructor(){this._store=new c,O(this),T(this._store,this)}dispose(){M(this),this._store.dispose()}_register(u){if(u===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(u)}}d.None=Object.freeze({dispose(){}});class f{constructor(){this._isDisposed=!1,O(this)}get value(){return this._isDisposed?void 0:this._value}set value(u){var E;if(this._isDisposed||u===this._value)return;(E=this._value)===null||E===void 0||E.dispose(),u&&T(u,this),this._value=u}clear(){this.value=void 0}dispose(){var u;this._isDisposed=!0,M(this),(u=this._value)===null||u===void 0||u.dispose(),this._value=void 0}clearAndLeak(){const u=this._value;return this._value=void 0,u&&T(u,null),u}}class o{constructor(u){this.object=u}dispose(){}}},psGv:function(Be,ee,v){var Z,Q;(function(){var I;(function(){"use strict";var M=[,,function(a){function t(i){this.__parent=i,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}t.prototype.clone_empty=function(){var i=new t(this.__parent);return i.set_indent(this.__indent_count,this.__alignment_count),i},t.prototype.item=function(i){return i<0?this.__items[this.__items.length+i]:this.__items[i]},t.prototype.has_match=function(i){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(i))return!0;return!1},t.prototype.set_indent=function(i,c){this.is_empty()&&(this.__indent_count=i||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.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)},t.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},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var i=this.__parent.current_line;return i.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),i.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),i.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,i.__items[0]===" "&&(i.__items.splice(0,1),i.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return this.__items.length===0},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(i){this.__items.push(i);var c=i.lastIndexOf(` `);c!==-1?this.__character_count=i.length-c:this.__character_count+=i.length},t.prototype.pop=function(){var i=null;return this.is_empty()||(i=this.__items.pop(),this.__character_count-=i.length),i},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var i="";return this.is_empty()?this.__parent.indent_empty_lines&&(i=this.__parent.get_indent_string(this.__indent_count)):(i=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),i+=this.__items.join("")),i};function A(i,c){this.__cache=[""],this.__indent_size=i.indent_size,this.__indent_string=i.indent_char,i.indent_with_tabs||(this.__indent_string=new Array(i.indent_size+1).join(i.indent_char)),c=c||"",i.indent_level>0&&(c=new Array(i.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}A.prototype.get_indent_size=function(i,c){var d=this.__base_string_length;return c=c||0,i<0&&(d=0),d+=i*this.__indent_size,d+=c,d},A.prototype.get_indent_string=function(i,c){var d=this.__base_string;return c=c||0,i<0&&(i=0,d=""),c+=i*this.__indent_size,this.__ensure_cache(c),d+=this.__cache[c],d},A.prototype.__ensure_cache=function(i){for(;i>=this.__cache.length;)this.__add_column()},A.prototype.__add_column=function(){var i=this.__cache.length,c=0,d="";this.__indent_size&&i>=this.__indent_size&&(c=Math.floor(i/this.__indent_size),i-=c*this.__indent_size,d=new Array(c+1).join(this.__indent_string)),i&&(d+=new Array(i+1).join(" ")),this.__cache.push(d)};function l(i,c){this.__indent_cache=new A(i,c),this.raw=!1,this._end_with_newline=i.end_with_newline,this.indent_size=i.indent_size,this.wrap_line_length=i.wrap_line_length,this.indent_empty_lines=i.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(i,c){return this.__indent_cache.get_indent_string(i,c)},l.prototype.get_indent_size=function(i,c){return this.__indent_cache.get_indent_size(i,c)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(i){return this.is_empty()||!i&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(i){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 d=this.__lines.join(` `);return i!==` `&&(d=d.replace(/[\n]/g,i)),d},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(i,c){return i=i||0,c=c||0,this.next_line.set_indent(i,c),this.__lines.length>1?(this.current_line.set_indent(i,c),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(i){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},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(i,c){for(var d=this.__lines.length-2;d>=0;){var f=this.__lines[d];if(f.is_empty())break;if(f.item(0).indexOf(i)!==0&&f.item(-1)!==c){this.__lines.splice(d+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}d--}},a.exports.Output=l},function(a){function t(A,l,i,c){this.type=A,this.text=l,this.comments_before=null,this.newlines=i||0,this.whitespace_before=c||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}a.exports.Token=t},,,function(a){function t(i,c){this.raw_options=A(i,c),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}t.prototype._get_array=function(i,c){var d=this.raw_options[i],f=c||[];return typeof d=="object"?d!==null&&typeof d.concat=="function"&&(f=d.concat()):typeof d=="string"&&(f=d.split(/[^a-zA-Z0-9_\/\-]+/)),f},t.prototype._get_boolean=function(i,c){var d=this.raw_options[i],f=d===void 0?!!c:!!d;return f},t.prototype._get_characters=function(i,c){var d=this.raw_options[i],f=c||"";return typeof d=="string"&&(f=d.replace(/\\r/,"\r").replace(/\\n/,` `).replace(/\\t/," ")),f},t.prototype._get_number=function(i,c){var d=this.raw_options[i];c=parseInt(c,10),isNaN(c)&&(c=0);var f=parseInt(d,10);return isNaN(f)&&(f=c),f},t.prototype._get_selection=function(i,c,d){var f=this._get_selection_list(i,c,d);if(f.length!==1)throw new Error("Invalid Option Value: The option '"+i+`' can only be one of the following values: `+c+` You passed in: '`+this.raw_options[i]+"'");return f[0]},t.prototype._get_selection_list=function(i,c,d){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(d=d||[c[0]],!this._is_valid_selection(d,c))throw new Error("Invalid Default Value!");var f=this._get_array(i,d);if(!this._is_valid_selection(f,c))throw new Error("Invalid Option Value: The option '"+i+`' can contain only the following values: `+c+` You passed in: '`+this.raw_options[i]+"'");return f},t.prototype._is_valid_selection=function(i,c){return i.length&&c.length&&!i.some(function(d){return c.indexOf(d)===-1})};function A(i,c){var d={};i=l(i);var f;for(f in i)f!==c&&(d[f]=i[f]);if(c&&i[c])for(f in i[c])d[f]=i[c][f];return d}function l(i){var c={},d;for(d in i){var f=d.replace(/-/g,"_");c[f]=i[d]}return c}a.exports.Options=t,a.exports.normalizeOpts=l,a.exports.mergeOpts=A},,function(a){var t=RegExp.prototype.hasOwnProperty("sticky");function A(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}A.prototype.restart=function(){this.__position=0},A.prototype.back=function(){this.__position>0&&(this.__position-=1)},A.prototype.hasNext=function(){return this.__position=0&&l=0&&i=l.length&&this.__input.substring(i-l.length,i).toLowerCase()===l},a.exports.InputScanner=A},function(a,t,A){var l=A(8).InputScanner,i=A(3).Token,c=A(10).TokenStream,d=A(11).WhitespacePattern,f={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(u,E){this._input=new l(u),this._options=E||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new d(this._input)};o.prototype.tokenize=function(){this._input.restart(),this.__tokens=new c,this._reset();for(var u,E=new i(f.START,""),R=null,w=[],P=new c;E.type!==f.EOF;){for(u=this._get_next_token(E,R);this._is_comment(u);)P.add(u),u=this._get_next_token(E,R);P.isEmpty()||(u.comments_before=P,P=new c),u.parent=R,this._is_opening(u)?(w.push(R),R=u):R&&this._is_closing(u,R)&&(u.opened=R,R.closed=u,R=w.pop(),u.parent=R),u.previous=E,E.next=u,this.__tokens.add(u),E=u}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(u,E){this._readWhitespace();var R=this._input.read(/.+/g);return R?this._create_token(f.RAW,R):this._create_token(f.EOF,"")},o.prototype._is_comment=function(u){return!1},o.prototype._is_opening=function(u){return!1},o.prototype._is_closing=function(u,E){return!1},o.prototype._create_token=function(u,E){var R=new i(u,E,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return R},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},a.exports.Tokenizer=o,a.exports.TOKEN=f},function(a){function t(A){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=A}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return this.__tokens_length===0},t.prototype.hasNext=function(){return this.__position=0&&A/),erb:o.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:o.starting_with(/{%/).until_after(/%}/),django_value:o.starting_with(/{{/).until_after(/}}/),django_comment:o.starting_with(/{#/).until_after(/#}/),smarty:o.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:o.starting_with(/{\*/).until_after(/\*}/),smarty_literal:o.starting_with(/{literal}/).until_after(/{\/literal}/)}}c.prototype=new l,c.prototype._create=function(){return new c(this._input,this)},c.prototype._update=function(){this.__set_templated_pattern()},c.prototype.disable=function(d){var f=this._create();return f._disabled[d]=!0,f._update(),f},c.prototype.read_options=function(d){var f=this._create();for(var o in i)f._disabled[o]=d.templating.indexOf(o)===-1;return f._update(),f},c.prototype.exclude=function(d){var f=this._create();return f._excluded[d]=!0,f._update(),f},c.prototype.read=function(){var d="";this._match_pattern?d=this._input.read(this._starting_pattern):d=this._input.read(this._starting_pattern,this.__template_pattern);for(var f=this._read_template();f;)this._match_pattern?f+=this._input.read(this._match_pattern):f+=this._input.readUntil(this.__template_pattern),d+=f,f=this._read_template();return this._until_after&&(d+=this._input.readUntilAfter(this._until_pattern)),d},c.prototype.__set_templated_pattern=function(){var d=[];this._disabled.php||d.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||d.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||d.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(d.push(this.__patterns.django._starting_pattern.source),d.push(this.__patterns.django_value._starting_pattern.source),d.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||d.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&d.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+d.join("|")+")")},c.prototype._read_template=function(){var d="",f=this._input.peek();if(f==="<"){var o=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&o==="?"&&(d=d||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&o==="%"&&(d=d||this.__patterns.erb.read())}else f==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(d=d||this.__patterns.handlebars_comment.read(),d=d||this.__patterns.handlebars_unescaped.read(),d=d||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(d=d||this.__patterns.django_value.read()),this._excluded.django||(d=d||this.__patterns.django_comment.read(),d=d||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(d=d||this.__patterns.smarty_comment.read(),d=d||this.__patterns.smarty_literal.read(),d=d||this.__patterns.smarty.read()));return d},a.exports.TemplatablePattern=c},,,,function(a,t,A){var l=A(19).Beautifier,i=A(20).Options;function c(d,f,o,u){var E=new l(d,f,o,u);return E.beautify()}a.exports=c,a.exports.defaultOptions=function(){return new i}},function(a,t,A){var l=A(20).Options,i=A(2).Output,c=A(21).Tokenizer,d=A(21).TOKEN,f=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,u=function(x,g){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=x.max_preserve_newlines,this.preserve_newlines=x.preserve_newlines,this._output=new i(x,g)};u.prototype.current_line_has_match=function(x){return this._output.current_line.has_match(x)},u.prototype.set_space_before_token=function(x,g){this._output.space_before_token=x,this._output.non_breaking_space=g},u.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},u.prototype.add_raw_token=function(x){this._output.add_raw_token(x)},u.prototype.print_preserved_newlines=function(x){var g=0;x.type!==d.TEXT&&x.previous.type!==d.TEXT&&(g=x.newlines?1:0),this.preserve_newlines&&(g=x.newlines0);return g!==0},u.prototype.traverse_whitespace=function(x){return x.whitespace_before||x.newlines?(this.print_preserved_newlines(x)||(this._output.space_before_token=!0),!0):!1},u.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},u.prototype.print_newline=function(x){this._output.add_new_line(x)},u.prototype.print_token=function(x){x.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(x.text))},u.prototype.indent=function(){this.indent_level++},u.prototype.get_full_indent=function(x){return x=this.indent_level+(x||0),x<1?"":this._output.get_indent_string(x)};var E=function(x){for(var g=null,y=x.next;y.type!==d.EOF&&x.closed!==y;){if(y.type===d.ATTRIBUTE&&y.text==="type"){y.next&&y.next.type===d.EQUALS&&y.next.next&&y.next.next.type===d.VALUE&&(g=y.next.next.text);break}y=y.next}return g},R=function(x,g){var y=null,U=null;return g.closed?(x==="script"?y="text/javascript":x==="style"&&(y="text/css"),y=E(g)||y,y.search("text/css")>-1?U="css":y.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?U="javascript":y.search(/(text|application|dojo)\/(x-)?(html)/)>-1?U="html":y.search(/test\/null/)>-1&&(U="null"),U):null};function w(x,g){return g.indexOf(x)!==-1}function P(x,g,y){this.parent=x||null,this.tag=g?g.tag_name:"",this.indent_level=y||0,this.parser_token=g||null}function C(x){this._printer=x,this._current_frame=null}C.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},C.prototype.record_tag=function(x){var g=new P(this._current_frame,x,this._printer.indent_level);this._current_frame=g},C.prototype._try_pop_frame=function(x){var g=null;return x&&(g=x.parser_token,this._printer.indent_level=x.indent_level,this._current_frame=x.parent),g},C.prototype._get_frame=function(x,g){for(var y=this._current_frame;y&&!(x.indexOf(y.tag)!==-1);){if(g&&g.indexOf(y.tag)!==-1){y=null;break}y=y.parent}return y},C.prototype.try_pop=function(x,g){var y=this._get_frame([x],g);return this._try_pop_frame(y)},C.prototype.indent_to_tag=function(x){var g=this._get_frame(x);g&&(this._printer.indent_level=g.indent_level)};function b(x,g,y,U){this._source_text=x||"",g=g||{},this._js_beautify=y,this._css_beautify=U,this._tag_stack=null;var N=new l(g,"html");this._options=N,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}b.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var x=this._source_text,g=this._options.eol;this._options.eol==="auto"&&(g=` `,x&&f.test(x)&&(g=x.match(f)[0])),x=x.replace(o,` `);var y=x.match(/^[\t ]*/)[0],U={text:"",type:""},N=new s,S=new u(this._options,y),H=new c(x,this._options).tokenize();this._tag_stack=new C(S);for(var F=null,B=H.next();B.type!==d.EOF;)B.type===d.TAG_OPEN||B.type===d.COMMENT?(F=this._handle_tag_open(S,B,N,U),N=F):B.type===d.ATTRIBUTE||B.type===d.EQUALS||B.type===d.VALUE||B.type===d.TEXT&&!N.tag_complete?F=this._handle_inside_tag(S,B,N,H):B.type===d.TAG_CLOSE?F=this._handle_tag_close(S,B,N):B.type===d.TEXT?F=this._handle_text(S,B,N):S.add_raw_token(B),U=F,B=H.next();var z=S._output.get_code(g);return z},b.prototype._handle_tag_close=function(x,g,y){var U={text:g.text,type:g.type};return x.alignment_size=0,y.tag_complete=!0,x.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),y.is_unformatted?x.add_raw_token(g):(y.tag_start_char==="<"&&(x.set_space_before_token(g.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&y.has_wrapped_attrs&&x.print_newline(!1)),x.print_token(g)),y.indent_content&&!(y.is_unformatted||y.is_content_unformatted)&&(x.indent(),y.indent_content=!1),!y.is_inline_element&&!(y.is_unformatted||y.is_content_unformatted)&&x.set_wrap_point(),U},b.prototype._handle_inside_tag=function(x,g,y,U){var N=y.has_wrapped_attrs,S={text:g.text,type:g.type};if(x.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),y.is_unformatted)x.add_raw_token(g);else if(y.tag_start_char==="{"&&g.type===d.TEXT)x.print_preserved_newlines(g)?(g.newlines=0,x.add_raw_token(g)):x.print_token(g);else{if(g.type===d.ATTRIBUTE?(x.set_space_before_token(!0),y.attr_count+=1):(g.type===d.EQUALS||g.type===d.VALUE&&g.previous.type===d.EQUALS)&&x.set_space_before_token(!1),g.type===d.ATTRIBUTE&&y.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(x.traverse_whitespace(g),N=N||g.newlines!==0),this._is_wrap_attributes_force)){var H=y.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&y.attr_count===1){var F=!0,B=0,z;do{if(z=U.peek(B),z.type===d.ATTRIBUTE){F=!1;break}B+=1}while(B<4&&z.type!==d.EOF&&z.type!==d.TAG_CLOSE);H=!F}H&&(x.print_newline(!1),N=!0)}x.print_token(g),N=N||x.previous_token_wrapped(),y.has_wrapped_attrs=N}return S},b.prototype._handle_text=function(x,g,y){var U={text:g.text,type:"TK_CONTENT"};return y.custom_beautifier_name?this._print_custom_beatifier_text(x,g,y):y.is_unformatted||y.is_content_unformatted?x.add_raw_token(g):(x.traverse_whitespace(g),x.print_token(g)),U},b.prototype._print_custom_beatifier_text=function(x,g,y){var U=this;if(g.text!==""){var N=g.text,S,H=1,F="",B="";y.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?S=this._js_beautify:y.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?S=this._css_beautify:y.custom_beautifier_name==="html"&&(S=function(Ae,ce){var ie=new b(Ae,ce,U._js_beautify,U._css_beautify);return ie.beautify()}),this._options.indent_scripts==="keep"?H=0:this._options.indent_scripts==="separate"&&(H=-x.indent_level);var z=x.get_full_indent(H);if(N=N.replace(/\n[ \t]*$/,""),y.custom_beautifier_name!=="html"&&N[0]==="<"&&N.match(/^(|]]>)$/.exec(N);if(!K){x.add_raw_token(g);return}F=z+K[1]+` `,N=K[4],K[5]&&(B=z+K[5]),N=N.replace(/\n[ \t]*$/,""),(K[2]||K[3].indexOf(` `)!==-1)&&(K=K[3].match(/[ \t]+$/),K&&(g.whitespace_before=K[0]))}if(N)if(S){var $=function(){this.eol=` `};$.prototype=this._options.raw_options;var te=new $;N=S(z+N,te)}else{var fe=g.whitespace_before;fe&&(N=N.replace(new RegExp(` (`+fe+")?","g"),` `)),N=z+N.replace(/\n/g,` `+z)}F&&(N?N=F+N+` `+B:N=F+B),x.print_newline(!1),N&&(g.text=N,g.whitespace_before="",g.newlines=0,x.add_raw_token(g),x.print_newline(!0))}},b.prototype._handle_tag_open=function(x,g,y,U){var N=this._get_tag_open_token(g);return(y.is_unformatted||y.is_content_unformatted)&&!y.is_empty_element&&g.type===d.TAG_OPEN&&g.text.indexOf("]*)/),this.tag_check=y?y[1]:""):(y=g.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=y?y[1]:"",(g.text.startsWith("{{#>")||g.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&g.next!==null?this.tag_check=g.next.text.split(" ")[0]:this.tag_check=g.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),g.type===d.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||g.closed&&g.closed.text==="/>";var U=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(U=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(U)))}};b.prototype._get_tag_open_token=function(x){var g=new s(this._tag_stack.get_parser_token(),x);return g.alignment_size=this._options.wrap_attributes_indent_size,g.is_end_tag=g.is_end_tag||w(g.tag_check,this._options.void_elements),g.is_empty_element=g.tag_complete||g.is_start_tag&&g.is_end_tag,g.is_unformatted=!g.tag_complete&&w(g.tag_check,this._options.unformatted),g.is_content_unformatted=!g.is_empty_element&&w(g.tag_check,this._options.content_unformatted),g.is_inline_element=w(g.tag_name,this._options.inline)||g.tag_name.includes("-")||g.tag_start_char==="{",g},b.prototype._set_tag_position=function(x,g,y,U,N){if(y.is_empty_element||(y.is_end_tag?y.start_tag_token=this._tag_stack.try_pop(y.tag_name):(this._do_optional_end_element(y)&&(y.is_inline_element||x.print_newline(!1)),this._tag_stack.record_tag(y),(y.tag_name==="script"||y.tag_name==="style")&&!(y.is_unformatted||y.is_content_unformatted)&&(y.custom_beautifier_name=R(y.tag_check,g)))),w(y.tag_check,this._options.extra_liners)&&(x.print_newline(!1),x._output.just_added_blankline()||x.print_newline(!0)),y.is_empty_element){if(y.tag_start_char==="{"&&y.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),y.indent_content=!0;var S=x.current_line_has_match(/{{#if/);S||x.print_newline(!1)}y.tag_name==="!--"&&N.type===d.TAG_CLOSE&&U.is_end_tag&&y.text.indexOf(` `)===-1||(y.is_inline_element||y.is_unformatted||x.print_newline(!1),this._calcluate_parent_multiline(x,y))}else if(y.is_end_tag){var H=!1;H=y.start_tag_token&&y.start_tag_token.multiline_content,H=H||!y.is_inline_element&&!(U.is_inline_element||U.is_unformatted)&&!(N.type===d.TAG_CLOSE&&y.start_tag_token===U)&&N.type!=="TK_CONTENT",(y.is_content_unformatted||y.is_unformatted)&&(H=!1),H&&x.print_newline(!1)}else y.indent_content=!y.custom_beautifier_name,y.tag_start_char==="<"&&(y.tag_name==="html"?y.indent_content=this._options.indent_inner_html:y.tag_name==="head"?y.indent_content=this._options.indent_head_inner_html:y.tag_name==="body"&&(y.indent_content=this._options.indent_body_inner_html)),!(y.is_inline_element||y.is_unformatted)&&(N.type!=="TK_CONTENT"||y.is_content_unformatted)&&x.print_newline(!1),this._calcluate_parent_multiline(x,y)},b.prototype._calcluate_parent_multiline=function(x,g){g.parent&&x._output.just_added_newline()&&!((g.is_inline_element||g.is_unformatted)&&g.parent.is_inline_element)&&(g.parent.multiline_content=!0)};var h=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],m=["a","audio","del","ins","map","noscript","video"];b.prototype._do_optional_end_element=function(x){var g=null;if(x.is_empty_element||!x.is_start_tag||!x.parent)return;if(x.tag_name==="body")g=g||this._tag_stack.try_pop("head");else if(x.tag_name==="li")g=g||this._tag_stack.try_pop("li",["ol","ul"]);else if(x.tag_name==="dd"||x.tag_name==="dt")g=g||this._tag_stack.try_pop("dt",["dl"]),g=g||this._tag_stack.try_pop("dd",["dl"]);else if(x.parent.tag_name==="p"&&h.indexOf(x.tag_name)!==-1){var y=x.parent.parent;(!y||m.indexOf(y.tag_name)===-1)&&(g=g||this._tag_stack.try_pop("p"))}else x.tag_name==="rp"||x.tag_name==="rt"?(g=g||this._tag_stack.try_pop("rt",["ruby","rtc"]),g=g||this._tag_stack.try_pop("rp",["ruby","rtc"])):x.tag_name==="optgroup"?g=g||this._tag_stack.try_pop("optgroup",["select"]):x.tag_name==="option"?g=g||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):x.tag_name==="colgroup"?g=g||this._tag_stack.try_pop("caption",["table"]):x.tag_name==="thead"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"])):x.tag_name==="tbody"||x.tag_name==="tfoot"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("thead",["table"]),g=g||this._tag_stack.try_pop("tbody",["table"])):x.tag_name==="tr"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(x.tag_name==="th"||x.tag_name==="td")&&(g=g||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),g=g||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return x.parent=this._tag_stack.get_parser_token(),g},a.exports.Beautifier=b},function(a,t,A){var l=A(6).Options;function i(c){l.call(this,c,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}i.prototype=new l,a.exports.Options=i},function(a,t,A){var l=A(9).Tokenizer,i=A(9).TOKEN,c=A(13).Directives,d=A(14).TemplatablePattern,f=A(12).Pattern,o={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:i.START,RAW:i.RAW,EOF:i.EOF},u=new c(/<\!--/,/-->/),E=function(R,w){l.call(this,R,w),this._current_tag_name="";var P=new d(this._input).read_options(this._options),C=new f(this._input);if(this.__patterns={word:P.until(/[\n\r\t <]/),single_quote:P.until_after(/'/),double_quote:P.until_after(/"/),attribute:P.until(/[\n\r\t =>]|\/>/),element_name:P.until(/[\n\r\t >\/]/),handlebars_comment:C.starting_with(/{{!--/).until_after(/--}}/),handlebars:C.starting_with(/{{/).until_after(/}}/),handlebars_open:C.until(/[\n\r\t }]/),handlebars_raw_close:C.until(/}}/),comment:C.starting_with(//),cdata:C.starting_with(//),conditional_comment:C.starting_with(//),processing:C.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var b=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=C.matching(b).until_after(b)}};E.prototype=new l,E.prototype._is_comment=function(R){return!1},E.prototype._is_opening=function(R){return R.type===o.TAG_OPEN},E.prototype._is_closing=function(R,w){return R.type===o.TAG_CLOSE&&w&&((R.text===">"||R.text==="/>")&&w.text[0]==="<"||R.text==="}}"&&w.text[0]==="{"&&w.text[1]==="{")},E.prototype._reset=function(){this._current_tag_name=""},E.prototype._get_next_token=function(R,w){var P=null;this._readWhitespace();var C=this._input.peek();return C===null?this._create_token(o.EOF,""):(P=P||this._read_open_handlebars(C,w),P=P||this._read_attribute(C,R,w),P=P||this._read_close(C,w),P=P||this._read_raw_content(C,R,w),P=P||this._read_content_word(C),P=P||this._read_comment_or_cdata(C),P=P||this._read_processing(C),P=P||this._read_open(C,w),P=P||this._create_token(o.UNKNOWN,this._input.next()),P)},E.prototype._read_comment_or_cdata=function(R){var w=null,P=null,C=null;if(R==="<"){var b=this._input.peek(1);b==="!"&&(P=this.__patterns.comment.read(),P?(C=u.get_directives(P),C&&C.ignore==="start"&&(P+=u.readIgnored(this._input))):P=this.__patterns.cdata.read()),P&&(w=this._create_token(o.COMMENT,P),w.directives=C)}return w},E.prototype._read_processing=function(R){var w=null,P=null,C=null;if(R==="<"){var b=this._input.peek(1);(b==="!"||b==="?")&&(P=this.__patterns.conditional_comment.read(),P=P||this.__patterns.processing.read()),P&&(w=this._create_token(o.COMMENT,P),w.directives=C)}return w},E.prototype._read_open=function(R,w){var P=null,C=null;return w||R==="<"&&(P=this._input.next(),this._input.peek()==="/"&&(P+=this._input.next()),P+=this.__patterns.element_name.read(),C=this._create_token(o.TAG_OPEN,P)),C},E.prototype._read_open_handlebars=function(R,w){var P=null,C=null;return w||this._options.indent_handlebars&&R==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(P=this.__patterns.handlebars_comment.read(),P=P||this.__patterns.handlebars.read(),C=this._create_token(o.COMMENT,P)):(P=this.__patterns.handlebars_open.read(),C=this._create_token(o.TAG_OPEN,P))),C},E.prototype._read_close=function(R,w){var P=null,C=null;return w&&(w.text[0]==="<"&&(R===">"||R==="/"&&this._input.peek(1)===">")?(P=this._input.next(),R==="/"&&(P+=this._input.next()),C=this._create_token(o.TAG_CLOSE,P)):w.text[0]==="{"&&R==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),C=this._create_token(o.TAG_CLOSE,"}}"))),C},E.prototype._read_attribute=function(R,w,P){var C=null,b="";if(P&&P.text[0]==="<")if(R==="=")C=this._create_token(o.EQUALS,this._input.next());else if(R==='"'||R==="'"){var s=this._input.next();R==='"'?s+=this.__patterns.double_quote.read():s+=this.__patterns.single_quote.read(),C=this._create_token(o.VALUE,s)}else b=this.__patterns.attribute.read(),b&&(w.type===o.EQUALS?C=this._create_token(o.VALUE,b):C=this._create_token(o.ATTRIBUTE,b));return C},E.prototype._is_content_unformatted=function(R){return this._options.void_elements.indexOf(R)===-1&&(this._options.content_unformatted.indexOf(R)!==-1||this._options.unformatted.indexOf(R)!==-1)},E.prototype._read_raw_content=function(R,w,P){var C="";if(P&&P.text[0]==="{")C=this.__patterns.handlebars_raw_close.read();else if(w.type===o.TAG_CLOSE&&w.opened.text[0]==="<"&&w.text[0]!=="/"){var b=w.opened.text.substr(1).toLowerCase();if(b==="script"||b==="style"){var s=this._read_comment_or_cdata(R);if(s)return s.type=o.TEXT,s;C=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(b)&&(C=this._input.readUntil(new RegExp("","ig")))}return C?this._create_token(o.TEXT,C):null},E.prototype._read_content_word=function(R){var w="";if(this._options.unformatted_content_delimiter&&(R===this._options.unformatted_content_delimiter[0]&&(w=this.__patterns.unformatted_content_delimiter.read())),w||(w=this.__patterns.word.read()),w)return this._create_token(o.TEXT,w)},a.exports.Tokenizer=E,a.exports.TOKEN=o}],T={};function n(a){var t=T[a];if(t!==void 0)return t.exports;var A=T[a]={exports:{}};return M[a](A,A.exports,n),A.exports}var p=n(18);I=p})();var k=I;if(!0)!(Z=[v,v("6UM0"),v("TXwP")],Q=function(M){var T=v("6UM0"),n=v("TXwP");return{html_beautify:function(p,a){return k(p,a,T.js_beautify,n.css_beautify)}}}.apply(ee,Z),Q!==void 0&&(Be.exports=Q));else var _,O})()},pzxd:function(Be,ee,v){var Z=v("bYtY"),Q=Z.retrieve2,I=Z.retrieve3,k=Z.each,_=Z.normalizeCssArray,O=Z.isString,M=Z.isObject,T=v("6GrX"),n=v("VpOo"),p=v("Xnb7"),a=v("fW2E"),t=v("gut8"),A=t.ContextCachedBy,l=t.WILL_BE_RESTORED,i=T.DEFAULT_FONT,c={left:1,right:1,center:1},d={top:1,bottom:1,middle:1},f=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],o={},u={};function E(z){return R(z),k(z.rich,R),z}function R(z){if(z){z.font=T.makeFont(z);var K=z.textAlign;K==="middle"&&(K="center"),z.textAlign=K==null||c[K]?K:"left";var $=z.textVerticalAlign||z.textBaseline;$==="center"&&($="middle"),z.textVerticalAlign=$==null||d[$]?$:"top";var te=z.textPadding;te&&(z.textPadding=_(z.textPadding))}}function w(z,K,$,te,fe,Ae){te.rich?C(z,K,$,te,fe,Ae):P(z,K,$,te,fe,Ae)}function P(z,K,$,te,fe,Ae){"use strict";var ce=m(te),ie,ye=!1,le=K.__attrCachedBy===A.PLAIN_TEXT;Ae!==l?(Ae&&(ie=Ae.style,ye=!ce&&le&&ie),K.__attrCachedBy=ce?A.NONE:A.PLAIN_TEXT):le&&(K.__attrCachedBy=A.NONE);var me=te.font||i;(!ye||me!==(ie.font||i))&&(K.font=me);var se=z.__computedFont;z.__styleFont!==me&&(z.__styleFont=me,se=z.__computedFont=K.font);var ge=te.textPadding,ae=te.textLineHeight,pe=z.__textCotentBlock;(!pe||z.__dirtyText)&&(pe=z.__textCotentBlock=T.parsePlainText($,se,ge,ae,te.truncate));var Me=pe.outerHeight,xe=pe.lines,Ke=pe.lineHeight,et=y(u,z,te,fe),he=et.baseX,Se=et.baseY,Ue=et.textAlign||"left",Ne=et.textVerticalAlign;s(K,te,fe,he,Se);var ct=T.adjustTextY(Se,Me,Ne),ft=he,Ot=ct;if(ce||ge){var dt=T.getWidth($,se),Ut=dt;ge&&(Ut+=ge[1]+ge[3]);var jt=T.adjustTextX(he,Ut,Ue);ce&&x(z,K,te,jt,ct,Ut,Me),ge&&(ft=F(he,Ue,ge),Ot+=ge[0])}K.textAlign=Ue,K.textBaseline="middle",K.globalAlpha=te.opacity||1;for(var ze=0;ze=0&&(ze=Ue[jt],ze.textAlign==="right");)h(z,K,ze,te,ct,Ke,Ut,"right"),ft-=ze.width,Ut-=ze.width,jt--;for(dt+=(Ae-(dt-xe)-(et-Ut)-ft)/2;Ot<=jt;)ze=Ue[Ot],h(z,K,ze,te,ct,Ke,dt+ze.width/2,"center"),dt+=ze.width,Ot++;Ke+=ct}}function s(z,K,$,te,fe){if($&&K.textRotation){var Ae=K.textOrigin;Ae==="center"?(te=$.width/2+$.x,fe=$.height/2+$.y):Ae&&(te=Ae[0]+$.x,fe=Ae[1]+$.y),z.translate(te,fe),z.rotate(-K.textRotation),z.translate(-te,-fe)}}function h(z,K,$,te,fe,Ae,ce,ie){var ye=te.rich[$.styleName]||{};ye.text=$.text;var le=$.textVerticalAlign,me=Ae+fe/2;le==="top"?me=Ae+$.height/2:le==="bottom"&&(me=Ae+fe-$.height/2),!$.isLineHolder&&m(ye)&&x(z,K,ye,ie==="right"?ce-$.width:ie==="center"?ce-$.width/2:ce,me-$.height/2,$.width,$.height);var se=$.textPadding;se&&(ce=F(ce,ie,se),me-=$.height/2-se[2]-$.textHeight/2),U(K,"shadowBlur",I(ye.textShadowBlur,te.textShadowBlur,0)),U(K,"shadowColor",ye.textShadowColor||te.textShadowColor||"transparent"),U(K,"shadowOffsetX",I(ye.textShadowOffsetX,te.textShadowOffsetX,0)),U(K,"shadowOffsetY",I(ye.textShadowOffsetY,te.textShadowOffsetY,0)),U(K,"textAlign",ie),U(K,"textBaseline","middle"),U(K,"font",$.font||i);var ge=N(ye.textStroke||te.textStroke,pe),ae=S(ye.textFill||te.textFill),pe=Q(ye.textStrokeWidth,te.textStrokeWidth);ge&&(U(K,"lineWidth",pe),U(K,"strokeStyle",ge),K.strokeText($.text,ce,me)),ae&&(U(K,"fillStyle",ae),K.fillText($.text,ce,me))}function m(z){return!!(z.textBackgroundColor||z.textBorderWidth&&z.textBorderColor)}function x(z,K,$,te,fe,Ae,ce){var ie=$.textBackgroundColor,ye=$.textBorderWidth,le=$.textBorderColor,me=O(ie);if(U(K,"shadowBlur",$.textBoxShadowBlur||0),U(K,"shadowColor",$.textBoxShadowColor||"transparent"),U(K,"shadowOffsetX",$.textBoxShadowOffsetX||0),U(K,"shadowOffsetY",$.textBoxShadowOffsetY||0),me||ye&&le){K.beginPath();var se=$.textBorderRadius;se?n.buildPath(K,{x:te,y:fe,width:Ae,height:ce,r:se}):K.rect(te,fe,Ae,ce),K.closePath()}if(me)if(U(K,"fillStyle",ie),$.fillOpacity!=null){var ge=K.globalAlpha;K.globalAlpha=$.fillOpacity*$.opacity,K.fill(),K.globalAlpha=ge}else K.fill();else if(M(ie)){var ae=ie.image;ae=p.createOrUpdateImage(ae,null,z,g,ie),ae&&p.isImageReady(ae)&&K.drawImage(ae,te,fe,Ae,ce)}if(ye&&le)if(U(K,"lineWidth",ye),U(K,"strokeStyle",le),$.strokeOpacity!=null){var ge=K.globalAlpha;K.globalAlpha=$.strokeOpacity*$.opacity,K.stroke(),K.globalAlpha=ge}else K.stroke()}function g(z,K){K.image=z}function y(z,K,$,te){var fe=$.x||0,Ae=$.y||0,ce=$.textAlign,ie=$.textVerticalAlign;if(te){var ye=$.textPosition;if(ye instanceof Array)fe=te.x+H(ye[0],te.width),Ae=te.y+H(ye[1],te.height);else{var le=K&&K.calculateTextPosition?K.calculateTextPosition(o,$,te):T.calculateTextPosition(o,$,te);fe=le.x,Ae=le.y,ce=ce||le.textAlign,ie=ie||le.textVerticalAlign}var me=$.textOffset;me&&(fe+=me[0],Ae+=me[1])}return z=z||{},z.baseX=fe,z.baseY=Ae,z.textAlign=ce,z.textVerticalAlign=ie,z}function U(z,K,$){return z[K]=a(z,K,$),z[K]}function N(z,K){return z==null||K<=0||z==="transparent"||z==="none"?null:z.image||z.colorStops?"#000":z}function S(z){return z==null||z==="none"?null:z.image||z.colorStops?"#000":z}function H(z,K){return typeof z=="string"?z.lastIndexOf("%")>=0?parseFloat(z)/100*K:parseFloat(z):z}function F(z,K,$){return K==="right"?z-$[1]:K==="center"?z+$[3]/2-$[1]/2:z+$[3]}function B(z,K){return z!=null&&(z||K.textBackgroundColor||K.textBorderWidth&&K.textBorderColor||K.textPadding)}ee.normalizeTextStyle=E,ee.renderText=w,ee.getBoxPosition=y,ee.getStroke=N,ee.getFill=S,ee.parsePercent=H,ee.needDrawText=B},qH13:function(Be,ee,v){var Z=v("ItGF"),Q=v("QBsz"),I=Q.applyTransform,k=v("mFDi"),_=v("Qe9p"),O=v("6GrX"),M=v("pzxd"),T=v("ni6a"),n=v("Gev7"),p=v("Dagg"),a=v("dqUG"),t=v("y+Vt"),A=v("IMiH"),l=v("QuXc"),i=v("06Qe"),c=A.CMD,d=Math.round,f=Math.sqrt,o=Math.abs,u=Math.cos,E=Math.sin,R=Math.max;if(!Z.canvasSupported){var w=",",P="progid:DXImageTransform.Microsoft",C=21600,b=C/2,s=1e5,h=1e3,m=function(he){he.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",he.coordsize=C+","+C,he.coordorigin="0,0"},x=function(he){return String(he).replace(/&/g,"&").replace(/"/g,""")},g=function(he,Se,Ue){return"rgb("+[he,Se,Ue].join(",")+")"},y=function(he,Se){Se&&he&&Se.parentNode!==he&&he.appendChild(Se)},U=function(he,Se){Se&&he&&Se.parentNode===he&&he.removeChild(Se)},N=function(he,Se,Ue){return(parseFloat(he)||0)*s+(parseFloat(Se)||0)*h+Ue},S=M.parsePercent,H=function(he,Se,Ue){var Ne=_.parse(Se);Ue=+Ue,isNaN(Ue)&&(Ue=1),Ne&&(he.color=g(Ne[0],Ne[1],Ne[2]),he.opacity=Ue*Ne[3])},F=function(he){var Se=_.parse(he);return[g(Se[0],Se[1],Se[2]),Se[3]]},B=function(he,Se,Ue){var Ne=Se.fill;if(Ne!=null)if(Ne instanceof l){var ct,ft=0,Ot=[0,0],dt=0,Ut=1,jt=Ue.getBoundingRect(),ze=jt.width,Ve=jt.height;if(Ne.type==="linear"){ct="gradient";var Et=Ue.transform,Rt=[Ne.x*ze,Ne.y*Ve],ut=[Ne.x2*ze,Ne.y2*Ve];Et&&(I(Rt,Rt,Et),I(ut,ut,Et));var vt=ut[0]-Rt[0],Ze=ut[1]-Rt[1];ft=Math.atan2(vt,Ze)*180/Math.PI,ft<0&&(ft+=360),ft<1e-6&&(ft=0)}else{ct="gradientradial";var Rt=[Ne.x*ze,Ne.y*Ve],Et=Ue.transform,ke=Ue.scale,He=ze,we=Ve;Ot=[(Rt[0]-jt.x)/He,(Rt[1]-jt.y)/we],Et&&I(Rt,Rt,Et),He/=ke[0]*C,we/=ke[1]*C;var Le=R(He,we);dt=2*0/Le,Ut=2*Ne.r/Le-dt}var Pe=Ne.colorStops.slice();Pe.sort(function(Qe,Oe){return Qe.offset-Oe.offset});for(var We=Pe.length,Xe=[],gt=[],Lt=0;Lt=2){var xt=Xe[0][0],Ct=Xe[1][0],mt=Xe[0][1]*Se.opacity,Je=Xe[1][1]*Se.opacity;he.type=ct,he.method="none",he.focus="100%",he.angle=ft,he.color=xt,he.color2=Ct,he.colors=gt.join(","),he.opacity=Je,he.opacity2=mt}ct==="radial"&&(he.focusposition=Ot.join(","))}else H(he,Ne,Se.opacity)},z=function(he,Se){Se.lineDash&&(he.dashstyle=Se.lineDash.join(" ")),Se.stroke!=null&&!(Se.stroke instanceof l)&&H(he,Se.stroke,Se.opacity)},K=function(he,Se,Ue,Ne){var ct=Se==="fill",ft=he.getElementsByTagName(Se)[0];Ue[Se]!=null&&Ue[Se]!=="none"&&(ct||!ct&&Ue.lineWidth)?(he[ct?"filled":"stroked"]="true",Ue[Se]instanceof l&&U(he,ft),ft||(ft=i.createNode(Se)),ct?B(ft,Ue,Ne):z(ft,Ue),y(he,ft)):(he[ct?"filled":"stroked"]="false",U(he,ft))},$=[[],[],[]],te=function(he,Se){var Ue=c.M,Ne=c.C,ct=c.L,ft=c.A,Ot=c.Q,dt=[],Ut,jt,ze,Ve,Et,Rt,ut=he.data,vt=he.len();for(Ve=0;Ve.01?Oe&&(je+=270/C):Math.abs(St-xt)<1e-4?Oe&&jeZt?ke-=270/C:ke+=270/C:Oe&&Stxt?Ze+=270/C:Ze-=270/C),dt.push(bt,d(((Zt-Ct)*gt+We)*C-b),w,d(((xt-mt)*Lt+Xe)*C-b),w,d(((Zt+Ct)*gt+We)*C-b),w,d(((xt+mt)*Lt+Xe)*C-b),w,d((je*gt+We)*C-b),w,d((St*Lt+Xe)*C-b),w,d((Ze*gt+We)*C-b),w,d((ke*Lt+Xe)*C-b)),Et=Ze,Rt=ke;break;case c.R:var Dt=$[0],Qt=$[1];Dt[0]=ut[Ve++],Dt[1]=ut[Ve++],Qt[0]=Dt[0]+ut[Ve++],Qt[1]=Dt[1]+ut[Ve++],Se&&(I(Dt,Dt,Se),I(Qt,Qt,Se)),Dt[0]=d(Dt[0]*C-b),Qt[0]=d(Qt[0]*C-b),Dt[1]=d(Dt[1]*C-b),Qt[1]=d(Qt[1]*C-b),dt.push(" m ",Dt[0],w,Dt[1]," l ",Qt[0],w,Dt[1]," l ",Qt[0],w,Qt[1]," l ",Dt[0],w,Qt[1]);break;case c.Z:dt.push(" x ")}if(Ut>0){dt.push(jt);for(var _t=0;_tye&&(ie=0,ce={});var Ue=le.style,Ne;try{Ue.font=he,Ne=Ue.fontFamily.split(",")[0]}catch(ct){}Se={style:Ue.fontStyle||Ae,variant:Ue.fontVariant||Ae,weight:Ue.fontWeight||Ae,size:parseFloat(Ue.fontSize||12)|0,family:Ne||"Microsoft YaHei"},ce[he]=Se,ie++}return Se},se;O.$override("measureText",function(he,Se){var Ue=i.doc;se||(se=Ue.createElement("div"),se.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",i.doc.body.appendChild(se));try{se.style.font=Se}catch(Ne){}return se.innerHTML="",se.appendChild(Ue.createTextNode(he)),{width:se.offsetWidth}});for(var ge=new k,ae=function(he,Se,Ue,Ne){var ct=this.style;this.__dirty&&M.normalizeTextStyle(ct,!0);var ft=ct.text;if(ft!=null&&(ft+=""),!ft)return;if(ct.rich){var Ot=O.parseRichText(ft,ct);ft=[];for(var dt=0;dt=0&&(this.delFromStorage(T),this._roots.splice(t,1),T instanceof I&&T.delChildrenFromStorage(this))},addToStorage:function(T){return T&&(T.__storage=this,T.dirty(!1)),this},delFromStorage:function(T){return T&&(T.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:_};var M=O;Be.exports=M},rA99:function(Be,ee,v){var Z=v("y+Vt"),Q=v("QBsz"),I=v("Sj9i"),k=I.quadraticSubdivide,_=I.cubicSubdivide,O=I.quadraticAt,M=I.cubicAt,T=I.quadraticDerivativeAt,n=I.cubicDerivativeAt,p=[];function a(A,l,i){var c=A.cpx2,d=A.cpy2;return c===null||d===null?[(i?n:M)(A.x1,A.cpx1,A.cpx2,A.x2,l),(i?n:M)(A.y1,A.cpy1,A.cpy2,A.y2,l)]:[(i?T:O)(A.x1,A.cpx1,A.x2,l),(i?T:O)(A.y1,A.cpy1,A.y2,l)]}var t=Z.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(A,l){var i=l.x1,c=l.y1,d=l.x2,f=l.y2,o=l.cpx1,u=l.cpy1,E=l.cpx2,R=l.cpy2,w=l.percent;if(w===0)return;A.moveTo(i,c),E==null||R==null?(w<1&&(k(i,o,d,w,p),o=p[1],d=p[2],k(c,u,f,w,p),u=p[1],f=p[2]),A.quadraticCurveTo(o,u,d,f)):(w<1&&(_(i,o,E,d,w,p),o=p[1],E=p[2],d=p[3],_(c,u,R,f,w,p),u=p[1],R=p[2],f=p[3]),A.bezierCurveTo(o,u,E,R,d,f))},pointAt:function(A){return a(this.shape,A,!1)},tangentAt:function(A){var l=a(this.shape,A,!0);return Q.normalize(l,l)}});Be.exports=t},"rAM+":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return Q});var Z=v("Qw5x");function Q(I,k){var _;if(typeof Symbol=="undefined"||I[Symbol.iterator]==null){if(Array.isArray(I)||(_=Object(Z.a)(I))||k&&I&&typeof I.length=="number"){_&&(I=_);var O=0,M=function(){};return{s:M,n:function(){return O>=I.length?{done:!0}:{done:!1,value:I[O++]}},e:function(t){throw t},f:M}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T=!0,n=!1,p;return{s:function(){_=I[Symbol.iterator]()},n:function(){var t=_.next();return T=t.done,t},e:function(t){n=!0,p=t},f:function(){try{!T&&_.return!=null&&_.return()}finally{if(n)throw p}}}}},rHrb:function(Be,ee,v){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CopyToClipboard=void 0;var Z=I(v("q1tI")),Q=I(v("+QRC"));function I(o){return o&&o.__esModule?o:{default:o}}function k(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(E){return typeof E}:k=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},k(o)}function _(o,u){var E=Object.keys(o);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(o);u&&(R=R.filter(function(w){return Object.getOwnPropertyDescriptor(o,w).enumerable})),E.push.apply(E,R)}return E}function O(o){for(var u=1;u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(o,R))continue;E[R]=o[R]}}return E}function T(o,u){if(o==null)return{};var E={},R=Object.keys(o),w,P;for(P=0;P=0)continue;E[w]=o[w]}return E}function n(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}function p(o,u){for(var E=0;E"']/,Z=/[&<>"']/g,Q=/[<>"']|&(?!#?\w+;)/,I=/[<>"']|&(?!#?\w+;)/g,k={"&":"&","<":"<",">":">",'"':""","'":"'"},_=C=>k[C];function O(C,b){if(b){if(v.test(C))return C.replace(Z,_)}else if(Q.test(C))return C.replace(I,_);return C}const M=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function T(C){return C.replace(M,(b,s)=>(s=s.toLowerCase(),s==="colon"?":":s.charAt(0)==="#"?s.charAt(1)==="x"?String.fromCharCode(parseInt(s.substring(2),16)):String.fromCharCode(+s.substring(1)):""))}const n=/(^|[^\[])\^/g;function p(C,b){C=C.source||C,b=b||"";const s={replace:(h,m)=>(m=m.source||m,m=m.replace(n,"$1"),C=C.replace(h,m),s),getRegex:()=>new RegExp(C,b)};return s}const a=/[^\w:]/g,t=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function A(C,b,s){if(C){let h;try{h=decodeURIComponent(T(s)).replace(a,"").toLowerCase()}catch(m){return null}if(h.indexOf("javascript:")===0||h.indexOf("vbscript:")===0||h.indexOf("data:")===0)return null}b&&!t.test(s)&&(s=f(b,s));try{s=encodeURI(s).replace(/%25/g,"%")}catch(h){return null}return s}const l={},i=/^[^:]+:\/*[^/]*$/,c=/^([^:]+:)[\s\S]*$/,d=/^([^:]+:\/*[^/]*)[\s\S]*$/;function f(C,b){l[" "+C]||(i.test(C)?l[" "+C]=C+"/":l[" "+C]=R(C,"/",!0)),C=l[" "+C];const s=C.indexOf(":")===-1;return b.substring(0,2)==="//"?s?b:C.replace(c,"$1")+b:b.charAt(0)==="/"?s?b:C.replace(d,"$1")+b:C+b}const o={exec:function(){}};function u(C){let b=1,s,h;for(;b{let U=!1,N=g;for(;--N>=0&&y[N]==="\\";)U=!U;return U?"|":" |"}),h=s.split(/ \|/);let m=0;if(h.length>b)h.splice(b);else for(;h.lengthg*Ze*1024*1024?(t.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(Ze,"G")),!0):xe!=null&&xe.find(function(Oe){return Oe.name===Je.name})?(t.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),!0):!1},He=function(Je,Qe){p.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:E.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",Qe?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){Qe?Ke([]):(Ne.current.cancel(),Ke([]))}})},we=function(){var mt=Object(T.a)(o.a.mark(function Je(){var Qe,Oe;return o.a.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return St.next=2,ae.validateFields();case 2:if(!(!ze&&!(xe!=null&&xe.length)||ze&&!Ot)){St.next=5;break}return t.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),St.abrupt("return");case 5:return vt(!0),Qe=ze?{link:Ot}:{video_id:xe==null?void 0:xe[0].videoId},St.next=9,ie(Object(M.a)(Object(M.a)(Object(M.a)({},Qe),le),{name:ae.getFieldValue("name"),attachment_id:ae.getFieldValue("attachment_id"),description:ae.getFieldValue("description"),tags:Lt}));case 9:Oe=St.sent,vt(!1),Oe.id&&Le();case 12:case"end":return St.stop()}},Je)}));return function(){return mt.apply(this,arguments)}}(),Le=function(){ae.resetFields(),Ke([]),dt(null),en([]),Ve(null)},Pe=function(){Ae(),Le()},We=function(){var Je,Qe,Oe,je,St;return E.a.createElement(E.a.Fragment,null,!ze&&!!(xe!=null&&xe.length)&&E.a.createElement("div",{className:b.a.fileProgress},(xe==null||((Je=xe[0])===null||Je===void 0)?void 0:Je.loaded)==100?E.a.createElement("div",{className:"".concat(b.a.videoName," font14")},xe==null||((Qe=xe[0])===null||Qe===void 0)?void 0:Qe.name):E.a.createElement(O.a,{style:{width:"80%"},percent:xe==null||((Oe=xe[0])===null||Oe===void 0)?void 0:Oe.loaded,status:(xe==null||((je=xe[0])===null||je===void 0)?void 0:je.loaded)==100?"normal":"active"}),E.a.createElement("div",{className:b.a.fileCancel,onClick:function(){var Dt,Qt;return He(xe==null||((Dt=xe[0])===null||Dt===void 0)?void 0:Dt.name,(xe==null||((Qt=xe[0])===null||Qt===void 0)?void 0:Qt.loaded)==100)}},(xe==null||((St=xe[0])===null||St===void 0)?void 0:St.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),E.a.createElement("div",{className:b.a.uploadWrap,style:{display:xe!=null&&xe.length?"none":"flex"}},E.a.createElement(m.a,Object(k.a)({},Ct,{ref:Ne}),E.a.createElement("div",{className:b.a.upload},E.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891")),E.a.createElement("label",{className:"".concat(b.a.upload," ").concat(b.a.uploadLink),onClick:function(){return Ve(!0)}},E.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),ze&&E.a.createElement(d.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:Ot,onChange:function(Dt){return dt(Dt.target.value)}}))},Xe=Object(u.useState)([]),gt=Object(i.a)(Xe,2),Lt=gt[0],en=gt[1],Zt=function(Je){if(Je.key=="Enter"){var Qe=ae.getFieldValue("tag");if(ae.setFieldsValue({tag:""}),!Qe){t.b.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(Lt.filter(function(Oe){return Oe===Qe}).length>0){t.b.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}Lt.push(Qe),en(Object(I.a)(Lt))}},xt=function(Je,Qe){Je.preventDefault(),en(Object(I.a)(Lt.filter(function(Oe){return Oe!=Qe})))},Ct={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:ke,onBeginInitFile:function(Je){Ke([{name:Je.filename,loaded:0}])},onComplete:function(Je){Ke([{name:Je.filename,loaded:Je.percent,videoId:Je.id}])},onError:function(){Ke([])},onProgress:function(Je){Ke([{name:Je.filename,loaded:Je.percent}])},chunkSize:1024*1024*2,options:{user_id:F==null||((S=F.userInfo)===null||S===void 0)?void 0:S.user_id}};return E.a.createElement(p.a,{centered:!0,maskClosable:!1,title:te?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:b.a.modal,visible:$,confirmLoading:ut,onOk:we,onCancel:Pe},E.a.createElement(l.a,{form:ae},E.a.createElement(l.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},E.a.createElement(d.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),E.a.createElement(l.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:b.a.contentItem},We()),E.a.createElement(l.a.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},E.a.createElement(s.a,{getFileProgress:function(Je){if(Je.file.status==="uploading"){vt(!0);return}Je.file.status==="done"&&vt(!1)}})),E.a.createElement(l.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},E.a.createElement(x,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),E.a.createElement(l.a.Item,{label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag",className:"ml8"},E.a.createElement(d.a,{onKeyUp:Zt})),E.a.createElement("div",{className:b.a["tagsList-content"]},Lt.map(function(mt,Je){return E.a.createElement(Q.a,{key:Je+mt,closable:!0,onClose:function(Oe){xt(Oe,mt)}},mt)})),E.a.createElement("div",{className:"c-grey-999"},E.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),E.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",E.a.createElement(w.a,{to:"/users/".concat((H=F.userInfo)===null||H===void 0?void 0:H.login,"/videos/protocol"),target:"_blank",className:b.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),E.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Ze,"G\uFF1B"),E.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),E.a.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};ee.a=Object(P.a)(function(U){var N=U.user,S=U.loading,H=U.globalSetting;return{user:N,globalSetting:H,loading:S}})(y)},sR1s:function(Be,ee,v){"use strict";v.d(ee,"b",function(){return k}),v.d(ee,"a",function(){return _}),v.d(ee,"c",function(){return O}),v.d(ee,"d",function(){return M});var Z=v("U8pU"),Q="RC_TABLE_KEY";function I(T){return T==null?[]:Array.isArray(T)?T:[T]}function k(T,n){if(!n&&typeof n!="number")return T;for(var p=I(n),a=T,t=0;t-1)){var l=k.parse(A)[3],i=k.toHex(A);t.setAttribute("stop-color","#"+i),t.setAttribute("stop-opacity",l)}else t.setAttribute("stop-color",n[p].color);T.appendChild(t)}M._dom=T},_.prototype.markUsed=function(M){if(M.style){var T=M.style.fill;T&&T._dom&&Z.prototype.markUsed.call(this,T._dom),T=M.style.stroke,T&&T._dom&&Z.prototype.markUsed.call(this,T._dom)}};var O=_;Be.exports=O},sboe:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return I});var Z=v("q1tI"),Q=v.n(Z),I=Z.createContext(null)},t23M:function(Be,ee,v){"use strict";var Z=v("VTBJ"),Q=v("1OyB"),I=v("vuIU"),k=v("Ji7U"),_=v("LK+K"),O=v("q1tI"),M=v.n(O),T=v("m+aA"),n=v("Zm9Q"),p=v("Kwbf"),a=v("c+Xe"),t=v("bdgK"),A="rc-observer-key",l=function(i){Object(k.a)(d,i);var c=Object(_.a)(d);function d(){var f;return Object(Q.a)(this,d),f=c.apply(this,arguments),f.resizeObserver=null,f.childNode=null,f.currentElement=null,f.state={width:0,height:0,offsetHeight:0,offsetWidth:0},f.onResize=function(o){var u=f.props.onResize,E=o[0].target,R=E.getBoundingClientRect(),w=R.width,P=R.height,C=E.offsetWidth,b=E.offsetHeight,s=Math.floor(w),h=Math.floor(P);if(f.state.width!==s||f.state.height!==h||f.state.offsetWidth!==C||f.state.offsetHeight!==b){var m={width:s,height:h,offsetWidth:C,offsetHeight:b};f.setState(m),u&&Promise.resolve().then(function(){u(Object(Z.a)(Object(Z.a)({},m),{},{offsetWidth:C,offsetHeight:b}))})}},f.setChildNode=function(o){f.childNode=o},f}return Object(I.a)(d,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var o=this.props.disabled;if(o){this.destroyObserver();return}var u=Object(T.a)(this.childNode||this),E=u!==this.currentElement;E&&(this.destroyObserver(),this.currentElement=u),!this.resizeObserver&&u&&(this.resizeObserver=new t.default(this.onResize),this.resizeObserver.observe(u))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var o=this.props.children,u=Object(n.a)(o);if(u.length>1)Object(p.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(u.length===0)return Object(p.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var E=u[0];if(O.isValidElement(E)&&Object(a.c)(E)){var R=E.ref;u[0]=O.cloneElement(E,{ref:Object(a.a)(R,this.setChildNode)})}return u.length===1?u[0]:u.map(function(w,P){return!O.isValidElement(w)||"key"in w&&w.key!==null?w:O.cloneElement(w,{key:"".concat(A,"-").concat(P)})})}}]),d}(O.Component);l.displayName="ResizeObserver",ee.a=l},t9D7:function(Be,ee,v){"use strict";v.d(ee,"b",function(){return M}),v.d(ee,"g",function(){return n}),v.d(ee,"d",function(){return p}),v.d(ee,"e",function(){return a}),v.d(ee,"a",function(){return t}),v.d(ee,"f",function(){return i}),v.d(ee,"c",function(){return c});var Z=v("Vhoy"),Q=v("MI8n"),I=v("pmY6"),k=v("Cg/j"),_=v("ic2d"),O=v("nEHx");const M=Object(k.c)("themeService");var T;(function(d){function f(o){return o&&typeof o=="object"&&typeof o.id=="string"}d.isThemeColor=f})(T||(T={}));function n(d){return{id:d}}var p;(function(d){function f(P){return P&&typeof P=="object"&&typeof P.id=="string"&&(typeof P.color=="undefined"||T.isThemeColor(P.color))}d.isThemeIcon=f;const o=new RegExp(`^\\$\\((${Z.a.iconNameExpression}(?:${Z.a.iconModifierExpression})?)\\)$`);function u(P){const C=o.exec(P);if(!C)return;let[,b]=C;return{id:b}}d.fromString=u;function E(P,C){let b=P.id;const s=b.lastIndexOf("~");return s!==-1&&(b=b.substring(0,s)),C&&(b=`${b}~${C}`),{id:b}}d.modify=E;function R(P,C){var b,s;return P.id===C.id&&((b=P.color)===null||b===void 0?void 0:b.id)===((s=C.color)===null||s===void 0?void 0:s.id)}d.isEqual=R;function w(P,C){return{id:P.id,color:C?n(C):void 0}}d.asThemeIcon=w,d.asClassNameArray=Z.a.asClassNameArray,d.asClassName=Z.a.asClassName,d.asCSSSelector=Z.a.asCSSSelector})(p||(p={}));function a(d){switch(d){case O.a.DARK:return"vs-dark";case O.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const t={ThemingContribution:"base.contributions.theming"};class A{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new Q.b}onColorThemeChange(d){return this.themingParticipants.push(d),this.onThemingParticipantAddedEmitter.fire(d),Object(I.i)(()=>{const f=this.themingParticipants.indexOf(d);this.themingParticipants.splice(f,1)})}getThemingParticipants(){return this.themingParticipants}}let l=new A;_.a.add(t.ThemingContribution,l);function i(d){return l.onColorThemeChange(d)}class c extends I.a{constructor(d){super();this.themeService=d,this.theme=d.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(f=>this.onThemeChange(f)))}onThemeChange(d){this.theme=d,this.updateStyles()}updateStyles(){}}},tWlo:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},u3os:function(Be,ee,v){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ver=ee.clear=ee.bind=void 0;var Z=v("P4Qj"),Q=function(O,M){var T=(0,Z.getSensor)(O);return T.bind(M),function(){T.unbind(M)}};ee.bind=Q;var I=function(O){var M=(0,Z.getSensor)(O);(0,Z.removeSensor)(M)};ee.clear=I;var k="1.0.1";ee.ver=k},uK0f:function(Be,ee,v){(function(Z,Q){Be.exports=Q()})(this,function(){"use strict";function Z(Q,I,k){k=k||{},k.childrenKeyName=k.childrenKeyName||"children";var _=Q||[],O=[],M=0;do{var T=_.filter(function(n){return I(n,M)})[0];if(!T)break;O.push(T),_=T[k.childrenKeyName]||[],M+=1}while(_.length>0);return O}return Z})},uRQ9:function(Be,ee,v){Be.exports={flex_box_center:"flex_box_center___1iLgt",flex_space_between:"flex_space_between___3p7p-",flex_box_vertical_center:"flex_box_vertical_center___3FnaF",flex_box_center_end:"flex_box_center_end___XIPip",flex_box_column:"flex_box_column___3ji4d",certificate:"certificate___3Sn4A",actionsBtns:"actionsBtns___30qsn"}},ulZh:function(Be,ee,v){typeof window!="undefined"&&function(Q,I){Be.exports=I()}(this,function(){return function(Z){var Q={};function I(k){if(Q[k])return Q[k].exports;var _=Q[k]={i:k,l:!1,exports:{}};return Z[k].call(_.exports,_,_.exports,I),_.l=!0,_.exports}return I.m=Z,I.c=Q,I.d=function(k,_,O){I.o(k,_)||Object.defineProperty(k,_,{enumerable:!0,get:O})},I.r=function(k){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})},I.t=function(k,_){if(_&1&&(k=I(k)),_&8)return k;if(_&4&&typeof k=="object"&&k&&k.__esModule)return k;var O=Object.create(null);if(I.r(O),Object.defineProperty(O,"default",{enumerable:!0,value:k}),_&2&&typeof k!="string")for(var M in k)I.d(O,M,function(T){return k[T]}.bind(null,M));return O},I.n=function(k){var _=k&&k.__esModule?function(){return k.default}:function(){return k};return I.d(_,"a",_),_},I.o=function(k,_){return Object.prototype.hasOwnProperty.call(k,_)},I.p="/dist/",I(I.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(Z,Q,I){"use strict";var k=Object.prototype.hasOwnProperty,_="~";function O(){}Object.create&&(O.prototype=Object.create(null),new O().__proto__||(_=!1));function M(a,t,A){this.fn=a,this.context=t,this.once=A||!1}function T(a,t,A,l,i){if(typeof A!="function")throw new TypeError("The listener must be a function");var c=new M(A,l||a,i),d=_?_+t:t;return a._events[d]?a._events[d].fn?a._events[d]=[a._events[d],c]:a._events[d].push(c):(a._events[d]=c,a._eventsCount++),a}function n(a,t){--a._eventsCount===0?a._events=new O:delete a._events[t]}function p(){this._events=new O,this._eventsCount=0}p.prototype.eventNames=function(){var t=[],A,l;if(this._eventsCount===0)return t;for(l in A=this._events)k.call(A,l)&&t.push(_?l.slice(1):l);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(A)):t},p.prototype.listeners=function(t){var A=_?_+t:t,l=this._events[A];if(!l)return[];if(l.fn)return[l.fn];for(var i=0,c=l.length,d=new Array(c);i0},!1)}function a(t,A){for(var l={main:[A]},i={main:[]},c={main:{}};p(l);)for(var d=Object.keys(l),f=0;f=2*P/b||y<=N)return;var S=Number.POSITIVE_INFINITY,H;for(H=d.level-1;H>h;H--){var F=s[H].maxBitrate;if(S=P*F/(8*.8*g),S=y)return;var B=this.bwEstimator.getEstimate();p.logger.warn("Fragment "+d.sn+(f?" part "+f.index:"")+" of level "+d.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+H+` Current BW estimate: `+(Object(k.isFiniteNumber)(B)?(B/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+y.toFixed(3)+` s Estimated load time for the next fragment: `+S.toFixed(3)+` s Time to underbuffer: `+N.toFixed(3)+" s"),o.nextLoadLevel=H,this.bwEstimator.sample(C,w.loaded),this.clearTimer(),d.loader&&(this.fragCurrent=this.partCurrent=null,d.loader.abort()),o.trigger(O.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:d,part:f,stats:w})},i.onFragLoaded=function(d,f){var o=f.frag,u=f.part;if(o.type===n.PlaylistLevelType.MAIN&&Object(k.isFiniteNumber)(o.sn)){var E=u?u.stats:o.stats,R=u?u.duration:o.duration;if(this.clearTimer(),this.lastLoadedFragLevel=o.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var w=this.hls.levels[o.level],P=(w.loaded?w.loaded.bytes:0)+E.loaded,C=(w.loaded?w.loaded.duration:0)+R;w.loaded={bytes:P,duration:C},w.realBitrate=Math.round(8*P/C)}if(o.bitrateTest){var b={stats:E,frag:o,part:u,id:o.type};this.onFragBuffered(O.Events.FRAG_BUFFERED,b),o.bitrateTest=!1}}},i.onFragBuffered=function(d,f){var o=f.frag,u=f.part,E=u?u.stats:o.stats;if(E.aborted)return;if(o.type!==n.PlaylistLevelType.MAIN||o.sn==="initSegment")return;var R=E.parsing.end-E.loading.start;this.bwEstimator.sample(R,E.loaded),E.bwEstimate=this.bwEstimator.getEstimate(),o.bitrateTest?this.bitrateTestDelay=R/1e3:this.bitrateTestDelay=0},i.onError=function(d,f){switch(f.details){case T.ErrorDetails.FRAG_LOAD_ERROR:case T.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},i.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},i.getNextABRAutoLevel=function(){var d=this.fragCurrent,f=this.partCurrent,o=this.hls,u=o.maxAutoLevel,E=o.config,R=o.minAutoLevel,w=o.media,P=f?f.duration:d?d.duration:0,C=w?w.currentTime:0,b=w&&w.playbackRate!==0?Math.abs(w.playbackRate):1,s=this.bwEstimator?this.bwEstimator.getEstimate():E.abrEwmaDefaultEstimate,h=(M.BufferHelper.bufferInfo(w,C,E.maxBufferHole).end-C)/b,m=this.findBestLevel(s,R,u,h,E.abrBandWidthFactor,E.abrBandWidthUpFactor);if(m>=0)return m;p.logger.trace((h?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var x=P?Math.min(P,E.maxStarvationDelay):E.maxStarvationDelay,g=E.abrBandWidthFactor,y=E.abrBandWidthUpFactor;if(!h){var U=this.bitrateTestDelay;if(U){var N=P?Math.min(P,E.maxLoadingDelay):E.maxLoadingDelay;x=N-U,p.logger.trace("bitrate test took "+Math.round(1e3*U)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*x)+" ms"),g=y=1}}return m=this.findBestLevel(s,R,u,h+x,g,y),Math.max(m,0)},i.findBestLevel=function(d,f,o,u,E,R){for(var w,P=this.fragCurrent,C=this.partCurrent,b=this.lastLoadedFragLevel,s=this.hls.levels,h=s[b],m=!!(h!=null&&(w=h.details)!==null&&w!==void 0&&w.live),x=h==null?void 0:h.codecSet,g=C?C.duration:P?P.duration:0,y=o;y>=f;y--){var U=s[y];if(!U||x&&U.codecSet!==x)continue;var N=U.details,S=(C?N==null?void 0:N.partTarget:N==null?void 0:N.averagetargetduration)||g,H=void 0;y<=b?H=E*d:H=R*d;var F=s[y].maxBitrate,B=F*S/H;if(p.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+y+"/"+Math.round(H)+"/"+F+"/"+S+"/"+u+"/"+B),H>F&&(!B||m&&!this.bitrateTestDelay||B0&&h===-1?(this.log("Override startPosition with lastCurrentTime @"+m.toFixed(3)),this.state=_.State.IDLE):(this.loadedmetadata=!1,this.state=_.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=h,this.tick()},b.doTick=function(){switch(this.state){case _.State.IDLE:this.doTickIdle();break;case _.State.WAITING_TRACK:{var h,m=this.levels,x=this.trackId,g=m==null||((h=m[x])===null||h===void 0)?void 0:h.details;if(g){if(this.waitForCdnTuneIn(g))break;this.state=_.State.WAITING_INIT_PTS}break}case _.State.FRAG_LOADING_WAITING_RETRY:{var y,U=performance.now(),N=this.retryDate;(!N||U>=N||(y=this.media)!==null&&y!==void 0&&y.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=_.State.IDLE);break}case _.State.WAITING_INIT_PTS:{var S=this.waitingData;if(S){var H=S.frag,F=S.part,B=S.cache,z=S.complete;if(this.initPTS[H.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=_.State.FRAG_LOADING;var K=B.flush(),$={frag:H,part:F,payload:K,networkDetails:null};this._handleFragmentLoadProgress($),z&&P.prototype._handleFragmentLoadComplete.call(this,$)}else if(this.videoTrackCC!==this.waitingVideoCC)f.logger.log("Waiting fragment cc ("+H.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var te=this.getLoadPosition(),fe=M.BufferHelper.bufferInfo(this.mediaBuffer,te,this.config.maxBufferHole),Ae=Object(i.fragmentWithinToleranceTest)(fe.end,this.config.maxFragLookUpTolerance,H);Ae<0&&(f.logger.log("Waiting fragment cc ("+H.cc+") @ "+H.start+" cancelled because another fragment at "+fe.end+" is needed"),this.clearWaitingFragment())}}else this.state=_.State.IDLE}}this.onTickEnd()},b.clearWaitingFragment=function(){var h=this.waitingData;h&&(this.fragmentTracker.removeFragment(h.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=_.State.IDLE)},b.onTickEnd=function(){var h=this.media;if(!h||!h.readyState)return;var m=this.mediaBuffer?this.mediaBuffer:h,x=m.buffered;!this.loadedmetadata&&x.length&&(this.loadedmetadata=!0),this.lastCurrentTime=h.currentTime},b.doTickIdle=function(){var h,m,x=this.hls,g=this.levels,y=this.media,U=this.trackId,N=x.config;if(!g||!g[U])return;if(!y&&(this.startFragRequested||!N.startFragPrefetch))return;var S=g[U],H=S.details;if(!H||H.live&&this.levelLastLoaded!==U||this.waitForCdnTuneIn(H)){this.state=_.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,a.ElementaryStreamTypes.AUDIO,p.PlaylistLevelType.AUDIO));var F=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,p.PlaylistLevelType.AUDIO);if(F===null)return;var B=F.len,z=this.getMaxBufferLength(),K=this.audioSwitch;if(B>=z&&!K)return;if(!K&&this._streamEnded(F,H)){x.trigger(O.Events.BUFFER_EOS,{type:"audio"}),this.state=_.State.ENDED;return}var $=H.fragments,te=$[0].start,fe=F.end;if(K){var Ae=this.getLoadPosition();fe=Ae,H.PTSKnown&&Aete||F.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),y.currentTime=te+.05))}var ce=this.getNextFragment(fe,H);if(!ce){this.bufferFlushed=!0;return}((h=ce.decryptdata)===null||h===void 0?void 0:h.keyFormat)==="identity"&&!((m=ce.decryptdata)!==null&&m!==void 0&&m.key)?this.loadKey(ce,H):this.loadFragment(ce,H,fe)},b.getMaxBufferLength=function(){var h=P.prototype.getMaxBufferLength.call(this),m=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,p.PlaylistLevelType.MAIN);return m===null?h:Math.max(h,m.len)},b.onMediaDetaching=function(){this.videoBuffer=null,P.prototype.onMediaDetaching.call(this)},b.onAudioTracksUpdated=function(h,m){var x=m.audioTracks;this.resetTransmuxer(),this.levels=x.map(function(g){return new n.Level(g)})},b.onAudioTrackSwitching=function(h,m){var x=!!m.url;this.trackId=m.id;var g=this.fragCurrent;g!=null&&g.loader&&g.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),x?this.setInterval(R):this.resetTransmuxer(),x?(this.audioSwitch=!0,this.state=_.State.IDLE):this.state=_.State.STOPPED,this.tick()},b.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},b.onLevelLoaded=function(h,m){this.mainDetails=m.details},b.onAudioTrackLoaded=function(h,m){var x,g=this.levels,y=m.details,U=m.id;if(!g){this.warn("Audio tracks were reset while loading level "+U);return}this.log("Track "+U+" loaded ["+y.startSN+","+y.endSN+"],duration:"+y.totalduration);var N=g[U],S=0;if(y.live||(x=N.details)!==null&&x!==void 0&&x.live){var H=this.mainDetails;if(y.fragments[0]||(y.deltaUpdateFailed=!0),y.deltaUpdateFailed||!H)return;!N.details&&y.hasProgramDateTime&&H.hasProgramDateTime?(Object(c.alignMediaPlaylistByPDT)(y,H),S=y.fragments[0].start):S=this.alignPlaylists(y,N.details)}N.details=y,this.levelLastLoaded=U,!this.startFragRequested&&(this.mainDetails||!y.live)&&this.setStartPosition(N.details,S),this.state===_.State.WAITING_TRACK&&!this.waitForCdnTuneIn(y)&&(this.state=_.State.IDLE),this.tick()},b._handleFragmentLoadProgress=function(h){var m,x=h.frag,g=h.part,y=h.payload,U=this.config,N=this.trackId,S=this.levels;if(!S){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+x.sn+" of level "+x.level+" will not be buffered");return}var H=S[N];console.assert(H,"Audio track is defined on fragment load progress");var F=H.details;console.assert(F,"Audio track details are defined on fragment load progress");var B=U.defaultAudioCodec||H.audioCodec||"mp4a.40.2",z=this.transmuxer;z||(z=this.transmuxer=new A.default(this.hls,p.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var K=this.initPTS[x.cc],$=(m=x.initSegment)===null||m===void 0?void 0:m.data;if(K!==void 0){var te=!1,fe=g?g.index:-1,Ae=fe!==-1,ce=new l.ChunkMetadata(x.level,x.sn,x.stats.chunkCount,y.byteLength,fe,Ae);z.push(y,$,B,"",x,g,F.totalduration,te,ce,K)}else{f.logger.log("Unknown video PTS for cc "+x.cc+", waiting for video PTS before demuxing audio frag "+x.sn+" of ["+F.startSN+" ,"+F.endSN+"],track "+N);var ie=this.waitingData=this.waitingData||{frag:x,part:g,cache:new t.default,complete:!1},ye=ie.cache;ye.push(new Uint8Array(y)),this.waitingVideoCC=this.videoTrackCC,this.state=_.State.WAITING_INIT_PTS}},b._handleFragmentLoadComplete=function(h){if(this.waitingData){this.waitingData.complete=!0;return}P.prototype._handleFragmentLoadComplete.call(this,h)},b.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},b.onBufferCreated=function(h,m){var x=m.tracks.audio;x&&(this.mediaBuffer=x.buffer),m.tracks.video&&(this.videoBuffer=m.tracks.video.buffer)},b.onFragBuffered=function(h,m){var x=m.frag,g=m.part;if(x.type!==p.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(x)){this.warn("Fragment "+x.sn+(g?" p: "+g.index:"")+" of level "+x.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}x.sn!=="initSegment"&&(this.fragPrevious=x,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(O.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(x,g)},b.onError=function(h,m){switch(m.details){case d.ErrorDetails.FRAG_LOAD_ERROR:case d.ErrorDetails.FRAG_LOAD_TIMEOUT:case d.ErrorDetails.KEY_LOAD_ERROR:case d.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(p.PlaylistLevelType.AUDIO,m);break;case d.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case d.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==_.State.ERROR&&this.state!==_.State.STOPPED&&(this.state=m.fatal?_.State.ERROR:_.State.IDLE,this.warn(m.details+" while loading frag, switching to "+this.state+" state"));break;case d.ErrorDetails.BUFFER_FULL_ERROR:if(m.parent==="audio"&&(this.state===_.State.PARSING||this.state===_.State.PARSED)){var x=!0,g=this.getFwdBufferInfo(this.mediaBuffer,p.PlaylistLevelType.AUDIO);g&&g.len>.5&&(x=!this.reduceMaxBufferLength(g.len)),x&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},b.onBufferFlushed=function(h,m){var x=m.type;x===a.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},b._handleTransmuxComplete=function(h){var m,x="audio",g=this.hls,y=h.remuxResult,U=h.chunkMeta,N=this.getCurrentContext(U);if(!N){this.warn("The loading context changed while buffering fragment "+U.sn+" of level "+U.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(U.level);return}var S=N.frag,H=N.part,F=y.audio,B=y.text,z=y.id3,K=y.initSegment;if(this.fragContextChanged(S))return;if(this.state=_.State.PARSING,this.audioSwitch&&F&&this.completeAudioSwitch(),K!=null&&K.tracks&&(this._bufferInitSegment(K.tracks,S,U),g.trigger(O.Events.FRAG_PARSING_INIT_SEGMENT,{frag:S,id:x,tracks:K.tracks})),F){var $=F.startPTS,te=F.endPTS,fe=F.startDTS,Ae=F.endDTS;H&&(H.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:$,endPTS:te,startDTS:fe,endDTS:Ae}),S.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,$,te,fe,Ae),this.bufferFragmentData(F,S,H,U)}if(z!=null&&(m=z.samples)!==null&&m!==void 0&&m.length){var ce=o({frag:S,id:x},z);g.trigger(O.Events.FRAG_PARSING_METADATA,ce)}if(B){var ie=o({frag:S,id:x},B);g.trigger(O.Events.FRAG_PARSING_USERDATA,ie)}},b._bufferInitSegment=function(h,m,x){if(this.state!==_.State.PARSING)return;h.video&&delete h.video;var g=h.audio;if(!g)return;g.levelCodec=g.codec,g.id="audio",this.log("Init audio buffer, container:"+g.container+", codecs[parsed]=["+g.codec+"]"),this.hls.trigger(O.Events.BUFFER_CODECS,h);var y=g.initSegment;if(y!=null&&y.byteLength){var U={type:"audio",frag:m,part:null,chunkMeta:x,parent:m.type,data:y};this.hls.trigger(O.Events.BUFFER_APPENDING,U)}this.tick()},b.loadFragment=function(h,m,x){var g=this.fragmentTracker.getState(h);this.fragCurrent=h,(this.audioSwitch||g===T.FragmentState.NOT_LOADED||g===T.FragmentState.PARTIAL)&&(h.sn==="initSegment"?this._loadInitSegment(h):m.live&&!Object(k.isFiniteNumber)(this.initPTS[h.cc])?(this.log("Waiting for video PTS in continuity counter "+h.cc+" of live stream before loading audio fragment "+h.sn+" of level "+this.trackId),this.state=_.State.WAITING_INIT_PTS):(this.startFragRequested=!0,P.prototype.loadFragment.call(this,h,m,x)))},b.completeAudioSwitch=function(){var h=this.hls,m=this.media,x=this.trackId;m&&(this.log("Switching audio track : flushing all audio"),P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,h.trigger(O.Events.AUDIO_TRACK_SWITCHED,{id:x})},C}(_.default);Q.default=w},"./src/controller/audio-track-controller.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/events.ts"),_=I("./src/errors.ts"),O=I("./src/controller/base-playlist-controller.ts"),M=I("./src/types/loader.ts");function T(A,l){for(var i=0;i=f.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var o=f[this.trackId];this.log("Now switching to audio-track index "+d);var u=f[d],E=u.id,R=u.groupId,w=R===void 0?"":R,P=u.name,C=u.type,b=u.url;if(this.trackId=d,this.trackName=P,this.selectDefaultTrack=!1,this.hls.trigger(k.Events.AUDIO_TRACK_SWITCHING,{id:E,groupId:w,name:P,type:C,url:b}),u.details&&!u.details.live)return;var s=this.switchParams(u.url,o==null?void 0:o.details);this.loadPlaylist(s)},i.selectInitialTrack=function(){var d=this.tracksInGroup;console.assert(d.length,"Initial audio track should be selected when tracks are known");var f=this.trackName,o=this.findTrackId(f)||this.findTrackId();o!==-1?this.setAudioTrack(o):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},i.findTrackId=function(d){for(var f=this.tracksInGroup,o=0;ol.partTarget&&(u+=1)}if(Object(k.isFiniteNumber)(o))return new _.HlsUrlParameters(o,Object(k.isFiniteNumber)(u)?u:void 0,_.HlsSkip.No)}}},a.loadPlaylist=function(A){},a.shouldLoadTrack=function(A){return this.canLoad&&A&&!!A.url&&(!A.details||A.details.live)},a.playlistLoaded=function(A,l,i){var c=this,d=l.details,f=l.stats,o=f.loading.end?Math.max(0,self.performance.now()-f.loading.end):0;if(d.advancedDateTime=Date.now()-o,d.live||i!=null&&i.live){if(d.reloaded(i),i&&this.log("live playlist "+A+" "+(d.advanced?"REFRESHED "+d.lastPartSn+"-"+d.lastPartIndex:"MISSED")),i&&d.fragments.length>0&&Object(O.mergeDetails)(i,d),!this.canLoad||!d.live)return;var u,E=void 0,R=void 0;if(d.canBlockReload&&d.endSN&&d.advanced){var w=this.hls.config.lowLatencyMode,P=d.lastPartSn,C=d.endSN,b=d.lastPartIndex,s=b!==-1,h=P===C,m=w?0:b;s?(E=h?C+1:P,R=h?m:b+1):E=C+1;var x=d.age,g=x+d.ageHeader,y=Math.min(g-d.partTarget,d.targetduration*1.5);if(y>0){if(i&&y>i.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+i.tuneInGoal+" to: "+y+" with playlist age: "+d.age),y=0;else{var U=Math.floor(y/d.targetduration);if(E+=U,R!==void 0){var N=Math.round(y%d.targetduration/d.partTarget);R+=N}this.log("CDN Tune-in age: "+d.ageHeader+"s last advanced "+x.toFixed(2)+"s goal: "+y+" skip sn "+U+" to part "+R)}d.tuneInGoal=y}if(u=this.getDeliveryDirectives(d,l.deliveryDirectives,E,R),w||!h){this.loadPlaylist(u);return}}else u=this.getDeliveryDirectives(d,l.deliveryDirectives,E,R);var S=Object(O.computeReloadInterval)(d,f);E!==void 0&&d.canBlockReload&&(S-=d.partTarget||1),this.log("reload live playlist "+A+" in "+Math.round(S)+" ms"),this.timer=self.setTimeout(function(){return c.loadPlaylist(u)},S)}else this.clearTimer()},a.getDeliveryDirectives=function(A,l,i,c){var d=Object(_.getSkipValue)(A,i);return l!=null&&l.skip&&A.deltaUpdateFailed&&(i=l.msn,c=l.part,d=_.HlsSkip.No),new _.HlsUrlParameters(i,c,d)},a.retryLoadingOrFail=function(A){var l=this,i=this.hls.config,c=this.retryCount-1&&(d=A.context)!==null&&d!==void 0&&d.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+A.details+'"'),this.loadPlaylist();else{var f=Math.min(Math.pow(2,this.retryCount)*i.levelLoadingRetryDelay,i.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return l.loadPlaylist()},f),this.warn("retry playlist loading #"+this.retryCount+" in "+f+' ms after "'+A.details+'"')}}else this.warn('cannot recover from error "'+A.details+'"'),this.clearTimer(),A.fatal=!0;return c},p}()},"./src/controller/base-stream-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"State",function(){return C}),I.d(Q,"default",function(){return b});var k=I("./src/polyfills/number.ts"),_=I("./src/task-loop.ts"),O=I("./src/controller/fragment-tracker.ts"),M=I("./src/utils/buffer-helper.ts"),T=I("./src/utils/logger.ts"),n=I("./src/events.ts"),p=I("./src/errors.ts"),a=I("./src/types/transmuxer.ts"),t=I("./src/utils/mp4-tools.ts"),A=I("./src/utils/discontinuities.ts"),l=I("./src/controller/fragment-finders.ts"),i=I("./src/controller/level-helper.ts"),c=I("./src/loader/fragment-loader.ts"),d=I("./src/crypt/decrypter.ts"),f=I("./src/utils/time-ranges.ts"),o=I("./src/types/loader.ts");function u(s,h){for(var m=0;mK;(H0&&H&&H.key&&H.iv&&H.method==="AES-128"){var F=self.performance.now();return y.decrypter.webCryptoDecrypt(new Uint8Array(S),H.key.buffer,H.iv.buffer).then(function(B){var z=self.performance.now();return N.trigger(n.Events.FRAG_DECRYPTED,{frag:g,payload:B,stats:{tstart:F,tdecrypt:z}}),U.payload=B,U})}return U}).then(function(U){var N=y.fragCurrent,S=y.hls,H=y.levels;if(!H)throw new Error("init load aborted, missing levels");var F=H[g.level].details;console.assert(F,"Level details are defined when init segment is loaded");var B=g.stats;y.state=C.IDLE,y.fragLoadError=0,g.data=new Uint8Array(U.payload),B.parsing.start=B.buffering.start=self.performance.now(),B.parsing.end=B.buffering.end=self.performance.now(),U.frag===N&&S.trigger(n.Events.FRAG_BUFFERED,{stats:B,frag:N,part:null,id:g.type}),y.tick()}).catch(function(U){y.warn(U),y.resetFragmentLoading(g)})},m.fragContextChanged=function(g){var y=this.fragCurrent;return!g||!y||g.level!==y.level||g.sn!==y.sn||g.urlId!==y.urlId},m.fragBufferedComplete=function(g,y){var U=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+g.type+" sn: "+g.sn+(y?" part: "+y.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+g.level+" "+f.default.toString(M.BufferHelper.getBuffered(U))),this.state=C.IDLE,this.tick()},m._handleFragmentLoadComplete=function(g){var y=this.transmuxer;if(!y)return;var U=g.frag,N=g.part,S=g.partsLoaded,H=!S||S.length===0||S.some(function(B){return!B}),F=new a.ChunkMetadata(U.level,U.sn,U.stats.chunkCount+1,0,N?N.index:-1,!H);y.flush(F)},m._handleFragmentLoadProgress=function(g){},m._doFragLoad=function(g,y,U,N){var S=this;if(U===void 0&&(U=null),!this.levels)throw new Error("frag load aborted, missing levels");if(U=Math.max(g.start,U||0),this.config.lowLatencyMode&&y){var H=y.partList;if(H&&N){U>g.end&&y.fragmentHint&&(g=y.fragmentHint);var F=this.getNextPart(H,g,U);if(F>-1){var B=H[F];return this.log("Loading part sn: "+g.sn+" p: "+B.index+" cc: "+g.cc+" of playlist ["+y.startSN+"-"+y.endSN+"] parts [0-"+F+"-"+(H.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+g.level+", target: "+parseFloat(U.toFixed(3))),this.nextLoadPosition=B.start+B.duration,this.state=C.FRAG_LOADING,this.hls.trigger(n.Events.FRAG_LOADING,{frag:g,part:H[F],targetBufferTime:U}),this.doFragPartsLoad(g,H,F,N).catch(function(z){return S.handleFragLoadError(z)})}else if(!g.url||this.loadedEndOfParts(H,U))return Promise.resolve(null)}}return this.log("Loading fragment "+g.sn+" cc: "+g.cc+" "+(y?"of ["+y.startSN+"-"+y.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+g.level+", target: "+parseFloat(U.toFixed(3))),Object(k.isFiniteNumber)(g.sn)&&!this.bitrateTest&&(this.nextLoadPosition=g.start+g.duration),this.state=C.FRAG_LOADING,this.hls.trigger(n.Events.FRAG_LOADING,{frag:g,targetBufferTime:U}),this.fragmentLoader.load(g,N).catch(function(z){return S.handleFragLoadError(z)})},m.doFragPartsLoad=function(g,y,U,N){var S=this;return new Promise(function(H,F){var B=[],z=function K($){var te=y[$];S.fragmentLoader.loadPart(g,te,N).then(function(fe){B[te.index]=fe;var Ae=fe.part;S.hls.trigger(n.Events.FRAG_LOADED,fe);var ce=y[$+1];if(ce&&ce.fragment===g)K($+1);else return H({frag:g,part:Ae,partsLoaded:B})}).catch(F)};z(U)})},m.handleFragLoadError=function(g){var y=g.data;return y&&y.details===p.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(y.frag,y.part):this.hls.trigger(n.Events.ERROR,y),null},m._handleTransmuxerFlush=function(g){var y=this.getCurrentContext(g);if(!y||this.state!==C.PARSING){this.fragCurrent||(this.state=C.IDLE);return}var U=y.frag,N=y.part,S=y.level,H=self.performance.now();U.stats.parsing.end=H,N&&(N.stats.parsing.end=H),this.updateLevelTiming(U,N,S,g.partial)},m.getCurrentContext=function(g){var y=this.levels,U=g.level,N=g.sn,S=g.part;if(!y||!y[U])return this.warn("Levels object was unset while buffering fragment "+N+" of level "+U+". The current chunk will not be buffered."),null;var H=y[U],F=S>-1?Object(i.getPartWith)(H,N,S):null,B=F?F.fragment:Object(i.getFragmentWithSN)(H,N,this.fragCurrent);return B?{frag:B,part:F,level:H}:null},m.bufferFragmentData=function(g,y,U,N){if(!g||this.state!==C.PARSING)return;var S=g.data1,H=g.data2,F=S;if(S&&H&&(F=Object(t.appendUint8Array)(S,H)),!F||!F.length)return;var B={type:g.type,frag:y,part:U,chunkMeta:N,parent:y.type,data:F};this.hls.trigger(n.Events.BUFFER_APPENDING,B),g.dropped&&g.independent&&!U&&this.flushBufferGap(y)},m.flushBufferGap=function(g){var y=this.media;if(!y)return;if(!M.BufferHelper.isBuffered(y,y.currentTime)){this.flushMainBuffer(0,g.start);return}var U=y.currentTime,N=M.BufferHelper.bufferInfo(y,U,0),S=g.duration,H=Math.min(this.config.maxFragLookUpTolerance*2,S*.25),F=Math.max(Math.min(g.start-H,N.end-H),U+H);g.start-F>H&&this.flushMainBuffer(F,g.start)},m.getFwdBufferInfo=function(g,y){var U=this.config,N=this.getLoadPosition();if(!Object(k.isFiniteNumber)(N))return null;var S=M.BufferHelper.bufferInfo(g,N,U.maxBufferHole);if(S.len===0&&S.nextStart!==void 0){var H=this.fragmentTracker.getBufferedFrag(N,y);if(H&&S.nextStart=U?(y.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+y.maxMaxBufferLength+"s"),!0):!1},m.getNextFragment=function(g,y){var U,N,S=y.fragments,H=S.length;if(!H)return null;var F=this.config,B=S[0].start,z;if(y.live){var K=F.initialLiveManifestSize;if(H-1&&UU.start&&U.loaded},m.getInitialLiveFragment=function(g,y){var U=this.fragPrevious,N=null;if(U){if(g.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+U.programDateTime),N=Object(l.findFragmentByPDT)(y,U.endProgramDateTime,this.config.maxFragLookUpTolerance)),!N){var S=U.sn+1;if(S>=g.startSN&&S<=g.endSN){var H=y[S-g.startSN];U.cc===H.cc&&(N=H,this.log("Live playlist, switching playlist, load frag with next SN: "+N.sn))}N||(N=Object(l.findFragWithCC)(y,U.cc),N&&this.log("Live playlist, switching playlist, load frag with same CC: "+N.sn))}}else{var F=this.hls.liveSyncPosition;F!==null&&(N=this.getFragmentAtPosition(F,this.bitrateTest?g.fragmentEnd:g.edge,g))}return N},m.getFragmentAtPosition=function(g,y,U){var N=this.config,S=this.fragPrevious,H=U.fragments,F=U.endSN,B=U.fragmentHint,z=N.maxFragLookUpTolerance,K=!!(N.lowLatencyMode&&U.partList&&B);K&&B&&!this.bitrateTest&&(H=H.concat(B),F=B.sn);var $;if(gy-z?0:z;$=Object(l.findFragmentByPTS)(S,H,g,te)}else $=H[H.length-1];if($){var fe=$.sn-U.startSN,Ae=S&&$.level===S.level,ce=H[fe+1],ie=this.fragmentTracker.getState($);if(ie===O.FragmentState.BACKTRACKED){$=null;for(var ye=fe;H[ye]&&this.fragmentTracker.getState(H[ye])===O.FragmentState.BACKTRACKED;)S?$=H[ye--]:$=H[--ye];$||($=ce)}else S&&$.sn===S.sn&&!K&&(Ae&&($.sn=H-y.maxFragLookUpTolerance&&S<=F;if(N!==null&&U.duration>N&&(S"+g.startSN+" prev-sn: "+(S?S.sn:"na")+" fragments: "+F),$}return B},m.waitForCdnTuneIn=function(g){var y=3;return g.live&&g.canBlockReload&&g.tuneInGoal>Math.max(g.partHoldBack,g.partTarget*y)},m.setStartPosition=function(g,y){var U=this.startPosition;if(U"+g))}}]),h}(_.default)},"./src/controller/buffer-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return l});var k=I("./src/polyfills/number.ts"),_=I("./src/events.ts"),O=I("./src/utils/logger.ts"),M=I("./src/errors.ts"),T=I("./src/utils/buffer-helper.ts"),n=I("./src/utils/mediasource-helper.ts"),p=I("./src/loader/fragment.ts"),a=I("./src/controller/buffer-operation-queue.ts"),t=Object(n.getMediaSource)(),A=/([ha]vc.)(?:\.[^.,]+)+/,l=function(){function i(d){var f=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var o=f.hls,u=f.media,E=f.mediaSource;O.logger.log("[buffer-controller]: Media source opened"),u&&(f.updateMediaElementDuration(),o.trigger(_.Events.MEDIA_ATTACHED,{media:u})),E&&E.removeEventListener("sourceopen",f._onMediaSourceOpen),f.checkPendingTracks()},this._onMediaSourceClose=function(){O.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){O.logger.log("[buffer-controller]: Media source ended")},this.hls=d,this._initSourceBuffer(),this.registerListeners()}var c=i.prototype;return c.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},c.destroy=function(){this.unregisterListeners(),this.details=null},c.registerListeners=function(){var f=this.hls;f.on(_.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),f.on(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.on(_.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.on(_.Events.BUFFER_RESET,this.onBufferReset,this),f.on(_.Events.BUFFER_APPENDING,this.onBufferAppending,this),f.on(_.Events.BUFFER_CODECS,this.onBufferCodecs,this),f.on(_.Events.BUFFER_EOS,this.onBufferEos,this),f.on(_.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),f.on(_.Events.LEVEL_UPDATED,this.onLevelUpdated,this),f.on(_.Events.FRAG_PARSED,this.onFragParsed,this),f.on(_.Events.FRAG_CHANGED,this.onFragChanged,this)},c.unregisterListeners=function(){var f=this.hls;f.off(_.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),f.off(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.off(_.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.off(_.Events.BUFFER_RESET,this.onBufferReset,this),f.off(_.Events.BUFFER_APPENDING,this.onBufferAppending,this),f.off(_.Events.BUFFER_CODECS,this.onBufferCodecs,this),f.off(_.Events.BUFFER_EOS,this.onBufferEos,this),f.off(_.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),f.off(_.Events.LEVEL_UPDATED,this.onLevelUpdated,this),f.off(_.Events.FRAG_PARSED,this.onFragParsed,this),f.off(_.Events.FRAG_CHANGED,this.onFragChanged,this)},c._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new a.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},c.onManifestParsed=function(f,o){var u=2;(o.audio&&!o.video||!o.altAudio)&&(u=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=u,this.details=null,O.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},c.onMediaAttaching=function(f,o){var u=this.media=o.media;if(u&&t){var E=this.mediaSource=new t;E.addEventListener("sourceopen",this._onMediaSourceOpen),E.addEventListener("sourceended",this._onMediaSourceEnded),E.addEventListener("sourceclose",this._onMediaSourceClose),u.src=self.URL.createObjectURL(E),this._objectUrl=u.src}},c.onMediaDetaching=function(){var f=this.media,o=this.mediaSource,u=this._objectUrl;if(o){if(O.logger.log("[buffer-controller]: media source detaching"),o.readyState==="open")try{o.endOfStream()}catch(E){O.logger.warn("[buffer-controller]: onMediaDetaching: "+E.message+" while calling endOfStream")}this.onBufferReset(),o.removeEventListener("sourceopen",this._onMediaSourceOpen),o.removeEventListener("sourceended",this._onMediaSourceEnded),o.removeEventListener("sourceclose",this._onMediaSourceClose),f&&(u&&self.URL.revokeObjectURL(u),f.src===u?(f.removeAttribute("src"),f.load()):O.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(_.Events.MEDIA_DETACHED,void 0)},c.onBufferReset=function(){var f=this;this.getSourceBufferTypes().forEach(function(o){var u=f.sourceBuffer[o];try{u&&(f.removeBufferListeners(o),f.mediaSource&&f.mediaSource.removeSourceBuffer(u),f.sourceBuffer[o]=void 0)}catch(E){O.logger.warn("[buffer-controller]: Failed to reset the "+o+" buffer",E)}}),this._initSourceBuffer()},c.onBufferCodecs=function(f,o){var u=this,E=this.getSourceBufferTypes().length;if(Object.keys(o).forEach(function(R){if(E){var w=u.tracks[R];if(w&&typeof w.buffer.changeType=="function"){var P=o[R],C=P.codec,b=P.levelCodec,s=P.container,h=(w.levelCodec||w.codec).replace(A,"$1"),m=(b||C).replace(A,"$1");if(h!==m){var x=s+";codecs="+(b||C);u.appendChangeType(R,x)}}}else u.pendingTracks[R]=o[R]}),E)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},c.appendChangeType=function(f,o){var u=this,E=this.operationQueue,R={execute:function(){var P=u.sourceBuffer[f];P&&(O.logger.log("[buffer-controller]: changing "+f+" sourceBuffer type to "+o),P.changeType(o)),E.shiftAndExecuteNext(f)},onStart:function(){},onComplete:function(){},onError:function(P){O.logger.warn("[buffer-controller]: Failed to change "+f+" SourceBuffer type",P)}};E.append(R,f)},c.onBufferAppending=function(f,o){var u=this,E=this.hls,R=this.operationQueue,w=this.tracks,P=o.data,C=o.type,b=o.frag,s=o.part,h=o.chunkMeta,m=h.buffering[C],x=self.performance.now();m.start=x;var g=b.stats.buffering,y=s?s.stats.buffering:null;g.start===0&&(g.start=x),y&&y.start===0&&(y.start=x);var U=w.audio,N=C==="audio"&&h.id===1&&(U==null?void 0:U.container)==="audio/mpeg",S={execute:function(){if(m.executeStart=self.performance.now(),N){var F=u.sourceBuffer[C];if(F){var B=b.start-F.timestampOffset;Math.abs(B)>=.1&&(O.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+b.start+" (delta: "+B+") sn: "+b.sn+")"),F.timestampOffset=b.start)}}u.appendExecutor(P,C)},onStart:function(){},onComplete:function(){var F=self.performance.now();m.executeEnd=m.end=F,g.first===0&&(g.first=F),y&&y.first===0&&(y.first=F);var B=u.sourceBuffer,z={};for(var K in B)z[K]=T.BufferHelper.getBuffered(B[K]);u.appendError=0,u.hls.trigger(_.Events.BUFFER_APPENDED,{type:C,frag:b,part:s,chunkMeta:h,parent:b.type,timeRanges:z})},onError:function(F){O.logger.error("[buffer-controller]: Error encountered while trying to append to the "+C+" SourceBuffer",F);var B={type:M.ErrorTypes.MEDIA_ERROR,parent:b.type,details:M.ErrorDetails.BUFFER_APPEND_ERROR,err:F,fatal:!1};F.code===DOMException.QUOTA_EXCEEDED_ERR?B.details=M.ErrorDetails.BUFFER_FULL_ERROR:(u.appendError++,B.details=M.ErrorDetails.BUFFER_APPEND_ERROR,u.appendError>E.config.appendErrorMaxRetry&&(O.logger.error("[buffer-controller]: Failed "+E.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),B.fatal=!0)),E.trigger(_.Events.ERROR,B)}};R.append(S,C)},c.onBufferFlushing=function(f,o){var u=this,E=this.operationQueue,R=function(P){return{execute:u.removeExecutor.bind(u,P,o.startOffset,o.endOffset),onStart:function(){},onComplete:function(){u.hls.trigger(_.Events.BUFFER_FLUSHED,{type:P})},onError:function(b){O.logger.warn("[buffer-controller]: Failed to remove from "+P+" SourceBuffer",b)}}};o.type?E.append(R(o.type),o.type):this.getSourceBufferTypes().forEach(function(w){E.append(R(w),w)})},c.onFragParsed=function(f,o){var u=this,E=o.frag,R=o.part,w=[],P=R?R.elementaryStreams:E.elementaryStreams;P[p.ElementaryStreamTypes.AUDIOVIDEO]?w.push("audiovideo"):(P[p.ElementaryStreamTypes.AUDIO]&&w.push("audio"),P[p.ElementaryStreamTypes.VIDEO]&&w.push("video"));var C=function(){var s=self.performance.now();E.stats.buffering.end=s,R&&(R.stats.buffering.end=s);var h=R?R.stats:E.stats;u.hls.trigger(_.Events.FRAG_BUFFERED,{frag:E,part:R,stats:h,id:E.type})};w.length===0&&O.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+E.type+" level: "+E.level+" sn: "+E.sn),this.blockBuffers(C,w)},c.onFragChanged=function(f,o){this.flushBackBuffer()},c.onBufferEos=function(f,o){var u=this,E=this.getSourceBufferTypes().reduce(function(R,w){var P=u.sourceBuffer[w];return(!o.type||o.type===w)&&(P&&!P.ended&&(P.ended=!0,O.logger.log("[buffer-controller]: "+w+" sourceBuffer now EOS"))),R&&!!(!P||P.ended)},!0);E&&this.blockBuffers(function(){var R=u.mediaSource;if(!R||R.readyState!=="open")return;R.endOfStream()})},c.onLevelUpdated=function(f,o){var u=o.details;if(!u.fragments.length)return;this.details=u,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},c.flushBackBuffer=function(){var f=this.hls,o=this.details,u=this.media,E=this.sourceBuffer;if(!u||o===null)return;var R=this.getSourceBufferTypes();if(!R.length)return;var w=o.live&&f.config.liveBackBufferLength!==null?f.config.liveBackBufferLength:f.config.backBufferLength;if(!Object(k.isFiniteNumber)(w)||w<0)return;var P=u.currentTime,C=o.levelTargetDuration,b=Math.max(w,C),s=Math.floor(P/C)*C-b;R.forEach(function(h){var m=E[h];if(m){var x=T.BufferHelper.getBuffered(m);x.length>0&&s>x.start(0)&&(f.trigger(_.Events.BACK_BUFFER_REACHED,{bufferEnd:s}),o.live&&f.trigger(_.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:s}),f.trigger(_.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:s,type:h}))}})},c.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var f=this.details,o=this.hls,u=this.media,E=this.mediaSource,R=f.fragments[0].start+f.totalduration,w=u.duration,P=Object(k.isFiniteNumber)(E.duration)?E.duration:0;f.live&&o.config.liveDurationInfinity?(O.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),E.duration=Infinity,this.updateSeekableRange(f)):(R>P&&R>w||!Object(k.isFiniteNumber)(w))&&(O.logger.log("[buffer-controller]: Updating Media Source duration to "+R.toFixed(3)),E.duration=R)},c.updateSeekableRange=function(f){var o=this.mediaSource,u=f.fragments,E=u.length;if(E&&f.live&&o!==null&&o!==void 0&&o.setLiveSeekableRange){var R=Math.max(0,u[0].start),w=Math.max(R,R+f.totalduration);o.setLiveSeekableRange(R,w)}},c.checkPendingTracks=function(){var f=this.bufferCodecEventsExpected,o=this.operationQueue,u=this.pendingTracks,E=Object.keys(u).length;if(E&&!f||E===2){this.createSourceBuffers(u),this.pendingTracks={};var R=this.getSourceBufferTypes();if(R.length===0){this.hls.trigger(_.Events.ERROR,{type:M.ErrorTypes.MEDIA_ERROR,details:M.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}R.forEach(function(w){o.executeNext(w)})}},c.createSourceBuffers=function(f){var o=this.sourceBuffer,u=this.mediaSource;if(!u)throw Error("createSourceBuffers called when mediaSource was null");var E=0;for(var R in f)if(!o[R]){var w=f[R];if(!w)throw Error("source buffer exists for track "+R+", however track does not");var P=w.levelCodec||w.codec,C=w.container+";codecs="+P;O.logger.log("[buffer-controller]: creating sourceBuffer("+C+")");try{var b=o[R]=u.addSourceBuffer(C),s=R;this.addBufferListener(s,"updatestart",this._onSBUpdateStart),this.addBufferListener(s,"updateend",this._onSBUpdateEnd),this.addBufferListener(s,"error",this._onSBUpdateError),this.tracks[R]={buffer:b,codec:P,container:w.container,levelCodec:w.levelCodec,id:w.id},E++}catch(h){O.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+h.message),this.hls.trigger(_.Events.ERROR,{type:M.ErrorTypes.MEDIA_ERROR,details:M.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:h,mimeType:C})}}E&&this.hls.trigger(_.Events.BUFFER_CREATED,{tracks:this.tracks})},c._onSBUpdateStart=function(f){var o=this.operationQueue,u=o.current(f);u.onStart()},c._onSBUpdateEnd=function(f){var o=this.operationQueue,u=o.current(f);u.onComplete(),o.shiftAndExecuteNext(f)},c._onSBUpdateError=function(f,o){O.logger.error("[buffer-controller]: "+f+" SourceBuffer error",o),this.hls.trigger(_.Events.ERROR,{type:M.ErrorTypes.MEDIA_ERROR,details:M.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var u=this.operationQueue.current(f);u&&u.onError(o)},c.removeExecutor=function(f,o,u){var E=this.media,R=this.mediaSource,w=this.operationQueue,P=this.sourceBuffer,C=P[f];if(!E||!R||!C){O.logger.warn("[buffer-controller]: Attempting to remove from the "+f+" SourceBuffer, but it does not exist"),w.shiftAndExecuteNext(f);return}var b=Object(k.isFiniteNumber)(E.duration)?E.duration:Infinity,s=Object(k.isFiniteNumber)(R.duration)?R.duration:Infinity,h=Math.max(0,o),m=Math.min(u,b,s);m>h?(O.logger.log("[buffer-controller]: Removing ["+h+","+m+"] from the "+f+" SourceBuffer"),console.assert(!C.updating,f+" sourceBuffer must not be updating"),C.remove(h,m)):w.shiftAndExecuteNext(f)},c.appendExecutor=function(f,o){var u=this.operationQueue,E=this.sourceBuffer,R=E[o];if(!R){O.logger.warn("[buffer-controller]: Attempting to append to the "+o+" SourceBuffer, but it does not exist"),u.shiftAndExecuteNext(o);return}R.ended=!1,console.assert(!R.updating,o+" sourceBuffer must not be updating"),R.appendBuffer(f)},c.blockBuffers=function(f,o){var u=this;if(o===void 0&&(o=this.getSourceBufferTypes()),!o.length){O.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(f);return}var E=this.operationQueue,R=o.map(function(w){return E.appendBlocker(w)});Promise.all(R).then(function(){f(),o.forEach(function(w){var P=u.sourceBuffer[w];(!P||!P.updating)&&E.shiftAndExecuteNext(w)})})},c.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},c.addBufferListener=function(f,o,u){var E=this.sourceBuffer[f];if(!E)return;var R=u.bind(this,f);this.listeners[f].push({event:o,listener:R}),E.addEventListener(o,R)},c.removeBufferListeners=function(f){var o=this.sourceBuffer[f];if(!o)return;this.listeners[f].forEach(function(u){o.removeEventListener(u.event,u.listener)})},i}()},"./src/controller/buffer-operation-queue.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return _});var k=I("./src/utils/logger.ts"),_=function(){function O(T){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=T}var M=O.prototype;return M.append=function(n,p){var a=this.queues[p];a.push(n),a.length===1&&this.buffers[p]&&this.executeNext(p)},M.insertAbort=function(n,p){var a=this.queues[p];a.unshift(n),this.executeNext(p)},M.appendBlocker=function(n){var p,a=new Promise(function(A){p=A}),t={execute:p,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(t,n),a},M.executeNext=function(n){var p=this.buffers,a=this.queues,t=p[n],A=a[n];if(A.length){var l=A[0];try{l.execute()}catch(i){k.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),l.onError(i),(!t||!t.updating)&&(A.shift(),this.executeNext(n))}}},M.shiftAndExecuteNext=function(n){this.queues[n].shift(),this.executeNext(n)},M.current=function(n){return this.queues[n][0]},O}()},"./src/controller/cap-level-controller.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/events.ts");function _(T,n){for(var p=0;p0&&this.mediaWidth>0){var a=this.hls.levels;if(a.length){var t=this.hls;t.autoLevelCapping=this.getMaxLevel(a.length-1),t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}},n.getMaxLevel=function(a){var t=this,A=this.hls.levels;if(!A.length)return-1;var l=A.filter(function(i,c){return T.isLevelAllowed(c,t.restrictedLevels)&&c<=a});return this.clientRect=null,T.getMaxLevelByMediaSize(l,this.mediaWidth,this.mediaHeight)},n.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},n.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},n.getDimensions=function(){if(this.clientRect)return this.clientRect;var a=this.media,t={width:0,height:0};if(a){var A=a.getBoundingClientRect();t.width=A.width,t.height=A.height,!t.width&&!t.height&&(t.width=A.right-A.left||a.width||0,t.height=A.bottom-A.top||a.height||0)}return this.clientRect=t,t},T.isLevelAllowed=function(a,t){return t===void 0&&(t=[]),t.indexOf(a)===-1},T.getMaxLevelByMediaSize=function(a,t,A){if(!a||!a.length)return-1;for(var l=function(o,u){return u?o.width!==u.width||o.height!==u.height:!0},i=a.length-1,c=0;c=t||d.height>=A)&&l(d,a[c+1])){i=c;break}}return i},O(T,[{key:"mediaWidth",get:function(){return this.getDimensions().width*T.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*T.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var a=1;try{a=self.devicePixelRatio}catch(t){}return a}}]),T}();Q.default=M},"./src/controller/cmcd-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return l});var k=I("./src/events.ts"),_=I("./src/types/cmcd.ts"),O=I("./src/utils/buffer-helper.ts"),M=I("./src/utils/logger.ts");function T(i,c){for(var d=0;d=i.length?{done:!0}:{done:!1,value:i[f++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(i,c){if(!i)return;if(typeof i=="string")return t(i,c);var d=Object.prototype.toString.call(i).slice(8,-1);if(d==="Object"&&i.constructor&&(d=i.constructor.name),d==="Map"||d==="Set")return Array.from(i);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return t(i,c)}function t(i,c){(c==null||c>i.length)&&(c=i.length);for(var d=0,f=new Array(c);do&&(o=w.bitrate)}return o>0?o:NaN},c.getBufferLength=function(f){var o=this.hls.media,u=f===_.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!u||!o)return NaN;var E=O.BufferHelper.bufferInfo(u,o.currentTime,this.config.maxBufferHole);return E.len*1e3},c.createPlaylistLoader=function(){var f=this.config.pLoader,o=this.applyPlaylistData,u=f||this.config.loader;return function(){function E(w){this.loader=void 0,this.loader=new u(w)}var R=E.prototype;return R.destroy=function(){this.loader.destroy()},R.abort=function(){this.loader.abort()},R.load=function(P,C,b){o(P),this.loader.load(P,C,b)},n(E,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),E}()},c.createFragmentLoader=function(){var f=this.config.fLoader,o=this.applyFragmentData,u=f||this.config.loader;return function(){function E(w){this.loader=void 0,this.loader=new u(w)}var R=E.prototype;return R.destroy=function(){this.loader.destroy()},R.abort=function(){this.loader.abort()},R.load=function(P,C,b){o(P),this.loader.load(P,C,b)},n(E,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),E}()},i.uuid=function(){var f=URL.createObjectURL(new Blob),o=f.toString();return URL.revokeObjectURL(f),o.substr(o.lastIndexOf("/")+1)},i.serialize=function(f){for(var o=[],u=function(N){return!Number.isNaN(N)&&N!=null&&N!==""&&N!==!1},E=function(N){return Math.round(N)},R=function(N){return E(N/100)*100},w=function(N){return encodeURIComponent(N)},P={br:E,d:E,bl:R,dl:R,mtp:R,nor:w,rtp:R,tb:E},C=Object.keys(f||{}).sort(),b=p(C),s;!(s=b()).done;){var h=s.value,m=f[h];if(!u(m))continue;if(h==="v"&&m===1)continue;if(h=="pr"&&m===1)continue;var x=P[h];x&&(m=x(m));var g=typeof m,y=void 0;h==="ot"||h==="sf"||h==="st"?y=h+"="+m:g==="boolean"?y=h:g==="number"?y=h+"="+m:y=h+"="+JSON.stringify(m),o.push(y)}return o.join(",")},i.toHeaders=function(f){for(var o=Object.keys(f),u={},E=["Object","Request","Session","Status"],R=[{},{},{},{}],w={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},P=0,C=o;Pp){this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var w=p-this._requestLicenseFailureCount+1;O.logger.warn("Retrying license request, "+w+" attempts left"),this._requestLicense(o,u)}break}},i._generateLicenseRequestChallenge=function(d,f){switch(d.mediaKeySystemDomain){case M.KeySystems.WIDEVINE:return f}throw new Error("unsupported key-system: "+d.mediaKeySystemDomain)},i._requestLicense=function(d,f){O.logger.log("Requesting content license for key-system");var o=this._mediaKeysList[0];if(!o){O.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var u=this.getLicenseServerUrl(o.mediaKeySystemDomain),E=this._createLicenseXhr(u,d,f);O.logger.log("Sending license request to URL: "+u);var R=this._generateLicenseRequestChallenge(o,d);E.send(R)}catch(w){O.logger.error("Failure requesting DRM license: "+w),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},i.onMediaAttached=function(d,f){if(!this._emeEnabled)return;var o=f.media;this._media=o,o.addEventListener("encrypted",this._onMediaEncrypted)},i.onMediaDetached=function(){var d=this._media,f=this._mediaKeysList;if(!d)return;d.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(f.map(function(o){if(o.mediaKeysSession)return o.mediaKeysSession.close().catch(function(){})})).then(function(){return d.setMediaKeys(null)}).catch(function(){})},i.onManifestParsed=function(d,f){if(!this._emeEnabled)return;var o=f.levels.map(function(E){return E.audioCodec}).filter(function(E){return!!E}),u=f.levels.map(function(E){return E.videoCodec}).filter(function(E){return!!E});this._attemptKeySystemAccess(M.KeySystems.WIDEVINE,o,u)},n(l,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),l}();Q.default=A},"./src/controller/fps-controller.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/events.ts"),_=I("./src/utils/logger.ts"),O=function(){function M(n){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=n,this.registerListeners()}var T=M.prototype;return T.setStreamController=function(p){this.streamController=p},T.registerListeners=function(){this.hls.on(k.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},T.unregisterListeners=function(){this.hls.off(k.Events.MEDIA_ATTACHING,this.onMediaAttaching)},T.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},T.onMediaAttaching=function(p,a){var t=this.hls.config;if(t.capLevelOnFPSDrop){var A=a.media instanceof self.HTMLVideoElement?a.media:null;this.media=A,A&&typeof A.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),t.fpsDroppedMonitoringPeriod)}},T.checkFPS=function(p,a,t){var A=performance.now();if(a){if(this.lastTime){var l=A-this.lastTime,i=t-this.lastDroppedFrames,c=a-this.lastDecodedFrames,d=1e3*i/l,f=this.hls;if(f.trigger(k.Events.FPS_DROP,{currentDropped:i,currentDecoded:c,totalDroppedFrames:t}),d>0&&i>f.config.fpsDroppedMonitoringThreshold*c){var o=f.currentLevel;_.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+o),o>0&&(f.autoLevelCapping===-1||f.autoLevelCapping>=o)&&(o=o-1,f.trigger(k.Events.FPS_DROP_LEVEL_CAPPING,{level:o,droppedLevel:f.currentLevel}),f.autoLevelCapping=o,this.streamController.nextLevelSwitch())}}this.lastTime=A,this.lastDroppedFrames=t,this.lastDecodedFrames=a}},T.checkFPSInterval=function(){var p=this.media;if(p)if(this.isVideoPlaybackQualityAvailable){var a=p.getVideoPlaybackQuality();this.checkFPS(p,a.totalVideoFrames,a.droppedVideoFrames)}else this.checkFPS(p,p.webkitDecodedFrameCount,p.webkitDroppedFrameCount)},M}();Q.default=O},"./src/controller/fragment-finders.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"findFragmentByPDT",function(){return O}),I.d(Q,"findFragmentByPTS",function(){return M}),I.d(Q,"fragmentWithinToleranceTest",function(){return T}),I.d(Q,"pdtWithinToleranceTest",function(){return n}),I.d(Q,"findFragWithCC",function(){return p});var k=I("./src/polyfills/number.ts"),_=I("./src/utils/binary-search.ts");function O(a,t,A){if(t===null||!Array.isArray(a)||!a.length||!Object(k.isFiniteNumber)(t))return null;var l=a[0].programDateTime;if(t<(l||0))return null;var i=a[a.length-1].endProgramDateTime;if(t>=(i||0))return null;A=A||0;for(var c=0;ca&&A.start?-1:0}function n(a,t,A){var l=Math.min(t,A.duration+(A.deltaPTS?A.deltaPTS:0))*1e3,i=A.endProgramDateTime||0;return i-l>a}function p(a,t){return _.default.search(a,function(A){return A.cct?-1:0})}},"./src/controller/fragment-tracker.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"FragmentState",function(){return O}),I.d(Q,"FragmentTracker",function(){return M});var k=I("./src/events.ts"),_=I("./src/types/loader.ts"),O;(function(p){p.NOT_LOADED="NOT_LOADED",p.BACKTRACKED="BACKTRACKED",p.APPENDING="APPENDING",p.PARTIAL="PARTIAL",p.OK="OK"})(O||(O={}));var M=function(){function p(t){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=t,this._registerListeners()}var a=p.prototype;return a._registerListeners=function(){var A=this.hls;A.on(k.Events.BUFFER_APPENDED,this.onBufferAppended,this),A.on(k.Events.FRAG_BUFFERED,this.onFragBuffered,this),A.on(k.Events.FRAG_LOADED,this.onFragLoaded,this)},a._unregisterListeners=function(){var A=this.hls;A.off(k.Events.BUFFER_APPENDED,this.onBufferAppended,this),A.off(k.Events.FRAG_BUFFERED,this.onFragBuffered,this),A.off(k.Events.FRAG_LOADED,this.onFragLoaded,this)},a.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},a.getAppendedFrag=function(A,l){if(l===_.PlaylistLevelType.MAIN){var i=this.activeFragment,c=this.activeParts;if(!i)return null;if(c)for(var d=c.length;d--;){var f=c[d],o=f?f.end:i.appendedPTS;if(f.start<=A&&o!==void 0&&A<=o)return d>9&&(this.activeParts=c.slice(d-9)),f}else if(i.start<=A&&i.appendedPTS!==void 0&&A<=i.appendedPTS)return i}return this.getBufferedFrag(A,l)},a.getBufferedFrag=function(A,l){for(var i=this.fragments,c=Object.keys(i),d=c.length;d--;){var f=i[c[d]];if((f==null?void 0:f.body.type)===l&&f.buffered){var o=f.body;if(o.start<=A&&A<=o.end)return o}}return null},a.detectEvictedFragments=function(A,l,i){var c=this;Object.keys(this.fragments).forEach(function(d){var f=c.fragments[d];if(!f)return;if(!f.buffered){f.body.type===i&&c.removeFragment(f.body);return}var o=f.range[A];if(!o)return;o.time.some(function(u){var E=!c.isTimeBuffered(u.startPTS,u.endPTS,l);return E&&c.removeFragment(f.body),E})})},a.detectPartialFragments=function(A){var l=this,i=this.timeRanges,c=A.frag,d=A.part;if(!i||c.sn==="initSegment")return;var f=n(c),o=this.fragments[f];if(!o)return;Object.keys(i).forEach(function(u){var E=c.elementaryStreams[u];if(!E)return;var R=i[u],w=d!==null||E.partial===!0;o.range[u]=l.getBufferedTimes(c,d,w,R)}),o.backtrack=o.loaded=null,Object.keys(o.range).length?o.buffered=!0:this.removeFragment(o.body)},a.fragBuffered=function(A){var l=n(A),i=this.fragments[l];i&&(i.backtrack=i.loaded=null,i.buffered=!0)},a.getBufferedTimes=function(A,l,i,c){for(var d={time:[],partial:i},f=l?l.start:A.start,o=l?l.end:A.end,u=A.minEndPTS||o,E=A.maxStartPTS||f,R=0;R=w&&u<=P){d.time.push({startPTS:Math.max(f,c.start(R)),endPTS:Math.min(o,c.end(R))});break}else if(fw)d.partial=!0,d.time.push({startPTS:Math.max(f,c.start(R)),endPTS:Math.min(o,c.end(R))});else if(o<=w)break}return d},a.getPartialFragment=function(A){var l=null,i,c,d,f=0,o=this.bufferPadding,u=this.fragments;return Object.keys(u).forEach(function(E){var R=u[E];if(!R)return;T(R)&&(c=R.body.start-o,d=R.body.end+o,A>=c&&A<=d&&(i=Math.min(A-c,d-A),f<=i&&(l=R.body,f=i)))}),l},a.getState=function(A){var l=n(A),i=this.fragments[l];return i?i.buffered?T(i)?O.PARTIAL:O.OK:i.backtrack?O.BACKTRACKED:O.APPENDING:O.NOT_LOADED},a.backtrack=function(A,l){var i=n(A),c=this.fragments[i];if(!c||c.backtrack)return null;var d=c.backtrack=l||c.loaded;return c.loaded=null,d},a.getBacktrackData=function(A){var l=n(A),i=this.fragments[l];if(i){var c,d=i.backtrack;if(d!=null&&(c=d.payload)!==null&&c!==void 0&&c.byteLength)return d;this.removeFragment(A)}return null},a.isTimeBuffered=function(A,l,i){for(var c,d,f=0;f=c&&l<=d)return!0;if(l<=c)return!1}return!1},a.onFragLoaded=function(A,l){var i=l.frag,c=l.part;if(i.sn==="initSegment"||i.bitrateTest||c)return;var d=n(i);this.fragments[d]={body:i,loaded:l,backtrack:null,buffered:!1,range:Object.create(null)}},a.onBufferAppended=function(A,l){var i=this,c=l.frag,d=l.part,f=l.timeRanges;if(c.type===_.PlaylistLevelType.MAIN)if(this.activeFragment=c,d){var o=this.activeParts;o||(this.activeParts=o=[]),o.push(d)}else this.activeParts=null;this.timeRanges=f,Object.keys(f).forEach(function(u){var E=f[u];if(i.detectEvictedFragments(u,E),!d)for(var R=0;RA&&c.removeFragment(o)}})},a.removeFragment=function(A){var l=n(A);A.stats.loaded=0,A.clearElementaryStreamInfo(),delete this.fragments[l]},a.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},p}();function T(p){var a,t;return p.buffered&&(((a=p.range.video)===null||a===void 0?void 0:a.partial)||((t=p.range.audio)===null||t===void 0?void 0:t.partial))}function n(p){return p.type+"_"+p.level+"_"+p.urlId+"_"+p.sn}},"./src/controller/gap-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"STALL_MINIMUM_DURATION_MS",function(){return T}),I.d(Q,"MAX_START_GAP_JUMP",function(){return n}),I.d(Q,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return p}),I.d(Q,"SKIP_BUFFER_RANGE_START",function(){return a}),I.d(Q,"default",function(){return t});var k=I("./src/utils/buffer-helper.ts"),_=I("./src/errors.ts"),O=I("./src/events.ts"),M=I("./src/utils/logger.ts"),T=250,n=2,p=.1,a=.05,t=function(){function A(i,c,d,f){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=i,this.media=c,this.fragmentTracker=d,this.hls=f}var l=A.prototype;return l.destroy=function(){this.hls=this.fragmentTracker=this.media=null},l.poll=function(c){var d=this.config,f=this.media,o=this.stalled,u=f.currentTime,E=f.seeking,R=this.seeking&&!E,w=!this.seeking&&E;if(this.seeking=E,u!==c){if(this.moved=!0,o!==null){if(this.stallReported){var P=self.performance.now()-o;M.logger.warn("playback not stuck anymore @"+u+", after "+Math.round(P)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((w||R)&&(this.stalled=null),f.paused||f.ended||f.playbackRate===0||!k.BufferHelper.getBuffered(f).length)return;var C=k.BufferHelper.bufferInfo(f,u,0),b=C.len>0,s=C.nextStart||0;if(!b&&!s)return;if(E){var h=C.len>n,m=!s||s-u>n&&!this.fragmentTracker.getPartialFragment(u);if(h||m)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var x,g=Math.max(s,C.start||0)-u,y=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,U=y==null||((x=y.details)===null||x===void 0)?void 0:x.live,N=U?y.details.targetduration*2:n;if(g>0&&g<=N){this._trySkipBufferHole(null);return}}var S=self.performance.now();if(o===null){this.stalled=S;return}var H=S-o;!E&&H>=T&&this._reportStall(C.len);var F=k.BufferHelper.bufferInfo(f,u,d.maxBufferHole);this._tryFixBufferStall(F,H)},l._tryFixBufferStall=function(c,d){var f=this.config,o=this.fragmentTracker,u=this.media,E=u.currentTime,R=o.getPartialFragment(E);if(R){var w=this._trySkipBufferHole(R);if(w)return}c.len>f.maxBufferHole&&d>f.highBufferWatchdogPeriod*1e3&&(M.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},l._reportStall=function(c){var d=this.hls,f=this.media,o=this.stallReported;o||(this.stallReported=!0,M.logger.warn("Playback stalling at @"+f.currentTime+" due to low buffer (buffer="+c+")"),d.trigger(O.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:c}))},l._trySkipBufferHole=function(c){for(var d=this.config,f=this.hls,o=this.media,u=o.currentTime,E=0,R=k.BufferHelper.getBuffered(o),w=0;w=E&&u.05&&this.forwardBufferLength>1){var w=Math.min(2,Math.max(1,f)),P=Math.round(2/(1+Math.exp(-.75*u-this.edgeStalled))*20)/20;A.playbackRate=Math.min(w,Math.max(1,P))}else A.playbackRate!==1&&A.playbackRate!==0&&(A.playbackRate=1)},a.estimateLiveEdge=function(){var A=this.levelDetails;return A===null?null:A.edge+A.age},a.computeLatency=function(){var A=this.estimateLiveEdge();return A===null?null:A-this.currentTime},T(p,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var A=this.config,l=this.levelDetails;return A.liveMaxLatencyDuration!==void 0?A.liveMaxLatencyDuration:l?A.liveMaxLatencyDurationCount*l.targetduration:0}},{key:"targetLatency",get:function(){var A=this.levelDetails;if(A===null)return null;var l=A.holdBack,i=A.partHoldBack,c=A.targetduration,d=this.config,f=d.liveSyncDuration,o=d.liveSyncDurationCount,u=d.lowLatencyMode,E=this.hls.userConfig,R=u&&i||l;(E.liveSyncDuration||E.liveSyncDurationCount||R===0)&&(R=f!==void 0?f:o*c);var w=c,P=1;return R+Math.min(this.stallCount*P,w)}},{key:"liveSyncPosition",get:function(){var A=this.estimateLiveEdge(),l=this.targetLatency,i=this.levelDetails;if(A===null||l===null||i===null)return null;var c=i.edge,d=A-l-this.edgeStalled,f=c-i.totalduration,o=c-(this.config.lowLatencyMode&&i.partTarget||i.targetduration);return Math.min(Math.max(f,d),o)}},{key:"drift",get:function(){var A=this.levelDetails;return A===null?1:A.drift}},{key:"edgeStalled",get:function(){var A=this.levelDetails;if(A===null)return 0;var l=(this.config.lowLatencyMode&&A.partTarget||A.targetduration)*3;return Math.max(A.age-l,0)}},{key:"forwardBufferLength",get:function(){var A=this.media,l=this.levelDetails;if(!A||!l)return 0;var i=A.buffered.length;return i?A.buffered.end(i-1):l.edge-this.currentTime}}]),p}()},"./src/controller/level-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return d});var k=I("./src/types/level.ts"),_=I("./src/events.ts"),O=I("./src/errors.ts"),M=I("./src/utils/codecs.ts"),T=I("./src/controller/level-helper.ts"),n=I("./src/controller/base-playlist-controller.ts"),p=I("./src/types/loader.ts");function a(){return a=Object.assign||function(f){for(var o=1;o0){s=P[0].bitrate,P.sort(function(H,F){return H.bitrate-F.bitrate}),this._levels=P;for(var U=0;Uthis.hls.config.fragLoadingMaxRetry&&(h=w.frag.level)):h=w.frag.level}break;case O.ErrorDetails.LEVEL_LOAD_ERROR:case O.ErrorDetails.LEVEL_LOAD_TIMEOUT:P&&(P.deliveryDirectives&&(s=!1),h=P.level),b=!0;break;case O.ErrorDetails.REMUX_ALLOC_ERROR:h=w.level,b=!0;break}h!==void 0&&this.recoverLevel(w,h,b,s)},u.recoverLevel=function(R,w,P,C){var b=R.details,s=this._levels[w];if(s.loadError++,P){var h=this.retryLoadingOrFail(R);if(h)R.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(C){var m=s.url.length;if(m>1&&s.loadError1){var C=(w.urlId+1)%P;this.warn("Switching to redundant URL-id "+C),this._levels.forEach(function(b){b.urlId=C}),this.level=R}},u.onFragLoaded=function(R,w){var P=w.frag;if(P!==void 0&&P.type===p.PlaylistLevelType.MAIN){var C=this._levels[P.level];C!==void 0&&(C.fragmentError=0,C.loadError=0)}},u.onLevelLoaded=function(R,w){var P,C=w.level,b=w.details,s=this._levels[C];if(!s){var h;this.warn("Invalid level index "+C),(h=w.deliveryDirectives)!==null&&h!==void 0&&h.skip&&(b.deltaUpdateFailed=!0);return}C===this.currentLevelIndex?(s.fragmentError===0&&(s.loadError=0,this.retryCount=0),this.playlistLoaded(C,w,s.details)):(P=w.deliveryDirectives)!==null&&P!==void 0&&P.skip&&(b.deltaUpdateFailed=!0)},u.onAudioTrackSwitched=function(R,w){var P=this.hls.levels[this.currentLevelIndex];if(!P)return;if(P.audioGroupIds){for(var C=-1,b=this.hls.audioTracks[w.id].groupId,s=0;s0){var C=P.urlId,b=P.url[C];if(R)try{b=R.addDirectives(b)}catch(s){this.warn("Could not construct new URL with HLS Delivery Directives: "+s)}this.log("Attempt loading level index "+w+(R?" at sn "+R.msn+" part "+R.part:"")+" with URL-id "+C+" "+b),this.clearTimer(),this.hls.trigger(_.Events.LEVEL_LOADING,{url:b,level:w,id:C,deliveryDirectives:R||null})}},u.removeLevel=function(R,w){var P=function(s,h){return h!==w},C=this._levels.filter(function(b,s){return s!==R?!0:b.url.length>1&&w!==void 0?(b.url=b.url.filter(P),b.audioGroupIds&&(b.audioGroupIds=b.audioGroupIds.filter(P)),b.textGroupIds&&(b.textGroupIds=b.textGroupIds.filter(P)),b.urlId=0,!0):!1}).map(function(b,s){var h=b.details;return h!=null&&h.fragments&&h.fragments.forEach(function(m){m.level=s}),b});this._levels=C,this.hls.trigger(_.Events.LEVELS_UPDATED,{levels:C})},A(o,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(R){var w,P=this._levels;if(P.length===0)return;if(this.currentLevelIndex===R&&(w=P[R])!==null&&w!==void 0&&w.details)return;if(R<0||R>=P.length){var C=R<0;if(this.hls.trigger(_.Events.ERROR,{type:O.ErrorTypes.OTHER_ERROR,details:O.ErrorDetails.LEVEL_SWITCH_ERROR,level:R,fatal:C,reason:"invalid level idx"}),C)return;R=Math.min(R,P.length-1)}this.clearTimer();var b=this.currentLevelIndex,s=P[b],h=P[R];this.log("switching to level "+R+" from "+b),this.currentLevelIndex=R;var m=a({},h,{level:R,maxBitrate:h.maxBitrate,uri:h.uri,urlId:h.urlId});delete m._urlId,this.hls.trigger(_.Events.LEVEL_SWITCHING,m);var x=h.details;if(!x||x.live){var g=this.switchParams(h.uri,s==null?void 0:s.details);this.loadPlaylist(g)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(R){this.manualLevelIndex=R,this._startLevel===void 0&&(this._startLevel=R),R!==-1&&(this.level=R)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(R){this._firstLevel=R}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var R=this.hls.config.startLevel;return R!==void 0?R:this._firstLevel}else return this._startLevel},set:function(R){this._startLevel=R}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(R){this.level=R,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=R)}}]),o}(n.default)},"./src/controller/level-helper.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"addGroupId",function(){return O}),I.d(Q,"assignTrackIdsByGroup",function(){return M}),I.d(Q,"updatePTS",function(){return T}),I.d(Q,"updateFragPTSDTS",function(){return p}),I.d(Q,"mergeDetails",function(){return a}),I.d(Q,"mapPartIntersection",function(){return t}),I.d(Q,"mapFragmentIntersection",function(){return A}),I.d(Q,"adjustSliding",function(){return l}),I.d(Q,"addSliding",function(){return i}),I.d(Q,"computeReloadInterval",function(){return c}),I.d(Q,"getFragmentWithSN",function(){return d}),I.d(Q,"getPartWith",function(){return f});var k=I("./src/polyfills/number.ts"),_=I("./src/utils/logger.ts");function O(o,u,E){switch(u){case"audio":o.audioGroupIds||(o.audioGroupIds=[]),o.audioGroupIds.push(E);break;case"text":o.textGroupIds||(o.textGroupIds=[]),o.textGroupIds.push(E);break}}function M(o){var u={};o.forEach(function(E){var R=E.groupId||"";E.id=u[R]=u[R]||0,u[R]++})}function T(o,u,E){var R=o[u],w=o[E];n(R,w)}function n(o,u){var E=u.startPTS;if(Object(k.isFiniteNumber)(E)){var R=0,w;u.sn>o.sn?(R=E-o.start,w=o):(R=o.start-E,w=u),w.duration!==R&&(w.duration=R)}else if(u.sn>o.sn){var P=o.cc===u.cc;P&&o.minEndPTS?u.start=o.start+(o.minEndPTS-o.start):u.start=o.start+o.duration}else u.start=Math.max(o.start-u.duration,0)}function p(o,u,E,R,w,P){var C=R-E;C<=0&&(_.logger.warn("Fragment should have a positive duration",u),R=E+u.duration,P=w+u.duration);var b=E,s=R,h=u.startPTS,m=u.endPTS;if(Object(k.isFiniteNumber)(h)){var x=Math.abs(h-E);Object(k.isFiniteNumber)(u.deltaPTS)?u.deltaPTS=Math.max(x,u.deltaPTS):u.deltaPTS=x,b=Math.max(E,h),E=Math.min(E,h),w=Math.min(w,u.startDTS),s=Math.min(R,m),R=Math.max(R,m),P=Math.max(P,u.endDTS)}u.duration=R-E;var g=E-u.start;u.appendedPTS=R,u.start=u.startPTS=E,u.maxStartPTS=b,u.startDTS=w,u.endPTS=R,u.minEndPTS=s,u.endDTS=P;var y=u.sn;if(!o||yo.endSN)return 0;var U,N=y-o.startSN,S=o.fragments;for(S[N]=u,U=N;U>0;U--)n(S[U],S[U-1]);for(U=N;U=0;w--){var P=R[w].initSegment;if(P){E=P;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;var C=0,b;if(A(o,u,function(U,N){U.relurl&&(C=U.cc-N.cc),Object(k.isFiniteNumber)(U.startPTS)&&Object(k.isFiniteNumber)(U.endPTS)&&(N.start=N.startPTS=U.startPTS,N.startDTS=U.startDTS,N.appendedPTS=U.appendedPTS,N.maxStartPTS=U.maxStartPTS,N.endPTS=U.endPTS,N.endDTS=U.endDTS,N.minEndPTS=U.minEndPTS,N.duration=U.endPTS-U.startPTS,N.duration&&(b=N),u.PTSKnown=u.alignedSliding=!0),N.elementaryStreams=U.elementaryStreams,N.loader=U.loader,N.stats=U.stats,N.urlId=U.urlId,U.initSegment&&(N.initSegment=U.initSegment,E=U.initSegment)}),E){var s=u.fragmentHint?u.fragments.concat(u.fragmentHint):u.fragments;s.forEach(function(U){var N;(!U.initSegment||U.initSegment.relurl===((N=E)===null||N===void 0?void 0:N.relurl))&&(U.initSegment=E)})}if(u.skippedSegments&&(u.deltaUpdateFailed=u.fragments.some(function(U){return!U}),u.deltaUpdateFailed)){_.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var h=u.skippedSegments;h--;)u.fragments.shift();u.startSN=u.fragments[0].sn,u.startCC=u.fragments[0].cc}var m=u.fragments;if(C){_.logger.warn("discontinuity sliding from playlist, take drift into account");for(var x=0;x=R.length)return;i(u,R[E].start)}function i(o,u){if(u){for(var E=o.fragments,R=o.skippedSegments;R0&&w0&&s===-1&&(this.log("Override startPosition with lastCurrentTime @"+h.toFixed(3)),s=h),this.state=_.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=s,this.tick()}else this._forceStartLoad=!0,this.state=_.State.STOPPED},C.stopLoad=function(){this._forceStartLoad=!1,w.prototype.stopLoad.call(this)},C.doTick=function(){switch(this.state){case _.State.IDLE:this.doTickIdle();break;case _.State.WAITING_LEVEL:{var s,h=this.levels,m=this.level,x=h==null||((s=h[m])===null||s===void 0)?void 0:s.details;if(x&&(!x.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(x))break;this.state=_.State.IDLE;break}break}case _.State.FRAG_LOADING_WAITING_RETRY:{var g,y=self.performance.now(),U=this.retryDate;(!U||y>=U||(g=this.media)!==null&&g!==void 0&&g.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=_.State.IDLE)}break;default:break}this.onTickEnd()},C.onTickEnd=function(){w.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},C.doTickIdle=function(){var s,h,m=this.hls,x=this.levelLastLoaded,g=this.levels,y=this.media,U=m.config,N=m.nextLoadLevel;if(x===null||!y&&(this.startFragRequested||!U.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!g||!g[N])return;var S=g[N];this.level=m.nextLoadLevel=N;var H=S.details;if(!H||this.state===_.State.WAITING_LEVEL||H.live&&this.levelLastLoaded!==N){this.state=_.State.WAITING_LEVEL;return}var F=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:y,p.PlaylistLevelType.MAIN);if(F===null)return;var B=F.len,z=this.getMaxBufferLength(S.maxBitrate);if(B>=z)return;if(this._streamEnded(F,H)){var K={};this.altAudio&&(K.type="video"),this.hls.trigger(M.Events.BUFFER_EOS,K),this.state=_.State.ENDED;return}var $=F.end,te=this.getNextFragment($,H);if(this.couldBacktrack&&!this.fragPrevious&&te&&te.sn!=="initSegment"){var fe=te.sn-H.startSN;fe>1&&(te=H.fragments[fe-1],this.fragmentTracker.removeFragment(te))}if(te&&this.fragmentTracker.getState(te)===n.FragmentState.OK&&this.nextLoadPosition>$){var Ae=this.audioOnly&&!this.altAudio?a.ElementaryStreamTypes.AUDIO:a.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(y,Ae,p.PlaylistLevelType.MAIN),te=this.getNextFragment(this.nextLoadPosition,H)}if(!te)return;te.initSegment&&!te.initSegment.data&&!this.bitrateTest&&(te=te.initSegment),((s=te.decryptdata)===null||s===void 0?void 0:s.keyFormat)==="identity"&&!((h=te.decryptdata)!==null&&h!==void 0&&h.key)?this.loadKey(te,H):this.loadFragment(te,H,$)},C.loadFragment=function(s,h,m){var x,g=this.fragmentTracker.getState(s);if(this.fragCurrent=s,g===n.FragmentState.BACKTRACKED){var y=this.fragmentTracker.getBacktrackData(s);if(y){this._handleFragmentLoadProgress(y),this._handleFragmentLoadComplete(y);return}else g=n.FragmentState.NOT_LOADED}g===n.FragmentState.NOT_LOADED||g===n.FragmentState.PARTIAL?s.sn==="initSegment"?this._loadInitSegment(s):this.bitrateTest?(s.bitrateTest=!0,this.log("Fragment "+s.sn+" of level "+s.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(s)):(this.startFragRequested=!0,w.prototype.loadFragment.call(this,s,h,m)):g===n.FragmentState.APPENDING?this.reduceMaxBufferLength(s.duration)&&this.fragmentTracker.removeFragment(s):((x=this.media)===null||x===void 0?void 0:x.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},C.getAppendedFrag=function(s){var h=this.fragmentTracker.getAppendedFrag(s,p.PlaylistLevelType.MAIN);return h&&"fragment"in h?h.fragment:h},C.getBufferedFrag=function(s){return this.fragmentTracker.getBufferedFrag(s,p.PlaylistLevelType.MAIN)},C.followingBufferedFrag=function(s){return s?this.getBufferedFrag(s.end+.5):null},C.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},C.nextLevelSwitch=function(){var s=this.levels,h=this.media;if(h!=null&&h.readyState){var m,x=this.getAppendedFrag(h.currentTime);if(x&&x.start>1&&this.flushMainBuffer(0,x.start-1),!h.paused&&s){var g=this.hls.nextLoadLevel,y=s[g],U=this.fragLastKbps;U&&this.fragCurrent?m=this.fragCurrent.duration*y.maxBitrate/(1e3*U)+1:m=0}else m=0;var N=this.getBufferedFrag(h.currentTime+m);if(N){var S=this.followingBufferedFrag(N);if(S){this.abortCurrentFrag();var H=S.maxStartPTS?S.maxStartPTS:S.start,F=S.duration,B=Math.max(N.end,H+Math.min(Math.max(F-this.config.maxFragLookUpTolerance,F*.5),F*.75));this.flushMainBuffer(B,Number.POSITIVE_INFINITY)}}}},C.abortCurrentFrag=function(){var s=this.fragCurrent;this.fragCurrent=null,s!=null&&s.loader&&s.loader.abort(),this.state===_.State.KEY_LOADING&&(this.state=_.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},C.flushMainBuffer=function(s,h){w.prototype.flushMainBuffer.call(this,s,h,this.altAudio?"video":null)},C.onMediaAttached=function(s,h){w.prototype.onMediaAttached.call(this,s,h);var m=h.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),m.addEventListener("playing",this.onvplaying),m.addEventListener("seeked",this.onvseeked),this.gapController=new l.default(this.config,m,this.fragmentTracker,this.hls)},C.onMediaDetaching=function(){var s=this.media;s&&(s.removeEventListener("playing",this.onvplaying),s.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),w.prototype.onMediaDetaching.call(this)},C.onMediaPlaying=function(){this.tick()},C.onMediaSeeked=function(){var s=this.media,h=s?s.currentTime:null;Object(k.isFiniteNumber)(h)&&this.log("Media seeked to "+h.toFixed(3)),this.tick()},C.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(M.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},C.onManifestParsed=function(s,h){var m=!1,x=!1,g;h.levels.forEach(function(y){g=y.audioCodec,g&&(g.indexOf("mp4a.40.2")!==-1&&(m=!0),g.indexOf("mp4a.40.5")!==-1&&(x=!0))}),this.audioCodecSwitch=m&&x&&!Object(O.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=h.levels,this.startFragRequested=!1},C.onLevelLoading=function(s,h){var m=this.levels;if(!m||this.state!==_.State.IDLE)return;var x=m[h.level];(!x.details||x.details.live&&this.levelLastLoaded!==h.level||this.waitForCdnTuneIn(x.details))&&(this.state=_.State.WAITING_LEVEL)},C.onLevelLoaded=function(s,h){var m,x=this.levels,g=h.level,y=h.details,U=y.totalduration;if(!x){this.warn("Levels were reset while loading level "+g);return}this.log("Level "+g+" loaded ["+y.startSN+","+y.endSN+"], cc ["+y.startCC+", "+y.endCC+"] duration:"+U);var N=this.fragCurrent;N&&(this.state===_.State.FRAG_LOADING||this.state===_.State.FRAG_LOADING_WAITING_RETRY)&&(N.level!==h.level&&N.loader&&(this.state=_.State.IDLE,N.loader.abort()));var S=x[g],H=0;if(y.live||(m=S.details)!==null&&m!==void 0&&m.live){if(y.fragments[0]||(y.deltaUpdateFailed=!0),y.deltaUpdateFailed)return;H=this.alignPlaylists(y,S.details)}if(S.details=y,this.levelLastLoaded=g,this.hls.trigger(M.Events.LEVEL_UPDATED,{details:y,level:g}),this.state===_.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(y))return;this.state=_.State.IDLE}this.startFragRequested?y.live&&this.synchronizeToLiveEdge(y):this.setStartPosition(y,H),this.tick()},C._handleFragmentLoadProgress=function(s){var h,m=s.frag,x=s.part,g=s.payload,y=this.levels;if(!y){this.warn("Levels were reset while fragment load was in progress. Fragment "+m.sn+" of level "+m.level+" will not be buffered");return}var U=y[m.level],N=U.details;if(!N){this.warn("Dropping fragment "+m.sn+" of level "+m.level+" after level details were reset");return}var S=U.videoCodec,H=N.PTSKnown||!N.live,F=(h=m.initSegment)===null||h===void 0?void 0:h.data,B=this._getAudioCodec(U),z=this.transmuxer=this.transmuxer||new t.default(this.hls,p.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),K=x?x.index:-1,$=K!==-1,te=new A.ChunkMetadata(m.level,m.sn,m.stats.chunkCount,g.byteLength,K,$),fe=this.initPTS[m.cc];z.push(g,F,B,S,m,x,N.totalduration,H,te,fe)},C.onAudioTrackSwitching=function(s,h){var m=this.altAudio,x=!!h.url,g=h.id;if(!x){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var y=this.fragCurrent;y!=null&&y.loader&&(this.log("Switching to main audio track, cancel main fragment load"),y.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var U=this.hls;m&&U.trigger(M.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),U.trigger(M.Events.AUDIO_TRACK_SWITCHED,{id:g})}},C.onAudioTrackSwitched=function(s,h){var m=h.id,x=!!this.hls.audioTracks[m].url;if(x){var g=this.videoBuffer;g&&this.mediaBuffer!==g&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=g)}this.altAudio=x,this.tick()},C.onBufferCreated=function(s,h){var m=h.tracks,x,g,y=!1;for(var U in m){var N=m[U];if(N.id==="main"){if(g=U,x=N,U==="video"){var S=m[U];S&&(this.videoBuffer=S.buffer)}}else y=!0}y&&x?(this.log("Alternate track found, use "+g+".buffered to schedule main fragment loading"),this.mediaBuffer=x.buffer):this.mediaBuffer=this.media},C.onFragBuffered=function(s,h){var m=h.frag,x=h.part;if(m&&m.type!==p.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(m)){this.warn("Fragment "+m.sn+(x?" p: "+x.index:"")+" of level "+m.level+" finished buffering, but was aborted. state: "+this.state),this.state===_.State.PARSED&&(this.state=_.State.IDLE);return}var g=x?x.stats:m.stats;this.fragLastKbps=Math.round(8*g.total/(g.buffering.end-g.loading.first)),m.sn!=="initSegment"&&(this.fragPrevious=m),this.fragBufferedComplete(m,x)},C.onError=function(s,h){switch(h.details){case i.ErrorDetails.FRAG_LOAD_ERROR:case i.ErrorDetails.FRAG_LOAD_TIMEOUT:case i.ErrorDetails.KEY_LOAD_ERROR:case i.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(p.PlaylistLevelType.MAIN,h);break;case i.ErrorDetails.LEVEL_LOAD_ERROR:case i.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==_.State.ERROR&&(h.fatal?(this.warn(""+h.details),this.state=_.State.ERROR):!h.levelRetry&&this.state===_.State.WAITING_LEVEL&&(this.state=_.State.IDLE));break;case i.ErrorDetails.BUFFER_FULL_ERROR:if(h.parent==="main"&&(this.state===_.State.PARSING||this.state===_.State.PARSED)){var m=!0,x=this.getFwdBufferInfo(this.media,p.PlaylistLevelType.MAIN);x&&x.len>.5&&(m=!this.reduceMaxBufferLength(x.len)),m&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},C.checkBuffer=function(){var s=this.media,h=this.gapController;if(!s||!h||!s.readyState)return;var m=T.BufferHelper.getBuffered(s);!this.loadedmetadata&&m.length?(this.loadedmetadata=!0,this.seekToStartPos()):h.poll(this.lastCurrentTime),this.lastCurrentTime=s.currentTime},C.onFragLoadEmergencyAborted=function(){this.state=_.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},C.onBufferFlushed=function(s,h){var m=h.type;if(m!==a.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var x=(m===a.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(x,m,p.PlaylistLevelType.MAIN)}},C.onLevelsUpdated=function(s,h){this.levels=h.levels},C.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},C.seekToStartPos=function(){var s=this.media,h=s.currentTime,m=this.startPosition;if(m>=0&&h0&&(y1&&s.seeking===!1){var m=s.currentTime;if(T.BufferHelper.isBuffered(s,m)?h=this.getAppendedFrag(m):T.BufferHelper.isBuffered(s,m+.1)&&(h=this.getAppendedFrag(m+.1)),h){var x=this.fragPlaying,g=h.level;(!x||h.sn!==x.sn||x.level!==g||h.urlId!==x.urlId)&&(this.hls.trigger(M.Events.FRAG_CHANGED,{frag:h}),(!x||x.level!==g)&&this.hls.trigger(M.Events.LEVEL_SWITCHED,{level:g}),this.fragPlaying=h)}}},f(P,[{key:"nextLevel",get:function(){var s=this.nextBufferedFrag;return s?s.level:-1}},{key:"currentLevel",get:function(){var s=this.media;if(s){var h=this.getAppendedFrag(s.currentTime);if(h)return h.level}return-1}},{key:"nextBufferedFrag",get:function(){var s=this.media;if(s){var h=this.getAppendedFrag(s.currentTime);return this.followingBufferedFrag(h)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),P}(_.default)},"./src/controller/subtitle-stream-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"SubtitleStreamController",function(){return o});var k=I("./src/events.ts"),_=I("./src/utils/logger.ts"),O=I("./src/utils/buffer-helper.ts"),M=I("./src/controller/fragment-finders.ts"),T=I("./src/utils/discontinuities.ts"),n=I("./src/controller/level-helper.ts"),p=I("./src/controller/fragment-tracker.ts"),a=I("./src/controller/base-stream-controller.ts"),t=I("./src/types/loader.ts"),A=I("./src/types/level.ts");function l(u,E){for(var R=0;R=h[g].start&&x<=h[g].end){m=h[g];break}var y=b.start+b.duration;m?m.end=y:(m={start:x,end:y},h.push(m)),this.fragmentTracker.fragBuffered(b)},R.onBufferFlushing=function(P,C){var b=C.startOffset,s=C.endOffset;if(b===0&&s!==Number.POSITIVE_INFINITY){var h=this.currentTrackId,m=this.levels;if(!m.length||!m[h]||!m[h].details)return;var x=m[h].details,g=x.targetduration,y=s-g;if(y<=0)return;C.endOffsetSubtitles=Math.max(0,y),this.tracksBuffered.forEach(function(U){for(var N=0;N=x.length||h!==m||!g)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,s.live||(b=g.details)!==null&&b!==void 0&&b.live){var y=this.mainDetails;if(s.deltaUpdateFailed||!y)return;var U=y.fragments[0];if(!g.details)s.hasProgramDateTime&&y.hasProgramDateTime?Object(T.alignMediaPlaylistByPDT)(s,y):U&&Object(n.addSliding)(s,U.start);else{var N=this.alignPlaylists(s,g.details);N===0&&U&&Object(n.addSliding)(s,U.start)}}if(g.details=s,this.levelLastLoaded=h,this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===a.State.IDLE){var S=Object(M.findFragmentByPTS)(null,s.fragments,this.media.currentTime,0);S||(this.warn("Subtitle playlist not aligned with playback"),g.details=void 0)}},R._handleFragmentLoadComplete=function(P){var C=P.frag,b=P.payload,s=C.decryptdata,h=this.hls;if(this.fragContextChanged(C))return;if(b&&b.byteLength>0&&s&&s.key&&s.iv&&s.method==="AES-128"){var m=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(b),s.key.buffer,s.iv.buffer).then(function(x){var g=performance.now();h.trigger(k.Events.FRAG_DECRYPTED,{frag:C,payload:x,stats:{tstart:m,tdecrypt:g}})})}},R.doTick=function(){if(!this.media){this.state=a.State.IDLE;return}if(this.state===a.State.IDLE){var P,C=this.currentTrackId,b=this.levels;if(!b.length||!b[C]||!b[C].details)return;var s=b[C].details,h=s.targetduration,m=this.config,x=this.media,g=O.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,x.currentTime-h,m.maxBufferHole),y=g.end,U=g.len,N=this.getMaxBufferLength()+h;if(U>N)return;console.assert(s,"Subtitle track details are defined on idle subtitle stream controller tick");var S=s.fragments,H=S.length,F=s.edge,B,z=this.fragPrevious;if(y-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},c.pollTrackChange=function(f){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,f)},c.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var f=A(this.media.textTracks);f.forEach(function(o){Object(_.clearCurrentCues)(o)}),this.subtitleTrack=-1,this.media=null},c.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},c.onManifestParsed=function(f,o){this.tracks=o.subtitleTracks},c.onSubtitleTrackLoaded=function(f,o){var u=o.id,E=o.details,R=this.trackId,w=this.tracksInGroup[R];if(!w){this.warn("Invalid subtitle track id "+u);return}var P=w.details;w.details=o.details,this.log("subtitle track "+u+" loaded ["+E.startSN+"-"+E.endSN+"]"),u===this.trackId&&(this.retryCount=0,this.playlistLoaded(u,o,P))},c.onLevelLoading=function(f,o){this.switchLevel(o.level)},c.onLevelSwitching=function(f,o){this.switchLevel(o.level)},c.switchLevel=function(f){var o=this.hls.levels[f];if(!(o!=null&&o.textGroupIds))return;var u=o.textGroupIds[o.urlId];if(this.groupId!==u){var E=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,R=this.tracks.filter(function(C){return!u||C.groupId===u});this.tracksInGroup=R;var w=this.findTrackId(E==null?void 0:E.name)||this.findTrackId();this.groupId=u;var P={subtitleTracks:R};this.log("Updating subtitle tracks, "+R.length+' track(s) found in "'+u+'" group-id'),this.hls.trigger(k.Events.SUBTITLE_TRACKS_UPDATED,P),w!==-1&&this.setSubtitleTrack(w,E)}},c.findTrackId=function(f){for(var o=this.tracksInGroup,u=0;u=E.length)return;this.clearTimer();var R=E[f];if(this.log("Switching to subtitle track "+f),this.trackId=f,R){var w=R.id,P=R.groupId,C=P===void 0?"":P,b=R.name,s=R.type,h=R.url;this.hls.trigger(k.Events.SUBTITLE_TRACK_SWITCH,{id:w,groupId:C,name:b,type:s,url:h});var m=this.switchParams(R.url,o==null?void 0:o.details);this.loadPlaylist(m)}else this.hls.trigger(k.Events.SUBTITLE_TRACK_SWITCH,{id:f})},c.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var f=-1,o=A(this.media.textTracks),u=0;u=0&&(s[0]=Math.min(s[0],E),s[1]=Math.max(s[1],R),C=!0,h/(R-E)>.5))return}if(C||P.push([E,R]),this.config.renderTextTracksNatively){var m=this.captionsTracks[u];this.Cues.newCue(m,E,R,w)}else{var x=this.Cues.newCue(null,E,R,w);this.hls.trigger(_.Events.CUES_PARSED,{type:"captions",cues:x,track:u})}},f.onInitPtsFound=function(u,E){var R=this,w=E.frag,P=E.id,C=E.initPTS,b=E.timescale,s=this.unparsedVttFrags;P==="main"&&(this.initPTS[w.cc]=C,this.timescale[w.cc]=b),s.length&&(this.unparsedVttFrags=[],s.forEach(function(h){R.onFragLoaded(_.Events.FRAG_LOADED,h)}))},f.getExistingTrack=function(u){var E=this.media;if(E)for(var R=0;R>>8^b&255^99,p[w]=b,a[b]=w;var s=R[w],h=R[s],m=R[h],x=R[b]*257^b*16843008;A[w]=x<<24|x>>>8,l[w]=x<<16|x>>>16,i[w]=x<<8|x>>>24,c[w]=x,x=m*16843009^h*65537^s*257^w*16843008,f[b]=x<<24|x>>>8,o[b]=x<<16|x>>>16,u[b]=x<<8|x>>>24,E[b]=x,w?(w=s^R[R[R[m^s]]],P^=R[R[P]]):w=P=1}},T.expandKey=function(p){for(var a=this.uint8ArrayToUint32Array_(p),t=!0,A=0;A>>6)+1;var x=(u[E+2]&60)>>>2;if(x>m.length-1){o.trigger(O.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+x});return}return C=(u[E+2]&1)<<2,C|=(u[E+3]&192)>>>6,k.logger.log("manifest codec:"+R+", ADTS type:"+w+", samplingIndex:"+x),/firefox/i.test(s)?x>=6?(w=5,b=new Array(4),P=x-3):(w=2,b=new Array(2),P=x):s.indexOf("android")!==-1?(w=2,b=new Array(2),P=x):(w=5,b=new Array(4),R&&(R.indexOf("mp4a.40.29")!==-1||R.indexOf("mp4a.40.5")!==-1)||!R&&x>=6?P=x-3:((R&&R.indexOf("mp4a.40.2")!==-1&&(x>=6&&C===1||/vivaldi/i.test(s))||!R&&C===1)&&(w=2,b=new Array(2)),P=x)),b[0]=w<<3,b[0]|=(x&14)>>1,b[1]|=(x&1)<<7,b[1]|=C<<3,w===5&&(b[1]|=(P&14)>>1,b[2]=(P&1)<<7,b[2]|=2<<2,b[3]=0),{config:b,samplerate:m[x],channelCount:C,codec:"mp4a.40."+w,manifestCodec:h}}function T(o,u){return o[u]===255&&(o[u+1]&246)===240}function n(o,u){return o[u+1]&1?7:9}function p(o,u){return(o[u+3]&3)<<11|o[u+4]<<3|(o[u+5]&224)>>>5}function a(o,u){return u+5=o.length)return!1;var R=p(o,u);if(R<=E)return!1;var w=u+R;return w===o.length||t(o,w)}return!1}function i(o,u,E,R,w){if(!o.samplerate){var P=M(u,E,R,w);if(!P)return;o.config=P.config,o.samplerate=P.samplerate,o.channelCount=P.channelCount,o.codec=P.codec,o.manifestCodec=P.manifestCodec,k.logger.log("parsed codec:"+o.codec+", rate:"+P.samplerate+", channels:"+P.channelCount)}}function c(o){return 1024*9e4/o}function d(o,u,E,R,w){var P=n(o,u),C=p(o,u);if(C-=P,C>0){var b=E+R*w;return{headerLength:P,frameLength:C,stamp:b}}}function f(o,u,E,R,w){var P=c(o.samplerate),C=d(u,E,R,w,P);if(C){var b=C.frameLength,s=C.headerLength,h=C.stamp,m=s+b,x=Math.max(0,E+m-u.length),g;x?(g=new Uint8Array(m-s),g.set(u.subarray(E+s,u.length),0)):g=u.subarray(E+s,E+m);var y={unit:g,pts:h};return x||o.samples.push(y),{sample:y,length:m,missing:x}}}},"./src/demux/base-audio-demuxer.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"initPTSFn",function(){return p});var k=I("./src/polyfills/number.ts"),_=I("./src/demux/id3.ts"),O=I("./src/demux/dummy-demuxed-track.ts"),M=I("./src/utils/mp4-tools.ts"),T=I("./src/utils/typed-array.ts"),n=function(){function a(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var t=a.prototype;return t.resetInitSegment=function(l,i,c){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},t.resetTimeStamp=function(){},t.resetContiguity=function(){},t.canParse=function(l,i){return!1},t.appendFrame=function(l,i,c){},t.demux=function(l,i){this.cachedData&&(l=Object(M.appendUint8Array)(this.cachedData,l),this.cachedData=null);var c=_.getID3Data(l,0),d=c?c.length:0,f,o,u=this._audioTrack,E=this._id3Track,R=c?_.getTimeStamp(c):void 0,w=l.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=p(R,i)),c&&c.length>0&&E.samples.push({pts:this.initPTS,dts:this.initPTS,data:c}),o=this.initPTS;dn?(this.word<<=n,this.bitsAvailable-=n):(n-=this.bitsAvailable,p=n>>3,n-=p>>3,this.bytesAvailable-=p,this.loadWord(),this.word<<=n,this.bitsAvailable-=n)},M.readBits=function(n){var p=Math.min(this.bitsAvailable,n),a=this.word>>>32-p;return n>32&&k.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=p,this.bitsAvailable>0?this.word<<=p:this.bytesAvailable>0&&this.loadWord(),p=n-p,p>0&&this.bitsAvailable?a<>>n)!==0)return this.word<<=n,this.bitsAvailable-=n,n;return this.loadWord(),n+this.skipLZ()},M.skipUEG=function(){this.skipBits(1+this.skipLZ())},M.skipEG=function(){this.skipBits(1+this.skipLZ())},M.readUEG=function(){var n=this.skipLZ();return this.readBits(n+1)-1},M.readEG=function(){var n=this.readUEG();return 1&n?1+n>>>1:-1*(n>>>1)},M.readBoolean=function(){return this.readBits(1)===1},M.readUByte=function(){return this.readBits(8)},M.readUShort=function(){return this.readBits(16)},M.readUInt=function(){return this.readBits(32)},M.skipScalingList=function(n){for(var p=8,a=8,t,A=0;A0?w.subarray(C,C+b):void 0},M=function(w,P){var C=0;return C=(w[P]&127)<<21,C|=(w[P+1]&127)<<14,C|=(w[P+2]&127)<<7,C|=w[P+3]&127,C},T=function(w,P){return k(w,P)&&M(w,P+6)+10<=w.length-P},n=function(w){for(var P=t(w),C=0;C>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:y+=String.fromCharCode(m);break;case 12:case 13:x=w[U++],y+=String.fromCharCode((m&31)<<6|x&63);break;case 14:x=w[U++],g=w[U++],y+=String.fromCharCode((m&15)<<12|(x&63)<<6|(g&63)<<0);break;default:}}return y},o={decodeTextFrame:i},u;function E(){return!u&&typeof self.TextDecoder!="undefined"&&(u=new self.TextDecoder("utf-8")),u}},"./src/demux/mp3demuxer.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/demux/base-audio-demuxer.ts"),_=I("./src/demux/id3.ts"),O=I("./src/utils/logger.ts"),M=I("./src/demux/mpegaudio.ts");function T(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,n(a,t)}function n(a,t){return n=Object.setPrototypeOf||function(l,i){return l.__proto__=i,l},n(a,t)}var p=function(a){T(t,a);function t(){return a.apply(this,arguments)||this}var A=t.prototype;return A.resetInitSegment=function(i,c,d){a.prototype.resetInitSegment.call(this,i,c,d),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:i,duration:d,inputTimeScale:9e4,dropped:0}},t.probe=function(i){if(!i)return!1;for(var c=_.getID3Data(i,0)||[],d=c.length,f=i.length;d0},T.demux=function(p){var a=p,t=Object(_.dummyTrack)();if(this.config.progressive){this.remainderData&&(a=Object(k.appendUint8Array)(this.remainderData,p));var A=Object(k.segmentValidRange)(a);this.remainderData=A.remainder,t.samples=A.valid||new Uint8Array}else t.samples=a;return{audioTrack:Object(_.dummyTrack)(),avcTrack:t,id3Track:Object(_.dummyTrack)(),textTrack:Object(_.dummyTrack)()}},T.flush=function(){var p=Object(_.dummyTrack)();return p.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(_.dummyTrack)(),avcTrack:p,id3Track:Object(_.dummyTrack)(),textTrack:Object(_.dummyTrack)()}},T.demuxSampleAes=function(p,a,t){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},T.destroy=function(){},M}();O.minProbeByteLength=1024,Q.default=O},"./src/demux/mpegaudio.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"appendFrame",function(){return n}),I.d(Q,"parseHeader",function(){return p}),I.d(Q,"isHeaderPattern",function(){return a}),I.d(Q,"isHeader",function(){return t}),I.d(Q,"canParse",function(){return A}),I.d(Q,"probe",function(){return l});var k=null,_=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],O=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],M=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],T=[0,1,1,4];function n(i,c,d,f,o){if(d+24>c.length)return;var u=p(c,d);if(u&&d+u.frameLength<=c.length){var E=u.samplesPerFrame*9e4/u.sampleRate,R=f+o*E,w={unit:c.subarray(d,d+u.frameLength),pts:R,dts:R};return i.config=[],i.channelCount=u.channelCount,i.samplerate=u.sampleRate,i.samples.push(w),{sample:w,length:u.frameLength,missing:0}}}function p(i,c){var d=i[c+1]>>3&3,f=i[c+1]>>1&3,o=i[c+2]>>4&15,u=i[c+2]>>2&3;if(d!==1&&o!==0&&o!==15&&u!==3){var E=i[c+2]>>1&1,R=i[c+3]>>6,w=d===3?3-f:f===3?3:4,P=_[w*14+o-1]*1e3,C=d===3?0:d===2?1:2,b=O[C*3+u],s=R===3?1:2,h=M[d][f],m=T[f],x=h*8*m,g=Math.floor(h*P/b+E)*m;if(k===null){var y=navigator.userAgent||"",U=y.match(/Chrome\/(\d+)/i);k=U?parseInt(U[1]):0}var N=!!k&&k<=87;return N&&f===2&&P>=224e3&&R===0&&(i[c+3]=i[c+3]|128),{sampleRate:b,channelCount:s,frameLength:g,samplesPerFrame:x}}}function a(i,c){return i[c]===255&&(i[c+1]&224)===224&&(i[c+1]&6)!==0}function t(i,c){return c+1=p.length){t();return}if(p[a].unit.length<32)continue;var A=this.decrypter.isSync();if(this.decryptAacSample(p,a,t,A),!A)return}},T.getAvcEncryptedData=function(p){for(var a=Math.floor((p.length-48)/160)*16+16,t=new Int8Array(a),A=0,l=32;l<=p.length-16;l+=160,A+=16)t.set(p.subarray(l,l+16),A);return t},T.getAvcDecryptedUnit=function(p,a){for(var t=new Uint8Array(a),A=0,l=32;l<=p.length-16;l+=160,A+=16)p.set(t.subarray(A,A+16),l);return p},T.decryptAvcSample=function(p,a,t,A,l,i){var c=Object(_.discardEPB)(l.data),d=this.getAvcEncryptedData(c),f=this;this.decryptBuffer(d.buffer,function(o){l.data=f.getAvcDecryptedUnit(c,o),i||f.decryptAvcSamples(p,a,t+1,A)})},T.decryptAvcSamples=function(p,a,t,A){if(p instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;a++,t=0){if(a>=p.length){A();return}for(var l=p[a].units;!(t>=l.length);t++){var i=l[t];if(i.data.length<=48||i.type!==1&&i.type!==5)continue;var c=this.decrypter.isSync();if(this.decryptAvcSample(p,a,t,A,i,c),!c)return}}},M}();Q.default=O},"./src/demux/transmuxer-interface.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return l});var k=I("./node_modules/webworkify-webpack/index.js"),_=I.n(k),O=I("./src/events.ts"),M=I("./src/demux/transmuxer.ts"),T=I("./src/utils/logger.ts"),n=I("./src/errors.ts"),p=I("./src/utils/mediasource-helper.ts"),a=I("./node_modules/eventemitter3/index.js"),t=I.n(a),A=Object(p.getMediaSource)()||{isTypeSupported:function(){return!1}},l=function(){function i(d,f,o,u){var E=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=d,this.id=f,this.onTransmuxComplete=o,this.onFlush=u;var R=d.config,w=function(h,m){m=m||{},m.frag=E.frag,m.id=E.id,d.trigger(h,m)};this.observer=new a.EventEmitter,this.observer.on(O.Events.FRAG_DECRYPTED,w),this.observer.on(O.Events.ERROR,w);var P={mp4:A.isTypeSupported("video/mp4"),mpeg:A.isTypeSupported("audio/mpeg"),mp3:A.isTypeSupported('audio/mp4; codecs="mp3"')},C=navigator.vendor;if(R.enableWorker&&typeof Worker!="undefined"){T.logger.log("demuxing in webworker");var b;try{b=this.worker=k("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),b.addEventListener("message",this.onwmsg),b.onerror=function(s){d.trigger(O.Events.ERROR,{type:n.ErrorTypes.OTHER_ERROR,details:n.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(s.message+" ("+s.filename+":"+s.lineno+")")})},b.postMessage({cmd:"init",typeSupported:P,vendor:C,id:f,config:JSON.stringify(R)})}catch(s){T.logger.warn("Error in worker:",s),T.logger.error("Error while initializing DemuxerWorker, fallback to inline"),b&&self.URL.revokeObjectURL(b.objectURL),this.transmuxer=new M.default(this.observer,P,R,C,f),this.worker=null}}else this.transmuxer=new M.default(this.observer,P,R,C,f)}var c=i.prototype;return c.destroy=function(){var f=this.worker;if(f)f.removeEventListener("message",this.onwmsg),f.terminate(),this.worker=null;else{var o=this.transmuxer;o&&(o.destroy(),this.transmuxer=null)}var u=this.observer;u&&u.removeAllListeners(),this.observer=null},c.push=function(f,o,u,E,R,w,P,C,b,s){var h=this;b.transmuxing.start=self.performance.now();var m=this.transmuxer,x=this.worker,g=w?w.start:R.start,y=R.decryptdata,U=this.frag,N=!(U&&R.cc===U.cc),S=!(U&&b.level===U.level),H=U?b.sn-U.sn:-1,F=this.part?b.part-this.part.index:1,B=!S&&(H===1||H===0&&F===1),z=self.performance.now();(S||H||R.stats.parsing.start===0)&&(R.stats.parsing.start=z),w&&(F||!B)&&(w.stats.parsing.start=z);var K=new M.TransmuxState(N,B,C,S,g);if(!B||N){T.logger.log("[transmuxer-interface, "+R.type+"]: Starting new transmux session for sn: "+b.sn+" p: "+b.part+" level: "+b.level+" id: "+b.id+` discontinuity: `+N+` trackSwitch: `+S+` contiguous: `+B+` accurateTimeOffset: `+C+` timeOffset: `+g);var $=new M.TransmuxConfig(u,E,o,P,s);this.configureTransmuxer($)}if(this.frag=R,this.part=w,x)x.postMessage({cmd:"demux",data:f,decryptdata:y,chunkMeta:b,state:K},f instanceof ArrayBuffer?[f]:[]);else if(m){var te=m.push(f,y,b,K);Object(M.isPromise)(te)?te.then(function(fe){h.handleTransmuxComplete(fe)}):this.handleTransmuxComplete(te)}},c.flush=function(f){var o=this;f.transmuxing.start=self.performance.now();var u=this.transmuxer,E=this.worker;if(E)E.postMessage({cmd:"flush",chunkMeta:f});else if(u){var R=u.flush(f);Object(M.isPromise)(R)?R.then(function(w){o.handleFlushResult(w,f)}):this.handleFlushResult(R,f)}},c.handleFlushResult=function(f,o){var u=this;f.forEach(function(E){u.handleTransmuxComplete(E)}),this.onFlush(o)},c.onWorkerMessage=function(f){var o=f.data,u=this.hls;switch(o.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(o.data);break}case"flush":{this.onFlush(o.data);break}default:{o.data=o.data||{},o.data.frag=this.frag,o.data.id=this.id,u.trigger(o.event,o.data);break}}},c.configureTransmuxer=function(f){var o=this.worker,u=this.transmuxer;o?o.postMessage({cmd:"configure",config:f}):u&&u.configure(f)},c.handleTransmuxComplete=function(f){f.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(f)},i}()},"./src/demux/transmuxer-worker.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return n});var k=I("./src/demux/transmuxer.ts"),_=I("./src/events.ts"),O=I("./src/utils/logger.ts"),M=I("./node_modules/eventemitter3/index.js"),T=I.n(M);function n(l){var i=new M.EventEmitter,c=function(f,o){l.postMessage({event:f,data:o})};i.on(_.Events.FRAG_DECRYPTED,c),i.on(_.Events.ERROR,c),l.addEventListener("message",function(d){var f=d.data;switch(f.cmd){case"init":{var o=JSON.parse(f.config);l.transmuxer=new k.default(i,f.typeSupported,o,f.vendor,f.id),Object(O.enableLogs)(o.debug),c("init",null);break}case"configure":{l.transmuxer.configure(f.config);break}case"demux":{var u=l.transmuxer.push(f.data,f.decryptdata,f.chunkMeta,f.state);Object(k.isPromise)(u)?u.then(function(w){p(l,w)}):p(l,u);break}case"flush":{var E=f.chunkMeta,R=l.transmuxer.flush(E);Object(k.isPromise)(R)?R.then(function(w){t(l,w,E)}):t(l,R,E);break}default:break}})}function p(l,i){if(A(i.remuxResult))return;var c=[],d=i.remuxResult,f=d.audio,o=d.video;f&&a(c,f),o&&a(c,o),l.postMessage({event:"transmuxComplete",data:i},c)}function a(l,i){i.data1&&l.push(i.data1.buffer),i.data2&&l.push(i.data2.buffer)}function t(l,i,c){i.forEach(function(d){p(l,d)}),l.postMessage({event:"flush",data:c})}function A(l){return!l.audio&&!l.video&&!l.text&&!l.id3&&!l.initSegment}},"./src/demux/transmuxer.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return o}),I.d(Q,"isPromise",function(){return R}),I.d(Q,"TransmuxConfig",function(){return w}),I.d(Q,"TransmuxState",function(){return P});var k=I("./src/events.ts"),_=I("./src/errors.ts"),O=I("./src/crypt/decrypter.ts"),M=I("./src/demux/aacdemuxer.ts"),T=I("./src/demux/mp4demuxer.ts"),n=I("./src/demux/tsdemuxer.ts"),p=I("./src/demux/mp3demuxer.ts"),a=I("./src/remux/mp4-remuxer.ts"),t=I("./src/remux/passthrough-remuxer.ts"),A=I("./src/demux/chunk-cache.ts"),l=I("./src/utils/mp4-tools.ts"),i=I("./src/utils/logger.ts"),c;try{c=self.performance.now.bind(self.performance)}catch(C){i.logger.debug("Unable to use Performance API on this environment"),c=self.Date.now}var d=[{demux:n.default,remux:a.default},{demux:T.default,remux:t.default},{demux:M.default,remux:a.default},{demux:p.default,remux:a.default}],f=1024;d.forEach(function(C){var b=C.demux;f=Math.max(f,b.minProbeByteLength)});var o=function(){function C(s,h,m,x,g){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new A.default,this.observer=s,this.typeSupported=h,this.config=m,this.vendor=x,this.id=g}var b=C.prototype;return b.configure=function(h){this.transmuxConfig=h,this.decrypter&&this.decrypter.reset()},b.push=function(h,m,x,g){var y=this,U=x.transmuxing;U.executeStart=c();var N=new Uint8Array(h),S=this.cache,H=this.config,F=this.currentTransmuxState,B=this.transmuxConfig;g&&(this.currentTransmuxState=g);var z=u(N,m);if(z&&z.method==="AES-128"){var K=this.getDecrypter();if(H.enableSoftwareAES){var $=K.softwareDecrypt(N,z.key.buffer,z.iv.buffer);if(!$)return U.executeEnd=c(),E(x);N=new Uint8Array($)}else return this.decryptionPromise=K.webCryptoDecrypt(N,z.key.buffer,z.iv.buffer).then(function(Ke){var et=y.push(Ke,null,x);return y.decryptionPromise=null,et}),this.decryptionPromise}var te=g||F,fe=te.contiguous,Ae=te.discontinuity,ce=te.trackSwitch,ie=te.accurateTimeOffset,ye=te.timeOffset,le=B.audioCodec,me=B.videoCodec,se=B.defaultInitPts,ge=B.duration,ae=B.initSegmentData;if((Ae||ce)&&this.resetInitSegment(ae,le,me,ge),Ae&&this.resetInitialTimestamp(se),fe||this.resetContiguity(),this.needsProbing(N,Ae,ce)){if(S.dataLength){var pe=S.flush();N=Object(l.appendUint8Array)(pe,N)}this.configureTransmuxer(N,B)}var Me=this.transmux(N,z,ye,ie,x),xe=this.currentTransmuxState;return xe.contiguous=!0,xe.discontinuity=!1,xe.trackSwitch=!1,U.executeEnd=c(),Me},b.flush=function(h){var m=this,x=h.transmuxing;x.executeStart=c();var g=this.decrypter,y=this.cache,U=this.currentTransmuxState,N=this.decryptionPromise;if(N)return N.then(function(){return m.flush(h)});var S=[],H=U.timeOffset;if(g){var F=g.flush();F&&S.push(this.push(F,null,h))}var B=y.dataLength;y.reset();var z=this.demuxer,K=this.remuxer;if(!z||!K)return B>=f&&this.observer.emit(k.Events.ERROR,k.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),x.executeEnd=c(),[E(h)];var $=z.flush(H);return R($)?$.then(function(te){return m.flushRemux(S,te,h),S}):(this.flushRemux(S,$,h),S)},b.flushRemux=function(h,m,x){var g=m.audioTrack,y=m.avcTrack,U=m.id3Track,N=m.textTrack,S=this.currentTransmuxState,H=S.accurateTimeOffset,F=S.timeOffset;i.logger.log("[transmuxer.ts]: Flushed fragment "+x.sn+(x.part>-1?" p: "+x.part:"")+" of level "+x.level);var B=this.remuxer.remux(g,y,U,N,F,H,!0,this.id);h.push({remuxResult:B,chunkMeta:x}),x.transmuxing.executeEnd=c()},b.resetInitialTimestamp=function(h){var m=this.demuxer,x=this.remuxer;if(!m||!x)return;m.resetTimeStamp(h),x.resetTimeStamp(h)},b.resetContiguity=function(){var h=this.demuxer,m=this.remuxer;if(!h||!m)return;h.resetContiguity(),m.resetNextTimestamp()},b.resetInitSegment=function(h,m,x,g){var y=this.demuxer,U=this.remuxer;if(!y||!U)return;y.resetInitSegment(m,x,g),U.resetInitSegment(h,m,x)},b.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},b.transmux=function(h,m,x,g,y){var U;return m&&m.method==="SAMPLE-AES"?U=this.transmuxSampleAes(h,m,x,g,y):U=this.transmuxUnencrypted(h,x,g,y),U},b.transmuxUnencrypted=function(h,m,x,g){var y=this.demuxer.demux(h,m,!1,!this.config.progressive),U=y.audioTrack,N=y.avcTrack,S=y.id3Track,H=y.textTrack,F=this.remuxer.remux(U,N,S,H,m,x,!1,this.id);return{remuxResult:F,chunkMeta:g}},b.transmuxSampleAes=function(h,m,x,g,y){var U=this;return this.demuxer.demuxSampleAes(h,m,x).then(function(N){var S=U.remuxer.remux(N.audioTrack,N.avcTrack,N.id3Track,N.textTrack,x,g,!1,U.id);return{remuxResult:S,chunkMeta:y}})},b.configureTransmuxer=function(h,m){for(var x=this.config,g=this.observer,y=this.typeSupported,U=this.vendor,N=m.audioCodec,S=m.defaultInitPts,H=m.duration,F=m.initSegmentData,B=m.videoCodec,z,K=0,$=d.length;K<$;K++)if(d[K].demux.probe(h)){z=d[K];break}z||(i.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),z={demux:T.default,remux:t.default});var te=this.demuxer,fe=this.remuxer,Ae=z.remux,ce=z.demux;(!fe||!(fe instanceof Ae))&&(this.remuxer=new Ae(g,x,y,U)),(!te||!(te instanceof ce))&&(this.demuxer=new ce(g,x,y),this.probe=ce.probe),this.resetInitSegment(F,N,B,H),this.resetInitialTimestamp(S)},b.needsProbing=function(h,m,x){return!this.demuxer||!this.remuxer||m||x},b.getDecrypter=function(){var h=this.decrypter;return h||(h=this.decrypter=new O.default(this.observer,this.config)),h},C}();function u(C,b){var s=null;return C.byteLength>0&&b!=null&&b.key!=null&&b.iv!==null&&b.method!=null&&(s=b),s}var E=function(b){return{remuxResult:{},chunkMeta:b}};function R(C){return"then"in C&&C.then instanceof Function}var w=function(b,s,h,m,x){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=b,this.videoCodec=s,this.initSegmentData=h,this.duration=m,this.defaultInitPts=x},P=function(b,s,h,m,x){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=b,this.contiguous=s,this.accurateTimeOffset=h,this.trackSwitch=m,this.timeOffset=x}},"./src/demux/tsdemuxer.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"discardEPB",function(){return E});var k=I("./src/demux/adts.ts"),_=I("./src/demux/mpegaudio.ts"),O=I("./src/demux/exp-golomb.ts"),M=I("./src/demux/id3.ts"),T=I("./src/demux/sample-aes.ts"),n=I("./src/events.ts"),p=I("./src/utils/mp4-tools.ts"),a=I("./src/utils/logger.ts"),t=I("./src/errors.ts"),A={video:1,audio:2,id3:3,text:4},l=function(){function R(P,C,b){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=P,this.config=C,this.typeSupported=b}R.probe=function(C){var b=R.syncOffset(C);return b<0?!1:(b&&a.logger.warn("MPEG2-TS detected but first sync word found @ offset "+b+", junk ahead ?"),!0)},R.syncOffset=function(C){for(var b=Math.min(1e3,C.length-3*188),s=0;s>4,le=void 0;if(ye>1){if(le=Ae+5+C[Ae+4],le===Ae+188)continue}else le=Ae+4;switch(ie){case U:ce&&(N&&(m=f(N))&&this.parseAVCPES(m,!1),N={data:[],size:0}),N&&(N.data.push(C.subarray(le,Ae+188)),N.size+=Ae+188-le);break;case S:ce&&(F&&(m=f(F))&&(g.isAAC?this.parseAACPES(m):this.parseMPEGPES(m)),F={data:[],size:0}),F&&(F.data.push(C.subarray(le,Ae+188)),F.size+=Ae+188-le);break;case H:ce&&(B&&(m=f(B))&&this.parseID3PES(m),B={data:[],size:0}),B&&(B.data.push(C.subarray(le,Ae+188)),B.size+=Ae+188-le);break;case 0:ce&&(le+=C[le]+1),$=this._pmtId=c(C,le);break;case $:{ce&&(le+=C[le]+1);var me=d(C,le,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,s);U=me.avc,U>0&&(x.pid=U),S=me.audio,S>0&&(g.pid=S,g.isAAC=me.isAAC),H=me.id3,H>0&&(y.pid=H),z&&!K&&(a.logger.log("reparse from beginning"),z=!1,Ae=fe-188),K=this.pmtParsed=!0;break}case 17:case 8191:break;default:z=!0;break}}else this.observer.emit(n.Events.ERROR,n.Events.ERROR,{type:t.ErrorTypes.MEDIA_ERROR,details:t.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});x.pesData=N,g.pesData=F,y.pesData=B;var se={audioTrack:g,avcTrack:x,id3Track:y,textTrack:this._txtTrack};return h&&this.extractRemainingSamples(se),se},w.flush=function(){var C=this.remainderData;this.remainderData=null;var b;return C?b=this.demux(C,-1,!1,!0):b={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(b),this.sampleAes?this.decrypt(b,this.sampleAes):b},w.extractRemainingSamples=function(C){var b=C.audioTrack,s=C.avcTrack,h=C.id3Track,m=s.pesData,x=b.pesData,g=h.pesData,y;m&&(y=f(m))?(this.parseAVCPES(y,!0),s.pesData=null):s.pesData=m,x&&(y=f(x))?(b.isAAC?this.parseAACPES(y):this.parseMPEGPES(y),b.pesData=null):(x!=null&&x.size&&a.logger.log("last AAC PES packet truncated,might overlap between fragments"),b.pesData=x),g&&(y=f(g))?(this.parseID3PES(y),h.pesData=null):h.pesData=g},w.demuxSampleAes=function(C,b,s){var h=this.demux(C,s,!0,!this.config.progressive),m=this.sampleAes=new T.default(this.observer,this.config,b);return this.decrypt(h,m)},w.decrypt=function(C,b){return new Promise(function(s){var h=C.audioTrack,m=C.avcTrack;h.samples&&h.isAAC?b.decryptAacSamples(h.samples,0,function(){m.samples?b.decryptAvcSamples(m.samples,0,0,function(){s(C)}):s(C)}):m.samples&&b.decryptAvcSamples(m.samples,0,0,function(){s(C)})})},w.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},w.parseAVCPES=function(C,b){var s=this,h=this._avcTrack,m=this.parseAVCNALu(C.data),x=!1,g=this.avcSample,y,U=!1;C.data=null,g&&m.length&&!h.audFound&&(o(g,h),g=this.avcSample=i(!1,C.pts,C.dts,"")),m.forEach(function(N){switch(N.type){case 1:{y=!0,g||(g=s.avcSample=i(!0,C.pts,C.dts,"")),x&&(g.debug+="NDR "),g.frame=!0;var S=N.data;if(U&&S.length>4){var H=new O.default(S).readSliceType();(H===2||H===4||H===7||H===9)&&(g.key=!0)}break}case 5:y=!0,g||(g=s.avcSample=i(!0,C.pts,C.dts,"")),x&&(g.debug+="IDR "),g.key=!0,g.frame=!0;break;case 6:{y=!0,x&&g&&(g.debug+="SEI ");var F=new O.default(E(N.data));F.readUByte();for(var B=0,z=0,K=!1,$=0;!K&&F.bytesAvailable>1;){B=0;do $=F.readUByte(),B+=$;while($===255);z=0;do $=F.readUByte(),z+=$;while($===255);if(B===4&&F.bytesAvailable!==0){K=!0;var te=F.readUByte();if(te===181){var fe=F.readUShort();if(fe===49){var Ae=F.readUInt();if(Ae===1195456820){var ce=F.readUByte();if(ce===3){for(var ie=F.readUByte(),ye=F.readUByte(),le=31&ie,me=[ie,ye],se=0;se16){for(var ge=[],ae=0;ae<16;ae++)ge.push(F.readUByte().toString(16)),(ae===3||ae===5||ae===7||ae===9)&&ge.push("-");for(var pe=z-16,Me=new Uint8Array(pe),xe=0;xe=0){var F={data:C.subarray(S,g-h-1),type:H};x.push(F)}else{var B=this.getLastNalUnit();if(B&&(m&&g<=4-m&&(B.state&&(B.data=B.data.subarray(0,B.data.byteLength-m))),U=g-h-1,U>0)){var z=new Uint8Array(B.data.byteLength+U);z.set(B.data,0),z.set(C.subarray(0,U),B.data.byteLength),B.data=z,B.state=0}}g=0&&h>=0){var K={data:C.subarray(S,b),type:H,state:h};x.push(K)}if(x.length===0){var $=this.getLastNalUnit();if($){var te=new Uint8Array($.data.byteLength+C.byteLength);te.set($.data,0),te.set(C,$.data.byteLength),$.data=te}}return s.naluState=h,x},w.parseAACPES=function(C){var b=0,s=this._audioTrack,h=this.aacOverFlow,m=C.data;if(h){this.aacOverFlow=null;var x=h.sample.unit.byteLength,g=Math.min(h.missing,x),y=x-g;h.sample.unit.set(m.subarray(0,g),y),s.samples.push(h.sample),b=h.missing}var U,N;for(U=b,N=m.length;U1;){var x=new Uint8Array(m[0].length+m[1].length);x.set(m[0]),x.set(m[1],m[0].length),m[0]=x,m.splice(1,1)}P=m[0];var g=(P[0]<<16)+(P[1]<<8)+P[2];if(g===1){if(C=(P[4]<<8)+P[5],C&&C>R.size-6)return null;var y=P[7];y&192&&(s=(P[9]&14)*536870912+(P[10]&255)*4194304+(P[11]&254)*16384+(P[12]&255)*128+(P[13]&254)/2,y&64?(h=(P[14]&14)*536870912+(P[15]&255)*4194304+(P[16]&254)*16384+(P[17]&255)*128+(P[18]&254)/2,s-h>60*9e4&&(a.logger.warn(Math.round((s-h)/9e4)+"s delta between PTS and DTS, align them"),s=h)):h=s),b=P[8];var U=b+9;if(R.size<=U)return null;R.size-=U;for(var N=new Uint8Array(R.size),S=0,H=m.length;SF){U-=F;continue}else P=P.subarray(U),F-=U,U=0;N.set(P,w),w+=F}return C&&(C-=b+3),{data:N,pts:s,dts:h,len:C}}return null}function o(R,w){if(R.units.length&&R.frame){if(R.pts===void 0){var P=w.samples,C=P.length;if(C){var b=P[C-1];R.pts=b.pts,R.dts=b.dts}else{w.dropped++;return}}w.samples.push(R)}R.debug.length&&a.logger.log(R.pts+"/"+R.dts+":"+R.debug)}function u(R,w){var P=R.length;if(P>0){if(w.pts>=R[P-1].pts)R.push(w);else for(var C=P-1;C>=0;C--)if(w.ptss)return m;return 0}},{key:"maxAutoLevel",get:function(){var b=this.levels,s=this.autoLevelCapping,h;return s===-1&&b&&b.length?h=b.length-1:h=s,h}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(b){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,b)}},{key:"audioTracks",get:function(){var b=this.audioTrackController;return b?b.audioTracks:[]}},{key:"audioTrack",get:function(){var b=this.audioTrackController;return b?b.audioTrack:-1},set:function(b){var s=this.audioTrackController;s&&(s.audioTrack=b)}},{key:"subtitleTracks",get:function(){var b=this.subtitleTrackController;return b?b.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var b=this.subtitleTrackController;return b?b.subtitleTrack:-1},set:function(b){var s=this.subtitleTrackController;s&&(s.subtitleTrack=b)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var b=this.subtitleTrackController;return b?b.subtitleDisplay:!1},set:function(b){var s=this.subtitleTrackController;s&&(s.subtitleDisplay=b)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(b){this.config.lowLatencyMode=b}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return f.Events}},{key:"ErrorTypes",get:function(){return o.ErrorTypes}},{key:"ErrorDetails",get:function(){return o.ErrorDetails}},{key:"DefaultConfig",get:function(){return w.defaultConfig?w.defaultConfig:i.hlsDefaultConfig},set:function(b){w.defaultConfig=b}}]),w}();R.defaultConfig=void 0},"./src/is-supported.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"isSupported",function(){return O}),I.d(Q,"changeTypeSupported",function(){return M});var k=I("./src/utils/mediasource-helper.ts");function _(){return self.SourceBuffer||self.WebKitSourceBuffer}function O(){var T=Object(k.getMediaSource)();if(!T)return!1;var n=_(),p=T&&typeof T.isTypeSupported=="function"&&T.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),a=!n||n.prototype&&typeof n.prototype.appendBuffer=="function"&&typeof n.prototype.remove=="function";return!!p&&!!a}function M(){var T,n=_();return typeof(n==null||((T=n.prototype)===null||T===void 0)?void 0:T.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return l}),I.d(Q,"LoadError",function(){return c});var k=I("./src/polyfills/number.ts"),_=I("./src/errors.ts");function O(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,a(d,f)}function M(d){var f=typeof Map=="function"?new Map:void 0;return M=function(u){if(u===null||!p(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof f!="undefined"){if(f.has(u))return f.get(u);f.set(u,E)}function E(){return T(u,arguments,t(this).constructor)}return E.prototype=Object.create(u.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),a(E,u)},M(d)}function T(d,f,o){return n()?T=Reflect.construct:T=function(E,R,w){var P=[null];P.push.apply(P,R);var C=Function.bind.apply(E,P),b=new C;return w&&a(b,w.prototype),b},T.apply(null,arguments)}function n(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}function p(d){return Function.toString.call(d).indexOf("[native code]")!==-1}function a(d,f){return a=Object.setPrototypeOf||function(u,E){return u.__proto__=E,u},a(d,f)}function t(d){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},t(d)}var A=Math.pow(2,17),l=function(){function d(o){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=o}var f=d.prototype;return f.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},f.abort=function(){this.loader&&this.loader.abort()},f.load=function(u,E){var R=this,w=u.url;if(!w)return Promise.reject(new c({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,networkDetails:null},"Fragment does not have a "+(w?"part list":"url")));this.abort();var P=this.config,C=P.fLoader,b=P.loader;return new Promise(function(s,h){R.loader&&R.loader.destroy();var m=R.loader=u.loader=C?new C(P):new b(P),x=i(u),g={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:A};u.stats=m.stats,m.load(x,g,{onSuccess:function(U,N,S,H){R.resetLoader(u,m),s({frag:u,part:null,payload:U.data,networkDetails:H})},onError:function(U,N,S){R.resetLoader(u,m),h(new c({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,response:U,networkDetails:S}))},onAbort:function(U,N,S){R.resetLoader(u,m),h(new c({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,networkDetails:S}))},onTimeout:function(U,N,S){R.resetLoader(u,m),h(new c({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,networkDetails:S}))},onProgress:function(U,N,S,H){E&&E({frag:u,part:null,payload:S,networkDetails:H})}})})},f.loadPart=function(u,E,R){var w=this;this.abort();var P=this.config,C=P.fLoader,b=P.loader;return new Promise(function(s,h){w.loader&&w.loader.destroy();var m=w.loader=u.loader=C?new C(P):new b(P),x=i(u,E),g={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:A};E.stats=m.stats,m.load(x,g,{onSuccess:function(U,N,S,H){w.resetLoader(u,m),w.updateStatsFromPart(u,E);var F={frag:u,part:E,payload:U.data,networkDetails:H};R(F),s(F)},onError:function(U,N,S){w.resetLoader(u,m),h(new c({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,part:E,response:U,networkDetails:S}))},onAbort:function(U,N,S){u.stats.aborted=E.stats.aborted,w.resetLoader(u,m),h(new c({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,part:E,networkDetails:S}))},onTimeout:function(U,N,S){w.resetLoader(u,m),h(new c({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,part:E,networkDetails:S}))}})})},f.updateStatsFromPart=function(u,E){var R=u.stats,w=E.stats,P=w.total;if(R.loaded+=w.loaded,P){var C=Math.round(u.duration/E.duration),b=Math.min(Math.round(R.loaded/P),C),s=C-b,h=s*Math.round(R.loaded/b);R.total=R.loaded+h}else R.total=Math.max(R.loaded,R.total);var m=R.loading,x=w.loading;m.start?m.first+=x.first-x.start:(m.start=x.start,m.first=x.first),m.end=x.end},f.resetLoader=function(u,E){u.loader=null,this.loader===E&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),E.destroy()},d}();function i(d,f){f===void 0&&(f=null);var o=f||d,u={frag:d,part:f,responseType:"arraybuffer",url:o.url,headers:{},rangeStart:0,rangeEnd:0},E=o.byteRangeStartOffset,R=o.byteRangeEndOffset;return Object(k.isFiniteNumber)(E)&&Object(k.isFiniteNumber)(R)&&(u.rangeStart=E,u.rangeEnd=R),u}var c=function(d){O(f,d);function f(o){for(var u,E=arguments.length,R=new Array(E>1?E-1:0),w=1;w>8*(15-P)&255;return w},u.setDecryptDataFromLevelKey=function(R,w){var P=R;return(R==null?void 0:R.method)==="AES-128"&&R.uri&&!R.iv&&(P=T.LevelKey.fromURI(R.uri),P.method=R.method,P.iv=this.createInitializationVector(w),P.keyFormat="identity"),P},u.setElementaryStreamInfo=function(R,w,P,C,b,s){s===void 0&&(s=!1);var h=this.elementaryStreams,m=h[R];if(!m){h[R]={startPTS:w,endPTS:P,startDTS:C,endDTS:b,partial:s};return}m.startPTS=Math.min(m.startPTS,w),m.endPTS=Math.max(m.endPTS,P),m.startDTS=Math.min(m.startDTS,C),m.endDTS=Math.max(m.endDTS,b)},u.clearElementaryStreamInfo=function(){var R=this.elementaryStreams;R[l.AUDIO]=null,R[l.VIDEO]=null,R[l.AUDIOVIDEO]=null},A(o,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var R=this.sn;typeof R!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&M.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),R=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,R)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(k.isFiniteNumber)(this.programDateTime))return null;var R=Object(k.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+R*1e3}},{key:"encrypted",get:function(){var R;return!!((R=this.decryptdata)!==null&&R!==void 0&&R.keyFormat&&this.decryptdata.uri)}}]),o}(i),d=function(f){p(o,f);function o(u,E,R,w,P){var C;C=f.call(this,R)||this,C.fragOffset=0,C.duration=0,C.gap=!1,C.independent=!1,C.relurl=void 0,C.fragment=void 0,C.index=void 0,C.stats=new n.LoadStats,C.duration=u.decimalFloatingPoint("DURATION"),C.gap=u.bool("GAP"),C.independent=u.bool("INDEPENDENT"),C.relurl=u.enumeratedString("URI"),C.fragment=E,C.index=w;var b=u.enumeratedString("BYTERANGE");return b&&C.setByteRange(b,P),P&&(C.fragOffset=P.fragOffset+P.duration),C}return A(o,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var E=this.elementaryStreams;return!!(E.audio||E.video||E.audiovideo)}}]),o}(i)},"./src/loader/key-loader.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return M});var k=I("./src/events.ts"),_=I("./src/errors.ts"),O=I("./src/utils/logger.ts"),M=function(){function T(p){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=p,this._registerListeners()}var n=T.prototype;return n._registerListeners=function(){this.hls.on(k.Events.KEY_LOADING,this.onKeyLoading,this)},n._unregisterListeners=function(){this.hls.off(k.Events.KEY_LOADING,this.onKeyLoading)},n.destroy=function(){this._unregisterListeners();for(var a in this.loaders){var t=this.loaders[a];t&&t.destroy()}this.loaders={}},n.onKeyLoading=function(a,t){var A=t.frag,l=A.type,i=this.loaders[l];if(!A.decryptdata){O.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var c=A.decryptdata.uri;if(c!==this.decrypturl||this.decryptkey===null){var d=this.hls.config;if(i&&(O.logger.warn("abort previous key loader for type:"+l),i.abort()),!c){O.logger.warn("key uri is falsy");return}var f=d.loader,o=A.loader=this.loaders[l]=new f(d);this.decrypturl=c,this.decryptkey=null;var u={url:c,frag:A,responseType:"arraybuffer"},E={timeout:d.fragLoadingTimeOut,maxRetry:0,retryDelay:d.fragLoadingRetryDelay,maxRetryDelay:d.fragLoadingMaxRetryTimeout,highWaterMark:0},R={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};o.load(u,E,R)}else this.decryptkey&&(A.decryptdata.key=this.decryptkey,this.hls.trigger(k.Events.KEY_LOADED,{frag:A}))},n.loadsuccess=function(a,t,A){var l=A.frag;if(!l.decryptdata){O.logger.error("after key load, decryptdata unset");return}this.decryptkey=l.decryptdata.key=new Uint8Array(a.data),l.loader=null,delete this.loaders[l.type],this.hls.trigger(k.Events.KEY_LOADED,{frag:l})},n.loaderror=function(a,t){var A=t.frag,l=A.loader;l&&l.abort(),delete this.loaders[A.type],this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:A,response:a})},n.loadtimeout=function(a,t){var A=t.frag,l=A.loader;l&&l.abort(),delete this.loaders[A.type],this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:A})},T}()},"./src/loader/level-details.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"LevelDetails",function(){return T});var k=I("./src/polyfills/number.ts");function _(n,p){for(var a=0;at.endSN||A>0||A===0&&l>0,this.updated||this.advanced?this.misses=Math.floor(t.misses*.6):this.misses=t.misses+1,this.availabilityDelay=t.availabilityDelay},O(n,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(k.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||M}},{key:"drift",get:function(){var t=this.driftEndTime-this.driftStartTime;if(t>0){var A=this.driftEnd-this.driftStart;return A*1e3/t}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var t;return(t=this.partList)!==null&&t!==void 0&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var t;return(t=this.fragments)!==null&&t!==void 0&&t.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var t;return(t=this.partList)!==null&&t!==void 0&&t.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var t;return(t=this.partList)!==null&&t!==void 0&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),n}()},"./src/loader/level-key.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"LevelKey",function(){return T});var k=I("./node_modules/url-toolkit/src/url-toolkit.js"),_=I.n(k);function O(n,p){for(var a=0;a2){var h=s.shift()+".";return h+=parseInt(s.shift()).toString(16),h+=("000"+parseInt(s.shift()).toString(16)).substr(-4),h}return b},P.resolve=function(b,s){return _.buildAbsoluteURL(s,b,{alwaysNormalize:!0})},P.parseMasterPlaylist=function(b,s){var h=[],m={},x=!1;A.lastIndex=0;for(var g;(g=A.exec(b))!=null;)if(g[1]){var y=new p.AttrList(g[1]),U={attrs:y,bitrate:y.decimalInteger("AVERAGE-BANDWIDTH")||y.decimalInteger("BANDWIDTH"),name:y.NAME,url:P.resolve(g[2],s)},N=y.decimalResolution("RESOLUTION");N&&(U.width=N.width,U.height=N.height),u((y.CODECS||"").split(/[ ,]+/).filter(function(H){return H}),U),U.videoCodec&&U.videoCodec.indexOf("avc1")!==-1&&(U.videoCodec=P.convertAVC1ToAVCOTI(U.videoCodec)),h.push(U)}else if(g[3]){var S=new p.AttrList(g[3]);S["DATA-ID"]&&(x=!0,m[S["DATA-ID"]]=S)}return{levels:h,sessionData:x?m:null}},P.parseMasterPlaylistMedia=function(b,s,h,m){m===void 0&&(m=[]);var x,g=[],y=0;for(l.lastIndex=0;(x=l.exec(b))!==null;){var U=new p.AttrList(x[1]);if(U.TYPE===h){var N={attrs:U,bitrate:0,id:y++,groupId:U["GROUP-ID"],instreamId:U["INSTREAM-ID"],name:U.NAME||U.LANGUAGE||"",type:h,default:U.bool("DEFAULT"),autoselect:U.bool("AUTOSELECT"),forced:U.bool("FORCED"),lang:U.LANGUAGE,url:U.URI?P.resolve(U.URI,s):""};if(m.length){var S=P.findGroup(m,N.groupId)||m[0];E(N,S,"audioCodec"),E(N,S,"textCodec")}g.push(N)}}return g},P.parseLevelPlaylist=function(b,s,h,m,x){var g=new T.LevelDetails(s),y=g.fragments,U=null,N=0,S=0,H=0,F=0,B=null,z=new M.Fragment(m,s),K,$,te,fe=-1,Ae=!1;for(i.lastIndex=0,g.m3u8=b;(K=i.exec(b))!==null;){Ae&&(Ae=!1,z=new M.Fragment(m,s),z.start=H,z.sn=N,z.cc=F,z.level=h,U&&(z.initSegment=U,z.rawProgramDateTime=U.rawProgramDateTime));var ce=K[1];if(ce){z.duration=parseFloat(ce);var ie=(" "+K[2]).slice(1);z.title=ie||null,z.tagList.push(ie?["INF",ce,ie]:["INF",ce])}else if(K[3])Object(k.isFiniteNumber)(z.duration)&&(z.start=H,te&&(z.levelkey=te),z.sn=N,z.level=h,z.cc=F,z.urlId=x,y.push(z),z.relurl=(" "+K[3]).slice(1),w(z,B),B=z,H+=z.duration,N++,S=0,Ae=!0);else if(K[4]){var ye=(" "+K[4]).slice(1);B?z.setByteRange(ye,B):z.setByteRange(ye)}else if(K[5])z.rawProgramDateTime=(" "+K[5]).slice(1),z.tagList.push(["PROGRAM-DATE-TIME",z.rawProgramDateTime]),fe===-1&&(fe=y.length);else{if(K=K[0].match(c),!K){a.logger.warn("No matches on slow regex match for level playlist!");continue}for($=1;$-1){a.logger.warn("Keyformat "+ct+" is not supported from the manifest");continue}else if(ct!=="identity")continue;et&&(te=n.LevelKey.fromURL(s,he),he&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(et)>=0&&(te.method=et,te.keyFormat=ct,Ne&&(te.keyID=Ne),Ue&&(te.keyFormatVersions=Ue),te.iv=Se));break}case"START":{var Ot=new p.AttrList(me),dt=Ot.decimalFloatingPoint("TIME-OFFSET");Object(k.isFiniteNumber)(dt)&&(g.startTimeOffset=dt);break}case"MAP":{var Ut=new p.AttrList(me);z.relurl=Ut.URI,Ut.BYTERANGE&&z.setByteRange(Ut.BYTERANGE),z.level=h,z.sn="initSegment",te&&(z.levelkey=te),z.initSegment=null,U=z,Ae=!0;break}case"SERVER-CONTROL":{var jt=new p.AttrList(me);g.canBlockReload=jt.bool("CAN-BLOCK-RELOAD"),g.canSkipUntil=jt.optionalFloat("CAN-SKIP-UNTIL",0),g.canSkipDateRanges=g.canSkipUntil>0&&jt.bool("CAN-SKIP-DATERANGES"),g.partHoldBack=jt.optionalFloat("PART-HOLD-BACK",0),g.holdBack=jt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var ze=new p.AttrList(me);g.partTarget=ze.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ve=g.partList;Ve||(Ve=g.partList=[]);var Et=S>0?Ve[Ve.length-1]:void 0,Rt=S++,ut=new M.Part(new p.AttrList(me),z,s,Rt,Et);Ve.push(ut),z.duration+=ut.duration;break}case"PRELOAD-HINT":{var vt=new p.AttrList(me);g.preloadHint=vt;break}case"RENDITION-REPORT":{var Ze=new p.AttrList(me);g.renditionReports=g.renditionReports||[],g.renditionReports.push(Ze);break}default:a.logger.warn("line parsed but not handled: "+K);break}}}B&&!B.relurl?(y.pop(),H-=B.duration,g.partList&&(g.fragmentHint=B)):g.partList&&(w(z,B),z.cc=F,g.fragmentHint=z);var ke=y.length,He=y[0],we=y[ke-1];if(H+=g.skippedSegments*g.targetduration,H>0&&ke&&we){g.averagetargetduration=H/ke;var Le=we.sn;g.endSN=Le!=="initSegment"?Le:0,He&&(g.startCC=He.cc,He.initSegment||g.fragments.every(function(Pe){return Pe.relurl&&f(Pe.relurl)})&&(a.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),z=new M.Fragment(m,s),z.relurl=we.relurl,z.level=h,z.sn="initSegment",He.initSegment=z,g.needSidxRanges=!0))}else g.endSN=0,g.startCC=0;return g.fragmentHint&&(H+=g.fragmentHint.duration),g.totalduration=H,g.endCC=F,fe>0&&R(y,fe),g},P}();function u(P,C){["video","audio","text"].forEach(function(b){var s=P.filter(function(m){return Object(t.isCodecType)(m,b)});if(s.length){var h=s.filter(function(m){return m.lastIndexOf("avc1",0)===0||m.lastIndexOf("mp4a",0)===0});C[b+"Codec"]=h.length>0?h[0]:s[0],P=P.filter(function(m){return s.indexOf(m)===-1})}}),C.unknownCodecs=P}function E(P,C,b){var s=C[b];s&&(P[b]=s)}function R(P,C){for(var b=P[C],s=C;s--;){var h=P[s];if(!h)return;h.programDateTime=b.programDateTime-h.duration*1e3,b=h}}function w(P,C){P.rawProgramDateTime?P.programDateTime=Date.parse(P.rawProgramDateTime):C!=null&&C.programDateTime&&(P.programDateTime=C.endProgramDateTime),Object(k.isFiniteNumber)(P.programDateTime)||(P.programDateTime=null,P.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/polyfills/number.ts"),_=I("./src/events.ts"),O=I("./src/errors.ts"),M=I("./src/utils/logger.ts"),T=I("./src/utils/mp4-tools.ts"),n=I("./src/loader/m3u8-parser.ts"),p=I("./src/types/loader.ts"),a=I("./src/utils/attr-list.ts");function t(i){var c=i.type;switch(c){case p.PlaylistContextType.AUDIO_TRACK:return p.PlaylistLevelType.AUDIO;case p.PlaylistContextType.SUBTITLE_TRACK:return p.PlaylistLevelType.SUBTITLE;default:return p.PlaylistLevelType.MAIN}}function A(i,c){var d=i.url;return(d===void 0||d.indexOf("data:")===0)&&(d=c.url),d}var l=function(){function i(d){this.hls=void 0,this.loaders=Object.create(null),this.hls=d,this.registerListeners()}var c=i.prototype;return c.registerListeners=function(){var f=this.hls;f.on(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.on(_.Events.LEVEL_LOADING,this.onLevelLoading,this),f.on(_.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),f.on(_.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},c.unregisterListeners=function(){var f=this.hls;f.off(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.off(_.Events.LEVEL_LOADING,this.onLevelLoading,this),f.off(_.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),f.off(_.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},c.createInternalLoader=function(f){var o=this.hls.config,u=o.pLoader,E=o.loader,R=u||E,w=new R(o);return f.loader=w,this.loaders[f.type]=w,w},c.getInternalLoader=function(f){return this.loaders[f.type]},c.resetInternalLoader=function(f){this.loaders[f]&&delete this.loaders[f]},c.destroyInternalLoaders=function(){for(var f in this.loaders){var o=this.loaders[f];o&&o.destroy(),this.resetInternalLoader(f)}},c.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},c.onManifestLoading=function(f,o){var u=o.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:p.PlaylistContextType.MANIFEST,url:u,deliveryDirectives:null})},c.onLevelLoading=function(f,o){var u=o.id,E=o.level,R=o.url,w=o.deliveryDirectives;this.load({id:u,groupId:null,level:E,responseType:"text",type:p.PlaylistContextType.LEVEL,url:R,deliveryDirectives:w})},c.onAudioTrackLoading=function(f,o){var u=o.id,E=o.groupId,R=o.url,w=o.deliveryDirectives;this.load({id:u,groupId:E,level:null,responseType:"text",type:p.PlaylistContextType.AUDIO_TRACK,url:R,deliveryDirectives:w})},c.onSubtitleTrackLoading=function(f,o){var u=o.id,E=o.groupId,R=o.url,w=o.deliveryDirectives;this.load({id:u,groupId:E,level:null,responseType:"text",type:p.PlaylistContextType.SUBTITLE_TRACK,url:R,deliveryDirectives:w})},c.load=function(f){var o,u=this.hls.config,E=this.getInternalLoader(f);if(E){var R=E.context;if(R&&R.url===f.url){M.logger.trace("[playlist-loader]: playlist request ongoing");return}M.logger.log("[playlist-loader]: aborting previous loader for type: "+f.type),E.abort()}var w,P,C,b;switch(f.type){case p.PlaylistContextType.MANIFEST:w=u.manifestLoadingMaxRetry,P=u.manifestLoadingTimeOut,C=u.manifestLoadingRetryDelay,b=u.manifestLoadingMaxRetryTimeout;break;case p.PlaylistContextType.LEVEL:case p.PlaylistContextType.AUDIO_TRACK:case p.PlaylistContextType.SUBTITLE_TRACK:w=0,P=u.levelLoadingTimeOut;break;default:w=u.levelLoadingMaxRetry,P=u.levelLoadingTimeOut,C=u.levelLoadingRetryDelay,b=u.levelLoadingMaxRetryTimeout;break}if(E=this.createInternalLoader(f),(o=f.deliveryDirectives)!==null&&o!==void 0&&o.part){var s;if(f.type===p.PlaylistContextType.LEVEL&&f.level!==null?s=this.hls.levels[f.level].details:f.type===p.PlaylistContextType.AUDIO_TRACK&&f.id!==null?s=this.hls.audioTracks[f.id].details:f.type===p.PlaylistContextType.SUBTITLE_TRACK&&f.id!==null&&(s=this.hls.subtitleTracks[f.id].details),s){var h=s.partTarget,m=s.targetduration;h&&m&&(P=Math.min(Math.max(h*3,m*.8)*1e3,P))}}var x={timeout:P,maxRetry:w,retryDelay:C,maxRetryDelay:b,highWaterMark:0},g={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};E.load(f,x,g)},c.loadsuccess=function(f,o,u,E){if(E===void 0&&(E=null),u.isSidxRequest){this.handleSidxRequest(f,u),this.handlePlaylistLoaded(f,o,u,E);return}this.resetInternalLoader(u.type);var R=f.data;if(R.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(f,u,"no EXTM3U delimiter",E);return}o.parsing.start=performance.now(),R.indexOf("#EXTINF:")>0||R.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(f,o,u,E):this.handleMasterPlaylist(f,o,u,E)},c.loaderror=function(f,o,u){u===void 0&&(u=null),this.handleNetworkError(o,u,!1,f)},c.loadtimeout=function(f,o,u){u===void 0&&(u=null),this.handleNetworkError(o,u,!0)},c.handleMasterPlaylist=function(f,o,u,E){var R=this.hls,w=f.data,P=A(f,u),C=n.default.parseMasterPlaylist(w,P),b=C.levels,s=C.sessionData;if(!b.length){this.handleManifestParsingError(f,u,"no level found in manifest",E);return}var h=b.map(function(N){return{id:N.attrs.AUDIO,audioCodec:N.audioCodec}}),m=b.map(function(N){return{id:N.attrs.SUBTITLES,textCodec:N.textCodec}}),x=n.default.parseMasterPlaylistMedia(w,P,"AUDIO",h),g=n.default.parseMasterPlaylistMedia(w,P,"SUBTITLES",m),y=n.default.parseMasterPlaylistMedia(w,P,"CLOSED-CAPTIONS");if(x.length){var U=x.some(function(N){return!N.url});!U&&b[0].audioCodec&&!b[0].attrs.AUDIO&&(M.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),x.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new a.AttrList({}),bitrate:0,url:""}))}R.trigger(_.Events.MANIFEST_LOADED,{levels:b,audioTracks:x,subtitles:g,captions:y,url:P,stats:o,networkDetails:E,sessionData:s})},c.handleTrackOrLevelPlaylist=function(f,o,u,E){var R=this.hls,w=u.id,P=u.level,C=u.type,b=A(f,u),s=Object(k.isFiniteNumber)(w)?w:0,h=Object(k.isFiniteNumber)(P)?P:s,m=t(u),x=n.default.parseLevelPlaylist(f.data,b,h,m,s);if(!x.fragments.length){R.trigger(_.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:b,reason:"no fragments found in level",level:typeof u.level=="number"?u.level:void 0});return}if(C===p.PlaylistContextType.MANIFEST){var g={attrs:new a.AttrList({}),bitrate:0,details:x,name:"",url:b};R.trigger(_.Events.MANIFEST_LOADED,{levels:[g],audioTracks:[],url:b,stats:o,networkDetails:E,sessionData:null})}if(o.parsing.end=performance.now(),x.needSidxRanges){var y,U=(y=x.fragments[0].initSegment)===null||y===void 0?void 0:y.url;this.load({url:U,isSidxRequest:!0,type:C,level:P,levelDetails:x,id:w,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}u.levelDetails=x,this.handlePlaylistLoaded(f,o,u,E)},c.handleSidxRequest=function(f,o){var u=Object(T.parseSegmentIndex)(new Uint8Array(f.data));if(!u)return;var E=u.references,R=o.levelDetails;E.forEach(function(w,P){var C=w.info,b=R.fragments[P];b.byteRange.length===0&&b.setByteRange(String(1+C.end-C.start)+"@"+String(C.start)),b.initSegment&&b.initSegment.setByteRange(String(u.moovEndOffset)+"@0")})},c.handleManifestParsingError=function(f,o,u,E){this.hls.trigger(_.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:o.type===p.PlaylistContextType.MANIFEST,url:f.url,reason:u,response:f,context:o,networkDetails:E})},c.handleNetworkError=function(f,o,u,E){u===void 0&&(u=!1),M.logger.warn("[playlist-loader]: A network "+(u?"timeout":"error")+" occurred while loading "+f.type+" level: "+f.level+" id: "+f.id+' group-id: "'+f.groupId+'"');var R=O.ErrorDetails.UNKNOWN,w=!1,P=this.getInternalLoader(f);switch(f.type){case p.PlaylistContextType.MANIFEST:R=u?O.ErrorDetails.MANIFEST_LOAD_TIMEOUT:O.ErrorDetails.MANIFEST_LOAD_ERROR,w=!0;break;case p.PlaylistContextType.LEVEL:R=u?O.ErrorDetails.LEVEL_LOAD_TIMEOUT:O.ErrorDetails.LEVEL_LOAD_ERROR,w=!1;break;case p.PlaylistContextType.AUDIO_TRACK:R=u?O.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:O.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,w=!1;break;case p.PlaylistContextType.SUBTITLE_TRACK:R=u?O.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:O.ErrorDetails.SUBTITLE_LOAD_ERROR,w=!1;break}P&&this.resetInternalLoader(f.type);var C={type:O.ErrorTypes.NETWORK_ERROR,details:R,fatal:w,url:f.url,loader:P,context:f,networkDetails:o};E&&(C.response=E),this.hls.trigger(_.Events.ERROR,C)},c.handlePlaylistLoaded=function(f,o,u,E){var R=u.type,w=u.level,P=u.id,C=u.groupId,b=u.loader,s=u.levelDetails,h=u.deliveryDirectives;if(!(s!=null&&s.targetduration)){this.handleManifestParsingError(f,u,"invalid target duration",E);return}if(!b)return;s.live&&(b.getCacheAge&&(s.ageHeader=b.getCacheAge()||0),(!b.getCacheAge||isNaN(s.ageHeader))&&(s.ageHeader=0));switch(R){case p.PlaylistContextType.MANIFEST:case p.PlaylistContextType.LEVEL:this.hls.trigger(_.Events.LEVEL_LOADED,{details:s,level:w||0,id:P||0,stats:o,networkDetails:E,deliveryDirectives:h});break;case p.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(_.Events.AUDIO_TRACK_LOADED,{details:s,id:P||0,groupId:C||"",stats:o,networkDetails:E,deliveryDirectives:h});break;case p.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(_.Events.SUBTITLE_TRACK_LOADED,{details:s,id:P||0,groupId:C||"",stats:o,networkDetails:E,deliveryDirectives:h});break}},i}();Q.default=l},"./src/polyfills/number.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"isFiniteNumber",function(){return k}),I.d(Q,"MAX_SAFE_INTEGER",function(){return _});var k=Number.isFinite||function(O){return typeof O=="number"&&isFinite(O)},_=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(Z,Q,I){"use strict";I.r(Q);var k=function(){function _(){}return _.getSilentFrame=function(M,T){switch(M){case"mp4a.40.2":if(T===1)return new Uint8Array([0,200,0,128,35,128]);if(T===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(T===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(T===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(T===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(T===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]);break;default:if(T===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(T===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(T===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]);break}return},_}();Q.default=k},"./src/remux/mp4-generator.ts":function(Z,Q,I){"use strict";I.r(Q);var k=Math.pow(2,32)-1,_=function(){function O(){}return O.init=function(){O.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var T;for(T in O.types)O.types.hasOwnProperty(T)&&(O.types[T]=[T.charCodeAt(0),T.charCodeAt(1),T.charCodeAt(2),T.charCodeAt(3)]);var n=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]),p=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]);O.HDLR_TYPES={video:n,audio:p};var a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),t=new Uint8Array([0,0,0,0,0,0,0,0]);O.STTS=O.STSC=O.STCO=t,O.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),O.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),O.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),O.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var A=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),i=new Uint8Array([0,0,0,1]);O.FTYP=O.box(O.types.ftyp,A,i,A,l),O.DINF=O.box(O.types.dinf,O.box(O.types.dref,a))},O.box=function(T){for(var n=8,p=arguments.length,a=new Array(p>1?p-1:0),t=1;t>24&255,i[1]=n>>16&255,i[2]=n>>8&255,i[3]=n&255,i.set(T,4),A=0,n=8;A>24&255,T>>16&255,T>>8&255,T&255,p>>24,p>>16&255,p>>8&255,p&255,a>>24,a>>16&255,a>>8&255,a&255,85,196,0,0]))},O.mdia=function(T){return O.box(O.types.mdia,O.mdhd(T.timescale,T.duration),O.hdlr(T.type),O.minf(T))},O.mfhd=function(T){return O.box(O.types.mfhd,new Uint8Array([0,0,0,0,T>>24,T>>16&255,T>>8&255,T&255]))},O.minf=function(T){return T.type==="audio"?O.box(O.types.minf,O.box(O.types.smhd,O.SMHD),O.DINF,O.stbl(T)):O.box(O.types.minf,O.box(O.types.vmhd,O.VMHD),O.DINF,O.stbl(T))},O.moof=function(T,n,p){return O.box(O.types.moof,O.mfhd(T),O.traf(p,n))},O.moov=function(T){for(var n=T.length,p=[];n--;)p[n]=O.trak(T[n]);return O.box.apply(null,[O.types.moov,O.mvhd(T[0].timescale,T[0].duration)].concat(p).concat(O.mvex(T)))},O.mvex=function(T){for(var n=T.length,p=[];n--;)p[n]=O.trex(T[n]);return O.box.apply(null,[O.types.mvex].concat(p))},O.mvhd=function(T,n){n*=T;var p=Math.floor(n/(k+1)),a=Math.floor(n%(k+1)),t=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,T>>24&255,T>>16&255,T>>8&255,T&255,p>>24,p>>16&255,p>>8&255,p&255,a>>24,a>>16&255,a>>8&255,a&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]);return O.box(O.types.mvhd,t)},O.sdtp=function(T){var n=T.samples||[],p=new Uint8Array(4+n.length),a,t;for(a=0;a>>8&255),n.push(A&255),n=n.concat(Array.prototype.slice.call(t));for(a=0;a>>8&255),p.push(A&255),p=p.concat(Array.prototype.slice.call(t));var l=O.box(O.types.avcC,new Uint8Array([1,n[3],n[4],n[5],252|3,224|T.sps.length].concat(n).concat([T.pps.length]).concat(p))),i=T.width,c=T.height,d=T.pixelRatio[0],f=T.pixelRatio[1];return O.box(O.types.avc1,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,i>>8&255,i&255,c>>8&255,c&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l,O.box(O.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),O.box(O.types.pasp,new Uint8Array([d>>24,d>>16&255,d>>8&255,d&255,f>>24,f>>16&255,f>>8&255,f&255])))},O.esds=function(T){var n=T.config.length;return new Uint8Array([0,0,0,0,3,23+n,0,1,0,4,15+n,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([n]).concat(T.config).concat([6,1,2]))},O.mp4a=function(T){var n=T.samplerate;return O.box(O.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,T.channelCount,0,16,0,0,0,0,n>>8&255,n&255,0,0]),O.box(O.types.esds,O.esds(T)))},O.mp3=function(T){var n=T.samplerate;return O.box(O.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,T.channelCount,0,16,0,0,0,0,n>>8&255,n&255,0,0]))},O.stsd=function(T){return T.type==="audio"?!T.isAAC&&T.codec==="mp3"?O.box(O.types.stsd,O.STSD,O.mp3(T)):O.box(O.types.stsd,O.STSD,O.mp4a(T)):O.box(O.types.stsd,O.STSD,O.avc1(T))},O.tkhd=function(T){var n=T.id,p=T.duration*T.timescale,a=T.width,t=T.height,A=Math.floor(p/(k+1)),l=Math.floor(p%(k+1));return O.box(O.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,n>>24&255,n>>16&255,n>>8&255,n&255,0,0,0,0,A>>24,A>>16&255,A>>8&255,A&255,l>>24,l>>16&255,l>>8&255,l&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,a>>8&255,a&255,0,0,t>>8&255,t&255,0,0]))},O.traf=function(T,n){var p=O.sdtp(T),a=T.id,t=Math.floor(n/(k+1)),A=Math.floor(n%(k+1));return O.box(O.types.traf,O.box(O.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255])),O.box(O.types.tfdt,new Uint8Array([1,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,A>>24,A>>16&255,A>>8&255,A&255])),O.trun(T,p.length+16+20+8+16+8+8),p)},O.trak=function(T){return T.duration=T.duration||4294967295,O.box(O.types.trak,O.tkhd(T),O.mdia(T))},O.trex=function(T){var n=T.id;return O.box(O.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},O.trun=function(T,n){var p=T.samples||[],a=p.length,t=12+16*a,A=new Uint8Array(t),l,i,c,d,f,o;for(n+=8+t,A.set([0,0,15,1,a>>>24&255,a>>>16&255,a>>>8&255,a&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255],0),l=0;l>>24&255,c>>>16&255,c>>>8&255,c&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255,f.isLeading<<2|f.dependsOn,f.isDependedOn<<6|f.hasRedundancy<<4|f.paddingValue<<1|f.isNonSync,f.degradPrio&240<<8,f.degradPrio&15,o>>>24&255,o>>>16&255,o>>>8&255,o&255],12+16*l);return O.box(O.types.trun,A)},O.initSegment=function(T){O.types||O.init();var n=O.moov(T),p=new Uint8Array(O.FTYP.byteLength+n.byteLength);return p.set(O.FTYP),p.set(n,O.FTYP.byteLength),p},O}();_.types=void 0,_.HDLR_TYPES=void 0,_.STTS=void 0,_.STSC=void 0,_.STCO=void 0,_.STSZ=void 0,_.VMHD=void 0,_.SMHD=void 0,_.STSD=void 0,_.FTYP=void 0,_.DINF=void 0,Q.default=_},"./src/remux/mp4-remuxer.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return o}),I.d(Q,"normalizePts",function(){return u});var k=I("./src/polyfills/number.ts"),_=I("./src/remux/aac-helper.ts"),O=I("./src/remux/mp4-generator.ts"),M=I("./src/events.ts"),T=I("./src/errors.ts"),n=I("./src/utils/logger.ts"),p=I("./src/types/loader.ts"),a=I("./src/utils/timescale-conversion.ts");function t(){return t=Object.assign||function(P){for(var C=1;C0?x:g.pts},s[0].pts);return h&&n.logger.debug("PTS rollover detected"),m},C.remux=function(s,h,m,x,g,y,U,N){var S,H,F,B,z,K,$=g,te=g,fe=s.pid>-1,Ae=h.pid>-1,ce=h.samples.length,ie=s.samples.length>0,ye=ce>1,le=(!fe||ie)&&(!Ae||ye)||this.ISGenerated||U;if(le){this.ISGenerated||(F=this.generateIS(s,h,g));var me=this.isVideoContiguous,se=-1;if(ye&&(se=E(h.samples),!me&&this.config.forceKeyFrameOnDiscontinuity))if(K=!0,se>0){n.logger.warn("[mp4-remuxer]: Dropped "+se+" out of "+ce+" video samples due to a missing keyframe");var ge=this.getVideoStartPts(h.samples);h.samples=h.samples.slice(se),h.dropped+=se,te+=(h.samples[0].pts-ge)/(h.timescale||9e4)}else se===-1&&(n.logger.warn("[mp4-remuxer]: No keyframe found out of "+ce+" video samples"),K=!1);if(this.ISGenerated){if(ie&&ye){var ae=this.getVideoStartPts(h.samples),pe=u(s.samples[0].pts,ae)-ae,Me=pe/h.inputTimeScale;$+=Math.max(0,Me),te+=Math.max(0,-Me)}if(ie){if(s.samplerate||(n.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),F=this.generateIS(s,h,g)),H=this.remuxAudio(s,$,this.isAudioContiguous,y,Ae||ye||N===p.PlaylistLevelType.AUDIO?te:void 0),ye){var xe=H?H.endPTS-H.startPTS:0;h.inputTimeScale||(n.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),F=this.generateIS(s,h,g)),S=this.remuxVideo(h,te,me,xe)}}else ye&&(S=this.remuxVideo(h,te,me,0));S&&(S.firstKeyFrame=se,S.independent=se!==-1)}}return this.ISGenerated&&(m.samples.length&&(z=this.remuxID3(m,g)),x.samples.length&&(B=this.remuxText(x,g))),{audio:H,video:S,initSegment:F,independent:K,text:B,id3:z}},C.generateIS=function(s,h,m){var x=s.samples,g=h.samples,y=this.typeSupported,U={},N=!Object(k.isFiniteNumber)(this._initPTS),S="audio/mp4",H,F,B;if(N&&(H=F=Infinity),s.config&&x.length&&(s.timescale=s.samplerate,s.isAAC||(y.mpeg?(S="audio/mpeg",s.codec=""):y.mp3&&(s.codec="mp3")),U.audio={id:"audio",container:S,codec:s.codec,initSegment:!s.isAAC&&y.mpeg?new Uint8Array(0):O.default.initSegment([s]),metadata:{channelCount:s.channelCount}},N&&(B=s.inputTimeScale,H=F=x[0].pts-Math.round(B*m))),h.sps&&h.pps&&g.length&&(h.timescale=h.inputTimeScale,U.video={id:"main",container:"video/mp4",codec:h.codec,initSegment:O.default.initSegment([h]),metadata:{width:h.width,height:h.height}},N)){B=h.inputTimeScale;var z=this.getVideoStartPts(g),K=Math.round(B*m);F=Math.min(F,u(g[0].dts,z)-K),H=Math.min(H,z-K)}if(Object.keys(U).length)return this.ISGenerated=!0,N&&(this._initPTS=H,this._initDTS=F),{tracks:U,initPTS:H,timescale:B}},C.remuxVideo=function(s,h,m,x){var g=s.inputTimeScale,y=s.samples,U=[],N=y.length,S=this._initPTS,H=this.nextAvcDts,F=8,B,z,K,$=Number.POSITIVE_INFINITY,te=Number.NEGATIVE_INFINITY,fe=0,Ae=!1;if(!m||H===null){var ce=h*g,ie=y[0].pts-u(y[0].dts,y[0].pts);H=ce-ie}for(var ye=0;yele.pts){var me=9e4*.2;fe=Math.max(Math.min(fe,le.pts-le.dts),-1*me)}le.dts0?ye-1:ye].dts&&(Ae=!0)}Ae&&y.sort(function(Ct,mt){var Je=Ct.dts-mt.dts,Qe=Ct.pts-mt.pts;return Je||Qe}),z=y[0].dts,K=y[y.length-1].dts;var se=Math.round((K-z)/(N-1));if(fe<0){if(fese,Ke=Me<-1;if(xe||Ke){xe?n.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(Me,!0)+" ms ("+Me+"dts) hole between fragments detected, filling it"):n.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(-Me,!0)+" ms ("+Me+"dts) overlapping between fragments detected"),z=H;var et=y[0].pts-Me;y[0].dts=z,y[0].pts=et,n.logger.log("Video: First PTS/DTS adjusted: "+Object(a.toMsFromMpegTsClock)(et,!0)+"/"+Object(a.toMsFromMpegTsClock)(z,!0)+", delta: "+Object(a.toMsFromMpegTsClock)(Me,!0)+" ms")}}f&&(z=Math.max(0,z));for(var he=0,Se=0,Ue=0;Ue0?Ve-1:Ve].dts;if(Le.stretchShortVideoTrack&&this.nextAudioPts!==null){var We=Math.floor(Le.maxBufferHole*g),Xe=(x?$+x*g:this.nextAudioPts)-Et.pts;Xe>We?(B=Xe-Pe,B<0&&(B=Pe),n.logger.log("[mp4-remuxer]: It is approximately "+Xe/90+" ms to the next segment; using duration "+B/90+" ms for the last video frame.")):B=Pe}else B=Pe}var gt=Math.round(Et.pts-Et.dts);U.push(new R(Et.key,B,ut,gt))}if(U.length&&c&&c<70){var Lt=U[0].flags;Lt.dependsOn=2,Lt.isNonSync=0}console.assert(B!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=H=K+B,this.isVideoContiguous=!0;var en=O.default.moof(s.sequenceNumber++,z,t({},s,{samples:U})),Zt="video",xt={data1:en,data2:jt,startPTS:$/g,endPTS:(te+B)/g,startDTS:z/g,endDTS:H/g,type:Zt,hasAudio:!1,hasVideo:!0,nb:U.length,dropped:s.dropped};return s.samples=[],s.dropped=0,console.assert(jt.length,"MDAT length must not be zero"),xt},C.remuxAudio=function(s,h,m,x,g){var y=s.inputTimeScale,U=s.samplerate?s.samplerate:y,N=y/U,S=s.isAAC?l:i,H=S*N,F=this._initPTS,B=!s.isAAC&&this.typeSupported.mpeg,z=[],K=s.samples,$=B?0:8,te=this.nextAudioPts||-1,fe=h*y;if(this.isAudioContiguous=m=m||K.length&&te>0&&(x&&Math.abs(fe-te)<9e3||Math.abs(u(K[0].pts-F,fe)-te)<20*H),K.forEach(function(He){He.pts=u(He.pts-F,fe)}),!m||te<0){if(K=K.filter(function(He){return He.pts>=0}),!K.length)return;g===0?te=0:x?te=Math.max(0,fe):te=K[0].pts}if(s.isAAC)for(var Ae=g!==void 0,ce=this.config.maxAudioFramesDrift,ie=0,ye=te;ie=ce*H&&ge0){Se+=$;try{he=new Uint8Array(Se)}catch(He){this.observer.emit(M.Events.ERROR,M.Events.ERROR,{type:T.ErrorTypes.MUX_ERROR,details:T.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Se,reason:"fail allocating audio mdat "+Se});return}if(!B){var jt=new DataView(he.buffer);jt.setUint32(0,Se),he.set(O.default.types.mdat,4)}}else return;he.set(Ot,$);var ze=Ot.byteLength;$+=ze,z.push(new R(!0,S,ze,0)),et=dt}var Ve=z.length;if(!Ve)return;var Et=z[z.length-1];this.nextAudioPts=te=et+N*Et.duration;var Rt=B?new Uint8Array(0):O.default.moof(s.sequenceNumber++,Ke/N,t({},s,{samples:z}));s.samples=[];var ut=Ke/y,vt=te/y,Ze="audio",ke={data1:Rt,data2:he,startPTS:ut,endPTS:vt,startDTS:ut,endDTS:vt,type:Ze,hasAudio:!0,hasVideo:!1,nb:Ve};return this.isAudioContiguous=!0,console.assert(he.length,"MDAT length must not be zero"),ke},C.remuxEmptyAudio=function(s,h,m,x){var g=s.inputTimeScale,y=s.samplerate?s.samplerate:g,U=g/y,N=this.nextAudioPts,S=(N!==null?N:x.startDTS*g)+this._initDTS,H=x.endDTS*g+this._initDTS,F=U*l,B=Math.ceil((H-S)/F),z=_.default.getSilentFrame(s.manifestCodec||s.codec,s.channelCount);if(n.logger.warn("[mp4-remuxer]: remux empty Audio"),!z){n.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var K=[],$=0;$4294967296;)P+=b;return P}function E(P){for(var C=0;C0?this.lastEndDTS=s:(M.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var h=!!P.audio,m=!!P.video,x="";h&&(x+="audio"),m&&(x+="video");var g={data1:R,startPTS:b,startDTS:b,endPTS:s,endDTS:s,type:x,hasAudio:h,hasVideo:m,nb:1,dropped:0};return E.audio=g.type==="audio"?g:void 0,E.video=g.type!=="audio"?g:void 0,E.text=d,E.id3=c,E.initSegment=w,E},a}(),n=function(t,A,l){return Object(_.getStartDTS)(t,A)-l};function p(a,t){var A=a==null?void 0:a.codec;return A&&A.length>4?A:A==="hvc1"?"hvc1.1.c.L120.90":A==="av01"?"av01.0.04M.08":A==="avc1"||t===O.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}Q.default=T},"./src/task-loop.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return k});var k=function(){function _(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var O=_.prototype;return O.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},O.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},O.onHandlerDestroyed=function(){},O.hasInterval=function(){return!!this._tickInterval},O.hasNextTick=function(){return!!this._tickTimer},O.setInterval=function(T){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,T),!0)},O.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},O.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},O.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},O.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},O.doTick=function(){},_}()},"./src/types/cmcd.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"CMCDVersion",function(){return k}),I.d(Q,"CMCDObjectType",function(){return _}),I.d(Q,"CMCDStreamingFormat",function(){return O}),I.d(Q,"CMCDStreamType",function(){return M});var k=1,_;(function(T){T.MANIFEST="m",T.AUDIO="a",T.VIDEO="v",T.MUXED="av",T.INIT="i",T.CAPTION="c",T.TIMED_TEXT="tt",T.KEY="k",T.OTHER="o"})(_||(_={}));var O;(function(T){T.DASH="d",T.HLS="h",T.SMOOTH="s",T.OTHER="o"})(O||(O={}));var M;(function(T){T.VOD="v",T.LIVE="l"})(M||(M={}))},"./src/types/level.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"HlsSkip",function(){return O}),I.d(Q,"getSkipValue",function(){return M}),I.d(Q,"HlsUrlParameters",function(){return T}),I.d(Q,"Level",function(){return n});function k(p,a){for(var t=0;tNumber.MAX_SAFE_INTEGER?Infinity:a},T.hexadecimalInteger=function(p){if(this[p]){var a=(this[p]||"0x").slice(2);a=(a.length&1?"0":"")+a;for(var t=new Uint8Array(a.length/2),A=0;ANumber.MAX_SAFE_INTEGER?Infinity:a},T.decimalFloatingPoint=function(p){return parseFloat(this[p])},T.optionalFloat=function(p,a){var t=this[p];return t?parseFloat(t):a},T.enumeratedString=function(p){return this[p]},T.bool=function(p){return this[p]==="YES"},T.decimalResolution=function(p){var a=k.exec(this[p]);return a===null?void 0:{width:parseInt(a[1],10),height:parseInt(a[2],10)}},M.parseAttrList=function(p){var a,t={},A='"';for(_.lastIndex=0;(a=_.exec(p))!==null;){var l=a[2];l.indexOf(A)===0&&l.lastIndexOf(A)===l.length-1&&(l=l.slice(1,-1)),t[a[1]]=l}return t},M}()},"./src/utils/binary-search.ts":function(Z,Q,I){"use strict";I.r(Q);var k={search:function(O,M){for(var T=0,n=O.length-1,p=null,a=null;T<=n;){p=(T+n)/2|0,a=O[p];var t=M(a);if(t>0)T=p+1;else if(t<0)n=p-1;else return a}return null}};Q.default=k},"./src/utils/buffer-helper.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"BufferHelper",function(){return O});var k=I("./src/utils/logger.ts"),_={length:0,start:function(){return 0},end:function(){return 0}},O=function(){function M(){}return M.isBuffered=function(n,p){try{if(n){for(var a=M.getBuffered(n),t=0;t=a.start(t)&&p<=a.end(t))return!0}}catch(A){}return!1},M.bufferInfo=function(n,p,a){try{if(n){var t=M.getBuffered(n),A=[],l;for(l=0;li&&(t[l-1].end=n[A].end):t.push(n[A])}else t.push(n[A])}else t=n;for(var c=0,d,f=p,o=p,u=0;u=E&&p=m&&k.logger.log(this.time+" ["+m+"] "+x)},b}(),c=function(s){for(var h=[],m=0;mT&&(this.logger.log(l.DEBUG,"Too large cursor position "+this.pos),this.pos=T)},s.moveCursor=function(m){var x=this.pos+m;if(m>1)for(var g=this.pos+1;g=144&&this.backSpace();var x=O(m);if(this.pos>=T){this.logger.log(l.ERROR,"Cannot insert "+m.toString(16)+" ("+x+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(x,this.currPenState),this.moveCursor(1)},s.clearFromPos=function(m){var x;for(x=m;x0&&(m?g="["+x.join(" | ")+"]":g=x.join(` `)),g},s.getTextAndFormat=function(){return this.rows},b}(),E=function(){function b(h,m,x){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=h,this.outputFilter=m,this.mode=null,this.verbose=0,this.displayedMemory=new u(x),this.nonDisplayedMemory=new u(x),this.lastOutputScreen=new u(x),this.currRollUpRow=this.displayedMemory.rows[M-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=x}var s=b.prototype;return s.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[M-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},s.getHandler=function(){return this.outputFilter},s.setHandler=function(m){this.outputFilter=m},s.setPAC=function(m){this.writeScreen.setPAC(m)},s.setBkgData=function(m){this.writeScreen.setBkgData(m)},s.setMode=function(m){if(m===this.mode)return;this.mode=m,this.logger.log(l.INFO,"MODE="+m),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=m},s.insertChars=function(m){for(var x=0;x=46,x.italics)x.foreground="white";else{var g=Math.floor(m/2)-16,y=["white","green","blue","cyan","red","yellow","magenta"];x.foreground=y[g]}this.logger.log(l.INFO,"MIDROW: "+JSON.stringify(x)),this.writeScreen.setPen(x)},s.outputDataUpdate=function(m){m===void 0&&(m=!1);var x=this.logger.time;if(x===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=x:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,x,this.lastOutputScreen),m&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:x),this.lastOutputScreen.copy(this.displayedMemory))},s.cueSplitAtTime=function(m){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,m,this.displayedMemory),this.cueStartTime=m))},b}(),R=function(){function b(h,m,x){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var g=new i;this.channels=[null,new E(h,m,g),new E(h+1,x,g)],this.cmdHistory=C(),this.logger=g}var s=b.prototype;return s.getHandler=function(m){return this.channels[m].getHandler()},s.setHandler=function(m,x){this.channels[m].setHandler(x)},s.addData=function(m,x){var g,y,U,N=!1;this.logger.time=m;for(var S=0;S ("+c([y,U])+")"),g=this.parseCmd(y,U),g||(g=this.parseMidrow(y,U)),g||(g=this.parsePAC(y,U)),g||(g=this.parseBackgroundAttributes(y,U)),!g&&(N=this.parseChars(y,U),N)){var H=this.currentChannel;if(H&&H>0){var F=this.channels[H];F.insertChars(N)}else this.logger.log(l.WARNING,"No channel found yet. TEXT-MODE?")}!g&&!N&&this.logger.log(l.WARNING,"Couldn't parse cleaned data "+c([y,U])+" orig: "+c([x[S],x[S+1]]))}},s.parseCmd=function(m,x){var g=this.cmdHistory,y=(m===20||m===28||m===21||m===29)&&x>=32&&x<=47,U=(m===23||m===31)&&x>=33&&x<=35;if(!(y||U))return!1;if(P(m,x,g))return w(null,null,g),this.logger.log(l.DEBUG,"Repeated command ("+c([m,x])+") is dropped"),!0;var N=m===20||m===21||m===23?1:2,S=this.channels[N];return m===20||m===21||m===28||m===29?x===32?S.ccRCL():x===33?S.ccBS():x===34?S.ccAOF():x===35?S.ccAON():x===36?S.ccDER():x===37?S.ccRU(2):x===38?S.ccRU(3):x===39?S.ccRU(4):x===40?S.ccFON():x===41?S.ccRDC():x===42?S.ccTR():x===43?S.ccRTD():x===44?S.ccEDM():x===45?S.ccCR():x===46?S.ccENM():x===47&&S.ccEOC():S.ccTO(x-32),w(m,x,g),this.currentChannel=N,!0},s.parseMidrow=function(m,x){var g=0;if((m===17||m===25)&&x>=32&&x<=47){if(m===17?g=1:g=2,g!==this.currentChannel)return this.logger.log(l.ERROR,"Mismatch channel in midrow parsing"),!1;var y=this.channels[g];return y?(y.ccMIDROW(x),this.logger.log(l.DEBUG,"MIDROW ("+c([m,x])+")"),!0):!1}return!1},s.parsePAC=function(m,x){var g,y=this.cmdHistory,U=(m>=17&&m<=23||m>=25&&m<=31)&&x>=64&&x<=127,N=(m===16||m===24)&&x>=64&&x<=95;if(!(U||N))return!1;if(P(m,x,y))return w(null,null,y),!0;var S=m<=23?1:2;x>=64&&x<=95?g=S===1?n[m]:a[m]:g=S===1?p[m]:t[m];var H=this.channels[S];return H?(H.setPAC(this.interpretPAC(g,x)),w(m,x,y),this.currentChannel=S,!0):!1},s.interpretPAC=function(m,x){var g,y={color:null,italics:!1,indent:null,underline:!1,row:m};return x>95?g=x-96:g=x-64,y.underline=(g&1)===1,g<=13?y.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(g/2)]:g<=15?(y.italics=!0,y.color="white"):y.indent=Math.floor((g-16)/2)*4,y},s.parseChars=function(m,x){var g,y=null,U=null;if(m>=25?(g=2,U=m-8):(g=1,U=m),U>=17&&U<=19){var N;U===17?N=x+80:U===18?N=x+112:N=x+144,this.logger.log(l.INFO,"Special char '"+O(N)+"' in channel "+g),y=[N]}else m>=32&&m<=127&&(y=x===0?[m]:[m,x]);if(y){var S=c(y);this.logger.log(l.DEBUG,"Char codes = "+S.join(",")),w(m,x,this.cmdHistory)}return y},s.parseBackgroundAttributes=function(m,x){var g=(m===16||m===24)&&x>=32&&x<=47,y=(m===23||m===31)&&x>=45&&x<=47;if(!(g||y))return!1;var U,N={};m===16||m===24?(U=Math.floor((x-32)/2),N.background=A[U],x%2===1&&(N.background=N.background+"_semi")):x===45?N.background="transparent":(N.foreground="black",x===47&&(N.underline=!0));var S=m<=23?1:2,H=this.channels[S];return H.setBkgData(N),w(m,x,this.cmdHistory),!0},s.reset=function(){for(var m=0;m=16?f--:f++;var w=Object(k.fixLineBreaks)(o.trim()),P=Object(_.generateCueId)(a,t,w);(!p||!p.cues||!p.cues.getCueById(P))&&(c=new u(a,t,w),c.id=P,c.line=E+1,c.align="left",c.position=10+Math.min(80,Math.floor(f*8/32)*10),l.push(c))}return p&&l.length&&(l.sort(function(C,b){return C.line==="auto"||b.line==="auto"?0:C.line>8&&b.line>8?b.line-C.line:C.line-b.line}),l.forEach(function(C){return Object(O.addCueToTrack)(p,C)})),l}};Q.default=T},"./src/utils/discontinuities.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"findFirstFragWithCC",function(){return M}),I.d(Q,"shouldAlignOnDiscontinuities",function(){return T}),I.d(Q,"findDiscontinuousReferenceFrag",function(){return n}),I.d(Q,"adjustSlidingStart",function(){return a}),I.d(Q,"alignStream",function(){return t}),I.d(Q,"alignPDT",function(){return l}),I.d(Q,"alignFragmentByPDTDelta",function(){return i}),I.d(Q,"alignMediaPlaylistByPDT",function(){return c});var k=I("./src/polyfills/number.ts"),_=I("./src/utils/logger.ts"),O=I("./src/controller/level-helper.ts");function M(d,f){for(var o=null,u=0,E=d.length;uo.startCC||d&&d.cc=this.minWeight_},M.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},M.destroy=function(){},O}();Q.default=_},"./src/utils/ewma.ts":function(Z,Q,I){"use strict";I.r(Q);var k=function(){function _(M,T,n){T===void 0&&(T=0),n===void 0&&(n=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=M,this.alpha_=M?Math.exp(Math.log(.5)/M):0,this.estimate_=T,this.totalWeight_=n}var O=_.prototype;return O.sample=function(T,n){var p=Math.pow(this.alpha_,T);this.estimate_=n*(1-p)+p*this.estimate_,this.totalWeight_+=T},O.getTotalWeight=function(){return this.totalWeight_},O.getEstimate=function(){if(this.alpha_){var T=1-Math.pow(this.alpha_,this.totalWeight_);if(T)return this.estimate_/T}return this.estimate_},_}();Q.default=k},"./src/utils/fetch-loader.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"fetchSupported",function(){return i});var k=I("./src/polyfills/number.ts"),_=I("./src/loader/load-stats.ts"),O=I("./src/demux/chunk-cache.ts");function M(u,E){u.prototype=Object.create(E.prototype),u.prototype.constructor=u,t(u,E)}function T(u){var E=typeof Map=="function"?new Map:void 0;return T=function(w){if(w===null||!a(w))return w;if(typeof w!="function")throw new TypeError("Super expression must either be null or a function");if(typeof E!="undefined"){if(E.has(w))return E.get(w);E.set(w,P)}function P(){return n(w,arguments,A(this).constructor)}return P.prototype=Object.create(w.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),t(P,w)},T(u)}function n(u,E,R){return p()?n=Reflect.construct:n=function(P,C,b){var s=[null];s.push.apply(s,C);var h=Function.bind.apply(P,s),m=new h;return b&&t(m,b.prototype),m},n.apply(null,arguments)}function p(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(u){return!1}}function a(u){return Function.toString.call(u).indexOf("[native code]")!==-1}function t(u,E){return t=Object.setPrototypeOf||function(w,P){return w.__proto__=P,w},t(u,E)}function A(u){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},A(u)}function l(){return l=Object.assign||function(u){for(var E=1;E=b&&s(P,C,h.flush(),w)):s(P,C,U,w),g()}).catch(function(){return Promise.reject()})};return x()},u}();function d(u,E){var R={method:"GET",mode:"cors",credentials:"same-origin",signal:E,headers:new self.Headers(l({},u.headers))};return u.rangeEnd&&R.headers.set("Range","bytes="+u.rangeStart+"-"+String(u.rangeEnd-1)),R}function f(u,E){return new self.Request(u.url,E)}var o=function(u){M(E,u);function E(R,w,P){var C;return C=u.call(this,R)||this,C.code=void 0,C.details=void 0,C.code=w,C.details=P,C}return E}(T(Error));Q.default=c},"./src/utils/imsc1-ttml-parser.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"IMSC1_CODEC",function(){return a}),I.d(Q,"parseIMSC1",function(){return i});var k=I("./src/utils/mp4-tools.ts"),_=I("./src/utils/vttparser.ts"),O=I("./src/utils/vttcue.ts"),M=I("./src/demux/id3.ts"),T=I("./src/utils/timescale-conversion.ts"),n=I("./src/utils/webvtt-parser.ts");function p(){return p=Object.assign||function(b){for(var s=1;s"):k}function T(a){for(var t=arguments.length,A=new Array(t>1?t-1:0),l=1;l>24,E[R+1]=w>>16&255,E[R+2]=w>>8&255,E[R+3]=w&255}function t(E,R){var w=[];if(!R.length)return w;var P,C,b;"data"in E?(P=E.data,C=E.start,b=E.end):(P=E,C=0,b=P.byteLength);for(var s=C;s1?s+h:b;if(m===R[0])if(R.length===1)w.push({data:P,start:s+8,end:x});else{var g=t({data:P,start:s+8,end:x},R.slice(1));g.length&&M.apply(w,g)}s=x}return w}function A(E){var R=t(E,["moov"]),w=R[0],P=w?w.end:null,C=t(E,["sidx"]);if(!C||!C[0])return null;var b=[],s=C[0],h=s.data[0],m=h===0?8:16,x=p(s,m);m+=4;var g=0,y=0;h===0?m+=8:m+=16,m+=2;var U=s.end+y,N=n(s,m);m+=2;for(var S=0;S>>31;if(z===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var K=p(s,H);H+=4,b.push({referenceSize:B,subsegmentDuration:K,info:{duration:K/x,start:U,end:U+B-1}}),U+=B,H+=4,m=H}return{earliestPresentationTime:g,timescale:x,version:h,referencesCount:N,references:b,moovEndOffset:P}}function l(E){for(var R=[],w=t(E,["moov","trak"]),P=0;PT)&&(this.startTime=T),this.endTime=n,this.screen=p,this.timelineController.createCaptionsTrack(this.trackName)},O.reset=function(){this.cueRanges=[]},_}()},"./src/utils/texttrack-utils.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"sendAddTrackEvent",function(){return _}),I.d(Q,"addCueToTrack",function(){return O}),I.d(Q,"clearCurrentCues",function(){return M}),I.d(Q,"removeCuesInRange",function(){return T}),I.d(Q,"getCuesInRange",function(){return p});var k=I("./src/utils/logger.ts");function _(a,t){var A;try{A=new Event("addtrack")}catch(l){A=document.createEvent("Event"),A.initEvent("addtrack",!1,!1)}A.track=a,t.dispatchEvent(A)}function O(a,t){var A=a.mode;if(A==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(t.id))try{if(a.addCue(t),!a.cues.getCueById(t.id))throw new Error("addCue is failed for: "+t)}catch(i){k.logger.debug("[texttrack-utils]: "+i);var l=new self.TextTrackCue(t.startTime,t.endTime,t.text);l.id=t.id,a.addCue(l)}A==="disabled"&&(a.mode=A)}function M(a){var t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues)for(var A=a.cues.length;A--;)a.removeCue(a.cues[A]);t==="disabled"&&(a.mode=t)}function T(a,t,A){var l=a.mode;if(l==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0)for(var i=p(a.cues,t,A),c=0;ca[A].endTime)return-1;for(var l=0,i=A;l<=i;){var c=Math.floor((i+l)/2);if(ta[c].startTime&&l-1)for(var c=i,d=a.length;c=t&&f.endTime<=A)l.push(f);else if(f.startTime>A)return l}return l}},"./src/utils/time-ranges.ts":function(Z,Q,I){"use strict";I.r(Q);var k={toString:function(O){for(var M="",T=O.length,n=0;n1?t-1:0),l=1;l100)throw new Error("Position must be between 0 and 100.");b=g,this.hasBeenReset=!0}})),Object.defineProperty(l,"positionAlign",n({},i,{get:function(){return s},set:function(g){var y=T(g);if(!y)throw new SyntaxError("An invalid or illegal string was specified.");s=y,this.hasBeenReset=!0}})),Object.defineProperty(l,"size",n({},i,{get:function(){return h},set:function(g){if(g<0||g>100)throw new Error("Size must be between 0 and 100.");h=g,this.hasBeenReset=!0}})),Object.defineProperty(l,"align",n({},i,{get:function(){return m},set:function(g){var y=T(g);if(!y)throw new SyntaxError("An invalid or illegal string was specified.");m=y,this.hasBeenReset=!0}})),l.displayState=void 0}return p.prototype.getCueAsHTML=function(){var a=self.WebVTT;return a.convertCueToDOMTree(self,this.text)},p}()},"./src/utils/vttparser.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"parseTimeStamp",function(){return O}),I.d(Q,"fixLineBreaks",function(){return t}),I.d(Q,"VTTParser",function(){return A});var k=I("./src/utils/vttcue.ts"),_=function(){function l(){}var i=l.prototype;return i.decode=function(d,f){if(!d)return"";if(typeof d!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(d))},l}();function O(l){function i(d,f,o,u){return(d|0)*3600+(f|0)*60+(o|0)+parseFloat(u||0)}var c=l.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return c?parseFloat(c[2])>59?i(c[2],c[3],0,c[4]):i(c[1],c[2],c[3],c[4]):null}var M=function(){function l(){this.values=Object.create(null)}var i=l.prototype;return i.set=function(d,f){!this.get(d)&&f!==""&&(this.values[d]=f)},i.get=function(d,f,o){return o?this.has(d)?this.values[d]:f[o]:this.has(d)?this.values[d]:f},i.has=function(d){return d in this.values},i.alt=function(d,f,o){for(var u=0;u=0&&o<=100)return this.set(d,o),!0}return!1},l}();function T(l,i,c,d){var f=d?l.split(d):[l];for(var o in f){if(typeof f[o]!="string")continue;var u=f[o].split(c);if(u.length!==2)continue;var E=u[0],R=u[1];i(E,R)}}var n=new k.default(0,0,""),p=n.align==="middle"?"middle":"center";function a(l,i,c){var d=l;function f(){var E=O(l);if(E===null)throw new Error("Malformed timestamp: "+d);return l=l.replace(/^[^\sa-zA-Z-]+/,""),E}function o(E,R){var w=new M;T(E,function(b,s){var h;switch(b){case"region":for(var m=c.length-1;m>=0;m--)if(c[m].id===s){w.set(b,c[m].region);break}break;case"vertical":w.alt(b,s,["rl","lr"]);break;case"line":h=s.split(","),w.integer(b,h[0]),w.percent(b,h[0])&&w.set("snapToLines",!1),w.alt(b,h[0],["auto"]),h.length===2&&w.alt("lineAlign",h[1],["start",p,"end"]);break;case"position":h=s.split(","),w.percent(b,h[0]),h.length===2&&w.alt("positionAlign",h[1],["start",p,"end","line-left","line-right","auto"]);break;case"size":w.percent(b,s);break;case"align":w.alt(b,s,["start",p,"end","left","right"]);break}},/:/,/\s/),R.region=w.get("region",null),R.vertical=w.get("vertical","");var P=w.get("line","auto");P==="auto"&&n.line===-1&&(P=-1),R.line=P,R.lineAlign=w.get("lineAlign","start"),R.snapToLines=w.get("snapToLines",!0),R.size=w.get("size",100),R.align=w.get("align",p);var C=w.get("position","auto");C==="auto"&&n.position===50&&(C=R.align==="start"||R.align==="left"?0:R.align==="end"||R.align==="right"?100:50),R.position=C}function u(){l=l.replace(/^\s+/,"")}if(u(),i.startTime=f(),u(),l.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+d);l=l.substr(3),u(),i.endTime=f(),u(),o(l,i)}function t(l){return l.replace(//gi,` `)}var A=function(){function l(){this.state="INITIAL",this.buffer="",this.decoder=new _,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var i=l.prototype;return i.parse=function(d){var f=this;d&&(f.buffer+=f.decoder.decode(d,{stream:!0}));function o(){var C=f.buffer,b=0;for(C=t(C);b")===-1){f.cue.id=E;continue}case"CUE":if(!f.cue){f.state="BADCUE";continue}try{a(E,f.cue,f.regionList)}catch(C){f.cue=null,f.state="BADCUE";continue}f.state="CUETEXT";continue;case"CUETEXT":{var P=E.indexOf("-->")!==-1;if(!E||P&&(w=!0)){f.oncue&&f.cue&&f.oncue(f.cue),f.cue=null,f.state="ID";continue}if(f.cue===null)continue;f.cue.text&&(f.cue.text+=` `),f.cue.text+=E}continue;case"BADCUE":E||(f.state="ID")}}}catch(C){f.state==="CUETEXT"&&f.cue&&f.oncue&&f.oncue(f.cue),f.cue=null,f.state=f.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},i.flush=function(){var d=this;try{if((d.cue||d.state==="HEADER")&&(d.buffer+=` `,d.parse()),d.state==="INITIAL"||d.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(f){d.onparsingerror&&d.onparsingerror(f)}return d.onflush&&d.onflush(),this},l}()},"./src/utils/webvtt-parser.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"generateCueId",function(){return A}),I.d(Q,"parseWebVTT",function(){return i});var k=I("./src/polyfills/number.ts"),_=I("./src/utils/vttparser.ts"),O=I("./src/demux/id3.ts"),M=I("./src/utils/timescale-conversion.ts"),T=I("./src/remux/mp4-remuxer.ts"),n=/\r\n|\n\r|\n|\r/g,p=function(d,f,o){return o===void 0&&(o=0),d.substr(o,f.length)===f},a=function(d){var f=parseInt(d.substr(-3)),o=parseInt(d.substr(-6,2)),u=parseInt(d.substr(-9,2)),E=d.length>9?parseInt(d.substr(0,d.indexOf(":"))):0;if(!Object(k.isFiniteNumber)(f)||!Object(k.isFiniteNumber)(o)||!Object(k.isFiniteNumber)(u)||!Object(k.isFiniteNumber)(E))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+d);return f+=1e3*o,f+=60*1e3*u,f+=60*60*1e3*E,f},t=function(d){for(var f=5381,o=d.length;o;)f=f*33^d.charCodeAt(--o);return(f>>>0).toString()};function A(c,d,f){return t(c.toString())+t(d.toString())+t(f)}var l=function(d,f,o){var u=d[f],E=d[u.prevCC];if(!E||!E.new&&u.new){d.ccOffset=d.presentationOffset=u.start,u.new=!1;return}for(;(R=E)!==null&&R!==void 0&&R.new;){var R;d.ccOffset+=u.start-E.start,u.new=!1,u=E,E=d[u.prevCC]}d.presentationOffset=o};function i(c,d,f,o,u,E,R,w){var P=new _.VTTParser,C=Object(O.utf8ArrayToStr)(new Uint8Array(c)).trim().replace(n,` `).split(` `),b=[],s=Object(M.toMpegTsClockFromTimescale)(d,f),h="00:00.000",m=0,x=0,g,y=!0,U=!1;P.oncue=function(N){var S=o[u],H=o.ccOffset,F=(m-s)/9e4;if(S!=null&&S.new&&(x!==void 0?H=o.ccOffset=S.start:l(o,u,F)),F&&(H=F-o.presentationOffset),U){var B=N.endTime-N.startTime,z=Object(T.normalizePts)((N.startTime+H-x)*9e4,E*9e4)/9e4;N.startTime=z,N.endTime=z+B}var K=N.text.trim();N.text=decodeURIComponent(encodeURIComponent(K)),N.id||(N.id=A(N.startTime,N.endTime,K)),N.endTime>0&&b.push(N)},P.onparsingerror=function(N){g=N},P.onflush=function(){if(g){w(g);return}R(b)},C.forEach(function(N){if(y)if(p(N,"X-TIMESTAMP-MAP=")){y=!1,U=!0,N.substr(16).split(",").forEach(function(S){p(S,"LOCAL:")?h=S.substr(6):p(S,"MPEGTS:")&&(m=parseInt(S.substr(7)))});try{x=a(h)/1e3}catch(S){U=!1,g=S}return}else N===""&&(y=!1);P.parse(N+` `)}),P.flush()}},"./src/utils/xhr-loader.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/utils/logger.ts"),_=I("./src/loader/load-stats.ts"),O=/^age:\s*[\d.]+\s*$/m,M=function(){function T(p){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=p?p.xhrSetup:null,this.stats=new _.LoadStats,this.retryDelay=0}var n=T.prototype;return n.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},n.abortInternal=function(){var a=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),a&&(a.onreadystatechange=null,a.onprogress=null,a.readyState!==4&&(this.stats.aborted=!0,a.abort()))},n.abort=function(){var a;this.abortInternal(),(a=this.callbacks)!==null&&a!==void 0&&a.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},n.load=function(a,t,A){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=a,this.config=t,this.callbacks=A,this.retryDelay=t.retryDelay,this.loadInternal()},n.loadInternal=function(){var a=this.config,t=this.context;if(!a)return;var A=this.loader=new self.XMLHttpRequest,l=this.stats;l.loading.first=0,l.loaded=0;var i=this.xhrSetup;try{if(i)try{i(A,t.url)}catch(f){A.open("GET",t.url,!0),i(A,t.url)}A.readyState||A.open("GET",t.url,!0);var c=this.context.headers;if(c)for(var d in c)A.setRequestHeader(d,c[d])}catch(f){this.callbacks.onError({code:A.status,text:f.message},t,A);return}t.rangeEnd&&A.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),A.onreadystatechange=this.readystatechange.bind(this),A.onprogress=this.loadprogress.bind(this),A.responseType=t.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout),A.send()},n.readystatechange=function(){var a=this.context,t=this.loader,A=this.stats;if(!a||!t)return;var l=t.readyState,i=this.config;if(A.aborted)return;if(l>=2)if(self.clearTimeout(this.requestTimeout),A.loading.first===0&&(A.loading.first=Math.max(self.performance.now(),A.loading.start)),l===4){t.onreadystatechange=null,t.onprogress=null;var c=t.status;if(c>=200&&c<300){A.loading.end=Math.max(self.performance.now(),A.loading.first);var d,f;if(a.responseType==="arraybuffer"?(d=t.response,f=d.byteLength):(d=t.responseText,f=d.length),A.loaded=A.total=f,!this.callbacks)return;var o=this.callbacks.onProgress;if(o&&o(A,a,d,t),!this.callbacks)return;var u={url:t.responseURL,data:d};this.callbacks.onSuccess(u,A,a,t)}else A.retry>=i.maxRetry||c>=400&&c<499?(k.logger.error(c+" while loading "+a.url),this.callbacks.onError({code:c,text:t.statusText},a,t)):(k.logger.warn(c+" while loading "+a.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,i.maxRetryDelay),A.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.timeout)},n.loadtimeout=function(){k.logger.warn("timeout while loading "+this.context.url);var a=this.callbacks;a&&(this.abortInternal(),a.onTimeout(this.stats,this.context,this.loader))},n.loadprogress=function(a){var t=this.stats;t.loaded=a.loaded,a.lengthComputable&&(t.total=a.total)},n.getCacheAge=function(){var a=null;if(this.loader&&O.test(this.loader.getAllResponseHeaders())){var t=this.loader.getResponseHeader("age");a=t?parseFloat(t):null}return a},T}();Q.default=M}}).default})},vHTk:function(Be,ee,v){Be.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(Be,ee,v){var Z=v("SrGk"),Q=v("bYtY");function I(O,M){Z.call(this,O,M,["filter"],"__filter_in_use__","_shadowDom")}Q.inherits(I,Z),I.prototype.addWithoutUpdate=function(O,M){if(M&&k(M.style)){var T;if(M._shadowDom){T=M._shadowDom;var n=this.getDefs(!0);n.contains(M._shadowDom)||this.addDom(T)}else T=this.add(M);this.markUsed(M);var p=T.getAttribute("id");O.style.filter="url(#"+p+")"}},I.prototype.add=function(O){var M=this.createElement("filter");return O._shadowDomId=O._shadowDomId||this.nextId++,M.setAttribute("id","zr"+this._zrId+"-shadow-"+O._shadowDomId),this.updateDom(O,M),this.addDom(M),M},I.prototype.update=function(O,M){var T=M.style;if(k(T)){var n=this;Z.prototype.update.call(this,M,function(){n.updateDom(M,M._shadowDom)})}else this.remove(O,M)},I.prototype.remove=function(O,M){M._shadowDomId!=null&&(this.removeDom(O),O.style.filter="")},I.prototype.updateDom=function(O,M){var T=M.getElementsByTagName("feDropShadow");T.length===0?T=this.createElement("feDropShadow"):T=T[0];var n=O.style,p=O.scale&&O.scale[0]||1,a=O.scale&&O.scale[1]||1,t,A,l,i;if(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)t=n.shadowOffsetX||0,A=n.shadowOffsetY||0,l=n.shadowBlur,i=n.shadowColor;else if(n.textShadowBlur)t=n.textShadowOffsetX||0,A=n.textShadowOffsetY||0,l=n.textShadowBlur,i=n.textShadowColor;else{this.removeDom(M,n);return}T.setAttribute("dx",t/p),T.setAttribute("dy",A/a),T.setAttribute("flood-color",i);var c=l/2/p,d=l/2/a,f=c+" "+d;T.setAttribute("stdDeviation",f),M.setAttribute("x","-100%"),M.setAttribute("y","-100%"),M.setAttribute("width",Math.ceil(l/2*200)+"%"),M.setAttribute("height",Math.ceil(l/2*200)+"%"),M.appendChild(T),O._shadowDom=M},I.prototype.markUsed=function(O){O._shadowDom&&Z.prototype.markUsed.call(this,O._shadowDom)};function k(O){return O&&(O.shadowBlur||O.shadowOffsetX||O.shadowOffsetY||O.textShadowBlur||O.textShadowOffsetX||O.textShadowOffsetY)}var _=I;Be.exports=_},vUf6:function(Be,ee,v){Be.exports=v.p+"static/xxtj.38a4bc0a.svg"},vWvF:function(Be,ee,v){var Z=v("Bq2U"),Q=v("SUKs"),I=v("bYtY"),k=I.isString,_=I.isFunction,O=I.isObject,M=I.isArrayLike,T=I.indexOf,n=function(){this.animators=[]};n.prototype={constructor:n,animate:function(l,i){var c,d=!1,f=this,o=this.__zr;if(l){var u=l.split("."),E=f;d=u[0]==="shape";for(var R=0,w=u.length;R0&&l.animate(i,!1).when(f==null?500:f,E).delay(o||0)}function t(l,i,c,d){if(!i)l.attr(c,d);else{var f={};f[i]={},f[i][c]=d,l.attr(f)}}var A=n;Be.exports=A},vef1:function(Be,ee,v){Be.exports={upload:"upload___3GNI5"}},vkP9:function(Be,ee,v){"use strict";var Z=v("+L6B"),Q=v("2/Rp"),I=v("5NDa"),k=v("5rEg"),_=v("y8nQ"),O=v("Vl3Y"),M=v("tJVT"),T=v("q1tI"),n=v.n(T),p=v("a+yL"),a=v.n(p),t=function(l){var i=l.value,c=l.onChange,d=O.a.useForm(),f=Object(M.a)(d,1),o=f[0];Object(T.useEffect)(function(){i&&o.setFieldsValue(i)},i);var u=function(R){c(R)};return n.a.createElement("div",{className:a.a.search},n.a.createElement(O.a,{className:a.a.formWrap,colon:!1,form:o,size:"large",layout:"inline",onFinish:u},n.a.createElement(O.a.Item,{label:"\u5B9E\u8BAD\u4FE1\u606F",name:"keyword",initialValue:""},n.a.createElement(k.a,{style:{width:280,height:40}})),n.a.createElement(O.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"schools",initialValue:"",style:{margin:"0 40px"}},n.a.createElement(k.a,{style:{width:280,height:40}})),n.a.createElement(O.a.Item,{label:"\u521B\u5EFA\u8005",name:"creator",initialValue:""},n.a.createElement(k.a,{style:{width:200,height:40}})),n.a.createElement(Q.a,{className:a.a.btn,type:"primary",htmlType:"submit"},"\u641C\u7D22")))};ee.a=t},w8Aa:function(Be,ee,v){Be.exports={img:"img___3e4yQ"}},wCXF:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return Ot});var Z=v("rePB"),Q=v("VTBJ"),I=v("KQm4"),k=v("U8pU"),_=v("ODXe"),O=v("q1tI"),M=v("TSYQ"),T=v.n(M),n=v("Gytx"),p=v.n(n),a=v("Kwbf"),t=v("t23M"),A=v("qx4F"),l=v("6eGT"),i=v("IBYe"),c=v("Ff2n"),d=v("c+Xe"),f=v("fyJ8"),o=v("biw7");function u(ze,Ve,Et,Rt,ut){var vt=Et[ze]||{},Ze=Et[Ve]||{},ke,He;vt.fixed==="left"?ke=Rt.left[ze]:Ze.fixed==="right"&&(He=Rt.right[Ve]);var we=!1,Le=!1,Pe=!1,We=!1,Xe=Et[Ve+1],gt=Et[ze-1];if(ut==="rtl"){if(ke!==void 0){var Lt=gt&>.fixed==="left";We=!Lt}else if(He!==void 0){var en=Xe&&Xe.fixed==="right";Pe=!en}}else if(ke!==void 0){var Zt=Xe&&Xe.fixed==="left";we=!Zt}else if(He!==void 0){var xt=gt&>.fixed==="right";Le=!xt}return{fixLeft:ke,fixRight:He,lastFixLeft:we,firstFixRight:Le,lastFixRight:Pe,firstFixLeft:We,isSticky:Rt.isSticky}}var E=v("sR1s");function R(ze){var Ve=ze.cells,Et=ze.stickyOffsets,Rt=ze.flattenColumns,ut=ze.rowComponent,vt=ze.cellComponent,Ze=ze.onHeaderRow,ke=ze.index,He=O.useContext(o.a),we=He.prefixCls,Le=He.direction,Pe;Ze&&(Pe=Ze(Ve.map(function(Xe){return Xe.column}),ke));var We=Object(E.a)(Ve.map(function(Xe){return Xe.column}));return O.createElement(ut,Object.assign({},Pe),Ve.map(function(Xe,gt){var Lt=Xe.column,en=u(Xe.colStart,Xe.colEnd,Rt,Et,Le),Zt;return Lt&&Lt.onHeaderCell&&(Zt=Xe.column.onHeaderCell(Lt)),O.createElement(f.a,Object.assign({},Xe,{ellipsis:Lt.ellipsis,align:Lt.align,component:vt,prefixCls:we,key:We[gt]},en,{additionalProps:Zt,rowType:"header"}))}))}R.displayName="HeaderRow";var w=R;function P(ze){var Ve=[];function Et(Ze,ke){var He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ve[He]=Ve[He]||[];var we=ke,Le=Ze.filter(Boolean).map(function(Pe){var We={key:Pe.key,className:Pe.className||"",children:Pe.title,column:Pe,colStart:we},Xe=1,gt=Pe.children;return gt&>.length>0&&(Xe=Et(gt,we,He+1).reduce(function(Lt,en){return Lt+en},0),We.hasSubColumns=!0),"colSpan"in Pe&&(Xe=Pe.colSpan),"rowSpan"in Pe&&(We.rowSpan=Pe.rowSpan),We.colSpan=Xe,We.colEnd=We.colStart+Xe-1,Ve[He].push(We),we+=Xe,Xe});return Le}Et(ze,0);for(var Rt=Ve.length,ut=function(ke){Ve[ke].forEach(function(He){!("rowSpan"in He)&&!He.hasSubColumns&&(He.rowSpan=Rt-ke)})},vt=0;vt=0;ke-=1){var He=Ve[ke],we=Et&&Et[ke],Le=we&&we[s.a];(He||Le||Ze)&&(ut.unshift(O.createElement("col",Object.assign({key:ke,style:{width:He,minWidth:He}},Le))),Ze=!0)}return O.createElement("colgroup",null,ut)}var m=h;function x(ze,Ve){return Object(O.useMemo)(function(){for(var Et=[],Rt=0;Rt1?ne-1:0),oe=1;oe=Pe&&(mn=Pe-We),Ze({scrollLeft:mn/Pe*(Le+2)}),xt.current.x=_t.pageX},bt=function(){var _t=Object(he.b)(vt.current).top,Gt=_t+vt.current.offsetHeight,kt=document.documentElement.scrollTop+window.innerHeight;Gt-Object(A.a)()<=kt||_t>=kt-ke?Zt(function(fn){return Object(Q.a)(Object(Q.a)({},fn),{},{isHiddenScrollBar:!0})}):Zt(function(fn){return Object(Q.a)(Object(Q.a)({},fn),{},{isHiddenScrollBar:!1})})},Dt=function(_t){Zt(function(Gt){return Object(Q.a)(Object(Q.a)({},Gt),{},{scrollLeft:_t/Le*Pe||0})})};return O.useImperativeHandle(Et,function(){return{setScrollLeft:Dt}}),O.useEffect(function(){var Qt=Object(et.a)(document.body,"mouseup",Oe,!1),_t=Object(et.a)(document.body,"mousemove",St,!1);return bt(),function(){Qt.remove(),_t.remove()}},[We,Je]),O.useEffect(function(){var Qt=Object(et.a)(window,"scroll",bt,!1),_t=Object(et.a)(window,"resize",bt,!1);return function(){Qt.remove(),_t.remove()}},[]),O.useEffect(function(){en.isHiddenScrollBar||Zt(function(Qt){var _t,Gt;return Object(Q.a)(Object(Q.a)({},Qt),{},{scrollLeft:vt.current.scrollLeft/((_t=vt.current)===null||_t===void 0?void 0:_t.scrollWidth)*((Gt=vt.current)===null||Gt===void 0?void 0:Gt.clientWidth)})})},[en.isHiddenScrollBar]),Le<=Pe||!We||en.isHiddenScrollBar?null:O.createElement("div",{style:{height:Object(A.a)(),width:Pe,bottom:ke},className:"".concat(we,"-sticky-scroll")},O.createElement("div",{onMouseDown:je,ref:Xe,className:T()("".concat(we,"-sticky-scroll-bar"),Object(Z.a)({},"".concat(we,"-sticky-scroll-bar-active"),Je)),style:{width:"".concat(We,"px"),transform:"translate3d(".concat(en.scrollLeft,"px, 0, 0)")}}))},Ue=O.forwardRef(Se);function Ne(ze,Ve){return O.useMemo(function(){var Et=!!ze;return{isSticky:Et,stickyClassName:Et?"".concat(Ve,"-sticky-header"):"",offsetHeader:Object(k.a)(ze)==="object"&&ze.offsetHeader||0,offsetScroll:Object(k.a)(ze)==="object"&&ze.offsetScroll||0}},[ze,Ve])}var ct=[],ft={},Ot="rc-table-internal-hook",dt=O.memo(function(ze){var Ve=ze.children;return Ve},function(ze,Ve){return p()(ze.props,Ve.props)?ze.pingLeft!==Ve.pingLeft||ze.pingRight!==Ve.pingRight:!1});function Ut(ze){var Ve,Et=ze.prefixCls,Rt=ze.className,ut=ze.rowClassName,vt=ze.style,Ze=ze.data,ke=ze.rowKey,He=ze.scroll,we=ze.tableLayout,Le=ze.direction,Pe=ze.title,We=ze.footer,Xe=ze.summary,gt=ze.id,Lt=ze.showHeader,en=ze.components,Zt=ze.emptyText,xt=ze.onRow,Ct=ze.onHeaderRow,mt=ze.internalHooks,Je=ze.transformColumns,Qe=ze.internalRefs,Oe=ze.sticky,je=Ze||ct,St=!!je.length,bt=O.useState(0),Dt=Object(_.a)(bt,2),Qt=Dt[0],_t=Dt[1];O.useEffect(function(){_t(Object(A.a)())});var Gt=O.useMemo(function(){return Object(E.c)(en,{})},[en]),kt=O.useCallback(function(ti,Sa){return Object(E.b)(Gt,ti)||Sa},[Gt]),fn=O.useMemo(function(){return typeof ke=="function"?ke:function(ti){var Sa=ti&&ti[ke];return Sa}},[ke]),mn=Object(s.c)(ze),Tr=mn.expandIcon,Mr=mn.expandedRowKeys,kr=mn.defaultExpandedRowKeys,Un=mn.defaultExpandAllRows,Ra=mn.expandedRowRender,Xr=mn.onExpand,aa=mn.onExpandedRowsChange,Kr=mn.expandRowByClick,_a=mn.rowExpandable,di=mn.expandIconColumnIndex,Ei=mn.expandedRowClassName,_e=mn.childrenColumnName,Ie=mn.indentSize,Ye=Tr||xe,yt=_e||"children",Xt=O.useMemo(function(){return Ra?"row":ze.expandable&&mt===Ot&&ze.expandable.__PARENT_RENDER_ICON__||je.some(function(ti){return ti&&Object(k.a)(ti)==="object"&&ti[yt]})?"nest":!1},[!!Ra,je]),sn=O.useState(function(){return kr||(Un?Ke(je,fn,yt):[])}),re=Object(_.a)(sn,2),W=re[0],V=re[1],ne=O.useMemo(function(){return new Set(Mr||W||[])},[Mr,W]),ve=O.useCallback(function(ti){var Sa=fn(ti,je.indexOf(ti)),Ia,Eo=ne.has(Sa);Eo?(ne.delete(Sa),Ia=Object(I.a)(ne)):Ia=[].concat(Object(I.a)(ne),[Sa]),V(Ia),Xr&&Xr(!Eo,ti),aa&&aa(Ia)},[fn,ne,je,Xr,aa]),oe=O.useState(0),tt=Object(_.a)(oe,2),Kt=tt[0],dn=tt[1],Cn=Object(ce.b)(Object(Q.a)(Object(Q.a)(Object(Q.a)({},ze),mn),{},{expandable:!!Ra,expandedKeys:ne,getRowKey:fn,onTriggerExpand:ve,expandIcon:Ye,expandIconColumnIndex:di,direction:Le}),mt===Ot?Je:null),Jt=Object(_.a)(Cn,2),Vn=Jt[0],Xn=Jt[1],lr=O.useMemo(function(){return{columns:Vn,flattenColumns:Xn}},[Vn,Xn]),Rr=O.useRef(),qr=O.useRef(),zr=O.useRef(),Ca=O.useState(!1),Dr=Object(_.a)(Ca,2),ya=Dr[0],ka=Dr[1],fi=O.useState(!1),Ka=Object(_.a)(fi,2),qa=Ka[0],Si=Ka[1],pi=le(new Map),ui=Object(_.a)(pi,2),mi=ui[0],_i=ui[1],ai=Object(E.a)(Xn),Hi=ai.map(function(ti){return mi.get(ti)}),Yi=O.useMemo(function(){return Hi},[Hi.join("_")]),$r=ge(Yi,Xn.length,Le),ua=He&&Object(E.d)(He.y),Pr=He&&Object(E.d)(He.x),ca=Pr&&Xn.some(function(ti){var Sa=ti.fixed;return Sa}),Jr=O.useRef(),ri=Ne(Oe,Et),pa=ri.isSticky,mo=ri.offsetHeader,Di=ri.offsetScroll,ci=ri.stickyClassName,Wo,Mo,ii;ua&&(Mo={overflowY:"scroll",maxHeight:He.y}),Pr&&(Wo={overflowX:"auto"},ua||(Mo={overflowY:"hidden"}),ii={width:He.x===!0?"auto":He.x,minWidth:"100%"});var go=O.useCallback(function(ti,Sa){_i(function(Ia){var Eo=new Map(Ia);return Eo.set(ti,Sa),Eo})},[]),no=me(null),hs=Object(_.a)(no,2),xo=hs[0],Cs=hs[1];function ws(ti,Sa){if(!Sa)return;typeof Sa=="function"?Sa(ti):Sa.scrollLeft!==ti&&(Sa.scrollLeft=ti)}var ho=function(Sa){var Ia=Sa.currentTarget,Eo=Sa.scrollLeft,xs=typeof Eo=="number"?Eo:Ia.scrollLeft,Ts=Ia||ft;if(!Cs()||Cs()===Ts){var Xs;xo(Ts),ws(xs,qr.current),ws(xs,zr.current),ws(xs,(Xs=Jr.current)===null||Xs===void 0?void 0:Xs.setScrollLeft)}if(Ia){var Ys=Ia.scrollWidth,il=Ia.clientWidth;ka(xs>0),Si(xs * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License */(function(Z,Q){Be.exports=Q()})(this,function(){"use strict";/*! ***************************************************************************** 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 Z=function(X,G){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,Y){J.__proto__=Y}||function(J,Y){for(var de in Y)Object.prototype.hasOwnProperty.call(Y,de)&&(J[de]=Y[de])},Z(X,G)};function Q(X,G){if(typeof G!="function"&&G!==null)throw new TypeError("Class extends value "+String(G)+" is not a constructor or null");Z(X,G);function J(){this.constructor=X}X.prototype=G===null?Object.create(G):(J.prototype=G.prototype,new J)}var I=function(){return I=Object.assign||function(G){for(var J,Y=1,de=arguments.length;Y0&&Ce[Ce.length-1])&&(It[0]===6||It[0]===2)){J=0;continue}if(It[0]===3&&(!Ce||It[1]>Ce[0]&&It[1]=55296&&de<=56319&&J>10)+55296,Fe%1024+56320)),(de+1===J||Y.length>16384)&&(Ce+=String.fromCharCode.apply(String,Y),Y.length=0)}return Ce},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),l=0;l>4,Ft[de++]=(Fe&15)<<4|at>>2,Ft[de++]=(at&3)<<6|rt&63;return It},o=function(X){for(var G=X.length,J=[],Y=0;Y>E,b=1<>E,m=C+h,x=m,g=2048>>6,y=x+g,U=65536>>R,N=1<=0){if(G<55296||G>56319&&G<=65535)return J=this.index[G>>E],J=(J<>E)],J=(J<>R),J=this.index[J],J+=G>>E&S,J=this.index[J],J=(J<Ae?(de.push(!0),at-=Ae):de.push(!1),["normal","auto","loose"].indexOf(G)!==-1&&[8208,8211,12316,12448].indexOf(Ce)!==-1)return Y.push(Fe),J.push(Se);if(at===le||at===Me){if(Fe===0)return Y.push(Fe),J.push(vt);var rt=J[Fe-1];return Qt.indexOf(rt)===-1?(Y.push(Y[Fe-1]),J.push(rt)):(Y.push(Fe),J.push(vt))}if(Y.push(Fe),at===Ze)return J.push(G==="strict"?Ot:We);if(at===Zt)return J.push(vt);if(at===ut)return J.push(vt);if(at===xt)return Ce>=131072&&Ce<=196605||Ce>=196608&&Ce<=262141?J.push(We):J.push(vt);J.push(at)}),[Y,J,de]},fn=function(X,G,J,Y){var de=Y[J];if(Array.isArray(X)?X.indexOf(de)!==-1:X===de)for(var Ce=J;Ce<=Y.length;){Ce++;var Fe=Y[Ce];if(Fe===G)return!0;if(Fe!==pe)break}if(de===pe)for(var Ce=J;Ce>0;){Ce--;var at=Y[Ce];if(Array.isArray(X)?X.indexOf(at)!==-1:X===at)for(var rt=J;rt<=Y.length;){rt++;var Fe=Y[rt];if(Fe===G)return!0;if(Fe!==pe)break}if(at!==pe)break}return!1},mn=function(X,G){for(var J=X;J>=0;){var Y=G[J];if(Y===pe)J--;else return Y}return 0},Tr=function(X,G,J,Y,de){if(J[Y]===0)return Je;var Ce=Y-1;if(Array.isArray(de)&&de[Ce]===!0)return Je;var Fe=Ce-1,at=Ce+1,rt=G[Ce],It=Fe>=0?G[Fe]:0,Ft=G[at];if(rt===ie&&Ft===ye)return Je;if(St.indexOf(rt)!==-1)return mt;if(St.indexOf(Ft)!==-1)return Je;if(bt.indexOf(Ft)!==-1)return Je;if(mn(Ce,G)===ge)return Qe;if(Oe.get(X[Ce])===Me)return Je;if((rt===ke||rt===He)&&Oe.get(X[at])===Me)return Je;if(rt===se||Ft===se)return Je;if(rt===ae)return Je;if([pe,Ke,he].indexOf(rt)===-1&&Ft===ae)return Je;if([Ue,Ne,ct,jt,Rt].indexOf(Ft)!==-1)return Je;if(mn(Ce,G)===dt)return Je;if(fn(Ut,dt,Ce,G))return Je;if(fn([Ue,Ne],Ot,Ce,G))return Je;if(fn(xe,xe,Ce,G))return Je;if(rt===pe)return Qe;if(rt===Ut||Ft===Ut)return Je;if(Ft===Se||rt===Se)return Qe;if([Ke,he,Ot].indexOf(Ft)!==-1||rt===et)return Je;if(It===Pe&&Gt.indexOf(rt)!==-1)return Je;if(rt===Rt&&Ft===Pe)return Je;if(Ft===ft)return Je;if(je.indexOf(Ft)!==-1&&rt===ze||je.indexOf(rt)!==-1&&Ft===ze)return Je;if(rt===Et&&[We,ke,He].indexOf(Ft)!==-1||[We,ke,He].indexOf(rt)!==-1&&Ft===Ve)return Je;if(je.indexOf(rt)!==-1&&Dt.indexOf(Ft)!==-1||Dt.indexOf(rt)!==-1&&je.indexOf(Ft)!==-1)return Je;if([Et,Ve].indexOf(rt)!==-1&&(Ft===ze||[dt,he].indexOf(Ft)!==-1&&G[at+1]===ze)||[dt,he].indexOf(rt)!==-1&&Ft===ze||rt===ze&&[ze,Rt,jt].indexOf(Ft)!==-1)return Je;if([ze,Rt,jt,Ue,Ne].indexOf(Ft)!==-1)for(var nn=Ce;nn>=0;){var un=G[nn];if(un===ze)return Je;if([Rt,jt].indexOf(un)!==-1)nn--;else break}if([Et,Ve].indexOf(Ft)!==-1)for(var nn=[Ue,Ne].indexOf(rt)!==-1?Fe:Ce;nn>=0;){var un=G[nn];if(un===ze)return Je;if([Rt,jt].indexOf(un)!==-1)nn--;else break}if(Xe===rt&&[Xe,gt,we,Le].indexOf(Ft)!==-1||[gt,we].indexOf(rt)!==-1&&[gt,Lt].indexOf(Ft)!==-1||[Lt,Le].indexOf(rt)!==-1&&Ft===Lt)return Je;if(_t.indexOf(rt)!==-1&&[ft,Ve].indexOf(Ft)!==-1||_t.indexOf(Ft)!==-1&&rt===Et)return Je;if(je.indexOf(rt)!==-1&&je.indexOf(Ft)!==-1)return Je;if(rt===jt&&je.indexOf(Ft)!==-1)return Je;if(je.concat(ze).indexOf(rt)!==-1&&Ft===dt&&Ct.indexOf(X[at])===-1||je.concat(ze).indexOf(Ft)!==-1&&rt===Ne)return Je;if(rt===en&&Ft===en){for(var Sr=J[Ce],Qn=1;Sr>0&&(Sr--,G[Sr]===en);)Qn++;if(Qn%2!==0)return Je}return rt===ke&&Ft===He?Je:Qe},Mr=function(X,G){G||(G={lineBreak:"normal",wordBreak:"normal"});var J=kt(X,G.lineBreak),Y=J[0],de=J[1],Ce=J[2];(G.wordBreak==="break-all"||G.wordBreak==="break-word")&&(de=de.map(function(at){return[ze,vt,Zt].indexOf(at)!==-1?We:at}));var Fe=G.wordBreak==="keep-all"?Ce.map(function(at,rt){return at&&X[rt]>=19968&&X[rt]<=40959}):void 0;return[Y,de,Fe]},kr=function(){function X(G,J,Y,de){this.codePoints=G,this.required=J===mt,this.start=Y,this.end=de}return X.prototype.slice=function(){return a.apply(void 0,this.codePoints.slice(this.start,this.end))},X}(),Un=function(X,G){var J=p(X),Y=Mr(J,G),de=Y[0],Ce=Y[1],Fe=Y[2],at=J.length,rt=0,It=0;return{next:function(){if(It>=at)return{done:!0,value:null};for(var Ft=Je;It=ua&&X<=57},go=function(X){return X>=55296&&X<=57343},no=function(X){return ii(X)||X>=mo&&X<=ci||X>=Pr&&X<=Jr},hs=function(X){return X>=Pr&&X<=pa},xo=function(X){return X>=mo&&X<=Mo},Cs=function(X){return hs(X)||xo(X)},ws=function(X){return X>=Dr},ho=function(X){return X===_a||X===_e||X===Ie},As=function(X){return Cs(X)||ws(X)||X===ve},mr=function(X){return As(X)||ii(X)||X===oe},Vr=function(X){return X>=ui&&X<=mi||X===_i||X>=ai&&X<=Hi||X===Yi},ur=function(X,G){return X!==Ei?!1:G!==_a},oa=function(X,G,J){return X===oe?As(G)||ur(G,J):As(X)?!0:!!(X===Ei&&ur(X,G))},wa=function(X,G,J){return X===fi||X===oe?ii(G)?!0:G===pi&&ii(J):X===pi?ii(G):ii(X)},ei=function(X){var G=0,J=1;(X[G]===fi||X[G]===oe)&&(X[G]===oe&&(J=-1),G++);for(var Y=[];ii(X[G]);)Y.push(X[G++]);var de=Y.length?parseInt(a.apply(void 0,Y),10):0;X[G]===pi&&G++;for(var Ce=[];ii(X[G]);)Ce.push(X[G++]);var Fe=Ce.length,at=Fe?parseInt(a.apply(void 0,Ce),10):0;(X[G]===Di||X[G]===ca)&&G++;var rt=1;(X[G]===fi||X[G]===oe)&&(X[G]===oe&&(rt=-1),G++);for(var It=[];ii(X[G]);)It.push(X[G++]);var Ft=It.length?parseInt(a.apply(void 0,It),10):0;return J*(de+at*Math.pow(10,-Fe))*Math.pow(10,rt*Ft)},Ba={type:2},Ni={type:3},Ma={type:4},xa={type:13},Po={type:8},Za={type:21},ro={type:9},so={type:10},To={type:11},Vs={type:12},ti={type:14},Sa={type:23},Ia={type:1},Eo={type:25},xs={type:24},Ts={type:26},Xs={type:27},Ys={type:28},il={type:29},ml={type:31},Js={type:32},Ps=function(){function X(){this._value=[]}return X.prototype.write=function(G){this._value=this._value.concat(p(G))},X.prototype.read=function(){for(var G=[],J=this.consumeToken();J!==Js;)G.push(J),J=this.consumeToken();return G},X.prototype.consumeToken=function(){var G=this.consumeCodePoint();switch(G){case Ye:return this.consumeStringToken(Ye);case Xt:var J=this.peekCodePoint(0),Y=this.peekCodePoint(1),de=this.peekCodePoint(2);if(mr(J)||ur(Y,de)){var Ce=oa(J,Y,de)?Xr:Ra,Fe=this.consumeName();return{type:5,value:Fe,flags:Ce}}break;case sn:if(this.peekCodePoint(0)===yt)return this.consumeCodePoint(),xa;break;case W:return this.consumeStringToken(W);case V:return Ba;case ne:return Ni;case ka:if(this.peekCodePoint(0)===yt)return this.consumeCodePoint(),ti;break;case fi:if(wa(G,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(G),this.consumeNumericToken();break;case Ka:return Ma;case oe:var at=G,rt=this.peekCodePoint(0),It=this.peekCodePoint(1);if(wa(at,rt,It))return this.reconsumeCodePoint(G),this.consumeNumericToken();if(oa(at,rt,It))return this.reconsumeCodePoint(G),this.consumeIdentLikeToken();if(rt===oe&&It===dn)return this.consumeCodePoint(),this.consumeCodePoint(),xs;break;case pi:if(wa(G,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(G),this.consumeNumericToken();break;case di:if(this.peekCodePoint(0)===ka)for(this.consumeCodePoint();;){var Ft=this.consumeCodePoint();if(Ft===ka&&(Ft=this.consumeCodePoint(),Ft===di))return this.consumeToken();if(Ft===$r)return this.consumeToken()}break;case qa:return Ts;case Si:return Xs;case Kt:if(this.peekCodePoint(0)===tt&&this.peekCodePoint(1)===oe&&this.peekCodePoint(2)===oe)return this.consumeCodePoint(),this.consumeCodePoint(),Eo;break;case Cn:var nn=this.peekCodePoint(0),un=this.peekCodePoint(1),Sr=this.peekCodePoint(2);if(oa(nn,un,Sr)){var Fe=this.consumeName();return{type:7,value:Fe}}break;case Jt:return Ys;case Ei:if(ur(G,this.peekCodePoint(0)))return this.reconsumeCodePoint(G),this.consumeIdentLikeToken();break;case Vn:return il;case Xn:if(this.peekCodePoint(0)===yt)return this.consumeCodePoint(),Po;break;case lr:return To;case qr:return Vs;case ri:case Wo:var Qn=this.peekCodePoint(0),Ar=this.peekCodePoint(1);return Qn===fi&&(no(Ar)||Ar===Rr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(G),this.consumeIdentLikeToken();case zr:if(this.peekCodePoint(0)===yt)return this.consumeCodePoint(),ro;if(this.peekCodePoint(0)===zr)return this.consumeCodePoint(),Za;break;case Ca:if(this.peekCodePoint(0)===yt)return this.consumeCodePoint(),so;break;case $r:return Js}return ho(G)?(this.consumeWhiteSpace(),ml):ii(G)?(this.reconsumeCodePoint(G),this.consumeNumericToken()):As(G)?(this.reconsumeCodePoint(G),this.consumeIdentLikeToken()):{type:6,value:a(G)}},X.prototype.consumeCodePoint=function(){var G=this._value.shift();return typeof G=="undefined"?-1:G},X.prototype.reconsumeCodePoint=function(G){this._value.unshift(G)},X.prototype.peekCodePoint=function(G){return G>=this._value.length?-1:this._value[G]},X.prototype.consumeUnicodeRangeToken=function(){for(var G=[],J=this.consumeCodePoint();no(J)&&G.length<6;)G.push(J),J=this.consumeCodePoint();for(var Y=!1;J===Rr&&G.length<6;)G.push(J),J=this.consumeCodePoint(),Y=!0;if(Y){var de=parseInt(a.apply(void 0,G.map(function(rt){return rt===Rr?ua:rt})),16),Ce=parseInt(a.apply(void 0,G.map(function(rt){return rt===Rr?ci:rt})),16);return{type:30,start:de,end:Ce}}var Fe=parseInt(a.apply(void 0,G),16);if(this.peekCodePoint(0)===oe&&no(this.peekCodePoint(1))){this.consumeCodePoint(),J=this.consumeCodePoint();for(var at=[];no(J)&&at.length<6;)at.push(J),J=this.consumeCodePoint();var Ce=parseInt(a.apply(void 0,at),16);return{type:30,start:Fe,end:Ce}}else return{type:30,start:Fe,end:Fe}},X.prototype.consumeIdentLikeToken=function(){var G=this.consumeName();return G.toLowerCase()==="url"&&this.peekCodePoint(0)===V?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===V?(this.consumeCodePoint(),{type:19,value:G}):{type:20,value:G}},X.prototype.consumeUrlToken=function(){var G=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===$r)return{type:22,value:""};var J=this.peekCodePoint(0);if(J===W||J===Ye){var Y=this.consumeStringToken(this.consumeCodePoint());return Y.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===$r||this.peekCodePoint(0)===ne)?(this.consumeCodePoint(),{type:22,value:Y.value}):(this.consumeBadUrlRemnants(),Sa)}for(;;){var de=this.consumeCodePoint();if(de===$r||de===ne)return{type:22,value:a.apply(void 0,G)};if(ho(de))return this.consumeWhiteSpace(),this.peekCodePoint(0)===$r||this.peekCodePoint(0)===ne?(this.consumeCodePoint(),{type:22,value:a.apply(void 0,G)}):(this.consumeBadUrlRemnants(),Sa);if(de===Ye||de===W||de===V||Vr(de))return this.consumeBadUrlRemnants(),Sa;if(de===Ei)if(ur(de,this.peekCodePoint(0)))G.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Sa;else G.push(de)}},X.prototype.consumeWhiteSpace=function(){for(;ho(this.peekCodePoint(0));)this.consumeCodePoint()},X.prototype.consumeBadUrlRemnants=function(){for(;;){var G=this.consumeCodePoint();if(G===ne||G===$r)return;ur(G,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},X.prototype.consumeStringSlice=function(G){for(var J=5e4,Y="";G>0;){var de=Math.min(J,G);Y+=a.apply(void 0,this._value.splice(0,de)),G-=de}return this._value.shift(),Y},X.prototype.consumeStringToken=function(G){var J="",Y=0;do{var de=this._value[Y];if(de===$r||de===void 0||de===G)return J+=this.consumeStringSlice(Y),{type:0,value:J};if(de===_a)return this._value.splice(0,Y),Ia;if(de===Ei){var Ce=this._value[Y+1];Ce!==$r&&Ce!==void 0&&(Ce===_a?(J+=this.consumeStringSlice(Y),Y=-1,this._value.shift()):ur(de,Ce)&&(J+=this.consumeStringSlice(Y),J+=a(this.consumeEscapedCodePoint()),Y=-1))}Y++}while(!0)},X.prototype.consumeNumber=function(){var G=[],J=aa,Y=this.peekCodePoint(0);for((Y===fi||Y===oe)&&G.push(this.consumeCodePoint());ii(this.peekCodePoint(0));)G.push(this.consumeCodePoint());Y=this.peekCodePoint(0);var de=this.peekCodePoint(1);if(Y===pi&&ii(de))for(G.push(this.consumeCodePoint(),this.consumeCodePoint()),J=Kr;ii(this.peekCodePoint(0));)G.push(this.consumeCodePoint());Y=this.peekCodePoint(0),de=this.peekCodePoint(1);var Ce=this.peekCodePoint(2);if((Y===Di||Y===ca)&&((de===fi||de===oe)&&ii(Ce)||ii(de)))for(G.push(this.consumeCodePoint(),this.consumeCodePoint()),J=Kr;ii(this.peekCodePoint(0));)G.push(this.consumeCodePoint());return[ei(G),J]},X.prototype.consumeNumericToken=function(){var G=this.consumeNumber(),J=G[0],Y=G[1],de=this.peekCodePoint(0),Ce=this.peekCodePoint(1),Fe=this.peekCodePoint(2);if(oa(de,Ce,Fe)){var at=this.consumeName();return{type:15,number:J,flags:Y,unit:at}}return de===re?(this.consumeCodePoint(),{type:16,number:J,flags:Y}):{type:17,number:J,flags:Y}},X.prototype.consumeEscapedCodePoint=function(){var G=this.consumeCodePoint();if(no(G)){for(var J=a(G);no(this.peekCodePoint(0))&&J.length<6;)J+=a(this.consumeCodePoint());ho(this.peekCodePoint(0))&&this.consumeCodePoint();var Y=parseInt(J,16);return Y===0||go(Y)||Y>1114111?ya:Y}return G===$r?ya:G},X.prototype.consumeName=function(){for(var G="";;){var J=this.consumeCodePoint();if(mr(J))G+=a(J);else if(ur(J,this.peekCodePoint(0)))G+=a(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(J),G}},X}(),gl=function(){function X(G){this._tokens=G}return X.create=function(G){var J=new Ps;return J.write(G),new X(J.read())},X.parseValue=function(G){return X.create(G).parseComponentValue()},X.parseValues=function(G){return X.create(G).parseComponentValues()},X.prototype.parseComponentValue=function(){for(var G=this.consumeToken();G.type===31;)G=this.consumeToken();if(G.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(G);var J=this.consumeComponentValue();do G=this.consumeToken();while(G.type===31);if(G.type===32)return J;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},X.prototype.parseComponentValues=function(){for(var G=[];;){var J=this.consumeComponentValue();if(J.type===32)return G;G.push(J),G.push()}},X.prototype.consumeComponentValue=function(){var G=this.consumeToken();switch(G.type){case 11:case 28:case 2:return this.consumeSimpleBlock(G.type);case 19:return this.consumeFunction(G)}return G},X.prototype.consumeSimpleBlock=function(G){for(var J={type:G,values:[]},Y=this.consumeToken();;){if(Y.type===32||wt(Y,G))return J;this.reconsumeToken(Y),J.values.push(this.consumeComponentValue()),Y=this.consumeToken()}},X.prototype.consumeFunction=function(G){for(var J={name:G.value,values:[],type:18};;){var Y=this.consumeToken();if(Y.type===32||Y.type===3)return J;this.reconsumeToken(Y),J.values.push(this.consumeComponentValue())}},X.prototype.consumeToken=function(){var G=this._tokens.shift();return typeof G=="undefined"?Js:G},X.prototype.reconsumeToken=function(G){this._tokens.unshift(G)},X}(),Us=function(X){return X.type===15},Ns=function(X){return X.type===17},gi=function(X){return X.type===20},Hs=function(X){return X.type===0},$o=function(X,G){return gi(X)&&X.value===G},ol=function(X){return X.type!==31},$e=function(X){return X.type!==31&&X.type!==4},pt=function(X){var G=[],J=[];return X.forEach(function(Y){if(Y.type===4){if(J.length===0)throw new Error("Error parsing function args, zero tokens for arg");G.push(J),J=[];return}Y.type!==31&&J.push(Y)}),J.length&&G.push(J),G},wt=function(X,G){return G===11&&X.type===12||G===28&&X.type===29?!0:G===2&&X.type===3},nt=function(X){return X.type===17||X.type===15},Te=function(X){return X.type===16||nt(X)},Ge=function(X){return X.length>1?[X[0],X[1]]:[X[0]]},Re={type:17,number:0,flags:aa},it={type:16,number:50,flags:aa},st={type:16,number:100,flags:aa},Tt=function(X,G,J){var Y=X[0],de=X[1];return[ht(Y,G),ht(typeof de!="undefined"?de:Y,J)]},ht=function(X,G){if(X.type===16)return X.number/100*G;if(Us(X))switch(X.unit){case"rem":case"em":return 16*X.number;case"px":default:return X.number}return X.number},Mt="deg",tn="grad",lt="rad",qe="turn",Bt={name:"angle",parse:function(X,G){if(G.type===15)switch(G.unit){case Mt:return Math.PI*G.number/180;case tn:return Math.PI/200*G.number;case lt:return G.number;case qe:return Math.PI*2*G.number}throw new Error("Unsupported angle type")}},$t=function(X){return X.type===15&&(X.unit===Mt||X.unit===tn||X.unit===lt||X.unit===qe)},cn=function(X){var G=X.filter(gi).map(function(J){return J.value}).join(" ");switch(G){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Re,Re];case"to top":case"bottom":return Wt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Re,st];case"to right":case"left":return Wt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[st,st];case"to bottom":case"top":return Wt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[st,Re];case"to left":case"right":return Wt(270)}return 0},Wt=function(X){return Math.PI*X/180},_n={name:"color",parse:function(X,G){if(G.type===18){var J=wn[G.name];if(typeof J=="undefined")throw new Error('Attempting to parse an unsupported color function "'+G.name+'"');return J(X,G.values)}if(G.type===5){if(G.value.length===3){var Y=G.value.substring(0,1),de=G.value.substring(1,2),Ce=G.value.substring(2,3);return An(parseInt(Y+Y,16),parseInt(de+de,16),parseInt(Ce+Ce,16),1)}if(G.value.length===4){var Y=G.value.substring(0,1),de=G.value.substring(1,2),Ce=G.value.substring(2,3),Fe=G.value.substring(3,4);return An(parseInt(Y+Y,16),parseInt(de+de,16),parseInt(Ce+Ce,16),parseInt(Fe+Fe,16)/255)}if(G.value.length===6){var Y=G.value.substring(0,2),de=G.value.substring(2,4),Ce=G.value.substring(4,6);return An(parseInt(Y,16),parseInt(de,16),parseInt(Ce,16),1)}if(G.value.length===8){var Y=G.value.substring(0,2),de=G.value.substring(2,4),Ce=G.value.substring(4,6),Fe=G.value.substring(6,8);return An(parseInt(Y,16),parseInt(de,16),parseInt(Ce,16),parseInt(Fe,16)/255)}}if(G.type===20){var at=xn[G.value.toUpperCase()];if(typeof at!="undefined")return at}return xn.TRANSPARENT}},rn=function(X){return(255&X)===0},Ht=function(X){var G=255&X,J=255&X>>8,Y=255&X>>16,de=255&X>>24;return G<255?"rgba("+de+","+Y+","+J+","+G/255+")":"rgb("+de+","+Y+","+J+")"},An=function(X,G,J,Y){return(X<<24|G<<16|J<<8|Math.round(Y*255)<<0)>>>0},qt=function(X,G){if(X.type===17)return X.number;if(X.type===16){var J=G===3?1:255;return G===3?X.number/100*J:Math.round(X.number/100*J)}return 0},En=function(X,G){var J=G.filter($e);if(J.length===3){var Y=J.map(qt),de=Y[0],Ce=Y[1],Fe=Y[2];return An(de,Ce,Fe,1)}if(J.length===4){var at=J.map(qt),de=at[0],Ce=at[1],Fe=at[2],rt=at[3];return An(de,Ce,Fe,rt)}return 0};function kn(X,G,J){return J<0&&(J+=1),J>=1&&(J-=1),J<1/6?(G-X)*J*6+X:J<1/2?G:J<2/3?(G-X)*6*(2/3-J)+X:X}var Yt=function(X,G){var J=G.filter($e),Y=J[0],de=J[1],Ce=J[2],Fe=J[3],at=(Y.type===17?Wt(Y.number):Bt.parse(X,Y))/(Math.PI*2),rt=Te(de)?de.number/100:0,It=Te(Ce)?Ce.number/100:0,Ft=typeof Fe!="undefined"&&Te(Fe)?ht(Fe,1):1;if(rt===0)return An(It*255,It*255,It*255,1);var nn=It<=.5?It*(rt+1):It+rt-It*rt,un=It*2-nn,Sr=kn(un,nn,at+1/3),Qn=kn(un,nn,at),Ar=kn(un,nn,at-1/3);return An(Sr*255,Qn*255,Ar*255,Ft)},wn={hsl:Yt,hsla:Yt,rgb:En,rgba:En},ln=function(X,G){return _n.parse(X,gl.create(G).parseComponentValue())},xn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},an={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(X,G){return G.map(function(J){if(gi(J))switch(J.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Vt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Sn=function(X,G){var J=_n.parse(X,G[0]),Y=G[1];return Y&&Te(Y)?{color:J,stop:Y}:{color:J,stop:null}},hr=function(X,G){var J=X[0],Y=X[X.length-1];J.stop===null&&(J.stop=Re),Y.stop===null&&(Y.stop=st);for(var de=[],Ce=0,Fe=0;FeCe?de.push(rt):de.push(Ce),Ce=rt}else de.push(null)}for(var It=null,Fe=0;FeFe.optimumDistance)?{optimumCorner:at,optimumDistance:Ft}:Fe},{optimumDistance:de?Infinity:-Infinity,optimumCorner:null}).optimumCorner},yn=function(X,G,J,Y,de){var Ce=0,Fe=0;switch(X.size){case 0:X.shape===0?Ce=Fe=Math.min(Math.abs(G),Math.abs(G-Y),Math.abs(J),Math.abs(J-de)):X.shape===1&&(Ce=Math.min(Math.abs(G),Math.abs(G-Y)),Fe=Math.min(Math.abs(J),Math.abs(J-de)));break;case 2:if(X.shape===0)Ce=Fe=Math.min(Nn(G,J),Nn(G,J-de),Nn(G-Y,J),Nn(G-Y,J-de));else if(X.shape===1){var at=Math.min(Math.abs(J),Math.abs(J-de))/Math.min(Math.abs(G),Math.abs(G-Y)),rt=Gn(Y,de,G,J,!0),It=rt[0],Ft=rt[1];Ce=Nn(It-G,(Ft-J)/at),Fe=at*Ce}break;case 1:X.shape===0?Ce=Fe=Math.max(Math.abs(G),Math.abs(G-Y),Math.abs(J),Math.abs(J-de)):X.shape===1&&(Ce=Math.max(Math.abs(G),Math.abs(G-Y)),Fe=Math.max(Math.abs(J),Math.abs(J-de)));break;case 3:if(X.shape===0)Ce=Fe=Math.max(Nn(G,J),Nn(G,J-de),Nn(G-Y,J),Nn(G-Y,J-de));else if(X.shape===1){var at=Math.max(Math.abs(J),Math.abs(J-de))/Math.max(Math.abs(G),Math.abs(G-Y)),nn=Gn(Y,de,G,J,!1),It=nn[0],Ft=nn[1];Ce=Nn(It-G,(Ft-J)/at),Fe=at*Ce}break}return Array.isArray(X.size)&&(Ce=ht(X.size[0],Y),Fe=X.size.length===2?ht(X.size[1],de):Ce),[Ce,Fe]},Kn=function(X,G){var J=Wt(180),Y=[];return pt(G).forEach(function(de,Ce){if(Ce===0){var Fe=de[0];if(Fe.type===20&&Fe.value==="to"){J=cn(de);return}else if($t(Fe)){J=Bt.parse(X,Fe);return}}var at=Sn(X,de);Y.push(at)}),{angle:J,stops:Y,type:1}},or=function(X,G){var J=Wt(180),Y=[];return pt(G).forEach(function(de,Ce){if(Ce===0){var Fe=de[0];if(Fe.type===20&&["top","left","right","bottom"].indexOf(Fe.value)!==-1){J=cn(de);return}else if($t(Fe)){J=(Bt.parse(X,Fe)+Wt(270))%Wt(360);return}}var at=Sn(X,de);Y.push(at)}),{angle:J,stops:Y,type:1}},gr=function(X,G){var J=Wt(180),Y=[],de=1,Ce=0,Fe=3,at=[];return pt(G).forEach(function(rt,It){var Ft=rt[0];if(It===0){if(gi(Ft)&&Ft.value==="linear"){de=1;return}else if(gi(Ft)&&Ft.value==="radial"){de=2;return}}if(Ft.type===18){if(Ft.name==="from"){var nn=_n.parse(X,Ft.values[0]);Y.push({stop:Re,color:nn})}else if(Ft.name==="to"){var nn=_n.parse(X,Ft.values[0]);Y.push({stop:st,color:nn})}else if(Ft.name==="color-stop"){var un=Ft.values.filter($e);if(un.length===2){var nn=_n.parse(X,un[1]),Sr=un[0];Ns(Sr)&&Y.push({stop:{type:16,number:Sr.number*100,flags:Sr.flags},color:nn})}}}}),de===1?{angle:(J+Wt(180))%Wt(360),stops:Y,type:de}:{size:Fe,shape:Ce,stops:Y,position:at,type:de}},Ur="closest-side",er="farthest-side",rr="closest-corner",Lr="farthest-corner",Er="circle",_r="ellipse",sa="cover",ta="contain",tr=function(X,G){var J=0,Y=3,de=[],Ce=[];return pt(G).forEach(function(Fe,at){var rt=!0;if(at===0){var It=!1;rt=Fe.reduce(function(nn,un){if(It)if(gi(un))switch(un.value){case"center":return Ce.push(it),nn;case"top":case"left":return Ce.push(Re),nn;case"right":case"bottom":return Ce.push(st),nn}else(Te(un)||nt(un))&&Ce.push(un);else if(gi(un))switch(un.value){case Er:return J=0,!1;case _r:return J=1,!1;case"at":return It=!0,!1;case Ur:return Y=0,!1;case sa:case er:return Y=1,!1;case ta:case rr:return Y=2,!1;case Lr:return Y=3,!1}else if(nt(un)||Te(un))return Array.isArray(Y)||(Y=[]),Y.push(un),!1;return nn},rt)}if(rt){var Ft=Sn(X,Fe);de.push(Ft)}}),{size:Y,shape:J,stops:de,position:Ce,type:2}},vr=function(X,G){var J=0,Y=3,de=[],Ce=[];return pt(G).forEach(function(Fe,at){var rt=!0;if(at===0?rt=Fe.reduce(function(Ft,nn){if(gi(nn))switch(nn.value){case"center":return Ce.push(it),!1;case"top":case"left":return Ce.push(Re),!1;case"right":case"bottom":return Ce.push(st),!1}else if(Te(nn)||nt(nn))return Ce.push(nn),!1;return Ft},rt):at===1&&(rt=Fe.reduce(function(Ft,nn){if(gi(nn))switch(nn.value){case Er:return J=0,!1;case _r:return J=1,!1;case ta:case Ur:return Y=0,!1;case er:return Y=1,!1;case rr:return Y=2,!1;case sa:case Lr:return Y=3,!1}else if(nt(nn)||Te(nn))return Array.isArray(Y)||(Y=[]),Y.push(nn),!1;return Ft},rt)),rt){var It=Sn(X,Fe);de.push(It)}}),{size:Y,shape:J,stops:de,position:Ce,type:2}},ja=function(X){return X.type===1},ia=function(X){return X.type===2},Yn={name:"image",parse:function(X,G){if(G.type===22){var J={url:G.value,type:0};return X.cache.addImage(G.value),J}if(G.type===18){var Y=yr[G.name];if(typeof Y=="undefined")throw new Error('Attempting to parse an unsupported image function "'+G.name+'"');return Y(X,G.values)}throw new Error("Unsupported image type "+G.type)}};function vn(X){return!(X.type===20&&X.value==="none")&&(X.type!==18||!!yr[X.name])}var yr={"linear-gradient":Kn,"-moz-linear-gradient":or,"-ms-linear-gradient":or,"-o-linear-gradient":or,"-webkit-linear-gradient":or,"radial-gradient":tr,"-moz-radial-gradient":vr,"-ms-radial-gradient":vr,"-o-radial-gradient":vr,"-webkit-radial-gradient":vr,"-webkit-gradient":gr},oi={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(X,G){if(G.length===0)return[];var J=G[0];return J.type===20&&J.value==="none"?[]:G.filter(function(Y){return $e(Y)&&vn(Y)}).map(function(Y){return Yn.parse(X,Y)})}},Cr={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(X,G){return G.map(function(J){if(gi(J))switch(J.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ir={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(X,G){return pt(G).map(function(J){return J.filter(Te)}).map(Ge)}},fr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(X,G){return pt(G).map(function(J){return J.filter(gi).map(function(Y){return Y.value}).join(" ")}).map(ar)}},ar=function(X){switch(X){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Ln;(function(X){X.AUTO="auto",X.CONTAIN="contain",X.COVER="cover"})(Ln||(Ln={}));var Mn={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(X,G){return pt(G).map(function(J){return J.filter(gn)})}},gn=function(X){return gi(X)||Te(X)},qn=function(X){return{name:"border-"+X+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},na=qn("top"),cr=qn("right"),jr=qn("bottom"),Pa=qn("left"),da=function(X){return{name:"border-radius-"+X,initialValue:"0 0",prefix:!1,type:1,parse:function(G,J){return Ge(J.filter(Te))}}},ba=da("top-left"),ha=da("top-right"),Ta=da("bottom-right"),Da=da("bottom-left"),Ua=function(X){return{name:"border-"+X+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(G,J){switch(J){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Qr=Ua("top"),Wa=Ua("right"),Ea=Ua("bottom"),za=Ua("left"),hi=function(X){return{name:"border-"+X+"-width",initialValue:"0",type:0,prefix:!1,parse:function(G,J){return Us(J)?J.number:0}}},Ji=hi("top"),Li=hi("right"),Ci=hi("bottom"),Uo=hi("left"),Ao={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_o={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(X,G){switch(G){case"rtl":return 1;case"ltr":default:return 0}}},as={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(X,G){return G.filter(gi).reduce(function(J,Y){return J|fs(Y.value)},0)}},fs=function(X){switch(X){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},is={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(X,G){switch(G){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},os={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(X,G){return G.type===20&&G.value==="normal"?0:G.type===17||G.type===15?G.number:0}},So;(function(X){X.NORMAL="normal",X.STRICT="strict"})(So||(So={}));var ps={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(X,G){switch(G){case"strict":return So.STRICT;case"normal":default:return So.NORMAL}}},Qi={name:"line-height",initialValue:"normal",prefix:!1,type:4},Aa=function(X,G){return gi(X)&&X.value==="normal"?1.2*G:X.type===17?G*X.number:Te(X)?ht(X,G):G},wi={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(X,G){return G.type===20&&G.value==="none"?null:Yn.parse(X,G)}},vi={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(X,G){switch(G){case"inside":return 0;case"outside":default:return 1}}},vo={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(X,G){switch(G){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},uo=function(X){return{name:"margin-"+X,initialValue:"0",prefix:!1,type:4}},Ki=uo("top"),ss=uo("right"),ls=uo("bottom"),qo=uo("left"),fo={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(X,G){return G.filter(gi).map(function(J){switch(J.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},zo={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(X,G){switch(G){case"break-word":return"break-word";case"normal":default:return"normal"}}},yo=function(X){return{name:"padding-"+X,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},es=yo("top"),Go=yo("right"),Oa=yo("bottom"),la=yo("left"),xi={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(X,G){switch(G){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Zi={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(X,G){switch(G){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Oo={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(X,G){return G.length===1&&$o(G[0],"none")?[]:pt(G).map(function(J){for(var Y={color:xn.TRANSPARENT,offsetX:Re,offsetY:Re,blur:Re},de=0,Ce=0;Ce1?1:0],this.overflowWrap=Wn(G,zo,J.overflowWrap),this.paddingTop=Wn(G,es,J.paddingTop),this.paddingRight=Wn(G,Go,J.paddingRight),this.paddingBottom=Wn(G,Oa,J.paddingBottom),this.paddingLeft=Wn(G,la,J.paddingLeft),this.paintOrder=Wn(G,Yr,J.paintOrder),this.position=Wn(G,Zi,J.position),this.textAlign=Wn(G,xi,J.textAlign),this.textDecorationColor=Wn(G,ns,(Y=J.textDecorationColor)!==null&&Y!==void 0?Y:J.color),this.textDecorationLine=Wn(G,ms,(de=J.textDecorationLine)!==null&&de!==void 0?de:J.textDecoration),this.textShadow=Wn(G,Oo,J.textShadow),this.textTransform=Wn(G,co,J.textTransform),this.transform=Wn(G,No,J.transform),this.transformOrigin=Wn(G,lo,J.transformOrigin),this.visibility=Wn(G,Ha,J.visibility),this.webkitTextStrokeColor=Wn(G,Ri,J.webkitTextStrokeColor),this.webkitTextStrokeWidth=Wn(G,ir,J.webkitTextStrokeWidth),this.wordBreak=Wn(G,Ti,J.wordBreak),this.zIndex=Wn(G,Ro,J.zIndex)}return X.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},X.prototype.isTransparent=function(){return rn(this.backgroundColor)},X.prototype.isTransformed=function(){return this.transform!==null},X.prototype.isPositioned=function(){return this.position!==0},X.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},X.prototype.isFloating=function(){return this.float!==0},X.prototype.isInlineLevel=function(){return zt(this.display,4)||zt(this.display,33554432)||zt(this.display,268435456)||zt(this.display,536870912)||zt(this.display,67108864)||zt(this.display,134217728)},X}(),ao=function(){function X(G,J){this.content=Wn(G,on,J.content),this.quotes=Wn(G,pr,J.quotes)}return X}(),zi=function(){function X(G,J){this.counterIncrement=Wn(G,Tn,J.counterIncrement),this.counterReset=Wn(G,Hn,J.counterReset)}return X}(),Wn=function(X,G,J){var Y=new Ps,de=J!==null&&typeof J!="undefined"?J.toString():G.initialValue;Y.write(de);var Ce=new gl(Y.read());switch(G.type){case 2:var Fe=Ce.parseComponentValue();return G.parse(X,gi(Fe)?Fe.value:G.initialValue);case 0:return G.parse(X,Ce.parseComponentValue());case 1:return G.parse(X,Ce.parseComponentValues());case 4:return Ce.parseComponentValue();case 3:switch(G.format){case"angle":return Bt.parse(X,Ce.parseComponentValue());case"color":return _n.parse(X,Ce.parseComponentValue());case"image":return Yn.parse(X,Ce.parseComponentValue());case"length":var at=Ce.parseComponentValue();return nt(at)?at:Re;case"length-percentage":var rt=Ce.parseComponentValue();return Te(rt)?rt:Re;case"time":return Oi.parse(X,Ce.parseComponentValue())}break}},Qa="data-html2canvas-debug",Gi=function(X){var G=X.getAttribute(Qa);switch(G){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},li=function(X,G){var J=Gi(X);return J===1||G===J},io=function(){function X(G,J){if(this.context=G,this.textNodes=[],this.elements=[],this.flags=0,li(J,3))debugger;this.styles=new si(G,window.getComputedStyle(J,null)),ru(J)&&(this.styles.animationDuration.some(function(Y){return Y>0})&&(J.style.animationDuration="0s"),this.styles.transform!==null&&(J.style.transform="none")),this.bounds=T(this.context,J),li(J,4)&&(this.flags|=16)}return X}(),Yo="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ko="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jo=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),gs=0;gs>4,Ft[de++]=(Fe&15)<<4|at>>2,Ft[de++]=(at&3)<<6|rt&63;return It},sl=function(X){for(var G=X.length,J=[],Y=0;Y>Os,Sl=1<>Os,cl=ul+rs,Qs=cl,$s=2048>>6,qs=Qs+$s,yl=65536>>ks,Rs=1<=0){if(G<55296||G>56319&&G<=65535)return J=this.index[G>>Os],J=(J<>Os)],J=(J<>ks),J=this.index[J],J+=G>>Os&Ol,J=this.index[J],J=(J<=55296&&de<=56319&&J>10)+55296,Fe%1024+56320)),(de+1===J||Y.length>16384)&&(Ce+=String.fromCharCode.apply(String,Y),Y.length=0)}return Ce},yi=Ks(Yo),Ya="\xD7",Bo="\xF7",Ho=function(X){return yi.get(X)},el=function(X,G,J){var Y=J-2,de=G[Y],Ce=G[J-1],Fe=G[J];if(Ce===ma&&Fe===ga)return Ya;if(Ce===ma||Ce===ga||Ce===Na)return Bo;if(Fe===ma||Fe===ga||Fe===Na)return Bo;if(Ce===$a&&[$a,ys,xr,In].indexOf(Fe)!==-1)return Ya;if((Ce===xr||Ce===ys)&&(Fe===ys||Fe===Rn))return Ya;if((Ce===In||Ce===Rn)&&Fe===Rn)return Ya;if(Fe===Gr||Fe===La)return Ya;if(Fe===Vi)return Ya;if(Ce===Wr)return Ya;if(Ce===Gr&&Fe===Jn){for(;de===La;)de=G[--Y];if(de===Jn)return Ya}if(Ce===ra&&Fe===ra){for(var at=0;de===ra;)at++,de=G[--Y];if(at%2===0)return Ya}return Bo},Io=function(X){var G=Nr(X),J=G.length,Y=0,de=0,Ce=G.map(Ho);return{next:function(){if(Y>=J)return{done:!0,value:null};for(var Fe=Ya;YFe.x||Ft.y>Fe.y;return Fe=Ft,It===0?!0:nn});return X.body.removeChild(G),at},Ds=function(){return typeof new Image().crossOrigin!="undefined"},Rl=function(){return typeof new XMLHttpRequest().responseType=="string"},Cu=function(X){var G=new Image,J=X.createElement("canvas"),Y=J.getContext("2d");if(!Y)return!1;G.src="data:image/svg+xml,";try{Y.drawImage(G,0,0),J.toDataURL()}catch(de){return!1}return!0},bs=function(X){return X[0]===0&&X[1]===255&&X[2]===0&&X[3]===255},wu=function(X){var G=X.createElement("canvas"),J=100;G.width=J,G.height=J;var Y=G.getContext("2d");if(!Y)return Promise.reject(!1);Y.fillStyle="rgb(0, 255, 0)",Y.fillRect(0,0,J,J);var de=new Image,Ce=G.toDataURL();de.src=Ce;var Fe=Zl(J,J,0,0,de);return Y.fillStyle="red",Y.fillRect(0,0,J,J),cu(Fe).then(function(at){Y.drawImage(at,0,0);var rt=Y.getImageData(0,0,J,J).data;Y.fillStyle="red",Y.fillRect(0,0,J,J);var It=X.createElement("div");return It.style.backgroundImage="url("+Ce+")",It.style.height=J+"px",bs(rt)?cu(Zl(J,J,0,0,It)):Promise.reject(!1)}).then(function(at){return Y.drawImage(at,0,0),bs(Y.getImageData(0,0,J,J).data)}).catch(function(){return!1})},Zl=function(X,G,J,Y,de){var Ce="http://www.w3.org/2000/svg",Fe=document.createElementNS(Ce,"svg"),at=document.createElementNS(Ce,"foreignObject");return Fe.setAttributeNS(null,"width",X.toString()),Fe.setAttributeNS(null,"height",G.toString()),at.setAttributeNS(null,"width","100%"),at.setAttributeNS(null,"height","100%"),at.setAttributeNS(null,"x",J.toString()),at.setAttributeNS(null,"y",Y.toString()),at.setAttributeNS(null,"externalResourcesRequired","true"),Fe.appendChild(at),at.appendChild(de),Fe},cu=function(X){return new Promise(function(G,J){var Y=new Image;Y.onload=function(){return G(Y)},Y.onerror=J,Y.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(X))})},bo={get SUPPORT_RANGE_BOUNDS(){var X=cs(document);return Object.defineProperty(bo,"SUPPORT_RANGE_BOUNDS",{value:X}),X},get SUPPORT_WORD_BREAKING(){var X=bo.SUPPORT_RANGE_BOUNDS&&dl(document);return Object.defineProperty(bo,"SUPPORT_WORD_BREAKING",{value:X}),X},get SUPPORT_SVG_DRAWING(){var X=Cu(document);return Object.defineProperty(bo,"SUPPORT_SVG_DRAWING",{value:X}),X},get SUPPORT_FOREIGNOBJECT_DRAWING(){var X=typeof Array.from=="function"&&typeof window.fetch=="function"?wu(document):Promise.resolve(!1);return Object.defineProperty(bo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:X}),X},get SUPPORT_CORS_IMAGES(){var X=Ds();return Object.defineProperty(bo,"SUPPORT_CORS_IMAGES",{value:X}),X},get SUPPORT_RESPONSE_TYPE(){var X=Rl();return Object.defineProperty(bo,"SUPPORT_RESPONSE_TYPE",{value:X}),X},get SUPPORT_CORS_XHR(){var X="withCredentials"in new XMLHttpRequest;return Object.defineProperty(bo,"SUPPORT_CORS_XHR",{value:X}),X},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var X=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(bo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:X}),X}},Ws=function(){function X(G,J){this.text=G,this.bounds=J}return X}(),du=function(X,G,J,Y){var de=xu(G,J),Ce=[],Fe=0;return de.forEach(function(at){if(J.textDecorationLine.length||at.trim().length>0)if(bo.SUPPORT_RANGE_BOUNDS){var rt=$l(Y,Fe,at.length).getClientRects();if(rt.length>1){var It=Au(at),Ft=0;It.forEach(function(un){Ce.push(new Ws(un,M.fromDOMRectList(X,$l(Y,Ft+Fe,un.length).getClientRects()))),Ft+=un.length})}else Ce.push(new Ws(at,M.fromDOMRectList(X,rt)))}else{var nn=Y.splitText(at.length);Ce.push(new Ws(at,hu(X,Y))),Y=nn}else bo.SUPPORT_RANGE_BOUNDS||(Y=Y.splitText(at.length));Fe+=at.length}),Ce},hu=function(X,G){var J=G.ownerDocument;if(J){var Y=J.createElement("html2canvaswrapper");Y.appendChild(G.cloneNode(!0));var de=G.parentNode;if(de){de.replaceChild(Y,G);var Ce=T(X,Y);return Y.firstChild&&de.replaceChild(Y.firstChild,Y),Ce}}return M.EMPTY},$l=function(X,G,J){var Y=X.ownerDocument;if(!Y)throw new Error("Node has no owner document");var de=Y.createRange();return de.setStart(X,G),de.setEnd(X,G+J),de},Au=function(X){if(bo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var G=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(G.segment(X)).map(function(J){return J.segment})}return Do(X)},Fl=function(X,G){if(bo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var J=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(J.segment(X)).map(function(Y){return Y.segment})}return Tu(X,G)},xu=function(X,G){return G.letterSpacing!==0?Au(X):Fl(X,G)},Xu=[32,160,4961,65792,65793,4153,4241],Tu=function(X,G){for(var J=Un(X,{lineBreak:G.lineBreak,wordBreak:G.overflowWrap==="break-word"?"break-word":G.wordBreak}),Y=[],de,Ce=function(){if(de.value){var Fe=de.value.slice(),at=p(Fe),rt="";at.forEach(function(It){Xu.indexOf(It)===-1?rt+=a(It):(rt.length&&Y.push(rt),Y.push(a(It)),rt="")}),rt.length&&Y.push(rt)}};!(de=J.next()).done;)Ce();return Y},ql=function(){function X(G,J,Y){this.text=Yu(J.data,Y.textTransform),this.textBounds=du(G,this.text,Y,J)}return X}(),Yu=function(X,G){switch(G){case 1:return X.toLowerCase();case 3:return X.replace(Ju,kl);case 2:return X.toUpperCase();default:return X}},Ju=/(^|\s|:|-|\(|\))([a-z])/g,kl=function(X,G,J){return X.length>0?G+J.toUpperCase():X},fu=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.src=Y.currentSrc||Y.src,de.intrinsicWidth=Y.naturalWidth,de.intrinsicHeight=Y.naturalHeight,de.context.cache.addImage(de.src),de}return G}(io),pu=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.canvas=Y,de.intrinsicWidth=Y.width,de.intrinsicHeight=Y.height,de}return G}(io),Su=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this,Ce=new XMLSerializer,Fe=T(J,Y);return Y.setAttribute("width",Fe.width+"px"),Y.setAttribute("height",Fe.height+"px"),de.svg="data:image/svg+xml,"+encodeURIComponent(Ce.serializeToString(Y)),de.intrinsicWidth=Y.width.baseVal.value,de.intrinsicHeight=Y.height.baseVal.value,de.context.cache.addImage(de.svg),de}return G}(io),eu=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.value=Y.value,de}return G}(io),tu=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.start=Y.start,de.reversed=typeof Y.reversed=="boolean"&&Y.reversed===!0,de}return G}(io),Zu=[{type:15,flags:0,unit:"px",number:3}],Ou=[{type:16,flags:0,number:50}],Ru=function(X){return X.width>X.height?new M(X.left+(X.width-X.height)/2,X.top,X.height,X.height):X.width0)J.textNodes.push(new ql(X,de,J.styles));else if(Il(de))if(yu(de)&&de.assignedNodes)de.assignedNodes().forEach(function(at){return Hl(X,at,J,Y)});else{var Fe=Mu(X,de);Fe.styles.isVisible()&&(Uu(de,Fe,Y)?Fe.flags|=4:mu(Fe.styles)&&(Fe.flags|=2),qu.indexOf(de.tagName)!==-1&&(Fe.flags|=8),J.elements.push(Fe),de.slot,de.shadowRoot?Hl(X,de.shadowRoot,Fe,Y):!Kl(de)&&!Fu(de)&&!Wl(de)&&Hl(X,de,Fe,Y))}},Mu=function(X,G){return bl(G)?new fu(X,G):ku(G)?new pu(X,G):Fu(G)?new Su(X,G):Nu(G)?new eu(X,G):au(G)?new tu(X,G):ec(G)?new nu(X,G):Wl(G)?new Iu(X,G):Kl(G)?new Du(X,G):Ls(G)?new Lu(X,G):new io(X,G)},Pu=function(X,G){var J=Mu(X,G);return J.flags|=4,Hl(X,G,J,J),J},Uu=function(X,G,J){return G.styles.isPositionedWithZIndex()||G.styles.opacity<1||G.styles.isTransformed()||Xi(X)&&J.styles.isTransparent()},mu=function(X){return X.isPositioned()||X.isFloating()},gu=function(X){return X.nodeType===Node.TEXT_NODE},Il=function(X){return X.nodeType===Node.ELEMENT_NODE},ru=function(X){return Il(X)&&typeof X.style!="undefined"&&!tl(X)},tl=function(X){return typeof X.className=="object"},Nu=function(X){return X.tagName==="LI"},au=function(X){return X.tagName==="OL"},ec=function(X){return X.tagName==="INPUT"},tc=function(X){return X.tagName==="HTML"},Fu=function(X){return X.tagName==="svg"},Xi=function(X){return X.tagName==="BODY"},ku=function(X){return X.tagName==="CANVAS"},iu=function(X){return X.tagName==="VIDEO"},bl=function(X){return X.tagName==="IMG"},Ls=function(X){return X.tagName==="IFRAME"},Ql=function(X){return X.tagName==="STYLE"},vu=function(X){return X.tagName==="SCRIPT"},Kl=function(X){return X.tagName==="TEXTAREA"},Wl=function(X){return X.tagName==="SELECT"},yu=function(X){return X.tagName==="SLOT"},bu=function(X){return X.tagName.indexOf("-")>0},ju=function(){function X(){this.counters={}}return X.prototype.getCounterValue=function(G){var J=this.counters[G];return J&&J.length?J[J.length-1]:1},X.prototype.getCounterValues=function(G){var J=this.counters[G];return J||[]},X.prototype.pop=function(G){var J=this;G.forEach(function(Y){return J.counters[Y].pop()})},X.prototype.parse=function(G){var J=this,Y=G.counterIncrement,de=G.counterReset,Ce=!0;Y!==null&&Y.forEach(function(at){var rt=J.counters[at.counter];rt&&at.increment!==0&&(Ce=!1,rt.length||rt.push(1),rt[Math.max(0,rt.length-1)]+=at.increment)});var Fe=[];return Ce&&de.forEach(function(at){var rt=J.counters[at.counter];Fe.push(at.counter),rt||(rt=J.counters[at.counter]=[]),rt.push(at.reset)}),Fe},X}(),Hu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},ou={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Qu={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},Bi={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},El=function(X,G,J,Y,de,Ce){return XJ?L(X,de,Ce.length>0):Y.integers.reduce(function(Fe,at,rt){for(;X>=at;)X-=at,Fe+=Y.values[rt];return Fe},"")+Ce},Ku=function(X,G,J,Y){var de="";do J||X--,de=Y(X)+de,X/=G;while(X*G>=G);return de},$i=function(X,G,J,Y,de){var Ce=J-G+1;return(X<0?"-":"")+(Ku(Math.abs(X),Ce,Y,function(Fe){return a(Math.floor(Fe%Ce)+G)})+de)},_l=function(X,G,J){J===void 0&&(J=". ");var Y=G.length;return Ku(Math.abs(X),Y,!1,function(de){return G[Math.floor(de%Y)]})+J},nl=1<<0,Al=1<<1,Mi=1<<2,zl=1<<3,rl=function(X,G,J,Y,de,Ce){if(X<-9999||X>9999)return L(X,4,de.length>0);var Fe=Math.abs(X),at=de;if(Fe===0)return G[0]+at;for(var rt=0;Fe>0&&rt<=4;rt++){var It=Fe%10;It===0&&zt(Ce,nl)&&at!==""?at=G[It]+at:It>1||It===1&&rt===0||It===1&&rt===1&&zt(Ce,Al)||It===1&&rt===1&&zt(Ce,Mi)&&X>100||It===1&&rt>1&&zt(Ce,zl)?at=G[It]+(rt>0?J[rt-1]:"")+at:It===1&&rt>0&&(at=J[rt-1]+at),Fe=Math.floor(Fe/10)}return(X<0?Y:"")+at},Wu="\u5341\u767E\u5343\u842C",Gl="\u62FE\u4F70\u4EDF\u842C",e="\u30DE\u30A4\u30CA\u30B9",r="\uB9C8\uC774\uB108\uC2A4",L=function(X,G,J){var Y=J?". ":"",de=J?"\u3001":"",Ce=J?", ":"",Fe=J?" ":"";switch(G){case 0:return"\u2022"+Fe;case 1:return"\u25E6"+Fe;case 2:return"\u25FE"+Fe;case 5:var at=$i(X,48,57,!0,Y);return at.length<4?"0"+at:at;case 4:return _l(X,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",de);case 6:return El(X,1,3999,Hu,3,Y).toLowerCase();case 7:return El(X,1,3999,Hu,3,Y);case 8:return $i(X,945,969,!1,Y);case 9:return $i(X,97,122,!1,Y);case 10:return $i(X,65,90,!1,Y);case 11:return $i(X,1632,1641,!0,Y);case 12:case 49:return El(X,1,9999,ou,3,Y);case 35:return El(X,1,9999,ou,3,Y).toLowerCase();case 13:return $i(X,2534,2543,!0,Y);case 14:case 30:return $i(X,6112,6121,!0,Y);case 15:return _l(X,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",de);case 16:return _l(X,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",de);case 17:case 48:return rl(X,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Wu,"\u8CA0",de,Al|Mi|zl);case 47:return rl(X,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Gl,"\u8CA0",de,nl|Al|Mi|zl);case 42:return rl(X,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Wu,"\u8D1F",de,Al|Mi|zl);case 41:return rl(X,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Gl,"\u8D1F",de,nl|Al|Mi|zl);case 26:return rl(X,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",e,de,0);case 25:return rl(X,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",e,de,nl|Al|Mi);case 31:return rl(X,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",r,Ce,nl|Al|Mi);case 33:return rl(X,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",r,Ce,0);case 32:return rl(X,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",r,Ce,nl|Al|Mi);case 18:return $i(X,2406,2415,!0,Y);case 20:return El(X,1,19999,Bi,3,Y);case 21:return $i(X,2790,2799,!0,Y);case 22:return $i(X,2662,2671,!0,Y);case 22:return El(X,1,10999,Qu,3,Y);case 23:return _l(X,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return _l(X,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return $i(X,3302,3311,!0,Y);case 28:return _l(X,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",de);case 29:return _l(X,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",de);case 34:return $i(X,3792,3801,!0,Y);case 37:return $i(X,6160,6169,!0,Y);case 38:return $i(X,4160,4169,!0,Y);case 39:return $i(X,2918,2927,!0,Y);case 40:return $i(X,1776,1785,!0,Y);case 43:return $i(X,3046,3055,!0,Y);case 44:return $i(X,3174,3183,!0,Y);case 45:return $i(X,3664,3673,!0,Y);case 46:return $i(X,3872,3881,!0,Y);case 3:default:return $i(X,48,57,!0,Y)}},D="data-html2canvas-ignore",j=function(){function X(G,J,Y){if(this.context=G,this.options=Y,this.scrolledElements=[],this.referenceElement=J,this.counters=new ju,this.quoteDepth=0,!J.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(J.ownerDocument.documentElement,!1)}return X.prototype.toIFrame=function(G,J){var Y=this,de=ue(G,J);if(!de.contentWindow)return Promise.reject("Unable to find iframe window");var Ce=G.defaultView.pageXOffset,Fe=G.defaultView.pageYOffset,at=de.contentWindow,rt=at.document,It=De(de).then(function(){return k(Y,void 0,void 0,function(){var Ft,nn;return _(this,function(un){switch(un.label){case 0:return this.scrolledElements.forEach(hn),at&&(at.scrollTo(J.left,J.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(at.scrollY!==J.top||at.scrollX!==J.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(at.scrollX-J.left,at.scrollY-J.top,0,0))),Ft=this.options.onclone,nn=this.clonedReferenceElement,typeof nn=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:rt.fonts&&rt.fonts.ready?[4,rt.fonts.ready]:[3,2];case 1:un.sent(),un.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Ee(rt)]:[3,4];case 3:un.sent(),un.label=4;case 4:return typeof Ft=="function"?[2,Promise.resolve().then(function(){return Ft(rt,nn)}).then(function(){return de})]:[2,de]}})})});return rt.open(),rt.write(Nt(document.doctype)+""),Pt(this.referenceElement.ownerDocument,Ce,Fe),rt.replaceChild(rt.adoptNode(this.documentElement),rt.documentElement),rt.close(),It},X.prototype.createElementClone=function(G){if(li(G,2))debugger;if(ku(G))return this.createCanvasClone(G);if(iu(G))return this.createVideoClone(G);if(Ql(G))return this.createStyleClone(G);var J=G.cloneNode(!1);return bl(J)&&(bl(G)&&G.currentSrc&&G.currentSrc!==G.src&&(J.src=G.currentSrc,J.srcset=""),J.loading==="lazy"&&(J.loading="eager")),bu(J)?this.createCustomElementClone(J):J},X.prototype.createCustomElementClone=function(G){var J=document.createElement("html2canvascustomelement");return At(G.style,J),J},X.prototype.createStyleClone=function(G){try{var J=G.sheet;if(J&&J.cssRules){var Y=[].slice.call(J.cssRules,0).reduce(function(Ce,Fe){return Fe&&typeof Fe.cssText=="string"?Ce+Fe.cssText:Ce},""),de=G.cloneNode(!1);return de.textContent=Y,de}}catch(Ce){if(this.context.logger.error("Unable to access cssRules property",Ce),Ce.name!=="SecurityError")throw Ce}return G.cloneNode(!1)},X.prototype.createCanvasClone=function(G){var J;if(this.options.inlineImages&&G.ownerDocument){var Y=G.ownerDocument.createElement("img");try{return Y.src=G.toDataURL(),Y}catch(It){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",G)}}var de=G.cloneNode(!1);try{de.width=G.width,de.height=G.height;var Ce=G.getContext("2d"),Fe=de.getContext("2d");if(Fe)if(!this.options.allowTaint&&Ce)Fe.putImageData(Ce.getImageData(0,0,G.width,G.height),0,0);else{var at=(J=G.getContext("webgl2"))!==null&&J!==void 0?J:G.getContext("webgl");if(at){var rt=at.getContextAttributes();(rt==null?void 0:rt.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",G)}Fe.drawImage(G,0,0)}return de}catch(It){this.context.logger.info("Unable to clone canvas as it is tainted",G)}return de},X.prototype.createVideoClone=function(G){var J=G.ownerDocument.createElement("canvas");J.width=G.offsetWidth,J.height=G.offsetHeight;var Y=J.getContext("2d");try{return Y&&(Y.drawImage(G,0,0,J.width,J.height),this.options.allowTaint||Y.getImageData(0,0,J.width,J.height)),J}catch(Ce){this.context.logger.info("Unable to clone video as it is tainted",G)}var de=G.ownerDocument.createElement("canvas");return de.width=G.offsetWidth,de.height=G.offsetHeight,de},X.prototype.appendChildNode=function(G,J,Y){(!Il(J)||!vu(J)&&!J.hasAttribute(D)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(J)))&&((!this.options.copyStyles||!Il(J)||!Ql(J))&&G.appendChild(this.cloneNode(J,Y)))},X.prototype.cloneChildNodes=function(G,J,Y){for(var de=this,Ce=G.shadowRoot?G.shadowRoot.firstChild:G.firstChild;Ce;Ce=Ce.nextSibling)if(Il(Ce)&&yu(Ce)&&typeof Ce.assignedNodes=="function"){var Fe=Ce.assignedNodes();Fe.length&&Fe.forEach(function(at){return de.appendChildNode(J,at,Y)})}else this.appendChildNode(J,Ce,Y)},X.prototype.cloneNode=function(G,J){if(gu(G))return document.createTextNode(G.data);if(!G.ownerDocument)return G.cloneNode(!1);var Y=G.ownerDocument.defaultView;if(Y&&Il(G)&&(ru(G)||tl(G))){var de=this.createElementClone(G);de.style.transitionProperty="none";var Ce=Y.getComputedStyle(G),Fe=Y.getComputedStyle(G,":before"),at=Y.getComputedStyle(G,":after");this.referenceElement===G&&ru(de)&&(this.clonedReferenceElement=de),Xi(de)&&br(de);var rt=this.counters.parse(new zi(this.context,Ce)),It=this.resolvePseudoContent(G,de,Fe,q.BEFORE);bu(G)&&(J=!0),iu(G)||this.cloneChildNodes(G,de,J),It&&de.insertBefore(It,de.firstChild);var Ft=this.resolvePseudoContent(G,de,at,q.AFTER);return Ft&&de.appendChild(Ft),this.counters.pop(rt),(Ce&&(this.options.copyStyles||tl(G))&&!Ls(G)||J)&&At(Ce,de),(G.scrollTop!==0||G.scrollLeft!==0)&&this.scrolledElements.push([de,G.scrollLeft,G.scrollTop]),(Kl(G)||Wl(G))&&(Kl(de)||Wl(de))&&(de.value=G.value),de}return G.cloneNode(!1)},X.prototype.resolvePseudoContent=function(G,J,Y,de){var Ce=this;if(!Y)return;var Fe=Y.content,at=J.ownerDocument;if(!at||!Fe||Fe==="none"||Fe==="-moz-alt-content"||Y.display==="none")return;this.counters.parse(new zi(this.context,Y));var rt=new ao(this.context,Y),It=at.createElement("html2canvaspseudoelement");At(Y,It),rt.content.forEach(function(nn){if(nn.type===0)It.appendChild(at.createTextNode(nn.value));else if(nn.type===22){var un=at.createElement("img");un.src=nn.value,un.style.opacity="1",It.appendChild(un)}else if(nn.type===18){if(nn.name==="attr"){var Sr=nn.values.filter(gi);Sr.length&&It.appendChild(at.createTextNode(G.getAttribute(Sr[0].value)||""))}else if(nn.name==="counter"){var Qn=nn.values.filter($e),Ar=Qn[0],va=Qn[1];if(Ar&&gi(Ar)){var wr=Ce.counters.getCounterValue(Ar.value),Br=va&&gi(va)?vo.parse(Ce.context,va.value):3;It.appendChild(at.createTextNode(L(wr,Br,!1)))}}else if(nn.name==="counters"){var bi=nn.values.filter($e),Ar=bi[0],Ja=bi[1],va=bi[2];if(Ar&&gi(Ar)){var Pi=Ce.counters.getCounterValues(Ar.value),Or=va&&gi(va)?vo.parse(Ce.context,va.value):3,Ii=Ja&&Ja.type===0?Ja.value:"",Ui=Pi.map(function(_s){return L(_s,Or,!1)}).join(Ii);It.appendChild(at.createTextNode(Ui))}}}else if(nn.type===20)switch(nn.value){case"open-quote":It.appendChild(at.createTextNode(dr(rt.quotes,Ce.quoteDepth++,!0)));break;case"close-quote":It.appendChild(at.createTextNode(dr(rt.quotes,--Ce.quoteDepth,!1)));break;default:It.appendChild(at.createTextNode(nn.value))}}),It.className=Zn+" "+sr;var Ft=de===q.BEFORE?" "+Zn:" "+sr;return tl(J)?J.className.baseValue+=Ft:J.className+=Ft,It},X.destroy=function(G){return G.parentNode?(G.parentNode.removeChild(G),!0):!1},X}(),q;(function(X){X[X.BEFORE=0]="BEFORE",X[X.AFTER=1]="AFTER"})(q||(q={}));var ue=function(X,G){var J=X.createElement("iframe");return J.className="html2canvas-container",J.style.visibility="hidden",J.style.position="fixed",J.style.left="-10000px",J.style.top="0px",J.style.border="0",J.width=G.width.toString(),J.height=G.height.toString(),J.scrolling="no",J.setAttribute(D,"true"),X.body.appendChild(J),J},be=function(X){return new Promise(function(G){if(X.complete){G();return}if(!X.src){G();return}X.onload=G,X.onerror=G})},Ee=function(X){return Promise.all([].slice.call(X.images,0).map(be))},De=function(X){return new Promise(function(G,J){var Y=X.contentWindow;if(!Y)return J("No window assigned for iframe");var de=Y.document;Y.onload=X.onload=function(){Y.onload=X.onload=null;var Ce=setInterval(function(){de.body.childNodes.length>0&&de.readyState==="complete"&&(clearInterval(Ce),G(X))},50)}})},ot=["all","d","content"],At=function(X,G){for(var J=X.length-1;J>=0;J--){var Y=X.item(J);ot.indexOf(Y)===-1&&G.style.setProperty(Y,X.getPropertyValue(Y))}return G},Nt=function(X){var G="";return X&&(G+=""),G},Pt=function(X,G,J){X&&X.defaultView&&(G!==X.defaultView.pageXOffset||J!==X.defaultView.pageYOffset)&&X.defaultView.scrollTo(G,J)},hn=function(X){var G=X[0],J=X[1],Y=X[2];G.scrollLeft=J,G.scrollTop=Y},bn=":before",Fn=":after",Zn="___html2canvas___pseudoelement_before",sr="___html2canvas___pseudoelement_after",$n=`{ content: "" !important; display: none !important; }`,br=function(X){Zr(X,"."+Zn+bn+$n+` .`+sr+Fn+$n)},Zr=function(X,G){var J=X.ownerDocument;if(J){var Y=J.createElement("style");Y.textContent=G,X.appendChild(Y)}},Hr=function(){function X(){}return X.getOrigin=function(G){var J=X._link;return J?(J.href=G,J.href=J.href,J.protocol+J.hostname+J.port):"about:blank"},X.isSameOrigin=function(G){return X.getOrigin(G)===X._origin},X.setContext=function(G){X._link=G.document.createElement("a"),X._origin=X.getOrigin(G.location.href)},X._origin="about:blank",X}(),Fa=function(){function X(G,J){this.context=G,this._options=J,this._cache={}}return X.prototype.addImage=function(G){var J=Promise.resolve();return this.has(G)||(Ko(G)||ds(G))&&(this._cache[G]=this.loadImage(G)).catch(function(){}),J},X.prototype.match=function(G){return this._cache[G]},X.prototype.loadImage=function(G){return k(this,void 0,void 0,function(){var J,Y,de,Ce,Fe=this;return _(this,function(at){switch(at.label){case 0:return J=Hr.isSameOrigin(G),Y=!Qo(G)&&this._options.useCORS===!0&&bo.SUPPORT_CORS_IMAGES&&!J,de=!Qo(G)&&!J&&!Ko(G)&&typeof this._options.proxy=="string"&&bo.SUPPORT_CORS_XHR&&!Y,!J&&this._options.allowTaint===!1&&!Qo(G)&&!Ko(G)&&!de&&!Y?[2]:(Ce=G,de?[4,this.proxy(Ce)]:[3,2]);case 1:Ce=at.sent(),at.label=2;case 2:return this.context.logger.debug("Added image "+G.substring(0,256)),[4,new Promise(function(rt,It){var Ft=new Image;Ft.onload=function(){return rt(Ft)},Ft.onerror=It,(po(Ce)||Y)&&(Ft.crossOrigin="anonymous"),Ft.src=Ce,Ft.complete===!0&&setTimeout(function(){return rt(Ft)},500),Fe._options.imageTimeout>0&&setTimeout(function(){return It("Timed out ("+Fe._options.imageTimeout+"ms) loading image")},Fe._options.imageTimeout)})];case 3:return[2,at.sent()]}})})},X.prototype.has=function(G){return typeof this._cache[G]!="undefined"},X.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},X.prototype.proxy=function(G){var J=this,Y=this._options.proxy;if(!Y)throw new Error("No proxy defined");var de=G.substring(0,256);return new Promise(function(Ce,Fe){var at=bo.SUPPORT_RESPONSE_TYPE?"blob":"text",rt=new XMLHttpRequest;rt.onload=function(){if(rt.status===200)if(at==="text")Ce(rt.response);else{var nn=new FileReader;nn.addEventListener("load",function(){return Ce(nn.result)},!1),nn.addEventListener("error",function(un){return Fe(un)},!1),nn.readAsDataURL(rt.response)}else Fe("Failed to proxy resource "+de+" with status code "+rt.status)},rt.onerror=Fe;var It=Y.indexOf("?")>-1?"&":"?";if(rt.open("GET",""+Y+It+"url="+encodeURIComponent(G)+"&responseType="+at),at!=="text"&&rt instanceof XMLHttpRequest&&(rt.responseType=at),J._options.imageTimeout){var Ft=J._options.imageTimeout;rt.timeout=Ft,rt.ontimeout=function(){return Fe("Timed out ("+Ft+"ms) proxying "+de)}}rt.send()})},X}(),ji=/^data:image\/svg\+xml/i,Co=/^data:image\/.*;base64,/i,oo=/^data:image\/.*/i,ds=function(X){return bo.SUPPORT_SVG_DRAWING||!Lo(X)},Qo=function(X){return oo.test(X)},po=function(X){return Co.test(X)},Ko=function(X){return X.substr(0,4)==="blob"},Lo=function(X){return X.substr(-3).toLowerCase()==="svg"||ji.test(X)},zn=function(){function X(G,J){this.type=0,this.x=G,this.y=J}return X.prototype.add=function(G,J){return new X(this.x+G,this.y+J)},X}(),qi=function(X,G,J){return new zn(X.x+(G.x-X.x)*J,X.y+(G.y-X.y)*J)},eo=function(){function X(G,J,Y,de){this.type=1,this.start=G,this.startControl=J,this.endControl=Y,this.end=de}return X.prototype.subdivide=function(G,J){var Y=qi(this.start,this.startControl,G),de=qi(this.startControl,this.endControl,G),Ce=qi(this.endControl,this.end,G),Fe=qi(Y,de,G),at=qi(de,Ce,G),rt=qi(Fe,at,G);return J?new X(this.start,Y,Fe,rt):new X(rt,at,Ce,this.end)},X.prototype.add=function(G,J){return new X(this.start.add(G,J),this.startControl.add(G,J),this.endControl.add(G,J),this.end.add(G,J))},X.prototype.reverse=function(){return new X(this.end,this.endControl,this.startControl,this.start)},X}(),to=function(X){return X.type===1},Dl=function(){function X(G){var J=G.styles,Y=G.bounds,de=Tt(J.borderTopLeftRadius,Y.width,Y.height),Ce=de[0],Fe=de[1],at=Tt(J.borderTopRightRadius,Y.width,Y.height),rt=at[0],It=at[1],Ft=Tt(J.borderBottomRightRadius,Y.width,Y.height),nn=Ft[0],un=Ft[1],Sr=Tt(J.borderBottomLeftRadius,Y.width,Y.height),Qn=Sr[0],Ar=Sr[1],va=[];va.push((Ce+rt)/Y.width),va.push((Qn+nn)/Y.width),va.push((Fe+Ar)/Y.height),va.push((It+un)/Y.height);var wr=Math.max.apply(Math,va);wr>1&&(Ce/=wr,Fe/=wr,rt/=wr,It/=wr,nn/=wr,un/=wr,Qn/=wr,Ar/=wr);var Br=Y.width-rt,bi=Y.height-un,Ja=Y.width-nn,Pi=Y.height-Ar,Or=J.borderTopWidth,Ii=J.borderRightWidth,Ui=J.borderBottomWidth,Xa=J.borderLeftWidth,Ms=ht(J.paddingTop,G.bounds.width),_s=ht(J.paddingRight,G.bounds.width),js=ht(J.paddingBottom,G.bounds.width),Zo=ht(J.paddingLeft,G.bounds.width);this.topLeftBorderDoubleOuterBox=Ce>0||Fe>0?Va(Y.left+Xa/3,Y.top+Or/3,Ce-Xa/3,Fe-Or/3,ni.TOP_LEFT):new zn(Y.left+Xa/3,Y.top+Or/3),this.topRightBorderDoubleOuterBox=Ce>0||Fe>0?Va(Y.left+Br,Y.top+Or/3,rt-Ii/3,It-Or/3,ni.TOP_RIGHT):new zn(Y.left+Y.width-Ii/3,Y.top+Or/3),this.bottomRightBorderDoubleOuterBox=nn>0||un>0?Va(Y.left+Ja,Y.top+bi,nn-Ii/3,un-Ui/3,ni.BOTTOM_RIGHT):new zn(Y.left+Y.width-Ii/3,Y.top+Y.height-Ui/3),this.bottomLeftBorderDoubleOuterBox=Qn>0||Ar>0?Va(Y.left+Xa/3,Y.top+Pi,Qn-Xa/3,Ar-Ui/3,ni.BOTTOM_LEFT):new zn(Y.left+Xa/3,Y.top+Y.height-Ui/3),this.topLeftBorderDoubleInnerBox=Ce>0||Fe>0?Va(Y.left+Xa*2/3,Y.top+Or*2/3,Ce-Xa*2/3,Fe-Or*2/3,ni.TOP_LEFT):new zn(Y.left+Xa*2/3,Y.top+Or*2/3),this.topRightBorderDoubleInnerBox=Ce>0||Fe>0?Va(Y.left+Br,Y.top+Or*2/3,rt-Ii*2/3,It-Or*2/3,ni.TOP_RIGHT):new zn(Y.left+Y.width-Ii*2/3,Y.top+Or*2/3),this.bottomRightBorderDoubleInnerBox=nn>0||un>0?Va(Y.left+Ja,Y.top+bi,nn-Ii*2/3,un-Ui*2/3,ni.BOTTOM_RIGHT):new zn(Y.left+Y.width-Ii*2/3,Y.top+Y.height-Ui*2/3),this.bottomLeftBorderDoubleInnerBox=Qn>0||Ar>0?Va(Y.left+Xa*2/3,Y.top+Pi,Qn-Xa*2/3,Ar-Ui*2/3,ni.BOTTOM_LEFT):new zn(Y.left+Xa*2/3,Y.top+Y.height-Ui*2/3),this.topLeftBorderStroke=Ce>0||Fe>0?Va(Y.left+Xa/2,Y.top+Or/2,Ce-Xa/2,Fe-Or/2,ni.TOP_LEFT):new zn(Y.left+Xa/2,Y.top+Or/2),this.topRightBorderStroke=Ce>0||Fe>0?Va(Y.left+Br,Y.top+Or/2,rt-Ii/2,It-Or/2,ni.TOP_RIGHT):new zn(Y.left+Y.width-Ii/2,Y.top+Or/2),this.bottomRightBorderStroke=nn>0||un>0?Va(Y.left+Ja,Y.top+bi,nn-Ii/2,un-Ui/2,ni.BOTTOM_RIGHT):new zn(Y.left+Y.width-Ii/2,Y.top+Y.height-Ui/2),this.bottomLeftBorderStroke=Qn>0||Ar>0?Va(Y.left+Xa/2,Y.top+Pi,Qn-Xa/2,Ar-Ui/2,ni.BOTTOM_LEFT):new zn(Y.left+Xa/2,Y.top+Y.height-Ui/2),this.topLeftBorderBox=Ce>0||Fe>0?Va(Y.left,Y.top,Ce,Fe,ni.TOP_LEFT):new zn(Y.left,Y.top),this.topRightBorderBox=rt>0||It>0?Va(Y.left+Br,Y.top,rt,It,ni.TOP_RIGHT):new zn(Y.left+Y.width,Y.top),this.bottomRightBorderBox=nn>0||un>0?Va(Y.left+Ja,Y.top+bi,nn,un,ni.BOTTOM_RIGHT):new zn(Y.left+Y.width,Y.top+Y.height),this.bottomLeftBorderBox=Qn>0||Ar>0?Va(Y.left,Y.top+Pi,Qn,Ar,ni.BOTTOM_LEFT):new zn(Y.left,Y.top+Y.height),this.topLeftPaddingBox=Ce>0||Fe>0?Va(Y.left+Xa,Y.top+Or,Math.max(0,Ce-Xa),Math.max(0,Fe-Or),ni.TOP_LEFT):new zn(Y.left+Xa,Y.top+Or),this.topRightPaddingBox=rt>0||It>0?Va(Y.left+Math.min(Br,Y.width-Ii),Y.top+Or,Br>Y.width+Ii?0:Math.max(0,rt-Ii),Math.max(0,It-Or),ni.TOP_RIGHT):new zn(Y.left+Y.width-Ii,Y.top+Or),this.bottomRightPaddingBox=nn>0||un>0?Va(Y.left+Math.min(Ja,Y.width-Xa),Y.top+Math.min(bi,Y.height-Ui),Math.max(0,nn-Ii),Math.max(0,un-Ui),ni.BOTTOM_RIGHT):new zn(Y.left+Y.width-Ii,Y.top+Y.height-Ui),this.bottomLeftPaddingBox=Qn>0||Ar>0?Va(Y.left+Xa,Y.top+Math.min(Pi,Y.height-Ui),Math.max(0,Qn-Xa),Math.max(0,Ar-Ui),ni.BOTTOM_LEFT):new zn(Y.left+Xa,Y.top+Y.height-Ui),this.topLeftContentBox=Ce>0||Fe>0?Va(Y.left+Xa+Zo,Y.top+Or+Ms,Math.max(0,Ce-(Xa+Zo)),Math.max(0,Fe-(Or+Ms)),ni.TOP_LEFT):new zn(Y.left+Xa+Zo,Y.top+Or+Ms),this.topRightContentBox=rt>0||It>0?Va(Y.left+Math.min(Br,Y.width+Xa+Zo),Y.top+Or+Ms,Br>Y.width+Xa+Zo?0:rt-Xa+Zo,It-(Or+Ms),ni.TOP_RIGHT):new zn(Y.left+Y.width-(Ii+_s),Y.top+Or+Ms),this.bottomRightContentBox=nn>0||un>0?Va(Y.left+Math.min(Ja,Y.width-(Xa+Zo)),Y.top+Math.min(bi,Y.height+Or+Ms),Math.max(0,nn-(Ii+_s)),un-(Ui+js),ni.BOTTOM_RIGHT):new zn(Y.left+Y.width-(Ii+_s),Y.top+Y.height-(Ui+js)),this.bottomLeftContentBox=Qn>0||Ar>0?Va(Y.left+Xa+Zo,Y.top+Pi,Math.max(0,Qn-(Xa+Zo)),Ar-(Ui+js),ni.BOTTOM_LEFT):new zn(Y.left+Xa+Zo,Y.top+Y.height-(Ui+js))}return X}(),ni;(function(X){X[X.TOP_LEFT=0]="TOP_LEFT",X[X.TOP_RIGHT=1]="TOP_RIGHT",X[X.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",X[X.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ni||(ni={}));var Va=function(X,G,J,Y,de){var Ce=4*((Math.sqrt(2)-1)/3),Fe=J*Ce,at=Y*Ce,rt=X+J,It=G+Y;switch(de){case ni.TOP_LEFT:return new eo(new zn(X,It),new zn(X,It-at),new zn(rt-Fe,G),new zn(rt,G));case ni.TOP_RIGHT:return new eo(new zn(X,G),new zn(X+Fe,G),new zn(rt,It-at),new zn(rt,It));case ni.BOTTOM_RIGHT:return new eo(new zn(rt,G),new zn(rt,G+at),new zn(X+Fe,It),new zn(X,It));case ni.BOTTOM_LEFT:default:return new eo(new zn(rt,It),new zn(rt-Fe,It),new zn(X,G+at),new zn(X,G))}},Es=function(X){return[X.topLeftBorderBox,X.topRightBorderBox,X.bottomRightBorderBox,X.bottomLeftBorderBox]},wo=function(X){return[X.topLeftContentBox,X.topRightContentBox,X.bottomRightContentBox,X.bottomLeftContentBox]},Ll=function(X){return[X.topLeftPaddingBox,X.topRightPaddingBox,X.bottomRightPaddingBox,X.bottomLeftPaddingBox]},al=function(){function X(G,J,Y){this.offsetX=G,this.offsetY=J,this.matrix=Y,this.type=0,this.target=2|4}return X}(),zs=function(){function X(G,J){this.path=G,this.target=J,this.type=1}return X}(),Cl=function(){function X(G){this.opacity=G,this.type=2,this.target=2|4}return X}(),Jo=function(X){return X.type===0},wl=function(X){return X.type===1},Eu=function(X){return X.type===2},ac=function(X,G){return X.length===G.length?X.some(function(J,Y){return J===G[Y]}):!1},hc=function(X,G,J,Y,de){return X.map(function(Ce,Fe){switch(Fe){case 0:return Ce.add(G,J);case 1:return Ce.add(G+Y,J);case 2:return Ce.add(G+Y,J+de);case 3:return Ce.add(G,J+de)}return Ce})},ic=function(){function X(G){this.element=G,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return X}(),oc=function(){function X(G,J){if(this.container=G,this.parent=J,this.effects=[],this.curves=new Dl(this.container),this.container.styles.opacity<1&&this.effects.push(new Cl(this.container.styles.opacity)),this.container.styles.transform!==null){var Y=this.container.bounds.left+this.container.styles.transformOrigin[0].number,de=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Ce=this.container.styles.transform;this.effects.push(new al(Y,de,Ce))}if(this.container.styles.overflowX!==0){var Fe=Es(this.curves),at=Ll(this.curves);ac(Fe,at)?this.effects.push(new zs(Fe,2|4)):(this.effects.push(new zs(Fe,2)),this.effects.push(new zs(at,4)))}}return X.prototype.getEffects=function(G){for(var J=[2,3].indexOf(this.container.styles.position)===-1,Y=this.parent,de=this.effects.slice(0);Y;){var Ce=Y.effects.filter(function(rt){return!wl(rt)});if(J||Y.container.styles.position!==0||!Y.parent){if(de.unshift.apply(de,Ce),J=[2,3].indexOf(Y.container.styles.position)===-1,Y.container.styles.overflowX!==0){var Fe=Es(Y.curves),at=Ll(Y.curves);ac(Fe,at)||de.unshift(new zs(at,2|4))}}else de.unshift.apply(de,Ce);Y=Y.parent}return de.filter(function(rt){return zt(rt.target,G)})},X}(),nc=function(X,G,J,Y){X.container.elements.forEach(function(de){var Ce=zt(de.flags,4),Fe=zt(de.flags,2),at=new oc(de,X);zt(de.styles.display,2048)&&Y.push(at);var rt=zt(de.flags,8)?[]:Y;if(Ce||Fe){var It=Ce||de.styles.isPositioned()?J:G,Ft=new ic(at);if(de.styles.isPositioned()||de.styles.opacity<1||de.styles.isTransformed()){var nn=de.styles.zIndex.order;if(nn<0){var un=0;It.negativeZIndex.some(function(Qn,Ar){return nn>Qn.element.container.styles.zIndex.order?(un=Ar,!1):un>0}),It.negativeZIndex.splice(un,0,Ft)}else if(nn>0){var Sr=0;It.positiveZIndex.some(function(Qn,Ar){return nn>=Qn.element.container.styles.zIndex.order?(Sr=Ar+1,!1):Sr>0}),It.positiveZIndex.splice(Sr,0,Ft)}else It.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ft)}else de.styles.isFloating()?It.nonPositionedFloats.push(Ft):It.nonPositionedInlineLevel.push(Ft);nc(at,Ft,Ce?Ft:J,rt)}else de.styles.isInlineLevel()?G.inlineLevel.push(at):G.nonInlineLevel.push(at),nc(at,G,J,rt);zt(de.flags,8)&&sc(de,rt)})},sc=function(X,G){for(var J=X instanceof tu?X.start:1,Y=X instanceof tu?X.reversed:!1,de=0;de0&&J.intrinsicHeight>0){var Ce=Gu(J),Fe=Ll(Y);this.path(Fe),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(de,0,0,J.intrinsicWidth,J.intrinsicHeight,Ce.left,Ce.top,Ce.width,Ce.height),this.ctx.restore()}},G.prototype.renderNodeContent=function(J){return k(this,void 0,void 0,function(){var Y,de,Ce,Fe,at,rt,It,It,Ft,nn,un,Sr,Qn,Ar,va,wr,Br,bi,Ja,It,Pi,Qn,wr;return _(this,function(Or){switch(Or.label){case 0:this.applyEffects(J.getEffects(4)),Y=J.container,de=J.curves,Ce=Y.styles,Fe=0,at=Y.textNodes,Or.label=1;case 1:return Fe0&&Br>0&&(bi=Ce.ctx.createPattern(_s,"repeat"),Ce.renderRepeat(Qn,bi,Ar,va))):ia(Ft)&&(fl=rc(J,Y,[null,null,null]),Qn=fl[0],Ml=fl[1],Pl=fl[2],wr=fl[3],Br=fl[4],Ul=Ft.position.length===0?[it]:Ft.position,Ar=ht(Ul[0],wr),va=ht(Ul[Ul.length-1],Br),Vl=yn(Ft,Ar,va,wr,Br),pl=Vl[0],Nl=Vl[1],pl>0&&Nl>0&&(Xl=Ce.ctx.createRadialGradient(Ml+Ar,Pl+va,0,Ml+Ar,Pl+va,pl),hr(Ft.stops,pl*2).forEach(function(_u){return Xl.addColorStop(_u.stop,Ht(_u.color))}),Ce.path(Qn),Ce.ctx.fillStyle=Xl,pl!==Nl?(Yl=J.bounds.left+.5*J.bounds.width,xl=J.bounds.top+.5*J.bounds.height,Jl=Nl/pl,Tl=1/Jl,Ce.ctx.save(),Ce.ctx.translate(Yl,xl),Ce.ctx.transform(1,0,0,Jl,0,0),Ce.ctx.translate(-Yl,-xl),Ce.ctx.fillRect(Ml,Tl*(Pl-xl)+xl,wr,Br*Tl),Ce.ctx.restore()):Ce.ctx.fill())),uu.label=6;case 6:return Y--,[2]}})},Ce=this,Fe=0,at=J.styles.backgroundImage.slice(0).reverse(),It.label=1;case 1:return Fe0?Ft.style===2?[4,this.renderDashedDottedBorder(Ft.color,Ft.width,at,J.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return un.sent(),[3,11];case 5:return Ft.style===3?[4,this.renderDashedDottedBorder(Ft.color,Ft.width,at,J.curves,3)]:[3,7];case 6:return un.sent(),[3,11];case 7:return Ft.style===4?[4,this.renderDoubleBorder(Ft.color,Ft.width,at,J.curves)]:[3,9];case 8:return un.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Ft.color,at,J.curves)];case 10:un.sent(),un.label=11;case 11:at++,un.label=12;case 12:return rt++,[3,3];case 13:return[2]}})})},G.prototype.renderDashedDottedBorder=function(J,Y,de,Ce,Fe){return k(this,void 0,void 0,function(){var at,rt,It,Ft,nn,un,Sr,Qn,Ar,va,wr,Br,bi,Ja,Pi,Or,Pi,Or;return _(this,function(Ii){return this.ctx.save(),at=mc(Ce,de),rt=lc(Ce,de),Fe===2&&(this.path(rt),this.ctx.clip()),to(rt[0])?(It=rt[0].start.x,Ft=rt[0].start.y):(It=rt[0].x,Ft=rt[0].y),to(rt[1])?(nn=rt[1].end.x,un=rt[1].end.y):(nn=rt[1].x,un=rt[1].y),de===0||de===2?Sr=Math.abs(It-nn):Sr=Math.abs(Ft-un),this.ctx.beginPath(),Fe===3?this.formatPath(at):this.formatPath(rt.slice(0,2)),Qn=Y<3?Y*3:Y*2,Ar=Y<3?Y*2:Y,Fe===3&&(Qn=Y,Ar=Y),va=!0,Sr<=Qn*2?va=!1:Sr<=Qn*2+Ar?(wr=Sr/(2*Qn+Ar),Qn*=wr,Ar*=wr):(Br=Math.floor((Sr+Ar)/(Qn+Ar)),bi=(Sr-Br*Qn)/(Br-1),Ja=(Sr-(Br+1)*Qn)/Br,Ar=Ja<=0||Math.abs(Ar-bi)0?[].concat(Object(Q.a)(c),Object(Q.a)(a(u).map(function(E){return Object(I.a)({fixed:o},E)}))):[].concat(Object(Q.a)(c),[Object(I.a)(Object(I.a)({},d),{},{fixed:o})])},[])}function t(i){for(var c=!0,d=0;d=0;u-=1){var E=i[u];if(o&&E.fixed!=="right")o=!1;else if(!o&&E.fixed==="right"){Object(M.a)(!1,"Index ".concat(u+1," of `columns` missing `fixed='right'` prop."));break}}}function A(i){return i.map(function(c){var d=c.fixed,f=Object(k.a)(c,["fixed"]),o=d;return d==="left"?o="right":d==="right"&&(o="left"),Object(I.a)({fixed:o},f)})}function l(i,c){var d=i.prefixCls,f=i.columns,o=i.children,u=i.expandable,E=i.expandedKeys,R=i.getRowKey,w=i.onTriggerExpand,P=i.expandIcon,C=i.rowExpandable,b=i.expandIconColumnIndex,s=i.direction,h=i.expandRowByClick,m=_.useMemo(function(){return f||p(o)},[f,o]),x=_.useMemo(function(){if(u){var U,N=b||0,S=m[N],H=(U={},Object(Z.a)(U,n.a,{className:"".concat(d,"-expand-icon-col")}),Object(Z.a)(U,"title",""),Object(Z.a)(U,"fixed",S?S.fixed:null),Object(Z.a)(U,"className","".concat(d,"-row-expand-icon-cell")),Object(Z.a)(U,"render",function(z,K,$){var te=R(K,$),fe=E.has(te),Ae=C?C(K):!0,ce=P({prefixCls:d,expanded:fe,expandable:Ae,record:K,onExpand:w});return h?_.createElement("span",{onClick:function(ye){return ye.stopPropagation()}},ce):ce}),U),F=m.slice();return N>=0&&F.splice(N,0,H),F}return m},[u,m,R,E,P,s]),g=_.useMemo(function(){var U=x;return c&&(U=c(U)),U.length||(U=[{render:function(){return null}}]),U},[c,x,s]),y=_.useMemo(function(){return s==="rtl"?A(a(g)):a(g)},[g,s]);return[g,y]}ee.b=l},wYyv:function(Be,ee,v){"use strict";const Z=(I,k,_)=>{const O=k<0?I.length+k:k;if(O>=0&&O(I=[...I],Z(I,k,_),I);Be.exports=Q,Be.exports.mutate=Z},wzkS:function(Be,ee,v){"use strict";v.d(ee,"c",function(){return _}),v.d(ee,"b",function(){return O}),v.d(ee,"d",function(){return M}),v.d(ee,"a",function(){return n}),v.d(ee,"e",function(){return p});var Z=v("9og8"),Q=v("WmNS"),I=v.n(Q),k=v("ErOA");function _(a){return Object(k.c)("libraries/".concat(a,".json"))}function O(){return Object(k.c)("library_tags.json")}function M(a){return T.apply(this,arguments)}function T(){return T=Object(Z.a)(I.a.mark(function a(t){var A;return I.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(k.b)("attachments/".concat(t,".json"));case 2:return A=i.sent,i.abrupt("return",A.status===0);case 4:case"end":return i.stop()}},a)})),T.apply(this,arguments)}function n(a){return Object(k.f)("libraries.json",a)}function p(a,t){return Object(k.g)("libraries/".concat(a,".json"),t)}},x6Kt:function(Be,ee,v){var Z=v("y+Vt"),Q=v("VpOo"),I=v("nPnh"),k=I.subPixelOptimizeRect,_={},O=Z.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(M,T){var n,p,a,t;this.subPixelOptimize?(k(_,T,this.style),n=_.x,p=_.y,a=_.width,t=_.height,_.r=T.r,T=_):(n=T.x,p=T.y,a=T.width,t=T.height),T.r?Q.buildPath(M,T):M.rect(n,p,a,t),M.closePath();return}});Be.exports=O},"y+Vt":function(Be,ee,v){var Z=v("Gev7"),Q=v("bYtY"),I=v("IMiH"),k=v("2DNl"),_=v("3C/r"),O=_.prototype.getCanvasPattern,M=Math.abs,T=new I(!0);function n(a){Z.call(this,a),this.path=null}n.prototype={constructor:n,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(a,t){var A=this.style,l=this.path||T,i=A.hasStroke(),c=A.hasFill(),d=A.fill,f=A.stroke,o=c&&!!d.colorStops,u=i&&!!f.colorStops,E=c&&!!d.image,R=i&&!!f.image;if(A.bind(a,this,t),this.setTransform(a),this.__dirty){var w;o&&(w=w||this.getBoundingRect(),this._fillGradient=A.getGradient(a,d,w)),u&&(w=w||this.getBoundingRect(),this._strokeGradient=A.getGradient(a,f,w))}o?a.fillStyle=this._fillGradient:E&&(a.fillStyle=O.call(d,a)),u?a.strokeStyle=this._strokeGradient:R&&(a.strokeStyle=O.call(f,a));var P=A.lineDash,C=A.lineDashOffset,b=!!a.setLineDash,s=this.getGlobalScale();if(l.setScale(s[0],s[1],this.segmentIgnoreThreshold),this.__dirtyPath||P&&!b&&i?(l.beginPath(a),P&&!b&&(l.setLineDash(P),l.setLineDashOffset(C)),this.buildPath(l,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(a.beginPath(),this.path.rebuildPath(a)),c)if(A.fillOpacity!=null){var h=a.globalAlpha;a.globalAlpha=A.fillOpacity*A.opacity,l.fill(a),a.globalAlpha=h}else l.fill(a);if(P&&b&&(a.setLineDash(P),a.lineDashOffset=C),i)if(A.strokeOpacity!=null){var h=a.globalAlpha;a.globalAlpha=A.strokeOpacity*A.opacity,l.stroke(a),a.globalAlpha=h}else l.stroke(a);P&&b&&a.setLineDash([]),A.text!=null&&(this.restoreTransform(a),this.drawRectText(a,this.getBoundingRect()))},buildPath:function(a,t,A){},createPathProxy:function(){this.path=new I},getBoundingRect:function(){var a=this._rect,t=this.style,A=!a;if(A){var l=this.path;l||(l=this.path=new I),this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape,!1)),a=l.getBoundingRect()}if(this._rect=a,t.hasStroke()){var i=this._rectWithStroke||(this._rectWithStroke=a.clone());if(this.__dirty||A){i.copy(a);var c=t.lineWidth,d=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(c=Math.max(c,this.strokeContainThreshold||4)),d>1e-10&&(i.width+=c/d,i.height+=c/d,i.x-=c/d/2,i.y-=c/d/2)}return i}return a},contain:function(a,t){var A=this.transformCoordToLocal(a,t),l=this.getBoundingRect(),i=this.style;if(a=A[0],t=A[1],l.contain(a,t)){var c=this.path.data;if(i.hasStroke()){var d=i.lineWidth,f=i.strokeNoScale?this.getLineScale():1;if(f>1e-10&&(i.hasFill()||(d=Math.max(d,this.strokeContainThreshold)),k.containStroke(c,d/f,a,t)))return!0}if(i.hasFill())return k.contain(c,a,t)}return!1},dirty:function(a){a==null&&(a=!0),a&&(this.__dirtyPath=a,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(a){return this.animate("shape",a)},attrKV:function(a,t){a==="shape"?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):Z.prototype.attrKV.call(this,a,t)},setShape:function(a,t){var A=this.shape;if(A){if(Q.isObject(a))for(var l in a)a.hasOwnProperty(l)&&(A[l]=a[l]);else A[a]=t;this.dirty(!0)}return this},getLineScale:function(){var a=this.transform;return a&&M(a[0]-1)>1e-10&&M(a[3]-1)>1e-10?Math.sqrt(M(a[0]*a[3]-a[2]*a[1])):1}},n.extend=function(a){var t=function(l){n.call(this,l),a.style&&this.style.extendFrom(a.style,!1);var i=a.shape;if(i){this.shape=this.shape||{};var c=this.shape;for(var d in i)!c.hasOwnProperty(d)&&i.hasOwnProperty(d)&&(c[d]=i[d])}a.init&&a.init.call(this,l)};Q.inherits(t,n);for(var A in a)A!=="style"&&A!=="shape"&&(t.prototype[A]=a[A]);return t},Q.inherits(n,Z);var p=n;Be.exports=p},"y0+3":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return a}),v.d(ee,"b",function(){return A});var Z=/margin|padding|width|height|max|min|offset/,Q={left:!0,top:!0},I={cssFloat:1,styleFloat:1,float:1};function k(l){return l.nodeType===1?l.ownerDocument.defaultView.getComputedStyle(l,null):{}}function _(l,i,c){if(i=i.toLowerCase(),c==="auto"){if(i==="height")return l.offsetHeight;if(i==="width")return l.offsetWidth}return i in Q||(Q[i]=Z.test(i)),Q[i]?parseFloat(c)||0:c}function O(l,i){var c=arguments.length,d=k(l);return i=I[i]?"cssFloat"in l.style?"cssFloat":"styleFloat":i,c===1?d:_(l,i,d[i]||l.style[i])}function M(l,i,c){var d=arguments.length;if(i=I[i]?"cssFloat"in l.style?"cssFloat":"styleFloat":i,d===3)return typeof c=="number"&&Z.test(i)&&(c="".concat(c,"px")),l.style[i]=c,c;for(var f in i)i.hasOwnProperty(f)&&M(l,f,i[f]);return k(l)}function T(l){return l===document.body?document.documentElement.clientWidth:l.offsetWidth}function n(l){return l===document.body?window.innerHeight||document.documentElement.clientHeight:l.offsetHeight}function p(){var l=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),i=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:l,height:i}}function a(){var l=document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight;return{width:l,height:i}}function t(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function A(l){var i=l.getBoundingClientRect(),c=document.documentElement;return{left:i.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||document.body.clientLeft||0),top:i.top+(window.pageYOffset||c.scrollTop)-(c.clientTop||document.body.clientTop||0)}}},"y1J/":function(Be,ee,v){Be.exports=v.p+"static/yz.688d901a.png"},y23F:function(Be,ee){function v(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}v.prototype={constructor:v,_dragStart:function(I){for(var k=I.target;k&&!k.draggable;)k=k.parent;k&&(this._draggingTarget=k,k.dragging=!0,this._x=I.offsetX,this._y=I.offsetY,this.dispatchToElement(Z(k,I),"dragstart",I.event))},_drag:function(I){var k=this._draggingTarget;if(k){var _=I.offsetX,O=I.offsetY,M=_-this._x,T=O-this._y;this._x=_,this._y=O,k.drift(M,T,I),this.dispatchToElement(Z(k,I),"drag",I.event);var n=this.findHover(_,O,k).target,p=this._dropTarget;this._dropTarget=n,k!==n&&(p&&n!==p&&this.dispatchToElement(Z(p,I),"dragleave",I.event),n&&n!==p&&this.dispatchToElement(Z(n,I),"dragenter",I.event))}},_dragEnd:function(I){var k=this._draggingTarget;k&&(k.dragging=!1),this.dispatchToElement(Z(k,I),"dragend",I.event),this._dropTarget&&this.dispatchToElement(Z(this._dropTarget,I),"drop",I.event),this._draggingTarget=null,this._dropTarget=null}};function Z(I,k){return{target:I,topTarget:k&&k.topTarget}}var Q=v;Be.exports=Q},y5JW:function(Be,ee,v){"use strict";v.d(ee,"c",function(){return c}),v.d(ee,"a",function(){return d});var Z=v("DZo9"),Q=v("8z0m"),I=v("+L6B"),k=v("2/Rp"),_=v("9og8"),O=v("miYZ"),M=v("tsqr"),T=v("k1fw"),n=v("oBTY"),p=v("WmNS"),a=v.n(p),t=v("q1tI"),A=v.n(t),l=v("m3rI"),i=v("wzkS"),c="\u3000\u3000";function d(f){var o=["Bytes","KB","MB","GB","TB"];if(f==0)return"0 Byte";var u=parseInt(""+Math.floor(Math.log(f)/Math.log(1024)),10);return(f/Math.pow(1024,u)).toFixed(1)+" "+o[u]}ee.b=function(f){var o=f.value,u=o===void 0?[]:o,E=f.action,R=f.onChange,w=f.className,P=f.maxSize,C=P===void 0?150:P,b=f.title,s=b===void 0?"\u6587\u4EF6\u4E0A\u4F20":b,h=f.accept,m=h===void 0?null:h,x={multiple:!1,fileList:u,accept:m,withCredentials:!0,beforeUpload:function(U){var N=U.size/1024/1024;return!0},action:"".concat(l.a.API_SERVER,"/api/attachments.json"),onChange:function(U){var N,S,H=Object(n.a)(U.fileList);if(H=H.map(function(z){return z.name.indexOf(c)===-1&&(z.name="".concat(z.name).concat(c).concat(d(z.size))),Object(T.a)({},z)}),U.file.status==="done"&&((N=U.file)===null||N===void 0||((S=N.response)===null||S===void 0)?void 0:S.status)===-1){var F,B;M.b.error((F=U.file)===null||F===void 0||((B=F.response)===null||B===void 0)?void 0:B.message),R([]);return}R(H)},onRemove:function(){var y=Object(_.a)(a.a.mark(function N(S){var H,F,B;return a.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(H=S.size/1024/1024,!(S.status==="uploading")){K.next=3;break}return K.abrupt("return",!0);case 3:if(H0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:u.length>0,ghost:!0},s),A.a.createElement("span",{onClick:g,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",C,"M)"," ")))}},"yTi+":function(Be,ee,v){Be.exports=v.p+"static/AssistantCode3.fdd8db3c.jpeg"},yslc:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1XE5JUNfxTqEZqC/C7Zgumeh96EvvqMP6ppNpvSCTM/ZxbAz222lousqGtIAnZkPIMETThmndmM1y/scGvB30KfFNcPH7YbLbRjwokVWHJ5v/CzltMgWq112z5HGXgQnDdVeFW2cSEmdFcU6nUfgpBJPrPsBwPhqmCsSM/EA9E3CtaXXPoJk09+4XIk9qfQrwuKhaFLNiLVodh7tQS3HX0HpB735Lj+WNTOu0Ojl0yViC/6u88MMqG7opDkaWCo2AJCBvnMtB8MqMFhQdoIPNPmDsH6+vIijCxegjrwDmvzl9BV4LAtYwr+FJEBEzHj1iML8EvVqYY2MKFL3/nSTV2sbTuWGw2jaReAbtI3VxqLuQkDMC91mGBsXXkhRhUvFcQeBBViNWENlcxocxdeSBqInRXHMLpkmU3lfbRtsbnjk8KzdgdetvlmKDVdBZ1COEuvJA/F7KSBwsfPnVyLdy9Suq6lOLUWafULXbGITYTHwZrzYos1yc9GdE8oPJDdHnXcHhCS7En2lsgzJ2kw8pLvA094YaG5teIoBoRnYFunqT43J6koz+E8mX6jLGz7KJ6KtxzvpwvQJ/5Y5XN9nhp4NLo7empTPcqepIlsaOcHF/fgnMnoUbmi6nNYUZbvUd7mzCT9iG5tfcHMvjDzOwFybYhsTmQe1PVGygPClOGzsl+F3P4UOl0jrGyfiWFRljXCBjptKlnqtbfGA3hNsixLfwyZsf4N3bO6zCDgCrTkP6FTpAbdQyBYA0JUgQbcUXvoiEsFaU26hHvwUvJgbK84ihHHF9sU6RvWDlszpgjPEgr/biNYI19jM3FJ0kRgY4dJoGVo+rxMj3ElnzasDai/flBkZ3xeZoDJyXpBCv6sQj9XZ4TBjbswUhWC/uEWP/qeqyWgmFylm0KTkRIUBWUKnTKj180AIfOl6KjmtiHVYnRB6gg8l3Cn0Pz/lO7CtFNfwtzoT2HtdRMwIvom6KtOo8/h+TafSYnZKnT6h2a/5rCvR+wcfUm7sciK66tgoVMG87PfBfCslJ3WHLZeTByEl1Pux8byA3iw+GObKsVsGD0U1Q2fpj8uuDOt0ySrsYmxt+Dj9DHCrxNPrMD/6n3p/sDHhO4PVhvbJKvU0O9bBxCLq6MFUhgX5LBWOlVwtqv5r5RhyEkcgE8v/4LME595LXQ6HUoPimniDWnsS6dz9uHFi4V1gtWb4wtNtL2rywtsTDCh+8Kop2UL8yJgNn4Hgl6eFpEqHz23Yez+qkNzruaUH7QdhSfjbxWmG8+eWuu10B1VTH3p2zOm4O6IDFw0XUW3Q6/jnKkCAyM64dv6ub8v+McUL8Oqcj0Tej0D/l2M2vfUbzNTUcPvBSFtfelEsWW9FfoX7bPwaMzNmHtuK2af3SKp0F9NHir46GkaXbwUn5cbhJ/bqMNwW/h1biF2CI7D22kjhHxTT67GqbpymzI/V57EadMVJvQWETqttDC3B8zm70FIpNvelDAD3YRpnGa0uVvwqFhHdDrnzoztbZNneFQ3pAfHClv0P1X9YfMZ9TOPiukhPFtYuhtmO2/JS2e+Qhlf3QSBBirBl06/KWj61ngYg+0OjHkCu/Fisctv83C4ptRtMTZ1cUuRxBn0ugdByHqJrYoyNytxAOamDGsQ+oTYvlicPlaUDVeZ6W7pSbtRlrrsVrUfj/ujujYU/eTyzxh/YrnoehsLvetvr+FQzQW3NpjQ3VIkcYb8nH8D/PMSWxVlzl7o9Oz1hLhbGmwkayIxPLobCCH4+NK+Ji6/RE2E4BKk6aOLe5t8PuvMJlw2VzXYS9VEYVPHSeipTROemQkPNacCE7qobvM6c/PO0WkzC3SZMBPbgyNeN9/7gvZCt7f0z6T7hKkNPedyz7GFTSoS4168MSQJX3V8Cu2CYwQ7b5zfgdSgKDwe21sSoYudurANI+9141lJQ3YfEO6HQLiN5ErodIe05MYXhYNVT5xYicWXf/JJ6COiumFth4m4aq7BpJOrsLJMD+sGixQjulihe9ZZ3uVS7s6olS+9LhEg+wPl1TGuhP5A1A3Y0GESKvla0ANajq6RiRnRqddnb+dpGFvyiXCbiKaWFPrB6nNYXe/lcSZnsYe6Hoq6Cd21KQrfGSWLgmA4Qu+V3uXdOCF9KWdCp/7tbzOexoCITlh2aT+y/ljhsHIxQqcGgjm1zcZUSwqdHQGQXk8Wi/qchSC85QRUgCRnQl/UdiQmx/cXFqF3HX0PuyqLJRG6vZGWEPro6B7opU2Dofo0lrs5Siv2rMuo6JvRW9sWBdVnmhxzCIQu9/9i1KB7CjyxvVkcAMgdCb3xhYi/nlqP+aXfOW2p2BE9EIQuhnaxQhdjuyXy+lfollAY2wMxAq/14oV18RSvDsPxG2YLdzgXXPge00+vc9kfTOgtIVfv6/Sf0C3b/T8H4i2jJ+P64d20RxCi0qCGN2FMyTKsu1KEx2J6CrudI4uXurwKR+lmQvdedC1R0j9CP7IgBFdL6Pd+v5YA5arO+anDMSPBEjKyzFyFGLVWuE73t7NbMO/8dtAtek8uP3QLScJH9aEq7jz6nkdlGrerJeboYvqCTV08YSs/m17HmeBJ1ubMMy6mFz5pP06ocvaZzZh3fhueib8d76Q9DI7jsPzyr5hz9mscqXV/bsTXdvsqdHo5e//1M4RmeOpHF9NmJnR3bOl100DI2+6yNffnnYPb4Jfrn0eEOgTvl+7G1FNrGppA/wDoOZcgTi08O1pTiiM1F3DWZASNk0JHeHq7nm7b09v99H4//Z+O/nQbX8OpoIZKKB/CqaFVBWFdeRHWXil0CtNTodPIBF1DE1HF16GSr0MVqQM9M5OXPAQT4/oJ4TKSi/6Bi+ZKSSllQndFJ339ixnfBOJbp3dkTBXiqNDNkt6H56PaLvxbL20q5iQNAT2xSEd3X9PQ3z/AV8ZDkgj9SvdXEKpyfHHEemHD1/bal2dCd8YoDXFRCxpTLSAj6/YMTRVu7tAYLs584xRatCoUPbSp6BqSiFi1FtHqUISpgqHmOGHUpiM4PSKg4jjQf87S9FNf4oqLC8WejujU/u5Of2lyRp1e1th85SDevLDTL3ERmdAd9ezpvDCcr9gFkJ5SjyxS2qMiLndwRlzKOjy1Ra/RxWvChdtF9pF67W3QIwR0Z7VxKjdX++0SNa2HXgAZG2O5DLai7FeUSjw18pQnqfL5/h1NW6LXLQch0h3mlgods8MYqGfAd6EbcmaC519jjDIGApkB34Sen3sfOPPm1hKgKJA7grXNvwx4L/SiWZ1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="},yxFR:function(Be,ee,v){var Z=v("y+Vt"),Q=v("nPnh"),I=Q.subPixelOptimizeLine,k={},_=Z.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(O,M){var T,n,p,a;this.subPixelOptimize?(I(k,M,this.style),T=k.x1,n=k.y1,p=k.x2,a=k.y2):(T=M.x1,n=M.y1,p=M.x2,a=M.y2);var t=M.percent;if(t===0)return;O.moveTo(T,n),t<1&&(p=T*(1-t)+p*t,a=n*(1-t)+a*t),O.lineTo(p,a)},pointAt:function(O){var M=this.shape;return[M.x1*(1-O)+M.x2*O,M.y1*(1-O)+M.y2*O]}});Be.exports=_},zarK:function(Be,ee,v){var Z=v("YH21"),Q=Z.addEventListener,I=Z.removeEventListener,k=Z.normalizeEvent,_=Z.getNativeEvent,O=v("bYtY"),M=v("H6uX"),T=v("ItGF"),n=300,p=T.domSupported,a=function(){var y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],U=["touchstart","touchend","touchmove"],N={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},S=O.map(y,function(H){var F=H.replace("mouse","pointer");return N.hasOwnProperty(F)?F:H});return{mouse:y,touch:U,pointer:S}}(),t={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function A(y){return y==="mousewheel"&&T.browser.firefox?"DOMMouseScroll":y}function l(y){var U=y.pointerType;return U==="pen"||U==="touch"}function i(y){y.touching=!0,y.touchTimer!=null&&(clearTimeout(y.touchTimer),y.touchTimer=null),y.touchTimer=setTimeout(function(){y.touching=!1,y.touchTimer=null},700)}function c(y){y&&(y.zrByTouch=!0)}function d(y,U){return k(y.dom,new o(y,U),!0)}function f(y,U){for(var N=U,S=!1;N&&N.nodeType!==9&&!(S=N.domBelongToZr||N!==U&&N===y.painterRoot);)N=N.parentNode;return S}function o(y,U){this.type=U.type,this.target=this.currentTarget=y.dom,this.pointerType=U.pointerType,this.clientX=U.clientX,this.clientY=U.clientY}var u=o.prototype;u.stopPropagation=u.stopImmediatePropagation=u.preventDefault=O.noop;var E={mousedown:function(y){y=k(this.dom,y),this._mayPointerCapture=[y.zrX,y.zrY],this.trigger("mousedown",y)},mousemove:function(y){y=k(this.dom,y);var U=this._mayPointerCapture;U&&(y.zrX!==U[0]||y.zrY!==U[1])&&s(this,!0),this.trigger("mousemove",y)},mouseup:function(y){y=k(this.dom,y),s(this,!1),this.trigger("mouseup",y)},mouseout:function(y){y=k(this.dom,y),this._pointerCapturing&&(y.zrEventControl="no_globalout");var U=y.toElement||y.relatedTarget;y.zrIsToLocalDOM=f(this,U),this.trigger("mouseout",y)},touchstart:function(y){y=k(this.dom,y),c(y),this._lastTouchMoment=new Date,this.handler.processGesture(y,"start"),E.mousemove.call(this,y),E.mousedown.call(this,y)},touchmove:function(y){y=k(this.dom,y),c(y),this.handler.processGesture(y,"change"),E.mousemove.call(this,y)},touchend:function(y){y=k(this.dom,y),c(y),this.handler.processGesture(y,"end"),E.mouseup.call(this,y),+new Date-this._lastTouchMoment