You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Paths__Detail__id.0f03f7...

458 lines
2.3 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[182,3,5,6,7,8,9,10,16,18],{"+NIl":function(Ge,fe,R){(function(se){se(R("VrN/"))})(function(se){"use strict";se.defineMode("stex",function(G,M){"use strict";function v(s,o){s.cmdState.push(o)}function b(s){return s.cmdState.length>0?s.cmdState[s.cmdState.length-1]:null}function C(s){var o=s.cmdState.pop();o&&o.closeBracket()}function w(s){for(var o=s.cmdState,f=o.length-1;f>=0;f--){var l=o[f];if(l.name=="DEFAULT")continue;return l}return{styleIdentifier:function(){return null}}}function m(s,o,f){return function(){this.name=s,this.bracketNo=0,this.style=o,this.styles=f,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var d={};d.importmodule=m("importmodule","tag",["string","builtin"]),d.documentclass=m("documentclass","tag",["","atom"]),d.usepackage=m("usepackage","tag",["atom"]),d.begin=m("begin","tag",["atom"]),d.end=m("end","tag",["atom"]),d.label=m("label","tag",["atom"]),d.ref=m("ref","tag",["atom"]),d.eqref=m("eqref","tag",["atom"]),d.cite=m("cite","tag",["atom"]),d.bibitem=m("bibitem","tag",["atom"]),d.Bibitem=m("Bibitem","tag",["atom"]),d.RBibitem=m("RBibitem","tag",["atom"]),d.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function i(s,o){s.f=o}function n(s,o){var f;if(s.match(/^\\[a-zA-Z@]+/)){var l=s.current().slice(1);return f=d.hasOwnProperty(l)?d[l]:d.DEFAULT,f=new f,v(o,f),i(o,a),f.style}if(s.match(/^\\[$&%#{}_]/))return"tag";if(s.match(/^\\[,;!\/\\]/))return"tag";if(s.match("\\["))return i(o,function(c,A){return e(c,A,"\\]")}),"keyword";if(s.match("\\("))return i(o,function(c,A){return e(c,A,"\\)")}),"keyword";if(s.match("$$"))return i(o,function(c,A){return e(c,A,"$$")}),"keyword";if(s.match("$"))return i(o,function(c,A){return e(c,A,"$")}),"keyword";var r=s.next();if(r=="%")return s.skipToEnd(),"comment";if(r=="}"||r=="]"){if(f=b(o),f)f.closeBracket(r),i(o,a);else return"error";return"bracket"}else return r=="{"||r=="["?(f=d.DEFAULT,f=new f,v(o,f),"bracket"):/\d/.test(r)?(s.eatWhile(/[\w.%]/),"atom"):(s.eatWhile(/[\w\-_]/),f=w(o),f.name=="begin"&&(f.argument=s.current()),f.styleIdentifier())}function e(s,o,f){if(s.eatSpace())return null;if(f&&s.match(f))return i(o,n),"keyword";if(s.match(/^\\[a-zA-Z@]+/))return"tag";if(s.match(/^[a-zA-Z]+/))return"variable-2";if(s.match(/^\\[$&%#{}_]/))return"tag";if(s.match(/^\\[,;!\/]/))return"tag";if(s.match(/^[\^_&]/))return"tag";if(s.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(s.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var l=s.next();return l=="{"||l=="}"||l=="["||l=="]"||l=="("||l==")"?"bracket":l=="%"?(s.skipToEnd(),"comment"):"error"}function a(s,o){var f=s.peek(),l;return f=="{"||f=="["?(l=b(o),l.openBracket(f),s.eat(f),i(o,n),"bracket"):/[ \t\r]/.test(f)?(s.eat(f),null):(i(o,n),C(o),n(s,o))}return{startState:function(){var s=M.inMathMode?function(o,f){return e(o,f)}:n;return{cmdState:[],f:s}},copyState:function(s){return{cmdState:s.cmdState.slice(),f:s.f}},token:function(s,o){return o.f(s,o)},blankLine:function(s){s.f=n,s.cmdState.length=0},lineComment:"%"}}),se.defineMIME("text/x-stex","stex"),se.defineMIME("text/x-latex","stex")})},"+ua5":function(Ge,fe,R){},"/GNS":function(Ge,fe,R){Ge.exports=R.p+"static/search1.c4136dd4.png"},"/cxE":function(Ge,fe,R){"use strict";R.d(fe,"e",function(){return M}),R.d(fe,"f",function(){return v}),R.d(fe,"g",function(){return b}),R.d(fe,"d",function(){return w}),R.d(fe,"a",function(){return m}),R.d(fe,"b",function(){return d}),R.d(fe,"c",function(){return i});var se=function(){function n(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(function(){throw e.stack?new Error(e.message+`
`+e.stack):e},0)}}return n.prototype.emit=function(e){this.listeners.forEach(function(a){a(e)})},n.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},n.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},n}(),G=new se;function M(n){w(n)||G.onUnexpectedError(n);return}function v(n){w(n)||G.onUnexpectedExternalError(n);return}function b(n){if(n instanceof Error){var e=n.name,a=n.message,s=n.stacktrace||n.stack;return{$isError:!0,name:e,message:a,stack:s}}return n}var C="Canceled";function w(n){return n instanceof Error&&n.name===C&&n.message===C}function m(){var n=new Error(C);return n.name=n.message,n}function d(n){return n?new Error("Illegal argument: "+n):new Error("Illegal argument")}function i(n){return n?new Error("Illegal state: "+n):new Error("Illegal state")}},"06Qe":function(Ge,fe,R){var se=R("ItGF"),G="urn:schemas-microsoft-com:vml",M=typeof window=="undefined"?null:window,v=!1,b=M&&M.document;function C(d){return w(d)}var w;if(b&&!se.canvasSupported)try{!b.namespaces.zrvml&&b.namespaces.add("zrvml",G),w=function(d){return b.createElement("<zrvml:"+d+' class="zrvml">')}}catch(d){w=function(i){return b.createElement("<"+i+' xmlns="'+G+'" class="zrvml">')}}function m(){if(v||!b)return;v=!0;var d=b.styleSheets;d.length<31?b.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):d[0].addRule(".zrvml","behavior:url(#default#VML)")}fe.doc=b,fe.createNode=C,fe.initVML=m},"07cG":function(Ge,fe,R){Ge.exports={ldsRing:"ldsRing___2F8W7",idsRingWrapper:"idsRingWrapper___fC2cF",ldsring:"ldsring___3A88y"}},"0s+r":function(Ge,fe,R){var se=R("bYtY"),G=R("QBsz"),M=R("y23F"),v=R("H6uX"),b=R("YH21"),C=R("C0SR"),w="silent";function m(f,l,r){return{type:f,event:r,target:l.target,topTarget:l.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:d}}function d(){b.stop(this.event)}function i(){}i.prototype.dispose=function(){};var n=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=function(f,l,r,c){v.call(this),this.storage=f,this.painter=l,this.painterRoot=c,r=r||new i,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,M.call(this),this.setHandlerProxy(r)};e.prototype={constructor:e,setHandlerProxy:function(f){this.proxy&&this.proxy.dispose(),f&&(se.each(n,function(l){f.on&&f.on(l,this[l],this)},this),f.handler=this),this.proxy=f},mousemove:function(f){var l=f.zrX,r=f.zrY,c=s(this,l,r),A=this._hovered,p=A.target;p&&!p.__zr&&(A=this.findHover(A.x,A.y),p=A.target);var x=this._hovered=c?{x:l,y:r}:this.findHover(l,r),_=x.target,B=this.proxy;B.setCursor&&B.setCursor(_?_.cursor:"default"),p&&_!==p&&this.dispatchToElement(A,"mouseout",f),this.dispatchToElement(x,"mousemove",f),_&&_!==p&&this.dispatchToElement(x,"mouseover",f)},mouseout:function(f){var l=f.zrEventControl,r=f.zrIsToLocalDOM;l!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",f),l!=="no_globalout"&&(!r&&this.trigger("globalout",{type:"globalout",event:f}))},resize:function(f){this._hovered={}},dispatch:function(f,l){var r=this[f];r&&r.call(this,l)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(f){var l=this.proxy;l.setCursor&&l.setCursor(f)},dispatchToElement:function(f,l,r){f=f||{};var c=f.target;if(c&&c.silent)return;for(var A="on"+l,p=m(l,f,r);c&&!(c[A]&&(p.cancelBubble=c[A].call(c,p)),c.trigger(l,p),c=c.parent,p.cancelBubble););p.cancelBubble||(this.trigger(l,p),this.painter&&this.painter.eachOtherLayer(function(x){typeof x[A]=="function"&&x[A].call(x,p),x.trigger&&x.trigger(l,p)}))},findHover:function(f,l,r){for(var c=this.storage.getDisplayList(),A={x:f,y:l},p=c.length-1;p>=0;p--){var x;if(c[p]!==r&&!c[p].ignore&&(x=a(c[p],f,l))&&(!A.topTarget&&(A.topTarget=c[p]),x!==w)){A.target=c[p];break}}return A},processGesture:function(f,l){this._gestureMgr||(this._gestureMgr=new C);var r=this._gestureMgr;l==="start"&&r.clear();var c=r.recognize(f,this.findHover(f.zrX,f.zrY,null).target,this.proxy.dom);if(l==="end"&&r.clear(),c){var A=c.type;f.gestureEvent=A,this.dispatchToElement({target:c.target},A,c.event)}}},se.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(f){e.prototype[f]=function(l){var r=l.zrX,c=l.zrY,A=s(this,r,c),p,x;if((f!=="mouseup"||!A)&&(p=this.findHover(r,c),x=p.target),f==="mousedown")this._downEl=x,this._downPoint=[l.zrX,l.zrY],this._upEl=x;else if(f==="mouseup")this._upEl=x;else if(f==="click"){if(this._downEl!==this._upEl||!this._downPoint||G.dist(this._downPoint,[l.zrX,l.zrY])>4)return;this._downPoint=null}this.dispatchToElement(p,f,l)}});function a(f,l,r){if(f[f.rectHover?"rectContain":"contain"](l,r)){for(var c=f,A;c;){if(c.clipPath&&!c.clipPath.contain(l,r))return!1;c.silent&&(A=!0),c=c.parent}return A?w:!0}return!1}function s(f,l,r){var c=f.painter;return l<0||l>c.getWidth()||r<0||r>c.getHeight()}se.mixin(e,v),se.mixin(e,M);var o=e;Ge.exports=o},"19Vz":function(Ge,fe,R){(function(se){se(R("VrN/"))})(function(se){se.defineOption("placeholder","",function(m,d,i){var n=i&&i!=se.Init;if(d&&!n)m.on("blur",b),m.on("change",C),m.on("swapDoc",C),se.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){v(m)}),C(m);else if(!d&&n){m.off("blur",b),m.off("change",C),m.off("swapDoc",C),se.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),G(m);var e=m.getWrapperElement();e.className=e.className.replace(" CodeMirror-empty","")}d&&!m.hasFocus()&&b(m)});function G(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function M(m){G(m);var d=m.state.placeholder=document.createElement("pre");d.style.cssText="height: 0; overflow: visible",d.style.direction=m.getOption("direction"),d.className="CodeMirror-placeholder CodeMirror-line-like";var i=m.getOption("placeholder");typeof i=="string"&&(i=document.createTextNode(i)),d.appendChild(i),m.display.lineSpace.insertBefore(d,m.display.lineSpace.firstChild)}function v(m){setTimeout(function(){var d=!1,i=m.getInputField();i.nodeName=="TEXTAREA"?d=!i.value:m.lineCount()==1&&(d=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),d?M(m):G(m)},20)}function b(m){w(m)&&M(m)}function C(m){var d=m.getWrapperElement(),i=w(m);d.className=d.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?M(m):G(m)}function w(m){return m.lineCount()===1&&m.getLine(0)===""}})},"1Jh7":function(Ge,fe,R){var se=R("y+Vt"),G=R("T6xi"),M=se.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(v,b){G.buildPath(v,b,!1)}});Ge.exports=M},"1MYJ":function(Ge,fe,R){var se=R("y+Vt"),G=se.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var M=this.__dirtyPath,v=this.shape.paths,b=0;b<v.length;b++)M=M||v[b].__dirtyPath;this.__dirtyPath=M,this.__dirty=this.__dirty||M},beforeBrush:function(){this._updatePathDirty();for(var M=this.shape.paths||[],v=this.getGlobalScale(),b=0;b<M.length;b++)M[b].path||M[b].createPathProxy(),M[b].path.setScale(v[0],v[1],M[b].segmentIgnoreThreshold)},buildPath:function(M,v){for(var b=v.paths||[],C=0;C<b.length;C++)b[C].buildPath(M,b[C].shape,!0)},afterBrush:function(){for(var M=this.shape.paths||[],v=0;v<M.length;v++)M[v].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),se.prototype.getBoundingRect.call(this)}});Ge.exports=G},"1RvN":function(Ge,fe){var R=function(){this.head=null,this.tail=null,this._len=0},se=R.prototype;se.insert=function(C){var w=new G(C);return this.insertEntry(w),w},se.insertEntry=function(C){this.head?(this.tail.next=C,C.prev=this.tail,C.next=null,this.tail=C):this.head=this.tail=C,this._len++},se.remove=function(C){var w=C.prev,m=C.next;w?w.next=m:this.head=m,m?m.prev=w:this.tail=w,C.next=C.prev=null,this._len--},se.len=function(){return this._len},se.clear=function(){this.head=this.tail=null,this._len=0};var G=function(C){this.value=C,this.next,this.prev},M=function(C){this._list=new R,this._map={},this._maxSize=C||10,this._lastRemovedEntry=null},v=M.prototype;v.put=function(C,w){var m=this._list,d=this._map,i=null;if(d[C]==null){var n=m.len(),e=this._lastRemovedEntry;if(n>=this._maxSize&&n>0){var a=m.head;m.remove(a),delete d[a.key],i=a.value,this._lastRemovedEntry=a}e?e.value=w:e=new G(w),e.key=C,m.insertEntry(e),d[C]=e}return i},v.get=function(C){var w=this._map[C],m=this._list;if(w!=null)return w!==m.tail&&(m.remove(w),m.insertEntry(w)),w.value},v.clear=function(){this._list.clear(),this._map={}};var b=M;Ge.exports=b},"1ZF9":function(Ge,fe,R){Ge.exports=R.p+"static/Authorize.cc9c212f.png"},"1bdT":function(Ge,fe,R){var se=R("3gBT"),G=R("H6uX"),M=R("DN4a"),v=R("vWvF"),b=R("bYtY"),C=function(m){M.call(this,m),G.call(this,m),v.call(this,m),this.id=m.id||se()};C.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(m,d){switch(this.draggable){case"horizontal":d=0;break;case"vertical":m=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=m,i[5]+=d,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(m,d){},attrKV:function(m,d){if(m==="position"||m==="scale"||m==="origin"){if(d){var i=this[m];i||(i=this[m]=[]),i[0]=d[0],i[1]=d[1]}}else this[m]=d},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(m,d){if(typeof m=="string")this.attrKV(m,d);else if(b.isObject(m))for(var i in m)m.hasOwnProperty(i)&&this.attrKV(i,m[i]);return this.dirty(!1),this},setClipPath:function(m){var d=this.__zr;d&&m.addSelfToZr(d),this.clipPath&&this.clipPath!==m&&this.removeClipPath(),this.clipPath=m,m.__zr=d,m.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var m=this.clipPath;m&&(m.__zr&&m.removeSelfFromZr(m.__zr),m.__zr=null,m.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(m){this.__zr=m;var d=this.animators;if(d)for(var i=0;i<d.length;i++)m.animation.addAnimator(d[i]);this.clipPath&&this.clipPath.addSelfToZr(m)},removeSelfFromZr:function(m){this.__zr=null;var d=this.animators;if(d)for(var i=0;i<d.length;i++)m.animation.removeAnimator(d[i]);this.clipPath&&this.clipPath.removeSelfFromZr(m)}},b.mixin(C,v),b.mixin(C,M),b.mixin(C,G);var w=C;Ge.exports=w},"1eCo":function(Ge,fe,R){(function(se){se(R("VrN/"))})(function(se){"use strict";var G={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},M={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};se.defineMode("xml",function(v,b){var C=v.indentUnit,w={},m=b.htmlMode?G:M;for(var d in m)w[d]=m[d];for(var d in b)w[d]=b[d];var i,n;function e(S,O){function T(k){return O.tokenize=k,k(S,O)}var D=S.next();if(D=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?T(o("atom","]]>")):null:S.match("--")?T(o("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),T(f(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),O.tokenize=o("meta","?>"),"meta"):(i=S.eat("/")?"closeTag":"openTag",O.tokenize=a,"tag bracket");if(D=="&"){var I;return S.eat("#")?S.eat("x")?I=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):I=S.eatWhile(/[\d]/)&&S.eat(";"):I=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),I?"atom":"error"}else return S.eatWhile(/[^&<]/),null}e.isInText=!0;function a(S,O){var T=S.next();if(T==">"||T=="/"&&S.eat(">"))return O.tokenize=e,i=T==">"?"endTag":"selfcloseTag","tag bracket";if(T=="=")return i="equals",null;if(T=="<"){O.tokenize=e,O.state=A,O.tagName=O.tagStart=null;var D=O.tokenize(S,O);return D?D+" tag error":"tag error"}else return/[\'\"]/.test(T)?(O.tokenize=s(T),O.stringStartCol=S.column(),O.tokenize(S,O)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(S){var O=function(T,D){for(;!T.eol();)if(T.next()==S){D.tokenize=a;break}return"string"};return O.isInAttribute=!0,O}function o(S,O){return function(T,D){for(;!T.eol();){if(T.match(O)){D.tokenize=e;break}T.next()}return S}}function f(S){return function(O,T){for(var D;(D=O.next())!=null;){if(D=="<")return T.tokenize=f(S+1),T.tokenize(O,T);if(D==">")if(S==1){T.tokenize=e;break}else return T.tokenize=f(S-1),T.tokenize(O,T)}return"meta"}}function l(S,O,T){this.prev=S.context,this.tagName=O,this.indent=S.indented,this.startOfLine=T,(w.doNotIndent.hasOwnProperty(O)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function r(S){S.context&&(S.context=S.context.prev)}function c(S,O){for(var T;;){if(!S.context)return;if(T=S.context.tagName,!w.contextGrabbers.hasOwnProperty(T)||!w.contextGrabbers[T].hasOwnProperty(O))return;r(S)}}function A(S,O,T){return S=="openTag"?(T.tagStart=O.column(),p):S=="closeTag"?x:A}function p(S,O,T){return S=="word"?(T.tagName=O.current(),n="tag",E):w.allowMissingTagName&&S=="endTag"?(n="tag bracket",E(S,O,T)):(n="error",p)}function x(S,O,T){if(S=="word"){var D=O.current();return T.context&&T.context.tagName!=D&&w.implicitlyClosed.hasOwnProperty(T.context.tagName)&&r(T),T.context&&T.context.tagName==D||w.matchClosing===!1?(n="tag",_):(n="tag error",B)}else return w.allowMissingTagName&&S=="endTag"?(n="tag bracket",_(S,O,T)):(n="error",B)}function _(S,O,T){return S!="endTag"?(n="error",_):(r(T),A)}function B(S,O,T){return n="error",_(S,O,T)}function E(S,O,T){if(S=="word")return n="attribute",g;if(S=="endTag"||S=="selfcloseTag"){var D=T.tagName,I=T.tagStart;return T.tagName=T.tagStart=null,S=="selfcloseTag"||w.autoSelfClosers.hasOwnProperty(D)?c(T,D):(c(T,D),T.context=new l(T,D,I==T.indented)),A}return n="error",E}function g(S,O,T){return S=="equals"?h:(w.allowMissing||(n="error"),E(S,O,T))}function h(S,O,T){return S=="string"?u:S=="word"&&w.allowUnquoted?(n="string",E):(n="error",E(S,O,T))}function u(S,O,T){return S=="string"?u:E(S,O,T)}return{startState:function(S){var O={tokenize:e,state:A,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(O.baseIndent=S),O},token:function(S,O){if(!O.tagName&&S.sol()&&(O.indented=S.indentation()),S.eatSpace())return null;i=null;var T=O.tokenize(S,O);return(T||i)&&T!="comment"&&(n=null,O.state=O.state(i||T,S,O),n&&(T=n=="error"?T+" error":n)),T},indent:function(S,O,T){var D=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+C;if(D&&D.noIndent)return se.Pass;if(S.tokenize!=a&&S.tokenize!=e)return T?T.match(/^(\s*)/)[0].length:0;if(S.tagName)return w.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+C*(w.multilineTagIndentFactor||1);if(w.alignCDATA&&/<!\[CDATA\[/.test(O))return 0;var I=O&&/^<(\/)?([\w_:\.-]*)/.exec(O);if(I&&I[1])for(;D;)if(D.tagName==I[2]){D=D.prev;break}else if(w.implicitlyClosed.hasOwnProperty(D.tagName))D=D.prev;else break;else if(I)for(;D;){var k=w.contextGrabbers[D.tagName];if(k&&k.hasOwnProperty(I[2]))D=D.prev;else break}for(;D&&D.prev&&!D.startOfLine;)D=D.prev;return D?D.indent+C:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:w.htmlMode?"html":"xml",helperType:w.htmlMode?"html":"xml",skipAttribute:function(S){S.state==h&&(S.state=E)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var O=[],T=S.context;T;T=T.prev)T.tagName&&O.push(T.tagName);return O.reverse()}}}),se.defineMIME("text/xml","xml"),se.defineMIME("application/xml","xml"),se.mimeModes.hasOwnProperty("text/html")||se.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(Ge,fe,R){"use strict";R.d(fe,"d",function(){return he}),R.d(fe,"b",function(){return yt}),R.d(fe,"c",function(){return Mt}),R.d(fe,"a",function(){return Rt});var se=R("VTBJ"),G=R("1OyB"),M=R("vuIU"),v=R("JX7q"),b=R("Ji7U"),C=R("LK+K"),w=R("q1tI"),m=R("I8Z2"),d=R("BGR+"),i=R("wx14"),n=R("rePB"),e=R("4IlW"),a=R("2GS6"),s=R("Gytx"),o=R.n(s),f=R("TSYQ"),l=R.n(f),r=R("U8pU"),c=R("ODXe"),A=/iPhone/i,p=/iPod/i,x=/iPad/i,_=/\bAndroid(?:.+)Mobile\b/i,B=/Android/i,E=/\bAndroid(?:.+)SD4930UR\b/i,g=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,h=/Windows Phone/i,u=/\bWindows(?:.+)ARM\b/i,S=/BlackBerry/i,O=/BB10/i,T=/Opera Mini/i,D=/\b(CriOS|Chrome)(?:.+)Mobile/i,I=/Mobile(?:.+)Firefox\b/i;function k(Ut,Bt){return Ut.test(Bt)}function F(Ut){var Bt=Ut||(typeof navigator!="undefined"?navigator.userAgent:""),At=Bt.split("[FBAN");if(typeof At[1]!="undefined"){var bt=At,je=Object(c.a)(bt,1);Bt=je[0]}if(At=Bt.split("Twitter"),typeof At[1]!="undefined"){var qe=At,Ot=Object(c.a)(qe,1);Bt=Ot[0]}var Ct={apple:{phone:k(A,Bt)&&!k(h,Bt),ipod:k(p,Bt),tablet:!k(A,Bt)&&k(x,Bt)&&!k(h,Bt),device:(k(A,Bt)||k(p,Bt)||k(x,Bt))&&!k(h,Bt)},amazon:{phone:k(E,Bt),tablet:!k(E,Bt)&&k(g,Bt),device:k(E,Bt)||k(g,Bt)},android:{phone:!k(h,Bt)&&k(E,Bt)||!k(h,Bt)&&k(_,Bt),tablet:!k(h,Bt)&&!k(E,Bt)&&!k(_,Bt)&&(k(g,Bt)||k(B,Bt)),device:!k(h,Bt)&&(k(E,Bt)||k(g,Bt)||k(_,Bt)||k(B,Bt))||k(/\bokhttp\b/i,Bt)},windows:{phone:k(h,Bt),tablet:k(u,Bt),device:k(h,Bt)||k(u,Bt)},other:{blackberry:k(S,Bt),blackberry10:k(O,Bt),opera:k(T,Bt),firefox:k(I,Bt),chrome:k(D,Bt),device:k(S,Bt)||k(O,Bt)||k(T,Bt)||k(I,Bt)||k(D,Bt)},any:null,phone:null,tablet:null};return Ct.any=Ct.apple.device||Ct.android.device||Ct.windows.device||Ct.other.device,Ct.phone=Ct.apple.phone||Ct.android.phone||Ct.windows.phone,Ct.tablet=Ct.apple.tablet||Ct.android.tablet||Ct.windows.tablet,Ct}var X=Object(se.a)(Object(se.a)({},F()),{},{isMobile:F}),U=X;function K(){}function V(Ut,Bt,At){var bt=Bt||"";return Ut.key||"".concat(bt,"item_").concat(At)}function N(Ut){return"".concat(Ut,"-menu-")}function Q(Ut,Bt){var At=-1;w.Children.forEach(Ut,function(bt){At+=1,bt&&bt.type&&bt.type.isMenuItemGroup?w.Children.forEach(bt.props.children,function(je){At+=1,Bt(je,At)}):Bt(bt,At)})}function J(Ut,Bt,At){if(!Ut||At.find)return;w.Children.forEach(Ut,function(bt){if(bt){var je=bt.type;if(!je||!(je.isSubMenu||je.isMenuItem||je.isMenuItemGroup))return;Bt.indexOf(bt.key)!==-1?At.find=!0:bt.props.children&&J(bt.props.children,Bt,At)}})}var ne=["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"],ue=function(Bt){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,bt=Bt&&typeof Bt.getBoundingClientRect=="function"&&Bt.getBoundingClientRect().width;if(bt){if(At){var je=getComputedStyle(Bt),qe=je.marginLeft,Ot=je.marginRight;bt+=+qe.replace("px","")+ +Ot.replace("px","")}bt=+bt.toFixed(6)}return bt||0},be=function(Bt,At,bt){Bt&&Object(r.a)(Bt.style)==="object"&&(Bt.style[At]=bt)},de=function(){return U.any},_e=R("KQm4"),me=R("Ff2n"),Ee=R("i8i4"),ge=R("bdgK"),Ae=R("uciX"),ae=R("8XRh"),ve={adjustX:1,adjustY:1},oe={topLeft:{points:["bl","tl"],overflow:ve,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ve,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ve,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ve,offset:[4,0]}},ie={topLeft:{points:["bl","tl"],overflow:ve,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ve,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ve,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ve,offset:[4,0]}},Te=oe,Re=0,Me={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},re=function(Bt,At,bt){var je=N(At),qe=Bt.getState();Bt.setState({defaultActiveFirst:Object(se.a)(Object(se.a)({},qe.defaultActiveFirst),{},Object(n.a)({},je,bt))})},j=function(Ut){Object(b.a)(At,Ut);var Bt=Object(C.a)(At);function At(bt){var je;Object(G.a)(this,At),je=Bt.call(this,bt),je.onDestroy=function(Et){je.props.onDestroy(Et)},je.onKeyDown=function(Et){var Lt=Et.keyCode,Ht=je.menuInstance,un=je.props,gn=un.isOpen,Ar=un.store;if(Lt===e.a.ENTER)return je.onTitleClick(Et),re(Ar,je.props.eventKey,!0),!0;if(Lt===e.a.RIGHT)return gn?Ht.onKeyDown(Et):(je.triggerOpenChange(!0),re(Ar,je.props.eventKey,!0)),!0;if(Lt===e.a.LEFT){var wr;if(gn)wr=Ht.onKeyDown(Et);else return;return wr||(je.triggerOpenChange(!1),wr=!0),wr}return gn&&(Lt===e.a.UP||Lt===e.a.DOWN)?Ht.onKeyDown(Et):void 0},je.onOpenChange=function(Et){je.props.onOpenChange(Et)},je.onPopupVisibleChange=function(Et){je.triggerOpenChange(Et,Et?"mouseenter":"mouseleave")},je.onMouseEnter=function(Et){var Lt=je.props,Ht=Lt.eventKey,un=Lt.onMouseEnter,gn=Lt.store;re(gn,je.props.eventKey,!1),un({key:Ht,domEvent:Et})},je.onMouseLeave=function(Et){var Lt=je.props,Ht=Lt.parentMenu,un=Lt.eventKey,gn=Lt.onMouseLeave;Ht.subMenuInstance=Object(v.a)(je),gn({key:un,domEvent:Et})},je.onTitleMouseEnter=function(Et){var Lt=je.props,Ht=Lt.eventKey,un=Lt.onItemHover,gn=Lt.onTitleMouseEnter;un({key:Ht,hover:!0}),gn({key:Ht,domEvent:Et})},je.onTitleMouseLeave=function(Et){var Lt=je.props,Ht=Lt.parentMenu,un=Lt.eventKey,gn=Lt.onItemHover,Ar=Lt.onTitleMouseLeave;Ht.subMenuInstance=Object(v.a)(je),gn({key:un,hover:!1}),Ar({key:un,domEvent:Et})},je.onTitleClick=function(Et){var Lt=Object(v.a)(je),Ht=Lt.props;if(Ht.onTitleClick({key:Ht.eventKey,domEvent:Et}),Ht.triggerSubMenuAction==="hover")return;je.triggerOpenChange(!Ht.isOpen,"click"),re(Ht.store,je.props.eventKey,!1)},je.onSubMenuClick=function(Et){typeof je.props.onClick=="function"&&je.props.onClick(je.addKeyPath(Et))},je.onSelect=function(Et){je.props.onSelect(Et)},je.onDeselect=function(Et){je.props.onDeselect(Et)},je.getPrefixCls=function(){return"".concat(je.props.rootPrefixCls,"-submenu")},je.getActiveClassName=function(){return"".concat(je.getPrefixCls(),"-active")},je.getDisabledClassName=function(){return"".concat(je.getPrefixCls(),"-disabled")},je.getSelectedClassName=function(){return"".concat(je.getPrefixCls(),"-selected")},je.getOpenClassName=function(){return"".concat(je.props.rootPrefixCls,"-submenu-open")},je.saveMenuInstance=function(Et){je.menuInstance=Et},je.addKeyPath=function(Et){return Object(se.a)(Object(se.a)({},Et),{},{keyPath:(Et.keyPath||[]).concat(je.props.eventKey)})},je.triggerOpenChange=function(Et,Lt){var Ht=je.props.eventKey,un=function(){je.onOpenChange({key:Ht,item:Object(v.a)(je),trigger:Lt,open:Et})};Lt==="mouseenter"?je.mouseenterTimeout=setTimeout(function(){un()},0):un()},je.isChildrenSelected=function(){var Et={find:!1};return J(je.props.children,je.props.selectedKeys,Et),Et.find},je.isOpen=function(){return je.props.openKeys.indexOf(je.props.eventKey)!==-1},je.adjustWidth=function(){if(!je.subMenuTitle||!je.menuInstance)return;var Et=Ee.findDOMNode(je.menuInstance);if(Et.offsetWidth>=je.subMenuTitle.offsetWidth)return;Et.style.minWidth="".concat(je.subMenuTitle.offsetWidth,"px")},je.saveSubMenuTitle=function(Et){je.subMenuTitle=Et},je.getBaseProps=function(){var Et=Object(v.a)(je),Lt=Et.props;return{mode:Lt.mode==="horizontal"?"vertical":Lt.mode,visible:je.props.isOpen,level:Lt.level+1,inlineIndent:Lt.inlineIndent,focusable:!1,onClick:je.onSubMenuClick,onSelect:je.onSelect,onDeselect:je.onDeselect,onDestroy:je.onDestroy,selectedKeys:Lt.selectedKeys,eventKey:"".concat(Lt.eventKey,"-menu-"),openKeys:Lt.openKeys,motion:Lt.motion,onOpenChange:je.onOpenChange,subMenuOpenDelay:Lt.subMenuOpenDelay,parentMenu:Object(v.a)(je),subMenuCloseDelay:Lt.subMenuCloseDelay,forceSubMenuRender:Lt.forceSubMenuRender,triggerSubMenuAction:Lt.triggerSubMenuAction,builtinPlacements:Lt.builtinPlacements,defaultActiveFirst:Lt.store.getState().defaultActiveFirst[N(Lt.eventKey)],multiple:Lt.multiple,prefixCls:Lt.rootPrefixCls,id:je.internalMenuId,manualRef:je.saveMenuInstance,itemIcon:Lt.itemIcon,expandIcon:Lt.expandIcon,direction:Lt.direction}},je.getMotion=function(Et,Lt){var Ht=Object(v.a)(je),un=Ht.haveRendered,gn=je.props,Ar=gn.motion,wr=gn.rootPrefixCls,cr=Object(se.a)(Object(se.a)({},Ar),{},{leavedClassName:"".concat(wr,"-hidden"),removeOnLeave:!1,motionAppear:un||!Lt||Et!=="inline"});return cr};var qe=bt.store,Ot=bt.eventKey,Ct=qe.getState(),jt=Ct.defaultActiveFirst;je.isRootMenu=!1;var Vt=!1;return jt&&(Vt=jt[Ot]),re(qe,Ot,Vt),je}return Object(M.a)(At,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var je=this,qe=this.props,Ot=qe.mode,Ct=qe.parentMenu,jt=qe.manualRef;if(jt&&jt(this),Ot!=="horizontal"||!Ct.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return je.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var je=this.props,qe=je.onDestroy,Ot=je.eventKey;qe&&qe(Ot),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(je){var qe=this,Ot=this.getBaseProps(),Ct=this.getMotion(Ot.mode,Ot.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ot.visible||Ot.forceSubMenuRender,!this.haveOpened)return w.createElement("div",null);var jt=Ot.direction;return w.createElement(ae.default,Object.assign({visible:Ot.visible},Ct),function(Vt){var Et=Vt.className,Lt=Vt.style,Ht=l()("".concat(Ot.prefixCls,"-sub"),Et,Object(n.a)({},"".concat(Ot.prefixCls,"-rtl"),jt==="rtl"));return w.createElement(rt,Object.assign({},Ot,{id:qe.internalMenuId,className:Ht,style:Lt}),je)})}},{key:"render",value:function(){var je,qe=Object(se.a)({},this.props),Ot=qe.isOpen,Ct=this.getPrefixCls(),jt=qe.mode==="inline",Vt=l()(Ct,"".concat(Ct,"-").concat(qe.mode),(je={},Object(n.a)(je,qe.className,!!qe.className),Object(n.a)(je,this.getOpenClassName(),Ot),Object(n.a)(je,this.getActiveClassName(),qe.active||Ot&&!jt),Object(n.a)(je,this.getDisabledClassName(),qe.disabled),Object(n.a)(je,this.getSelectedClassName(),this.isChildrenSelected()),je));this.internalMenuId||(qe.eventKey?this.internalMenuId="".concat(qe.eventKey,"$Menu"):(Re+=1,this.internalMenuId="$__$".concat(Re,"$Menu")));var Et={},Lt={},Ht={};qe.disabled||(Et={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Lt={onClick:this.onTitleClick},Ht={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var un={},gn=qe.direction;jt&&(gn==="rtl"?un.paddingRight=qe.inlineIndent*qe.level:un.paddingLeft=qe.inlineIndent*qe.level);var Ar={};this.props.isOpen&&(Ar={"aria-owns":this.internalMenuId});var wr=null;qe.mode!=="horizontal"&&(wr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(wr=w.createElement(this.props.expandIcon,Object(se.a)({},this.props))));var cr=w.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:un,className:"".concat(Ct,"-title"),role:"button"},Ht,Lt,{"aria-expanded":Ot},Ar,{"aria-haspopup":"true",title:typeof qe.title=="string"?qe.title:void 0}),qe.title,wr||w.createElement("i",{className:"".concat(Ct,"-arrow")})),Rn=this.renderChildren(qe.children),Jr=qe.parentMenu.isRootMenu?qe.parentMenu.props.getPopupContainer:function(Wt){return Wt.parentNode},si=Me[qe.mode],li=qe.popupOffset?{offset:qe.popupOffset}:{},kr=qe.mode==="inline"?"":qe.popupClassName;kr+=gn==="rtl"?" ".concat(Ct,"-rtl"):"";var hi=qe.disabled,Ui=qe.triggerSubMenuAction,Zi=qe.subMenuOpenDelay,Le=qe.forceSubMenuRender,Fe=qe.subMenuCloseDelay,nt=qe.builtinPlacements;ne.forEach(function(Wt){return delete qe[Wt]}),delete qe.onClick;var xt=gn==="rtl"?Object.assign({},ie,nt):Object.assign({},oe,nt);return delete qe.direction,w.createElement("li",Object.assign({},qe,Et,{className:Vt,role:"menuitem"}),jt&&cr,jt&&Rn,!jt&&w.createElement(Ae.a,{prefixCls:Ct,popupClassName:l()("".concat(Ct,"-popup"),kr),getPopupContainer:Jr,builtinPlacements:xt,popupPlacement:si,popupVisible:Ot,popupAlign:li,popup:Rn,action:hi?[]:[Ui],mouseEnterDelay:Zi,mouseLeaveDelay:Fe,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Le},cr))}}]),At}(w.Component);j.defaultProps={onMouseEnter:K,onMouseLeave:K,onTitleMouseEnter:K,onTitleMouseLeave:K,onTitleClick:K,manualRef:K,mode:"vertical",title:""};var W=Object(m.b)(function(Ut,Bt){var At=Ut.openKeys,bt=Ut.activeKey,je=Ut.selectedKeys,qe=Bt.eventKey,Ot=Bt.subMenuKey;return{isOpen:At.indexOf(qe)>-1,active:bt[Ot]===qe,selectedKeys:je}})(j);W.isSubMenu=!0;var he=W,te="menuitem-overflowed",ce=.5,Ie=function(Ut){Object(b.a)(At,Ut);var Bt=Object(C.a)(At);function At(){var bt;return Object(G.a)(this,At),bt=Bt.apply(this,arguments),bt.resizeObserver=null,bt.mutationObserver=null,bt.originalTotalWidth=0,bt.overflowedItems=[],bt.menuItemSizes=[],bt.cancelFrameId=null,bt.state={lastVisibleIndex:void 0},bt.getMenuItemNodes=function(){var je=bt.props.prefixCls,qe=Ee.findDOMNode(Object(v.a)(bt));return qe?[].slice.call(qe.children).filter(function(Ot){return Ot.className.split(" ").indexOf("".concat(je,"-overflowed-submenu"))<0}):[]},bt.getOverflowedSubMenuItem=function(je,qe,Ot){var Ct=bt.props,jt=Ct.overflowedIndicator,Vt=Ct.level,Et=Ct.mode,Lt=Ct.prefixCls,Ht=Ct.theme;if(Vt!==1||Et!=="horizontal")return null;var un=bt.props.children[0],gn=un.props,Ar=gn.children,wr=gn.title,cr=gn.style,Rn=Object(me.a)(gn,["children","title","style"]),Jr=Object(se.a)({},cr),si="".concat(je,"-overflowed-indicator"),li="".concat(je,"-overflowed-indicator");qe.length===0&&Ot!==!0?Jr=Object(se.a)(Object(se.a)({},Jr),{},{display:"none"}):Ot&&(Jr=Object(se.a)(Object(se.a)({},Jr),{},{visibility:"hidden",position:"absolute"}),si="".concat(si,"-placeholder"),li="".concat(li,"-placeholder"));var kr=Ht?"".concat(Lt,"-").concat(Ht):"",hi={};return ne.forEach(function(Ui){Rn[Ui]!==void 0&&(hi[Ui]=Rn[Ui])}),w.createElement(he,Object.assign({title:jt,className:"".concat(Lt,"-overflowed-submenu"),popupClassName:kr},hi,{key:si,eventKey:li,disabled:!1,style:Jr}),qe)},bt.setChildrenWidthAndResize=function(){if(bt.props.mode!=="horizontal")return;var je=Ee.findDOMNode(Object(v.a)(bt));if(!je)return;var qe=je.children;if(!qe||qe.length===0)return;var Ot=je.children[qe.length-1];be(Ot,"display","inline-block");var Ct=bt.getMenuItemNodes(),jt=Ct.filter(function(Vt){return Vt.className.split(" ").indexOf(te)>=0});jt.forEach(function(Vt){be(Vt,"display","inline-block")}),bt.menuItemSizes=Ct.map(function(Vt){return ue(Vt,!0)}),jt.forEach(function(Vt){be(Vt,"display","none")}),bt.overflowedIndicatorWidth=ue(je.children[je.children.length-1],!0),bt.originalTotalWidth=bt.menuItemSizes.reduce(function(Vt,Et){return Vt+Et},0),bt.handleResize(),be(Ot,"display","none")},bt.handleResize=function(){if(bt.props.mode!=="horizontal")return;var je=Ee.findDOMNode(Object(v.a)(bt));if(!je)return;var qe=ue(je);bt.overflowedItems=[];var Ot=0,Ct;bt.originalTotalWidth>qe+ce&&(Ct=-1,bt.menuItemSizes.forEach(function(jt){Ot+=jt,Ot+bt.overflowedIndicatorWidth<=qe&&(Ct+=1)})),bt.setState({lastVisibleIndex:Ct})},bt}return Object(M.a)(At,[{key:"componentDidMount",value:function(){var je=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var qe=Ee.findDOMNode(this);if(!qe)return;this.resizeObserver=new ge.default(function(Ot){Ot.forEach(function(){var Ct=je.cancelFrameId;cancelAnimationFrame(Ct),je.cancelFrameId=requestAnimationFrame(je.setChildrenWidthAndResize)})}),[].slice.call(qe.children).concat(qe).forEach(function(Ot){je.resizeObserver.observe(Ot)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){je.resizeObserver.disconnect(),[].slice.call(qe.children).concat(qe).forEach(function(Ot){je.resizeObserver.observe(Ot)}),je.setChildrenWidthAndResize()}),this.mutationObserver.observe(qe,{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(je){var qe=this,Ot=this.state.lastVisibleIndex;return(je||[]).reduce(function(Ct,jt,Vt){var Et=jt;if(qe.props.mode==="horizontal"){var Lt=qe.getOverflowedSubMenuItem(jt.props.eventKey,[]);Ot!==void 0&&qe.props.className.indexOf("".concat(qe.props.prefixCls,"-root"))!==-1&&(Vt>Ot&&(Et=w.cloneElement(jt,{style:{display:"none"},eventKey:"".concat(jt.props.eventKey,"-hidden"),className:"".concat(te)})),Vt===Ot+1&&(qe.overflowedItems=je.slice(Ot+1).map(function(un){return w.cloneElement(un,{key:un.props.eventKey,mode:"vertical-left"})}),Lt=qe.getOverflowedSubMenuItem(jt.props.eventKey,qe.overflowedItems)));var Ht=[].concat(Object(_e.a)(Ct),[Lt,Et]);return Vt===je.length-1&&Ht.push(qe.getOverflowedSubMenuItem(jt.props.eventKey,[],!0)),Ht}return[].concat(Object(_e.a)(Ct),[Et])},[])}},{key:"render",value:function(){var je=this.props,qe=je.visible,Ot=je.prefixCls,Ct=je.overflowedIndicator,jt=je.mode,Vt=je.level,Et=je.tag,Lt=je.children,Ht=je.theme,un=Object(me.a)(je,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),gn=Et;return w.createElement(gn,Object.assign({},un),this.renderChildren(Lt))}}]),At}(w.Component);Ie.defaultProps={tag:"div",className:""};var ze=Ie;function _t(Ut){return Ut.length?Ut.every(function(Bt){return!!Bt.props.disabled}):!0}function He(Ut,Bt,At){var bt=Ut.getState();Ut.setState({activeKey:Object(se.a)(Object(se.a)({},bt.activeKey),{},Object(n.a)({},Bt,At))})}function Ke(Ut){return Ut.eventKey||"0-menu-"}function ht(Ut,Bt){var At=Bt,bt=Ut.children,je=Ut.eventKey;if(At){var qe;if(Q(bt,function(Ot,Ct){Ot&&Ot.props&&!Ot.props.disabled&&At===V(Ot,je,Ct)&&(qe=!0)}),qe)return At}return At=null,Ut.defaultActiveFirst&&Q(bt,function(Ot,Ct){!At&&Ot&&!Ot.props.disabled&&(At=V(Ot,je,Ct))}),At}function St(Ut){if(Ut){var Bt=this.instanceArray.indexOf(Ut);Bt!==-1?this.instanceArray[Bt]=Ut:this.instanceArray.push(Ut)}}var ct=function(Ut){Object(b.a)(At,Ut);var Bt=Object(C.a)(At);function At(bt){var je;return Object(G.a)(this,At),je=Bt.call(this,bt),je.onKeyDown=function(qe,Ot){var Ct=qe.keyCode,jt;if(je.getFlatInstanceArray().forEach(function(Et){Et&&Et.props.active&&Et.onKeyDown&&(jt=Et.onKeyDown(qe))}),jt)return 1;var Vt=null;return(Ct===e.a.UP||Ct===e.a.DOWN)&&(Vt=je.step(Ct===e.a.UP?-1:1)),Vt?(qe.preventDefault(),He(je.props.store,Ke(je.props),Vt.props.eventKey),typeof Ot=="function"&&Ot(Vt),1):void 0},je.onItemHover=function(qe){var Ot=qe.key,Ct=qe.hover;He(je.props.store,Ke(je.props),Ct?Ot:null)},je.onDeselect=function(qe){je.props.onDeselect(qe)},je.onSelect=function(qe){je.props.onSelect(qe)},je.onClick=function(qe){je.props.onClick(qe)},je.onOpenChange=function(qe){je.props.onOpenChange(qe)},je.onDestroy=function(qe){je.props.onDestroy(qe)},je.getFlatInstanceArray=function(){return je.instanceArray},je.step=function(qe){var Ot=je.getFlatInstanceArray(),Ct=je.props.store.getState().activeKey[Ke(je.props)],jt=Ot.length;if(!jt)return null;qe<0&&(Ot=Ot.concat().reverse());var Vt=-1;if(Ot.every(function(un,gn){return un&&un.props.eventKey===Ct?(Vt=gn,!1):!0}),!je.props.defaultActiveFirst&&Vt!==-1&&_t(Ot.slice(Vt,jt-1)))return;var Et=(Vt+1)%jt,Lt=Et;do{var Ht=Ot[Lt];if(!Ht||Ht.props.disabled)Lt=(Lt+1)%jt;else return Ht}while(Lt!==Et);return null},je.renderCommonMenuItem=function(qe,Ot,Ct){var jt=je.props.store.getState(),Vt=Object(v.a)(je),Et=Vt.props,Lt=V(qe,Et.eventKey,Ot),Ht=qe.props;if(!Ht||typeof qe.type=="string")return qe;var un=Lt===jt.activeKey,gn=Object(se.a)(Object(se.a)({mode:Ht.mode||Et.mode,level:Et.level,inlineIndent:Et.inlineIndent,renderMenuItem:je.renderMenuItem,rootPrefixCls:Et.prefixCls,index:Ot,parentMenu:Et.parentMenu,manualRef:Ht.disabled?void 0:Object(a.a)(qe.ref,St.bind(Object(v.a)(je))),eventKey:Lt,active:!Ht.disabled&&un,multiple:Et.multiple,onClick:function(wr){(Ht.onClick||K)(wr),je.onClick(wr)},onItemHover:je.onItemHover,motion:Et.motion,subMenuOpenDelay:Et.subMenuOpenDelay,subMenuCloseDelay:Et.subMenuCloseDelay,forceSubMenuRender:Et.forceSubMenuRender,onOpenChange:je.onOpenChange,onDeselect:je.onDeselect,onSelect:je.onSelect,builtinPlacements:Et.builtinPlacements,itemIcon:Ht.itemIcon||je.props.itemIcon,expandIcon:Ht.expandIcon||je.props.expandIcon},Ct),{},{direction:Et.direction});return(Et.mode==="inline"||de())&&(gn.triggerSubMenuAction="click"),w.cloneElement(qe,gn)},je.renderMenuItem=function(qe,Ot,Ct){if(!qe)return null;var jt=je.props.store.getState(),Vt={openKeys:jt.openKeys,selectedKeys:jt.selectedKeys,triggerSubMenuAction:je.props.triggerSubMenuAction,subMenuKey:Ct};return je.renderCommonMenuItem(qe,Ot,Vt)},bt.store.setState({activeKey:Object(se.a)(Object(se.a)({},bt.store.getState().activeKey),{},Object(n.a)({},bt.eventKey,ht(bt,bt.activeKey)))}),je.instanceArray=[],je}return Object(M.a)(At,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(je){return this.props.visible||je.visible||this.props.className!==je.className||!o()(this.props.style,je.style)}},{key:"componentDidUpdate",value:function(je){var qe=this.props,Ot="activeKey"in qe?qe.activeKey:qe.store.getState().activeKey[Ke(qe)],Ct=ht(qe,Ot);if(Ct!==Ot)He(qe.store,Ke(qe),Ct);else if("activeKey"in je){var jt=ht(je,je.activeKey);Ct!==jt&&He(qe.store,Ke(qe),Ct)}}},{key:"render",value:function(){var je=this,qe=Object(i.a)({},this.props);this.instanceArray=[];var Ot=l()(qe.prefixCls,qe.className,"".concat(qe.prefixCls,"-").concat(qe.mode)),Ct={className:Ot,role:qe.role||"menu"};qe.id&&(Ct.id=qe.id),qe.focusable&&(Ct.tabIndex=0,Ct.onKeyDown=this.onKeyDown);var jt=qe.prefixCls,Vt=qe.eventKey,Et=qe.visible,Lt=qe.level,Ht=qe.mode,un=qe.overflowedIndicator,gn=qe.theme;return ne.forEach(function(Ar){return delete qe[Ar]}),delete qe.onClick,w.createElement(ze,Object.assign({},qe,{prefixCls:jt,mode:Ht,tag:"ul",level:Lt,theme:gn,visible:Et,overflowedIndicator:un},Ct),w.Children.map(qe.children,function(Ar,wr){return je.renderMenuItem(Ar,wr,Vt||"0-menu-")}))}}]),At}(w.Component);ct.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:K};var lt=Object(m.b)()(ct),rt=lt,Ze=R("Kwbf");function $e(Ut,Bt,At){var bt=Ut.prefixCls,je=Ut.motion,qe=Ut.defaultMotions,Ot=qe===void 0?{}:qe,Ct=Ut.openAnimation,jt=Ut.openTransitionName,Vt=Bt.switchingModeFromInline;if(je)return je;if(Object(r.a)(Ct)==="object"&&Ct)Object(Ze.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Ct=="string")return{motionName:"".concat(bt,"-open-").concat(Ct)};if(jt)return{motionName:jt};var Et=Ot[At];return Et||(Vt?null:Ot.other)}var Ue=function(Ut){Object(b.a)(At,Ut);var Bt=Object(C.a)(At);function At(bt){var je;Object(G.a)(this,At),je=Bt.call(this,bt),je.inlineOpenKeys=[],je.onSelect=function(Ct){var jt=Object(v.a)(je),Vt=jt.props;if(Vt.selectable){var Et=je.store.getState(),Lt=Et.selectedKeys,Ht=Ct.key;Vt.multiple?Lt=Lt.concat([Ht]):Lt=[Ht],"selectedKeys"in Vt||je.store.setState({selectedKeys:Lt}),Vt.onSelect(Object(se.a)(Object(se.a)({},Ct),{},{selectedKeys:Lt}))}},je.onClick=function(Ct){var jt=je.getRealMenuMode(),Vt=Object(v.a)(je),Et=Vt.store,Lt=Vt.props.onOpenChange;jt!=="inline"&&!("openKeys"in je.props)&&(Et.setState({openKeys:[]}),Lt([])),je.props.onClick(Ct)},je.onKeyDown=function(Ct,jt){je.innerMenu.getWrappedInstance().onKeyDown(Ct,jt)},je.onOpenChange=function(Ct){var jt=Object(v.a)(je),Vt=jt.props,Et=je.store.getState().openKeys.concat(),Lt=!1,Ht=function(gn){var Ar=!1;if(gn.open)Ar=Et.indexOf(gn.key)===-1,Ar&&Et.push(gn.key);else{var wr=Et.indexOf(gn.key);Ar=wr!==-1,Ar&&Et.splice(wr,1)}Lt=Lt||Ar};Array.isArray(Ct)?Ct.forEach(Ht):Ht(Ct),Lt&&("openKeys"in je.props||je.store.setState({openKeys:Et}),Vt.onOpenChange(Et))},je.onDeselect=function(Ct){var jt=Object(v.a)(je),Vt=jt.props;if(Vt.selectable){var Et=je.store.getState().selectedKeys.concat(),Lt=Ct.key,Ht=Et.indexOf(Lt);Ht!==-1&&Et.splice(Ht,1),"selectedKeys"in Vt||je.store.setState({selectedKeys:Et}),Vt.onDeselect(Object(se.a)(Object(se.a)({},Ct),{},{selectedKeys:Et}))}},je.onMouseEnter=function(Ct){je.restoreModeVerticalFromInline();var jt=je.props.onMouseEnter;jt&&jt(Ct)},je.onTransitionEnd=function(Ct){var jt=Ct.propertyName==="width"&&Ct.target===Ct.currentTarget,Vt=Ct.target.className,Et=Object.prototype.toString.call(Vt)==="[object SVGAnimatedString]"?Vt.animVal:Vt,Lt=Ct.propertyName==="font-size"&&Et.indexOf("anticon")>=0;(jt||Lt)&&je.restoreModeVerticalFromInline()},je.setInnerMenu=function(Ct){je.innerMenu=Ct},je.isRootMenu=!0;var qe=bt.defaultSelectedKeys,Ot=bt.defaultOpenKeys;return"selectedKeys"in bt&&(qe=bt.selectedKeys||[]),"openKeys"in bt&&(Ot=bt.openKeys||[]),je.store=Object(m.c)({selectedKeys:qe,openKeys:Ot,activeKey:{"0-menu-":ht(bt,bt.activeKey)}}),je.state={switchingModeFromInline:!1},je}return Object(M.a)(At,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(je){this.updateOpentKeysWhenSwitchMode(je),this.updateMiniStore();var qe=this.props,Ot=qe.siderCollapsed,Ct=qe.inlineCollapsed,jt=qe.onOpenChange;(!je.inlineCollapsed&&Ct||!je.siderCollapsed&&Ot)&&jt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(je){var qe=this.props,Ot=this.store,Ct=this.inlineOpenKeys,jt=Ot.getState(),Vt={};je.mode==="inline"&&qe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in qe||((qe.inlineCollapsed&&!je.inlineCollapsed||qe.siderCollapsed&&!je.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=jt.openKeys.concat(),Vt.openKeys=[]),(!qe.inlineCollapsed&&je.inlineCollapsed||!qe.siderCollapsed&&je.siderCollapsed)&&(Vt.openKeys=Ct,this.inlineOpenKeys=[])),Object.keys(Vt).length&&Ot.setState(Vt)}},{key:"updateMenuDisplay",value:function(){var je=this.props.collapsedWidth,qe=this.store,Ot=this.prevOpenKeys,Ct=this.getInlineCollapsed()&&(je===0||je==="0"||je==="0px");Ct?(this.prevOpenKeys=qe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ot&&(this.store.setState({openKeys:Ot}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var je=this.props.mode,qe=this.state.switchingModeFromInline,Ot=this.getInlineCollapsed();return qe&&Ot?"inline":Ot?"vertical":je}},{key:"getInlineCollapsed",value:function(){var je=this.props,qe=je.inlineCollapsed,Ot=je.siderCollapsed;return Ot!==void 0?Ot:qe}},{key:"restoreModeVerticalFromInline",value:function(){var je=this.state.switchingModeFromInline;je&&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 je=Object(se.a)({},Object(d.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),qe=this.getRealMenuMode();return je.className+=" ".concat(je.prefixCls,"-root"),je.direction==="rtl"&&(je.className+=" ".concat(je.prefixCls,"-rtl")),je=Object(se.a)(Object(se.a)({},je),{},{mode:qe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:$e(this.props,this.state,qe)}),delete je.openAnimation,delete je.openTransitionName,w.createElement(m.a,{store:this.store},w.createElement(rt,Object.assign({},je,{ref:this.setInnerMenu}),this.props.children))}}]),At}(w.Component);Ue.defaultProps={selectable:!0,onClick:K,onSelect:K,onOpenChange:K,onDeselect:K,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:w.createElement("span",null,"\xB7\xB7\xB7")};var Ne=Ue,We=function(Ut){Object(b.a)(At,Ut);var Bt=Object(C.a)(At);function At(){var bt;return Object(G.a)(this,At),bt=Bt.apply(this,arguments),bt.onKeyDown=function(je){var qe=je.keyCode;return qe===e.a.ENTER?(bt.onClick(je),!0):void 0},bt.onMouseLeave=function(je){var qe=bt.props,Ot=qe.eventKey,Ct=qe.onItemHover,jt=qe.onMouseLeave;Ct({key:Ot,hover:!1}),jt({key:Ot,domEvent:je})},bt.onMouseEnter=function(je){var qe=bt.props,Ot=qe.eventKey,Ct=qe.onItemHover,jt=qe.onMouseEnter;Ct({key:Ot,hover:!0}),jt({key:Ot,domEvent:je})},bt.onClick=function(je){var qe=bt.props,Ot=qe.eventKey,Ct=qe.multiple,jt=qe.onClick,Vt=qe.onSelect,Et=qe.onDeselect,Lt=qe.isSelected,Ht={key:Ot,keyPath:[Ot],item:Object(v.a)(bt),domEvent:je};jt(Ht),Ct?Lt?Et(Ht):Vt(Ht):Lt||Vt(Ht)},bt.saveNode=function(je){bt.node=je},bt}return Object(M.a)(At,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var je=this.props;je.onDestroy&&je.onDestroy(je.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 je,qe=Object(se.a)({},this.props),Ot=l()(this.getPrefixCls(),qe.className,(je={},Object(n.a)(je,this.getActiveClassName(),!qe.disabled&&qe.active),Object(n.a)(je,this.getSelectedClassName(),qe.isSelected),Object(n.a)(je,this.getDisabledClassName(),qe.disabled),je)),Ct=Object(se.a)(Object(se.a)({},qe.attribute),{},{title:typeof qe.title=="string"?qe.title:void 0,className:Ot,role:qe.role||"menuitem","aria-disabled":qe.disabled});qe.role==="option"?Ct=Object(se.a)(Object(se.a)({},Ct),{},{role:"option","aria-selected":qe.isSelected}):(qe.role===null||qe.role==="none")&&(Ct.role="none");var jt={onClick:qe.disabled?null:this.onClick,onMouseLeave:qe.disabled?null:this.onMouseLeave,onMouseEnter:qe.disabled?null:this.onMouseEnter},Vt=Object(se.a)({},qe.style);qe.mode==="inline"&&(qe.direction==="rtl"?Vt.paddingRight=qe.inlineIndent*qe.level:Vt.paddingLeft=qe.inlineIndent*qe.level),ne.forEach(function(Lt){return delete qe[Lt]}),delete qe.direction;var Et=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Et=w.createElement(this.props.itemIcon,this.props)),w.createElement("li",Object.assign({},Object(d.default)(qe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Ct,jt,{style:Vt,ref:this.saveNode}),qe.children,Et)}}]),At}(w.Component);We.isMenuItem=!0,We.defaultProps={onSelect:K,onMouseEnter:K,onMouseLeave:K,manualRef:K};var it=Object(m.b)(function(Ut,Bt){var At=Ut.activeKey,bt=Ut.selectedKeys,je=Bt.eventKey,qe=Bt.subMenuKey;return{active:At[qe]===je,isSelected:bt.indexOf(je)!==-1}})(We),yt=it,vt=function(Ut){Object(b.a)(At,Ut);var Bt=Object(C.a)(At);function At(){var bt;return Object(G.a)(this,At),bt=Bt.apply(this,arguments),bt.renderInnerMenuItem=function(je){var qe=bt.props,Ot=qe.renderMenuItem,Ct=qe.index;return Ot(je,Ct,bt.props.subMenuKey)},bt}return Object(M.a)(At,[{key:"render",value:function(){var je=Object(i.a)({},this.props),qe=je.className,Ot=qe===void 0?"":qe,Ct=je.rootPrefixCls,jt="".concat(Ct,"-item-group-title"),Vt="".concat(Ct,"-item-group-list"),Et=je.title,Lt=je.children;return ne.forEach(function(Ht){return delete je[Ht]}),delete je.onClick,delete je.direction,w.createElement("li",Object.assign({},je,{className:"".concat(Ot," ").concat(Ct,"-item-group")}),w.createElement("div",{className:jt,title:typeof Et=="string"?Et:void 0},Et),w.createElement("ul",{className:Vt},w.Children.map(Lt,this.renderInnerMenuItem)))}}]),At}(w.Component);vt.isMenuItemGroup=!0,vt.defaultProps={disabled:!0};var Mt=vt,Tt=function(Bt){var At=Bt.className,bt=Bt.rootPrefixCls,je=Bt.style;return w.createElement("li",{className:"".concat(At," ").concat(bt,"-item-divider"),style:je})};Tt.defaultProps={disabled:!0,className:"",style:{}};var Rt=Tt,kt=fe.e=Ne},"24YM":function(Ge,fe,R){"use strict";Object.defineProperty(fe,"__esModule",{value:!0}),fe.SensorTabIndex=fe.SensorClassName=fe.SizeSensorId=void 0;var se="size-sensor-id";fe.SizeSensorId=se;var G="size-sensor-object";fe.SensorClassName=G;var M="-1";fe.SensorTabIndex=M},"24hK":function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return M});var se=R("JYp7"),G=function(){function v(b){this.element=b,this.next=v.Undefined,this.prev=v.Undefined}return v.Undefined=new v(void 0),v}(),M=function(){function v(){this._first=G.Undefined,this._last=G.Undefined,this._size=0}return Object.defineProperty(v.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),v.prototype.isEmpty=function(){return this._first===G.Undefined},v.prototype.clear=function(){this._first=G.Undefined,this._last=G.Undefined,this._size=0},v.prototype.unshift=function(b){return this._insert(b,!1)},v.prototype.push=function(b){return this._insert(b,!0)},v.prototype._insert=function(b,C){var w=this,m=new G(b);if(this._first===G.Undefined)this._first=m,this._last=m;else if(C){var d=this._last;this._last=m,m.prev=d,d.next=m}else{var i=this._first;this._first=m,m.next=i,i.prev=m}this._size+=1;var n=!1;return function(){n||(n=!0,w._remove(m))}},v.prototype.shift=function(){if(this._first===G.Undefined)return;var b=this._first.element;return this._remove(this._first),b},v.prototype.pop=function(){if(this._last===G.Undefined)return;var b=this._last.element;return this._remove(this._last),b},v.prototype._remove=function(b){if(b.prev!==G.Undefined&&b.next!==G.Undefined){var C=b.prev;C.next=b.next,b.next.prev=C}else b.prev===G.Undefined&&b.next===G.Undefined?(this._first=G.Undefined,this._last=G.Undefined):b.next===G.Undefined?(this._last=this._last.prev,this._last.next=G.Undefined):b.prev===G.Undefined&&(this._first=this._first.next,this._first.prev=G.Undefined);this._size-=1},v.prototype.iterator=function(){var b,C=this._first;return{next:function(){return C===G.Undefined?se.c:(b?b.value=C.element:b={done:!1,value:C.element},C=C.next,b)}}},v.prototype.toArray=function(){for(var b=[],C=this._first;C!==G.Undefined;C=C.next)b.push(C.element);return b},v}()},"2DNl":function(Ge,fe,R){var se=R("IMiH"),G=R("loD1"),M=R("59Ip"),v=R("aKvl"),b=R("n1HI"),C=R("hX1E"),w=C.normalizeRadian,m=R("Sj9i"),d=R("hyiK"),i=se.CMD,n=Math.PI*2,e=1e-4;function a(_,B){return Math.abs(_-B)<e}var s=[-1,-1,-1],o=[-1,-1];function f(){var _=o[0];o[0]=o[1],o[1]=_}function l(_,B,E,g,h,u,S,O,T,D){if(D>B&&D>g&&D>u&&D>O||D<B&&D<g&&D<u&&D<O)return 0;var I=m.cubicRootAt(B,g,u,O,D,s);if(I===0)return 0;for(var k=0,F=-1,X,U,K=0;K<I;K++){var V=s[K],N=V===0||V===1?.5:1,Q=m.cubicAt(_,E,h,S,V);if(Q<T)continue;F<0&&(F=m.cubicExtrema(B,g,u,O,o),o[1]<o[0]&&F>1&&f(),X=m.cubicAt(B,g,u,O,o[0]),F>1&&(U=m.cubicAt(B,g,u,O,o[1]))),F===2?V<o[0]?k+=X<B?N:-N:V<o[1]?k+=U<X?N:-N:k+=O<U?N:-N:V<o[0]?k+=X<B?N:-N:k+=O<X?N:-N}return k}function r(_,B,E,g,h,u,S,O){if(O>B&&O>g&&O>u||O<B&&O<g&&O<u)return 0;var T=m.quadraticRootAt(B,g,u,O,s);if(T===0)return 0;var D=m.quadraticExtremum(B,g,u);if(D>=0&&D<=1){for(var I=0,k=m.quadraticAt(B,g,u,D),F=0;F<T;F++){var X=s[F]===0||s[F]===1?.5:1,U=m.quadraticAt(_,E,h,s[F]);if(U<S)continue;s[F]<D?I+=k<B?X:-X:I+=u<k?X:-X}return I}else{var X=s[0]===0||s[0]===1?.5:1,U=m.quadraticAt(_,E,h,s[0]);return U<S?0:u<B?X:-X}}function c(_,B,E,g,h,u,S,O){if(O-=B,O>E||O<-E)return 0;var T=Math.sqrt(E*E-O*O);s[0]=-T,s[1]=T;var D=Math.abs(g-h);if(D<1e-4)return 0;if(D%n<1e-4){g=0,h=n;var I=u?1:-1;return S>=s[0]+_&&S<=s[1]+_?I:0}if(u){var T=g;g=w(h),h=w(T)}else g=w(g),h=w(h);g>h&&(h+=n);for(var k=0,F=0;F<2;F++){var X=s[F];if(X+_>S){var U=Math.atan2(O,X),I=u?1:-1;U<0&&(U=n+U),(U>=g&&U<=h||U+n>=g&&U+n<=h)&&(U>Math.PI/2&&U<Math.PI*1.5&&(I=-I),k+=I)}}return k}function A(_,B,E,g,h){for(var u=0,S=0,O=0,T=0,D=0,I=0;I<_.length;){var k=_[I++];k===i.M&&I>1&&(E||(u+=d(S,O,T,D,g,h))),I===1&&(S=_[I],O=_[I+1],T=S,D=O);switch(k){case i.M:T=_[I++],D=_[I++],S=T,O=D;break;case i.L:if(E){if(G.containStroke(S,O,_[I],_[I+1],B,g,h))return!0}else u+=d(S,O,_[I],_[I+1],g,h)||0;S=_[I++],O=_[I++];break;case i.C:if(E){if(M.containStroke(S,O,_[I++],_[I++],_[I++],_[I++],_[I],_[I+1],B,g,h))return!0}else u+=l(S,O,_[I++],_[I++],_[I++],_[I++],_[I],_[I+1],g,h)||0;S=_[I++],O=_[I++];break;case i.Q:if(E){if(v.containStroke(S,O,_[I++],_[I++],_[I],_[I+1],B,g,h))return!0}else u+=r(S,O,_[I++],_[I++],_[I],_[I+1],g,h)||0;S=_[I++],O=_[I++];break;case i.A:var F=_[I++],X=_[I++],U=_[I++],K=_[I++],V=_[I++],N=_[I++];I+=1;var Q=1-_[I++],J=Math.cos(V)*U+F,ne=Math.sin(V)*K+X;I>1?u+=d(S,O,J,ne,g,h):(T=J,D=ne);var ue=(g-F)*K/U+F;if(E){if(b.containStroke(F,X,K,V,V+N,Q,B,ue,h))return!0}else u+=c(F,X,K,V,V+N,Q,ue,h);S=Math.cos(V+N)*U+F,O=Math.sin(V+N)*K+X;break;case i.R:T=S=_[I++],D=O=_[I++];var be=_[I++],de=_[I++],J=T+be,ne=D+de;if(E){if(G.containStroke(T,D,J,D,B,g,h)||G.containStroke(J,D,J,ne,B,g,h)||G.containStroke(J,ne,T,ne,B,g,h)||G.containStroke(T,ne,T,D,B,g,h))return!0}else u+=d(J,D,J,ne,g,h),u+=d(T,ne,T,D,g,h);break;case i.Z:if(E){if(G.containStroke(S,O,T,D,B,g,h))return!0}else u+=d(S,O,T,D,g,h);S=T,O=D;break}}return!E&&!a(O,D)&&(u+=d(S,O,T,D,g,h)||0),u!==0}function p(_,B,E){return A(_,0,!1,B,E)}function x(_,B,E,g){return A(_,B,!0,E,g)}fe.contain=p,fe.containStroke=x},"2fw6":function(Ge,fe,R){var se=R("y+Vt"),G=se.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(M,v,b){b&&M.moveTo(v.cx+v.r,v.cy),M.arc(v.cx,v.cy,v.r,0,Math.PI*2,!0)}});Ge.exports=G},"3C/r":function(Ge,fe){var R=function(G,M){this.image=G,this.repeat=M,this.type="pattern"};R.prototype.getCanvasPattern=function(G){return G.createPattern(this.image,this.repeat||"repeat")};var se=R;Ge.exports=se},"3CBa":function(Ge,fe,R){var se=R("hydK"),G=se.createElement,M=R("bYtY"),v=R("SUKs"),b=R("y+Vt"),C=R("Dagg"),w=R("dqUG"),m=R("DBLp"),d=R("sW+o"),i=R("n6Mw"),n=R("vKoX"),e=R("P47w"),a=e.path,s=e.image,o=e.text;function f(h){return parseInt(h,10)}function l(h){return h instanceof b?a:h instanceof C?s:h instanceof w?o:a}function r(h,u){return u&&h&&u.parentNode!==h}function c(h,u,S){if(r(h,u)&&S){var O=S.nextSibling;O?h.insertBefore(u,O):h.appendChild(u)}}function A(h,u){if(r(h,u)){var S=h.firstChild;S?h.insertBefore(u,S):h.appendChild(u)}}function p(h,u){u&&h&&u.parentNode===h&&h.removeChild(u)}function x(h){return h.__textSvgEl}function _(h){return h.__svgEl}var B=function(h,u,S,O){this.root=h,this.storage=u,this._opts=S=M.extend({},S||{});var T=G("svg");T.setAttribute("xmlns","http://www.w3.org/2000/svg"),T.setAttribute("version","1.1"),T.setAttribute("baseProfile","full"),T.style.cssText="user-select:none;position:absolute;left:0;top:0;";var D=G("g");T.appendChild(D);var I=G("g");T.appendChild(I),this.gradientManager=new d(O,I),this.clipPathManager=new i(O,I),this.shadowManager=new n(O,I);var k=document.createElement("div");k.style.cssText="overflow:hidden;position:relative",this._svgDom=T,this._svgRoot=I,this._backgroundRoot=D,this._viewport=k,h.appendChild(k),k.appendChild(T),this.resize(S.width,S.height),this._visibleList=[]};B.prototype={constructor:B,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var h=this.getViewportRoot();if(h)return{offsetLeft:h.offsetLeft||0,offsetTop:h.offsetTop||0}},refresh:function(){var h=this.storage.getDisplayList(!0);this._paintList(h)},setBackgroundColor:function(h){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var u=G("rect");u.setAttribute("width",this.getWidth()),u.setAttribute("height",this.getHeight()),u.setAttribute("x",0),u.setAttribute("y",0),u.setAttribute("id",0),u.style.fill=h,this._backgroundRoot.appendChild(u),this._backgroundNode=u},_paintList:function(h){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var u=this._svgRoot,S=this._visibleList,O=h.length,T=[],D;for(D=0;D<O;D++){var I=h[D],k=l(I),F=_(I)||x(I);I.invisible||(I.__dirty&&(k&&k.brush(I),this.clipPathManager.update(I),I.style&&(this.gradientManager.update(I.style.fill),this.gradientManager.update(I.style.stroke),this.shadowManager.update(F,I)),I.__dirty=!1),T.push(I))}var X=m(S,T),U;for(D=0;D<X.length;D++){var K=X[D];if(K.removed)for(var V=0;V<K.count;V++){var I=S[K.indices[V]],F=_(I),N=x(I);p(u,F),p(u,N)}}for(D=0;D<X.length;D++){var K=X[D];if(K.added)for(var V=0;V<K.count;V++){var I=T[K.indices[V]],F=_(I),N=x(I);U?c(u,F,U):A(u,F),F?c(u,N,F):U?c(u,N,U):A(u,N),c(u,N,F),U=N||F||U,this.gradientManager.addWithoutUpdate(F||N,I),this.shadowManager.addWithoutUpdate(F||N,I),this.clipPathManager.markUsed(I)}else if(!K.removed)for(var V=0;V<K.count;V++){var I=T[K.indices[V]],F=_(I),N=x(I),F=_(I),N=x(I);this.gradientManager.markUsed(I),this.gradientManager.addWithoutUpdate(F||N,I),this.shadowManager.markUsed(I),this.shadowManager.addWithoutUpdate(F||N,I),this.clipPathManager.markUsed(I),N&&c(u,N,F),U=F||N||U}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=T},_getDefs:function(h){var u=this._svgDom,S=u.getElementsByTagName("defs");if(S.length===0)if(h){var S=u.insertBefore(G("defs"),u.firstChild);return S.contains||(S.contains=function(T){var D=S.children;if(!D)return!1;for(var I=D.length-1;I>=0;--I)if(D[I]===T)return!0;return!1}),S}else return null;else return S[0]},resize:function(h,u){var S=this._viewport;S.style.display="none";var O=this._opts;if(h!=null&&(O.width=h),u!=null&&(O.height=u),h=this._getSize(0),u=this._getSize(1),S.style.display="",this._width!==h||this._height!==u){this._width=h,this._height=u;var T=S.style;T.width=h+"px",T.height=u+"px";var D=this._svgDom;D.setAttribute("width",h),D.setAttribute("height",u)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",h),this._backgroundNode.setAttribute("height",u))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(h){var u=this._opts,S=["width","height"][h],O=["clientWidth","clientHeight"][h],T=["paddingLeft","paddingTop"][h],D=["paddingRight","paddingBottom"][h];if(u[S]!=null&&u[S]!=="auto")return parseFloat(u[S]);var I=this.root,k=document.defaultView.getComputedStyle(I);return(I[O]||f(k[S])||f(I.style[S]))-(f(k[T])||0)-(f(k[D])||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 h=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
\r<`));return"data:image/svg+xml;charset=UTF-8,"+h}};function E(h){return function(){v('In SVG mode painter not support method "'+h+'"')}}M.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(h){B.prototype[h]=E(h)});var g=B;Ge.exports=g},"3e3G":function(Ge,fe,R){var se=R("bYtY"),G=R("QuXc"),M=function(b,C,w,m,d){this.x=b==null?.5:b,this.y=C==null?.5:C,this.r=w==null?.5:w,this.type="radial",this.global=d||!1,G.call(this,m)};M.prototype={constructor:M},se.inherits(M,G);var v=M;Ge.exports=v},"3gBT":function(Ge,fe){var R=2311;function se(){return R++}Ge.exports=se},"4fz+":function(Ge,fe,R){var se=R("bYtY"),G=R("1bdT"),M=R("mFDi"),v=function(C){C=C||{},G.call(this,C);for(var w in C)C.hasOwnProperty(w)&&(this[w]=C[w]);this._children=[],this.__storage=null,this.__dirty=!0};v.prototype={constructor:v,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(C){return this._children[C]},childOfName:function(C){for(var w=this._children,m=0;m<w.length;m++)if(w[m].name===C)return w[m]},childCount:function(){return this._children.length},add:function(C){return C&&C!==this&&C.parent!==this&&(this._children.push(C),this._doAdd(C)),this},addBefore:function(C,w){if(C&&C!==this&&C.parent!==this&&w&&w.parent===this){var m=this._children,d=m.indexOf(w);d>=0&&(m.splice(d,0,C),this._doAdd(C))}return this},_doAdd:function(C){C.parent&&C.parent.remove(C),C.parent=this;var w=this.__storage,m=this.__zr;w&&w!==C.__storage&&(w.addToStorage(C),C instanceof v&&C.addChildrenToStorage(w)),m&&m.refresh()},remove:function(C){var w=this.__zr,m=this.__storage,d=this._children,i=se.indexOf(d,C);return i<0?this:(d.splice(i,1),C.parent=null,m&&(m.delFromStorage(C),C instanceof v&&C.delChildrenFromStorage(m)),w&&w.refresh(),this)},removeAll:function(){var C=this._children,w=this.__storage,m,d;for(d=0;d<C.length;d++)m=C[d],w&&(w.delFromStorage(m),m instanceof v&&m.delChildrenFromStorage(w)),m.parent=null;return C.length=0,this},eachChild:function(C,w){for(var m=this._children,d=0;d<m.length;d++){var i=m[d];C.call(w,i,d)}return this},traverse:function(C,w){for(var m=0;m<this._children.length;m++){var d=this._children[m];C.call(w,d),d.type==="group"&&d.traverse(C,w)}return this},addChildrenToStorage:function(C){for(var w=0;w<this._children.length;w++){var m=this._children[w];C.addToStorage(m),m instanceof v&&m.addChildrenToStorage(C)}},delChildrenFromStorage:function(C){for(var w=0;w<this._children.length;w++){var m=this._children[w];C.delFromStorage(m),m instanceof v&&m.delChildrenFromStorage(C)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(C){for(var w=null,m=new M(0,0,0,0),d=C||this._children,i=[],n=0;n<d.length;n++){var e=d[n];if(e.ignore||e.invisible)continue;var a=e.getBoundingRect(),s=e.getLocalTransform(i);s?(m.copy(a),m.applyTransform(s),w=w||m.clone(),w.union(m)):(w=w||a.clone(),w.union(a))}return w||m}},se.inherits(v,G);var b=v;Ge.exports=b},"4mN7":function(Ge,fe,R){var se=R("QBsz"),G=R("Sj9i"),M=Math.min,v=Math.max,b=Math.sin,C=Math.cos,w=Math.PI*2,m=se.create(),d=se.create(),i=se.create();function n(r,c,A){if(r.length===0)return;var p=r[0],x=p[0],_=p[0],B=p[1],E=p[1],g;for(g=1;g<r.length;g++)p=r[g],x=M(x,p[0]),_=v(_,p[0]),B=M(B,p[1]),E=v(E,p[1]);c[0]=x,c[1]=B,A[0]=_,A[1]=E}function e(r,c,A,p,x,_){x[0]=M(r,A),x[1]=M(c,p),_[0]=v(r,A),_[1]=v(c,p)}var a=[],s=[];function o(r,c,A,p,x,_,B,E,g,h){var u=G.cubicExtrema,S=G.cubicAt,O,T=u(r,A,x,B,a);for(g[0]=Infinity,g[1]=Infinity,h[0]=-Infinity,h[1]=-Infinity,O=0;O<T;O++){var D=S(r,A,x,B,a[O]);g[0]=M(D,g[0]),h[0]=v(D,h[0])}for(T=u(c,p,_,E,s),O=0;O<T;O++){var I=S(c,p,_,E,s[O]);g[1]=M(I,g[1]),h[1]=v(I,h[1])}g[0]=M(r,g[0]),h[0]=v(r,h[0]),g[0]=M(B,g[0]),h[0]=v(B,h[0]),g[1]=M(c,g[1]),h[1]=v(c,h[1]),g[1]=M(E,g[1]),h[1]=v(E,h[1])}function f(r,c,A,p,x,_,B,E){var g=G.quadraticExtremum,h=G.quadraticAt,u=v(M(g(r,A,x),1),0),S=v(M(g(c,p,_),1),0),O=h(r,A,x,u),T=h(c,p,_,S);B[0]=M(r,x,O),B[1]=M(c,_,T),E[0]=v(r,x,O),E[1]=v(c,_,T)}function l(r,c,A,p,x,_,B,E,g){var h=se.min,u=se.max,S=Math.abs(x-_);if(S%w<1e-4&&S>1e-4){E[0]=r-A,E[1]=c-p,g[0]=r+A,g[1]=c+p;return}if(m[0]=C(x)*A+r,m[1]=b(x)*p+c,d[0]=C(_)*A+r,d[1]=b(_)*p+c,h(E,m,d),u(g,m,d),x=x%w,x<0&&(x=x+w),_=_%w,_<0&&(_=_+w),x>_&&!B?_+=w:x<_&&B&&(x+=w),B){var O=_;_=x,x=O}for(var T=0;T<_;T+=Math.PI/2)T>x&&(i[0]=C(T)*A+r,i[1]=b(T)*p+c,h(E,i,E),u(g,i,g))}fe.fromPoints=n,fe.fromLine=e,fe.fromCubic=o,fe.fromQuadratic=f,fe.fromArc=l},"4qgm":function(Ge,fe){Ge.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(Ge,fe){Ge.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(Ge,fe,R){"use strict";R.d(fe,"a",function(){return x});var se=R("+L6B"),G=R("2/Rp"),M=R("2qtc"),v=R("kLXV"),b=R("9og8"),C=R("k1fw"),w=R("miYZ"),m=R("tsqr"),d=R("oBTY"),i=R("tJVT"),n=R("DZo9"),e=R("8z0m"),a=R("WmNS"),s=R.n(a),o=R("q1tI"),f=R.n(o),l=R("m3rI"),r=R("wzkS"),c=R("y5JW"),A=R("LtfV"),p=e.a.Dragger;function x(_){var B=[];return _&&_.length>0&&(B=_.map(function(E){return{uid:E.id,id:E.id,name:E.title+c.c+E.filesize,url:E.url,filesize:E.filesize,status:"done",response:{id:E.id}}})),B}fe.b=function(_){var B=_.value,E=_.onChange,g=_.action,h=_.className,u=_.maxSize,S=u===void 0?150:u,O=_.title,T=O===void 0?"\u4E0A\u4F20\u9644\u4EF6":O,D=_.showRemoveModal,I=D===void 0?!1:D,k=_.accept,F=k===void 0?"":k,X=_.additionalText,U=_.isDragger,K=_.number,V=K===void 0?1e3:K,N=_.aloneClear,Q=N===void 0?!1:N,J=_.restrict,ne=J===void 0?!0:J,ue=Object(o.useState)(!1),be=Object(i.a)(ue,2),de=be[0],_e=be[1],me=Object(o.useState)(B||[]),Ee=Object(i.a)(me,2),ge=Ee[0],Ae=Ee[1];Object(o.useEffect)(function(){B&&(Ae(Object(d.a)(B)),V===(B==null?void 0:B.length)&&_e(!0))},[B]);var ae=function(){setTimeout(function(){ge.pop(),Ae(Object(d.a)(ge))},500)},ve={multiple:!0,disabled:de,accept:F,withCredentials:!0,fileList:ge,beforeUpload:function(Te,Re){var Me=Te.size/1024/1024;return ge.concat(Re).length>V?(ge.pop(),Ae(Object(d.a)(ge)),m.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(V,"\u4E2A\u6587\u4EF6")),Q?Promise.reject():(ae(),!1)):Me<S?!0:(m.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(S,"MB).")),Q?Promise.reject():(ae(),!1))},action:g||"".concat(l.a.API_SERVER,"/api/attachments.json"),onChange:function(Te){var Re=Object(d.a)(Te.fileList);Re.length>=V?_e(!0):_e(!1),Ae(Object(d.a)(Re)),Re=Re.map(function(Me){var re;if(Me!=null&&(re=Me.response)!==null&&re!==void 0&&re.id){var j;Me.url="/api/attachments/".concat(Me==null||((j=Me.response)===null||j===void 0)?void 0:j.id)}return Me.name.indexOf(c.c)===-1&&(Me.name="".concat(Me.name).concat(c.c).concat(Object(c.a)(Me.size))),Object(C.a)({},Me)}),console.log("info:",Te),E(Re)},onRemove:function(){var ie=Object(b.a)(s.a.mark(function Re(Me){var re;return s.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(re=function(){var he=Object(b.a)(s.a.mark(function te(){var ce,Ie;return s.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(ce=Me.response?Me.response.id:Me.id,!ce){_t.next=8;break}return _t.next=4,Object(r.d)(Me.response?Me.response.id:Me.uid);case 4:return Ie=_t.sent,_t.abrupt("return",Ie);case 8:return _t.abrupt("return",!0);case 9:case"end":return _t.stop()}},te)}));return function(){return he.apply(this,arguments)}}(),!I){W.next=5;break}return W.abrupt("return",new Promise(function(he,te){v.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:f.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var ce=Object(b.a)(s.a.mark(function ze(){var _t;return s.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return Ke.next=2,re();case 2:_t=Ke.sent,m.b.success("\u5220\u9664\u6210\u529F"),he(!0);case 5:case"end":return Ke.stop()}},ze)}));function Ie(){return ce.apply(this,arguments)}return Ie}(),onCancel:function(){return he(!1)}})}));case 5:return W.next=7,re();case 7:return W.abrupt("return",W.sent);case 8:case"end":return W.stop()}},Re)}));function Te(Re){return ie.apply(this,arguments)}return Te}()};function oe(ie){ie.preventDefault(),ie.stopPropagation()}return f.a.createElement("div",{className:"multi-upload ".concat(h||"")},U&&f.a.createElement(p,ve,f.a.createElement("p",{className:"ant-upload-drag-icon"},f.a.createElement(A.a,null)),f.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",f.a.createElement("br",null),f.a.createElement("span",{style:{display:ne?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",S,"MB) ")),X),!U&&f.a.createElement(e.a,ve,f.a.createElement(G.a,{disabled:de},T),f.a.createElement("span",{onClick:oe,style:{marginLeft:10,color:"#FA6400",display:ne?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",S,"MB) ")))}},"55Ip":function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return c}),R.d(fe,"b",function(){return E});var se=R("Ty5D"),G=R("dI71"),M=R("q1tI"),v=R.n(M),b=R("YS25"),C=R("17x9"),w=R.n(C),m=R("wx14"),d=R("zLVn"),i=R("9R94"),n=function(h){Object(G.a)(u,h);function u(){for(var O,T=arguments.length,D=new Array(T),I=0;I<T;I++)D[I]=arguments[I];return O=h.call.apply(h,[this].concat(D))||this,O.history=Object(b.a)(O.props),O}var S=u.prototype;return S.render=function(){return v.a.createElement(se.c,{history:this.history,children:this.props.children})},u}(v.a.Component),e=function(h){Object(G.a)(u,h);function u(){for(var O,T=arguments.length,D=new Array(T),I=0;I<T;I++)D[I]=arguments[I];return O=h.call.apply(h,[this].concat(D))||this,O.history=Object(b.b)(O.props),O}var S=u.prototype;return S.render=function(){return v.a.createElement(se.c,{history:this.history,children:this.props.children})},u}(v.a.Component),a=function(u,S){return typeof u=="function"?u(S):u},s=function(u,S){return typeof u=="string"?Object(b.c)(u,null,null,S):u},o=function(u){return u},f=v.a.forwardRef;typeof f=="undefined"&&(f=o);function l(h){return!!(h.metaKey||h.altKey||h.ctrlKey||h.shiftKey)}var r=f(function(h,u){var S=h.innerRef,O=h.navigate,T=h.onClick,D=Object(d.a)(h,["innerRef","navigate","onClick"]),I=D.target,k=Object(m.a)({},D,{onClick:function(X){try{T&&T(X)}catch(U){throw X.preventDefault(),U}!X.defaultPrevented&&X.button===0&&(!I||I==="_self")&&!l(X)&&(X.preventDefault(),O())}});return o!==f?k.ref=u||S:k.ref=S,v.a.createElement("a",k)}),c=f(function(h,u){var S=h.component,O=S===void 0?r:S,T=h.replace,D=h.to,I=h.innerRef,k=Object(d.a)(h,["component","replace","to","innerRef"]);return v.a.createElement(se.e.Consumer,null,function(F){F||Object(i.a)(!1);var X=F.history,U=s(a(D,F.location),F.location),K=U?X.createHref(U):"",V=Object(m.a)({},k,{href:K,navigate:function(){var Q=a(D,F.location),J=T?X.replace:X.push;J(Q)}});return o!==f?V.ref=u||I:V.innerRef=I,v.a.createElement(O,V)})});if(!1)var A,p;var x=function(u){return u},_=v.a.forwardRef;typeof _=="undefined"&&(_=x);function B(){for(var h=arguments.length,u=new Array(h),S=0;S<h;S++)u[S]=arguments[S];return u.filter(function(O){return O}).join(" ")}var E=_(function(h,u){var S=h["aria-current"],O=S===void 0?"page":S,T=h.activeClassName,D=T===void 0?"active":T,I=h.activeStyle,k=h.className,F=h.exact,X=h.isActive,U=h.location,K=h.sensitive,V=h.strict,N=h.style,Q=h.to,J=h.innerRef,ne=Object(d.a)(h,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return v.a.createElement(se.e.Consumer,null,function(ue){ue||Object(i.a)(!1);var be=U||ue.location,de=s(a(Q,be),be),_e=de.pathname,me=_e&&_e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),Ee=me?Object(se.f)(be.pathname,{path:me,exact:F,sensitive:K,strict:V}):null,ge=!!(X?X(Ee,be):Ee),Ae=ge?B(k,D):k,ae=ge?Object(m.a)({},N,{},I):N,ve=Object(m.a)({"aria-current":ge&&O||null,className:Ae,style:ae,to:de},ne);return x!==_?ve.ref=u||J:ve.innerRef=J,v.a.createElement(c,ve)})});if(!1)var g},"59Ip":function(Ge,fe,R){var se=R("Sj9i");function G(M,v,b,C,w,m,d,i,n,e,a){if(n===0)return!1;var s=n;if(a>v+s&&a>C+s&&a>m+s&&a>i+s||a<v-s&&a<C-s&&a<m-s&&a<i-s||e>M+s&&e>b+s&&e>w+s&&e>d+s||e<M-s&&e<b-s&&e<w-s&&e<d-s)return!1;var o=se.cubicProjectPoint(M,v,b,C,w,m,d,i,e,a,null);return o<=s/2}fe.containStroke=G},"5D2P":function(Ge,fe){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFTklEQVRoQ91aS4xURRQ993UzUUZcqFEc4meh0cQFSlwgrvAHSgQWhOhCk4GZqmdw+ERUWDkrBMUBnIzzqqYjcTaaGBLFxA8MjIk/3PhZCCa6UAyKC11ARnDo6Wvu+HrS0/R7r96nWVBJpxfv3nPPrbp169aHUEAzxsxl5gcB3AdgAREtkH8AXSH87wBOMfMp+QfwFREd0Vr/k9c8ZQUwxixi5mWe5y1l5qUAyimxqkQ0XqvVxonoE631Nyn1p8VTO7B///75Fy5c2MzMWwB0ZDHaQmeSiPbMmTNnb3d39+k0mKkcMMZsBiC/W9IYSSH7K4C9Wuu9rjpODoyMjNxQq9VGADzuCpxT7gPP83p7e3v/TMJJdCAIgoVEdBDAzUlgBX8/ycwrfd//Pg431gFr7RPM/HbBxFLBEdGTSql3opQiHQiCoI+IXk9lrU3CzLzR9/3BVvAtHbDWPsrMH7aJTyZYInpMKfVRs/JFDlQqlduq1eoxIro2k6U2KTHzX+VyeXFPT8/PjSYucsBae4iZH24Tj1ywRHRYKfVIpANhnt+Ty0r7lbc0rhMzI2CMuRHAlwBubT+HXBZ+AbBEa/3HrFLCWruTmV/MBZ1N+TiAdyNUX2qZeYh2KaW2zThQqVTumZqaOlZgbePqynEiWquU+qFZwRjzBoBnIoAmS6WSTOhvp0PIGPMcgN2uVguSiyQfBIFPRMMJdrZqrV+bdsBa+x4zryqImAtMJHlr7RJmPgxgbhwQEb2vlFpNAwMDV3Z2dp7JUM+7EG0lE0l+dHS089y5c4dkkjqAVycmJq4ma+0yZv7YQaEIkUjyAh4EwTAR+a6GiGg5BUGwg4i2uyrlkEsi7xL3s8wz88syAm8x89M5iLmoxpIP4348bRYkolEyxowBkA25S1sLQJbyHhfhUCaWvMT9+fPnx5h5cQrMuugRceAEgDsdlKfTVph2rwMgC4mk37gWSz5L3DcZ+1EckAw0L44FM4/4vq+aZfr7+zu6urq2MbPMoSuavieSt9b6zJyU7+OonXVygIjWKKUOxCGFhaA4cj0AF/KS7z8D4DmMfpTIGdcQOgtgldZaJlpss9auA/B1q/Kgrhjm+08B3JuEF/ediE44T2IikiOP1Uqp7/IYDePeElFvXhwAY2nTqJCXkTiZ1XgBcT9jmplHxYEd4SR04kRER0ul0ur169dLWKVqYb7/IpVSjHB9IctSShzQWq9JQySMeyG/MI1ewhxYnqeYq2itnePYGPMmgO6iyAP4v5gTwBzl9Cta68RdnDHmWQAtz3WyOjRTTodZYSsRvZoRbLvWemeU7vDw8P2e532eETtSjZmf931/d31HtkguHdIWUw3oWmttm60NDQ1dVS6XZat6V8EOTMplitwpNJ5K7ALwQg5Da7XWszbnxphRAE/lwIxSnQnd5mMVGYWsZ///MvMK3/ePiFVjjFyADLSBvCyo0vuzj1VCo3J5kflgi5lPE9EKIprHzFIqtKO1PtiqWzLGyIb6oRyW5ZynBOCOHBhRqmNa61nHnhedjQZBcDsRycS7pg0E8kD+LZse3/d/agS5/I7XG0JpI4B9ebqsQN1NWuuWly2X7xVTvfestXfXarWDRHRTgT2aCMXMv3metzJp/5F4SymWhoaG5pfLZVlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="},"6+eU":function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return _});var se=R("wx14"),G=R("rePB"),M=R("VTBJ"),v=R("1OyB"),b=R("vuIU"),C=R("Ji7U"),w=R("LK+K"),m=R("q1tI"),d=R.n(m),i=R("TSYQ"),n=R.n(i),e=function(E){var g,h="".concat(E.rootPrefixCls,"-item"),u=n()(h,"".concat(h,"-").concat(E.page),(g={},Object(G.a)(g,"".concat(h,"-active"),E.active),Object(G.a)(g,E.className,!!E.className),Object(G.a)(g,"".concat(h,"-disabled"),!E.page),g)),S=function(){E.onClick(E.page)},O=function(D){E.onKeyPress(D,E.onClick,E.page)};return d.a.createElement("li",{title:E.showTitle?E.page:null,className:u,onClick:S,onKeyPress:O,tabIndex:"0"},E.itemRender(E.page,"page",d.a.createElement("a",{rel:"nofollow"},E.page)))},a=e,s={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},o=function(B){Object(C.a)(g,B);var E=Object(w.a)(g);function g(){var h;Object(v.a)(this,g);for(var u=arguments.length,S=new Array(u),O=0;O<u;O++)S[O]=arguments[O];return h=E.call.apply(E,[this].concat(S)),h.state={goInputText:""},h.buildOptionText=function(T){return"".concat(T," ").concat(h.props.locale.items_per_page)},h.changeSize=function(T){h.props.changeSize(Number(T))},h.handleChange=function(T){h.setState({goInputText:T.target.value})},h.handleBlur=function(T){var D=h.props,I=D.goButton,k=D.quickGo,F=D.rootPrefixCls,X=h.state.goInputText;if(I||X==="")return;if(T.relatedTarget&&(T.relatedTarget.className.indexOf("".concat(F,"-prev"))>=0||T.relatedTarget.className.indexOf("".concat(F,"-next"))>=0))return;h.setState({goInputText:""}),k(h.getValidValue())},h.go=function(T){var D=h.state.goInputText;if(D==="")return;(T.keyCode===s.ENTER||T.type==="click")&&(h.setState({goInputText:""}),h.props.quickGo(h.getValidValue()))},h}return Object(b.a)(g,[{key:"getValidValue",value:function(){var u=this.state,S=u.goInputText,O=u.current;return!S||isNaN(S)?O:Number(S)}},{key:"getPageSizeOptions",value:function(){var u=this.props,S=u.pageSize,O=u.pageSizeOptions;return O.some(function(T){return T.toString()===S.toString()})?O:O.concat([S.toString()]).sort(function(T,D){var I=isNaN(Number(T))?0:Number(T),k=isNaN(Number(D))?0:Number(D);return I-k})}},{key:"render",value:function(){var u=this,S=this.props,O=S.pageSize,T=S.locale,D=S.rootPrefixCls,I=S.changeSize,k=S.quickGo,F=S.goButton,X=S.selectComponentClass,U=S.buildOptionText,K=S.selectPrefixCls,V=S.disabled,N=this.state.goInputText,Q="".concat(D,"-options"),J=X,ne=null,ue=null,be=null;if(!I&&!k)return null;var de=this.getPageSizeOptions();if(I&&J){var _e=de.map(function(me,Ee){return d.a.createElement(J.Option,{key:Ee,value:me.toString()},(U||u.buildOptionText)(me))});ne=d.a.createElement(J,{disabled:V,prefixCls:K,showSearch:!1,className:"".concat(Q,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(O||de[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ee){return Ee.parentNode}},_e)}return k&&(F&&(be=typeof F=="boolean"?d.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:V,className:"".concat(Q,"-quick-jumper-button")},T.jump_to_confirm):d.a.createElement("span",{onClick:this.go,onKeyUp:this.go},F)),ue=d.a.createElement("div",{className:"".concat(Q,"-quick-jumper")},T.jump_to,d.a.createElement("input",{disabled:V,type:"text",value:N,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),T.page,be)),d.a.createElement("li",{className:"".concat(Q)},ne,ue)}}]),g}(d.a.Component);o.defaultProps={pageSizeOptions:["10","20","50","100"]};var f=o,l=R("N2Kk");function r(){}function c(B){return typeof B=="number"&&isFinite(B)&&Math.floor(B)===B}function A(B,E,g){return g}function p(B,E,g){var h=typeof B=="undefined"?E.pageSize:B;return Math.floor((g.total-1)/h)+1}var x=function(B){Object(C.a)(g,B);var E=Object(w.a)(g);function g(h){var u;Object(v.a)(this,g),u=E.call(this,h),u.getJumpPrevPage=function(){return Math.max(1,u.state.current-(u.props.showLessItems?3:5))},u.getJumpNextPage=function(){return Math.min(p(void 0,u.state,u.props),u.state.current+(u.props.showLessItems?3:5))},u.getItemIcon=function(I,k){var F=u.props.prefixCls,X=I||d.a.createElement("button",{type:"button","aria-label":k,className:"".concat(F,"-item-link")});return typeof I=="function"&&(X=d.a.createElement(I,Object(M.a)({},u.props))),X},u.savePaginationNode=function(I){u.paginationNode=I},u.isValid=function(I){return c(I)&&I!==u.state.current},u.shouldDisplayQuickJumper=function(){var I=u.props,k=I.showQuickJumper,F=I.pageSize,X=I.total;return X<=F?!1:k},u.handleKeyDown=function(I){(I.keyCode===s.ARROW_UP||I.keyCode===s.ARROW_DOWN)&&I.preventDefault()},u.handleKeyUp=function(I){var k=u.getValidValue(I),F=u.state.currentInputValue;k!==F&&u.setState({currentInputValue:k}),I.keyCode===s.ENTER?u.handleChange(k):I.keyCode===s.ARROW_UP?u.handleChange(k-1):I.keyCode===s.ARROW_DOWN&&u.handleChange(k+1)},u.changePageSize=function(I){var k=u.state.current,F=p(I,u.state,u.props);k=k>F?F:k,F===0&&(k=u.state.current),typeof I=="number"&&("pageSize"in u.props||u.setState({pageSize:I}),"current"in u.props||u.setState({current:k,currentInputValue:k})),u.props.onShowSizeChange(k,I),"onChange"in u.props&&u.props.onChange&&u.props.onChange(k,I)},u.handleChange=function(I){var k=u.props.disabled,F=I;if(u.isValid(F)&&!k){var X=p(void 0,u.state,u.props);F>X?F=X:F<1&&(F=1),"current"in u.props||u.setState({current:F,currentInputValue:F});var U=u.state.pageSize;return u.props.onChange(F,U),F}return u.state.current},u.prev=function(){u.hasPrev()&&u.handleChange(u.state.current-1)},u.next=function(){u.hasNext()&&u.handleChange(u.state.current+1)},u.jumpPrev=function(){u.handleChange(u.getJumpPrevPage())},u.jumpNext=function(){u.handleChange(u.getJumpNextPage())},u.hasPrev=function(){return u.state.current>1},u.hasNext=function(){return u.state.current<p(void 0,u.state,u.props)},u.runIfEnter=function(I,k){if(I.key==="Enter"||I.charCode===13){for(var F=arguments.length,X=new Array(F>2?F-2:0),U=2;U<F;U++)X[U-2]=arguments[U];k.apply(void 0,X)}},u.runIfEnterPrev=function(I){u.runIfEnter(I,u.prev)},u.runIfEnterNext=function(I){u.runIfEnter(I,u.next)},u.runIfEnterJumpPrev=function(I){u.runIfEnter(I,u.jumpPrev)},u.runIfEnterJumpNext=function(I){u.runIfEnter(I,u.jumpNext)},u.handleGoTO=function(I){(I.keyCode===s.ENTER||I.type==="click")&&u.handleChange(u.state.currentInputValue)};var S=h.onChange!==r,O="current"in h;O&&!S&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var T=h.defaultCurrent;"current"in h&&(T=h.current);var D=h.defaultPageSize;return"pageSize"in h&&(D=h.pageSize),T=Math.min(T,p(D,void 0,h)),u.state={current:T,currentInputValue:T,pageSize:D},u}return Object(b.a)(g,[{key:"componentDidUpdate",value:function(u,S){var O=this.props.prefixCls;if(S.current!==this.state.current&&this.paginationNode){var T=this.paginationNode.querySelector(".".concat(O,"-item-").concat(S.current));T&&document.activeElement===T&&T.blur()}}},{key:"getValidValue",value:function(u){var S=u.target.value,O=p(void 0,this.state,this.props),T=this.state.currentInputValue,D;return S===""?D=S:isNaN(Number(S))?D=T:S>=O?D=O:D=Number(S),D}},{key:"getShowSizeChanger",value:function(){var u=this.props,S=u.showSizeChanger,O=u.total,T=u.totalBoundaryShowSizeChanger;return typeof S!="undefined"?S:O>T}},{key:"renderPrev",value:function(u){var S=this.props,O=S.prevIcon,T=S.itemRender,D=T(u,"prev",this.getItemIcon(O,"prev page")),I=!this.hasPrev();return Object(m.isValidElement)(D)?Object(m.cloneElement)(D,{disabled:I}):D}},{key:"renderNext",value:function(u){var S=this.props,O=S.nextIcon,T=S.itemRender,D=T(u,"next",this.getItemIcon(O,"next page")),I=!this.hasNext();return Object(m.isValidElement)(D)?Object(m.cloneElement)(D,{disabled:I}):D}},{key:"render",value:function(){var u=this,S=this.props,O=S.prefixCls,T=S.className,D=S.style,I=S.disabled,k=S.hideOnSinglePage,F=S.total,X=S.locale,U=S.showQuickJumper,K=S.showLessItems,V=S.showTitle,N=S.showTotal,Q=S.simple,J=S.itemRender,ne=S.showPrevNextJumpers,ue=S.jumpPrevIcon,be=S.jumpNextIcon,de=S.selectComponentClass,_e=S.selectPrefixCls,me=S.pageSizeOptions,Ee=this.state,ge=Ee.current,Ae=Ee.pageSize,ae=Ee.currentInputValue;if(k===!0&&F<=Ae)return null;var ve=p(void 0,this.state,this.props),oe=[],ie=null,Te=null,Re=null,Me=null,re=null,j=U&&U.goButton,W=K?1:2,he=ge-1>0?ge-1:0,te=ge+1<ve?ge+1:ve,ce=Object.keys(this.props).reduce(function(Ue,Ne){return(Ne.substr(0,5)==="data-"||Ne.substr(0,5)==="aria-"||Ne==="role")&&(Ue[Ne]=u.props[Ne]),Ue},{});if(Q)return j&&(typeof j=="boolean"?re=d.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},X.jump_to_confirm):re=d.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},j),re=d.a.createElement("li",{title:V?"".concat(X.jump_to).concat(ge,"/").concat(ve):null,className:"".concat(O,"-simple-pager")},re)),d.a.createElement("ul",Object(se.a)({className:n()(O,"".concat(O,"-simple"),Object(G.a)({},"".concat(O,"-disabled"),I),T),style:D,ref:this.savePaginationNode},ce),d.a.createElement("li",{title:V?X.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:n()("".concat(O,"-prev"),Object(G.a)({},"".concat(O,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(he)),d.a.createElement("li",{title:V?"".concat(ge,"/").concat(ve):null,className:"".concat(O,"-simple-pager")},d.a.createElement("input",{type:"text",value:ae,disabled:I,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),d.a.createElement("span",{className:"".concat(O,"-slash")},"/"),ve),d.a.createElement("li",{title:V?X.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:n()("".concat(O,"-next"),Object(G.a)({},"".concat(O,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(te)),re);if(ve<=3+W*2){var Ie={locale:X,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:V,itemRender:J};ve||oe.push(d.a.createElement(a,Object(se.a)({},Ie,{key:"noPager",page:ve,className:"".concat(O,"-disabled")})));for(var ze=1;ze<=ve;ze+=1){var _t=ge===ze;oe.push(d.a.createElement(a,Object(se.a)({},Ie,{key:ze,page:ze,active:_t})))}}else{var He=K?X.prev_3:X.prev_5,Ke=K?X.next_3:X.next_5;ne&&(ie=d.a.createElement("li",{title:V?He:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:n()("".concat(O,"-jump-prev"),Object(G.a)({},"".concat(O,"-jump-prev-custom-icon"),!!ue))},J(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(ue,"prev page"))),Te=d.a.createElement("li",{title:V?Ke:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:n()("".concat(O,"-jump-next"),Object(G.a)({},"".concat(O,"-jump-next-custom-icon"),!!be))},J(this.getJumpNextPage(),"jump-next",this.getItemIcon(be,"next page")))),Me=d.a.createElement(a,{locale:X,last:!0,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ve,page:ve,active:!1,showTitle:V,itemRender:J}),Re=d.a.createElement(a,{locale:X,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:V,itemRender:J});var ht=Math.max(1,ge-W),St=Math.min(ge+W,ve);ge-1<=W&&(St=1+W*2),ve-ge<=W&&(ht=ve-W*2);for(var ct=ht;ct<=St;ct+=1){var lt=ge===ct;oe.push(d.a.createElement(a,{locale:X,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ct,page:ct,active:lt,showTitle:V,itemRender:J}))}ge-1>=W*2&&ge!==1+2&&(oe[0]=Object(m.cloneElement)(oe[0],{className:"".concat(O,"-item-after-jump-prev")}),oe.unshift(ie)),ve-ge>=W*2&&ge!==ve-2&&(oe[oe.length-1]=Object(m.cloneElement)(oe[oe.length-1],{className:"".concat(O,"-item-before-jump-next")}),oe.push(Te)),ht!==1&&oe.unshift(Re),St!==ve&&oe.push(Me)}var rt=null;N&&(rt=d.a.createElement("li",{className:"".concat(O,"-total-text")},N(F,[F===0?0:(ge-1)*Ae+1,ge*Ae>F?F:ge*Ae])));var Ze=!this.hasPrev()||!ve,$e=!this.hasNext()||!ve;return d.a.createElement("ul",Object(se.a)({className:n()(O,T,Object(G.a)({},"".concat(O,"-disabled"),I)),style:D,unselectable:"unselectable",ref:this.savePaginationNode},ce),rt,d.a.createElement("li",{title:V?X.prev_page:null,onClick:this.prev,tabIndex:Ze?null:0,onKeyPress:this.runIfEnterPrev,className:n()("".concat(O,"-prev"),Object(G.a)({},"".concat(O,"-disabled"),Ze)),"aria-disabled":Ze},this.renderPrev(he)),oe,d.a.createElement("li",{title:V?X.next_page:null,onClick:this.next,tabIndex:$e?null:0,onKeyPress:this.runIfEnterNext,className:n()("".concat(O,"-next"),Object(G.a)({},"".concat(O,"-disabled"),$e)),"aria-disabled":$e},this.renderNext(te)),d.a.createElement(f,{disabled:I,locale:X,rootPrefixCls:O,selectComponentClass:de,selectPrefixCls:_e,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ge,pageSize:Ae,pageSizeOptions:me,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:j}))}}],[{key:"getDerivedStateFromProps",value:function(u,S){var O={};if("current"in u&&(O.current=u.current,u.current!==S.current&&(O.currentInputValue=O.current)),"pageSize"in u&&u.pageSize!==S.pageSize){var T=S.current,D=p(u.pageSize,S,u);T=T>D?D:T,"current"in u||(O.current=T,O.currentInputValue=T),O.pageSize=u.pageSize}return O}}]),g}(d.a.Component);x.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:r,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:r,locale:l.a,style:{},itemRender:A,totalBoundaryShowSizeChanger:50};var _=x},"6GrX":function(Ge,fe,R){var se=R("mFDi"),G=R("Xnb7"),M=R("bYtY"),v=M.getContext,b=M.extend,C=M.retrieve2,w=M.retrieve3,m=M.trim,d={},i=0,n=5e3,e=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,a="12px sans-serif",s={};function o(k,F){s[k]=F}function f(k,F){F=F||a;var X=k+":"+F;if(d[X])return d[X];for(var U=(k+"").split(`
`),K=0,V=0,N=U.length;V<N;V++)K=Math.max(S(U[V],F).width,K);return i>n&&(i=0,d={}),i++,d[X]=K,K}function l(k,F,X,U,K,V,N,Q){return N?c(k,F,X,U,K,V,N,Q):r(k,F,X,U,K,V,Q)}function r(k,F,X,U,K,V,N){var Q=O(k,F,K,V,N),J=f(k,F);K&&(J+=K[1]+K[3]);var ne=Q.outerHeight,ue=A(0,J,X),be=p(0,ne,U),de=new se(ue,be,J,ne);return de.lineHeight=Q.lineHeight,de}function c(k,F,X,U,K,V,N,Q){var J=T(k,{rich:N,truncate:Q,font:F,textAlign:X,textPadding:K,textLineHeight:V}),ne=J.outerWidth,ue=J.outerHeight,be=A(0,ne,X),de=p(0,ue,U);return new se(be,de,ne,ue)}function A(k,F,X){return X==="right"?k-=F:X==="center"&&(k-=F/2),k}function p(k,F,X){return X==="middle"?k-=F/2:X==="bottom"&&(k-=F),k}function x(k,F,X){var U=F.textPosition,K=F.textDistance,V=X.x,N=X.y;K=K||0;var Q=X.height,J=X.width,ne=Q/2,ue="left",be="top";switch(U){case"left":V-=K,N+=ne,ue="right",be="middle";break;case"right":V+=K+J,N+=ne,be="middle";break;case"top":V+=J/2,N-=K,ue="center",be="bottom";break;case"bottom":V+=J/2,N+=Q+K,ue="center";break;case"inside":V+=J/2,N+=ne,ue="center",be="middle";break;case"insideLeft":V+=K,N+=ne,be="middle";break;case"insideRight":V+=J-K,N+=ne,ue="right",be="middle";break;case"insideTop":V+=J/2,N+=K,ue="center";break;case"insideBottom":V+=J/2,N+=Q-K,ue="center",be="bottom";break;case"insideTopLeft":V+=K,N+=K;break;case"insideTopRight":V+=J-K,N+=K,ue="right";break;case"insideBottomLeft":V+=K,N+=Q-K,be="bottom";break;case"insideBottomRight":V+=J-K,N+=Q-K,ue="right",be="bottom";break}return k=k||{},k.x=V,k.y=N,k.textAlign=ue,k.textVerticalAlign=be,k}function _(k,F,X){var U={textPosition:k,textDistance:X};return x({},U,F)}function B(k,F,X,U,K){if(!F)return"";var V=(k+"").split(`
`);K=E(F,X,U,K);for(var N=0,Q=V.length;N<Q;N++)V[N]=g(V[N],K);return V.join(`
`)}function E(k,F,X,U){U=b({},U),U.font=F;var X=C(X,"...");U.maxIterations=C(U.maxIterations,2);var K=U.minChar=C(U.minChar,0);U.cnCharWidth=f("\u56FD",F);var V=U.ascCharWidth=f("a",F);U.placeholder=C(U.placeholder,"");for(var N=k=Math.max(0,k-1),Q=0;Q<K&&N>=V;Q++)N-=V;var J=f(X,F);return J>N&&(X="",J=0),N=k-J,U.ellipsis=X,U.ellipsisWidth=J,U.contentWidth=N,U.containerWidth=k,U}function g(k,F){var X=F.containerWidth,U=F.font,K=F.contentWidth;if(!X)return"";var V=f(k,U);if(V<=X)return k;for(var N=0;;N++){if(V<=K||N>=F.maxIterations){k+=F.ellipsis;break}var Q=N===0?h(k,K,F.ascCharWidth,F.cnCharWidth):V>0?Math.floor(k.length*K/V):0;k=k.substr(0,Q),V=f(k,U)}return k===""&&(k=F.placeholder),k}function h(k,F,X,U){for(var K=0,V=0,N=k.length;V<N&&K<F;V++){var Q=k.charCodeAt(V);K+=0<=Q&&Q<=127?X:U}return V}function u(k){return f("\u56FD",k)}function S(k,F){return s.measureText(k,F)}s.measureText=function(k,F){var X=v();return X.font=F||a,X.measureText(k)};function O(k,F,X,U,K){k!=null&&(k+="");var V=C(U,u(F)),N=k?k.split(`
`):[],Q=N.length*V,J=Q,ne=!0;if(X&&(J+=X[0]+X[2]),k&&K){ne=!1;var ue=K.outerHeight,be=K.outerWidth;if(ue!=null&&J>ue)k="",N=[];else if(be!=null)for(var de=E(be-(X?X[1]+X[3]:0),F,K.ellipsis,{minChar:K.minChar,placeholder:K.placeholder}),_e=0,me=N.length;_e<me;_e++)N[_e]=g(N[_e],de)}return{lines:N,height:Q,outerHeight:J,lineHeight:V,canCacheByTextString:ne}}function T(k,F){var X={lines:[],width:0,height:0};if(k!=null&&(k+=""),!k)return X;for(var U=e.lastIndex=0,K;(K=e.exec(k))!=null;){var V=K.index;V>U&&D(X,k.substring(U,V)),D(X,K[2],K[1]),U=e.lastIndex}U<k.length&&D(X,k.substring(U,k.length));var N=X.lines,Q=0,J=0,ne=[],ue=F.textPadding,be=F.truncate,de=be&&be.outerWidth,_e=be&&be.outerHeight;ue&&(de!=null&&(de-=ue[1]+ue[3]),_e!=null&&(_e-=ue[0]+ue[2]));for(var me=0;me<N.length;me++){for(var Ee=N[me],ge=0,Ae=0,ae=0;ae<Ee.tokens.length;ae++){var ve=Ee.tokens[ae],oe=ve.styleName&&F.rich[ve.styleName]||{},ie=ve.textPadding=oe.textPadding,Te=ve.font=oe.font||F.font,Re=ve.textHeight=C(oe.textHeight,u(Te));if(ie&&(Re+=ie[0]+ie[2]),ve.height=Re,ve.lineHeight=w(oe.textLineHeight,F.textLineHeight,Re),ve.textAlign=oe&&oe.textAlign||F.textAlign,ve.textVerticalAlign=oe&&oe.textVerticalAlign||"middle",_e!=null&&Q+ve.lineHeight>_e)return{lines:[],width:0,height:0};ve.textWidth=f(ve.text,Te);var Me=oe.textWidth,re=Me==null||Me==="auto";if(typeof Me=="string"&&Me.charAt(Me.length-1)==="%")ve.percentWidth=Me,ne.push(ve),Me=0;else{if(re){Me=ve.textWidth;var j=oe.textBackgroundColor,W=j&&j.image;W&&(W=G.findExistImage(W),G.isImageReady(W)&&(Me=Math.max(Me,W.width*Re/W.height)))}var he=ie?ie[1]+ie[3]:0;Me+=he;var te=de!=null?de-Ae:null;te!=null&&te<Me&&(!re||te<he?(ve.text="",ve.textWidth=Me=0):(ve.text=B(ve.text,te-he,Te,be.ellipsis,{minChar:be.minChar}),ve.textWidth=f(ve.text,Te),Me=ve.textWidth+he))}Ae+=ve.width=Me,oe&&(ge=Math.max(ge,ve.lineHeight))}Ee.width=Ae,Ee.lineHeight=ge,Q+=ge,J=Math.max(J,Ae)}X.outerWidth=X.width=C(F.textWidth,J),X.outerHeight=X.height=C(F.textHeight,Q),ue&&(X.outerWidth+=ue[1]+ue[3],X.outerHeight+=ue[0]+ue[2]);for(var me=0;me<ne.length;me++){var ve=ne[me],ce=ve.percentWidth;ve.width=parseInt(ce,10)/100*J}return X}function D(k,F,X){for(var U=F==="",K=F.split(`
`),V=k.lines,N=0;N<K.length;N++){var Q=K[N],J={styleName:X,text:Q,isLineHolder:!Q&&!U};if(N)V.push({tokens:[J]});else{var ne=(V[V.length-1]||(V[0]={tokens:[]})).tokens,ue=ne.length;ue===1&&ne[0].isLineHolder?ne[0]=J:(Q||!ue||U)&&ne.push(J)}}}function I(k){var F=(k.fontSize||k.fontFamily)&&[k.fontStyle,k.fontWeight,(k.fontSize||12)+"px",k.fontFamily||"sans-serif"].join(" ");return F&&m(F)||k.textFont||k.font}fe.DEFAULT_FONT=a,fe.$override=o,fe.getWidth=f,fe.getBoundingRect=l,fe.adjustTextX=A,fe.adjustTextY=p,fe.calculateTextPosition=x,fe.adjustTextPositionOnRect=_,fe.truncateText=B,fe.getLineHeight=u,fe.measureText=S,fe.parsePlainText=O,fe.parseRichText=T,fe.makeFont=I},"6RRn":function(Ge,fe,R){"use strict";var se=R("wCXF"),G=R("n6Qo");R.d(fe,"b",function(){return G.a});var M=R("IBYe"),v=R("6eGT"),b=R("hW8S");R.d(fe,"a",function(){return b.a}),fe.c=se.b},"6eGT":function(Ge,fe,R){"use strict";function se(G){return null}fe.a=se},"6fms":function(Ge,fe,R){var se=R("SUKs"),G=R("06Qe"),M=R("bYtY"),v=M.each;function b(d){return parseInt(d,10)}function C(d,i){G.initVML(),this.root=d,this.storage=i;var n=document.createElement("div"),e=document.createElement("div");n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",e.style.cssText="position:absolute;left:0;top:0;",d.appendChild(n),this._vmlRoot=e,this._vmlViewport=n,this.resize();var a=i.delFromStorage,s=i.addToStorage;i.delFromStorage=function(o){a.call(i,o),o&&(o.onRemove&&o.onRemove(e))},i.addToStorage=function(o){o.onAdd&&o.onAdd(e),s.call(i,o)},this._firstPaint=!0}C.prototype={constructor:C,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var d=this.getViewportRoot();if(d)return{offsetLeft:d.offsetLeft||0,offsetTop:d.offsetTop||0}},refresh:function(){var d=this.storage.getDisplayList(!0,!0);this._paintList(d)},_paintList:function(d){for(var i=this._vmlRoot,n=0;n<d.length;n++){var e=d[n];e.invisible||e.ignore?(e.__alreadyNotVisible||e.onRemove(i),e.__alreadyNotVisible=!0):(e.__alreadyNotVisible&&e.onAdd(i),e.__alreadyNotVisible=!1,e.__dirty&&(e.beforeBrush&&e.beforeBrush(),(e.brushVML||e.brush).call(e,i),e.afterBrush&&e.afterBrush())),e.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(i),this._firstPaint=!1)},resize:function(d,i){var d=d==null?this._getWidth():d,i=i==null?this._getHeight():i;if(this._width!==d||this._height!==i){this._width=d,this._height=i;var n=this._vmlViewport.style;n.width=d+"px",n.height=i+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var d=this.root,i=d.currentStyle;return(d.clientWidth||b(i.width))-b(i.paddingLeft)-b(i.paddingRight)|0},_getHeight:function(){var d=this.root,i=d.currentStyle;return(d.clientHeight||b(i.height))-b(i.paddingTop)-b(i.paddingBottom)|0}};function w(d){return function(){se('In IE8.0 VML mode painter not support method "'+d+'"')}}v(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(d){C.prototype[d]=w(d)});var m=C;Ge.exports=m},"746U":function(Ge,fe,R){"use strict";R.d(fe,"d",function(){return G}),R.d(fe,"j",function(){return M}),R.d(fe,"i",function(){return v}),R.d(fe,"h",function(){return b}),R.d(fe,"e",function(){return C}),R.d(fe,"k",function(){return w}),R.d(fe,"l",function(){return m}),R.d(fe,"a",function(){return d}),R.d(fe,"f",function(){return n}),R.d(fe,"g",function(){return e}),R.d(fe,"m",function(){return a}),R.d(fe,"c",function(){return f}),R.d(fe,"b",function(){return l}),R.d(fe,"n",function(){return r}),R.d(fe,"o",function(){return c});var se={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function G(A){return Array.isArray?Array.isArray(A):!!(A&&typeof A.length===se.number&&A.constructor===Array)}function M(A){return typeof A===se.string||A instanceof String}function v(A){return typeof A===se.object&&A!==null&&!Array.isArray(A)&&!(A instanceof RegExp)&&!(A instanceof Date)}function b(A){return(typeof A===se.number||A instanceof Number)&&!isNaN(A)}function C(A){return A===!0||A===!1}function w(A){return typeof A===se.undefined}function m(A){return w(A)||A===null}function d(A,p){if(!A)throw new Error(p?"Unexpected type, expected '"+p+"'":"Unexpected type")}var i=Object.prototype.hasOwnProperty;function n(A){if(!v(A))return!1;for(var p in A)if(i.call(A,p))return!1;return!0}function e(A){return typeof A===se.function}function a(A,p){for(var x=Math.min(A.length,p.length),_=0;_<x;_++)s(A[_],p[_])}function s(A,p){if(M(p)){if(typeof A!==p)throw new Error("argument does not match constraint: typeof "+p)}else if(e(p)){try{if(A instanceof p)return}catch(x){}if(!m(A)&&A.constructor===p)return;if(p.length===1&&p.call(void 0,A)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function o(A){for(var p=[],x=Object.getPrototypeOf(A);Object.prototype!==x;)p=p.concat(Object.getOwnPropertyNames(x)),x=Object.getPrototypeOf(x);return p}function f(A){for(var p=[],x=0,_=o(A);x<_.length;x++){var B=_[x];typeof A[B]=="function"&&p.push(B)}return p}function l(A,p){for(var x=function(h){return function(){var u=Array.prototype.slice.call(arguments,0);return p(h,u)}},_={},B=0,E=A;B<E.length;B++){var g=E[B];_[g]=x(g)}return _}function r(A){return A===null?void 0:A}function c(A){return typeof A=="undefined"?null:A}},"7Cbv":function(Ge,fe,R){"use strict";var se=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),G=new Uint8Array(16);function M(){if(!se)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return se(G)}var v=/^(?:[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 b(a){return typeof a=="string"&&v.test(a)}for(var C=b,w=[],m=0;m<256;++m)w.push((m+256).toString(16).substr(1));function d(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=(w[a[s+0]]+w[a[s+1]]+w[a[s+2]]+w[a[s+3]]+"-"+w[a[s+4]]+w[a[s+5]]+"-"+w[a[s+6]]+w[a[s+7]]+"-"+w[a[s+8]]+w[a[s+9]]+"-"+w[a[s+10]]+w[a[s+11]]+w[a[s+12]]+w[a[s+13]]+w[a[s+14]]+w[a[s+15]]).toLowerCase();if(!C(o))throw TypeError("Stringified UUID is invalid");return o}var i=d;function n(a,s,o){a=a||{};var f=a.random||(a.rng||M)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,s){o=o||0;for(var l=0;l<16;++l)s[o+l]=f[l];return s}return i(f)}var e=fe.a=n},"7SHv":function(Ge,fe,R){var se=R("LPTA"),G=se.devicePixelRatio,M=R("bYtY"),v=R("SUKs"),b=R("mFDi"),C=R("BPZU"),w=R("Xmg4"),m=R("mLcG"),d=R("Dagg"),i=R("ItGF"),n=1e5,e=314159,a=.01,s=.001;function o(E){return parseInt(E,10)}function f(E){return E?E.__builtin__?!0:!(typeof E.resize!="function"||typeof E.refresh!="function"):!1}var l=new b(0,0,0,0),r=new b(0,0,0,0);function c(E,g,h){return l.copy(E.getBoundingRect()),E.transform&&l.applyTransform(E.transform),r.width=g,r.height=h,!l.intersect(r)}function A(E,g){if(E===g)return!1;if(!E||!g||E.length!==g.length)return!0;for(var h=0;h<E.length;h++)if(E[h]!==g[h])return!0;return!1}function p(E,g){for(var h=0;h<E.length;h++){var u=E[h];u.setTransform(g),g.beginPath(),u.buildPath(g,u.shape),g.clip(),u.restoreTransform(g)}}function x(E,g){var h=document.createElement("div");return h.style.cssText=["position:relative","width:"+E+"px","height:"+g+"px","padding:0","margin:0","border-width:0"].join(";")+";",h}var _=function(E,g,h){this.type="canvas";var u=!E.nodeName||E.nodeName.toUpperCase()==="CANVAS";this._opts=h=M.extend({},h||{}),this.dpr=h.devicePixelRatio||G,this._singleCanvas=u,this.root=E;var S=E.style;S&&(S["-webkit-tap-highlight-color"]="transparent",S["-webkit-user-select"]=S["user-select"]=S["-webkit-touch-callout"]="none",E.innerHTML=""),this.storage=g;var O=this._zlevelList=[],T=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,u){var I=E.width,k=E.height;h.width!=null&&(I=h.width),h.height!=null&&(k=h.height),this.dpr=h.devicePixelRatio||1,E.width=I*this.dpr,E.height=k*this.dpr,this._width=I,this._height=k;var F=new w(E,this,this.dpr);F.__builtin__=!0,F.initContext(),T[e]=F,F.zlevel=e,O.push(e),this._domRoot=E}else{this._width=this._getSize(0),this._height=this._getSize(1);var D=this._domRoot=x(this._width,this._height);E.appendChild(D)}this._hoverlayer=null,this._hoverElements=[]};_.prototype={constructor:_,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var E=this.getViewportRoot();if(E)return{offsetLeft:E.offsetLeft||0,offsetTop:E.offsetTop||0}},refresh:function(E){var g=this.storage.getDisplayList(!0),h=this._zlevelList;this._redrawId=Math.random(),this._paintList(g,E,this._redrawId);for(var u=0;u<h.length;u++){var S=h[u],O=this._layers[S];if(!O.__builtin__&&O.refresh){var T=u===0?this._backgroundColor:null;O.refresh(T)}}return this.refreshHover(),this},addHover:function(E,g){if(E.__hoverMir)return;var h=new E.constructor({style:E.style,shape:E.shape,z:E.z,z2:E.z2,silent:E.silent});return h.__from=E,E.__hoverMir=h,g&&h.setStyle(g),this._hoverElements.push(h),h},removeHover:function(E){var g=E.__hoverMir,h=this._hoverElements,u=M.indexOf(h,g);u>=0&&h.splice(u,1),E.__hoverMir=null},clearHover:function(E){for(var g=this._hoverElements,h=0;h<g.length;h++){var u=g[h].__from;u&&(u.__hoverMir=null)}g.length=0},refreshHover:function(){var E=this._hoverElements,g=E.length,h=this._hoverlayer;if(h&&h.clear(),!g)return;C(E,this.storage.displayableSortFunc),h||(h=this._hoverlayer=this.getLayer(n));var u={};h.ctx.save();for(var S=0;S<g;){var O=E[S],T=O.__from;if(!(T&&T.__zr)){E.splice(S,1),T.__hoverMir=null,g--;continue}S++,T.invisible||(O.transform=T.transform,O.invTransform=T.invTransform,O.__clipPaths=T.__clipPaths,this._doPaintEl(O,h,!0,u))}h.ctx.restore()},getHoverLayer:function(){return this.getLayer(n)},_paintList:function(E,g,h){if(this._redrawId!==h)return;g=g||!1,this._updateLayerStatus(E);var u=this._doPaintList(E,g);if(this._needsManuallyCompositing&&this._compositeManually(),!u){var S=this;m(function(){S._paintList(E,g,h)})}},_compositeManually:function(){var E=this.getLayer(e).ctx,g=this._domRoot.width,h=this._domRoot.height;E.clearRect(0,0,g,h),this.eachBuiltinLayer(function(u){u.virtual&&E.drawImage(u.dom,0,0,g,h)})},_doPaintList:function(E,g){for(var h=[],u=0;u<this._zlevelList.length;u++){var S=this._zlevelList[u],O=this._layers[S];O.__builtin__&&O!==this._hoverlayer&&(O.__dirty||g)&&h.push(O)}for(var T=!0,D=0;D<h.length;D++){var O=h[D],I=O.ctx,k={};I.save();var F=g?O.__startIndex:O.__drawIndex,X=!g&&O.incremental&&Date.now,U=X&&Date.now(),K=O.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(O.__startIndex===O.__endIndex)O.clear(!1,K);else if(F===O.__startIndex){var V=E[F];(!V.incremental||!V.notClear||g)&&O.clear(!1,K)}F===-1&&(console.error("For some unknown reason. drawIndex is -1"),F=O.__startIndex);for(var N=F;N<O.__endIndex;N++){var Q=E[N];if(this._doPaintEl(Q,O,g,k),Q.__dirty=Q.__dirtyText=!1,X){var J=Date.now()-U;if(J>15)break}}O.__drawIndex=N,O.__drawIndex<O.__endIndex&&(T=!1),k.prevElClipPaths&&I.restore(),I.restore()}return i.wxa&&M.each(this._layers,function(ne){ne&&ne.ctx&&ne.ctx.draw&&ne.ctx.draw()}),T},_doPaintEl:function(E,g,h,u){var S=g.ctx,O=E.transform;if((g.__dirty||h)&&!E.invisible&&E.style.opacity!==0&&!(O&&!O[0]&&!O[3])&&!(E.culling&&c(E,this._width,this._height))){var T=E.__clipPaths,D=u.prevElClipPaths;(!D||A(T,D))&&(D&&(S.restore(),u.prevElClipPaths=null,u.prevEl=null),T&&(S.save(),p(T,S),u.prevElClipPaths=T)),E.beforeBrush&&E.beforeBrush(S),E.brush(S,u.prevEl||null),u.prevEl=E,E.afterBrush&&E.afterBrush(S)}},getLayer:function(E,g){this._singleCanvas&&!this._needsManuallyCompositing&&(E=e);var h=this._layers[E];return h||(h=new w("zr_"+E,this,this.dpr),h.zlevel=E,h.__builtin__=!0,this._layerConfig[E]?M.merge(h,this._layerConfig[E],!0):this._layerConfig[E-a]&&M.merge(h,this._layerConfig[E-a],!0),g&&(h.virtual=g),this.insertLayer(E,h),h.initContext()),h},insertLayer:function(E,g){var h=this._layers,u=this._zlevelList,S=u.length,O=null,T=-1,D=this._domRoot;if(h[E]){v("ZLevel "+E+" has been used already");return}if(!f(g)){v("Layer of zlevel "+E+" is not valid");return}if(S>0&&E>u[0]){for(T=0;T<S-1&&!(u[T]<E&&u[T+1]>E);T++);O=h[u[T]]}if(u.splice(T+1,0,E),h[E]=g,!g.virtual)if(O){var I=O.dom;I.nextSibling?D.insertBefore(g.dom,I.nextSibling):D.appendChild(g.dom)}else D.firstChild?D.insertBefore(g.dom,D.firstChild):D.appendChild(g.dom)},eachLayer:function(E,g){var h=this._zlevelList,u,S;for(S=0;S<h.length;S++)u=h[S],E.call(g,this._layers[u],u)},eachBuiltinLayer:function(E,g){var h=this._zlevelList,u,S,O;for(O=0;O<h.length;O++)S=h[O],u=this._layers[S],u.__builtin__&&E.call(g,u,S)},eachOtherLayer:function(E,g){var h=this._zlevelList,u,S,O;for(O=0;O<h.length;O++)S=h[O],u=this._layers[S],u.__builtin__||E.call(g,u,S)},getLayers:function(){return this._layers},_updateLayerStatus:function(E){this.eachBuiltinLayer(function(k,F){k.__dirty=k.__used=!1});function g(k){S&&(S.__endIndex!==k&&(S.__dirty=!0),S.__endIndex=k)}if(this._singleCanvas)for(var h=1;h<E.length;h++){var u=E[h];if(u.zlevel!==E[h-1].zlevel||u.incremental){this._needsManuallyCompositing=!0;break}}for(var S=null,O=0,T,h=0;h<E.length;h++){var u=E[h],D=u.zlevel,I;T!==D&&(T=D,O=0),u.incremental?(I=this.getLayer(D+s,this._needsManuallyCompositing),I.incremental=!0,O=1):I=this.getLayer(D+(O>0?a:0),this._needsManuallyCompositing),I.__builtin__||v("ZLevel "+D+" has been used by unkown layer "+I.id),I!==S&&(I.__used=!0,I.__startIndex!==h&&(I.__dirty=!0),I.__startIndex=h,I.incremental?I.__drawIndex=-1:I.__drawIndex=h,g(h),S=I),u.__dirty&&(I.__dirty=!0,I.incremental&&I.__drawIndex<0&&(I.__drawIndex=h))}g(h),this.eachBuiltinLayer(function(k,F){!k.__used&&k.getElementCount()>0&&(k.__dirty=!0,k.__startIndex=k.__endIndex=k.__drawIndex=0),k.__dirty&&k.__drawIndex<0&&(k.__drawIndex=k.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(E){E.clear()},setBackgroundColor:function(E){this._backgroundColor=E},configLayer:function(E,g){if(g){var h=this._layerConfig;h[E]?M.merge(h[E],g,!0):h[E]=g;for(var u=0;u<this._zlevelList.length;u++){var S=this._zlevelList[u];if(S===E||S===E+a){var O=this._layers[S];M.merge(O,h[E],!0)}}}},delLayer:function(E){var g=this._layers,h=this._zlevelList,u=g[E];if(!u)return;u.dom.parentNode.removeChild(u.dom),delete g[E],h.splice(M.indexOf(h,E),1)},resize:function(E,g){if(this._domRoot.style){var h=this._domRoot;h.style.display="none";var u=this._opts;if(E!=null&&(u.width=E),g!=null&&(u.height=g),E=this._getSize(0),g=this._getSize(1),h.style.display="",this._width!==E||g!==this._height){h.style.width=E+"px",h.style.height=g+"px";for(var S in this._layers)this._layers.hasOwnProperty(S)&&this._layers[S].resize(E,g);M.each(this._progressiveLayers,function(O){O.resize(E,g)}),this.refresh(!0)}this._width=E,this._height=g}else{if(E==null||g==null)return;this._width=E,this._height=g,this.getLayer(e).resize(E,g)}return this},clearLayer:function(E){var g=this._layers[E];g&&g.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(E){if(E=E||{},this._singleCanvas&&!this._compositeManually)return this._layers[e].dom;var g=new w("image",this,E.pixelRatio||this.dpr);if(g.initContext(),g.clear(!1,E.backgroundColor||this._backgroundColor),E.pixelRatio<=this.dpr){this.refresh();var h=g.dom.width,u=g.dom.height,S=g.ctx;this.eachLayer(function(k){k.__builtin__?S.drawImage(k.dom,0,0,h,u):k.renderToCanvas&&(g.ctx.save(),k.renderToCanvas(g.ctx),g.ctx.restore())})}else for(var O={},T=this.storage.getDisplayList(!0),D=0;D<T.length;D++){var I=T[D];this._doPaintEl(I,g,!0,O)}return g.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(E){var g=this._opts,h=["width","height"][E],u=["clientWidth","clientHeight"][E],S=["paddingLeft","paddingTop"][E],O=["paddingRight","paddingBottom"][E];if(g[h]!=null&&g[h]!=="auto")return parseFloat(g[h]);var T=this.root,D=document.defaultView.getComputedStyle(T);return(T[u]||o(D[h])||o(T.style[h]))-(o(D[S])||0)-(o(D[O])||0)|0},pathToImage:function(E,g){g=g||this.dpr;var h=document.createElement("canvas"),u=h.getContext("2d"),S=E.getBoundingRect(),O=E.style,T=O.shadowBlur*g,D=O.shadowOffsetX*g,I=O.shadowOffsetY*g,k=O.hasStroke()?O.lineWidth:0,F=Math.max(k/2,-D+T),X=Math.max(k/2,D+T),U=Math.max(k/2,-I+T),K=Math.max(k/2,I+T),V=S.width+F+X,N=S.height+U+K;h.width=V*g,h.height=N*g,u.scale(g,g),u.clearRect(0,0,V,N),u.dpr=g;var Q={position:E.position,rotation:E.rotation,scale:E.scale};E.position=[F-S.x,U-S.y],E.rotation=0,E.scale=[1,1],E.updateTransform(),E&&E.brush(u);var J=d,ne=new J({style:{x:0,y:0,image:h}});return Q.position!=null&&(ne.position=E.position=Q.position),Q.rotation!=null&&(ne.rotation=E.rotation=Q.rotation),Q.scale!=null&&(ne.scale=E.scale=Q.scale),ne}};var B=_;Ge.exports=B},"7ZXX":function(Ge,fe,R){Ge.exports=R.p+"static/err.6e7c5817.png"},"7ahc":function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return p});var se=R("k1fw"),G=R("0Owb"),M=R("+L6B"),v=R("2/Rp"),b=R("y8nQ"),C=R("Vl3Y"),w=R("tJVT"),m=R("OaEy"),d=R("2fM7"),i=R("q1tI"),n=R.n(i),e=R("VrN/"),a=R.n(e),s=R("p77/"),o=R.n(s),f=R("c5Ni"),l=R.n(f),r=d.a.Option,c={labelCol:{span:4},wrapperCol:{span:20}},A={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};fe.b=function(x){var _=x.callback,B=x.onCancel,E=Object(i.useState)("python"),g=Object(w.a)(E,2),h=g[0],u=g[1];function S(T){u(A[T][1])}function O(T){_(T)}return n.a.createElement(C.a,Object(G.a)({},c,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:O}),n.a.createElement(C.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},n.a.createElement(d.a,{onChange:S},Object.keys(A).map(function(T){return n.a.createElement(r,{key:T,value:T},A[T][0])}))),n.a.createElement(C.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},n.a.createElement(p,{mode:h})),n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(v.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(v.a,{type:"ghost",onClick:B},"\u53D6\u6D88")))};function p(x){var _=x.value,B=x.onChange,E=x.mode,g=x.options,h=g===void 0?{}:g,u=Object(i.useRef)(),S=Object(i.useState)(),O=Object(w.a)(S,2),T=O[0],D=O[1];return Object(i.useEffect)(function(){if(T){function I(k){var F=k.getValue();B&&B(F)}return T.on("change",I),function(){T.off("change",I)}}},[T,B]),Object(i.useEffect)(function(){T&&T.setOption("mode",E)},[T,E]),Object(i.useEffect)(function(){T&&((_!==T.getValue()||_==="")&&setTimeout(function(){T.setValue(_||" ")},300))},[T,_]),Object(i.useEffect)(function(){if(u.current&&!T){var I=a.a.fromTextArea(u.current,Object(se.a)({mode:E,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},h));D(I)}},[u.current,T]),n.a.createElement("div",{className:"my-codemirror-container"},n.a.createElement("textarea",{ref:u}))}},"7ixt":function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return M});var se={adjustX:1,adjustY:1},G=[0,0],M={left:{points:["cr","cl"],overflow:se,offset:[-4,0],targetOffset:G},right:{points:["cl","cr"],overflow:se,offset:[4,0],targetOffset:G},top:{points:["bc","tc"],overflow:se,offset:[0,-4],targetOffset:G},bottom:{points:["tc","bc"],overflow:se,offset:[0,4],targetOffset:G},topLeft:{points:["bl","tl"],overflow:se,offset:[0,-4],targetOffset:G},leftTop:{points:["tr","tl"],overflow:se,offset:[-4,0],targetOffset:G},topRight:{points:["br","tr"],overflow:se,offset:[0,-4],targetOffset:G},rightTop:{points:["tl","tr"],overflow:se,offset:[4,0],targetOffset:G},bottomRight:{points:["tr","br"],overflow:se,offset:[0,4],targetOffset:G},rightBottom:{points:["bl","br"],overflow:se,offset:[4,0],targetOffset:G},bottomLeft:{points:["tl","bl"],overflow:se,offset:[0,4],targetOffset:G},leftBottom:{points:["br","bl"],overflow:se,offset:[-4,0],targetOffset:G}},v=M},"7oTu":function(Ge,fe,R){var se=R("IMiH"),G=R("QBsz"),M=G.applyTransform,v=se.CMD,b=[[],[],[]],C=Math.sqrt,w=Math.atan2;function m(d,i){var n=d.data,e,a,s,o,f,l,r=v.M,c=v.C,A=v.L,p=v.R,x=v.A,_=v.Q;for(s=0,o=0;s<n.length;){e=n[s++],o=s,a=0;switch(e){case r:a=1;break;case A:a=1;break;case c:a=3;break;case _:a=2;break;case x:var B=i[4],E=i[5],g=C(i[0]*i[0]+i[1]*i[1]),h=C(i[2]*i[2]+i[3]*i[3]),u=w(-i[1]/h,i[0]/g);n[s]*=g,n[s++]+=B,n[s]*=h,n[s++]+=E,n[s++]*=g,n[s++]*=h,n[s++]+=u,n[s++]+=u,s+=2,o=s;break;case p:l[0]=n[s++],l[1]=n[s++],M(l,l,i),n[o++]=l[0],n[o++]=l[1],l[0]+=n[s++],l[1]+=n[s++],M(l,l,i),n[o++]=l[0],n[o++]=l[1]}for(f=0;f<a;f++){var l=b[f];l[0]=n[s++],l[1]=n[s++],M(l,l,i),n[o++]=l[0],n[o++]=l[1]}}}Ge.exports=m},"7v3h":function(Ge,fe,R){Ge.exports=R.p+"static/empty2.dd73f390.png"},"8/bI":function(Ge,fe,R){Ge.exports=R.p+"static/empty.8918e228.png"},"815F":function(Ge,fe,R){"use strict";R.d(fe,"e",function(){return w}),R.d(fe,"c",function(){return d}),R.d(fe,"d",function(){return i}),R.d(fe,"a",function(){return e}),R.d(fe,"f",function(){return a}),R.d(fe,"b",function(){return s});var se=R("KQm4"),G=R("VTBJ"),M=R("Ff2n"),v=R("Zm9Q"),b=R("Kwbf"),C=R("OZM5");function w(o,f){return o!=null?o:f}function m(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=new Map;function l(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(r||[]).forEach(function(A){var p=A.key,x=A.children;Object(b.a)(p!=null,"Tree node must have a certain key: [".concat(c).concat(p,"]"));var _=String(p);Object(b.a)(!f.has(_)||p===null||p===void 0,"Same 'key' exist in the Tree: ".concat(_)),f.set(_,!0),l(x,"".concat(c).concat(_," > "))})}l(o)}function d(o){function f(l){var r=Object(v.a)(l);return r.map(function(c){if(!Object(C.i)(c))return Object(b.a)(!c,"Tree/TreeNode can only accept TreeNode as children."),null;var A=c.key,p=c.props,x=p.children,_=Object(M.a)(p,["children"]),B=Object(G.a)({key:A},_),E=f(x);return E.length&&(B.children=E),B}).filter(function(c){return c})}return f(o)}function i(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],l=new Set(f===!0?[]:f),r=[];function c(A){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return A.map(function(x,_){var B=Object(C.h)(p?p.pos:"0",_),E=w(x.key,B),g=Object(G.a)(Object(G.a)({},x),{},{parent:p,pos:B,children:null,data:x,isStart:[].concat(Object(se.a)(p?p.isStart:[]),[_===0]),isEnd:[].concat(Object(se.a)(p?p.isEnd:[]),[_===A.length-1])});return r.push(g),f===!0||l.has(E)?g.children=c(x.children||[],g):g.children=[],g})}return c(o),r}function n(o,f,l){var r;l?typeof l=="string"?r=function(p){return p[l]}:typeof l=="function"&&(r=function(p){return l(p)}):r=function(p,x){return w(p.key,x)};function c(A,p,x){var _=A?A.children:o,B=A?Object(C.h)(x.pos,p):"0";if(A){var E=r(A,B),g={node:A,index:p,pos:B,key:E,parentPos:x.node?x.pos:null,level:x.level+1};f(g)}_&&_.forEach(function(h,u){c(h,u,{node:A,pos:B,level:x?x.level+1:-1})})}c(null)}function e(o){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=f.initWrapper,r=f.processEntity,c=f.onProcessFinished,A=arguments.length>2?arguments[2]:void 0,p={},x={},_={posEntities:p,keyEntities:x};return l&&(_=l(_)||_),n(o,function(B){var E=B.node,g=B.index,h=B.pos,u=B.key,S=B.parentPos,O=B.level,T={node:E,index:g,key:u,pos:h,level:O},D=w(u,h);p[h]=T,x[D]=T,T.parent=p[S],T.parent&&(T.parent.children=T.parent.children||[],T.parent.children.push(T)),r&&r(T,_)},A),c&&c(_),_}function a(o,f){var l=f.expandedKeys,r=f.selectedKeys,c=f.loadedKeys,A=f.loadingKeys,p=f.checkedKeys,x=f.halfCheckedKeys,_=f.dragOverNodeKey,B=f.dropPosition,E=f.keyEntities,g=E[o],h={eventKey:o,expanded:l.indexOf(o)!==-1,selected:r.indexOf(o)!==-1,loaded:c.indexOf(o)!==-1,loading:A.indexOf(o)!==-1,checked:p.indexOf(o)!==-1,halfChecked:x.indexOf(o)!==-1,pos:String(g?g.pos:""),dragOver:_===o&&B===0,dragOverGapTop:_===o&&B===-1,dragOverGapBottom:_===o&&B===1};return h}function s(o){var f=o.data,l=o.expanded,r=o.selected,c=o.checked,A=o.loaded,p=o.loading,x=o.halfChecked,_=o.dragOver,B=o.dragOverGapTop,E=o.dragOverGapBottom,g=o.pos,h=o.active,u=Object(G.a)(Object(G.a)({},f),{},{expanded:l,selected:r,checked:c,loaded:A,loading:p,halfChecked:x,dragOver:_,dragOverGapTop:B,dragOverGapBottom:E,pos:g,active:h});return"props"in u||Object.defineProperty(u,"props",{get:function(){return Object(b.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),o}}),u}},"8Bcu":function(Ge,fe,R){Ge.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(Ge,fe,R){(function(se){se(R("VrN/"))})(function(se){"use strict";se.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 G=0;G<se.modeInfo.length;G++){var M=se.modeInfo[G];M.mimes&&(M.mime=M.mimes[0])}se.findModeByMIME=function(v){v=v.toLowerCase();for(var b=0;b<se.modeInfo.length;b++){var C=se.modeInfo[b];if(C.mime==v)return C;if(C.mimes){for(var w=0;w<C.mimes.length;w++)if(C.mimes[w]==v)return C}}if(/\+xml$/.test(v))return se.findModeByMIME("application/xml");if(/\+json$/.test(v))return se.findModeByMIME("application/json")},se.findModeByExtension=function(v){v=v.toLowerCase();for(var b=0;b<se.modeInfo.length;b++){var C=se.modeInfo[b];if(C.ext){for(var w=0;w<C.ext.length;w++)if(C.ext[w]==v)return C}}},se.findModeByFileName=function(v){for(var b=0;b<se.modeInfo.length;b++){var C=se.modeInfo[b];if(C.file&&C.file.test(v))return C}var w=v.lastIndexOf("."),m=w>-1&&v.substring(w+1,v.length);if(m)return se.findModeByExtension(m)},se.findModeByName=function(v){v=v.toLowerCase();for(var b=0;b<se.modeInfo.length;b++){var C=se.modeInfo[b];if(C.name.toLowerCase()==v)return C;if(C.alias){for(var w=0;w<C.alias.length;w++)if(C.alias[w].toLowerCase()==v)return C}}}})},"8HAY":function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return C}),R.d(fe,"b",function(){return w});var se=R("pmY6"),G=R("MI8n"),M=function(){var m=function(d,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a])},m(d,i)};return function(d,i){m(d,i);function n(){this.constructor=d}d.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}(),v=function(m,d,i,n){function e(a){return a instanceof i?a:new i(function(s){s(a)})}return new(i||(i=Promise))(function(a,s){function o(r){try{l(n.next(r))}catch(c){s(c)}}function f(r){try{l(n.throw(r))}catch(c){s(c)}}function l(r){r.done?a(r.value):e(r.value).then(o,f)}l((n=n.apply(m,d||[])).next())})},b=function(m,d){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,e,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(l){return function(r){return f([l,r])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,e&&(a=l[0]&2?e.return:l[0]?e.throw||((a=e.return)&&a.call(e),0):e.next)&&!(a=a.call(e,l[1])).done)return a;(e=0,a)&&(l=[l[0]&2,a.value]);switch(l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,e=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(l[0]===6&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=d.call(m,i)}catch(r){l=[6,r],e=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},C=function(m){M(d,m);function d(i,n,e,a,s){n===void 0&&(n=""),e===void 0&&(e=""),a===void 0&&(a=!0);var o=m.call(this)||this;return o._onDidChange=o._register(new G.a),o.onDidChange=o._onDidChange.event,o._enabled=!0,o._checked=!1,o._id=i,o._label=n,o._cssClass=e,o._enabled=a,o._actionCallback=s,o}return Object.defineProperty(d.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"label",{get:function(){return this._label},set:function(i){this._setLabel(i)},enumerable:!0,configurable:!0}),d.prototype._setLabel=function(i){this._label!==i&&(this._label=i,this._onDidChange.fire({label:i}))},Object.defineProperty(d.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(i){this._setTooltip(i)},enumerable:!0,configurable:!0}),d.prototype._setTooltip=function(i){this._tooltip!==i&&(this._tooltip=i,this._onDidChange.fire({tooltip:i}))},Object.defineProperty(d.prototype,"class",{get:function(){return this._cssClass},set:function(i){this._setClass(i)},enumerable:!0,configurable:!0}),d.prototype._setClass=function(i){this._cssClass!==i&&(this._cssClass=i,this._onDidChange.fire({class:i}))},Object.defineProperty(d.prototype,"enabled",{get:function(){return this._enabled},set:function(i){this._setEnabled(i)},enumerable:!0,configurable:!0}),d.prototype._setEnabled=function(i){this._enabled!==i&&(this._enabled=i,this._onDidChange.fire({enabled:i}))},Object.defineProperty(d.prototype,"checked",{get:function(){return this._checked},set:function(i){this._setChecked(i)},enumerable:!0,configurable:!0}),d.prototype._setChecked=function(i){this._checked!==i&&(this._checked=i,this._onDidChange.fire({checked:i}))},d.prototype.run=function(i,n){return this._actionCallback?this._actionCallback(i):Promise.resolve(!0)},d}(se.a),w=function(m){M(d,m);function d(){var i=m!==null&&m.apply(this,arguments)||this;return i._onDidBeforeRun=i._register(new G.a),i.onDidBeforeRun=i._onDidBeforeRun.event,i._onDidRun=i._register(new G.a),i.onDidRun=i._onDidRun.event,i}return d.prototype.run=function(i,n){return v(this,void 0,void 0,function(){var e,a;return b(this,function(s){switch(s.label){case 0:if(!i.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:i}),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.runAction(i,n)];case 2:return e=s.sent(),this._onDidRun.fire({action:i,result:e}),[3,4];case 3:return a=s.sent(),this._onDidRun.fire({action:i,error:a}),[3,4];case 4:return[2]}})})},d.prototype.runAction=function(i,n){var e=n?i.run(n):i.run();return Promise.resolve(e)},d}(se.a)},"8XDt":function(Ge,fe,R){R("qH13");var se=R("aX58"),G=se.registerPainter,M=R("6fms");G("vml",M)},"8hTe":function(Ge,fe,R){Ge.exports={button:"button___1wy9m"}},"8mKB":function(Ge,fe,R){"use strict";var se=R("rePB"),G=R("1OyB"),M=R("vuIU"),v=R("Ji7U"),b=R("md7G"),C=R("foSv"),w=R("q1tI"),m=R.n(w),d=R("m+aA"),i=R("TSYQ"),n=R.n(i),e=R("4IlW");function a(h){var u=h.pageXOffset,S="scrollLeft";if(typeof u!="number"){var O=h.document;u=O.documentElement[S],typeof u!="number"&&(u=O.body[S])}return u}function s(h){var u,S,O=h.ownerDocument,T=O.body,D=O&&O.documentElement,I=h.getBoundingClientRect();return u=I.left,S=I.top,u-=D.clientLeft||T.clientLeft||0,S-=D.clientTop||T.clientTop||0,{left:u,top:S}}function o(h){var u=s(h),S=h.ownerDocument,O=S.defaultView||S.parentWindow;return u.left+=a(O),u.left}function f(h){var u=l();return function(){var O=Object(C.a)(h),T;if(u){var D=Object(C.a)(this).constructor;T=Reflect.construct(O,arguments,D)}else T=O.apply(this,arguments);return Object(b.a)(this,T)}}function l(){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(h){return!1}}var r=function(h){Object(v.a)(S,h);var u=f(S);function S(){var O;return Object(G.a)(this,S),O=u.apply(this,arguments),O.onHover=function(T){var D=O.props,I=D.onHover,k=D.index;I(T,k)},O.onClick=function(T){var D=O.props,I=D.onClick,k=D.index;I(T,k)},O.onKeyDown=function(T){var D=O.props,I=D.onClick,k=D.index;T.keyCode===13&&I(T,k)},O}return Object(M.a)(S,[{key:"getClassName",value:function(){var T=this.props,D=T.prefixCls,I=T.index,k=T.value,F=T.allowHalf,X=T.focused,U=I+1,K=D;return k===0&&I===0&&X?K+=" ".concat(D,"-focused"):F&&k+.5>=U&&k<U?(K+=" ".concat(D,"-half ").concat(D,"-active"),X&&(K+=" ".concat(D,"-focused"))):(K+=U<=k?" ".concat(D,"-full"):" ".concat(D,"-zero"),U===k&&X&&(K+=" ".concat(D,"-focused"))),K}},{key:"render",value:function(){var T=this.onHover,D=this.onClick,I=this.onKeyDown,k=this.props,F=k.disabled,X=k.prefixCls,U=k.character,K=k.characterRender,V=k.index,N=k.count,Q=k.value,J=typeof U=="function"?U(this.props):U,ne=m.a.createElement("li",{className:this.getClassName()},m.a.createElement("div",{onClick:F?null:D,onKeyDown:F?null:I,onMouseMove:F?null:T,role:"radio","aria-checked":Q>V?"true":"false","aria-posinset":V+1,"aria-setsize":N,tabIndex:F?-1:0},m.a.createElement("div",{className:"".concat(X,"-first")},J),m.a.createElement("div",{className:"".concat(X,"-second")},J)));return K&&(ne=K(ne,this.props)),ne}}]),S}(m.a.Component);function c(h,u){var S=Object.keys(h);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(h);u&&(O=O.filter(function(T){return Object.getOwnPropertyDescriptor(h,T).enumerable})),S.push.apply(S,O)}return S}function A(h){for(var u=1;u<arguments.length;u++){var S=arguments[u]!=null?arguments[u]:{};u%2?c(Object(S),!0).forEach(function(O){Object(se.a)(h,O,S[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(S)):c(Object(S)).forEach(function(O){Object.defineProperty(h,O,Object.getOwnPropertyDescriptor(S,O))})}return h}function p(h){var u=x();return function(){var O=Object(C.a)(h),T;if(u){var D=Object(C.a)(this).constructor;T=Reflect.construct(O,arguments,D)}else T=O.apply(this,arguments);return Object(b.a)(this,T)}}function x(){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(h){return!1}}function _(){}var B=function(h){Object(v.a)(S,h);var u=p(S);function S(O){var T;Object(G.a)(this,S),T=u.call(this,O),T.onHover=function(I,k){var F=T.props.onHoverChange,X=T.getStarValue(k,I.pageX),U=T.state.cleanedValue;X!==U&&T.setState({hoverValue:X,cleanedValue:null}),F(X)},T.onMouseLeave=function(){var I=T.props.onHoverChange;T.setState({hoverValue:void 0,cleanedValue:null}),I(void 0)},T.onClick=function(I,k){var F=T.props.allowClear,X=T.state.value,U=T.getStarValue(k,I.pageX),K=!1;F&&(K=U===X),T.onMouseLeave(),T.changeValue(K?0:U),T.setState({cleanedValue:K?U:null})},T.onFocus=function(){var I=T.props.onFocus;T.setState({focused:!0}),I&&I()},T.onBlur=function(){var I=T.props.onBlur;T.setState({focused:!1}),I&&I()},T.onKeyDown=function(I){var k=I.keyCode,F=T.props,X=F.count,U=F.allowHalf,K=F.onKeyDown,V=F.direction,N=V==="rtl",Q=T.state.value;k===e.a.RIGHT&&Q<X&&!N?(U?Q+=.5:Q+=1,T.changeValue(Q),I.preventDefault()):k===e.a.LEFT&&Q>0&&!N||k===e.a.RIGHT&&Q>0&&N?(U?Q-=.5:Q-=1,T.changeValue(Q),I.preventDefault()):k===e.a.LEFT&&Q<X&&N&&(U?Q+=.5:Q+=1,T.changeValue(Q),I.preventDefault()),K&&K(I)},T.saveRef=function(I){return function(k){T.stars[I]=k}},T.saveRate=function(I){T.rate=I};var D=O.value;return D===void 0&&(D=O.defaultValue),T.stars={},T.state={value:D,focused:!1,cleanedValue:null},T}return Object(M.a)(S,[{key:"componentDidMount",value:function(){var T=this.props,D=T.autoFocus,I=T.disabled;D&&!I&&this.focus()}},{key:"getStarDOM",value:function(T){return Object(d.a)(this.stars[T])}},{key:"getStarValue",value:function(T,D){var I=this.props,k=I.allowHalf,F=I.direction,X=F==="rtl",U=T+1;if(k){var K=this.getStarDOM(T),V=o(K),N=K.clientWidth;(X&&D-V>N/2||!X&&D-V<N/2)&&(U-=.5)}return U}},{key:"focus",value:function(){var T=this.props.disabled;T||this.rate.focus()}},{key:"blur",value:function(){var T=this.props.disabled;T||this.rate.blur()}},{key:"changeValue",value:function(T){var D=this.props.onChange;"value"in this.props||this.setState({value:T}),D(T)}},{key:"render",value:function(){for(var T=this.props,D=T.count,I=T.allowHalf,k=T.style,F=T.prefixCls,X=T.disabled,U=T.className,K=T.character,V=T.characterRender,N=T.tabIndex,Q=T.direction,J=this.state,ne=J.value,ue=J.hoverValue,be=J.focused,de=[],_e=X?"".concat(F,"-disabled"):"",me=0;me<D;me+=1)de.push(m.a.createElement(r,{ref:this.saveRef(me),index:me,count:D,disabled:X,prefixCls:"".concat(F,"-star"),allowHalf:I,value:ue===void 0?ne:ue,onClick:this.onClick,onHover:this.onHover,key:me,character:K,characterRender:V,focused:be}));var Ee=n()(F,_e,U,Object(se.a)({},"".concat(F,"-rtl"),Q==="rtl"));return m.a.createElement("ul",{className:Ee,style:k,onMouseLeave:X?null:this.onMouseLeave,tabIndex:X?-1:N,onFocus:X?null:this.onFocus,onBlur:X?null:this.onBlur,onKeyDown:X?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},de)}}],[{key:"getDerivedStateFromProps",value:function(T,D){return"value"in T&&T.value!==void 0?A(A({},D),{},{value:T.value}):D}}]),S}(m.a.Component);B.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:_,character:"\u2605",onHoverChange:_,tabIndex:0,direction:"ltr"};var E=B,g=fe.a=E},"9Bee":function(Ge,fe,R){"use strict";var se=R("DYRE"),G=R("zeV3"),M=R("+L6B"),v=R("2/Rp"),b=R("k1fw"),C=R("9og8"),w=R("tJVT"),m=R("WmNS"),d=R.n(m),i=R("q1tI"),n=R.n(i),e=R("vg9a"),a=R("DlQD"),s=R.n(a),o=R("rUJ1");function f(pe,z){var Z=pe.match(/^(\s+)(?:```)/);if(Z===null)return z;var ye=Z[1];return z.split(`
`).map(function(xe){var Ce=xe.match(/^\s+/);if(Ce===null)return xe;var ft=Object(w.a)(Ce,1),zt=ft[0];return zt.length>=ye.length?xe.slice(ye.length):xe}).join(`
`)}var l=[],r=["<ul>"],c=new s.a.Renderer,A=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function p(){l.length=0,r=["<ul>"]}var x={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function _(pe,z,Z,ye){if(z>=pe.length||pe[z].level<=Z)return z;var xe=pe[z];ye.push("<li><a href='#"+xe.anchor+"'>"+xe.text+"</a>"),z++;var Ce=[];return z=_(pe,z,xe.level,Ce),Ce.length>0&&(ye.push("<ul>"),Ce.forEach(function(ft){ye.push(ft)}),ye.push("</ul>")),ye.push("</li>"),z=_(pe,z,Z,ye),z}function B(){return _(l,0,0,r),r.push("</ul>"),r.join("")}var E={heading:function(z){var Z=A.exec(z);if(Z)return{type:"heading",raw:Z[0],depth:Z[1].length,text:Z[2]}},fences:function(z){var Z=this.rules.block.fences.exec(z);if(Z){var ye=Z[0],xe=f(ye,Z[3]||""),Ce=Z[2]?Z[2].trim():Z[2];if(["latex","katex","math"].indexOf(Ce)>=0){var ft=u(),zt=xe;xe=ft,S[ft]={type:"block",expression:zt}}return{type:"code",raw:ye,lang:Ce,text:xe}}}},g=/(?:\${2})([^\n`]+?)(?:\${2})/gi,h=0,u=function(){return"__special_katext_id_".concat(h++,"__")},S={};function O(){return S}function T(){h=0,S={}}function D(pe){return pe=pe.replace(g,function(z,Z){var ye=u();return S[ye]={type:"inline",expression:Z},ye}),pe}var I=c.listitem;c.listitem=function(pe){return I(D(pe))};var k=c.paragraph;c.paragraph=function(pe){return k(D(pe))};var F=c.tablecell;c.tablecell=function(pe,z){return F(D(pe),z)},c.code=function(pe,z,Z){var ye=(z||"").match(/\S*/)[0];return ye?["latex","katex","math"].indexOf(ye)>=0?"<p class='editormd-tex'>".concat(pe,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(z,'">').concat(Z?pe:Object(o.escape)(pe,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(Z?pe:Object(o.escape)(pe,!0))+"</code></pre>"},c.heading=function(pe,z,Z){var ye=this.options.headerPrefix+Z.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return l.push({anchor:ye,level:z,text:pe}),"<h"+z+' id="'+ye+'">'+pe+"</h"+z+">"},s.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),s.a.use({tokenizer:E,renderer:c});var X=s.a,U=R("SJMd"),K=R("ulZh"),V=R.n(K),N=R("m3rI"),Q=R("Oy/b"),J=R("p5ED"),ne=R("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 ue=function(pe,z){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,ye){Z.__proto__=ye}||function(Z,ye){for(var xe in ye)Object.prototype.hasOwnProperty.call(ye,xe)&&(Z[xe]=ye[xe])})(pe,z)};function be(pe,z){function Z(){this.constructor=pe}ue(pe,z),pe.prototype=z===null?Object.create(z):(Z.prototype=z.prototype,new Z)}function de(pe,z,Z,ye){return new(Z||(Z=Promise))(function(xe,Ce){function ft(mn){try{ln(ye.next(mn))}catch(Jt){Ce(Jt)}}function zt(mn){try{ln(ye.throw(mn))}catch(Jt){Ce(Jt)}}function ln(mn){var Jt;mn.done?xe(mn.value):(Jt=mn.value,Jt instanceof Z?Jt:new Z(function(Zn){Zn(Jt)})).then(ft,zt)}ln((ye=ye.apply(pe,z||[])).next())})}function _e(pe,z){var Z,ye,xe,Ce,ft={label:0,sent:function(){if(1&xe[0])throw xe[1];return xe[1]},trys:[],ops:[]};return Ce={next:zt(0),throw:zt(1),return:zt(2)},typeof Symbol=="function"&&(Ce[Symbol.iterator]=function(){return this}),Ce;function zt(ln){return function(mn){return function(Jt){if(Z)throw new TypeError("Generator is already executing.");for(;ft;)try{if(Z=1,ye&&(xe=2&Jt[0]?ye.return:Jt[0]?ye.throw||((xe=ye.return)&&xe.call(ye),0):ye.next)&&!(xe=xe.call(ye,Jt[1])).done)return xe;switch(ye=0,xe&&(Jt=[2&Jt[0],xe.value]),Jt[0]){case 0:case 1:xe=Jt;break;case 4:return ft.label++,{value:Jt[1],done:!1};case 5:ft.label++,ye=Jt[1],Jt=[0];continue;case 7:Jt=ft.ops.pop(),ft.trys.pop();continue;default:if(!(xe=ft.trys,(xe=xe.length>0&&xe[xe.length-1])||Jt[0]!==6&&Jt[0]!==2)){ft=0;continue}if(Jt[0]===3&&(!xe||Jt[1]>xe[0]&&Jt[1]<xe[3])){ft.label=Jt[1];break}if(Jt[0]===6&&ft.label<xe[1]){ft.label=xe[1],xe=Jt;break}if(xe&&ft.label<xe[2]){ft.label=xe[2],ft.ops.push(Jt);break}xe[2]&&ft.ops.pop(),ft.trys.pop();continue}Jt=z.call(pe,ft)}catch(Zn){Jt=[6,Zn],ye=0}finally{Z=xe=0}if(5&Jt[0])throw Jt[1];return{value:Jt[0]?Jt[1]:void 0,done:!0}}([ln,mn])}}}function me(){for(var pe=0,z=0,Z=arguments.length;z<Z;z++)pe+=arguments[z].length;var ye=Array(pe),xe=0;for(z=0;z<Z;z++)for(var Ce=arguments[z],ft=0,zt=Ce.length;ft<zt;ft++,xe++)ye[xe]=Ce[ft];return ye}var Ee=function(){function pe(){}return pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},pe.setAttributes=function(z,Z){for(var ye=0,xe=Z;ye<xe.length;ye++){var Ce=xe[ye],ft=Ce[0],zt=Ce[1];z.setAttribute(ft,zt)}},pe.createRect=function(z,Z,ye){var xe=document.createElementNS("http://www.w3.org/2000/svg","rect");return xe.setAttribute("width",z.toString()),xe.setAttribute("height",Z.toString()),ye&&pe.setAttributes(xe,ye),xe},pe.createLine=function(z,Z,ye,xe,Ce){var ft=document.createElementNS("http://www.w3.org/2000/svg","line");return ft.setAttribute("x1",z.toString()),ft.setAttribute("y1",Z.toString()),ft.setAttribute("x2",ye.toString()),ft.setAttribute("y2",xe.toString()),Ce&&pe.setAttributes(ft,Ce),ft},pe.createPolygon=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ye.setAttribute("points",z),Z&&pe.setAttributes(ye,Z),ye},pe.createCircle=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","circle");return ye.setAttribute("cx",(z/2).toString()),ye.setAttribute("cy",(z/2).toString()),ye.setAttribute("r",z.toString()),Z&&pe.setAttributes(ye,Z),ye},pe.createEllipse=function(z,Z,ye){var xe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return xe.setAttribute("cx",(z/2).toString()),xe.setAttribute("cy",(Z/2).toString()),xe.setAttribute("rx",(z/2).toString()),xe.setAttribute("ry",(Z/2).toString()),ye&&pe.setAttributes(xe,ye),xe},pe.createGroup=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","g");return z&&pe.setAttributes(Z,z),Z},pe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},pe.createMarker=function(z,Z,ye,xe,Ce,ft,zt){var ln=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(ln,[["id",z],["orient",Z],["markerWidth",ye.toString()],["markerHeight",xe.toString()],["refX",Ce.toString()],["refY",ft.toString()]]),ln.appendChild(zt),ln},pe.createText=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","text");return Z.setAttribute("x","0"),Z.setAttribute("y","0"),z&&pe.setAttributes(Z,z),Z},pe.createTSpan=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ye.textContent=z,Z&&pe.setAttributes(ye,Z),ye},pe.createImage=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","image");return z&&pe.setAttributes(Z,z),Z},pe.createPoint=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ye.x=z,ye.y=Z,ye},pe.createPath=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","path");return ye.setAttribute("d",z),Z&&pe.setAttributes(ye,Z),ye},pe}(),ge=function(){function pe(){}return pe.addKey=function(z){pe.key=z},Object.defineProperty(pe,"isLicensed",{get:function(){return!!pe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(pe.key)},enumerable:!1,configurable:!0}),pe}(),Ae=function(){function pe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return pe.prototype.rasterize=function(z,Z,ye){var xe=this;return new Promise(function(Ce){var ft=ye!==void 0?ye:document.createElement("canvas");z===null&&(xe.markersOnly=!0,xe.naturalSize=!1);var zt=document.createElementNS("http://www.w3.org/2000/svg","svg");zt.setAttribute("xmlns","http://www.w3.org/2000/svg"),zt.setAttribute("width",Z.width.baseVal.valueAsString),zt.setAttribute("height",Z.height.baseVal.valueAsString),zt.setAttribute("viewBox","0 0 "+Z.viewBox.baseVal.width.toString()+" "+Z.viewBox.baseVal.height.toString()),zt.innerHTML=Z.innerHTML,xe.naturalSize===!0?(zt.width.baseVal.value=z.naturalWidth,zt.height.baseVal.value=z.naturalHeight):xe.width!==void 0&&xe.height!==void 0&&(zt.width.baseVal.value=xe.width,zt.height.baseVal.value=xe.height),ft.width=zt.width.baseVal.value,ft.height=zt.height.baseVal.value;var ln=zt.outerHTML,mn=ft.getContext("2d");xe.markersOnly!==!0&&mn.drawImage(z,0,0,ft.width,ft.height);var Jt=window.URL,Zn=new Image(ft.width,ft.height);Zn.setAttribute("crossOrigin","anonymous");var Un=new Blob([ln],{type:"image/svg+xml"}),nr=Jt.createObjectURL(Un);Zn.onload=function(){mn.drawImage(Zn,0,0),Jt.revokeObjectURL(nr);var Sr=ft.toDataURL(xe.imageType,xe.imageQuality);Ce(Sr)},Zn.src=nr})},pe}(),ae=function(){},ve=function(){function pe(z){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+z+"_"}return Object.defineProperty(pe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),pe.prototype.addClass=function(z){return this.styleSheet===void 0&&this.addStyleSheet(),z.name=""+this.classNamePrefix+z.localName,this.classes.push(z),this.styleSheet.sheet.insertRule("."+z.name+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length),z},pe.prototype.addRule=function(z){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(z),this.styleSheet.sheet.insertRule(z.selector+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length)},pe.prototype.addStyleSheet=function(){var z;this.styleSheet=document.createElement("style"),((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).appendChild(this.styleSheet),this.addRule(new oe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new oe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new oe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ie("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ie("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},pe.prototype.removeStyleSheet=function(){var z;this.styleSheet&&(((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},pe}(),oe=function(pe,z){this.selector=pe,this.style=z},ie=function(pe,z){this.localName=pe,this.style=z},Te=function(){function pe(z,Z,ye,xe,Ce){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=z,this.displayMode=Z,this.markerItems=ye,this.uiStyleSettings=xe,this.styles=Ce,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return pe.prototype.show=function(z){var Z=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=z,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ye=document.createElement("div");ye.className=this.toolbarBlockStyleClass.name,ye.style.whiteSpace="nowrap",this.uiContainer.appendChild(ye),this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"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(Ce){var ft=document.createElement("div");ft.className=""+Z.toolbarButtonStyleClass.name,ft.setAttribute("data-type-name",Ce.typeName),ft.innerHTML=Ce.icon,ft.addEventListener("click",function(){Z.markerToolbarButtonClicked(ft,Ce)}),Z.buttons.push(ft),Z.markerButtons.push(ft)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var xe=document.createElement("div");xe.className=this.toolbarBlockStyleClass.name,xe.style.whiteSpace="nowrap",xe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(xe),this.addActionButton(xe,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(xe,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},pe.prototype.addButtonClickListener=function(z){this.buttonClickListeners.push(z)},pe.prototype.removeButtonClickListener=function(z){this.buttonClickListeners.indexOf(z)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(z),1)},pe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},pe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var z=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Z=0;Z<this.markerButtons.length;Z++)Z<z||Z===z&&this.markerButtons.length-1===z?this.markerButtonBlock.appendChild(this.markerButtons[Z]):(Z===z&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Z]))}},pe.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},pe.prototype.resetButtonStyles=function(){var z=this;this.buttons.forEach(function(Z){Z.className=Z.className.replace(z.uiStyleSettings.toolbarButtonStyleColorsClassName?z.uiStyleSettings.toolbarButtonStyleColorsClassName:z.toolbarButtonStyleColorsClass.name,"").trim(),Z.className=Z.className.replace(z.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?z.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:z.toolbarActiveButtonStyleColorsClass.name,"").trim(),Z.className+=" "+(z.uiStyleSettings.toolbarButtonStyleColorsClassName?z.uiStyleSettings.toolbarButtonStyleColorsClassName:z.toolbarButtonStyleColorsClass.name)})},pe.prototype.addActionButton=function(z,Z,ye){var xe=this,Ce=document.createElement("div");switch(Ce.className=""+this.toolbarButtonStyleClass.name,Ce.innerHTML=Z,Ce.setAttribute("data-action",ye),Ce.addEventListener("click",function(){xe.actionToolbarButtonClicked(Ce,ye)}),ye){case"select":Ce.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ce.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ce.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ce.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ce.style.fill=this.uiStyleSettings.closeButtonColor}z.appendChild(Ce),this.buttons.push(Ce)},pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ie("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ie("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ie("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ie("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new ie("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var z=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ie("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
padding: `+z+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ie("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ie("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new oe("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new oe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},pe.prototype.markerToolbarButtonClicked=function(z,Z){this.setActiveButton(z),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ye){return ye("marker",Z)}),this.markerButtonOverflowBlock.style.display="none"},pe.prototype.actionToolbarButtonClicked=function(z,Z){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ye){return ye("action",Z)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},pe.prototype.setActiveButton=function(z){this.resetButtonStyles(),z.className=z.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),z.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},pe.prototype.setActiveMarkerButton=function(z){var Z=this.markerButtons.find(function(ye){return ye.getAttribute("data-type-name")===z});Z&&this.setActiveButton(Z)},pe.prototype.setCurrentMarker=function(z){var Z=this;this.currentMarker=z,this.buttons.filter(function(ye){return/delete|notes/.test(ye.getAttribute("data-action"))}).forEach(function(ye){Z.currentMarker===void 0?(ye.style.fillOpacity="0.4",ye.style.pointerEvents="none"):(ye.style.fillOpacity="1",ye.style.pointerEvents="all")})},pe}(),Re=function(){function pe(z,Z,ye,xe){this.panels=[],this.panelButtons=[],this.markerjsContainer=z,this.displayMode=Z,this.uiStyleSettings=ye,this.styles=xe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return pe.prototype.addStyles=function(){var z;this.toolboxStyleClass=this.styles.addClass(new ie("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 ie("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var Z=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ie("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ie("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ie("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 ie("toolbox-panel-row_colors",`
background-color: `+((z=this.uiStyleSettings.toolboxBackgroundColor)!==null&&z!==void 0?z:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ie("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Z)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Z)+`px;
padding: `+Z+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ie("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ie("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new oe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new oe("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},pe.prototype.show=function(z){var Z;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=z,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Z=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Z!==void 0?Z:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},pe.prototype.setPanelButtons=function(z){var Z,ye,xe=this;this.panels=z,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Z=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Z!==void 0?Z:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ye=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ye!==void 0?ye:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ce){var ft;Ce.uiStyleSettings=xe.uiStyleSettings;var zt=document.createElement("div");zt.className=xe.toolboxButtonStyleClass.name+" "+((ft=xe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ft!==void 0?ft:xe.toolboxButtonStyleColorsClass.name),zt.innerHTML=Ce.icon,zt.title=Ce.title,zt.addEventListener("click",function(){xe.panelButtonClick(Ce)}),xe.panelButtons.push(zt),xe.buttonRow.appendChild(zt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},pe.prototype.panelButtonClick=function(z){var Z=this,ye=-1;if(z!==this.activePanel){ye=this.panels.indexOf(z),this.panelRow.innerHTML="";var xe=z.getUi();xe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(xe),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=z}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Z.displayMode==="inline"?Z.panelRow.style.display="none":Z.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Ce,ft){var zt,ln;Ce.className=Z.toolboxButtonStyleClass.name+" "+(ft===ye?""+((zt=Z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&zt!==void 0?zt:Z.toolboxActiveButtonStyleColorsClass.name):""+((ln=Z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ln!==void 0?ln:Z.toolboxButtonStyleColorsClass.name))})},pe}(),Me=function(pe,z){this.title=pe,this.icon=z},re=function(pe){function z(Z,ye,xe,Ce){var ft=pe.call(this,Z,Ce||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return ft.colors=[],ft.addTransparent=!1,ft.colorBoxes=[],ft.colors=ye,ft.currentColor=xe,ft.setCurrentColor=ft.setCurrentColor.bind(ft),ft.getColorBox=ft.getColorBox.bind(ft),ft}return be(z,pe),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");return ye.style.overflow="hidden",ye.style.whiteSpace="nowrap",this.colors.forEach(function(xe){var Ce=Z.getColorBox(xe);ye.appendChild(Ce),Z.colorBoxes.push(Ce)}),ye},z.prototype.getColorBox=function(Z){var ye=this,xe=this.uiStyleSettings.toolbarHeight/4,Ce=this.uiStyleSettings.toolbarHeight-xe,ft=document.createElement("div");ft.style.display="inline-block",ft.style.boxSizing="content-box",ft.style.width=Ce-2+"px",ft.style.height=Ce-2+"px",ft.style.padding="1px",ft.style.marginRight="2px",ft.style.marginBottom="2px",ft.style.borderWidth="2px",ft.style.borderStyle="solid",ft.style.borderRadius=(Ce+2)/2+"px",ft.style.borderColor=Z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ft.addEventListener("click",function(){ye.setCurrentColor(Z,ft)});var zt=document.createElement("div");return zt.style.display="inline-block",zt.style.width=Ce-2+"px",zt.style.height=Ce-2+"px",zt.style.backgroundColor=Z,zt.style.borderRadius=Ce/2+"px",Z==="transparent"&&(zt.style.fill=this.uiStyleSettings.toolboxAccentColor,zt.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),ft.appendChild(zt),ft},z.prototype.setCurrentColor=function(Z,ye){var xe=this;this.currentColor=Z,this.colorBoxes.forEach(function(Ce){Ce.style.borderColor=Ce===ye?xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Z)},z}(Me),j=function(){function pe(z,Z,ye){this._state="new",this._isSelected=!1,this._container=z,this._overlayContainer=Z,this.globalSettings=ye,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(pe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),pe.prototype.ownsTarget=function(z){return!1},Object.defineProperty(pe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),pe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},pe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},pe.prototype.pointerDown=function(z,Z){},pe.prototype.dblClick=function(z,Z){},pe.prototype.manipulate=function(z){},pe.prototype.pointerUp=function(z){this.stateChanged()},pe.prototype.dispose=function(){},pe.prototype.addMarkerVisualToContainer=function(z){this.container.childNodes.length>0?this.container.insertBefore(z,this.container.childNodes[0]):this.container.appendChild(z)},pe.prototype.getState=function(){return{typeName:pe.typeName,state:this.state,notes:this.notes}},pe.prototype.restoreState=function(z){this._state=z.state,this.notes=z.notes},pe.prototype.scale=function(z,Z){},pe.prototype.colorChanged=function(z){this.onColorChanged&&this.onColorChanged(z),this.stateChanged()},pe.prototype.fillColorChanged=function(z){this.onFillColorChanged&&this.onFillColorChanged(z),this.stateChanged()},pe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var z=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),z.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(z)&&this.onStateChanged(this)}},pe.typeName="MarkerBase",pe}(),W=function(){function pe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return pe.prototype.findGripByVisual=function(z){return this.topLeft.ownsTarget(z)?this.topLeft:this.topCenter.ownsTarget(z)?this.topCenter:this.topRight.ownsTarget(z)?this.topRight:this.centerLeft.ownsTarget(z)?this.centerLeft:this.centerRight.ownsTarget(z)?this.centerRight:this.bottomLeft.ownsTarget(z)?this.bottomLeft:this.bottomCenter.ownsTarget(z)?this.bottomCenter:this.bottomRight.ownsTarget(z)?this.bottomRight:void 0},pe}(),he=function(){function pe(){this.GRIP_SIZE=10,this.visual=Ee.createGroup(),this.visual.appendChild(Ee.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ee.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return pe.prototype.ownsTarget=function(z){return z===this.visual||z===this.visual.childNodes[0]||z===this.visual.childNodes[1]},pe}(),te=function(){function pe(){}return pe.toITransformMatrix=function(z){return{a:z.a,b:z.b,c:z.c,d:z.d,e:z.e,f:z.f}},pe.toSVGMatrix=function(z,Z){return z.a=Z.a,z.b=Z.b,z.c=Z.c,z.d=Z.d,z.e=Z.e,z.f=Z.f,z},pe}(),ce=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,ye,xe)||this;return Ce.left=0,Ce.top=0,Ce.width=0,Ce.height=0,Ce.defaultSize={x:50,y:20},Ce.offsetX=0,Ce.offsetY=0,Ce.rotationAngle=0,Ce.CB_DISTANCE=10,Ce._suppressMarkerCreateEvent=!1,Ce.container.transform.baseVal.appendItem(Ee.createTransform()),Ce.setupControlBox(),Ce}return be(z,pe),Object.defineProperty(z.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"visual",{get:function(){return this._visual},set:function(Z){this._visual=Z;var ye=Ee.createTransform();this._visual.transform.baseVal.appendItem(ye)},enumerable:!1,configurable:!0}),z.prototype.ownsTarget=function(Z){return!!pe.prototype.ownsTarget.call(this,Z)||!!(this.controlGrips.findGripByVisual(Z)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Z))},z.prototype.pointerDown=function(Z,ye){pe.prototype.pointerDown.call(this,Z,ye),this.state==="new"&&(this.left=Z.x,this.top=Z.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var xe=this.unrotatePoint(Z);if(this.manipulationStartX=xe.x,this.manipulationStartY=xe.y,this.offsetX=xe.x-this.left,this.offsetY=xe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ye),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ye)){this.activeGrip=this.rotatorGrip;var Ce=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ce.x-this.width/2,this.top=Ce.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ft=this.container.transform.baseVal.getItem(0);ft.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ft,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},z.prototype.pointerUp=function(Z){var ye=this.state;pe.prototype.pointerUp.call(this,Z),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Z),this._state="select",ye==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},z.prototype.moveVisual=function(Z){this.visual.style.transform="translate("+Z.x+"px, "+Z.y+"px)"},z.prototype.manipulate=function(Z){var ye=this.unrotatePoint(Z);this.state==="creating"?this.resize(Z):this.state==="move"?(this.left=this.manipulationStartLeft+(ye.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ye.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ye):this.state==="rotate"&&this.rotate(Z)},z.prototype.resize=function(Z){var ye=this.manipulationStartLeft,xe=this.manipulationStartWidth,Ce=this.manipulationStartTop,ft=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ye=this.manipulationStartLeft+Z.x-this.manipulationStartX,xe=this.manipulationStartWidth+this.manipulationStartLeft-ye;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:xe=this.manipulationStartWidth+Z.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ce=this.manipulationStartTop+Z.y-this.manipulationStartY,ft=this.manipulationStartHeight+this.manipulationStartTop-Ce;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ft=this.manipulationStartHeight+Z.y-this.manipulationStartY}xe>=0?(this.left=ye,this.width=xe):(this.left=ye+xe,this.width=-xe),ft>=0?(this.top=Ce,this.height=ft):(this.top=Ce+ft,this.height=-ft),this.setSize()},z.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},z.prototype.rotate=function(Z){if(Math.abs(Z.x-this.centerX)>.1){var ye=Math.sign(Z.x-this.centerX);this.rotationAngle=180*Math.atan((Z.y-this.centerY)/(Z.x-this.centerX))/Math.PI+90*ye,this.applyRotation()}},z.prototype.applyRotation=function(){var Z=this.container.transform.baseVal.getItem(0);Z.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Z,0)},z.prototype.rotatePoint=function(Z){if(this.rotationAngle===0)return Z;var ye=this.container.getCTM(),xe=Ee.createPoint(Z.x,Z.y);return{x:(xe=xe.matrixTransform(ye)).x,y:xe.y}},z.prototype.unrotatePoint=function(Z){if(this.rotationAngle===0)return Z;var ye=this.container.getCTM();ye=ye.inverse();var xe=Ee.createPoint(Z.x,Z.y);return{x:(xe=xe.matrixTransform(ye)).x,y:xe.y}},z.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup();var Z=Ee.createTransform();Z.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Z),this.container.appendChild(this.controlBox),this.controlRect=Ee.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=Ee.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 W,this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){var Z=this.controlBox.transform.baseVal.getItem(0);Z.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Z,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()},z.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()},z.prototype.createGrip=function(){var Z=new he;return Z.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(Z.visual),Z},z.prototype.positionGrips=function(){var Z=this.controlGrips.topLeft.GRIP_SIZE,ye=-Z/2,xe=ye,Ce=(this.width+this.CB_DISTANCE)/2-Z/2,ft=(this.height+this.CB_DISTANCE)/2-Z/2,zt=this.height+this.CB_DISTANCE-Z/2,ln=this.width+this.CB_DISTANCE-Z/2;this.positionGrip(this.controlGrips.topLeft.visual,ye,xe),this.positionGrip(this.controlGrips.topCenter.visual,Ce,xe),this.positionGrip(this.controlGrips.topRight.visual,ln,xe),this.positionGrip(this.controlGrips.centerLeft.visual,ye,ft),this.positionGrip(this.controlGrips.centerRight.visual,ln,ft),this.positionGrip(this.controlGrips.bottomLeft.visual,ye,zt),this.positionGrip(this.controlGrips.bottomCenter.visual,Ce,zt),this.positionGrip(this.controlGrips.bottomRight.visual,ln,zt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ce,xe-3*this.CB_DISTANCE)},z.prototype.positionGrip=function(Z,ye,xe){var Ce=Z.transform.baseVal.getItem(0);Ce.setTranslate(ye,xe),Z.transform.baseVal.replaceItem(Ce,0)},z.prototype.hideControlBox=function(){this.controlBox.style.display="none"},z.prototype.showControlBox=function(){this.controlBox.style.display=""},z.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:te.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:te.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},pe.prototype.getState.call(this))},z.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var ye=Z;this.left=ye.left,this.top=ye.top,this.width=ye.width,this.height=ye.height,this.rotationAngle=ye.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(te.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ye.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(te.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ye.containerTransformMatrix))},z.prototype.scale=function(Z,ye){pe.prototype.scale.call(this,Z,ye);var xe=this.rotatePoint({x:this.left,y:this.top}),Ce=this.unrotatePoint({x:xe.x*Z,y:xe.y*ye});this.left=Ce.x,this.top=Ce.y,this.width=this.width*Z,this.height=this.height*ye,this.adjustControlBox()},z}(j),Ie=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,ye,xe)||this;return Ce.fillColor="transparent",Ce.strokeColor="transparent",Ce.strokeWidth=0,Ce.strokeDasharray="",Ce.opacity=1,Ce.setStrokeColor=Ce.setStrokeColor.bind(Ce),Ce.setFillColor=Ce.setFillColor.bind(Ce),Ce.setStrokeWidth=Ce.setStrokeWidth.bind(Ce),Ce.setStrokeDasharray=Ce.setStrokeDasharray.bind(Ce),Ce.createVisual=Ce.createVisual.bind(Ce),Ce}return be(z,pe),z.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},z.prototype.createVisual=function(){this.visual=Ee.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)},z.prototype.pointerDown=function(Z,ye){pe.prototype.pointerDown.call(this,Z,ye),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},z.prototype.manipulate=function(Z){pe.prototype.manipulate.call(this,Z)},z.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),this.setSize()},z.prototype.setSize=function(){pe.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(Z){pe.prototype.pointerUp.call(this,Z),this.setSize()},z.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},z.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},z.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},pe.prototype.getState.call(this))},z.prototype.restoreState=function(Z){var ye=Z;this.fillColor=ye.fillColor,this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.opacity=ye.opacity,this.createVisual(),pe.prototype.restoreState.call(this,Z),this.setSize()},z.prototype.scale=function(Z,ye){pe.prototype.scale.call(this,Z,ye),this.setSize()},z.title="Rectangle marker",z}(ce),ze=function(pe){function z(Z,ye,xe,Ce){var ft=pe.call(this,Z,Ce||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ft.widths=[],ft.widthBoxes=[],ft.widths=ye,ft.currentWidth=xe,ft.setCurrentWidth=ft.setCurrentWidth.bind(ft),ft}return be(z,pe),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");return ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2",this.widths.forEach(function(xe){var Ce=document.createElement("div");Ce.style.display="flex",Ce.style.flexGrow="2",Ce.style.alignItems="center",Ce.style.justifyContent="space-between",Ce.style.padding="5px",Ce.style.borderWidth="2px",Ce.style.borderStyle="solid",Ce.style.borderColor=xe===Z.currentWidth?Z.uiStyleSettings.toolboxAccentColor:"transparent",Ce.addEventListener("click",function(){Z.setCurrentWidth(xe,Ce)}),ye.appendChild(Ce);var ft=document.createElement("div");ft.innerText=xe.toString(),ft.style.marginRight="5px",Ce.appendChild(ft);var zt=document.createElement("div");zt.style.minHeight="20px",zt.style.flexGrow="2",zt.style.display="flex",zt.style.alignItems="center";var ln=document.createElement("hr");ln.style.minWidth="20px",ln.style.border="0px",ln.style.borderTop=xe+"px solid "+Z.uiStyleSettings.toolboxColor,ln.style.flexGrow="2",zt.appendChild(ln),Ce.appendChild(zt),Z.widthBoxes.push(Ce)}),ye},z.prototype.setCurrentWidth=function(Z,ye){var xe=this;this.currentWidth=Z,this.widthBoxes.forEach(function(Ce){Ce.style.borderColor=Ce===ye?xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},z}(Me),_t=function(pe){function z(Z,ye,xe,Ce){var ft=pe.call(this,Z,Ce||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return ft.styles=[],ft.styleBoxes=[],ft.styles=ye,ft.currentStyle=xe,ft.setCurrentStyle=ft.setCurrentStyle.bind(ft),ft}return be(z,pe),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");return ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2",this.styles.forEach(function(xe){var Ce=document.createElement("div");Ce.style.display="flex",Ce.style.alignItems="center",Ce.style.justifyContent="space-between",Ce.style.padding="5px",Ce.style.borderWidth="2px",Ce.style.borderStyle="solid",Ce.style.overflow="hidden",Ce.style.maxWidth=100/Z.styles.length-5+"%",Ce.style.borderColor=xe===Z.currentStyle?Z.uiStyleSettings.toolboxAccentColor:"transparent",Ce.addEventListener("click",function(){Z.setCurrentStyle(xe,Ce)}),ye.appendChild(Ce);var ft=document.createElement("div");ft.style.minHeight="20px",ft.style.flexGrow="2",ft.style.overflow="hidden";var zt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Z.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(xe!==""?'stroke-dasharray="'+xe+'"':"")+` />
</svg>`;ft.innerHTML=zt,Ce.appendChild(ft),Z.styleBoxes.push(Ce)}),ye},z.prototype.setCurrentStyle=function(Z,ye){var xe=this;this.currentStyle=Z,this.styleBoxes.forEach(function(Ce){Ce.style.borderColor=Ce===ye?xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},z}(Me),He=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,ye,xe)||this;return Ce.strokeColor=xe.defaultColor,Ce.strokeWidth=xe.defaultStrokeWidth,Ce.strokeDasharray=xe.defaultStrokeDasharray,Ce.strokePanel=new re("Line color",xe.defaultColorSet,xe.defaultColor),Ce.strokePanel.onColorChanged=Ce.setStrokeColor,Ce.strokeWidthPanel=new ze("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),Ce.strokeWidthPanel.onWidthChanged=Ce.setStrokeWidth,Ce.strokeStylePanel=new _t("Line style",xe.defaultStrokeDasharrays,xe.defaultStrokeDasharray),Ce.strokeStylePanel.onStyleChanged=Ce.setStrokeDasharray,Ce}return be(z,pe),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="FrameMarker",z.title="Frame marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',z}(Ie),Ke=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},ht=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,ye,xe)||this;return Ce.x1=0,Ce.y1=0,Ce.x2=0,Ce.y2=0,Ce.defaultLength=50,Ce.manipulationStartX=0,Ce.manipulationStartY=0,Ce.manipulationStartX1=0,Ce.manipulationStartY1=0,Ce.manipulationStartX2=0,Ce.manipulationStartY2=0,Ce.setupControlBox(),Ce}return be(z,pe),z.prototype.ownsTarget=function(Z){return!!pe.prototype.ownsTarget.call(this,Z)||!(!this.grip1.ownsTarget(Z)&&!this.grip2.ownsTarget(Z))},z.prototype.pointerDown=function(Z,ye){pe.prototype.pointerDown.call(this,Z,ye),this.manipulationStartX=Z.x,this.manipulationStartY=Z.y,this.state==="new"&&(this.x1=Z.x,this.y1=Z.y,this.x2=Z.x,this.y2=Z.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(ye)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ye)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},z.prototype.pointerUp=function(Z){var ye=this.state;pe.prototype.pointerUp.call(this,Z),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(Z),this._state="select",ye==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},z.prototype.adjustVisual=function(){},z.prototype.manipulate=function(Z){this.state==="creating"?this.resize(Z):this.state==="move"?(this.x1=this.manipulationStartX1+Z.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Z.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Z.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Z.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Z)},z.prototype.resize=function(Z){switch(this.activeGrip){case this.grip1:this.x1=Z.x,this.y1=Z.y;break;case this.grip2:case void 0:this.x2=Z.x,this.y2=Z.y}this.adjustVisual(),this.adjustControlBox()},z.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){this.positionGrips()},z.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},z.prototype.createGrip=function(){var Z=new he;return Z.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(Z.visual),Z},z.prototype.positionGrips=function(){var Z=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Z/2,this.y1-Z/2),this.positionGrip(this.grip2.visual,this.x2-Z/2,this.y2-Z/2)},z.prototype.positionGrip=function(Z,ye,xe){var Ce=Z.transform.baseVal.getItem(0);Ce.setTranslate(ye,xe),Z.transform.baseVal.replaceItem(Ce,0)},z.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},pe.prototype.getState.call(this))},z.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var ye=Z;this.x1=ye.x1,this.y1=ye.y1,this.x2=ye.x2,this.y2=ye.y2},z.prototype.scale=function(Z,ye){pe.prototype.scale.call(this,Z,ye),this.x1=this.x1*Z,this.y1=this.y1*ye,this.x2=this.x2*Z,this.y2=this.y2*ye,this.adjustVisual(),this.adjustControlBox()},z}(j),St=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,ye,xe)||this;return Ce.strokeColor="transparent",Ce.strokeWidth=0,Ce.strokeDasharray="",Ce.setStrokeColor=Ce.setStrokeColor.bind(Ce),Ce.setStrokeWidth=Ce.setStrokeWidth.bind(Ce),Ce.setStrokeDasharray=Ce.setStrokeDasharray.bind(Ce),Ce.strokeColor=xe.defaultColor,Ce.strokeWidth=xe.defaultStrokeWidth,Ce.strokeDasharray=xe.defaultStrokeDasharray,Ce.strokePanel=new re("Line color",xe.defaultColorSet,xe.defaultColor),Ce.strokePanel.onColorChanged=Ce.setStrokeColor,Ce.strokeWidthPanel=new ze("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),Ce.strokeWidthPanel.onWidthChanged=Ce.setStrokeWidth,Ce.strokeStylePanel=new _t("Line style",xe.defaultStrokeDasharrays,xe.defaultStrokeDasharray),Ce.strokeStylePanel.onStyleChanged=Ce.setStrokeDasharray,Ce}return be(z,pe),z.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorLine&&Z!==this.visibleLine)},z.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorLine=Ee.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ee.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)},z.prototype.pointerDown=function(Z,ye){pe.prototype.pointerDown.call(this,Z,ye),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},z.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()),Ee.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},z.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},z.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},pe.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var ye=Z;this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.createVisual(),this.adjustVisual()},z.typeName="LineMarker",z.title="Line marker",z.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',z}(ht),ct=function(pe){function z(Z,ye,xe,Ce){var ft=pe.call(this,Z,Ce||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return ft.fonts=[],ft.fontBoxes=[],ft.fonts=ye,ft.currentFont=xe,ft.setCurrentFont=ft.setCurrentFont.bind(ft),ft}return be(z,pe),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");return ye.style.overflow="hidden",ye.style.flexGrow="2",this.fonts.forEach(function(xe){var Ce=document.createElement("div");Ce.style.display="inline-block",Ce.style.alignItems="center",Ce.style.justifyContent="space-between",Ce.style.padding="5px",Ce.style.borderWidth="2px",Ce.style.borderStyle="solid",Ce.style.overflow="hidden",Ce.style.maxWidth=100/Z.fonts.length-5+"%",Ce.style.borderColor=xe===Z.currentFont?Z.uiStyleSettings.toolboxAccentColor:"transparent",Ce.addEventListener("click",function(){Z.setCurrentFont(xe,Ce)}),ye.appendChild(Ce);var ft=document.createElement("div");ft.style.display="flex",ft.style.minHeight="20px",ft.style.flexGrow="2",ft.style.fontFamily=xe,ft.style.overflow="hidden";var zt=document.createElement("div");zt.style.whiteSpace="nowrap",zt.style.overflow="hidden",zt.style.textOverflow="ellipsis",zt.innerHTML="The quick brown fox jumps over the lazy dog",ft.appendChild(zt),Ce.appendChild(ft),Z.fontBoxes.push(Ce)}),ye},z.prototype.setCurrentFont=function(Z,ye){var xe=this;this.currentFont=Z,this.fontBoxes.forEach(function(Ce){Ce.style.borderColor=Ce===ye?xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},z}(Me),lt=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,ye,xe)||this;return Ce.color="transparent",Ce.padding=5,Ce.DEFAULT_TEXT="your text here",Ce.text=Ce.DEFAULT_TEXT,Ce.isMoved=!1,Ce.color=xe.defaultColor,Ce.fontFamily=xe.defaultFontFamily,Ce.defaultSize={x:100,y:30},Ce.setColor=Ce.setColor.bind(Ce),Ce.setFont=Ce.setFont.bind(Ce),Ce.renderText=Ce.renderText.bind(Ce),Ce.sizeText=Ce.sizeText.bind(Ce),Ce.textEditDivClicked=Ce.textEditDivClicked.bind(Ce),Ce.showTextEditor=Ce.showTextEditor.bind(Ce),Ce.setSize=Ce.setSize.bind(Ce),Ce.positionTextEditor=Ce.positionTextEditor.bind(Ce),Ce.colorPanel=new re("Color",xe.defaultColorSet,xe.defaultColor),Ce.colorPanel.onColorChanged=Ce.setColor,Ce.fontFamilyPanel=new ct("Font",xe.defaultFontFamilies,xe.defaultFontFamily),Ce.fontFamilyPanel.onFontChanged=Ce.setFont,Ce}return be(z,pe),z.prototype.ownsTarget=function(Z){if(pe.prototype.ownsTarget.call(this,Z)||Z===this.visual||Z===this.textElement||Z===this.bgRectangle)return!0;var ye=!1;return this.textElement.childNodes.forEach(function(xe){xe===Z&&(ye=!0)}),ye},z.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.bgRectangle=Ee.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ee.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},z.prototype.pointerDown=function(Z,ye){pe.prototype.pointerDown.call(this,Z,ye),this.isMoved=!1,this.pointerDownPoint=Z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},z.prototype.renderText=function(){var Z=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(ye){Z.textElement.appendChild(Ee.createTSpan(ye.trim()===""?" ":ye.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},z.prototype.getTextScale=function(){var Z=this.textElement.getBBox(),ye=1;if(Z.width>0&&Z.height>0){var xe=(1*this.width-this.width*this.padding*2/100)/Z.width,Ce=(1*this.height-this.height*this.padding*2/100)/Z.height;ye=Math.min(xe,Ce)}return ye},z.prototype.getTextPosition=function(Z){var ye=this.textElement.getBBox(),xe=0,Ce=0;return ye.width>0&&ye.height>0&&(xe=(this.width-ye.width*Z)/2,Ce=this.height/2-ye.height*Z/2),{x:xe,y:Ce}},z.prototype.sizeText=function(){var Z=this.textElement.getBBox(),ye=this.getTextScale(),xe=this.getTextPosition(ye);xe.y-=Z.y*ye,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+xe.x+"px, "+xe.y+"px) scale("+ye+", "+ye+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(xe.x,xe.y),this.textElement.transform.baseVal.getItem(1).setScale(ye,ye))},z.prototype.manipulate=function(Z){pe.prototype.manipulate.call(this,Z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Z.x-this.pointerDownPoint.x)>5||Math.abs(Z.y-this.pointerDownPoint.y)>5)},z.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),this.isMoved=!0,this.setSize(),this.sizeText()},z.prototype.setSize=function(){pe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},z.prototype.pointerUp=function(Z){var ye=this.state;ye==="creating"&&(this._suppressMarkerCreateEvent=!0),pe.prototype.pointerUp.call(this,Z),this.setSize(),(ye==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},z.prototype.showTextEditor=function(){var Z=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(ye){ye.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ye=Number.parseFloat(Z.textEditor.style.fontSize);Z.textEditor.clientWidth>=Number.parseInt(Z.textEditor.style.maxWidth)&&ye>.9;)ye-=.1,Z.textEditor.style.fontSize=Math.max(ye,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ye){ye.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ye){if(ye.clipboardData){var xe=ye.clipboardData.getData("text"),Ce=window.getSelection();if(!Ce.rangeCount)return!1;Ce.deleteFromDocument(),Ce.getRangeAt(0).insertNode(document.createTextNode(xe)),ye.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Z.textEditDivClicked(Z.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},z.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Z=this.getTextScale(),ye=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),xe=this.textElement.getBBox(),Ce={x:xe.width*Z,y:xe.height*Z};ye.x-=Ce.x/2,ye.y-=Ce.y/2,this.textEditor.style.top=ye.y+"px",this.textEditor.style.left=ye.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ye.x+"px",this.textEditor.style.fontSize=Math.max(16*Z,12)+"px",this.textElement.style.display="none"}},z.prototype.textEditDivClicked=function(Z){this.text=Z.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},z.prototype.select=function(){pe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},z.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),pe.prototype.deselect.call(this)},z.prototype.dblClick=function(Z,ye){pe.prototype.dblClick.call(this,Z,ye),this.showTextEditor()},z.prototype.setColor=function(Z){this.textElement&&Ee.setAttributes(this.textElement,[["fill",Z]]),this.color=Z,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Z)},z.prototype.setFont=function(Z){this.textElement&&Ee.setAttributes(this.textElement,[["font-family",Z]]),this.fontFamily=Z,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},z.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},z.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},pe.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){var ye=Z;this.color=ye.color,this.fontFamily=ye.fontFamily,this.padding=ye.padding,this.text=ye.text,this.createVisual(),pe.prototype.restoreState.call(this,Z),this.setSize()},z.prototype.scale=function(Z,ye){pe.prototype.scale.call(this,Z,ye),this.setSize(),this.sizeText(),this.positionTextEditor()},z.typeName="TextMarker",z.title="Text marker",z.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',z}(ce),rt=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,ye,xe)||this;return Ce.color="transparent",Ce.lineWidth=3,Ce.drawing=!1,Ce.pixelRatio=1,Ce.color=xe.defaultColor,Ce.lineWidth=xe.defaultStrokeWidth,Ce.pixelRatio=xe.freehandPixelRatio,Ce.setColor=Ce.setColor.bind(Ce),Ce.addCanvas=Ce.addCanvas.bind(Ce),Ce.finishCreation=Ce.finishCreation.bind(Ce),Ce.setLineWidth=Ce.setLineWidth.bind(Ce),Ce.colorPanel=new re("Color",xe.defaultColorSet,xe.defaultColor),Ce.colorPanel.onColorChanged=Ce.setColor,Ce.lineWidthPanel=new ze("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),Ce.lineWidthPanel.onWidthChanged=Ce.setLineWidth,Ce}return be(z,pe),z.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.drawingImage)},z.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.drawingImage=Ee.createImage(),this.visual.appendChild(this.drawingImage);var Z=Ee.createTransform();this.visual.transform.baseVal.appendItem(Z),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(Z,ye){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(Z.x,Z.y),this.drawing=!0):pe.prototype.pointerDown.call(this,Z,ye)},z.prototype.manipulate=function(Z){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Z.x,Z.y),this.canvasContext.stroke()):pe.prototype.manipulate.call(this,Z)},z.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(Z){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):pe.prototype.pointerUp.call(this,Z)},z.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)},z.prototype.select=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.select.call(this)},z.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.deselect.call(this)},z.prototype.finishCreation=function(){for(var Z=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ye=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],xe=ye[0],Ce=ye[1],ft=ye[2],zt=ye[3],ln=!1,mn=0;mn<this.canvasElement.height;mn++)for(var Jt=0;Jt<this.canvasElement.width;Jt++)Z.data[mn*this.canvasElement.width*4+4*Jt+3]>0&&(ln=!0,mn<Ce&&(Ce=mn),Jt<xe&&(xe=Jt),mn>zt&&(zt=mn),Jt>ft&&(ft=Jt));if(ln){this.left=xe/this.pixelRatio,this.top=Ce/this.pixelRatio,this.width=(ft-xe)/this.pixelRatio,this.height=(zt-Ce)/this.pixelRatio;var Zn=document.createElement("canvas");Zn.width=ft-xe,Zn.height=zt-Ce,Zn.getContext("2d").putImageData(this.canvasContext.getImageData(xe,Ce,ft-xe,zt-Ce),0,0),this.drawingImgUrl=Zn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},z.prototype.setDrawingImage=function(){Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},z.prototype.setColor=function(Z){this.color=Z,this.colorChanged(Z)},z.prototype.setLineWidth=function(Z){this.lineWidth=Z},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({drawingImgUrl:this.drawingImgUrl},pe.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){this.createVisual(),pe.prototype.restoreState.call(this,Z),this.drawingImgUrl=Z.drawingImgUrl,this.setDrawingImage()},z.prototype.scale=function(Z,ye){pe.prototype.scale.call(this,Z,ye),this.setDrawingImage()},z.typeName="FreehandMarker",z.title="Freehand marker",z.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',z}(ce),Ze=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,xe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ce.typeBoxes=[],Ce.currentType=ye,Ce.setCurrentType=Ce.setCurrentType.bind(Ce),Ce}return be(z,pe),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2";for(var xe=function(zt){var ln="both";switch(zt){case 0:ln="both";break;case 1:ln="start";break;case 2:ln="end";break;case 3:ln="none"}var mn=document.createElement("div");if(mn.style.display="flex",mn.style.flexGrow="2",mn.style.alignItems="center",mn.style.justifyContent="space-between",mn.style.padding="5px",mn.style.borderWidth="2px",mn.style.borderStyle="solid",mn.style.borderColor=ln===Ce.currentType?Ce.uiStyleSettings.toolboxAccentColor:"transparent",mn.addEventListener("click",function(){Z.setCurrentType(ln,mn)}),ye.appendChild(mn),ln==="both"||ln==="start"){var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.alignItems="center",Jt.style.minHeight="20px",Jt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(Ce.uiStyleSettings!==void 0?Ce.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Jt.style.marginLeft="5px",mn.appendChild(Jt)}var Zn=document.createElement("div");Zn.style.display="flex",Zn.style.alignItems="center",Zn.style.minHeight="20px",Zn.style.flexGrow="2";var Un=document.createElement("hr");if(Un.style.minWidth="20px",Un.style.border="0px",Un.style.borderTop="3px solid "+(Ce.uiStyleSettings!==void 0?Ce.uiStyleSettings.toolboxColor:"#eeeeee"),Un.style.flexGrow="2",Zn.appendChild(Un),mn.appendChild(Zn),ln==="both"||ln==="end"){var nr=document.createElement("div");nr.style.display="flex",nr.style.alignItems="center",nr.style.minHeight="20px",nr.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(Ce.uiStyleSettings!==void 0?Ce.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,nr.style.marginRight="5px",mn.appendChild(nr)}Ce.typeBoxes.push(mn)},Ce=this,ft=0;ft<4;ft++)xe(ft);return ye},z.prototype.setCurrentType=function(Z,ye){var xe=this;this.currentType=Z,this.typeBoxes.forEach(function(Ce){Ce.style.borderColor=Ce===ye?xe.uiStyleSettings!==void 0?xe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},z}(Me),$e=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,ye,xe)||this;return Ce.arrowType="end",Ce.arrowBaseHeight=10,Ce.arrowBaseWidth=10,Ce.getArrowPoints=Ce.getArrowPoints.bind(Ce),Ce.setArrowType=Ce.setArrowType.bind(Ce),Ce.arrowTypePanel=new Ze("Arrow type","end"),Ce.arrowTypePanel.onArrowTypeChanged=Ce.setArrowType,Ce}return be(z,pe),z.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.arrow1&&Z!==this.arrow2)},z.prototype.getArrowPoints=function(Z,ye){var xe=this.arrowBaseWidth+2*this.strokeWidth,Ce=this.arrowBaseHeight+2*this.strokeWidth;return Z-xe/2+","+(ye+Ce/2)+" "+Z+","+(ye-Ce/2)+" "+(Z+xe/2)+","+(ye+Ce/2)},z.prototype.createTips=function(){this.arrow1=Ee.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ee.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow2)},z.prototype.pointerDown=function(Z,ye){pe.prototype.pointerDown.call(this,Z,ye),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(pe.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",Ee.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ee.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var Z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ye=this.arrow1.transform.baseVal.getItem(0);ye.setRotate(Z,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ye,0);var xe=this.arrow2.transform.baseVal.getItem(0);xe.setRotate(Z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(xe,0)}},z.prototype.setArrowType=function(Z){this.arrowType=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({arrowType:this.arrowType},pe.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var ye=Z;this.arrowType=ye.arrowType,this.createTips(),this.adjustVisual()},z.typeName="ArrowMarker",z.title="Arrow marker",z.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',z}(St),Ue=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,ye,xe)||this;return Ce.fillColor=xe.defaultFillColor,Ce.strokeWidth=0,Ce.fillPanel=new re("Color",xe.defaultColorSet,xe.defaultFillColor),Ce.fillPanel.onColorChanged=Ce.setFillColor,Ce}return be(z,pe),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="CoverMarker",z.title="Cover marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',z}(Ie),Ne=function(pe){function z(Z,ye,xe,Ce){var ft=pe.call(this,Z,Ce||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return ft.opacities=[],ft.opacityBoxes=[],ft.opacities=ye,ft.currentOpacity=xe,ft.setCurrentOpacity=ft.setCurrentOpacity.bind(ft),ft}return be(z,pe),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");return ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2",ye.style.justifyContent="space-between",this.opacities.forEach(function(xe){var Ce=document.createElement("div");Ce.style.display="flex",Ce.style.alignItems="center",Ce.style.justifyContent="center",Ce.style.padding="5px",Ce.style.borderWidth="2px",Ce.style.borderStyle="solid",Ce.style.borderColor=xe===Z.currentOpacity?Z.uiStyleSettings.toolboxAccentColor:"transparent",Ce.addEventListener("click",function(){Z.setCurrentOpacity(xe,Ce)}),ye.appendChild(Ce);var ft=document.createElement("div");ft.innerText=100*xe+"%",Ce.appendChild(ft),Z.opacityBoxes.push(Ce)}),ye},z.prototype.setCurrentOpacity=function(Z,ye){var xe=this;this.currentOpacity=Z,this.opacityBoxes.forEach(function(Ce){Ce.style.borderColor=Ce===ye?xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},z}(Me),We=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,ye,xe)||this;return Ce.setOpacity=Ce.setOpacity.bind(Ce),Ce.fillColor=xe.defaultHighlightColor,Ce.strokeWidth=0,Ce.opacity=xe.defaultHighlightOpacity,Ce.fillPanel=new re("Color",xe.defaultColorSet,Ce.fillColor),Ce.fillPanel.onColorChanged=Ce.setFillColor,Ce.opacityPanel=new Ne("Opacity",xe.defaultOpacitySteps,Ce.opacity),Ce.opacityPanel.onOpacityChanged=Ce.setOpacity,Ce}return be(z,pe),z.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="HighlightMarker",z.title="Highlight marker",z.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',z}(Ue),it='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',yt=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,ye,xe)||this;return Ce.bgColor="transparent",Ce.tipPosition={x:0,y:0},Ce.tipBase1Position={x:0,y:0},Ce.tipBase2Position={x:0,y:0},Ce.tipMoving=!1,Ce.color=xe.defaultStrokeColor,Ce.bgColor=xe.defaultFillColor,Ce.fontFamily=xe.defaultFontFamily,Ce.defaultSize={x:100,y:30},Ce.setBgColor=Ce.setBgColor.bind(Ce),Ce.getTipPoints=Ce.getTipPoints.bind(Ce),Ce.positionTip=Ce.positionTip.bind(Ce),Ce.setTipPoints=Ce.setTipPoints.bind(Ce),Ce.colorPanel=new re("Text color",xe.defaultColorSet,Ce.color,'<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>'),Ce.colorPanel.onColorChanged=Ce.setColor,Ce.bgColorPanel=new re("Fill color",xe.defaultColorSet,Ce.bgColor,it),Ce.bgColorPanel.onColorChanged=Ce.setBgColor,Ce.fontFamilyPanel=new ct("Font",xe.defaultFontFamilies,xe.defaultFontFamily),Ce.fontFamilyPanel.onFontChanged=Ce.setFont,Ce.tipGrip=new he,Ce.tipGrip.visual.transform.baseVal.appendItem(Ee.createTransform()),Ce.controlBox.appendChild(Ce.tipGrip.visual),Ce}return be(z,pe),z.prototype.ownsTarget=function(Z){return pe.prototype.ownsTarget.call(this,Z)||this.tipGrip.ownsTarget(Z)||this.tip===Z},z.prototype.createTip=function(){Ee.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ee.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},z.prototype.pointerDown=function(Z,ye){this.state==="new"&&pe.prototype.pointerDown.call(this,Z,ye),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ye)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):pe.prototype.pointerDown.call(this,Z,ye)},z.prototype.pointerUp=function(Z){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,pe.prototype.pointerUp.call(this,Z);else{var ye=this.state==="creating";pe.prototype.pointerUp.call(this,Z),this.setTipPoints(ye),this.positionTip()}},z.prototype.manipulate=function(Z){if(this.tipMoving){var ye=this.unrotatePoint(Z);this.tipPosition={x:ye.x-this.manipulationStartLeft,y:ye.y-this.manipulationStartTop},this.positionTip()}else pe.prototype.manipulate.call(this,Z)},z.prototype.setBgColor=function(Z){this.bgRectangle&&this.tip&&(Ee.setAttributes(this.bgRectangle,[["fill",Z]]),Ee.setAttributes(this.tip,[["fill",Z]])),this.bgColor=Z,this.fillColorChanged(Z)},z.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},z.prototype.setTipPoints=function(Z){Z===void 0&&(Z=!1);var ye=Math.min(this.height/2,15),xe=this.height/5;Z&&(this.tipPosition={x:ye+xe/2,y:this.height+20});var Ce=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ce<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(xe=this.width/5,ye=Math.min(this.width/2,15),this.tipBase1Position={x:ye,y:0},this.tipBase2Position={x:ye+xe,y:0}):(this.tipBase1Position={x:0,y:ye},this.tipBase2Position={x:0,y:ye+xe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ce<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(xe=this.width/5,ye=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ye-xe,y:0},this.tipBase2Position={x:this.width-ye,y:0}):(this.tipBase1Position={x:this.width,y:ye},this.tipBase2Position={x:this.width,y:ye+xe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ce<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(xe=this.width/5,ye=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ye-xe,y:this.height},this.tipBase2Position={x:this.width-ye,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ye-xe},this.tipBase2Position={x:this.width,y:this.height-ye}):Ce<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(xe=this.width/5,ye=Math.min(this.width/2,15),this.tipBase1Position={x:ye,y:this.height},this.tipBase2Position={x:ye+xe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ye},this.tipBase2Position={x:0,y:this.height-ye-xe})},z.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),this.positionTip()},z.prototype.positionTip=function(){Ee.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Z=this.tipGrip.visual.transform.baseVal.getItem(0);Z.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Z,0)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.prototype.select=function(){this.positionTip(),pe.prototype.select.call(this)},z.prototype.getState=function(){var Z=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},pe.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){var ye=Z;this.bgColor=ye.bgColor,this.tipPosition=ye.tipPosition,pe.prototype.restoreState.call(this,Z),this.createTip(),this.setTipPoints()},z.prototype.scale=function(Z,ye){pe.prototype.scale.call(this,Z,ye),this.tipPosition={x:this.tipPosition.x*Z,y:this.tipPosition.y*ye},this.positionTip()},z.typeName="CalloutMarker",z.title="Callout marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',z}(lt),vt=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,ye,xe)||this;return Ce.fillColor="transparent",Ce.strokeColor="transparent",Ce.strokeWidth=0,Ce.strokeDasharray="",Ce.opacity=1,Ce.strokeColor=xe.defaultColor,Ce.strokeWidth=xe.defaultStrokeWidth,Ce.strokeDasharray=xe.defaultStrokeDasharray,Ce.fillColor=xe.defaultFillColor,Ce.setStrokeColor=Ce.setStrokeColor.bind(Ce),Ce.setFillColor=Ce.setFillColor.bind(Ce),Ce.setStrokeWidth=Ce.setStrokeWidth.bind(Ce),Ce.setStrokeDasharray=Ce.setStrokeDasharray.bind(Ce),Ce.setOpacity=Ce.setOpacity.bind(Ce),Ce.createVisual=Ce.createVisual.bind(Ce),Ce.strokePanel=new re("Line color",me(xe.defaultColorSet,["transparent"]),xe.defaultColor),Ce.strokePanel.onColorChanged=Ce.setStrokeColor,Ce.fillPanel=new re("Fill color",me(xe.defaultColorSet,["transparent"]),Ce.fillColor,it),Ce.fillPanel.onColorChanged=Ce.setFillColor,Ce.strokeWidthPanel=new ze("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),Ce.strokeWidthPanel.onWidthChanged=Ce.setStrokeWidth,Ce.strokeStylePanel=new _t("Line style",xe.defaultStrokeDasharrays,xe.defaultStrokeDasharray),Ce.strokeStylePanel.onStyleChanged=Ce.setStrokeDasharray,Ce.opacityPanel=new Ne("Opacity",xe.defaultOpacitySteps,Ce.opacity),Ce.opacityPanel.onOpacityChanged=Ce.setOpacity,Ce}return be(z,pe),z.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},z.prototype.createVisual=function(){this.visual=Ee.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(Z,ye){pe.prototype.pointerDown.call(this,Z,ye),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},z.prototype.manipulate=function(Z){pe.prototype.manipulate.call(this,Z)},z.prototype.resize=function(Z){pe.prototype.resize.call(this,Z),this.setSize()},z.prototype.setSize=function(){pe.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},z.prototype.pointerUp=function(Z){pe.prototype.pointerUp.call(this,Z),this.setSize()},z.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},z.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Z),this.stateChanged()},z.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},pe.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){var ye=Z;this.fillColor=ye.fillColor,this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.opacity=ye.opacity,this.createVisual(),pe.prototype.restoreState.call(this,Z),this.setSize()},z.prototype.scale=function(Z,ye){pe.prototype.scale.call(this,Z,ye),this.setSize()},z.typeName="EllipseMarker",z.title="Ellipse marker",z.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',z}(ce),Mt=function(pe){function z(Z,ye,xe){return pe.call(this,Z,ye,xe)||this}return be(z,pe),Object.defineProperty(z.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),z.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.tip1&&Z!==this.tip2)},z.prototype.createTips=function(){this.tip1=Ee.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Ee.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.tip2)},z.prototype.pointerDown=function(Z,ye){pe.prototype.pointerDown.call(this,Z,ye),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(pe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Ee.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var Z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ye=this.tip1.transform.baseVal.getItem(0);ye.setRotate(Z,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ye,0);var xe=this.tip2.transform.baseVal.getItem(0);xe.setRotate(Z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(xe,0)}},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z),this.createTips(),this.adjustVisual()},z.typeName="MeasurementMarker",z.title="Measurement marker",z.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',z}(St),Tt=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,ye,xe)||this;return Ce.strokePanel.colors=xe.defaultColorSet,Ce.fillColor="transparent",Ce}return be(z,pe),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=pe.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="EllipseFrameMarker",z.title="Ellipse frame marker",z.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',z}(vt),Rt=function(){function pe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(pe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),pe.prototype.addUndoStep=function(z){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(z)||(this.undoStack.push(z),JSON.stringify(this.lastRedoStep)!==JSON.stringify(z)&&this.redoStack.splice(0,this.redoStack.length))},pe.prototype.replaceLastUndoStep=function(z){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=z)},pe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},pe.prototype.undo=function(){if(this.undoStack.length>1){var z=this.undoStack.pop();return z!==void 0&&this.redoStack.push(z),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},pe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},pe}(),kt=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,ye,xe)||this;return Ce.strokeColor="transparent",Ce.strokeWidth=0,Ce.strokeDasharray="",Ce.curveX=0,Ce.curveY=0,Ce.manipulationStartCurveX=0,Ce.manipulationStartCurveY=0,Ce.setStrokeColor=Ce.setStrokeColor.bind(Ce),Ce.setStrokeWidth=Ce.setStrokeWidth.bind(Ce),Ce.setStrokeDasharray=Ce.setStrokeDasharray.bind(Ce),Ce.positionGrips=Ce.positionGrips.bind(Ce),Ce.addControlGrips=Ce.addControlGrips.bind(Ce),Ce.adjustVisual=Ce.adjustVisual.bind(Ce),Ce.setupControlBox=Ce.setupControlBox.bind(Ce),Ce.resize=Ce.resize.bind(Ce),Ce.strokeColor=xe.defaultColor,Ce.strokeWidth=xe.defaultStrokeWidth,Ce.strokeDasharray=xe.defaultStrokeDasharray,Ce.strokePanel=new re("Line color",xe.defaultColorSet,xe.defaultColor),Ce.strokePanel.onColorChanged=Ce.setStrokeColor,Ce.strokeWidthPanel=new ze("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),Ce.strokeWidthPanel.onWidthChanged=Ce.setStrokeWidth,Ce.strokeStylePanel=new _t("Line style",xe.defaultStrokeDasharrays,xe.defaultStrokeDasharray),Ce.strokeStylePanel.onStyleChanged=Ce.setStrokeDasharray,Ce}return be(z,pe),z.prototype.ownsTarget=function(Z){return!(!pe.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorCurve&&Z!==this.visibleCurve&&!this.curveGrip.ownsTarget(Z))},z.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},z.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorCurve=Ee.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ee.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)},z.prototype.pointerDown=function(Z,ye){pe.prototype.pointerDown.call(this,Z,ye),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Z.x,this.curveY=Z.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ye)&&(this.activeGrip=this.curveGrip,this._state="resize")},z.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ee.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setupControlBox=function(){pe.prototype.setupControlBox.call(this),this.curveControlLine1=Ee.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ee.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)},z.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,pe.prototype.addControlGrips.call(this)},z.prototype.positionGrips=function(){pe.prototype.positionGrips.call(this);var Z=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Z/2,this.curveY-Z/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()))},z.prototype.manipulate=function(Z){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Z.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Z.y-this.manipulationStartY),pe.prototype.manipulate.call(this,Z)},z.prototype.resize=function(Z){this.activeGrip===this.curveGrip&&(this.curveX=Z.x,this.curveY=Z.y),pe.prototype.resize.call(this,Z),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},z.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},z.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},z.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual()},z.prototype.scale=function(Z,ye){this.curveX=this.curveX*Z,this.curveY=this.curveY*ye,pe.prototype.scale.call(this,Z,ye)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},pe.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){pe.prototype.restoreState.call(this,Z);var ye=Z;this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.curveX=ye.curveX,this.curveY=ye.curveY,this.createVisual(),this.adjustVisual()},z.typeName="CurveMarker",z.title="Curve marker",z.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',z}(ht),Ut=function(){function pe(z,Z){Z===void 0&&(Z=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=z,this.cancelable=Z}return Object.defineProperty(pe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),pe.prototype.preventDefault=function(){this._defaultPrevented=!0},pe}(),Bt=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,!1)||this;return Ce.dataUrl=ye,Ce.state=xe,Ce}return be(z,pe),z}(Ut),At=function(pe){function z(Z,ye,xe){xe===void 0&&(xe=!1);var Ce=pe.call(this,Z,xe)||this;return Ce.marker=ye,Ce}return be(z,pe),z}(Ut),bt=function(){function pe(){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 pe.prototype.addEventListener=function(z,Z){this[z].push(Z)},pe.prototype.removeEventListener=function(z,Z){var ye=this[z].indexOf(Z);ye>-1&&this[z].splice(ye,1)},pe}(),je=function(){function pe(z){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ke,this._isOpen=!1,this.undoRedoManager=new Rt,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 bt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=pe.instanceCounter++,this.styles=new ve(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=z,this.targetRoot=document.body,this.width=z.clientWidth,this.height=z.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(pe.prototype,"ALL_MARKER_TYPES",{get:function(){return[He,rt,$e,lt,Tt,vt,We,yt,Mt,Ue,St,kt]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[He,rt,$e,lt,vt,We,yt]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[He,rt,$e,lt,We]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(z){var Z=this;this._availableMarkerTypes.splice(0),z.forEach(function(ye){if(typeof ye=="string"){var xe=Z.ALL_MARKER_TYPES.find(function(Ce){return Ce.typeName===ye});xe!==void 0&&Z._availableMarkerTypes.push(xe)}else Z._availableMarkerTypes.push(ye)})},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(z){this._zoomLevel=z,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(pe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),pe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ge.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},pe.prototype.show=function(){var z=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(Z){return Z(new Ut(z))})},pe.prototype.render=function(){return de(this,void 0,void 0,function(){var z;return _e(this,function(Z){switch(Z.label){case 0:return this.setCurrentMarker(),(z=new Ae).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.markersOnly=this.renderMarkersOnly,z.width=this.renderWidth,z.height=this.renderHeight,[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Z.sent(),[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Z.sent()]}})})},pe.prototype.close=function(z){var Z=this;if(z===void 0&&(z=!1),this.isOpen){var ye=!1;z||this.eventListeners.beforeclose.forEach(function(xe){var Ce=new Ut(Z,!0);xe(Ce),Ce.defaultPrevented&&(ye=!0)}),ye||(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(xe){return xe(new Ut(Z))}),this.detachEvents(),this._isOpen=!1)}},pe.prototype.addMarkersToToolbar=function(){for(var z,Z=[],ye=0;ye<arguments.length;ye++)Z[ye]=arguments[ye];(z=this._availableMarkerTypes).push.apply(z,Z)},pe.prototype.addRenderEventListener=function(z){this.addEventListener("render",function(Z){z(Z.dataUrl,Z.state)})},pe.prototype.removeRenderEventListener=function(z){},pe.prototype.addCloseEventListener=function(z){this.addEventListener("close",function(){z()})},pe.prototype.removeCloseEventListener=function(z){},pe.prototype.setupResizeObserver=function(){var z=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){z.resize(z.target.clientWidth,z.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return z.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},pe.prototype.onPopupTargetResize=function(){var z=1*this.target.clientWidth/this.target.clientHeight,Z=this.editorCanvas.clientWidth/z>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*z:this.editorCanvas.clientWidth,ye=Z<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/z;this.resize(Z,ye)},pe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},pe.prototype.resize=function(z,Z){this._isResizing=!0;var ye=z/this.imageWidth,xe=Z/this.imageHeight;this.imageWidth=Math.round(z),this.imageHeight=Math.round(Z),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(ye,xe),this._isResizing=!1},pe.prototype.scaleMarkers=function(z,Z){var ye,xe=this;this._currentMarker&&this._currentMarker instanceof lt?this._currentMarker.scale(z,Z):(ye=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ce){Ce!==xe._currentMarker&&Ce.scale(z,Z)}),ye!==void 0&&this.setCurrentMarker(ye)},pe.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},pe.prototype.setTopLeft=function(){var z=this.editingTarget.getBoundingClientRect(),Z=this.editorCanvas.getBoundingClientRect();this.left=z.left-Z.left,this.top=z.top-Z.top},pe.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},pe.prototype.addDefs=function(){for(var z,Z=[],ye=0;ye<arguments.length;ye++)Z[ye]=arguments[ye];this.defs=Ee.createDefs(),this.addDefsToImage(),(z=this.defs).append.apply(z,Z)},pe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},pe.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},pe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},pe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},pe.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},pe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},pe.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},pe.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var z=document.createElement("a");z.href="https://markerjs.com/",z.target="_blank",z.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',z.title="Powered by marker.js",z.style.display="grid",z.style.alignItems="center",z.style.justifyItems="center",z.style.padding="3px",z.style.width="20px",z.style.height="20px",this.logoUI.appendChild(z),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},pe.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")},pe.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"},pe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},pe.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 z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"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 Te(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<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Re(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},pe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},pe.prototype.removeMarker=function(z){this.markerImage.removeChild(z.container),this.markers.indexOf(z)>-1&&this.markers.splice(this.markers.indexOf(z),1),z.dispose()},pe.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())},pe.prototype.toolbarButtonClicked=function(z,Z){if(z==="marker"&&Z!==void 0)this.createNewMarker(Z);else if(z==="action")switch(Z){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()}},pe.prototype.deleteSelectedMarker=function(){var z=this;if(this._currentMarker!==void 0){var Z=!1;if(this.eventListeners.markerbeforedelete.forEach(function(xe){var Ce=new At(z,z._currentMarker,!0);xe(Ce),Ce.defaultPrevented&&(Z=!0)}),!Z){var ye=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(xe){return xe(new At(z,ye))})}}},pe.prototype.clear=function(){var z=this,Z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ft){var zt=new At(z,void 0,!0);ft(zt),zt.defaultPrevented&&(Z=!0)}),!Z)){this.setCurrentMarker();for(var ye=function(ft){var zt=xe.markers[ft];xe.setCurrentMarker(xe.markers[ft]),xe._currentMarker.dispose(),xe.markerImage.removeChild(xe._currentMarker.container),xe.markers.splice(xe.markers.indexOf(xe._currentMarker),1),xe.eventListeners.markerdelete.forEach(function(ln){return ln(new At(z,zt))})},xe=this,Ce=this.markers.length-1;Ce>=0;Ce--)ye(Ce);this.addUndoStep()}},Object.defineProperty(pe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),pe.prototype.showNotesEditor=function(){var z;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=(z=this._currentMarker.notes)!==null&&z!==void 0?z:"",this.overlayContainer.appendChild(this.notesArea))},pe.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)},pe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},pe.prototype.addUndoStep=function(){var z=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Z=this.getState(),ye=this.undoRedoManager.getLastUndoStep();if(!ye||ye.width===Z.width&&ye.height===Z.height){var xe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Z),xe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ce){return Ce(new Ut(z))})}else this.undoRedoManager.replaceLastUndoStep(Z),this.eventListeners.statechange.forEach(function(Ce){return Ce(new Ut(z))})}},pe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},pe.prototype.undoStep=function(){var z=this,Z=this.undoRedoManager.undo();Z!==void 0&&(this.restoreState(Z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ye){return ye(new Ut(z))}))},pe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},pe.prototype.redoStep=function(){var z=this,Z=this.undoRedoManager.redo();Z!==void 0&&(this.restoreState(Z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ye){return ye(new Ut(z))}))},pe.prototype.stepZoom=function(){var z=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=z<this.zoomSteps.length-1?this.zoomSteps[z+1]:this.zoomSteps[0]},pe.prototype.panTo=function(z){this.contentDiv.scrollBy({left:this.prevPanPoint.x-z.x,top:this.prevPanPoint.y-z.y}),this.prevPanPoint=z},pe.prototype.startRenderAndClose=function(){return de(this,void 0,void 0,function(){var z,Z,ye=this;return _e(this,function(xe){switch(xe.label){case 0:return[4,this.render()];case 1:return z=xe.sent(),Z=this.getState(),this.eventListeners.render.forEach(function(Ce){return Ce(new Bt(ye,z,Z))}),this.close(!0),[2]}})})},pe.prototype.getState=function(z){z===!0&&this.setCurrentMarker();var Z={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ye){return Z.markers.push(ye.getState())}),Z},pe.prototype.restoreState=function(z){var Z=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);z.markers.forEach(function(ye){var xe=Z._availableMarkerTypes.find(function(ft){return ft.typeName===ye.typeName});if(xe!==void 0){var Ce=Z.addNewMarker(xe);Ce.restoreState(ye),Z.markers.push(Ce)}}),z.width&&z.height&&(z.width!==this.imageWidth||z.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/z.width,this.imageHeight/z.height),this.eventListeners.restorestate.forEach(function(ye){return ye(new Ut(Z))})},pe.prototype.addNewMarker=function(z){var Z=Ee.createGroup();return this.markerImage.appendChild(Z),new z(Z,this.overlayContainer,this.settings)},pe.prototype.createNewMarker=function(z){var Z,ye=this;(Z=typeof z=="string"?this._availableMarkerTypes.find(function(xe){return xe.typeName===z}):z)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Z),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(Z.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(xe){return xe(new At(ye,ye._currentMarker))}))},pe.prototype.markerCreated=function(z){var Z=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(z),this.setCurrentMarker(z),z instanceof rt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(rt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ye){return ye(new At(Z,Z._currentMarker))})},pe.prototype.colorChanged=function(z){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=z,this.settings.defaultStrokeColor=z)},pe.prototype.fillColorChanged=function(z){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=z)},pe.prototype.markerStateChanged=function(z){var Z=this;this.eventListeners.markerchange.forEach(function(ye){return ye(new At(Z,z))})},pe.prototype.setCurrentMarker=function(z){var Z=this;this._currentMarker!==z&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ye){return ye(new At(Z,Z._currentMarker))})),this._currentMarker=z,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(ye){return ye(new At(Z,Z._currentMarker))}))},pe.prototype.onPointerDown=function(z){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||z.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Z=this.markers.find(function(ye){return ye.ownsTarget(z.target)});Z!==void 0?(this.setCurrentMarker(Z),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(z.clientX,z.clientY),z.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:z.clientX,y:z.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(z.clientX,z.clientY))},pe.prototype.onDblClick=function(z){if(this._isFocused||this.focus(),this.mode==="select"){var Z=this.markers.find(function(ye){return ye.ownsTarget(z.target)});Z!==void 0&&Z!==this._currentMarker&&this.setCurrentMarker(Z),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(z.clientX,z.clientY),z.target):this.setCurrentMarker()}},pe.prototype.onPointerMove=function(z){this.touchPoints!==1&&z.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||z.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(z.clientX,z.clientY)):this.zoomLevel>1&&this.panTo({x:z.clientX,y:z.clientY}))},pe.prototype.onPointerUp=function(z){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(z.clientX,z.clientY)),this.isDragging=!1,this.addUndoStep()},pe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},pe.prototype.onKeyUp=function(z){this._currentMarker===void 0||this.notesArea!==void 0||z.key!=="Delete"&&z.key!=="Backspace"||this.deleteSelectedMarker()},pe.prototype.clientToLocalCoordinates=function(z,Z){var ye=this.markerImage.getBoundingClientRect();return{x:(z-ye.left)/this.zoomLevel,y:(Z-ye.top)/this.zoomLevel}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"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()},pe.prototype.addLicenseKey=function(z){ge.addKey(z)},pe.prototype.addEventListener=function(z,Z){this.eventListeners.addEventListener(z,Z)},pe.prototype.removeEventListener=function(z,Z){this.eventListeners.removeEventListener(z,Z)},pe.prototype.renderState=function(z){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(z),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(pe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),pe.prototype.focus=function(){var z=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Z){return Z(new Ut(z))}))},pe.prototype.blur=function(){var z=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Z){return Z(new Ut(z))}))},pe.instanceCounter=0,pe}();/* **********************************
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 qe=function(pe,z){return(qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,ye){Z.__proto__=ye}||function(Z,ye){for(var xe in ye)Object.prototype.hasOwnProperty.call(ye,xe)&&(Z[xe]=ye[xe])})(pe,z)};function Ot(pe,z){if(typeof z!="function"&&z!==null)throw new TypeError("Class extends value "+String(z)+" is not a constructor or null");function Z(){this.constructor=pe}qe(pe,z),pe.prototype=z===null?Object.create(z):(Z.prototype=z.prototype,new Z)}function Ct(pe,z,Z,ye){return new(Z||(Z=Promise))(function(xe,Ce){function ft(mn){try{ln(ye.next(mn))}catch(Jt){Ce(Jt)}}function zt(mn){try{ln(ye.throw(mn))}catch(Jt){Ce(Jt)}}function ln(mn){var Jt;mn.done?xe(mn.value):(Jt=mn.value,Jt instanceof Z?Jt:new Z(function(Zn){Zn(Jt)})).then(ft,zt)}ln((ye=ye.apply(pe,z||[])).next())})}function jt(pe,z){var Z,ye,xe,Ce,ft={label:0,sent:function(){if(1&xe[0])throw xe[1];return xe[1]},trys:[],ops:[]};return Ce={next:zt(0),throw:zt(1),return:zt(2)},typeof Symbol=="function"&&(Ce[Symbol.iterator]=function(){return this}),Ce;function zt(ln){return function(mn){return function(Jt){if(Z)throw new TypeError("Generator is already executing.");for(;ft;)try{if(Z=1,ye&&(xe=2&Jt[0]?ye.return:Jt[0]?ye.throw||((xe=ye.return)&&xe.call(ye),0):ye.next)&&!(xe=xe.call(ye,Jt[1])).done)return xe;switch(ye=0,xe&&(Jt=[2&Jt[0],xe.value]),Jt[0]){case 0:case 1:xe=Jt;break;case 4:return ft.label++,{value:Jt[1],done:!1};case 5:ft.label++,ye=Jt[1],Jt=[0];continue;case 7:Jt=ft.ops.pop(),ft.trys.pop();continue;default:if(!(xe=ft.trys,(xe=xe.length>0&&xe[xe.length-1])||Jt[0]!==6&&Jt[0]!==2)){ft=0;continue}if(Jt[0]===3&&(!xe||Jt[1]>xe[0]&&Jt[1]<xe[3])){ft.label=Jt[1];break}if(Jt[0]===6&&ft.label<xe[1]){ft.label=xe[1],xe=Jt;break}if(xe&&ft.label<xe[2]){ft.label=xe[2],ft.ops.push(Jt);break}xe[2]&&ft.ops.pop(),ft.trys.pop();continue}Jt=z.call(pe,ft)}catch(Zn){Jt=[6,Zn],ye=0}finally{Z=xe=0}if(5&Jt[0])throw Jt[1];return{value:Jt[0]?Jt[1]:void 0,done:!0}}([ln,mn])}}}var Vt=function(){function pe(){}return pe.addKey=function(z){pe.key=z},Object.defineProperty(pe,"isLicensed",{get:function(){return!!pe.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(pe.key)},enumerable:!1,configurable:!0}),pe}(),Et=function(){function pe(){}return pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},pe.setAttributes=function(z,Z){for(var ye=0,xe=Z;ye<xe.length;ye++){var Ce=xe[ye],ft=Ce[0],zt=Ce[1];z.setAttribute(ft,zt)}},pe.createRect=function(z,Z,ye){var xe=document.createElementNS("http://www.w3.org/2000/svg","rect");return xe.setAttribute("width",z.toString()),xe.setAttribute("height",Z.toString()),ye&&pe.setAttributes(xe,ye),xe},pe.createLine=function(z,Z,ye,xe,Ce){var ft=document.createElementNS("http://www.w3.org/2000/svg","line");return ft.setAttribute("x1",z.toString()),ft.setAttribute("y1",Z.toString()),ft.setAttribute("x2",ye.toString()),ft.setAttribute("y2",xe.toString()),Ce&&pe.setAttributes(ft,Ce),ft},pe.createPolygon=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ye.setAttribute("points",z),Z&&pe.setAttributes(ye,Z),ye},pe.createCircle=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","circle");return ye.setAttribute("cx",(z/2).toString()),ye.setAttribute("cy",(z/2).toString()),ye.setAttribute("r",z.toString()),Z&&pe.setAttributes(ye,Z),ye},pe.createEllipse=function(z,Z,ye){var xe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return xe.setAttribute("cx",(z/2).toString()),xe.setAttribute("cy",(Z/2).toString()),xe.setAttribute("rx",(z/2).toString()),xe.setAttribute("ry",(Z/2).toString()),ye&&pe.setAttributes(xe,ye),xe},pe.createGroup=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","g");return z&&pe.setAttributes(Z,z),Z},pe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},pe.createMarker=function(z,Z,ye,xe,Ce,ft,zt){var ln=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(ln,[["id",z],["orient",Z],["markerWidth",ye.toString()],["markerHeight",xe.toString()],["refX",Ce.toString()],["refY",ft.toString()]]),ln.appendChild(zt),ln},pe.createText=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","text");return Z.setAttribute("x","0"),Z.setAttribute("y","0"),z&&pe.setAttributes(Z,z),Z},pe.createTSpan=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ye.textContent=z,Z&&pe.setAttributes(ye,Z),ye},pe.createImage=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","image");return z&&pe.setAttributes(Z,z),Z},pe.createPoint=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ye.x=z,ye.y=Z,ye},pe.createPath=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","path");return ye.setAttribute("d",z),Z&&pe.setAttributes(ye,Z),ye},pe.createElement=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg",z);return Z&&pe.setAttributes(ye,Z),ye},pe.getHollowRectanglePath=function(z,Z,ye,xe,Ce,ft,zt,ln){return"M"+z+","+Z+"V"+(Z+xe)+"H"+(z+ye)+"V"+Z+"H"+Ce+"V"+ft+"H"+(Ce+zt)+"V"+(ft+ln)+"H"+Ce+"V"+Z+"Z"},pe}(),Lt=function(){function pe(z){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+z+"_"}return Object.defineProperty(pe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#333333",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarBackgroundActiveColor:"#282828",toolbarColor:"#eeeeee",cropShadeColor:"#ffffff",cropFrameColor:"#ffffff",gripColor:"#333333",gripFillColor:"#cccccc",toolbarHeight:40}},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),pe.prototype.addClass=function(z){return this.styleSheet===void 0&&this.addStyleSheet(),z.name=""+this.classNamePrefix+z.localName,this.classes.push(z),this.styleSheet.sheet.insertRule("."+z.name+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length),z},pe.prototype.addRule=function(z){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(z),this.styleSheet.sheet.insertRule(z.selector+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length)},pe.prototype.addStyleSheet=function(){var z;this.styleSheet=document.createElement("style"),((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).appendChild(this.styleSheet),this.addRule(new Ht("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ht("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Ht("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new un("_fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new un("_fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},pe.prototype.removeStyleSheet=function(){var z;this.styleSheet&&(((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},pe}(),Ht=function(pe,z){this.selector=pe,this.style=z},un=function(pe,z){this.localName=pe,this.style=z},gn=function(){function pe(){this.blocks=[],this.display=""}return pe.prototype.addButtonBlock=function(z){z.className=this.blockClassName,z.buttonClassName=this.buttonClassName,z.buttonColorsClassName=this.buttonColorsClassName,z.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(z)},pe.prototype.addElementBlock=function(z){z.className===void 0&&(z.className=this.blockClassName),this.blocks.push(z)},pe.prototype.getUI=function(){var z=document.createElement("div");return z.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,z.style.display=this.display,this.blocks.forEach(function(Z){return z.appendChild(Z.getUI())}),z},pe}(),Ar=function(){function pe(){}return pe.prototype.getUI=function(){var z=document.createElement("div");if(z.className=this.className,this.minWidth!==void 0&&(z.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":z.style.justifyContent="flex-start";break;case"center":z.style.justifyContent="center";break;case"end":z.style.justifyContent="flex-end"}return z.style.whiteSpace="nowrap",z},pe}(),wr=function(pe){function z(){var Z=pe!==null&&pe.apply(this,arguments)||this;return Z.buttons=[],Z}return Ot(z,pe),z.prototype.addButton=function(Z){Z.className=this.buttonClassName,Z.colorsClassName=this.buttonColorsClassName,Z.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(Z)},z.prototype.getUI=function(){var Z=pe.prototype.getUI.call(this);return this.buttons.forEach(function(ye){return Z.appendChild(ye.getUI())}),Z},z}(Ar),cr=function(){function pe(z,Z){this._isActive=!1,this._isHidden=!1,this._icon=z,this.title=Z,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(pe.prototype,"icon",{get:function(){return this._icon},set:function(z){this._icon=z,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isActive",{get:function(){return this._isActive},set:function(z){this._isActive=z,this.adjustClassName()},enumerable:!1,configurable:!0}),pe.prototype.getUI=function(){var z=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return z.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},pe.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},pe.prototype.hide=function(){this._isHidden=!0},pe}(),Rn=function(pe){function z(){var Z=pe!==null&&pe.apply(this,arguments)||this;return Z.elements=[],Z}return Ot(z,pe),z.prototype.addElement=function(Z){this.elements.push(Z)},z.prototype.getUI=function(){var Z=pe.prototype.getUI.call(this);return this.elements.forEach(function(ye){return Z.appendChild(ye)}),Z},z}(Ar),Jr=function(){function pe(z,Z){this.horizontal=z,this.vertical=Z}return Object.defineProperty(pe.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),pe.prototype.getVerticalLength=function(z){return z/this.ratio},pe.prototype.getHorizontalLength=function(z){return z*this.ratio},pe}(),si=function(){function pe(){}return pe.getIcon=function(z,Z){if(z>0&&Z>0){var ye=new Jr(z,Z),xe=ye.ratio>=1?20:ye.getHorizontalLength(20),Ce=ye.ratio<1?20:ye.getVerticalLength(20),ft=document.createElementNS("http://www.w3.org/2000/svg","svg");ft.setAttribute("xmlns","http://www.w3.org/2000/svg"),ft.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(ft);var zt=Et.createDefs();ft.appendChild(zt);var ln=Et.createElement("clipPath",[["id","text-bg-clip"]]);zt.appendChild(ln);var mn=Et.createPath(Et.getHollowRectanglePath((24-xe)/2,(24-Ce)/2,xe,Ce,(24-xe)/2+2,(24-Ce)/2+2,xe-4,Ce-4));ft.appendChild(mn);var Jt=Et.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Jt.appendChild(Et.createTSpan(z+":"+Z)),ft.appendChild(Jt);var Zn=Jt.getBBox();Et.setAttributes(Jt,[["x",((24-Zn.width)/2).toString()],["y",((24-Zn.height)/2-Zn.y).toString()]]);var Un=Et.createPath(Et.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Zn.width))/2,(24-Math.ceil(Zn.height))/2,Math.ceil(Zn.width),Math.ceil(Zn.height)));return ln.appendChild(Un),Et.setAttributes(mn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ft),ft.outerHTML}return'<svg viewBox="0 0 24 24"><path d="M19 12h-2v3h-3v2h5v-5M7 9h3V7H5v5h2V9m14-6H3a2 2 0 00-2 2v14a2 2 0 002 2h18a2 2 0 002-2V5a2 2 0 00-2-2m0 16H3V5h18v14z"/></svg>'},pe}(),li=function(pe){function z(Z,ye,xe){var Ce=pe.call(this,Z,ye)||this;return Ce.isDropdownOpen=!1,Ce.onClick=Ce.dropdownButtonClicked,Ce.dropdownButtons=xe,Ce}return Ot(z,pe),z.prototype.setupDropdown=function(){var Z=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(ye){ye.className=Z.className,ye.colorsClassName=Z.colorsClassName,Z.dropdownBlock.appendChild(ye.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},z.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},z.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},z.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},z.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},z.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},z}(cr),kr=function(){function pe(z,Z){this.GRIP_SIZE=10,this.color=z,this.fillColor=Z,this.visual=Et.createGroup(),this.visual.appendChild(Et.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Et.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return pe.prototype.ownsTarget=function(z){return z===this.visual||z===this.visual.childNodes[0]||z===this.visual.childNodes[1]},pe.prototype.setCenter=function(z,Z){this.visual.childNodes.forEach(function(ye){return Et.setAttributes(ye,[["cx",z.toString()],["cy",Z.toString()]])})},pe}(),hi=function(){function pe(z,Z,ye,xe){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=z,this.canvasHeight=Z,this.margin=ye,this.container=xe,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(pe.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(z){this._aspectRatio=z,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(z){this._isGridVisible=z,this.gridContainer&&Et.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(z){this._zoomFactor=z,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),pe.prototype.open=function(){var z=this;this.cropShadeElement=Et.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=Et.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var Z=0;Z<this.numberOfGridLines;Z++)this.horizontalGridLines.push(Et.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(Et.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(ye){return z.gridContainer.appendChild(ye)}),this.verticalGridLines.forEach(function(ye){return z.gridContainer.appendChild(ye)}),this.cropRectElement=Et.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new kr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new kr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new kr(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new kr(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},pe.prototype.setCropRectangle=function(z){this.cropRect=z;var Z=Object.assign({},this.cropRect);this.zoomFactor!==1&&(Z.width=this.cropRect.width*this.zoomFactor,Z.height=this.cropRect.height*this.zoomFactor,Z.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-Z.width/2,Z.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-Z.height/2),Et.setAttributes(this.cropRectElement,[["x",Z.x.toString()],["y",Z.y.toString()],["width",Z.width.toString()],["height",Z.height.toString()]]);var ye=Z.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(Ce,ft){var zt=Z.y+ye*(ft+1);Et.setAttributes(Ce,[["x1",""+Z.x],["y1",""+zt],["x2",""+(Z.x+Z.width)],["y2",""+zt]])});var xe=Z.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(Ce,ft){var zt=Z.x+xe*(ft+1);Et.setAttributes(Ce,[["x1",""+zt],["y1",""+Z.y],["x2",""+zt],["y2",""+(Z.y+Z.height)]])}),Et.setAttributes(this.cropShadeElement,[["d",Et.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,Z.x,Z.y,Z.width,Z.height)]]),this.topLeftGrip.setCenter(Z.x,Z.y),this.topRightGrip.setCenter(Z.x+Z.width,Z.y),this.bottomLeftGrip.setCenter(Z.x,Z.y+Z.height),this.bottomRightGrip.setCenter(Z.x+Z.width,Z.y+Z.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},pe.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)},pe.prototype.clientToLocalCoordinates=function(z,Z){var ye=this.container.getBoundingClientRect();return{x:z-ye.left+this.margin,y:Z-ye.top+this.margin}},pe.prototype.onPointerDown=function(z){this.container.setPointerCapture(z.pointerId),this.previousPoint=this.clientToLocalCoordinates(z.clientX,z.clientY),this.cropRectElement===z.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(z.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(z.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(z.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(z.target)&&(this.activeGrip=this.bottomRightGrip)},pe.prototype.onPointerMove=function(z){if(this.isMoving)this.move(this.clientToLocalCoordinates(z.clientX,z.clientY));else if(this.activeGrip){var Z=this.clientToLocalCoordinates(z.clientX,z.clientY);this.resize(Z)}z.preventDefault()},pe.prototype.onPointerUp=function(z){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(z.pointerId)},pe.prototype.move=function(z){var Z=z.x-this.previousPoint.x,ye=z.y-this.previousPoint.y;this.zoomFactor!==1&&(Z=-Z/this.zoomFactor,ye=-ye/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+Z),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+ye),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=z},pe.prototype.resize=function(z){var Z=Object.assign({},this.cropRect),ye=z.x-this.previousPoint.x,xe=z.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:Z.x+ye<this.margin&&(ye=this.margin-Z.x),Z.x+=ye,Z.width=this.cropRect.x+this.cropRect.width-Z.x;break;case this.bottomRightGrip:case this.topRightGrip:Z.width+ye>this.canvasWidth*this.zoomFactor&&(ye=this.canvasWidth*this.zoomFactor-Z.width),Z.width+=ye}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(Z.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(ye),Z.height=this.aspectRatio.getVerticalLength(Z.width)):(Z.y+=xe,Z.height=this.cropRect.y+this.cropRect.height-Z.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?Z.height=this.aspectRatio.getVerticalLength(Z.width):Z.height+=xe}Z.width<10&&(Z.x=this.cropRect.x,Z.width=10),Z.height<10&&(Z.y=this.cropRect.y,Z.height=10),this.previousPoint=z,Z.x>=this.margin&&Z.y>=this.margin&&Z.x-this.margin+Z.width<=this.canvasWidth&&Z.y-this.margin+Z.height<=this.canvasHeight&&(this.cropRect=Z,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},pe.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var z=this.cropRect.x+this.cropRect.width/2,Z=this.cropRect.y+this.cropRect.height/2,ye=this.aspectRatio.getHorizontalLength(this.cropRect.height),xe=this.aspectRatio.getVerticalLength(this.cropRect.width);ye/this.canvasWidth<xe/this.canvasHeight?this.cropRect.width=ye:this.cropRect.height=xe,this.cropRect.width>this.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=z-this.cropRect.width/2,this.cropRect.y=Z-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)}},pe.prototype.getRescaledRect=function(z,Z,ye,xe,Ce,ft){var zt=ye/z,ln=xe/Z;return{x:(Ce.x-ft)*zt+ft,y:(Ce.y-ft)*ln+ft,width:Ce.width*zt,height:Ce.height*ln}},pe.prototype.scaleCanvas=function(z,Z){var ye=this.getRescaledRect(this.canvasWidth,this.canvasHeight,z,Z,this.cropRect,this.margin);this.canvasWidth=z,this.canvasHeight=Z,this.onCropChange&&this.onCropChange(ye),this.setCropRectangle(ye)},pe}(),Ui=function(){function pe(z){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=z,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(pe.prototype,"angle",{get:function(){return this._angle},set:function(z){this._angle=z,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),pe.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},pe.prototype.onPointerDown=function(z){this.controlContainer.setPointerCapture(z.pointerId),this.isDragging=!0,this.previousPoint={x:z.clientX,y:z.clientY}},pe.prototype.onPointerMove=function(z){this.isDragging&&(this.onAngleChange&&this.onAngleChange((z.clientX-this.previousPoint.x)/5),this.previousPoint.x=z.clientX)},pe.prototype.onPointerUp=function(z){this.isDragging&&this.onAngleChange&&this.onAngleChange((z.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(z.pointerId)},pe.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var z=this.angleLabelText.getBBox();Et.setAttributes(this.angleLabelElement,[["x",((this.width-z.width)/2).toString()],["y",(this.height/2).toString()]])}},pe.prototype.positionScaleShape=function(){if(this.scaleShape){var z=this.scaleShape.transform.baseVal.getItem(0);z.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(z,0)}},pe.prototype.getVisual=function(){var z=document.createElementNS("http://www.w3.org/2000/svg","svg");z.setAttribute("xmlns","http://www.w3.org/2000/svg"),z.setAttribute("width",this.width+"px"),z.setAttribute("height",this.height+"px"),z.setAttribute("viewBox","0 0 "+this.width+" "+this.height),z.style.flexShrink="0",document.body.appendChild(z);for(var Z="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,ye=1;ye<=this.width/5+10;ye++){var xe=ye%5==0?this.height/3:this.height/6;Z+="h4v"+-xe+"h1v"+xe}Z+="v1H0Z",this.scaleShape=Et.createPath(Z);var Ce=Et.createTransform();this.scaleShape.transform.baseVal.appendItem(Ce),z.appendChild(this.scaleShape),this.angleLabelElement=Et.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=Et.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ft=Et.createTSpan("");return ft.innerHTML="&deg;",this.angleLabelElement.appendChild(ft),z.appendChild(this.angleLabelElement),document.body.removeChild(z),z},pe}(),Zi=function(){function pe(){this.naturalSize=!1,this.imageType="image/png"}return pe.prototype.rasterize=function(z,Z,ye,xe,Ce,ft,zt){var ln=this;return new Promise(function(mn){var Jt=document.createElement("canvas");Jt.width=z.width.baseVal.value-2*xe,Jt.height=z.height.baseVal.value-2*xe;var Zn=1,Un=1;ln.naturalSize===!0?(Zn=Z.naturalWidth/(z.width.baseVal.value-2*xe)/ft,Un=Z.naturalHeight/(z.height.baseVal.value-2*xe)/zt,Jt.width=Z.naturalWidth/ft,Jt.height=Z.naturalHeight/zt):ln.width!==void 0&&ln.height!==void 0&&(Zn=ln.width/ye.width,Un=ln.height/ye.height,Jt.width*=Zn,Jt.height*=Un);var nr=Jt.getContext("2d");nr.translate(Jt.width/2,Jt.height/2),nr.rotate(Ce*Math.PI/180),nr.scale(ft,zt),nr.translate(-Jt.width/2,-Jt.height/2),nr.drawImage(Z,0,0,Jt.width,Jt.height);var Sr=document.createElement("canvas");Sr.width=ye.width*Zn,Sr.height=ye.height*Un,Sr.getContext("2d").putImageData(nr.getImageData((ye.x-xe)*Zn,(ye.y-xe)*Un,ye.width*Zn,ye.height*Un),0,0),mn(Sr.toDataURL(ln.imageType,ln.imageQuality))})},pe}(),Le=function(){function pe(z){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=pe.instanceCounter++,this.styles=new Lt(this.instanceNo),this.target=z,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(pe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(z){this._zoomToCropEnabled=z,z?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(z){this._isGridVisible=z,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"gridLines",{get:function(){return this._gridLines},set:function(z){this._gridLines=z,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(z){this._rotationAngle=z,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"aspectRatio",{get:function(){var z;return(z=this._aspectRatio)!==null&&z!==void 0?z:this.aspectRatios[0]},set:function(z){this._aspectRatio=z},enumerable:!1,configurable:!0}),pe.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},pe.prototype.show=function(){this.showUI(),this.open()},pe.prototype.close=function(z){z===void 0&&(z=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),z||this.closeEventListeners.forEach(function(Z){return Z()}),this._isOpen=!1)},pe.prototype.addRenderEventListener=function(z){this.renderEventListeners.push(z)},pe.prototype.removeRenderEventListener=function(z){this.renderEventListeners.indexOf(z)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(z),1)},pe.prototype.addCloseEventListener=function(z){this.closeEventListeners.push(z)},pe.prototype.removeCloseEventListener=function(z){this.closeEventListeners.indexOf(z)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(z),1)},pe.prototype.setupResizeObserver=function(){var z=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){z.resize(z.target.clientWidth,z.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))},pe.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var z=1*this.target.clientWidth/this.target.clientHeight,Z=this.contentDiv.clientWidth/z>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*z:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,ye=Z+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/z;this.resize(Z,ye)}},pe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},pe.prototype.setEditingTargetSize=function(){this.editorCanvas.style.width=this.imageWidth+2*this.CANVAS_MARGIN+"px",this.editorCanvas.style.height=this.imageHeight+2*this.CANVAS_MARGIN+"px",Et.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},pe.prototype.resize=function(z,Z){this.imageWidth=Math.round(z),this.imageHeight=Math.round(Z),this.setEditingTargetSize(),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.displayMode!=="popup"?this.coverDiv.style.width=this.paddedImageWidth+"px":(this.setTopLeft(),this.positionCropImage()),this.cropLayer.scaleCanvas(this.imageWidth,this.imageHeight),this.applyRotation()},pe.prototype.setEditingTarget=function(){var z=document.createElement("canvas");z.width=this.target.naturalWidth,z.height=this.target.naturalHeight,z.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var Z=z.toDataURL();Et.setAttributes(this.editingTarget,[["href",Z]]),this.setEditingTargetSize()},pe.prototype.setTopLeft=function(){var z=this.target.getBoundingClientRect(),Z=this.editorCanvas.getBoundingClientRect();this.left=z.left-Z.left-this.CANVAS_MARGIN,this.top=z.top-Z.top-this.CANVAS_MARGIN},pe.prototype.initCropCanvas=function(){this.cropImageHolder=document.createElement("div"),this.cropImageHolder.style.setProperty("touch-action","none"),this.cropImageHolder.style.setProperty("-ms-touch-action","none"),this.cropImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.cropImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImage.style.pointerEvents="auto",this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.cropImageHolder.style.transformOrigin="top left",this.positionCropImage(),this.defs=Et.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=Et.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=Et.createGroup(),this.editingTargetRotationScaleContainer=Et.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var z=Et.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(z);var Z=Et.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(Z),this.editingTargetContainer=Et.createGroup(),this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px)",this.editingTargetContainer.appendChild(this.editingTargetRotationContainer),this.cropImage.appendChild(this.editingTargetContainer),this.cropImageHolder.appendChild(this.cropImage),this.editorCanvas.appendChild(this.cropImageHolder)},pe.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},pe.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=Et.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new hi(this.imageWidth,this.imageHeight,this.CANVAS_MARGIN,this.cropLayerContainer),this.cropLayer.onCropChange=this.cropRectChanged,this.cropLayer.numberOfGridLines=this.gridLines,this.cropLayer.isGridVisible=this.isGridVisible,this.cropLayer.cropShadeColor=this.styles.settings.cropShadeColor,this.cropLayer.cropFrameColor=this.styles.settings.cropFrameColor,this.cropLayer.gripColor=this.styles.settings.gripColor,this.cropLayer.gripFillColor=this.styles.settings.gripFillColor,this.cropLayer.open(),this.cropLayer.setCropRectangle(this.cropRect),this.zoomToCropEnabled&&this.zoomToCrop()},pe.prototype.zoomToCrop=function(){if(this.cropRect){var z=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,Z=this.cropRect.y-this.CANVAS_MARGIN+this.cropRect.height/2;this.zoomFactor=Math.min(this.imageWidth/this.cropRect.width,this.imageHeight/this.cropRect.height),this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin=z+"px "+Z+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-z+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-Z+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},pe.prototype.unzoomFromCrop=function(){this.zoomFactor=1,this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin="center",this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px) scale(1)",this.cropLayer.zoomFactor=this.zoomFactor)},pe.prototype.cropRectChanged=function(z){this.cropRect=z,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},pe.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},pe.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"},pe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},pe.prototype.showUI=function(){switch(this.addStyles(),this.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.displayMode){case"inline":this.coverDiv.style.position="absolute";var z=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,Z=this.target.offsetTop>z+this.CANVAS_MARGIN?this.target.offsetTop-(z+this.CANVAS_MARGIN):0;this.coverDiv.style.top=Z+"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},pe.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},pe.prototype.addTopToolbar=function(){var z=this;this.topToolbar=new gn,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 Z=new wr;Z.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(Z);var ye=[];this.aspectRatios.forEach(function(Un){var nr=new cr(si.getIcon(Un.horizontal,Un.vertical),Un.horizontal===0&&Un.vertical===0?"FREE":Un.horizontal+":"+Un.vertical);nr.onClick=function(){return z.ratioButtonClicked(Un)},ye.push(nr)}),this.aspectRatioButton=new li(si.getIcon(0,0),"Aspect ratio",ye),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,Z.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var xe=new cr('<svg viewBox="0 0 24 24"><path d="M10 4v4h4V4h-4m6 0v4h4V4h-4m0 6v4h4v-4h-4m0 6v4h4v-4h-4m-2 4v-4h-4v4h4m-6 0v-4H4v4h4m0-6v-4H4v4h4m0-6V4H4v4h4m2 6h4v-4h-4v4M4 2h16a2 2 0 012 2v16a2 2 0 01-2 2H4c-1.08 0-2-.9-2-2V4a2 2 0 012-2z"/></svg>',"Toggle grid");xe.isActive=this.isGridVisible,xe.onClick=function(){z.isGridVisible=!z.isGridVisible,xe.isActive=z.isGridVisible},Z.addButton(xe);var Ce=new cr('<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"Zoom to selection");if(Ce.isActive=this.zoomToCropEnabled,Ce.onClick=function(){z.zoomToCropEnabled=!z.zoomToCropEnabled,Ce.isActive=z.zoomToCropEnabled},Z.addButton(Ce),!Vt.isLicensed){var ft=new Rn;this.topToolbar.addElementBlock(ft);var zt=document.createElement("div");zt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var ln=document.createElement("a");ln.style.color="currentColor",ln.href="https://markerjs.com/products/cropro",ln.target="_blank",ln.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M16.326 14.895c0 1.126-.558 1.688-1.673 1.688H9.931c-1.116 0-1.674-.562-1.674-1.688V3.733c0-1.126.558-1.688 1.674-1.688h4.722c1.115 0 1.673.562 1.673 1.688v2.899h-1.957V3.793h-4.124v11.042h4.124v-3.242h1.957v3.302z" fill="currentColor"/><path d="M15.94 7.364a.783.783 0 00-1.065-.304l-11.01 6.126a.783.783 0 00-.303 1.065l4.498 8.085a.783.783 0 001.065.304l11.01-6.126a.783.783 0 00.303-1.065L15.94 7.364zM5.311 14.173l3.737 6.718 9.641-5.364-3.737-6.718-9.641 5.364z" fill="#eef762"/></svg>',zt.appendChild(ln),ft.addElement(zt)}var mn=new wr;mn.minWidth=3*this.toolbarHeight+"px",mn.contentAlign="end",this.topToolbar.addButtonBlock(mn);var Jt=new cr('<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"OK");Jt.onClick=this.startRenderAndClose,mn.addButton(Jt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Jt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Zn=new cr('<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"Close");Zn.onClick=this.close,mn.addButton(Zn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Zn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},pe.prototype.addBottomToolbar=function(){var z=this;this.bottomToolbar=new gn,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 Z=new wr;Z.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(Z);var ye=new cr('<svg viewBox="0 0 24 24"><path d="M13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93M7.1 18.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.02-4.47L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47z"/></svg>',"Rotate left");ye.onClick=this.rotateLeftButtonClicked,Z.addButton(ye);var xe=new cr('<svg viewBox="0 0 24 24"><path d="M16.89 15.5l1.42 1.39c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.5M13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m6.93-6.9a7.906 7.906 0 00-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47m-2.36-5.45L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45z"/></svg>',"Rotate right");xe.onClick=this.rotateRightButtonClicked,Z.addButton(xe);var Ce=new Rn;Ce.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(Ce),this.straightener=new Ui("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(mn){z.rotateBy(mn),z.straightener.angle=z.rotationAngle},Ce.addElement(this.straightener.getUI());var ft=new wr;ft.minWidth=2*this.toolbarHeight+"px",ft.contentAlign="end",this.bottomToolbar.addButtonBlock(ft);var zt=new cr('<svg viewBox="0 0 24 24"><path d="M15 21h2v-2h-2m4-10h2V7h-2M3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2m16-2v2h2c0-1.1-.9-2-2-2m-8 20h2V1h-2m8 16h2v-2h-2M15 5h2V3h-2m4 10h2v-2h-2m0 10c1.1 0 2-.9 2-2h-2z"/></svg>',"Flip horizontal");zt.onClick=this.flipHorizontallyButtonClicked,ft.addButton(zt);var ln=new cr('<svg viewBox="0 0 24 24"><path d="M3 15v2h2v-2m10 4v2h2v-2m2-16H5c-1.1 0-2 .9-2 2v4h2V5h14v4h2V5c0-1.1-.9-2-2-2m2 16h-2v2c1.1 0 2-.9 2-2M1 11v2h22v-2M7 19v2h2v-2m10-4v2h2v-2m-10 4v2h2v-2M3 19c0 1.1.9 2 2 2v-2z"/></svg>',"Flip vertical");ln.onClick=this.flipVerticallyButtonClicked,ft.addButton(ln)},pe.prototype.ratioButtonClicked=function(z){this.aspectRatio=z,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},pe.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=si.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},pe.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Jr(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},pe.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},pe.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},pe.prototype.restoreState=function(z){if(z){var Z=this.cropLayer.getRescaledRect(z.width,z.height,this.imageWidth,this.imageHeight,z.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(Z),this.cropRectChanged(Z),this.flippedHorizontally=z.flippedHorizontally,this.flippedVertically=z.flippedVertically,this.applyFlip(),this.rotationAngle=z.rotationAngle,this.applyRotation()}},pe.prototype.clientToLocalCoordinates=function(z,Z){var ye=this.cropImage.getBoundingClientRect();return{x:z-ye.left,y:Z-ye.top}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var z=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=z+"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()},pe.prototype.rotateLeftButtonClicked=function(){var z=this.rotationAngle-90;this.rotationAngle%90!=0&&(z+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(z)},pe.prototype.rotateRightButtonClicked=function(){var z=this.rotationAngle+90;this.rotationAngle%90!=0&&(z-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(z)},pe.prototype.rotateTo=function(z){z=(z=z>180?z-360:z)<=-180?z+360:z,this.rotationAngle=z,this.applyRotation()},pe.prototype.rotateBy=function(z){this.rotateTo((this.rotationAngle+z)%360)},pe.prototype.applyRotation=function(){var z=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var Z=this.editingTargetRotationContainer.transform.baseVal.getItem(0);Z.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(Z,0);var ye=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/ye.width,this.imageHeight/ye.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=z},pe.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},pe.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},pe.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},pe.prototype.startRenderAndClose=function(){return Ct(this,void 0,void 0,function(){var z,Z;return jt(this,function(ye){switch(ye.label){case 0:return[4,this.render()];case 1:return z=ye.sent(),Z=this.getState(),this.renderEventListeners.forEach(function(xe){return xe(z,Z)}),this.close(!0),[2]}})})},pe.prototype.render=function(){return Ct(this,void 0,void 0,function(){var z;return jt(this,function(Z){switch(Z.label){case 0:return(z=new Zi).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.width=this.renderWidth,z.height=this.renderHeight,this.unzoomFromCrop(),Et.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,z.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 Z.sent(),[4,z.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,Z.sent()]}})})},pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new un("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 un("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new un("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var z=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new un("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*z)+`px;
height: `+(this.toolbarHeight-2*z)+`px;
padding: `+z+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new un("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new un("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new Ht("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new Ht("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new un("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 un("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new un("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 un("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*z)+`px;
padding: `+z+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new un("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},pe.instanceCounter=0,pe}(),Fe=R("8hTe"),nt=R.n(Fe),xt=/<pre[^>]*>/g;function Wt(pe){var z=document.createElement("div");return z.innerHTML=pe,z.childNodes.length===0?"":z.childNodes[0].nodeValue}var Xt=fe.a=function(pe){var z=pe.value,Z=z===void 0?"":z,ye=pe.edit,xe=ye===void 0?!1:ye,Ce=pe.className,ft=pe.showTextOnly,zt=pe.showLines,ln=pe.replaces,mn=pe.zoomImg,Jt=pe.hasMask,Zn=pe.style,Un=Zn===void 0?{}:Zn,nr=pe.stylesPrev,Sr=nr===void 0?{}:nr,ii=String(Z),Dr=Object(i.useRef)(),ti=Object(i.useRef)(),Tr=Object(i.useState)(""),vi=Object(w.a)(Tr,2),fi=vi[0],Oi=vi[1],wi=Object(i.useState)("office"),Fi=Object(w.a)(wi,2),Hi=Fi[0],Ii=Fi[1],Vr=function(){var hr=new Le(ti.current);hr.displayMode="popup",hr.addRenderEventListener(function(){var zr=Object(C.a)(d.a.mark(function Zr(_i){var Xr;return d.a.wrap(function(Ni){for(;;)switch(Ni.prev=Ni.next){case 0:return Dr.current.style.display="none",Ni.next=3,Object(ne.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:_i}});case 3:Xr=Ni.sent,Xr!=null&&Xr.id&&ln(ti.current.getAttribute("src").replace(N.a.API_SERVER,""),"/api/attachments/".concat(Xr==null?void 0:Xr.id,"?type=").concat(Xr.content_type));case 5:case"end":return Ni.stop()}},Zr)}));return function(Zr){return zr.apply(this,arguments)}}()),hr.show()},zi=function(){var hr=new je(ti.current);hr.settings.displayMode="popup",hr.addEventListener("render",function(){var zr=Object(C.a)(d.a.mark(function Zr(_i){var Xr;return d.a.wrap(function(Ni){for(;;)switch(Ni.prev=Ni.next){case 0:if(Dr.current.style.display="none",!ti.current){Ni.next=6;break}return Ni.next=4,Object(ne.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:_i.dataUrl}});case 4:Xr=Ni.sent,Xr!=null&&Xr.id&&ln(ti.current.getAttribute("src").replace(N.a.API_SERVER,""),"/api/attachments/".concat(Xr==null?void 0:Xr.id,"?type=").concat(Xr.content_type));case 6:case"end":return Ni.stop()}},Zr)}));return function(Zr){return zr.apply(this,arguments)}}()),hr.show(),window.markerArea=hr},Gi=Object(i.useMemo)(function(){try{var Wr=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,hr=/\"\/api\/attachments\/|\"\/attachments\/download\//g,zr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;ii=ii.replace(Wr,"("+N.a.API_SERVER+"/api/attachments/").replace(hr,'"'+N.a.API_SERVER+"/api/attachments/").replace(zr,'"'+N.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,`
`),ii=ii.replace(new RegExp("(?<!\\n)\\n(?!\\n)","g"),`
`)}catch(ja){}var Zr=X(ii),_i=O();if(ii.match(/\[TOC\]/)&&(Zr=Zr.replace("<p>[TOC]</p>",B()),p()),Zr=Zr.replace(/(__special_katext_id_\d+__)/g,function(ja,Ni){var va=_i[Ni],vo=va.type,Wo=va.expression;return Object(Q.renderToString)(Wt(Wo)||"",{displayMode:vo==="block",throwOnError:!1,output:"html"})}),Zr=Zr.replace(/▁/g,"\u2581\u2581\u2581"),T(),ft){var Xr=document.createElement("div");return Xr.innerHTML=Zr,Xr.innerText}return setTimeout(function(){return da()},500),Zr},[ii]),Di=Object(i.useRef)();x.WebkitLineClamp=zt,zt&&(Un=Object(b.a)(Object(b.a)({},Un),x));function sa(Wr){var hr=Wr.target;if(hr.tagName.toUpperCase()==="IMG"){if(mn){var zr=hr.getAttribute("src");Oi(zr),Ii("image")}}else if(hr.tagName.toUpperCase()==="A"){var Zr=hr.getAttribute("href");if(Zr.indexOf("office")>-1)Wr.preventDefault(),Oi(Zr),Ii("office");else if(Zr.indexOf("application/pdf")>-1)Wr.preventDefault(),Oi(Zr),Ii("pdf");else if(Zr.indexOf("type=text")>-1)Wr.preventDefault(),Oi(Zr),Ii("html");else if(Zr.startsWith("#")){Wr.preventDefault();var _i=document.getElementById(Zr.replace("#",""));_i&&_i.scrollIntoView(!0)}}}var da=function(){var hr,zr=(hr=Di.current)===null||hr===void 0?void 0:hr.querySelectorAll("video");zr==null||zr.forEach(function(Zr){if(Zr.oncontextmenu=function(){return!1},Zr.src.indexOf(".m3u8")>-1&&!Zr.canPlayType("application/vnd.apple.mpegurl")){if(V.a.isSupported()){var _i=new V.a;_i.loadSource(Zr.src),_i.attachMedia(Zr)}}})};Object(i.useEffect)(function(){if(Di.current&&Gi&&(Gi.match(xt)&&window.PR.prettyPrint()),Di.current)return Di.current.addEventListener("click",sa),function(){Di.current.removeEventListener("click",sa),T(),p()}},[Gi,Di.current,sa]);var Mi=function(hr){if(!xe)return;hr.target.nodeName==="IMG"?(Dr.current.style.display="flex",Dr.current.style.width=hr.target.clientWidth+"px",Dr.current.style.height=hr.target.clientHeight+"px",Dr.current.style.top=hr.target.offsetTop+"px",Dr.current.style.left=hr.target.offsetLeft+"px",ti.current.src=hr.target.getAttribute("src")):Dr.current.style.display="none"};return n.a.createElement("div",{style:{position:"relative"}},n.a.createElement("div",{ref:Di,style:Object(b.a)({},Un),className:"".concat(Ce||""," markdown-body ").concat(nt.a.mdBody),onMouseOver:Mi,dangerouslySetInnerHTML:{__html:Gi}}),n.a.createElement("div",{ref:Dr,className:nt.a.button},n.a.createElement(G.a,null,n.a.createElement(v.a,{onClick:function(){return Vr()}},"\u88C1\u526A"),n.a.createElement(v.a,{onClick:function(){return zi()}},"\u7F16\u8F91"))),n.a.createElement("img",{ref:ti,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),n.a.createElement(J.a,{close:!0,data:fi,hasMask:Jt,type:fi!=null&&fi.length?Hi:"",style:Object(b.a)({},Sr),onClose:function(){return Oi("")}}))}},"9VGf":function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return M});var se=R("q1tI"),G=R.n(se);function M(v,b){var C=Object(se.useRef)();Object(se.useEffect)(function(){C.current=v}),Object(se.useEffect)(function(){function w(){C.current()}if(b!==null){var m=setInterval(w,b);return function(){return clearInterval(m)}}},[b])}},"9nDM":function(Ge,fe,R){},"A/g1":function(Ge,fe){Ge.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(Ge,fe,R){Ge.exports=R.p+"static/Certificate.80413b23.png"},AZ8Y:function(Ge,fe,R){"use strict";R.r(fe);var se=R("T2oS"),G=R("W9HT"),M=R("k1fw"),v=R("9og8"),b=R("tJVT"),C=R("PpiC"),w=R("Znn+"),m=R("ZTPi"),d=R("WmNS"),i=R.n(d),n=R("q1tI"),e=R.n(n),a=R("Ty5D"),s=R("9kvl"),o=R("oBTY"),f=R("pC0b"),l=R("GzdX"),r=R("+L6B"),c=R("2/Rp"),A=R("+BJd"),p=R("mr32"),x=R("qVdP"),_=R("jsC+"),B=R("lUTK"),E=R("BvKs"),g=R("5Dmo"),h=R("3S7+"),u=R("7Kak"),S=R("9yH6"),O=R("2qtc"),T=R("kLXV"),D=R("miYZ"),I=R("tsqr"),k=R("0NbB"),F=R("JTSX"),X=R.n(F),U=R("xKgJ"),K=R("Mgx3"),V=R("ozfa"),N=R("MJZm"),Q=R("sRBo"),J=R("kaz8"),ne=R("14J3"),ue=R("BMrR"),be=R("jCWc"),de=R("kPKH"),_e=R("OaEy"),me=R("2fM7"),Ee=R("wd/R"),ge=R.n(Ee),Ae=R("kNP/"),ae=R.n(Ae),ve=R("1vsH"),oe=me.a.Option,ie=function(Ye){var Je=Ye.pathsDetail,Be=Ye.globalSetting,Xe=Ye.loading,Oe=Ye.dispatch,at=Object(C.a)(Ye,["pathsDetail","globalSetting","loading","dispatch"]),tt=Object(a.i)(),st=Object(n.useState)(),ot=Object(b.a)(st,2),dt=ot[0],It=ot[1],Gt=Object(n.useState)([]),Dt=Object(b.a)(Gt,2),tn=Dt[0],cn=Dt[1],Bn=Object(n.useState)([]),Yt=Object(b.a)(Bn,2),en=Yt[0],bn=Yt[1],Dn=Object(n.useState)([]),rn=Object(b.a)(Dn,2),En=rn[0],Ln=rn[1],Vn=Object(n.useState)(),an=Object(b.a)(Vn,2),fn=an[0],An=an[1],wn=Object(n.useState)(),er=Object(b.a)(wn,2),dn=er[0],Fn=er[1],Ir=Object(n.useState)(!0),dr=Object(b.a)(Ir,2),Br=dr[0],sr=dr[1];Object(n.useEffect)(function(){Je.actionTabs.key==="PathsDetail-SendToClass"&&Qn()},[Je.actionTabs.key]);var Nr=function(sn){switch(sn.item_type){case"Shixun":return e.a.createElement("span",null,e.a.createElement("span",{className:"mr5 c-light-primary"},"\u5B9E\u8BAD"),sn.name);case"Attachment":return e.a.createElement("span",null,e.a.createElement("span",{className:"mr5 c-cyan-blue"},"\u8BFE\u4EF6"),sn.name);case"VideoItem":return e.a.createElement("span",null,e.a.createElement("span",{className:"mr5 c-purple-8C1"},"\u89C6\u9891"),sn.name);case"StageCatalog":return e.a.createElement("span",null,sn.name);default:return""}},Qn=function(){var pn=Object(v.a)(i.a.mark(function sn(){var zn,Yn,_n;return i.a.wrap(function(Qr){for(;;)switch(Qr.prev=Qr.next){case 0:return Qr.next=2,Object(K.G)({id:tt.pathId});case 2:zn=Qr.sent,zn&&(cn((zn==null?void 0:zn.courses)||[]),_n=(Yn=zn.stages)===null||Yn===void 0?void 0:Yn.map(function(Vi,Ri){var ri;return{title:Vi.state_name||"",key:Ri,children:(ri=Vi.items)===null||ri===void 0?void 0:ri.map(function(ga,na){var Ki;return Object(M.a)(Object(M.a)({},ga),{},{disabled:ga.is_jupyter,title:Nr(ga),key:"".concat(Ri,"-").concat(na),children:(Ki=ga.children)===null||Ki===void 0?void 0:Ki.map(function(no,ro){return Object(M.a)(Object(M.a)({},no),{},{disabled:no.is_jupyter,title:Nr(no),key:"".concat(Ri,"-").concat(na,"-").concat(ro)})})})})}}),bn(_n||[]));case 4:case"end":return Qr.stop()}},sn)}));return function(){return pn.apply(this,arguments)}}(),Fr=function(sn,zn){Ln(sn)},ei=function(sn){var zn=sn.target.checked,Yn=[];en==null||en.map(function(_n,mr){var Qr;Yn.push(mr),_n==null||((Qr=_n.children)===null||Qr===void 0)||Qr.map(function(Vi,Ri){var ri;Yn.push("".concat(mr,"-").concat(Ri)),Vi==null||((ri=Vi.children)===null||ri===void 0)||ri.map(function(ga,na){Yn.push("".concat(mr,"-").concat(Ri,"-").concat(na))})})}),Ln(zn?Yn:[])},Kr=function(){var sn=En.filter(function(Qr){return typeof Qr=="string"}),zn=[],Yn=[],_n=[],mr=[];return en==null||en.map(function(Qr,Vi){var Ri;Qr==null||((Ri=Qr.children)===null||Ri===void 0)||Ri.map(function(ri,ga){var na;sn.includes("".concat(Vi,"-").concat(ga))&&(_n.push(ri.stage_item_id),ri.item_type==="Shixun"?zn.push(ri.id):ri.item_type==="Attachment"?mr.push(ri.id):ri.item_type==="VideoItem"&&Yn.push(ri.id)),ri==null||((na=ri.children)===null||na===void 0)||na.map(function(Ki,no){sn.includes("".concat(Vi,"-").concat(ga,"-").concat(no))&&(_n.push(Ki.stage_item_id),Ki.item_type==="Shixun"?zn.push(Ki.id):Ki.item_type==="Attachment"?mr.push(Ki.id):Ki.item_type==="VideoItem"&&Yn.push(Ki.id))})})}),{shixunIds:zn,videoItemIds:Yn,stageItemIds:_n,coursewareIds:mr}},yr=function(){var pn=Object(v.a)(i.a.mark(function sn(){var zn,Yn,_n;return i.a.wrap(function(Qr){for(;;)switch(Qr.prev=Qr.next){case 0:if(zn=Kr(),Yn=zn.stageItemIds,console.log(Yn,"stageItemIds"),dt){Qr.next=5;break}return I.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u53D1\u9001\u7684\u8BFE\u5802"),Qr.abrupt("return");case 5:if(!(!jn.length&&!ir.length&&!Wn.length)){Qr.next=8;break}return I.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u5B9E\u8BAD\u6216\u8005\u89C6\u9891"),Qr.abrupt("return");case 8:return Fn(!0),Qr.next=11,Object(K.P)({id:tt.pathId,course_id:dt,stage_item_id:Yn,sync_catelog:Br?1:0}).catch(function(Vi){return Fn(!1)});case 11:_n=Qr.sent,Fn(!1),On(),(_n==null?void 0:_n.status)===1&&T.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},_n.message),onOk:function(){var Ri,ri=_n==null||((Ri=_n.url.split("/"))===null||Ri===void 0)?void 0:Ri[2];Object(ve.O)("/classrooms/".concat(ri,"/shixun_homework"))}});case 15:case"end":return Qr.stop()}},sn)}));return function(){return pn.apply(this,arguments)}}(),On=function(){Oe({type:"pathsDetail/setActionTabs",payload:{}}),It(null),Ln([]),An(null)},rr=Kr(),Pr=rr.shixunIds,jn=Pr===void 0?[]:Pr,$n=rr.videoItemIds,ir=$n===void 0?[]:$n,Jn=rr.coursewareIds,Wn=Jn===void 0?[]:Jn;return e.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Je.actionTabs.key==="PathsDetail-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:dn,width:600,onOk:yr,onCancel:On},e.a.createElement("div",{className:ae.a.wrap},e.a.createElement("div",{className:"mb10"},e.a.createElement(me.a,{placeholder:"\u8BF7\u9009\u62E9\u60A8\u8981\u53D1\u9001\u7684\u8BFE\u5802",defaultOpen:!1,value:dt,style:{width:"100%"},onSelect:function(sn){return It(sn)},optionLabelProp:"lable"},tn==null?void 0:tn.map(function(pn,sn){return e.a.createElement(oe,{key:pn.course_id,value:pn.course_id,lable:pn.course_name},e.a.createElement(ue.a,{justify:"space-between"},e.a.createElement(de.a,null,pn.course_name),e.a.createElement(de.a,null,ge()(pn.created_at).format("YYYY-MM-DD HH:mm"),"\xA0")))}))),e.a.createElement("div",{className:ae.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A",e.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",e.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"),e.a.createElement("div",{className:ae.a.radioWrap},e.a.createElement("div",null,e.a.createElement(J.a,{value:fn,onChange:ei,className:"font14 ml20"},"\u5168\u9009")),!!(en!=null&&en.length)&&e.a.createElement(N.a,{className:ae.a.tree,checkable:!0,defaultExpandAll:!0,treeData:en,checkedKeys:En,onCheck:function(sn,zn){return Fr(sn,zn)}})),e.a.createElement("div",{className:ae.a.createMkdir},e.a.createElement(J.a,{checked:Br,onChange:function(sn){return sr(sn.target.checked)},className:"font14"},"\u9009\u4E2D\u7AE0\u8282\u5728\u8BFE\u5802\u4E2D\u540C\u6B65\u751F\u6210\u76EE\u5F55"),!!(jn.length+ir.length)&&e.a.createElement("span",null,e.a.createElement("span",null,"\u5DF2\u9009\u4E2D\uFF1A"),!!jn.length&&e.a.createElement(e.a.Fragment,null,e.a.createElement("span",{className:"c-light-primary"},jn.length," "),e.a.createElement("span",null,"\u4E2A\u5B9E\u8BAD")),!!ir.length&&e.a.createElement(e.a.Fragment,null,e.a.createElement("span",{className:"c-purple-8C1 ml5"},ir.length," "),e.a.createElement("span",null,"\u4E2A\u89C6\u9891")),!!Wn.length&&e.a.createElement(e.a.Fragment,null,e.a.createElement("span",{className:"c-cyan-blue ml5"},Wn.length," "),e.a.createElement("span",null,"\u4E2A\u8BFE\u4EF6"))))))},Te=Object(s.a)(function(Ve){var Ye=Ve.pathsDetail,Je=Ve.loading,Be=Ve.globalSetting;return{pathsDetail:Ye,globalSetting:Be,loading:Je.effects}})(ie),Re=R("NLgs"),Me=R("5NDa"),re=R("5rEg"),j=R("6UJt"),W=R("DFOY"),he=R("y8nQ"),te=R("Vl3Y"),ce=R("ErOA"),Ie=R("OC45"),ze=R.n(Ie),_t=function(Ye){var Je=Ye.type,Be=Ye.onCancel,Xe=Ye.onOk,Oe=te.a.useForm(),at=Object(b.a)(Oe,1),tt=at[0],st=Object(n.useState)(!0),ot=Object(b.a)(st,2),dt=ot[0],It=ot[1],Gt=Object(n.useState)(!1),Dt=Object(b.a)(Gt,2),tn=Dt[0],cn=Dt[1],Bn=Object(n.useState)([]),Yt=Object(b.a)(Bn,2),en=Yt[0],bn=Yt[1];Object(n.useEffect)(function(){Dn()},[]);var Dn=function(){var En=Object(v.a)(i.a.mark(function Ln(){var Vn;return i.a.wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:if(!Je){fn.next=7;break}return cn(!0),fn.next=4,Object(ce.a)("/api/disciplines.json",{method:"get",params:{source:Je}});case 4:Vn=fn.sent,bn(Vn.disciplines||[]),cn(!1);case 7:case"end":return fn.stop()}},Ln)}));return function(){return En.apply(this,arguments)}}(),rn=function(){var Ln=tt.getFieldsValue(),Vn=Ln.sub_discipline_id,an=Ln.discipline_name,fn=Ln.sub_discipline_name;if((!Vn||Vn&&Vn.length===0)&&(!an||!fn))return I.b.warn("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"),!1;Xe({user_customize:Vn&&Vn.length===0||!Vn,sub_discipline_id:Vn,discipline_name:an,sub_discipline_name:fn})};return e.a.createElement(T.a,{width:600,className:ze.a.applyPublicContainer,title:"\u6DFB\u52A0\u65B9\u5411&\u8BFE\u7A0B\u5F39\u7A97",okText:"\u7533\u8BF7\u516C\u5F00",visible:!0,onCancel:Be,onOk:rn},e.a.createElement("div",{className:ze.a.applyPublicContent},e.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"),e.a.createElement(te.a,{labelCol:{span:4},labelAlign:"right",form:tt},e.a.createElement(te.a.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"sub_discipline_id"},e.a.createElement(W.a,{expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:en,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:function(Ln,Vn){return tt.setFieldsValue({sub_discipline_id:Ln})}}),e.a.createElement("div",{className:ze.a.action,onClick:function(){return It(!dt)}},e.a.createElement("div",null,"\u81EA\u5B9A\u4E49\u65B9\u5411&\u8BFE\u7A0B"),e.a.createElement("div",null,e.a.createElement("span",null,dt?"\u5C55\u5F00":"\u6536\u8D77"),e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont ".concat(dt?"icon-zhankai2":"icon-shouqi1")}))))),!dt&&e.a.createElement(e.a.Fragment,null,e.a.createElement(te.a.Item,{label:"\u65B9\u5411",name:"discipline_name"},e.a.createElement(re.a,{placeholder:"\u8BF7\u8F93\u5165\u65B9\u5411",autoComplete:"off"})),e.a.createElement(te.a.Item,{label:"\u8BFE\u7A0B",name:"sub_discipline_name"},e.a.createElement(re.a,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B",autoComplete:"off"})))),tn&&e.a.createElement("div",{className:ze.a.spin},e.a.createElement(G.a,null))))},He=_t,Ke=R("9Bee"),ht=R("m3rI"),St=R("OljG"),ct=R.n(St),lt=R("MKdu"),rt=R.n(lt),Ze=R("m/50"),$e=R.n(Ze),Ue=R("Nddv"),Ne=R.n(Ue),We=R("vUf6"),it=R.n(We),yt=function(Ye){var Je,Be,Xe,Oe,at,tt,st,ot,dt,It,Gt,Dt,tn,cn,Bn,Yt,en,bn,Dn,rn,En,Ln,Vn,an,fn,An,wn,er,dn,Fn,Ir,dr,Br,sr,Nr,Qn,Fr,ei,Kr,yr,On,rr,Pr,jn,$n,ir,Jn,Wn,pn,sn,zn,Yn,_n,mr,Qr,Vi,Ri,ri,ga,na,Ki,no,ro,Da,Io,Mo,io,Ia,ka,So,co,ho,Qa,Ma,Va,Ka,go,Fa,yo,Xi,ao,Lo,Wa,Ta,fo,$o,qo,Go,Xa,es,ya,ki,la,ji,Ya,bo,La,Vo,Po,Xo,Ba,In,Ja,vs,ts,ci,Ur,ua,xi,To,Za,Eo,oo,hn=Ye.pathsDetail,Uo=Ye.user,Ss=Ye.globalSetting,gs=Ye.loading,$i=Ye.dispatch,Sn=Object(C.a)(Ye,["pathsDetail","user","globalSetting","loading","dispatch"]),Ft=Object(a.i)(),$t=Object(n.useState)({}),Cn=Object(b.a)($t,2),Zt=Cn[0],qn=Cn[1],or=Object(n.useRef)(1),fr=Object(n.useState)(),$r=Object(b.a)(fr,2),vn=$r[0],ra=$r[1],Pa=Object(n.useState)(!1),Li=Object(b.a)(Pa,2),di=Li[0],Oa=Li[1],$a=Object(n.useState)(!1),qi=Object(b.a)($a,2),Yi=qi[0],Aa=qi[1],ko=Object(n.useState)({status:!1}),Fo=Object(b.a)(ko,2),No=Fo[0],jo=Fo[1],Ts=((Je=hn.detail)===null||Je===void 0?void 0:Je.is_free)||((Be=hn.detail)===null||Be===void 0?void 0:Be.can_learning);Object(n.useEffect)(function(){jo({status:!1})},[]),Object(n.useEffect)(function(){function Yr(){return Rr.apply(this,arguments)}function Rr(){return Rr=Object(v.a)(i.a.mark(function Ti(){var Or,Kn,Pn,xn,tr,Tn,_r;return i.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:return jr.next=2,$i({type:"pathsDetail/getPathsDetail",payload:{id:Ft.pathId}});case 2:Or=jr.sent,Or!=null&&Or.toast&&(Or!=null&&(Kn=Or.toast)!==null&&Kn!==void 0&&Kn.is_open&&((Pn=Or.toast)===null||Pn===void 0?void 0:Pn.open_num)===-1?Aa(!0):Or!=null&&(xn=Or.toast)!==null&&xn!==void 0&&xn.is_open&&(Or==null||((tr=Or.toast)===null||tr===void 0)?void 0:tr.open_num)===1?(_r=JSON.parse(localStorage.getItem("pathsshow"))||[],((Tn=_r.filter(function(Pi){return Pi===(Ft==null?void 0:Ft.pathId)}))===null||Tn===void 0?void 0:Tn.length)>0?Aa(!1):(Aa(!0),_r.push(Ft==null?void 0:Ft.pathId),localStorage.setItem("pathsshow",JSON.stringify(_r)))):Aa(!1));case 4:case"end":return jr.stop()}},Ti)})),Rr.apply(this,arguments)}Yr()},[]),Object(n.useEffect)(function(){var Yr,Rr,Ti,Or,Kn=(Yr=hn.detail)===null||Yr===void 0||((Rr=Yr.courses)===null||Rr===void 0)?void 0:Rr.length;if(!Kn)return;var Pn;if((Ti=hn.detail)!==null&&Ti!==void 0&&Ti.has_start){var xn,tr,Tn=(xn=hn.detail)===null||xn===void 0||((tr=xn.courses)===null||tr===void 0)?void 0:tr.findIndex(function(pa){var Ea;return((Ea=pa.course_status)===null||Ea===void 0?void 0:Ea.status)===1});Pn=Tn>-1?Tn:0}else{var _r,Mr,jr,Pi,Ji,ba=(_r=hn.detail)===null||_r===void 0||((Mr=_r.courses)===null||Mr===void 0||((jr=Mr.map(function(pa){var Ea;return(Ea=pa.course_status)===null||Ea===void 0?void 0:Ea.status}))===null||jr===void 0))?void 0:jr.lastIndexOf(2);Pn=ba>-1?ba:0,ba=(Pi=hn.detail)===null||Pi===void 0||((Ji=Pi.courses)===null||Ji===void 0)?void 0:Ji.findIndex(function(pa){var Ea;return((Ea=pa.course_status)===null||Ea===void 0?void 0:Ea.status)===0}),Pn=ba>-1?ba:Pn}qn(((Or=hn.detail)===null||Or===void 0?void 0:Or.courses[Pn])||{})},[hn.detail]);var hl=function(Rr){var Ti,Or,Kn=(Ti=hn.detail)===null||Ti===void 0||((Or=Ti.courses)===null||Or===void 0)?void 0:Or.find(function(Pn){return Pn.course_id===Rr});qn(Kn||{}),$i({type:"classroomList/setActionTabs",payload:{key:"\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4",name:Rr}})},fl=function(){var Yr=Object(v.a)(i.a.mark(function Rr(){var Ti;return i.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:return Kn.next=2,Object(K.k)({container_id:Ft.pathId,container_type:"Subject"});case 2:Ti=Kn.sent,Ti.status===0&&(ds(),I.b.success(Ti.message));case 4:case"end":return Kn.stop()}},Rr)}));return function(){return Yr.apply(this,arguments)}}(),Qs=function(){var Yr=Object(v.a)(i.a.mark(function Rr(){var Ti;return i.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:return Kn.next=2,Object(K.n)({container_id:Ft.pathId,container_type:"Subject"});case 2:Ti=Kn.sent,Ti.status===0&&(ds(),I.b.success(Ti.message));case 4:case"end":return Kn.stop()}},Rr)}));return function(){return Yr.apply(this,arguments)}}(),lr=function(){var Yr=Object(v.a)(i.a.mark(function Rr(){return i.a.wrap(function(Or){for(;;)switch(Or.prev=Or.next){case 0:T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u5220\u9664\u5B9E\u8DF5\u8BFE\u7A0B?"),onOk:function(){var Kn=Object(v.a)(i.a.mark(function xn(){var tr;return i.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return _r.next=2,Object(K.q)({id:Ft.pathId});case 2:tr=_r.sent,tr.status===1&&s.d.push("/paths");case 4:case"end":return _r.stop()}},xn)}));function Pn(){return Kn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},Rr)}));return function(){return Yr.apply(this,arguments)}}(),ys=function(){var Yr=Object(v.a)(i.a.mark(function Rr(){return i.a.wrap(function(Or){for(;;)switch(Or.prev=Or.next){case 0:T.a.info({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:e.a.createElement("div",{className:"tc"},"\u8BFE\u7A0B\u53D1\u5E03\u540E\u5373\u53EF\u53D1\u9001\u8BFE\u5802\u4F7F\u7528"),onOk:function(){var Kn=Object(v.a)(i.a.mark(function xn(){var tr;return i.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return _r.next=2,Object(K.h)({id:Ft.pathId});case 2:tr=_r.sent,(tr==null?void 0:tr.status)===0&&(ds(),I.b.success(tr.message));case 4:case"end":return _r.stop()}},xn)}));function Pn(){return Kn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},Rr)}));return function(){return Yr.apply(this,arguments)}}(),Ks=function(){var Yr=Object(v.a)(i.a.mark(function Rr(){return i.a.wrap(function(Or){for(;;)switch(Or.prev=Or.next){case 0:T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F"),okButtonProps:{loading:di},onOk:function(){var Kn=Object(v.a)(i.a.mark(function xn(){var tr;return i.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return Oa(!0),_r.next=3,Object(K.m)({id:Ft.pathId});case 3:tr=_r.sent,(tr==null?void 0:tr.status)===1&&(ds(),I.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F")),Oa(!1);case 6:case"end":return _r.stop()}},xn)}));function Pn(){return Kn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},Rr)}));return function(){return Yr.apply(this,arguments)}}(),Bs=function(){hn.detail&&hn.detail.has_sub_discipline?bs({user_customize:!1}):Ao(!0)},Ao=function(Rr){jo({status:Rr})},bs=function(Rr){T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A\u7533\u8BF7",cancelText:"\u53D6\u6D88\u7533\u8BF7",content:e.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",e.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",e.a.createElement("br",null),"\u7533\u8BF7\u516C\u5F00\uFF0C\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u5373\u53EF",e.a.createElement("br",null)),onOk:function(){var Ti=Object(v.a)(i.a.mark(function Kn(){var Pn,xn;return i.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Pn={user_customize:Rr.user_customize},Rr.user_customize?Pn=Object(M.a)(Object(M.a)({},Pn),{},{discipline_name:Rr.discipline_name,sub_discipline_name:Rr.sub_discipline_name}):Rr.sub_discipline_id&&(Pn=Object(M.a)(Object(M.a)({},Pn),{},{sub_discipline_id:Rr.sub_discipline_id})),Tn.next=4,Object(K.g)(Object(M.a)({id:Ft.pathId},Pn));case 4:xn=Tn.sent,((xn==null?void 0:xn.status)===0||(xn==null?void 0:xn.status)===1)&&(ds(),I.b.success("\u516C\u5F00\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u7684\u5BA1\u6838"));case 6:case"end":return Tn.stop()}},Kn)}));function Or(){return Ti.apply(this,arguments)}return Or}()})},Ws=function(){var Yr=Object(v.a)(i.a.mark(function Rr(){return i.a.wrap(function(Or){for(;;)switch(Or.prev=Or.next){case 0:T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BF7\u516C\u5F00\uFF1F"),onOk:function(){var Kn=Object(v.a)(i.a.mark(function xn(){var tr;return i.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return _r.next=2,Object(K.l)({id:Ft.pathId});case 2:tr=_r.sent,(tr==null?void 0:tr.status)===0&&(ds(),I.b.success("\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u6210\u529F"));case 4:case"end":return _r.stop()}},xn)}));function Pn(){return Kn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},Rr)}));return function(){return Yr.apply(this,arguments)}}(),Ms=function(){var Yr=Object(v.a)(i.a.mark(function Rr(){return i.a.wrap(function(Or){for(;;)switch(Or.prev=Or.next){case 0:T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"ml20"},e.a.createElement(S.a.Group,{defaultValue:1,onChange:function(Pn){return or.current=Pn.target.value}},e.a.createElement(S.a,{value:1,className:"mt10"},"\u5F00\u653E\u8BFE\u5802\uFF1A",e.a.createElement("span",null,"\u6240\u6709\u7528\u6237\u53EF\u4EE5\u968F\u65F6\u8BBF\u95EE")),e.a.createElement(S.a,{value:0,className:"mt10"},"\u79C1\u6709\u8BFE\u5802\uFF1A",e.a.createElement("span",null,"\u4EC5\u62A5\u540D\u53C2\u4E0E\u7684\u8BFE\u5802\u6210\u5458\u53EF\u4EE5\u8BBF\u95EE")))),onOk:function(){var Kn=Object(v.a)(i.a.mark(function xn(){return i.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:Object(ve.O)("/classrooms/news/".concat(Ft.pathId,"/newgold/").concat(or.current));case 1:case"end":return Tn.stop()}},xn)}));function Pn(){return Kn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},Rr)}));return function(){return Yr.apply(this,arguments)}}(),Es=function(){T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u7ACB\u5373\u9884\u7EA6\uFF1F"),onOk:function(){var Rr=Object(v.a)(i.a.mark(function Or(){var Kn;return i.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:return xn.next=2,Object(K.i)({id:Ft.pathId});case 2:Kn=xn.sent,Kn.status===0&&(ra(!0),I.b.success(Kn.message));case 4:case"end":return xn.stop()}},Or)}));function Ti(){return Rr.apply(this,arguments)}return Ti}()})},Na=function(){if(!Object(Re.e)($i))return;T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var Rr=Object(v.a)(i.a.mark(function Or(){var Kn,Pn;return i.a.wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:return tr.next=2,Object(K.L)({id:Zt==null?void 0:Zt.course_id});case 2:Kn=tr.sent,Kn.status===0&&(I.b.success(Kn.message),$i({type:"pathsDetail/getPathsDetail",payload:{id:Ft.pathId}}),((Pn=Zt.course_status)===null||Pn===void 0?void 0:Pn.status)===1&&Object(ve.O)("/classrooms/".concat(Zt==null?void 0:Zt.course_id,"/shixun_homework")));case 4:case"end":return tr.stop()}},Or)}));function Ti(){return Rr.apply(this,arguments)}return Ti}()})},zs=function(){var Rr;if((Rr=hn.detail)!==null&&Rr!==void 0&&Rr.need_authorize){Object(Re.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(Re.e)($i))return;$i({type:"pathsDetail/setActionTabs",payload:{key:"PathsDetail-SendToClass"}})},ds=function(){$i({type:"pathsDetail/getPathsDetail",payload:{id:Ft.pathId}}),$i({type:"pathsDetail/getRightData",payload:{id:Ft.pathId}})},Ho=!!((Xe=hn.detail)!==null&&Xe!==void 0&&Xe.participant_count)&&!((Oe=hn.detail)!==null&&Oe!==void 0&&Oe.allow_statistics),Ls=((at=hn.detail)===null||at===void 0||((tt=at.courses)===null||tt===void 0)?void 0:tt.findIndex(function(Yr){return(Yr==null?void 0:Yr.course_id)===(Zt==null?void 0:Zt.course_id)}))+1,Qo=Ls===((st=hn.detail)===null||st===void 0||((ot=st.courses)===null||ot===void 0)?void 0:ot.length);return e.a.createElement("section",null,e.a.createElement("aside",{className:X.a.banner,style:{backgroundImage:hn!=null&&(dt=hn.detail)!==null&&dt!==void 0&&(It=dt.attachments)!==null&&It!==void 0&&(Gt=It[0])!==null&&Gt!==void 0&&Gt.url?"url(".concat(ht.a.API_SERVER+(hn==null||((Dt=hn.detail)===null||Dt===void 0||((tn=Dt.attachments)===null||tn===void 0||((cn=tn[0])===null||cn===void 0)))?void 0:cn.url),")"):"url(".concat(ct.a,")"),marginBottom:(Bn=hn.detail)!==null&&Bn!==void 0&&(Yt=Bn.courses)!==null&&Yt!==void 0&&Yt.length?70:20}},e.a.createElement("aside",{className:X.a.wrp},e.a.createElement("div",{className:X.a.operationWrap},!!((en=hn.detail)!==null&&en!==void 0&&en.is_free)&&((bn=hn.detail)===null||bn===void 0?void 0:bn.publish_status)!==0&&(((Dn=hn.detail)===null||Dn===void 0?void 0:Dn.allow_add_member)||!Object(U.m)())&&e.a.createElement(h.a,{placement:"bottom",title:"\u4EE5\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u5F62\u5F0F\u53D1\u9001\u5230\u6211\u7684\u8BFE\u5802"},e.a.createElement("span",{onClick:zs,style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},e.a.createElement("img",{src:rt.a,style:{marginRight:"10px"}}),"\u53D1\u9001\u81F3")),((rn=hn.detail)===null||rn===void 0?void 0:rn.allow_statistics)&&((En=hn.detail)===null||En===void 0?void 0:En.public_status)===2&&e.a.createElement("span",{onClick:function(){return s.d.push("/paths/".concat(Ft.pathId,"/statistics"))},style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},e.a.createElement("img",{src:it.a,style:{marginRight:"10px"}}),"\u5B66\u4E60\u7EDF\u8BA1"),((Ln=hn.detail)===null||Ln===void 0?void 0:Ln.allow_add_member)&&e.a.createElement(_.a,{overlay:e.a.createElement(E.a,null,((Vn=hn.detail)===null||Vn===void 0?void 0:Vn.courses)&&(((an=hn.detail)===null||an===void 0?void 0:an.is_creator)&&!!((fn=Uo.userInfo)!==null&&fn!==void 0&&fn.professional_certification)||Object(U.o)())&&e.a.createElement(E.a.Item,{style:{textAlign:"center"},onClick:Ms},"\u5F00\u8BFE"),((An=hn.detail)===null||An===void 0?void 0:An.allow_statistics)&&e.a.createElement(E.a.Item,{style:{textAlign:"center"},onClick:function(){return s.d.push("/paths/".concat(Ft.pathId,"/edit"))}},"\u7F16\u8F91\u8BFE\u7A0B"),((wn=hn.detail)===null||wn===void 0?void 0:wn.allow_add_member)&&((er=hn.detail)===null||er===void 0?void 0:er.publish_status)===0&&e.a.createElement(E.a.Item,{style:{textAlign:"center"},onClick:ys},"\u53D1\u5E03\u8BFE\u7A0B"),((dn=hn.detail)===null||dn===void 0?void 0:dn.allow_statistics)&&((Fn=hn.detail)===null||Fn===void 0?void 0:Fn.publish_status)===2&&((Ir=hn.detail)===null||Ir===void 0?void 0:Ir.public_status)===0&&e.a.createElement(E.a.Item,{style:{textAlign:"center"},onClick:Ks},"\u64A4\u9500\u53D1\u5E03"),((dr=hn.detail)===null||dr===void 0?void 0:dr.allow_statistics)&&((Br=hn.detail)===null||Br===void 0?void 0:Br.publish_status)===2&&((sr=hn.detail)===null||sr===void 0?void 0:sr.public_status)===0&&e.a.createElement(E.a.Item,{style:{textAlign:"center"},onClick:Bs},"\u516C\u5F00\u8BFE\u7A0B"),((Nr=hn.detail)===null||Nr===void 0?void 0:Nr.allow_statistics)&&((Qn=hn.detail)===null||Qn===void 0?void 0:Qn.public_status)===1&&e.a.createElement(E.a.Item,{style:{textAlign:"center"},onClick:Ws},"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),Object(U.c)()&&((Fr=hn.detail)===null||Fr===void 0?void 0:Fr.allow_statistics)&&((ei=hn.detail)===null||ei===void 0?void 0:ei.public_status)===2&&e.a.createElement(E.a.Item,{style:{textAlign:"center"},onClick:Ws},"\u64A4\u9500\u516C\u5F00"),((Kr=hn.detail)===null||Kr===void 0?void 0:Kr.allow_delete)&&e.a.createElement(E.a.Item,{style:{textAlign:"center"},onClick:lr},"\u5220\u9664\u8BFE\u7A0B"))},e.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},e.a.createElement("img",{src:Ne.a,style:{marginRight:"10px"}}),"\u8BBE\u7F6E"))),e.a.createElement("p",{className:[X.a.titleWrap,((yr=hn.detail)===null||yr===void 0||((On=yr.name)===null||On===void 0)?void 0:On.indexOf(`
`))&&X.a.titleFlexEnd].join(" ")},e.a.createElement("span",{className:X.a.title},e.a.createElement("strong",null,(rr=hn.detail)===null||rr===void 0||((Pr=rr.name)===null||Pr===void 0)?void 0:Pr.split(`
`)[0]),e.a.createElement("span",{className:"font24"},e.a.createElement("br",null),(jn=hn.detail)===null||jn===void 0||(($n=jn.name)===null||$n===void 0)?void 0:$n.split(`
`).filter(function(Yr,Rr){return Rr!==0}).join(""))),e.a.createElement("div",null,((ir=hn.detail)===null||ir===void 0?void 0:ir.excellent)&&e.a.createElement(p.a,{className:"".concat(X.a.openCourseTag," font14"),style:{background:"#44D7B6",border:"1px solid #44D7B6"}},"\u5F00\u653E\u8BFE\u7A0B"),((Jn=hn.detail)===null||Jn===void 0?void 0:Jn.featured)>0&&e.a.createElement("div",null,((Wn=hn.detail)===null||Wn===void 0?void 0:Wn.featured)===1&&e.a.createElement(p.a,{className:"".concat(X.a.openCourseTag," font14"),style:{background:"#FF8C29",border:"1px solid #FF8C29"}},"\u56FD\u5BB6\u4E00\u6D41"),((pn=hn.detail)===null||pn===void 0?void 0:pn.featured)===2&&e.a.createElement(p.a,{className:"".concat(X.a.openCourseTag," font14"),style:{background:"#4361F2",border:"1px solid #4361F2"}},"\u519B\u961F\u4E00\u6D41"),((sn=hn.detail)===null||sn===void 0?void 0:sn.featured)===3&&e.a.createElement(p.a,{className:"".concat(X.a.openCourseTag," font14"),style:{background:"#B38D24",border:"1px solid #B38D24"}},"\u7701\u7EA7\u4E00\u6D41")),((zn=Uo.userInfo)===null||zn===void 0?void 0:zn.login)&&((Yn=hn.detail)===null||Yn===void 0?void 0:Yn.is_collect)&&e.a.createElement(c.a,{className:"".concat(X.a.button," ").concat(X.a.buttonTransparent," mr15"),onClick:fl},"\u53D6\u6D88\u6536\u85CF"),((_n=Uo.userInfo)===null||_n===void 0?void 0:_n.login)&&!((mr=hn.detail)!==null&&mr!==void 0&&mr.is_collect)&&e.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},onClick:Qs},e.a.createElement("img",{src:$e.a,style:{marginRight:"10px"}}),e.a.createElement("span",{style:{height:"24px"}},"\u6536\u85CF")),!Object(U.p)()&&e.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},className:"mr15",onClick:function(){if(!Object(Re.e)($i))return}},e.a.createElement("img",{src:$e.a,style:{marginRight:"10px"}}),e.a.createElement("span",{style:{height:"24px"}},"\u6536\u85CF")))),e.a.createElement("div",{className:X.a.contentWrap},e.a.createElement("div",{className:X.a.contentLeftWrap},!!((Qr=hn.detail)!==null&&Qr!==void 0&&Qr.stages_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u7AE0\u8282"),e.a.createElement("p",{className:"mt3"},(Vi=hn.detail)===null||Vi===void 0?void 0:Vi.stages_count)),!!((Ri=hn.detail)!==null&&Ri!==void 0&&Ri.shixuns_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u5355\u5143"),e.a.createElement("p",{className:"mt3"},(ri=hn.detail)===null||ri===void 0?void 0:ri.shixuns_count)),!!((ga=hn.detail)!==null&&ga!==void 0&&ga.challenge_choose_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u9009\u62E9\u9898\u5173\u5361"),e.a.createElement("p",{className:"mt3"},(na=hn.detail)===null||na===void 0?void 0:na.challenge_choose_count)),!!((Ki=hn.detail)!==null&&Ki!==void 0&&Ki.challenges_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u5B9E\u8DF5\u5173\u5361"),e.a.createElement("p",{className:"mt3"},(no=hn.detail)===null||no===void 0?void 0:no.challenges_count)),!!((ro=hn.detail)!==null&&ro!==void 0&&ro.videos_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u89C6\u9891"),e.a.createElement("p",{className:"mt3"},(Da=hn.detail)===null||Da===void 0?void 0:Da.videos_count)),!!((Io=hn.detail)!==null&&Io!==void 0&&Io.attachment_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u8BFE\u4EF6"),e.a.createElement("p",{className:"mt3"},(Mo=hn.detail)===null||Mo===void 0?void 0:Mo.attachment_count)),((io=hn.detail)===null||io===void 0?void 0:io.publish_status)!==0&&!!((Ia=hn.detail)!==null&&Ia!==void 0&&Ia.subject_score)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u7ECF\u9A8C\u503C"),e.a.createElement("p",{className:"mt3"},(ka=hn.detail)===null||ka===void 0?void 0:ka.subject_score)),((So=hn.detail)===null||So===void 0?void 0:So.publish_status)!==0&&!!((co=hn.detail)!==null&&co!==void 0&&co.member_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,(ho=hn.detail)!==null&&ho!==void 0&&ho.excellent?"\u53C2\u4E0E\u4EBA\u6570":"\u5B66\u4E60\u4EBA\u6570"),e.a.createElement("p",{className:"mt3"},(Qa=hn.detail)===null||Qa===void 0?void 0:Qa.member_count)),((Ma=hn.detail)===null||Ma===void 0?void 0:Ma.subject_score)>=0&&e.a.createElement("span",{className:"font14 c-white"},e.a.createElement("span",null,"\u8BC4\u5206"),e.a.createElement("br",null),e.a.createElement(l.a,{allowHalf:!0,value:Object(ve.A)((Va=hn.detail)===null||Va===void 0?void 0:Va.averge_star),disabled:!0,className:X.a.rating})))),!!((Ka=hn.detail)!==null&&Ka!==void 0&&(go=Ka.courses)!==null&&go!==void 0&&go.length)&&e.a.createElement("aside",{className:X.a.nav},e.a.createElement("div",{className:X.a.navLeft},Zt.course_identity<4&&e.a.createElement(h.a,{placement:"bottom",title:"\u7F16\u8F91\u8BFE\u5802"},e.a.createElement("a",{href:"/classrooms/".concat(Zt==null?void 0:Zt.course_id,"/newgolds/settings"),target:"_blank"},e.a.createElement("i",{className:"iconfont icon-bianji1 ".concat(X.a.navLeftIcon)}))),e.a.createElement(_.a,{overlay:e.a.createElement(E.a,null,(Fa=Object(o.a)((Xi=hn.detail)===null||Xi===void 0?void 0:Xi.courses))===null||Fa===void 0||((yo=Fa.reverse())===null||yo===void 0)?void 0:yo.map(function(Yr,Rr){var Ti,Or;return e.a.createElement(E.a.Item,{key:Yr.course_id,onClick:function(){return hl(Yr.course_id)}},e.a.createElement("span",{className:"font14"},"\u7B2C",((Ti=hn.detail)===null||Ti===void 0||((Or=Ti.courses)===null||Or===void 0)?void 0:Or.length)-Rr,"\u671F"))}))},e.a.createElement("div",null,e.a.createElement("span",{className:"font14 current"},"\u7B2C",e.a.createElement("span",{className:X.a.colorOrange},Ls),"\u671F"),e.a.createElement(k.a,null))),e.a.createElement("div",{className:X.a.navContent},e.a.createElement("div",{className:X.a.contentItem},e.a.createElement("div",{className:X.a.contentItemTitle},"\u5F00\u8BFE\u65F6\u95F4\uFF1A"),e.a.createElement("div",{className:X.a.contentItemText},Zt==null?void 0:Zt.start_date)),e.a.createElement("div",{className:X.a.verticalLine}),e.a.createElement("div",{className:X.a.contentItem},e.a.createElement("div",{className:X.a.contentItemTitle},"\u7ED3\u8BFE\u65F6\u95F4\uFF1A"),e.a.createElement("div",{className:X.a.contentItemText},Zt==null?void 0:Zt.end_date)),e.a.createElement("div",{className:X.a.verticalLine}),e.a.createElement("div",{className:X.a.contentItem},e.a.createElement("div",{className:X.a.contentItemTitle},(ao=hn.detail)!==null&&ao!==void 0&&ao.excellent?"\u53C2\u4E0E\u4EBA\u6570\uFF1A":"\u62A5\u540D\u4EBA\u6570\uFF1A"),e.a.createElement("div",{className:X.a.contentItemText},Zt==null?void 0:Zt.student_count," \u4EBA")))),e.a.createElement("div",{className:X.a.navRight,style:{display:"none"}},e.a.createElement("div",{className:X.a.flexRow},(Zt==null||((Lo=Zt.course_status)===null||Lo===void 0)?void 0:Lo.status)===1&&e.a.createElement("div",{className:"mr20 c-red-ee4"},Zt==null||((Wa=Zt.course_status)===null||Wa===void 0)?void 0:Wa.time),(Zt==null||((Ta=Zt.course_status)===null||Ta===void 0)?void 0:Ta.status)===2&&Zt.course_identity<6&&e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),((fo=Zt.course_status)===null||fo===void 0?void 0:fo.status)===2&&(Zt.course_identity<6?e.a.createElement("a",{className:X.a.classButton,href:"/classrooms/".concat(Zt==null||(($o=Zt.first_category_url)===null||$o===void 0||((qo=$o.split("/"))===null||qo===void 0))?void 0:qo[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"):e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),((Go=Zt.course_status)===null||Go===void 0?void 0:Go.status)===1&&Zt.course_identity>5&&e.a.createElement("div",{className:X.a.classButton,onClick:Na},"\u7ACB\u5373\u52A0\u5165"),((Xa=Zt.course_status)===null||Xa===void 0?void 0:Xa.status)===1&&Zt.course_identity===5&&e.a.createElement("a",{className:X.a.classButton,href:"/classrooms/".concat(Zt==null||((es=Zt.first_category_url)===null||es===void 0||((ya=es.split("/"))===null||ya===void 0))?void 0:ya[2],"/announcement"),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),((ki=Zt.course_status)===null||ki===void 0?void 0:ki.status)===0&&Zt.course_identity>5&&e.a.createElement("div",{className:X.a.classButton,onClick:Na},"\u7ACB\u5373\u62A5\u540D"),((la=Zt.course_status)===null||la===void 0?void 0:la.status)===0&&Zt.course_identity===5&&e.a.createElement("div",{className:X.a.classButton},"\u62A5\u540D\u6210\u529F"),((Zt==null||((ji=Zt.course_status)===null||ji===void 0)?void 0:ji.status)===0||(Zt==null||((Ya=Zt.course_status)===null||Ya===void 0)?void 0:Ya.status)===1)&&Zt.course_identity<5&&e.a.createElement("a",{className:X.a.classButton,href:"/classrooms/".concat(Zt==null||((bo=Zt.first_category_url)===null||bo===void 0||((La=bo.split("/"))===null||La===void 0))?void 0:La[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),Ho&&Qo&&((Vo=hn.detail)===null||Vo===void 0?void 0:Vo.has_participate)&&e.a.createElement("span",{className:"".concat(X.a.classButton," ").concat(X.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),Ho&&Qo&&!((Po=hn.detail)!==null&&Po!==void 0&&Po.has_participate)&&(vn?e.a.createElement("span",{className:"".concat(X.a.classButton," ").concat(X.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("span",{className:"".concat(X.a.classButton," ").concat(X.a.bg28e),onClick:Es},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D"))),e.a.createElement("div",{className:X.a.flexRow},Ho&&!!((Xo=hn.detail)!==null&&Xo!==void 0&&(Ba=Xo.courses)!==null&&Ba!==void 0&&Ba.length)&&Qo&&e.a.createElement("span",{className:"mt20"},e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(In=hn.detail)===null||In===void 0?void 0:In.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),e.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",e.a.createElement("span",{className:"mr5 c-red-ee4"},vn===!0?((Ja=hn.detail)===null||Ja===void 0?void 0:Ja.participant_count)+1:(vs=hn.detail)===null||vs===void 0?void 0:vs.participant_count),"\u4EBA")),Ho&&!((ts=hn.detail)!==null&&ts!==void 0&&(ci=ts.courses)!==null&&ci!==void 0&&ci.length)&&Qo&&e.a.createElement("span",null,!((Ur=hn.detail)!==null&&Ur!==void 0&&Ur.has_participate)&&(vn===!0?e.a.createElement("span",{className:"".concat(X.a.classButton," ").concat(X.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("a",{className:"".concat(X.a.classButton," ").concat(X.a.bg28e),onClick:Es},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((ua=hn.detail)===null||ua===void 0?void 0:ua.has_participate)&&e.a.createElement("span",{className:"".concat(X.a.classButton," ").concat(X.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(xi=hn.detail)===null||xi===void 0?void 0:xi.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),e.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",e.a.createElement("span",{className:"mr5 c-red-ee4"},vn===!0?((To=hn.detail)===null||To===void 0?void 0:To.participant_count)+1:(Za=hn.detail)===null||Za===void 0?void 0:Za.participant_count),"\u4EBA"))))))),e.a.createElement(Te,null),No.status&&e.a.createElement(He,{type:"subject",onCancel:function(){return Ao(!1)},onOk:function(Rr){Ao(!1),bs(Rr)}}),e.a.createElement(T.a,{visible:Yi,title:"\u8BFE\u7A0B\u63D0\u793A",width:593,maskClosable:!1,onCancel:function(){Aa(!1)},centered:!0,footer:e.a.createElement("div",null,e.a.createElement(c.a,{type:"primary",onClick:function(){Aa(!1)}},"\u6211\u77E5\u9053\u4E86"))},e.a.createElement(Ke.a,{style:{maxHeight:378,overflow:"auto"},value:hn==null||((Eo=hn.detail)===null||Eo===void 0||((oo=Eo.toast)===null||oo===void 0))?void 0:oo.content})))},vt=Object(s.a)(function(Ve){var Ye=Ve.pathsDetail,Je=Ve.user,Be=Ve.loading,Xe=Ve.globalSetting;return{pathsDetail:Ye,user:Je,globalSetting:Xe,loading:Be.models.index}})(yt),Mt=R("MXD1"),Tt=R("CFYs"),Rt=R("8Bcu"),kt=R.n(Rt),Ut=R("g9YV"),Bt=R("wCAj"),At=R("O3gP"),bt=R("lrIw"),je=R("RotF"),qe=R.n(je),Ot=R("oUNq"),Ct=R("lzim"),jt=R("55Ip"),Vt=function(Ye){var Je=Ye.pathsDetail,Be=Ye.loading,Xe=Ye.dispatch,Oe=Ye.onReloadData,at=Oe===void 0?function(){}:Oe,tt=Object(a.i)(),st=Object(n.useState)([]),ot=Object(b.a)(st,2),dt=ot[0],It=ot[1],Gt=Object(n.useState)(!0),Dt=Object(b.a)(Gt,2),tn=Dt[0],cn=Dt[1],Bn=Object(n.useState)(!1),Yt=Object(b.a)(Bn,2),en=Yt[0],bn=Yt[1],Dn=te.a.useForm(),rn=Object(b.a)(Dn,1),En=rn[0],Ln=Object(n.useState)([]),Vn=Object(b.a)(Ln,2),an=Vn[0],fn=Vn[1],An=Object(n.useState)(1),wn=Object(b.a)(An,2),er=wn[0],dn=wn[1],Fn=Object(n.useState)([]),Ir=Object(b.a)(Fn,2),dr=Ir[0],Br=Ir[1],sr=Object(n.useState)(!0),Nr=Object(b.a)(sr,2),Qn=Nr[0],Fr=Nr[1],ei=Object(n.useState)(!1),Kr=Object(b.a)(ei,2),yr=Kr[0],On=Kr[1];Object(n.useEffect)(function(){Je.actionTabs.key==="Collaborators-AddCollaborator"&&(Fr(!0),cn(!0),rr())},[Je.actionTabs.key]);var rr=function(){var pn=Object(v.a)(i.a.mark(function sn(){var zn;return i.a.wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:return _n.next=2,Xe({type:"classroomList/getSchoolList",payload:{}});case 2:zn=_n.sent,It(zn.map(function(mr){return{value:mr}}));case 4:case"end":return _n.stop()}},sn)}));return function(){return pn.apply(this,arguments)}}(),Pr=function(){var sn,zn;if(!((sn=En.getFieldValue())!==null&&sn!==void 0&&(zn=sn.keyword)!==null&&zn!==void 0&&zn.trim())){I.b.warn("\u8BF7\u8F93\u5165\u59D3\u540D"),fn([]);return}Fr(!1),cn(!0),bn(!1),dn(1),Br([]),$n(!0)},jn=function(sn){sn=String(sn);var zn=dr.indexOf(sn);zn<0?dr.push(sn):dr.splice(zn,1),Br(Object(o.a)(dr))},$n=function(){var pn=Object(v.a)(i.a.mark(function sn(){var zn,Yn,_n,mr,Qr,Vi=arguments;return i.a.wrap(function(ri){for(;;)switch(ri.prev=ri.next){case 0:if(zn=Vi.length>0&&Vi[0]!==void 0?Vi[0]:!1,!(tn&&!en||zn)){ri.next=11;break}return mr=En.getFieldValue(),bn(!0),dn(zn?1:er+1),ri.next=7,Object(Ot.vb)({page:zn?1:er+1,container_id:tt.pathId,container_type:3,school_name:(mr==null?void 0:mr.school_name)||null,keyword:(mr==null||((Yn=mr.keyword)===null||Yn===void 0)?void 0:Yn.trim())||null});case 7:Qr=ri.sent,fn(zn?Object(o.a)(Qr.users):[].concat(Object(o.a)(an),Object(o.a)(Qr.users))),bn(!1),((_n=Qr.users)===null||_n===void 0?void 0:_n.length)<10&&cn(!1);case 11:case"end":return ri.stop()}},sn)}));return function(){return pn.apply(this,arguments)}}(),ir=function(){var pn=Object(v.a)(i.a.mark(function sn(){var zn;return i.a.wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:if(dr!=null&&dr.length){_n.next=4;break}I.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"),_n.next=10;break;case 4:return On(!0),_n.next=7,Object(K.e)({id:tt.pathId,user_ids:dr});case 7:zn=_n.sent,On(!1),zn&&(I.b.success("\u6DFB\u52A0\u6210\u529F"),Jn(),at&&at());case 10:case"end":return _n.stop()}},sn)}));return function(){return pn.apply(this,arguments)}}(),Jn=function(){En.setFieldsValue({keyword:""}),Xe({type:"pathsDetail/setActionTabs",payload:{}})},Wn=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(sn,zn){return e.a.createElement(J.a,{value:zn.numid,checked:dr.includes(String(zn.numid)),disabled:!!sn})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(sn,zn){return e.a.createElement(h.a,{placement:"bottom",title:sn},e.a.createElement(jt.a,{className:"bold c-black",to:"/users/".concat(zn.login),target:"_blank"},sn||"--"))}},{title:"\u624B\u673A\u53F7",width:100,dataIndex:"phone",ellipsis:!0,render:function(sn){return e.a.createElement(h.a,{placement:"bottom",title:sn},e.a.createElement("span",null,sn||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(sn){return e.a.createElement(h.a,{placement:"bottom",title:sn},e.a.createElement("span",null,sn||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(sn){return e.a.createElement(h.a,{placement:"bottom",title:sn},e.a.createElement("span",null,sn||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(sn){return e.a.createElement(h.a,{placement:"bottom",title:sn},e.a.createElement("span",null,sn||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(sn){return e.a.createElement(h.a,{placement:"bottom",title:sn},e.a.createElement("span",null,sn||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(sn){return sn?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(sn){return e.a.createElement(h.a,{placement:"bottom",title:sn&&ge()(sn).format("YYYY-MM-DD HH:mm")},e.a.createElement("span",null,sn&&ge()(sn).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(sn){if(sn===1)return e.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];return e.a.createElement(T.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Je.actionTabs.key==="Collaborators-AddCollaborator",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,centered:!0,keyboard:!1,maskClosable:!1,bodyStyle:{minHeight:200},confirmLoading:yr,onOk:ir,onCancel:Jn},e.a.createElement(te.a,{layout:"inline",form:En,initialValues:{school_name:"",keyword:""},className:"mt10",onFinish:Pr},e.a.createElement(te.a.Item,{name:"keyword",label:"\u59D3\u540D\uFF1A"},e.a.createElement(re.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D"})),e.a.createElement(te.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},e.a.createElement(bt.a,{allowClear:!0,defaultOpen:!1,options:dt,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",filterOption:function(sn,zn){return zn.value.toUpperCase().indexOf(sn.toUpperCase())!==-1}})),e.a.createElement(te.a.Item,null,e.a.createElement(c.a,{htmlType:"submit",type:"primary",size:"large"},"\u641C\u7D22"))),Qn&&e.a.createElement("div",{className:"tc font16 c-light-black mt40"},e.a.createElement("img",{src:Ct.A,width:"100",alt:""}),e.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!Qn&&e.a.createElement("section",null,e.a.createElement("div",{className:"flexd-table-header mt20"},e.a.createElement(Bt.a,{pagination:!1,dataSource:[],columns:Wn})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(qe.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(sn){$n()},hasMore:tn,useWindow:!1},e.a.createElement(Bt.a,{loading:en,showHeader:!1,pagination:!1,dataSource:an,columns:Wn,onRow:function(sn){return{onClick:function(Yn){Yn.currentTarget.querySelector("input").disabled||jn(Yn.currentTarget.querySelector("input").value)}}}})))))},Et=Object(s.a)(function(Ve){var Ye=Ve.pathsDetail,Je=Ve.loading;return{pathsDetail:Ye,loading:Je}})(Vt),Lt=function(Ye){var Je=Ye.pathsDetail,Be=Ye.loading,Xe=Ye.dispatch,Oe=Ye.data,at=Ye.onReloadData,tt=at===void 0?function(){}:at,st=Object(a.i)(),ot=Object(n.useState)(!0),dt=Object(b.a)(ot,2),It=dt[0],Gt=dt[1],Dt=Object(n.useState)(!1),tn=Object(b.a)(Dt,2),cn=tn[0],Bn=tn[1],Yt=te.a.useForm(),en=Object(b.a)(Yt,1),bn=en[0],Dn=Object(n.useState)([]),rn=Object(b.a)(Dn,2),En=rn[0],Ln=rn[1],Vn=Object(n.useState)(1),an=Object(b.a)(Vn,2),fn=an[0],An=an[1],wn=Object(n.useState)([]),er=Object(b.a)(wn,2),dn=er[0],Fn=er[1],Ir=Object(n.useState)(!0),dr=Object(b.a)(Ir,2),Br=dr[0],sr=dr[1],Nr=Object(n.useState)(!1),Qn=Object(b.a)(Nr,2),Fr=Qn[0],ei=Qn[1];Object(n.useEffect)(function(){Je.actionTabs.key==="Collaborators-AddCourses"&&(sr(!0),Gt(!0),Kr())},[Je.actionTabs.key]);var Kr=function(){var ir=Object(v.a)(i.a.mark(function Jn(){var Wn;return i.a.wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:return sn.next=2,Xe({type:"classroomList/getSchoolList",payload:{}});case 2:Wn=sn.sent;case 3:case"end":return sn.stop()}},Jn)}));return function(){return ir.apply(this,arguments)}}(),yr=function(){sr(!1),Gt(!0),Bn(!1),An(1),Fn([]),rr(!0)},On=function(Jn){Jn=String(Jn);var Wn=dn.indexOf(Jn);Wn<0?dn.push(Jn):dn.splice(Wn,1),Fn(Object(o.a)(dn))},rr=function(){var ir=Object(v.a)(i.a.mark(function Jn(){var Wn,pn,sn,zn,Yn,_n=arguments;return i.a.wrap(function(Qr){for(;;)switch(Qr.prev=Qr.next){case 0:if(Wn=_n.length>0&&_n[0]!==void 0?_n[0]:!1,!(It&&!cn||Wn)){Qr.next=11;break}return zn=bn.getFieldValue(),Bn(!0),An(Wn?1:fn+1),Qr.next=7,Object(Ot.ub)({page:Wn?1:fn+1,container_id:st.pathId,container_type:3,manager_name:(zn==null?void 0:zn.manager_name)||null,course_name:(zn==null||((pn=zn.course_name)===null||pn===void 0)?void 0:pn.trim())||null});case 7:Yn=Qr.sent,Ln(Wn?Object(o.a)(Yn.courses):[].concat(Object(o.a)(En),Object(o.a)(Yn.courses))),Bn(!1),((sn=Yn.courses)===null||sn===void 0?void 0:sn.length)<10&&Gt(!1);case 11:case"end":return Qr.stop()}},Jn)}));return function(){return ir.apply(this,arguments)}}(),Pr=function(){var ir=Object(v.a)(i.a.mark(function Jn(){var Wn,pn,sn,zn;return i.a.wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:if(dn!=null&&dn.length){_n.next=4;break}I.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u8BFE\u5802"),_n.next=19;break;case 4:if(!(Je.actionTabs.type!=1)){_n.next=10;break}if(!((Je==null||((Wn=Je.Courses)===null||Wn===void 0||((pn=Wn.spoc_courses)===null||pn===void 0))?void 0:pn.length)+(dn==null?void 0:dn.length)>3)){_n.next=8;break}return I.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2Aspoc\u8BFE\u5802"),_n.abrupt("return");case 8:_n.next=13;break;case 10:if(!((Oe==null||((sn=Oe.spoc_courses)===null||sn===void 0)?void 0:sn.length)+(dn==null?void 0:dn.length)>3)){_n.next=13;break}return I.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2A\u5386\u53F2\u8BFE\u5802"),_n.abrupt("return");case 13:return ei(!0),_n.next=16,Object(K.b)({id:st.pathId,course_ids:dn,course_type:Je.actionTabs.type});case 16:zn=_n.sent,ei(!1),zn&&(I.b.success("\u6DFB\u52A0\u6210\u529F"),jn(),tt&&tt());case 19:case"end":return _n.stop()}},Jn)}));return function(){return ir.apply(this,arguments)}}(),jn=function(){bn.setFieldsValue({course_name:"",manager_name:""}),Fn([]),Xe({type:"pathsDetail/setActionTabs",payload:{}})},$n=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(Jn,Wn){return e.a.createElement(J.a,{value:Wn.id,checked:dn.includes(String(Wn.id)),disabled:!!Jn})}},{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name",width:100,ellipsis:!0,render:function(Jn){return e.a.createElement(h.a,{placement:"bottom",title:Jn},e.a.createElement("span",null,Jn||"--"))}},{title:"\u7BA1\u7406\u8005",width:100,dataIndex:"managers",ellipsis:!0,render:function(Jn){return e.a.createElement(h.a,{placement:"bottom",title:Jn},e.a.createElement("span",null,Jn||"--"))}},{title:"\u8BFE\u5802\u6240\u5728\u5B66\u6821",width:150,dataIndex:"school_name",ellipsis:!0,render:function(Jn){return e.a.createElement(h.a,{placement:"bottom",title:Jn},e.a.createElement("span",null,Jn||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",width:140,ellipsis:!0,render:function(Jn){return e.a.createElement(h.a,{placement:"bottom",title:Jn},e.a.createElement("span",null,Jn))}},{title:"\u6210\u5458\u6570\u91CF",dataIndex:"course_members_count",width:80,render:function(Jn){return e.a.createElement(h.a,{placement:"bottom",title:Jn},e.a.createElement("span",null,Jn||"--"))}}];return e.a.createElement(T.a,{title:"\u6DFB\u52A0\u8BFE\u5802",visible:Je.actionTabs.key==="Collaborators-AddCourses",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,centered:!0,keyboard:!1,maskClosable:!1,bodyStyle:{minHeight:200},confirmLoading:Fr,onOk:Pr,onCancel:jn},e.a.createElement(te.a,{layout:"inline",form:bn,initialValues:{course_name:"",manager_name:""},className:"mt10",onFinish:yr},e.a.createElement(te.a.Item,{name:"course_name",label:"\u8BFE\u5802\u540D\u79F0"},e.a.createElement(re.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0"})),e.a.createElement(te.a.Item,{name:"manager_name",label:"\u8BFE\u5802\u7BA1\u7406\u8005"},e.a.createElement(re.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u7BA1\u7406\u8005\u540D\u79F0"})),e.a.createElement(te.a.Item,null,e.a.createElement(c.a,{htmlType:"submit",type:"primary",size:"large"},"\u641C\u7D22"))),Br&&e.a.createElement("div",{className:"tc font16 c-light-black mt40"},e.a.createElement("img",{src:Ct.A,width:"100",alt:""}),e.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!Br&&e.a.createElement("section",null,e.a.createElement("div",{className:"flexd-table-header mt20"},e.a.createElement(Bt.a,{pagination:!1,dataSource:[],columns:$n})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(qe.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(Jn){rr()},hasMore:It,useWindow:!1},e.a.createElement(Bt.a,{loading:cn,showHeader:!1,pagination:!1,dataSource:En,columns:$n,onRow:function(Jn){return{onClick:function(pn){pn.currentTarget.querySelector("input").disabled||On(pn.currentTarget.querySelector("input").value)}}}})))))},Ht=Object(s.a)(function(Ve){var Ye=Ve.pathsDetail,Je=Ve.loading;return{pathsDetail:Ye,loading:Je}})(Lt),un=R("2BaD"),gn=R("1n7x"),Ar=R.n(gn),wr=R("y1J/"),cr=R.n(wr),Rn=R("A2z3"),Jr=R.n(Rn),si=R("Ye+n"),li=R.n(si),kr=function(Ye){var Je=Ye.visible,Be=Ye.onOk,Xe=Be===void 0?function(){}:Be,Oe=Ye.onCancel,at=Oe===void 0?function(){}:Oe,tt=Ye.data,st=tt===void 0?{}:tt,ot=Object(n.useRef)();Object(n.useEffect)(function(){return Je?document.body.setAttribute("class",li.a.bodyHeight):document.body.removeAttribute("class"),function(){document.body.removeAttribute("class")}},[Je]);var dt={"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},It=function(){var Gt=Object(v.a)(i.a.mark(function Dt(){var tn,cn,Bn;return i.a.wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return document.body.scrollIntoView(),tn={margin:[0,0,0,0],filename:"11.pdf",enableLinks:!1,html2canvas:{scale:5,allowTaint:!1,useCORS:!0},jsPDF:{format:[1412,1e3],orientation:"landscape",unit:"px"},image:{type:"jpeg",quality:1}},cn=Ar()().set(tn).from(ot.current).toPdf(),en.next=5,cn.get("pdf");case 5:return cn=en.sent,en.next=8,cn.output("bloburl");case 8:Bn=en.sent,Object(ve.v)("".concat(st.school_name,"-").concat(st.user_name,".pdf"),Bn);case 10:case"end":return en.stop()}},Dt)}));return function(){return Gt.apply(this,arguments)}}();return e.a.createElement(T.a,{visible:Je,title:null,footer:e.a.createElement("div",null,e.a.createElement(c.a,{type:"primary",onClick:It},"\u4E0B\u8F7D\u8BC1\u4E66")),style:{background:"transparen",height:"740px"},centered:!0,width:1052,className:li.a.advertisementModal,maskClosable:!1,closeIcon:e.a.createElement(un.a,{onClick:at,style:{fontSize:"25px",color:"#fff",marginLeft:"100px"}})},e.a.createElement("div",{ref:ot},e.a.createElement("div",{style:{backgroundImage:"url(".concat(Jr.a,")"),height:"740px",width:"1052px",padding:"1px 100px"}},e.a.createElement("div",{style:{color:"#EB5E00",fontSize:"36px",marginTop:"239px",width:"100%",textAlign:"center"}},st==null?void 0:st.school_name," ",st==null?void 0:st.user_name),e.a.createElement("div",{style:{color:"#0D3580",fontSize:"24px",marginTop:"30px",width:"100%",textAlign:"center"}},"\u4E8E",ge()(st==null?void 0:st.created_at).format("YYYY\u5E74MM\u6708DD\u65E5"),"\u5B8C\u6210\u4E86EduCoder\u5E73\u53F0\u300A",st==null?void 0:st.subject_name,"\u300B\u8BFE\u7A0B\u5B66\u4E60\u3002"),e.a.createElement("div",{style:{color:"#0D3580",fontSize:"30px",marginTop:"50px",width:"100%",textAlign:"center",fontWeight:900}},"\u7279\u6B64\u8BC1\u660E"),e.a.createElement("div",{style:{color:"#0D3580",fontSize:"14px",marginTop:"30px",width:"100%",textAlign:"center"}},"On ",dt[ge()(st==null?void 0:st.created_at).format("M")]," ",ge()(st==null?void 0:st.created_at).format("DD"),"\uFF0C",ge()(st==null?void 0:st.created_at).format("YYYY"),"\uFF0C completed the \u300A",st==null?void 0:st.subject_name_en,"\u300B course on EduCoder."),e.a.createElement("img",{src:cr.a,style:{position:"absolute",left:"820px",bottom:"130px"}}),e.a.createElement("div",{style:{color:"#0D3580",fontSize:"12px",width:"100%",display:"flex",paddingRight:"200px",position:"absolute",bottom:"150px"}},e.a.createElement("span",null,"\u8BC1\u4E66\u7F16\u53F7\uFF1A",st==null?void 0:st.code),e.a.createElement("span",{style:{marginLeft:"560px"}},"\u5728\u7EBF\u7F16\u7A0B\u5B66\u9662")))))},hi=kr,Ui=R("YJCA"),Zi=R("wYyv"),Le=R.n(Zi),Fe=R("WPnJ"),nt=R.n(Fe),xt=Object(Ui.b)(function(Ve){var Ye,Je,Be,Xe,Oe,at,tt,st,ot,dt=Ve.item,It=Ve.toIndex,Gt=Ve.params,Dt=Ve.isShow,tn=Ve.setShow,cn=Ve.dispatch,Bn=Ve.classroomList,Yt=Ve.handleDeleteMember,en=Ve.pathsDetail;return e.a.createElement("span",{style:{display:"inline-block",width:"33%",padding:"5px",background:"#fff",marginTop:"10px"}},e.a.createElement("div",{className:nt.a.directionItemWrap},e.a.createElement(h.a,{color:"#ffffff",placement:"bottom",title:e.a.createElement("div",{className:nt.a.teamHeight},e.a.createElement("span",{title:dt==null?void 0:dt.name,style:{fontSize:"14px",color:"#333333",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"80px",overflow:"hidden"}},(dt==null||((Ye=dt.name)===null||Ye===void 0)?void 0:Ye.length)>6?(dt==null||((Je=dt.name)===null||Je===void 0)?void 0:Je.substr(0,6))+"...":(dt==null?void 0:dt.name)||"--"),e.a.createElement("span",{style:{marginLeft:"10px",color:"#999999",fontSize:"12px"}},(dt==null||((Be=dt.school)===null||Be===void 0)?void 0:Be.length)>9?(dt==null||((Xe=dt.school)===null||Xe===void 0)?void 0:Xe.substr(0,9))+"...":dt==null?void 0:dt.school),e.a.createElement("div",{style:{height:"1px",width:"100%",border:"1px solid #f5f5f5",marginTop:"3px",marginBottom:"3px"}}),!(dt!=null&&dt.brief_introduction)&&e.a.createElement("div",{style:{textAlign:"center",marginTop:"20px"}},"\u6682\u65E0\u7B80\u4ECB"),(dt==null?void 0:dt.brief_introduction)&&e.a.createElement("div",{className:nt.a.divHeight},dt==null?void 0:dt.brief_introduction))},e.a.createElement("img",{draggable:!1,className:nt.a.imgradius,onClick:function(){Object(U.p)()?s.d.push("".concat(dt.user_url)):cn({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})},src:ht.a.API_SERVER+"/images/"+(dt==null?void 0:dt.image_url)}),e.a.createElement("div",null,(dt==null||((Oe=dt.name)===null||Oe===void 0)?void 0:Oe.length)>6?(dt==null||((at=dt.name)===null||at===void 0)?void 0:at.substr(0,6))+"...":(dt==null?void 0:dt.name)||"--",e.a.createElement("br",null),e.a.createElement("span",{style:{color:"#999999"}},(dt==null||((tt=dt.school)===null||tt===void 0)?void 0:tt.length)>6?(dt==null||((st=dt.school)===null||st===void 0)?void 0:st.substr(0,6))+"...":(dt==null?void 0:dt.school)||"--"))),e.a.createElement("br",null),e.a.createElement("span",{className:nt.a.groupActionWrap},e.a.createElement("i",{style:{display:!((ot=en.detail)!==null&&ot!==void 0&&ot.allow_add_member)&&"none"},className:"iconfont icon-shanchu5 mr1 c-red font15 current",onClick:function(Dn){Dn.stopPropagation(),Yt(dt.id)}}))))}),Wt=Object(Ui.a)(function(Ve){var Ye=Ve.isShow,Je=Ve.setShow,Be=Ve.pathsDetail,Xe=Ve.items,Oe=Ve.params,at=Ve.dispatch,tt=Ve.classroomList,st=Ve.handleDeleteMember;return e.a.createElement("div",{className:"task-list-container"},Xe==null?void 0:Xe.map(function(ot,dt){return e.a.createElement(xt,{key:"".concat(ot.id),isShow:Ye,setShow:Je,dispatch:at,pathsDetail:Be,handleDeleteMember:st,classroomList:tt,toIndex:dt+1,params:Oe,index:dt,item:ot})}))}),Xt=function(Ye){var Je=Ye.data,Be=Ye.classroomList,Xe=Ye.pathsDetail,Oe=Ye.operation,at=Ye.callback,tt=Ye.handleDeleteMember,st=Ye.onCancel,ot=Ye.dispatch,dt=Ye.visible,It=dt===void 0?!1:dt,Gt=Object(n.useState)(Je),Dt=Object(b.a)(Gt,2),tn=Dt[0],cn=Dt[1],Bn=Object(a.i)(),Yt=Object(n.useState)(),en=Object(b.a)(Yt,2),bn=en[0],Dn=en[1],rn=Object(n.useState)(!0),En=Object(b.a)(rn,2),Ln=En[0],Vn=En[1];function an(wn){var er=wn.newIndex,dn=wn.oldIndex;if(!Oe)return;fn(Le()(tn,dn,er).map(function(Fn){return Fn==null?void 0:Fn.id})),cn(Le()(tn,dn,er))}Object(n.useEffect)(function(){cn(Je)},[JSON.stringify(Je)]);function fn(wn){return An.apply(this,arguments)}function An(){return An=Object(v.a)(i.a.mark(function wn(er){var dn;return i.a.wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:return Ir.next=2,Object(ce.a)("/api/paths/".concat(Bn==null?void 0:Bn.pathId,"/move_subject_members.json"),{method:"post",body:{user_ids:er}});case 2:dn=Ir.sent;case 3:case"end":return Ir.stop()}},wn)})),An.apply(this,arguments)}return e.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},e.a.createElement(Wt,{axis:"xy",helperClass:"dragging-li",isShow:Ln,setShow:Vn,distance:2,dispatch:ot,pathsDetail:Xe,handleDeleteMember:tt,classroomList:Be,params:Bn,items:tn,onSortEnd:an}))},pe=Object(s.a)(function(Ve){var Ye=Ve.classroomList,Je=Ve.pathsDetail;return{classroomList:Ye,pathsDetail:Je}})(Xt),z=R("lseA"),Z=R.n(z),ye=[2,5,8,11,14],xe=Object(Ui.b)(function(Ve){var Ye,Je,Be,Xe,Oe=Ve.item,at=Ve.toIndex,tt=Ve.params,st=Ve.dispatch,ot=Ve.classroomList,dt=Ve.handleDeleteMember,It=Ve.pathsDetail;return e.a.createElement("span",{onClick:function(){window.open(Oe==null?void 0:Oe.first_category_url)},style:{display:"inline-block",padding:"10px 20px",width:"100%",background:"#fff",marginTop:"5px"}},e.a.createElement("div",{className:Z.a.directionItemWrap},e.a.createElement("img",{className:Z.a.imgradius,src:ht.a.API_SERVER+(Oe==null?void 0:Oe.default_image)}),e.a.createElement("span",{className:Z.a.groupActionWrap},e.a.createElement(h.a,{title:Oe.name},e.a.createElement("span",{style:{fontSize:"18px",color:"#ffffff"}},((Ye=Oe.name)===null||Ye===void 0?void 0:Ye.length)>7?e.a.createElement("span",null,(Je=Oe.name)===null||Je===void 0?void 0:Je.substring(0,7),e.a.createElement("br",null)," ",(Be=Oe.name)===null||Be===void 0?void 0:Be.substring(7,14),(Oe==null?void 0:Oe.name.length)>14&&"..."):Oe.name)))),e.a.createElement("div",{className:Z.a.bottomdiv},e.a.createElement(h.a,{title:"\u8BBF\u95EE\u6570\uFF1A".concat(Oe==null?void 0:Oe.visits),placement:"bottom"},e.a.createElement("span",null,e.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-chakan ml3 font15 current"}),e.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}},Oe==null?void 0:Oe.visits))),e.a.createElement(h.a,{title:"\u8BFE\u5802\u6210\u5458\u6570\uFF1A".concat(Oe==null?void 0:Oe.course_members_count),placement:"bottom"},e.a.createElement("span",null,e.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-ren ml3 font15 current"}),e.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}}," ",Oe==null?void 0:Oe.course_members_count))),e.a.createElement(h.a,{overlayStyle:{maxWidth:380},title:e.a.createElement("div",{style:{whiteSpace:"nowrap"}},"\u8BFE\u5802\u7684\u4EFB\u52A1\u6570(\u4F5C\u4E1A\u6570\uFF0B\u8BD5\u5377\u6570\uFF0B\u95EE\u5377\u6570)\uFF1A",Oe==null?void 0:Oe.tasks_count),placement:"bottom"},e.a.createElement("span",null,e.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-wenjian2 ml3 font15 current"}),e.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}}," ",Oe==null?void 0:Oe.tasks_count))),e.a.createElement(h.a,{title:"\u5220\u9664",placement:"bottom"},e.a.createElement("span",null,e.a.createElement("i",{style:{color:"#bbbbbb",display:!(It!=null&&(Xe=It.detail)!==null&&Xe!==void 0&&Xe.allow_add_member)&&"none"},className:"iconfont icon-lajitong1 mr3 font15 current",onClick:function(Dt){Dt.stopPropagation(),dt(Oe.id)}})))))}),Ce=Object(Ui.a)(function(Ve){var Ye=Ve.items,Je=Ve.params,Be=Ve.dispatch,Xe=Ve.classroomList,Oe=Ve.handleDeleteMember,at=Ve.pathsDetail;return e.a.createElement("div",{className:"task-list-container"},Ye==null?void 0:Ye.map(function(tt,st){return e.a.createElement(xe,{key:"".concat(tt.id),dispatch:Be,pathsDetail:at,handleDeleteMember:Oe,classroomList:Xe,toIndex:st+1,params:Je,index:st,item:tt})}))}),ft=function(Ye){var Je=Ye.data,Be=Ye.classroomList,Xe=Ye.pathsDetail,Oe=Ye.callback,at=Ye.handleDeleteMember,tt=Ye.onCancel,st=Ye.dispatch,ot=Ye.visible,dt=ot===void 0?!1:ot,It=Object(n.useState)(Je),Gt=Object(b.a)(It,2),Dt=Gt[0],tn=Gt[1],cn=Object(a.i)(),Bn=Object(n.useState)(),Yt=Object(b.a)(Bn,2),en=Yt[0],bn=Yt[1];function Dn(Ln){var Vn=Ln.newIndex,an=Ln.oldIndex;rn(Le()(Dt,an,Vn).map(function(fn){return fn==null?void 0:fn.id})),tn(Le()(Dt,an,Vn))}Object(n.useEffect)(function(){tn(Je)},[JSON.stringify(Je)]);function rn(Ln){return En.apply(this,arguments)}function En(){return En=Object(v.a)(i.a.mark(function Ln(Vn){var an;return i.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return An.next=2,Object(ce.a)("/api/paths/".concat(cn==null?void 0:cn.pathId,"/spoc_courses/move_position.json"),{method:"post",body:{ids:Vn}});case 2:an=An.sent;case 3:case"end":return An.stop()}},Ln)})),En.apply(this,arguments)}return e.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},e.a.createElement(Ce,{axis:"y",helperClass:"dragging-li",pathsDetail:Xe,distance:2,dispatch:st,handleDeleteMember:at,classroomList:Be,params:cn,items:Dt,onSortEnd:Dn}))},zt=Object(s.a)(function(Ve){var Ye=Ve.classroomList,Je=Ve.pathsDetail;return{classroomList:Ye,pathsDetail:Je}})(ft),ln=R("V0Rq"),mn=R("HBuW"),Jt=R("W6us"),Zn=R.n(Jt),Un=R("CnIC"),nr=R.n(Un),Sr=R("LZjx"),ii=R.n(Sr),Dr=R("dhSg"),ti=R("cVA7"),Tr=R.n(ti),vi=R("h6EL");function fi(Ve){var Ye=function(at,tt){if(at.localName===tt)return at;for(var st=0,ot=at;ot=ot.parentNode;st++){if(ot.localName===tt)return ot;if(ot==document.documentElement)return!1}},Je=Ve.target,Be=Ye(Je,"a");if(console.log([Be],Be==null?void 0:Be.href,44),Be!=null&&Be.href)return;if(Je.tagName.toUpperCase()==="IMG"){var Xe=Je.src||Je.getAttribute("src");Xe&&Xe.indexOf("/images/avatars/User")===-1&&(Ve.stopPropagation(),Ve.preventDefault(),Dr.a.publish("preview-image",Xe))}}var Oi=function(Ye){var Je,Be,Xe,Oe,at,tt,st,ot,dt,It,Gt,Dt,tn,cn,Bn,Yt,en,bn,Dn,rn,En,Ln,Vn,an,fn,An,wn,er,dn,Fn,Ir,dr,Br,sr,Nr,Qn,Fr,ei,Kr,yr,On,rr,Pr,jn,$n,ir,Jn,Wn,pn,sn,zn,Yn,_n,mr,Qr,Vi,Ri,ri,ga,na,Ki,no,ro,Da,Io,Mo,io,Ia,ka,So,co,ho,Qa,Ma,Va,Ka,go,Fa,yo,Xi,ao,Lo,Wa,Ta,fo,$o,qo,Go,Xa,es,ya,ki,la,ji,Ya,bo,La,Vo,Po,Xo,Ba,In=Ye.pathsDetail,Ja=Ye.user,vs=Ye.globalSetting,ts=Ye.loading,ci=Ye.classroomList,Ur=Ye.dispatch,ua=Object(C.a)(Ye,["pathsDetail","user","globalSetting","loading","classroomList","dispatch"]),xi=Object(a.i)(),To=Object(n.useState)(!0),Za=Object(b.a)(To,2),Eo=Za[0],oo=Za[1],hn=Object(n.useState)(!1),Uo=Object(b.a)(hn,2),Ss=Uo[0],gs=Uo[1],$i=Object(n.useState)(),Sn=Object(b.a)($i,2),Ft=Sn[0],$t=Sn[1],Cn=Object(n.useState)(),Zt=Object(b.a)(Cn,2),qn=Zt[0],or=Zt[1],fr=Object(n.useState)({}),$r=Object(b.a)(fr,2),vn=$r[0],ra=$r[1],Pa=Object(n.useState)(),Li=Object(b.a)(Pa,2),di=Li[0],Oa=Li[1],$a=Object(n.useRef)(),qi=Object(n.useState)(!1),Yi=Object(b.a)(qi,2),Aa=Yi[0],ko=Yi[1],Fo=Object(n.useState)({}),No=Object(b.a)(Fo,2),jo=No[0],Ts=No[1];Object(n.useEffect)(function(){if($a.current)return $a.current.addEventListener("mousedown",fi),function(){$a.current.removeEventListener("mousedown",fi)}},[$a.current]);var hl=function(){var Kn=Object(v.a)(i.a.mark(function Pn(){var xn;return i.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:if(qn!=null&&qn.trim()){Tn.next=3;break}return I.b.warn("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Tn.abrupt("return");case 3:return Tn.next=5,Object(K.V)({id:xi.pathId,team_title:qn.trim()});case 5:xn=Tn.sent,$t(!Ft),(xn==null?void 0:xn.status)===0&&(or(null),I.b.success(xn.message),Ur({type:"pathsDetail/getRightData",payload:{id:xi.pathId}}));case 8:case"end":return Tn.stop()}},Pn)}));return function(){return Kn.apply(this,arguments)}}();Object(n.useEffect)(function(){Ur({type:"pathsDetail/getCoureses",payload:{id:xi.pathId}}),fl()},[]);function fl(){return Qs.apply(this,arguments)}function Qs(){return Qs=Object(v.a)(i.a.mark(function Kn(){return i.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:return xn.t0=Ts,xn.next=3,Object(K.w)({id:xi.pathId,course_type:1});case 3:xn.t1=xn.sent,(0,xn.t0)(xn.t1);case 5:case"end":return xn.stop()}},Kn)})),Qs.apply(this,arguments)}Object(n.useEffect)(function(){var Kn;if(((Kn=ci.actionTabs)===null||Kn===void 0?void 0:Kn.key)==="\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4"){var Pn,xn,tr=(Pn=In.detail)===null||Pn===void 0||((xn=Pn.courses)===null||xn===void 0)?void 0:xn.find(function(Tn){var _r;return Tn.course_id===((_r=ci.actionTabs)===null||_r===void 0?void 0:_r.name)});ra(tr||{})}},[ci.actionTabs]),Object(n.useEffect)(function(){var Kn,Pn,xn;if((Kn=In.detail)!==null&&Kn!==void 0&&Kn.has_start){var tr,Tn,_r=(tr=In.detail)===null||tr===void 0||((Tn=tr.courses)===null||Tn===void 0)?void 0:Tn.findIndex(function(Ko){var po;return parseInt((po=Ko.course_status)===null||po===void 0?void 0:po.status)===1});xn=_r>-1?_r:0}else{var Mr,jr,Pi,Ji,ba,pa=(Mr=In.detail)===null||Mr===void 0||((jr=Mr.courses)===null||jr===void 0||((Pi=jr.map(function(Ko){var po;return parseInt((po=Ko.course_status)===null||po===void 0?void 0:po.status)}))===null||Pi===void 0))?void 0:Pi.lastIndexOf(2);xn=pa>-1?pa:0,pa=(Ji=In.detail)===null||Ji===void 0||((ba=Ji.courses)===null||ba===void 0)?void 0:ba.findIndex(function(Ko){var po;return parseInt((po=Ko.course_status)===null||po===void 0?void 0:po.status)===0}),xn=pa>-1?pa:xn}if((Pn=In.detail)!==null&&Pn!==void 0&&Pn.courses){var Ea;ra(((Ea=In.detail)===null||Ea===void 0?void 0:Ea.courses[xn])||{})}},[In.detail]);var lr=function(){var Kn=Object(v.a)(i.a.mark(function Pn(xn){return i.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:T.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6210\u5458\u5417\uFF1F"),onOk:function(){var _r=Object(v.a)(i.a.mark(function jr(){var Pi,Ji;return i.a.wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:return pa.next=2,Object(K.p)({id:xi.pathId,user_id:xn});case 2:Pi=pa.sent,(Pi==null?void 0:Pi.status)===1&&(((Ji=Ja.userInfo)===null||Ji===void 0?void 0:Ji.user_id)===xn&&(window.location.href=window.location.href),I.b.info(Pi==null?void 0:Pi.message),bs());case 4:case"end":return pa.stop()}},jr)}));function Mr(){return _r.apply(this,arguments)}return Mr}()});case 1:case"end":return Tn.stop()}},Pn)}));return function(xn){return Kn.apply(this,arguments)}}(),ys=function(){var Kn=Object(v.a)(i.a.mark(function Pn(xn){return i.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:T.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u8BFE\u5802\u5417\uFF1F"),onOk:function(){var _r=Object(v.a)(i.a.mark(function jr(){var Pi;return i.a.wrap(function(ba){for(;;)switch(ba.prev=ba.next){case 0:return ba.next=2,Object(K.o)({id:xi.pathId,courseid:xn});case 2:Pi=ba.sent,(Pi==null?void 0:Pi.status)===0&&(I.b.info("\u5220\u9664\u6210\u529F"),bs());case 4:case"end":return ba.stop()}},jr)}));function Mr(){return _r.apply(this,arguments)}return Mr}()});case 1:case"end":return Tn.stop()}},Pn)}));return function(xn){return Kn.apply(this,arguments)}}(),Ks=function(){T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u7ACB\u5373\u9884\u7EA6\uFF1F"),onOk:function(){var Pn=Object(v.a)(i.a.mark(function tr(){var Tn;return i.a.wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:return Mr.next=2,Object(K.i)({id:xi.pathId});case 2:Tn=Mr.sent,Tn.status===0&&(Oa(!0),I.b.success(Tn.message));case 4:case"end":return Mr.stop()}},tr)}));function xn(){return Pn.apply(this,arguments)}return xn}()})},Bs=function(){Ur({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator"}})},Ao=function(Pn){Ur({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCourses",type:Pn}})},bs=function(){Ur({type:"pathsDetail/getPathsDetail",payload:{id:xi.pathId}}),Ur({type:"pathsDetail/getRightData",payload:{id:xi.pathId}}),Ur({type:"pathsDetail/getCoureses",payload:{id:xi.pathId}}),fl()},Ws=function(){var Pn;return Ft?e.a.createElement("div",{className:kt.a.flexRow},e.a.createElement(re.a,{placeholder:"\u4F8B\u5982\uFF1A\u6559\u5B66\u56E2\u961F",value:qn,onChange:function(tr){return or(tr.target.value)}}),e.a.createElement(c.a,{className:"ml5",onClick:function(){return $t(!Ft)}},"\u53D6\u6D88"),e.a.createElement(c.a,{className:"ml5",type:"primary",onClick:hl},"\u786E\u5B9A")):e.a.createElement("div",{className:kt.a.directionItemWrap},e.a.createElement("span",{style:{fontSize:"16px",display:"flex",alignItems:"center"}}," ",e.a.createElement("img",{style:{marginRight:"10px"},src:nr.a})," ",(Pn=In.rightData)===null||Pn===void 0?void 0:Pn.team_title),e.a.createElement("span",{className:kt.a.groupActionWrap},e.a.createElement("i",{className:"iconfont icon-xiugai mr1 c-light-primary font15 current",onClick:function(){return $t(!Ft)}})))},Ms=function(){var Pn,xn,tr=new Image;tr.src=Ct.q;var Tn=((Pn=In.rightData)===null||Pn===void 0||((xn=Pn.tags)===null||xn===void 0)?void 0:xn.map(function(Mr,jr){return{name:Mr.tag_name,value:jr}}))||[],_r={backgroundColor:"#fff",tooltip:{pointFormat:"{series.name}</b>"},series:[{type:"wordCloud",sizeRange:[10,30],rotationRange:[-90,90],rotationStep:45,gridSize:2,shape:"pentagon",maskImage:tr,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:Tn}]};return _r},Es=function(){if(!Object(Re.e)(Ur))return;T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var Pn=Object(v.a)(i.a.mark(function tr(){var Tn,_r;return i.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:return jr.next=2,Object(K.L)({id:vn==null?void 0:vn.course_id});case 2:Tn=jr.sent,Tn.status===0&&(I.b.success(Tn.message),Ur({type:"pathsDetail/getPathsDetail",payload:{id:xi.pathId}}),parseInt((_r=vn.course_status)===null||_r===void 0?void 0:_r.status)===1&&Object(ve.O)("".concat(vn==null?void 0:vn.first_category_url)));case 4:case"end":return jr.stop()}},tr)}));function xn(){return Pn.apply(this,arguments)}return xn}()})},Na=function(){var Kn=Object(v.a)(i.a.mark(function Pn(){var xn;return i.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:if(Object(Re.e)(Ur)){Tn.next=2;break}return Tn.abrupt("return");case 2:return gs(!0),Tn.next=5,Object(ce.a)("/api/payments.json",{method:"POST",body:{subject_id:xi.pathId,payment_method:"wechat_qr"}});case 5:xn=Tn.sent,xn!=null&&xn.num&&(gs(!1),s.d.push("/order/".concat(xi.pathId,"/pay?order_num=").concat(xn==null?void 0:xn.num)));case 7:case"end":return Tn.stop()}},Pn)}));return function(){return Kn.apply(this,arguments)}}(),zs=function(){var Kn=Object(v.a)(i.a.mark(function Pn(xn,tr){var Tn;return i.a.wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:if(Ur({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!tr){Mr.next=7;break}return Mr.next=4,Object(mn.C)({id:xn});case 4:Mr.t0=Mr.sent,Mr.next=10;break;case 7:return Mr.next=9,Object(mn.D)({id:xn});case 9:Mr.t0=Mr.sent;case 10:if(Tn=Mr.t0,Ur({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Tn!=null&&Tn.game_identifier||Tn!=null&&Tn.identifier)){Mr.next=15;break}return Object(ve.O)(tr?"/tasks/".concat(Tn==null?void 0:Tn.identifier,"/jupyter"):"/tasks/".concat(Tn.game_identifier)),Mr.abrupt("return");case 15:(Tn==null?void 0:Tn.status)===2?Ho(Tn==null?void 0:Tn.message):(Tn==null?void 0:Tn.status)===3&&ds(Tn==null?void 0:Tn.message);case 16:case"end":return Mr.stop()}},Pn)}));return function(xn,tr){return Kn.apply(this,arguments)}}(),ds=function(Pn){T.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Pn,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Ho=function Kn(Pn){var xn;Pn=(xn=Pn)!==null&&xn!==void 0&&xn.includes(".json")?Pn:"".concat(Pn,".json"),T.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var tr=Object(v.a)(i.a.mark(function _r(){var Mr,jr;return i.a.wrap(function(Ji){for(;;)switch(Ji.prev=Ji.next){case 0:return Ji.next=2,Object(ln.S)({url:Pn});case 2:if(Mr=Ji.sent,Mr){Ji.next=5;break}return Ji.abrupt("return");case 5:return I.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Ji.next=8,Object(mn.D)({id:Mr.shixun_identifier});case 8:if(jr=Ji.sent,!(jr!=null&&jr.game_identifier)){Ji.next=12;break}return Object(ve.O)("/tasks/".concat(jr.game_identifier)),Ji.abrupt("return");case 12:(jr==null?void 0:jr.status)===2?Kn(jr==null?void 0:jr.message):(jr==null?void 0:jr.status)===3&&ds(jr==null?void 0:jr.message);case 13:case"end":return Ji.stop()}},_r)}));function Tn(){return tr.apply(this,arguments)}return Tn}()})},Ls=function(){var Pn;if(!Object(Re.e)(Ur))return;var xn=[];In==null||((Pn=In.stageData)===null||Pn===void 0)||Pn.forEach(function(Tn){var _r;if(Tn.items&&(_r=Tn.items)!==null&&_r!==void 0&&_r.length){var Mr;(Mr=Tn.items)===null||Mr===void 0||Mr.forEach(function(jr){var Pi;xn.push(jr),jr.children&&(Pi=jr.children)!==null&&Pi!==void 0&&Pi.length&&(xn=xn.concat(jr.children))})}});var tr=xn.find(function(Tn){return["VideoItem","Attachment","Shixun"].includes(Tn.item_type)});if(console.log(tr,"stageParam"),tr.item_type==="VideoItem"){Object(ve.O)("/video/".concat(tr.id,"?subject_id=").concat(xi.pathId));return}if(tr.item_type==="Attachment"){Object(ve.O)(tr.url);return}if(tr.item_type==="Shixun"){zs(tr.identifier,tr.is_jupyter);return}},Qo=function(){var Pn,xn,tr,Tn,_r=(Pn=In.detail)===null||Pn===void 0||((xn=Pn.learning_status)===null||xn===void 0)?void 0:xn[0],Mr=(tr=In.detail)===null||tr===void 0||((Tn=tr.learning_status)===null||Tn===void 0)?void 0:Tn[1];if(_r==="can")return e.a.createElement(c.a,{onClick:Ls,type:"primary"},"\u5F00\u59CB\u5B66\u4E60");if(_r==="disabled"){if(Mr==="try"||Mr==="unpayed")return e.a.createElement(c.a,{loading:Ss,onClick:Na,type:"primary"},"\u7ACB\u5373\u8D2D\u4E70");if(Mr==="expired")return e.a.createElement(c.a,{disabled:!0,type:"primary"},"\u5DF2\u8FC7\u671F");if(Mr==="buyed")return e.a.createElement(c.a,{disabled:!0,type:"primary"},"\u672A\u5F00\u59CB")}},Yr=function(){var Kn=Object(v.a)(i.a.mark(function Pn(){var xn,tr,Tn,_r,Mr,jr,Pi,Ji,ba,pa,Ea,Ko;return i.a.wrap(function(Cs){for(;;)switch(Cs.prev=Cs.next){case 0:if(pa=function(){var el=Object(v.a)(i.a.mark(function ns(){var hs;return i.a.wrap(function(nl){for(;;)switch(nl.prev=nl.next){case 0:return nl.next=2,Object(ce.a)("/api/users/".concat(Ja.userInfo.login,"/subjects/request_certificate.json?subject_id=").concat(xi.pathId),{method:"post"});case 2:hs=nl.sent,(hs==null?void 0:hs.status)===0&&(I.b.info("\u63D0\u4EA4\u6210\u529F"),Ur({type:"pathsDetail/getRightData",payload:{id:xi.pathId}}));case 4:case"end":return nl.stop()}},ns)}));return function(){return el.apply(this,arguments)}}(),(xn=Ja.userInfo)!==null&&xn!==void 0&&xn.professional_certification){Cs.next=4;break}return T.a.confirm({title:"\u63D0\u793A",centered:!0,content:e.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(ve.O)("/account/certification")}}),Cs.abrupt("return",!1);case 4:if(!(((tr=In.rightData)===null||tr===void 0||((Tn=tr.progress)===null||Tn===void 0)?void 0:Tn.certificated)==="drafted")){Cs.next=6;break}return Cs.abrupt("return",!1);case 6:if(!(((_r=In.rightData)===null||_r===void 0||((Mr=_r.progress)===null||Mr===void 0)?void 0:Mr.certificated)==="none"||((jr=In.rightData)===null||jr===void 0||((Pi=jr.progress)===null||Pi===void 0)?void 0:Pi.certificated)==="rejected")){Cs.next=9;break}return((Ea=In.rightData)===null||Ea===void 0?void 0:Ea.progress.learned)===100?T.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:pa}):T.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((Ko=In.rightData)===null||Ko===void 0?void 0:Ko.progress.learned,"%\uFF0C\u5EFA\u8BAE\u7533\u8BF7\u540E\u7EE7\u7EED\u8FDB\u884C\u8BFE\u7A0B\u5B66\u4E60"),okText:"\u786E\u5B9A\u7533\u8BF7",onOk:pa}),Cs.abrupt("return",!1);case 9:((Ji=In.rightData)===null||Ji===void 0||((ba=Ji.progress)===null||ba===void 0)?void 0:ba.certificated)==="passed"&&ko(!0);case 10:case"end":return Cs.stop()}},Pn)}));return function(){return Kn.apply(this,arguments)}}(),Rr=!!((Je=In.detail)!==null&&Je!==void 0&&Je.participant_count)&&!((Be=In.detail)!==null&&Be!==void 0&&Be.allow_statistics),Ti=((Xe=In.detail)===null||Xe===void 0||((Oe=Xe.courses)===null||Oe===void 0)?void 0:Oe.findIndex(function(Kn){return(Kn==null?void 0:Kn.course_id)===(vn==null?void 0:vn.course_id)}))+1,Or=Ti===((at=In.detail)===null||at===void 0||((tt=at.courses)===null||tt===void 0)?void 0:tt.length);return e.a.createElement("section",{className:kt.a.rightWrap},((st=In.rightData)===null||st===void 0?void 0:st.qrcode_img)&&e.a.createElement("div",{className:kt.a.qrCode},e.a.createElement("img",{src:(ot=In.rightData)===null||ot===void 0?void 0:ot.qrcode_img})),((dt=In.rightData)===null||dt===void 0?void 0:dt.progress)&&e.a.createElement("div",{className:"".concat(kt.a.card," ").concat(kt.a.cardTop),style:{top:(It=In.detail)!==null&&It!==void 0&&(Gt=It.courses)!==null&&Gt!==void 0&&Gt.length?"-140px":"-70px"}},parseInt(vn==null||((Dt=vn.course_status)===null||Dt===void 0)?void 0:Dt.status)===2&&vn.course_identity<6&&e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),parseInt((tn=vn.course_status)===null||tn===void 0?void 0:tn.status)===2&&(vn.course_identity<6?"":e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),e.a.createElement("div",{className:kt.a.flexRow},Rr&&!!((cn=In.detail)!==null&&cn!==void 0&&(Bn=cn.courses)!==null&&Bn!==void 0&&Bn.length)&&Or&&e.a.createElement("span",{className:"mt20"},e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Yt=In.detail)===null||Yt===void 0?void 0:Yt.student_count," \u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),e.a.createElement("p",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",e.a.createElement("span",{className:"mr5 c-red-ee4"},di===!0?((en=In.detail)===null||en===void 0?void 0:en.participant_count)+1:(bn=In.detail)===null||bn===void 0?void 0:bn.participant_count),"\u4EBA")),Rr&&!((Dn=In.detail)!==null&&Dn!==void 0&&(rn=Dn.courses)!==null&&rn!==void 0&&rn.length)&&Or&&e.a.createElement("span",null,!((En=In.detail)!==null&&En!==void 0&&En.has_participate)&&(di===!0?e.a.createElement("span",{className:"".concat(kt.a.classButton," ").concat(kt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("a",{className:"".concat(kt.a.classButton," ").concat(kt.a.bg28e),onClick:Ks},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((Ln=In.detail)===null||Ln===void 0?void 0:Ln.has_participate)&&e.a.createElement("span",{className:"".concat(kt.a.classButton," ").concat(kt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Vn=In.detail)===null||Vn===void 0?void 0:Vn.student_count," \u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),e.a.createElement("p",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",e.a.createElement("span",{className:"mr5 c-red-ee4"},di===!0?((an=In.detail)===null||an===void 0?void 0:an.participant_count)+1:(fn=In.detail)===null||fn===void 0?void 0:fn.participant_count),"\u4EBA"))),parseInt(vn==null||((An=vn.course_status)===null||An===void 0)?void 0:An.status)===1&&e.a.createElement("div",{className:"mr20 c-red-ee4"},vn==null||((wn=vn.course_status)===null||wn===void 0)?void 0:wn.time),e.a.createElement("p",{style:{display:vn.course_identity<6?"":"none"},className:"mb10 mt10 ".concat(kt.a.flexRowAbout)},e.a.createElement("span",{style:{display:((er=vn.course_status)===null||er===void 0?void 0:er.status)<=1?"":"none"},className:"c-light-green font14"},"\u5DF2\u5B66",(dn=In.rightData)===null||dn===void 0?void 0:dn.progress.learned,"%"),e.a.createElement("span",{style:{display:((Fn=vn.course_status)===null||Fn===void 0?void 0:Fn.status)<=1?"":"none"},className:"c-light-black"},"\u5B66\u4E60\u8017\u65F6",Object(ve.X)((Ir=In.rightData)===null||Ir===void 0?void 0:Ir.progress.time)," "),((dr=In.rightData)===null||dr===void 0||((Br=dr.progress)===null||Br===void 0)?void 0:Br.certificated)!="disabled"&&e.a.createElement(c.a,{disabled:((sr=In.rightData)===null||sr===void 0||((Nr=sr.progress)===null||Nr===void 0)?void 0:Nr.certificated)==="drafted",onClick:Yr},((Qn=In.rightData)===null||Qn===void 0||((Fr=Qn.progress)===null||Fr===void 0)?void 0:Fr.certificated)==="none"&&"\u7533\u8BF7\u8BC1\u4E66",((ei=In.rightData)===null||ei===void 0||((Kr=ei.progress)===null||Kr===void 0)?void 0:Kr.certificated)==="rejected"&&"\u7533\u8BF7\u8BC1\u4E66",((yr=In.rightData)===null||yr===void 0||((On=yr.progress)===null||On===void 0)?void 0:On.certificated)==="drafted"&&"\u5BA1\u6838\u4E2D",((rr=In.rightData)===null||rr===void 0||((Pr=rr.progress)===null||Pr===void 0)?void 0:Pr.certificated)==="passed"&&"\u67E5\u770B\u8BC1\u4E66")),e.a.createElement(h.a,{placement:"bottom",title:"\u5B8C\u6210\u8BFE\u7A0B\u540E\u53EF\u83B7\u53D6\u8BC1\u4E66\uFF01",color:"yellow"}," ",e.a.createElement(Tt.a,{percent:(jn=In.rightData)===null||jn===void 0?void 0:jn.progress.learned,showInfo:!1,style:{display:(($n=vn.course_status)===null||$n===void 0?void 0:$n.status)<=1&&vn.course_identity<6?"":"none"},status:"active",strokeColor:{"0%":"#29BD8B","100%":"#29BD8B"}})),parseInt((ir=vn.course_status)===null||ir===void 0?void 0:ir.status)===2&&((Jn=In.detail)===null||Jn===void 0?void 0:Jn.allow_add_member)&&e.a.createElement("a",{className:kt.a.classButton,href:"".concat(vn==null?void 0:vn.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),parseInt((Wn=vn.course_status)===null||Wn===void 0?void 0:Wn.status)===1&&vn.course_identity>5&&e.a.createElement("div",{className:kt.a.classButton,onClick:Es},"\u7ACB\u5373\u52A0\u5165"),parseInt((pn=vn.course_status)===null||pn===void 0?void 0:pn.status)===1&&vn.course_identity===5&&e.a.createElement("a",{className:kt.a.classButton,href:"".concat(vn==null?void 0:vn.first_category_url),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),parseInt((sn=vn.course_status)===null||sn===void 0?void 0:sn.status)===0&&vn.course_identity>5&&e.a.createElement("div",{className:kt.a.classButton,onClick:Es},"\u7ACB\u5373\u62A5\u540D"),parseInt((zn=vn.course_status)===null||zn===void 0?void 0:zn.status)===0&&vn.course_identity===5&&e.a.createElement("div",{className:kt.a.classButton},"\u62A5\u540D\u6210\u529F"),(parseInt(vn==null||((Yn=vn.course_status)===null||Yn===void 0)?void 0:Yn.status)===0||parseInt(vn==null||((_n=vn.course_status)===null||_n===void 0)?void 0:_n.status)===1)&&vn.course_identity<5&&e.a.createElement("a",{className:kt.a.classButton,href:"".concat(vn==null?void 0:vn.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),Rr&&Or&&((mr=In.detail)===null||mr===void 0?void 0:mr.has_participate)&&e.a.createElement("span",{className:"".concat(kt.a.classButton," ").concat(kt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),Rr&&Or&&!((Qr=In.detail)!==null&&Qr!==void 0&&Qr.has_participate)&&(di?e.a.createElement("span",{className:"".concat(kt.a.classButton," ").concat(kt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("span",{className:"".concat(kt.a.classButton," ").concat(kt.a.bg28e),onClick:Ks},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),!((Vi=In.detail)!==null&&Vi!==void 0&&Vi.excellent)&&((Ri=In.detail)===null||Ri===void 0?void 0:Ri.is_free)!==!0&&e.a.createElement("div",{className:kt.a.price},e.a.createElement("ul",null,e.a.createElement("li",{className:kt.a.li1},!!((ri=In.detail)!==null&&ri!==void 0&&ri.origin_price)&&e.a.createElement("div",{className:kt.a.discounts},"\u9650\u65F6\u4F18\u60E0"),e.a.createElement("div",{className:kt.a.realPrice},e.a.createElement("span",null,"\uFFE5"),(ga=In.detail)===null||ga===void 0?void 0:ga.price),!!((na=In.detail)!==null&&na!==void 0&&na.origin_price)&&e.a.createElement("div",{className:kt.a.lineationPrice},e.a.createElement("span",null,"\uFFE5"),(Ki=In.detail)===null||Ki===void 0?void 0:Ki.origin_price)),e.a.createElement("li",{className:kt.a.li2},"\u8BFE\u7A0B\u6709\u6548\u671F\uFF1A",((no=In.detail)===null||no===void 0||((ro=no.expiration_type)===null||ro===void 0)?void 0:ro.clazz)==="1"&&"\u6C38\u4E45\u6709\u6548",((Da=In.detail)===null||Da===void 0||((Io=Da.expiration_type)===null||Io===void 0)?void 0:Io.clazz)==="2"&&"\u8D2D\u4E70\u540E".concat((Mo=In.detail)===null||Mo===void 0||((io=Mo.expiration_type)===null||io===void 0||((Ia=io.days)===null||Ia===void 0))?void 0:Ia[0],"\u5929\u5185\u6709\u6548"),((ka=In.detail)===null||ka===void 0||((So=ka.expiration_type)===null||So===void 0)?void 0:So.clazz)==="3"&&"".concat((co=In.detail)===null||co===void 0||((ho=co.expiration_type)===null||ho===void 0||((Qa=ho.days)===null||Qa===void 0))?void 0:Qa.join("\u5230")))),Qo()),e.a.createElement("p",{className:"mb30",style:{marginTop:"15px"}},e.a.createElement("span",{className:"font16",style:{display:"flex",alignItems:"center"}},e.a.createElement("img",{style:{marginRight:"10px"},src:Zn.a})," ",(Ma=In.detail)===null||Ma===void 0?void 0:Ma.learning_notes_title)),e.a.createElement("div",{ref:$a},e.a.createElement(Ke.a,{className:"fon16",value:(Va=In.detail)===null||Va===void 0?void 0:Va.learning_notes}))),!!((Ka=In.rightData)!==null&&Ka!==void 0&&(go=Ka.members)!==null&&go!==void 0&&go.length)&&e.a.createElement("div",{className:"".concat(kt.a.card," pb0"),style:{marginTop:(Fa=In.detail)!==null&&Fa!==void 0&&(yo=Fa.courses)!==null&&yo!==void 0&&yo.length?-135:-65}},(Xi=In.detail)!==null&&Xi!==void 0&&Xi.allow_add_member?Ws():e.a.createElement("span",{style:{fontSize:"16px",display:"flex",alignItems:"center"}}," ",e.a.createElement("img",{style:{marginRight:"10px"},src:nr.a})," ",(ao=In.rightData)===null||ao===void 0?void 0:ao.team_title),e.a.createElement(pe,{data:(Lo=In.rightData)===null||Lo===void 0?void 0:Lo.members,operation:(Wa=In.detail)===null||Wa===void 0?void 0:Wa.allow_add_member,handleDeleteMember:lr}),((Ta=In.detail)===null||Ta===void 0?void 0:Ta.allow_add_member)&&e.a.createElement(ue.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},e.a.createElement(de.a,{className:"c-blue current",onClick:Bs},"+ \u6DFB\u52A0\u5408\u4F5C\u8005"))),!!((fo=In.rightData)!==null&&fo!==void 0&&($o=fo.tags)!==null&&$o!==void 0&&$o.length)&&((qo=In.detail)===null||qo===void 0?void 0:qo.show_tag)&&e.a.createElement("div",{className:kt.a.skillWrap},e.a.createElement("p",{className:"".concat(kt.a.skillTopWrap," font16 mb20")},e.a.createElement("span",null,"\u6280\u80FD\u6807\u7B7E",e.a.createElement("span",{className:"ml5 c-grey-c"},(Go=In.rightData)===null||Go===void 0||((Xa=Go.tags)===null||Xa===void 0)?void 0:Xa.length))),e.a.createElement(Tr.a,{option:Ms(),style:{height:370},opts:{renderer:"svg"}})),((es=In.detail)===null||es===void 0?void 0:es.show_spoc)===1&&e.a.createElement("div",{className:"".concat(kt.a.card," pb0"),style:{marginTop:15}},e.a.createElement("p",{className:"font16",style:{display:"flex",alignItems:"center"}},e.a.createElement("img",{style:{marginRight:"10px"},src:ii.a}),"SPOC\u8BFE\u5802"),e.a.createElement(zt,{data:(ya=In.Courses)===null||ya===void 0?void 0:ya.spoc_courses,handleDeleteMember:ys}),((ki=In.detail)===null||ki===void 0?void 0:ki.show_spoc)===1&&(In==null||((la=In.Courses)===null||la===void 0||((ji=la.spoc_courses)===null||ji===void 0))?void 0:ji.length)<3&&((Ya=In.detail)===null||Ya===void 0?void 0:Ya.allow_add_member)&&e.a.createElement(ue.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},e.a.createElement(de.a,{className:"c-blue current",onClick:function(){return Ao()}},"+ \u6DFB\u52A0\u8BFE\u5802"))),((bo=In.detail)===null||bo===void 0?void 0:bo.show_history)&&e.a.createElement("div",{className:"".concat(kt.a.card," pb0"),style:{marginTop:15}},e.a.createElement("p",{className:"font16",style:{display:"flex",alignItems:"center"}},e.a.createElement("img",{style:{marginRight:"10px"},src:ii.a}),"\u5386\u53F2\u8BFE\u5802"),e.a.createElement(zt,{data:jo==null?void 0:jo.spoc_courses,handleDeleteMember:ys}),((La=In.detail)===null||La===void 0?void 0:La.show_history)&&(jo==null||((Vo=jo.spoc_courses)===null||Vo===void 0)?void 0:Vo.length)<3&&((Po=In.detail)===null||Po===void 0?void 0:Po.allow_add_member)&&e.a.createElement(ue.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},e.a.createElement(de.a,{className:"c-blue current",onClick:function(){return Ao(1)}},"+ \u6DFB\u52A0\u8BFE\u5802"))),e.a.createElement(Et,{onReloadData:bs}),e.a.createElement(Ht,{onReloadData:bs,data:jo}),e.a.createElement(hi,{visible:Aa,onCancel:function(){ko(!1)},data:((Xo=In.rightData)===null||Xo===void 0||((Ba=Xo.progress)===null||Ba===void 0)?void 0:Ba.info)||{}}))},wi=Object(s.a)(function(Ve){var Ye=Ve.pathsDetail,Je=Ve.user,Be=Ve.loading,Xe=Ve.globalSetting,Oe=Ve.classroomList;return{pathsDetail:Ye,user:Je,globalSetting:Xe,loading:Be.models.index,classroomList:Oe}})(Oi),Fi=R("cWXX"),Hi=R("/ezw"),Ii=R("VlDO"),Vr=R.n(Ii),zi=R("bbsP"),Gi=R("/wGt"),Di=R("DjyN"),sa=R("NUBc"),da=R("/zsF"),Mi=R("PArb"),Wr=R("cCSd"),hr=R.n(Wr),zr=re.a.Search,Zr=[{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"}]}],_i=function(Ye){var Je,Be=Ye.classroomList,Xe=Ye.loading,Oe=Ye.dispatch,at=Ye.cb,tt=Ye.shixunIds,st=tt===void 0?[]:tt,ot=Object(a.i)(),dt=Object(a.h)(),It=Be.actionTabs,Gt=te.a.useForm(),Dt=Object(b.a)(Gt,1),tn=Dt[0],cn=Be.shixunLists,Bn=Object(n.useState)([]),Yt=Object(b.a)(Bn,2),en=Yt[0],bn=Yt[1],Dn=Object(n.useState)({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"}),rn=Object(b.a)(Dn,2),En=rn[0],Ln=rn[1];Object(n.useEffect)(function(){Be.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"&&(En.page=1,Oe({type:"classroomList/getShixunLists",payload:Object(M.a)({},En)}))},[Be.actionTabs.key]),Object(n.useEffect)(function(){return Be.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")}},[Be.actionTabs.key]);var Vn=function(){Oe({type:"classroomList/setActionTabs",payload:{}}),Ln({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"})};return Be.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?null:e.a.createElement(Gi.a,{placement:"bottom",height:"100%",closable:!1,visible:Be.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",className:hr.a.drawer,footer:e.a.createElement("div",{className:"tc"},e.a.createElement(c.a,{size:"large",onClick:function(){Vn(),bn([]),at("\u53D6\u6D88")},style:{marginRight:8}},"\u53D6\u6D88"),e.a.createElement(c.a,{size:"large",onClick:Object(v.a)(i.a.mark(function an(){var fn,An,wn,er;return i.a.wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:fn=function(dr){var Br=en[dr];if(st.includes(Br)){var sr,Nr;return I.b.info("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\uFF1A".concat(cn==null||((sr=cn.shixun_list)===null||sr===void 0||((Nr=sr.find(function(Qn){return Qn.id===Br}))===null||Nr===void 0))?void 0:Nr.title)),{v:void 0}}},An=0;case 2:if(!(An<(en==null?void 0:en.length))){Fn.next=9;break}if(wn=fn(An),!(typeof wn=="object")){Fn.next=6;break}return Fn.abrupt("return",wn.v);case 6:An++,Fn.next=2;break;case 9:return Fn.next=11,Object(K.O)({id:Be.actionTabs.id,subject_id:Be.actionTabs.subject_id,shixun_ids:Object(o.a)(en)});case 11:er=Fn.sent,bn([]),er!=null&&er.shixuns_list&&(Vn(),at(er.shixuns_list));case 14:case"end":return Fn.stop()}},an)})),type:"primary"},"\u786E\u5B9A"))},e.a.createElement("section",{className:"tc"},e.a.createElement(zr,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"large",className:hr.a.search,onSearch:function(fn){En.keyword=fn,En.page=1,Oe({type:"classroomList/getShixunLists",payload:Object(M.a)({},En)})}})),e.a.createElement("section",{className:"edu-container"},Zr.map(function(an,fn){var An;return e.a.createElement("ul",{className:hr.a.menu,key:fn},e.a.createElement("li",null,an.name),an==null||((An=an.children)===null||An===void 0)?void 0:An.map(function(wn,er){return e.a.createElement("li",{className:En[an.id]==wn.id?hr.a.actived:"",onClick:function(){En[an.id]=wn.id,Ln(Object(M.a)({},En)),Oe({type:"classroomList/getShixunLists",payload:Object(M.a)({},En)})}},e.a.createElement("strong",null,wn.name))}))}),cn==null||((Je=cn.shixun_list)===null||Je===void 0)?void 0:Je.map(function(an,fn){return e.a.createElement("div",{className:hr.a.listItem,key:fn},e.a.createElement(J.a,{checked:en.includes(an.id),value:an.id,onChange:function(wn){var er=en.indexOf(an.id);en.indexOf(an.id)>-1?bn(en.filter(function(dn){return dn!==an.id})):bn(en.concat(an.id))}}),e.a.createElement("div",{className:hr.a.info},e.a.createElement("div",{className:hr.a.title},e.a.createElement("div",{className:hr.a.titleLeft},e.a.createElement("a",{className:"c-black",href:"/shixuns/".concat(an==null?void 0:an.identifier,"/challenges"),target:"_blank"},e.a.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:an.title}})),Object(U.v)()&&(an==null?void 0:an.mark_status)===1&&e.a.createElement(h.a,{title:an==null?void 0:an.mark_content},e.a.createElement("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10"},"\u6B63\u5E38")),Object(U.v)()&&(an==null?void 0:an.mark_status)===2&&e.a.createElement(h.a,{title:an==null?void 0:an.mark_content},e.a.createElement("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10"},"\u9700\u5B8C\u5584")),Object(U.v)()&&(an==null?void 0:an.mark_status)===3&&e.a.createElement(h.a,{title:an==null?void 0:an.mark_content},e.a.createElement("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10"},"\u65E0\u6CD5\u4F7F\u7528")))),e.a.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},e.a.createElement("span",{className:hr.a.description,dangerouslySetInnerHTML:{__html:an.description}})),e.a.createElement("div",{className:" mt15"},an.challenge_names.map(function(An,wn){return e.a.createElement("span",{key:wn,className:"mr30 font12"},"\u7B2C",wn+1,"\u5173 ",An," ")})),e.a.createElement(Mi.a,{dashed:!0}),e.a.createElement("div",{className:"c-light-black mt20 font12"},e.a.createElement("span",null,an.author_name),e.a.createElement("span",{className:"ml15 mr15"},"|"),e.a.createElement("span",null,an.author_school_name),e.a.createElement("span",{className:"ml15 mr15"},"|"),e.a.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",an.level),e.a.createElement("span",{className:"ml15 mr15"},"|"),e.a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),e.a.createElement("span",null,an.study_count))))}),e.a.createElement("p",null)),e.a.createElement("div",{className:"tc"},e.a.createElement(sa.a,{current:En.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:cn==null?void 0:cn.shixuns_count,onChange:function(fn){En.page=fn,Oe({type:"classroomList/getShixunLists",payload:Object(M.a)({},En)})}})))},Xr=Object(s.a)(function(Ve){var Ye=Ve.classroomList,Je=Ve.loading;return{classroomList:Ye,loading:Je}})(_i),ja=R("Ot1p"),Ni=R("qdXH"),va=R("sBCT"),vo=R("500L"),Wo=R("giR+"),Ci=R("fyUT"),Ro=R("dwhp"),ha=R("IxHN"),os=R("M8RZ"),eo=R("BdwD"),ss=R("9nDM"),Jo=function(Ye){var Je=Ye.user,Be=Ye.onReplyDiscuss,Xe=Ye.dispatch,Oe=Ye.id,at=Ye.activeDiscussIndex,tt=Object(n.useState)(""),st=Object(b.a)(tt,2),ot=st[0],dt=st[1];function It(tn){dt(tn)}var Gt=Object(a.i)();function Dt(){if(!ot){I.b.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}Be(Oe,ot),Xe({type:"pathsDetail/getPathsDetail",payload:{id:Gt.pathId}}),dt("")}return e.a.createElement("div",{key:Oe,className:"discuss-item-editor",style:{display:at===Oe?"block":"none",width:"100%"}},e.a.createElement(ja.a,{miniToolbar:!0,startInit:at===Oe,defaultValue:ot,id:Oe,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:It}),e.a.createElement("a",{onClick:Dt,className:"btn-send"},"\u53D1\u9001"))},Ua=Object(s.a)(function(Ve){var Ye=Ve.shixunsDetail,Je=Ve.loading,Be=Ve.globalSetting;return{shixunsDetail:Ye,globalSetting:Be,loading:Je.models.index}})(Jo),Zo=function(Ye){var Je=Ye.user,Be=Ye.upDataList,Xe=Ye.page,Oe=Ye.getTypeNumber,at=Ye.dispatch,tt=Object(a.i)(),st=function(){var ot=Object(v.a)(i.a.mark(function dt(It,Gt){var Dt;return i.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return cn.next=2,Object(K.M)({id:It,content:Gt});case 2:Dt=cn.sent,(Dt==null?void 0:Dt.status)===0&&Be(1);case 4:case"end":return cn.stop()}},dt)}));return function(It,Gt){return ot.apply(this,arguments)}}();return e.a.createElement("div",{className:"discuss-item-container bg-white"},e.a.createElement("a",{href:"/users/".concat(Je.login),target:"_blank"},e.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(ht.a.IMG_SERVER,"/images/").concat(Je.image_url),width:"50"})),e.a.createElement("section",null,e.a.createElement(Ua,{id:tt.pathId,activeDiscussIndex:tt.pathId,onReplyDiscuss:st})))},ps=Object(s.a)(function(Ve){var Ye=Ve.shixunsDetail,Je=Ve.loading,Be=Ve.globalSetting;return{shixunsDetail:Ye,globalSetting:Be,loading:Je.models.index}})(Zo),kn=R("fXAG");function Cr(Ve){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Object(ce.c)("/discusses.json?page=".concat(Ye-1,"&container_identifier=").concat(Ve,"&container_type=Shixun"))}function gr(Ve,Ye){return Object(ce.f)("/discusses/".concat(Ve,"/top_or_down_discuss.json"),{top:Ye})}function Gr(Ve,Ye){return Object(ce.f)("/discusses/".concat(Ve,"/plus.json"),{container_type:"Discuss",type:Ye?1:0})}function Ai(Ve,Ye){return Object(ce.f)("/discusses/".concat(Ve,"/hidden.json"),Ye)}function Si(Ve,Ye){return Object(ce.f)("/discusses/".concat(Ve,"/reward_code.json"),Ye)}function oi(Ve){return Object(ce.a)("/api/discusses/".concat(Ve,".json"),{method:"delete"})}function fa(Ve,Ye){return Object(ce.f)("/discusses/".concat(Ve,"/reply.json"),{container_type:"Shixun",content:Ye})}function Ha(Ve){return Object(ce.f)("/discusses.json",Ve)}var ni=R("QcdW"),zo=R("kaH+");function pi(Ve){var Ye=Ve.data,Je=Ve.index,Be=Ve.adminOrOperator,Xe=Ve.parentDiscussIndex,Oe=Ve.shixunIdentifier,at=Ve.isDelete,tt=Ve.user,st=Ve.onSetRewardData,ot=Ve.onSetActionType,dt=Ve.deleteCommentAlert,It=Ve.shixunName,Gt=Ye.author,Dt=Ye.can_delete,tn=Ye.manage,cn=Ye.content,Bn=Ye.hidden,Yt=Ye.id,en=Ye.reward,bn=Ye.time;function Dn(){st({id:Yt,index:Je,user_id:Gt.user_id,parentDiscussIndex:Xe})}function rn(){ot({id:Yt,index:Je,params:{hidden:Bn?"0":"1",container_identifier:Oe},type:"hidden-discuss",parentDiscussIndex:Xe,message:Bn?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}function En(){if(dt){T.a.info({title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",It,"\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}ot({id:Yt,index:Je,type:"delete-discuss",parentDiscussIndex:Xe,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}return e.a.createElement("div",{className:"second-level-discuss"},e.a.createElement("div",{className:"discuss-info-body"},e.a.createElement("div",{className:"discuss-info"},e.a.createElement("a",{href:"/users/".concat(Gt.login),target:"_blank"},Gt.name),e.a.createElement("span",{className:"grey"},bn),en?e.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(en)},e.a.createElement("i",{className:"iconfont icon-gift c-orange "}),e.a.createElement("span",null,en)):null),e.a.createElement("div",{className:"btn-group"},Be?e.a.createElement("a",{onClick:Dn,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},e.a.createElement("i",{className:"iconfont icon-jiangli"})):null,Be?e.a.createElement("a",{onClick:rn,title:Bn?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},e.a.createElement("i",{className:Bn?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,tn?e.a.createElement("a",{onClick:En,title:"\u5220\u9664"},e.a.createElement("i",{className:"iconfont icon-shanchu"})):null)),e.a.createElement(Ke.a,{className:"discuss-content",value:cn}))}var Sa=function(Ve){var Ye=Ve.data,Je=Ve.index,Be=Ve.shixunIdentifier,Xe=Ve.adminOrOperator,Oe=Ve.identity,at=Ve.onTopOrDownDiscuss,tt=Ve.onPlusDiscuss,st=Ve.onSetActionType,ot=Ve.onSetRewardData,dt=Ve.user,It=Ve.isDelete,Gt=Ve.activeDiscussIndex,Dt=Ve.onReplyDiscuss,tn=Ve.onSetActiveDiscussIndex,cn=Ye.content,Bn=Ye.children,Yt=Ye.game_url,en=Ye.hidden,bn=Ye.id,Dn=Ye.position,rn=Ye.praise_count,En=Ye.reward,Ln=Ye.sticky,Vn=Ye.time,an=Ye.user_praise,fn=Ye.game_passed,An=Ye.delete_comment_alert,wn=Ye.author,er=Ye.shixun_name,dn=Ye.manage;function Fn(){tn(bn)}function Ir(){at(bn,!Ln,Je)}function dr(){tt(bn,!an,Je)}function Br(){ot({id:bn,index:Je,user_id:wn.user_id})}function sr(){if(An){T.a.info({title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",er,"\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}st({id:bn,index:Je,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function Nr(){st({id:bn,index:Je,params:{hidden:en?"0":"1",container_identifier:Be},type:"hidden-discuss",message:en?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}var Qn=function(ei){var Kr=ei.target,yr=Kr.nodeName,On=Kr.src;yr==="IMG"&&(Dr.a.publish("preview-image",On),console.log("src:",On))};return e.a.createElement("div",{className:"discuss-item-container",key:bn},e.a.createElement("a",{href:"/users/".concat(wn.login),target:"_blank"},e.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(ht.a.IMG_SERVER,"/images/").concat(wn.image_url),width:"50"})),e.a.createElement("section",null,e.a.createElement("div",{className:"discuss-info"},e.a.createElement("a",{href:"/users/".concat(wn.login),target:"_blank"},wn.name),e.a.createElement("span",{className:"grey"},Vn),Dn?e.a.createElement("span",{className:"c-green"}," [\u7B2C",Dn,"\u5173] "):null,Yt?e.a.createElement("a",{href:Yt,target:"_blank",className:"view-code",title:"\u70B9\u51FB\u67E5\u770BTA\u7684\u4EE3\u7801\u9875\u9762"},"\u67E5\u770B"):null,En?e.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(En)},e.a.createElement("i",{className:"iconfont icon-gift c-orange "}),e.a.createElement("span",null,En)):null,Oe<=5?e.a.createElement("span",{style:{flex:"1",textAlign:"right",color:fn===1?"#29bd8b":""}},fn||fn===0?fn===1?"\u5DF2\u901A\u5173":"\u672A\u901A\u5173":""):null),e.a.createElement("div",{onClick:Qn},e.a.createElement(Ke.a,{className:"discuss-content",value:cn})),Bn&&Bn.length>0?e.a.createElement("div",{className:"reply-discuss-container",onClick:Qn},Bn.map(function(Fr,ei){return e.a.createElement(pi,{key:Fr.id,data:Fr,index:ei,deleteCommentAlert:An,shixunName:er,shixunIdentifier:Be,adminOrOperator:Xe,user:dt,isDelete:It,onSetRewardData:ot,onSetActionType:st,parentDiscussIndex:Je})})):null,e.a.createElement("div",{className:"btn-group"},Xe?e.a.createElement("a",{onClick:Br,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},e.a.createElement("i",{className:"iconfont icon-jiangli"})):null,Xe?e.a.createElement("a",{onClick:Nr,title:en?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},e.a.createElement("i",{className:en?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,dn&&(!Bn||Bn.length==0)&&e.a.createElement("a",{onClick:sr,title:"\u5220\u9664"},e.a.createElement("i",{className:"iconfont icon-shanchu"})),e.a.createElement("a",{onClick:Fn,title:"\u56DE\u590D"},e.a.createElement("i",{className:"iconfont icon-huifu1"})),e.a.createElement("a",{onClick:dr,className:an?"c-orange":""},e.a.createElement("i",{className:an?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),e.a.createElement("span",null,rn||""))),e.a.createElement(Ua,{id:bn,activeDiscussIndex:Gt,onReplyDiscuss:Dt})))},uo={showRewardDialog:!1,data:null,page:1,loading:!1,actionType:null,activeDiscussIndex:null};function Ga(Ve,Ye){switch(Ye.type){case kn.Q:return Object(M.a)(Object(M.a)({},Ve),{},{loading:!0});case kn.X:return Object(M.a)(Object(M.a)({},Ve),{},{showRewardDialog:!0});case kn.b:return Object(M.a)(Object(M.a)({},Ve),{},{showRewardDialog:!1});case kn.l:return Object(M.a)(Object(M.a)({},Ve),Ye.payload);case kn.ab:return Object(M.a)(Object(M.a)({},Ve),Ye.payload);case kn.x:return Object(M.a)(Object(M.a)({},Ve),Ye.payload);case kn.z:return Object(M.a)(Object(M.a)({},Ve),Ye.payload);case kn.H:return Object(M.a)(Object(M.a)({},Ve),Ye.payload);case kn.a:return Object(M.a)(Object(M.a)({},Ve),Ye.payload);default:throw new Error}}var gi=function(Ve){var Ye=Ve.shixunIdentifier,Je=Ve.identity,Be=Ve.activeIndex,Xe=Ve.user,Oe=Ve.isShixunDetail,at=Oe===void 0?!1:Oe,tt=Ve.isDelete,st=Ve.getTypeNumber,ot=Object(n.useReducer)(Ga,uo),dt=Object(b.a)(ot,2),It=dt[0],Gt=dt[1],Dt=It.page,tn=It.loading,cn=It.data,Bn=It.actionType,Yt=It.showRewardDialog,en=It.activeDiscussIndex,bn=Object(n.useRef)(),Dn=Object(n.useRef)(),rn=Object(a.i)();function En(jn){return Ln.apply(this,arguments)}function Ln(){return Ln=Object(v.a)(i.a.mark(function jn($n){var ir;return i.a.wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:if(!tn){Wn.next=2;break}return Wn.abrupt("return");case 2:return Wn.prev=2,Gt({type:kn.Q}),Wn.next=6,Object(K.A)(Object(M.a)(Object(M.a)({},rn),{},{page:$n}));case 6:ir=Wn.sent,Gt({type:kn.l,payload:{activeDiscussIndex:null,page:$n,data:ir,loading:!1}}),Wn.next=13;break;case 10:Wn.prev=10,Wn.t0=Wn.catch(2),console.log(Wn.t0);case 13:case"end":return Wn.stop()}},jn,null,[[2,10]])})),Ln.apply(this,arguments)}function Vn(jn){document.body.scrollIntoView(),En(jn)}function an(jn,$n,ir){return fn.apply(this,arguments)}function fn(){return fn=Object(v.a)(i.a.mark(function jn($n,ir,Jn){var Wn;return i.a.wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:return sn.prev=0,sn.next=3,Gr($n,ir);case 3:Wn=sn.sent,On[Jn].user_praise=ir,On[Jn].praise_count=Wn.praise_count,Gt({type:kn.x,payload:{data:Object(M.a)(Object(M.a)({},cn),{},{comments:On})}}),sn.next=12;break;case 9:sn.prev=9,sn.t0=sn.catch(0),console.log(sn.t0);case 12:case"end":return sn.stop()}},jn,null,[[0,9]])})),fn.apply(this,arguments)}function An(jn,$n,ir){return wn.apply(this,arguments)}function wn(){return wn=Object(v.a)(i.a.mark(function jn($n,ir,Jn){return i.a.wrap(function(pn){for(;;)switch(pn.prev=pn.next){case 0:return pn.prev=0,pn.next=3,gr($n,ir);case 3:On[Jn].sticky=ir,Gt({type:kn.ab,payload:{data:Object(M.a)(Object(M.a)({},cn),{},{comments:On})}}),pn.next=10;break;case 7:pn.prev=7,pn.t0=pn.catch(0),console.log(pn.t0);case 10:case"end":return pn.stop()}},jn,null,[[0,7]])})),wn.apply(this,arguments)}function er(){Gt({type:kn.z,payload:{actionType:null}})}function dn(){return Fn.apply(this,arguments)}function Fn(){return Fn=Object(v.a)(i.a.mark(function jn(){var $n,ir,Jn,Wn,pn,sn,zn,Yn;return i.a.wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:if($n=Bn.id,ir=Bn.params,Jn=Bn.type,Wn=Bn.index,pn=Bn.parentDiscussIndex,!(Jn==="hidden-discuss")){mr.next=6;break}return mr.next=4,Ai($n,ir);case 4:pn?On[pn].children[Wn].hidden=ir.hidden==1:On[Wn].hidden=ir.hidden==1,Gt({type:kn.z,payload:{actionType:null,data:Object(M.a)(Object(M.a)({},cn),{},{comments:On})}});case 6:if(!(Jn==="delete-discuss")){mr.next=31;break}return mr.next=9,oi($n);case 9:if(!(pn||pn===0)){mr.next=22;break}sn=On[pn].children,zn=sn.length-1;case 12:if(!(zn>=0)){mr.next=19;break}if(!(sn[zn].id===$n)){mr.next=16;break}return sn.splice(zn,1),mr.abrupt("break",19);case 16:zn--,mr.next=12;break;case 19:On[pn].children=sn,mr.next=30;break;case 22:Yn=On.length-1;case 23:if(!(Yn>=0)){mr.next=30;break}if(!(On[Yn].id===$n)){mr.next=27;break}return On.splice(Yn,1),mr.abrupt("break",30);case 27:Yn--,mr.next=23;break;case 30:Gt({type:kn.z,payload:{actionType:null,data:Object(M.a)(Object(M.a)({},cn),{},{comments:On})}});case 31:case"end":return mr.stop()}},jn)})),Fn.apply(this,arguments)}function Ir(jn){Gt({type:kn.z,payload:{actionType:jn}})}function dr(){Gt({type:kn.b})}function Br(){return sr.apply(this,arguments)}function sr(){return sr=Object(v.a)(i.a.mark(function jn(){var $n,ir,Jn,Wn,pn,sn,zn;return i.a.wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:return $n=bn.current,ir=$n.id,Jn=$n.index,Wn=$n.score,pn=$n.user_id,sn=$n.parentDiscussIndex,_n.next=3,Si(ir,{container_type:"Discusses",score:Wn,user_id:pn});case 3:zn=_n.sent,sn?On[sn].children[Jn].reward=zn.code:On[Jn].reward=zn.code,Gt({type:kn.H,payload:{showRewardDialog:!1,data:Object(M.a)(Object(M.a)({},cn),{},{comments:On})}}),bn.current=null;case 7:case"end":return _n.stop()}},jn)})),sr.apply(this,arguments)}function Nr(jn){bn.current=jn,Gt({type:kn.X})}function Qn(jn){bn.current.score=jn}function Fr(jn,$n){return ei.apply(this,arguments)}function ei(){return ei=Object(v.a)(i.a.mark(function jn($n,ir){return i.a.wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:return Wn.prev=0,Wn.next=3,fa($n,ir);case 3:En(Dt),Wn.next=9;break;case 6:Wn.prev=6,Wn.t0=Wn.catch(0),console.log(Wn.t0);case 9:case"end":return Wn.stop()}},jn,null,[[0,6]])})),ei.apply(this,arguments)}function Kr(jn){en===jn?Gt({type:kn.a,payload:{activeDiscussIndex:null}}):Gt({type:kn.a,payload:{activeDiscussIndex:jn}})}if(Object(n.useEffect)(function(){function jn(){return $n.apply(this,arguments)}function $n(){return $n=Object(v.a)(i.a.mark(function ir(){return i.a.wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:if(!(Be===3&&!cn&&Ye)){Wn.next=3;break}return Wn.next=3,En(Dt);case 3:case"end":return Wn.stop()}},ir)})),$n.apply(this,arguments)}jn()},[rn.pathId]),!cn)return e.a.createElement(G.a,{spinning:!0},e.a.createElement("div",{style:{height:"300px",width:"100%"}}));var yr=cn.disscuss_count,On=cn.comments,rr=cn.all,Pr=cn.can_hidden;return e.a.createElement(n.Fragment,null,e.a.createElement("div",{className:"discuss-container",ref:Dn},yr===0?e.a.createElement(eo.a,null):null,Object(U.p)()&&e.a.createElement(ps,{getTypeNumber:st,upDataList:En,page:Dt,user:Xe}),e.a.createElement("aside",{className:"bg-white"},On==null?void 0:On.map(function(jn,$n){return e.a.createElement(Sa,{user:Xe,key:jn.id,data:jn,index:$n,identity:Je,onPaginationChange:Vn,shixunIdentifier:Ye,isDelete:tt,onSetActionType:Ir,onTopOrDownDiscuss:An,adminOrOperator:Pr,onPlusDiscuss:an,onSetRewardData:Nr,activeDiscussIndex:en,onSetActiveDiscussIndex:Kr,onReplyDiscuss:Fr})})),yr>10?e.a.createElement("div",{className:"pagination-container tc"},e.a.createElement(sa.a,{showQuickJumper:!0,showSizeChanger:!1,onChange:Vn,current:Dt,total:yr})):null),e.a.createElement(os.a,null,e.a.createElement(T.a,{centered:!0,title:"\u63D0\u793A",visible:!!Bn,onOk:dn,onCancel:er},e.a.createElement("p",null,Bn?Bn.message:"")),e.a.createElement(T.a,{centered:!0,width:400,title:"\u5956\u52B1\u8BBE\u7F6E",visible:Yt,onCancel:dr,onOk:Br},e.a.createElement(Ci.a,{placeholder:"\u8BF7\u8F93\u5165\u5956\u52B1\u7684\u91D1\u5E01\u6570\u91CF",min:1,onChange:Qn,style:{width:"228px"}}))))},ai=R("jZGp"),ui=R("LvDl"),to=["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"],ls=function(Ye){var Je,Be,Xe,Oe,at,tt=Ye.pathsDetail,st=Ye.user,ot=Ye.globalSetting,dt=Ye.loading,It=Ye.dispatch,Gt=Object(C.a)(Ye,["pathsDetail","user","globalSetting","loading","dispatch"]),Dt=Object(a.i)(),tn=tt.stageData,cn=Object(n.useState)([]),Bn=Object(b.a)(cn,2),Yt=Bn[0],en=Bn[1],bn=Object(n.useState)(-1),Dn=Object(b.a)(bn,2),rn=Dn[0],En=Dn[1],Ln=Object(n.useState)(!1),Vn=Object(b.a)(Ln,2),an=Vn[0],fn=Vn[1],An=Object(n.useState)(!1),wn=Object(b.a)(An,2),er=wn[0],dn=wn[1],Fn=Object(n.useState)(!1),Ir=Object(b.a)(Fn,2),dr=Ir[0],Br=Ir[1],sr=Object(n.useState)({name:"",is_jupyter:!1}),Nr=Object(b.a)(sr,2),Qn=Nr[0],Fr=Nr[1],ei=te.a.useForm(),Kr=Object(b.a)(ei,1),yr=Kr[0],On=te.a.useForm(),rr=Object(b.a)(On,1),Pr=rr[0],jn=te.a.useForm(),$n=Object(b.a)(jn,1),ir=$n[0],Jn=te.a.useForm(),Wn=Object(b.a)(Jn,1),pn=Wn[0],sn=Object(n.useState)(!1),zn=Object(b.a)(sn,2),Yn=zn[0],_n=zn[1],mr=Object(n.useState)([]),Qr=Object(b.a)(mr,2),Vi=Qr[0],Ri=Qr[1],ri=Object(n.useState)(!1),ga=Object(b.a)(ri,2),na=ga[0],Ki=ga[1],no=Object(n.useState)("All"),ro=Object(b.a)(no,2),Da=ro[0],Io=ro[1],Mo=Object(n.useState)(!1),io=Object(b.a)(Mo,2),Ia=io[0],ka=io[1],So=Object(n.useState)(0),co=Object(b.a)(So,2),ho=co[0],Qa=co[1],Ma=Object(n.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}]),Va=Object(b.a)(Ma,2),Ka=Va[0],go=Va[1],Fa=Object(n.useState)(),yo=Object(b.a)(Fa,2),Xi=yo[0],ao=yo[1],Lo=Object(n.useState)([]),Wa=Object(b.a)(Lo,2),Ta=Wa[0],fo=Wa[1],$o=function(Ft){if(Ft.key=="Enter"){var $t=ir.getFieldValue("tag");if(ir.setFieldsValue({tag:""}),!$t){I.b.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(Ta.filter(function(Cn){return Cn===$t}).length>0){I.b.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}Ta.push($t),fo(Object(o.a)(Ta))}},qo=function(Ft,$t){Ft.preventDefault(),fo(Object(o.a)(Ta.filter(function(Cn){return Cn!=$t})))},Go=((Je=tt.detail)===null||Je===void 0?void 0:Je.is_free)||((Be=tt.detail)===null||Be===void 0?void 0:Be.can_learning),Xa=function(){var Ft=tt.detail,$t=Ft.shixuns_count,Cn=$t===void 0?0:$t,Zt=Ft.videos_count,qn=Zt===void 0?0:Zt,or=Ft.attachment_count,fr=or===void 0?0:or,$r=Ft.disscuss_count,vn=$r===void 0?0:$r,ra={All:Cn+qn+fr,Shixun:Cn,VideoItem:qn,Attachment:fr,Discusses:vn},Pa=Ka.map(function(Li){return Object(M.a)(Object(M.a)({},Li),{},{number:ra[Li.type]})});go(Pa)};Object(n.useEffect)(function(){Xa()},[tt.detail]),Object(n.useEffect)(function(){Xa(),en(Object(o.a)(tn))},[tn]);var es=function(){var Sn=Object(v.a)(i.a.mark(function Ft($t,Cn){var Zt;return i.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:if(It({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Cn){or.next=7;break}return or.next=4,Object(mn.C)({id:$t});case 4:or.t0=or.sent,or.next=10;break;case 7:return or.next=9,Object(mn.D)({id:$t});case 9:or.t0=or.sent;case 10:if(Zt=or.t0,It({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Zt!=null&&Zt.game_identifier||Zt!=null&&Zt.identifier)){or.next=15;break}return Object(ve.O)(Cn?"/tasks/".concat(Zt==null?void 0:Zt.identifier,"/jupyter"):"/tasks/".concat(Zt.game_identifier)),or.abrupt("return");case 15:(Zt==null?void 0:Zt.status)===-3?Object(ve.o)():(Zt==null?void 0:Zt.status)===2?ya(Zt==null?void 0:Zt.message):(Zt==null?void 0:Zt.status)===3&&ki(Zt==null?void 0:Zt.message);case 16:case"end":return or.stop()}},Ft)}));return function($t,Cn){return Sn.apply(this,arguments)}}(),ya=function Sn(Ft){var $t;Ft=($t=Ft)!==null&&$t!==void 0&&$t.includes(".json")?Ft:"".concat(Ft,".json"),T.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Cn=Object(v.a)(i.a.mark(function qn(){var or,fr;return i.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:return vn.next=2,Object(ln.S)({url:Ft});case 2:if(or=vn.sent,or){vn.next=5;break}return vn.abrupt("return");case 5:return I.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),vn.next=8,Object(mn.D)({id:or.shixun_identifier});case 8:if(fr=vn.sent,!(fr!=null&&fr.game_identifier)){vn.next=12;break}return Object(ve.O)("/tasks/".concat(fr.game_identifier)),vn.abrupt("return");case 12:(fr==null?void 0:fr.status)===2?Sn(fr==null?void 0:fr.message):(fr==null?void 0:fr.status)===3&&ki(fr==null?void 0:fr.message);case 13:case"end":return vn.stop()}},qn)}));function Zt(){return Cn.apply(this,arguments)}return Zt}()})},ki=function(Ft){T.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Ft,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},la=function(){if(!Eo())return;_n(!0)};Object(n.useEffect)(function(){if(Yn){var Sn={shixuns_list:[],attachments_list:[],items:[]};Ya(Yt.length,Sn),en([].concat(Object(o.a)(Yt),[Sn]))}},[Yn]);var ji=function(){setTimeout(function(){rn===Yt.length-1&&Yn&&(hn(),en(Yt.filter(function(Ft,$t){return $t!==Yt.length-1}))),Ba(),En(-1)},300)},Ya=function(Ft,$t){if(!Eo())return;En(Ft),yr.setFieldsValue({name:$t.stage_name,description:$t.stage_description,tagName:$t.tag&&$t.tag.name||""})},bo=function(Ft){if(setTimeout(function(){document.documentElement.scrollTop=ho},300),Ft==="\u53D6\u6D88")return;Yt[rn].items=Yt[rn].items.concat(Ft),en(Object(o.a)(Yt))},La=function(){var Sn=Object(v.a)(i.a.mark(function Ft($t){var Cn;return i.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:return qn.next=2,Object(K.Q)(Object(M.a)({},$t));case 2:return Cn=qn.sent,Yt[rn].items=$t.list,qn.abrupt("return",Cn);case 5:case"end":return qn.stop()}},Ft)}));return function($t){return Sn.apply(this,arguments)}}(),Vo=function(Ft){Yt[rn].items=Yt[rn].items.concat(Object(M.a)(Object(M.a)({},Ft),{},{children:[]})),en(Object(o.a)(Yt))},Po=function(Ft){Yt[rn].items=Yt[rn].items.concat(Ft),en(Object(o.a)(Yt))},Xo=function(){var Sn=Object(v.a)(i.a.mark(function Ft($t){var Cn,Zt,qn,or,fr;return i.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:if(Xi){vn.next=8;break}return vn.next=3,Object(K.f)(Object(M.a)({id:Yt[rn].stage_id,subject_id:Dt.pathId},$t));case 3:return Cn=vn.sent,Cn.id&&(Ki(!1),Zt=[Object(M.a)({},Cn)],Yt[rn].items=Yt[rn].items.concat(Zt),en(Object(o.a)(Yt))),vn.abrupt("return",Cn);case 8:return vn.next=10,Object(K.S)(Object(M.a)(Object(M.a)({id:Xi==null?void 0:Xi.id,subject_id:Dt.pathId},$t),{},{video_id:($t==null?void 0:$t.video_id)||(Xi==null||((qn=Xi.video_item)===null||qn===void 0)?void 0:qn.video_id),link:($t==null?void 0:$t.link)||(Xi==null||((or=Xi.video_item)===null||or===void 0)?void 0:or.link)}));case 10:return fr=vn.sent,fr&&(I.b.success("\u4FEE\u6539\u6210\u529F"),Ki(!1),Ba()),vn.abrupt("return",fr);case 13:case"end":return vn.stop()}},Ft)}));return function($t){return Sn.apply(this,arguments)}}(),Ba=function(){It({type:"pathsDetail/getStageData",payload:{subject_id:Dt.pathId}}),It({type:"pathsDetail/getPathsDetail",payload:{id:Dt.pathId}}),It({type:"pathsDetail/getRightData",payload:{id:Dt.pathId}}),hn()},In=function(){var Sn=Object(v.a)(i.a.mark(function Ft($t,Cn){var Zt,qn,or,fr,$r,vn,ra,Pa,Li,di,Oa;return i.a.wrap(function(qi){for(;;)switch(qi.prev=qi.next){case 0:if(!(!($t!=null&&$t.name)||($t==null?void 0:$t.name.replace(/(^\s*)|(\s*$)/g,""))==="")){qi.next=2;break}return qi.abrupt("return",I.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01"));case 2:if(hn(),or=[],(Zt=Yt[rn].shixuns_list)===null||Zt===void 0||Zt.map(function(Yi){or.push({type:Yi.item_type,id:Yi.id})}),(qn=Yt[rn].attachments_list)===null||qn===void 0||qn.map(function(Yi){or.push({type:"Attachment",id:Yi.id})}),fr=$t.tagName,$r=Object(C.a)($t,["tagName"]),!Yn){qi.next=16;break}return vn=Object(M.a)(Object(M.a)({},$r),{},{pathId:Dt.pathId,list:or}),fr&&(vn=Object(M.a)(Object(M.a)({},vn),{},{stage_tag_attributes:{name:fr}})),qi.next=12,Object(K.d)(Object(M.a)({},vn));case 12:ra=qi.sent,ra!=null&&ra.subject_id&&(Yt[rn]=Object(M.a)(Object(M.a)(Object(M.a)({},Yt[rn]),ra),{},{stage_name:vn.name,stage_description:vn.description,tag:vn.stage_tag_attributes}),en(Object(o.a)(Yt))),qi.next=24;break;case 16:return Pa=Array.from(new Set(or.map(function(Yi){return Yi.type}))),Li=Object(M.a)(Object(M.a)({},$r),{},{id:Yt[rn].stage_id,type:Array.from(new Set(or.map(function(Yi){return Yi.type}))),list:or}),di=Yt[rn].tag&&Yt[rn].tag.id||"",Li=Object(M.a)(Object(M.a)({},Li),{},{stage_tag_attributes:di?{id:di,name:fr}:{name:fr}}),qi.next=22,Object(K.U)(Object(M.a)({},Li));case 22:Oa=qi.sent,Oa!=null&&Oa.subject_id&&(Yt[rn]=Object(M.a)(Object(M.a)(Object(M.a)({},Yt[rn]),Oa),{},{stage_name:Li.name,stage_description:Li.description,tag:Li.stage_tag_attributes}),en(Object(o.a)(Yt)));case 24:return _n(!1),qi.abrupt("return");case 26:case"end":return qi.stop()}},Ft)}));return function($t,Cn){return Sn.apply(this,arguments)}}(),Ja=function(Ft,$t,Cn){var Zt=Array.from(Ft),qn=Zt.splice($t,1),or=Object(b.a)(qn,1),fr=or[0];return Zt.splice(Cn,0,fr),Zt},vs=function(Ft,$t){T.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(){Yt[rn][$t||"shixuns_list"].splice(Ft,1),I.b.success("\u5220\u9664\u6210\u529F"),en(Object(o.a)(Yt)),In(yr.getFieldsValue(),$t)}})},ts=function(Ft){T.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 $t=Object(v.a)(i.a.mark(function Zt(){var qn;return i.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return fr.next=2,Object(K.s)(Ft);case 2:qn=fr.sent,qn.status===0&&(I.b.success("\u5220\u9664\u6210\u529F"),Ba());case 4:case"end":return fr.stop()}},Zt)}));function Cn(){return $t.apply(this,arguments)}return Cn}()})},ci=function(){var Sn=Object(v.a)(i.a.mark(function Ft($t){var Cn,Zt,qn,or,fr;return i.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:if(console.log($t),!(($t==null?void 0:$t.item_type)==="VideoItem")){vn.next=9;break}return vn.next=4,Object(Ni.g)({id:$t==null?void 0:$t.stage_item_id});case 4:Cn=vn.sent,ao(Cn),($t==null?void 0:$t.item_type)==="VideoItem"?Ki(!0):(fo((Cn==null||((Zt=Cn.tags)===null||Zt===void 0)?void 0:Zt.map(function(ra){return ra==null?void 0:ra.name}))||[]),ir.setFieldsValue({files:[{uid:Cn==null||((qn=Cn.attachment)===null||qn===void 0)?void 0:qn.id,name:Cn==null?void 0:Cn.name,response:{id:Cn==null||((or=Cn.attachment)===null||or===void 0)?void 0:or.id}}]}),dn(!0)),vn.next=10;break;case 9:T.a.confirm({title:"\u4FEE\u6539\u8BFE\u4EF6\u540D\u79F0",icon:null,centered:!0,okText:"\u786E\u8BA4\u4FEE\u6539",cancelText:"\u53D6\u6D88",content:e.a.createElement(re.a,{value:fr,onChange:function(Pa){fr=Pa.target.value},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u4EF6\u540D\u79F0"}),onOk:function(){var ra=Object(v.a)(i.a.mark(function Li(){var di,Oa,$a;return i.a.wrap(function(Yi){for(;;)switch(Yi.prev=Yi.next){case 0:if(fr){Yi.next=3;break}return I.b.info("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Yi.abrupt("return",Promise.reject());case 3:return Yi.next=5,Object(ce.a)("/api/attachments/".concat($t==null?void 0:$t.id,".json"),{method:"put",body:{name:fr+($t==null||((di=$t.name)===null||di===void 0)?void 0:di.substr($t==null||((Oa=$t.name)===null||Oa===void 0)?void 0:Oa.lastIndexOf(".")))}});case 5:$a=Yi.sent,fr="",Ba();case 8:case"end":return Yi.stop()}},Li)}));function Pa(){return ra.apply(this,arguments)}return Pa}()});case 10:case"end":return vn.stop()}},Ft)}));return function($t){return Sn.apply(this,arguments)}}(),Ur=function(Ft){T.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 $t=Object(v.a)(i.a.mark(function Zt(){var qn;return i.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return fr.next=2,Object(K.r)({id:Ft});case 2:qn=fr.sent,qn.status===1&&(En(-1),I.b.success("\u5220\u9664\u6210\u529F"),Ba());case 4:case"end":return fr.stop()}},Zt)}));function Cn(){return $t.apply(this,arguments)}return Cn}()})},ua=function(){Fr({name:"",is_jupyter:!1}),Pr.setFieldsValue({name:"",is_jupyter:!1}),ka(!1),fn(!1)},xi=function(Ft,$t){var Cn;if(!Ft.destination)return;var Zt=Ja((Cn=Yt[rn])===null||Cn===void 0?void 0:Cn[$t||"shixuns_list"],Ft.source.index,Ft.destination.index);Yt[rn][$t||"shixuns_list"]=Zt,en(Object(o.a)(Yt)),In(yr.getFieldsValue(),$t)},To=function(){var Sn=Object(v.a)(i.a.mark(function Ft($t){var Cn;return i.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:if(Eo()){qn.next=2;break}return qn.abrupt("return");case 2:return qn.next=4,Object(K.T)({id:$t});case 4:Cn=qn.sent,Cn.status===1&&Ba();case 6:case"end":return qn.stop()}},Ft)}));return function($t){return Sn.apply(this,arguments)}}(),Za=function(){var Sn=Object(v.a)(i.a.mark(function Ft($t){var Cn;return i.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:if(Eo()){qn.next=2;break}return qn.abrupt("return");case 2:return qn.next=4,Object(K.t)({id:$t});case 4:Cn=qn.sent,Cn.status===1&&Ba();case 6:case"end":return qn.stop()}},Ft)}));return function($t){return Sn.apply(this,arguments)}}(),Eo=function(){return rn!==-1?(T.a.info({icon:null,className:"custom-modal-divider ",okText:"\u77E5\u9053\u5566",title:"\u63D0\u793A",content:e.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 $t="Edit_".concat(rn),Cn=document.getElementById($t);Cn&&setTimeout(function(){return Cn.scrollIntoView({block:"start",behavior:"smooth"})})}}),!1):!0},oo=function(){In(yr.getFieldsValue())},hn=function(){_n(!1)},Uo=function(){var Ft,$t,Cn,Zt,qn,or;return((Ft=tt.detail)===null||Ft===void 0||(($t=Ft.courses)===null||$t===void 0)?void 0:$t.length)>0?(Cn=tt.detail)===null||Cn===void 0?void 0:Cn.allow_visit:!(((Zt=st.userInfo)===null||Zt===void 0?void 0:Zt.user_identity)==="\u5B66\u751F"&&(qn=tt.detail)!==null&&qn!==void 0&&qn.allow_visit&&(or=tt.detail)!==null&&or!==void 0&&or.courses)},Ss=function(Ft,$t,Cn){var Zt,qn,or,fr,$r,vn,ra,Pa,Li,di,Oa,$a;return Da!=="All"&&Ft.item_type!==Da?null:e.a.createElement(ue.a,{className:"list-item-row",align:"middle",key:$t,gutter:[5,10]},e.a.createElement(de.a,null,Ft.item_type==="Shixun"?e.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"}):e.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"})),e.a.createElement(de.a,{flex:1,className:!Ft.allow_visit&&!Ft.to_be_built&&(Ft.shixun_status==="\u6682\u672A\u516C\u5F00"||Ft.shixun_status==="\u5DF2\u5220\u9664")?Vr.a.color204:""},!!(tt!=null&&(Zt=tt.detail)!==null&&Zt!==void 0&&Zt.cust_seq)&&e.a.createElement("span",{className:"mr8"},Cn+1,"-",$t+1),Ft.name,rn===-1&&Ft.complete_status===1&&e.a.createElement("span",{className:Vr.a.completed},e.a.createElement("i",{className:"iconfont icon-duigou1 mr5 font12"}),"\u5DF2\u5B8C\u6210")),e.a.createElement(de.a,null,rn===Cn&&e.a.createElement("div",null,e.a.createElement(h.a,{title:"\u5220\u9664"},e.a.createElement("span",{onClick:function(){vs($t,"shixuns_list")},className:"iconfont icon-shanchu c-grey-c"}))),(((qn=st.userInfo)===null||qn===void 0?void 0:qn.admin)||((or=st.userInfo)===null||or===void 0?void 0:or.business)||!(!((fr=tt.detail)!==null&&fr!==void 0&&fr.allow_statistics)&&(($r=st.userInfo)===null||$r===void 0?void 0:$r.user_identity)==="\u5B66\u751F"&&(vn=tt.detail)!==null&&vn!==void 0&&vn.allow_visit&&(ra=tt.detail)!==null&&ra!==void 0&&ra.courses))&&rn!==Cn&&Ft.item_type==="VideoItem"&&e.a.createElement("aside",null,e.a.createElement(c.a,{type:"primary",onClick:function(){var Yi,Aa;if(!((Yi=st.userInfo)!==null&&Yi!==void 0&&Yi.admin)&&!((Aa=st.userInfo)!==null&&Aa!==void 0&&Aa.business)&&!Ft.can_view)return T.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:e.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")});Ft.link&&Object(Ni.n)({is_f:1,id:Ft.id,point:0,total:0}),Object(ve.O)(Ft.link||"/video/".concat(Ft.id,"?subject_id=").concat(Dt.pathId))}},Ft.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((Pa=st.userInfo)===null||Pa===void 0?void 0:Pa.admin)||(Ft.allow_visit||Ft.to_be_built||Ft.shixun_status!=="\u6682\u672A\u516C\u5F00"&&Ft.shixun_status!=="\u5DF2\u5220\u9664")&&!(!((Li=tt.detail)!==null&&Li!==void 0&&Li.allow_statistics)&&((di=st.userInfo)===null||di===void 0?void 0:di.user_identity)==="\u5B66\u751F"&&(Oa=tt.detail)!==null&&Oa!==void 0&&Oa.allow_visit&&($a=tt.detail)!==null&&$a!==void 0&&$a.courses))&&rn!==Cn&&Ft.item_type==="Shixun"&&e.a.createElement("aside",null,e.a.createElement(jt.a,{to:"/shixuns/".concat(Ft.identifier,"/challenges"),target:"_blank"},"\u67E5\u770B\u8BE6\u60C5"),Ft.shixun_status!=="\u6682\u672A\u516C\u5F00"&&e.a.createElement(c.a,{className:"ml20",type:"primary",onClick:function(){if(!Object(Re.e)(It,!0))return;es(Ft.identifier,Ft.is_jupyter||Ft.is_jupyter_lab)}},"\u5F00\u59CB\u5B9E\u6218")),rn===-1&&!Ft.allow_visit&&!Ft.to_be_built&&Ft.shixun_status==="\u6682\u672A\u516C\u5F00"&&e.a.createElement("span",{className:Vr.a.color204},"\u6682\u672A\u516C\u5F00"),rn===-1&&!Ft.allow_visit&&!Ft.to_be_built&&Ft.shixun_status==="\u5DF2\u5220\u9664"&&e.a.createElement("span",{className:Vr.a.color204},"\u5DF2\u5220\u9664"),rn===-1&&Ft.item_type==="Shixun"&&!!Ft.challenges_count&&e.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",Ft.challenges_count)))},gs=function(Ft){var $t,Cn=[];if(Ft.items&&($t=Ft.items)!==null&&$t!==void 0&&$t.length){var Zt;(Zt=Ft.items)===null||Zt===void 0||Zt.forEach(function(or){var fr;Cn.push(or),or.children&&(fr=or.children)!==null&&fr!==void 0&&fr.length&&(Cn=Cn.concat(or.children))})}var qn=!!Cn.find(function(or){return Object(ui.isEqual)(or.learning_status,["can","try"])});return qn?e.a.createElement("aside",{className:Vr.a.learn},"\u514D\u8D39\u8BD5\u5B66"):null},$i=function(Ft,$t){var Cn,Zt,qn,or,fr,$r;if(Da!=="All"&&!((Cn=Ft.stage_tag)!==null&&Cn!==void 0&&Cn.includes(Da)))return null;var vn=!1,ra=!1,Pa=!1,Li=!1;if(Da==="All"){var di,Oa,$a,qi;vn=(((di=st.userInfo)===null||di===void 0?void 0:di.admin)||((Oa=st.userInfo)===null||Oa===void 0?void 0:Oa.business)||(($a=tt.detail)===null||$a===void 0?void 0:$a.allow_statistics))&&rn===$t&&!Yn,(qi=tt.detail)!==null&&qi!==void 0&&qi.allow_add_member&&Go&&rn!==$t&&(ra=!0,$t>0&&(Pa=!0),$t<Yt.length-1&&(Li=!0))}var Yi=function(){var ko=0,Fo=0,No=0;if(ra&&(No+=25),Pa&&(No+=18),Li&&(No+=23.5),vn&&(No+=21),No&&(No+=5),Ft.tag){var jo=document.createElement("canvas").getContext("2d");jo.font="450 12px -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol",ko=Math.ceil(jo.measureText(Ft.tag.name).width)+16}var Ts=document.createElement("canvas").getContext("2d");return Ts.font="normal normal 450 18px -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol",Fo=Math.ceil(Ts.measureText(Ft.stage_name||"\u7B2C".concat(Yt==null?void 0:Yt.length,"\u90E8\u5206")).width),e.a.createElement("div",{className:Vr.a.labelContainer,style:{width:745-No}},e.a.createElement("div",{className:"".concat(Vr.a.text),style:{maxWidth:745-No-ko}},Ft.stage_name||"\u7B2C".concat(Yt==null?void 0:Yt.length,"\u90E8\u5206"),gs(Ft)),Ft.tag&&Ft.tag.name&&e.a.createElement("span",{className:Vr.a.tag},Ft.tag.name))};return e.a.createElement("section",{key:$t,className:"bg-white mt20 pt30 pb20"},e.a.createElement("aside",{className:"pl20 pr20"},e.a.createElement(ue.a,{gutter:[5,20],align:"middle"},e.a.createElement(de.a,{flex:1,className:"tl font18 bold c-grey-333"},Yi()),Da==="All"&&e.a.createElement(de.a,null,vn&&e.a.createElement(h.a,{title:"\u5220\u9664"},e.a.createElement("span",{onClick:function(){Ur(Ft.stage_id)},className:"iconfont icon-shanchu c-grey-c"})),((Zt=tt.detail)===null||Zt===void 0?void 0:Zt.allow_add_member)&&Go&&rn!==$t&&e.a.createElement("div",null,Pa&&e.a.createElement(h.a,{title:"\u5411\u4E0A\u79FB\u52A8"},e.a.createElement("span",{onClick:function(){return To(Ft.stage_id)},className:"iconfont icon-xiangshangyi c-light-green font18 current"})),Li&&e.a.createElement(h.a,{title:"\u5411\u4E0B\u79FB\u52A8"},e.a.createElement("span",{onClick:function(){return Za(Ft.stage_id)},className:"iconfont icon-xiangxiayi c-light-green font18 current ml5"})),e.a.createElement(h.a,{title:"\u7F16\u8F91"},e.a.createElement("span",{onClick:function(){return Ya($t,Ft)},className:"iconfont icon-bianjidaibeijing c-light-green font20 current ml5"}))))),!!Ft.stage_description&&e.a.createElement(ue.a,{gutter:[5,20]},e.a.createElement(de.a,{span:24},e.a.createElement(Ke.a,{value:Ft==null?void 0:Ft.stage_description})))),rn===$t&&e.a.createElement("div",{className:"pl20 pr20"},e.a.createElement("aside",null,e.a.createElement(te.a.Item,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"},{whitespace:!0,message:"\u4E0D\u80FD\u8F93\u5165\u7A7A\u683C"}]},e.a.createElement(re.a,{size:"large",maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat($t+1,"\u9636\u6BB5\u540D\u79F0,\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"),onBlur:oo})),e.a.createElement(te.a.Item,{name:"description",label:"\u63CF\u8FF0",className:"ml10"},e.a.createElement(ja.a,{defaultValue:Ft==null?void 0:Ft.stage_description,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat($t+1,"\u9636\u6BB5\u63CF\u8FF0"),height:300,onBlur:oo}))),e.a.createElement("aside",null,e.a.createElement(te.a.Item,{label:"\u6807\u7B7E",name:"tagName",rules:[{max:10,message:"\u6807\u7B7E\u4E0D\u80FD\u8D85\u8FC710\u4E2A\u5B57\u201D"}]},e.a.createElement(re.a,{placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0",onBlur:oo}))),e.a.createElement("aside",{className:"mt20 mb20"},e.a.createElement(c.a,{size:"large",ghost:!0,type:"primary",onClick:function(){if(!Yt[rn].stage_id)return I.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(Re.e)(It))return;ka(!1),Br(!0),pn.resetFields()}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u5C0F\u8282"),e.a.createElement(c.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){if(!Yt[rn].stage_id)return I.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(Re.e)(It))return;if(!Object(Re.c)())return;ka(!1),fn(!0),Pr.setFieldsValue({name:"",is_jupyter:!1})}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE"),e.a.createElement(c.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){var ko;if(!Yt[rn].stage_id)return I.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");Qa(document.documentElement.scrollTop),It({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",id:Yt[rn].stage_id,subject_id:Dt.pathId}}),Ri(Ft==null||((ko=Ft.shixuns_list)===null||ko===void 0)?void 0:ko.map(function(Fo){return Fo.id}))}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"),e.a.createElement(e.a.Fragment,null,e.a.createElement(c.a,{size:"large",className:" ml20",ghost:!0,type:"primary",onClick:function(){if(!Yt[rn].stage_id)return I.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");ao(""),Ki(!0)}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE")),e.a.createElement(c.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){if(!Yt[rn].stage_id)return I.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(Re.e)(It))return;ao(""),fo([]),ka(!1),dn(!0),ir.resetFields()}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6"),e.a.createElement("br",null)),e.a.createElement("aside",{className:"c-light-black mt10 pb20",id:"Edit_".concat($t)},"\u6240\u6709\u9879\u76EE\u5747\u53EF\u4EE5\u901A\u8FC7\u62D6\u52A8\u6392\u5E8F\u6216\u5347\u964D\u7EA7\u3002",e.a.createElement("br",null),"\u65B0\u5EFA\u9879\u76EE\u540D\u79F0\u6307\u672C\u9879\u76EE\u4E0B\u6CA1\u6709\u5B9E\u8D28\u5185\u5BB9\uFF0C\u4EC5\u5C55\u793A\u540D\u79F0\uFF0C\u4E0D\u53EF\u70B9\u51FB\u3002")),e.a.createElement("aside",{className:Vr.a.shixuns},e.a.createElement("div",{className:""},!!(Ft!=null&&(qn=Ft.items)!==null&&qn!==void 0&&qn.length)&&e.a.createElement(ai.a,{visibleType:Da,data:Object(o.a)(Ft.items),stage_id:Ft.stage_id,disabled:!(rn===$t),deleteStages:ts,editVidoItem:ci,updateSort:La,index:$t,cust_seq:!!(tt!=null&&(or=tt.detail)!==null&&or!==void 0&&or.cust_seq),showVideoPlay:((fr=st.userInfo)===null||fr===void 0?void 0:fr.admin)||(($r=st.userInfo)===null||$r===void 0?void 0:$r.business)||Uo()}))),rn===$t&&e.a.createElement("aside",{className:Vr.a.buttons},e.a.createElement(c.a,{onClick:ji,type:"primary",size:"large",ghost:!0},"\u53D6\u6D88"),e.a.createElement(c.a,{onClick:Object(v.a)(i.a.mark(function Aa(){return i.a.wrap(function(Fo){for(;;)switch(Fo.prev=Fo.next){case 0:ji();case 1:case"end":return Fo.stop()}},Aa)})),size:"large",type:"primary"},"\u4FDD\u5B58")))};return e.a.createElement("section",null,e.a.createElement(Hi.a,{active:!0,paragraph:{rows:250},avatar:!0,className:"".concat(dt["pathsDetail/getStageData"]||dt["pathsDetail/getPathsDetail"]?"mt20":""),loading:dt["pathsDetail/getStageData"]||dt["pathsDetail/getPathsDetail"]},e.a.createElement("aside",{className:Vr.a.actionTabs},Ka.map(function(Sn,Ft){if(Yt!=null&&Yt.some(function($t){var Cn;return(Cn=$t.stage_tag)===null||Cn===void 0?void 0:Cn.includes(Sn.type)})||Sn.type=="All"||Sn.type=="Discusses"&&Sn.number>0)return e.a.createElement("div",{key:Ft,className:Sn.type===Da?Vr.a.tabActive:Vr.a.tab,onClick:function(){rn===-1?(Io(Sn.type),En(-1)):I.b.warn("\u8BF7\u5148\u53D6\u6D88\u7F16\u8F91\u72B6\u6001")}},e.a.createElement("span",{className:Vr.a.s1},Sn.name),e.a.createElement("span",{className:Vr.a.s2},Sn.number))})),Da!=="Discusses"&&e.a.createElement(e.a.Fragment,null,e.a.createElement(te.a,{form:yr,onFinish:In},Yt==null?void 0:Yt.map(function(Sn,Ft){return e.a.createElement("div",{key:Ft},$i(Sn,Ft))})),((Xe=tt.detail)===null||Xe===void 0?void 0:Xe.allow_statistics)&&Da==="All"&&!Yn&&e.a.createElement("div",{className:Vr.a.addStage,onClick:la},e.a.createElement("span",{className:Vr.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"))),Da==="Discusses"&&e.a.createElement("aside",{className:"mt20"},e.a.createElement(gi,{activeIndex:3,isDelete:(Oe=tt.detail)===null||Oe===void 0?void 0:Oe.allow_add_member,shixunIdentifier:11,identity:(at=st.userInfo)===null||at===void 0?void 0:at.role,getTypeNumber:Xa,user:st.userInfo,isShixunDetail:!0})),e.a.createElement(T.a,{centered:!0,title:"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE",visible:an,confirmLoading:Ia,destroyOnClose:!0,onOk:Object(v.a)(i.a.mark(function Sn(){var Ft;return i.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Pr.validateFields();case 2:return ka(!0),Cn.next=5,Object(K.N)(Object(M.a)({id:Yt[rn].stage_id,subject_id:Dt.pathId},Qn));case 5:Ft=Cn.sent,ua(),Ft.id&&(Pr.resetFields(),I.b.success("\u6DFB\u52A0\u6210\u529F"),bo([Ft])),ka(!1);case 9:case"end":return Cn.stop()}},Sn)})),onCancel:ua},e.a.createElement(te.a,{form:Pr,onValuesChange:function(Ft){Fr(Object(M.a)(Object(M.a)({},Qn),Ft))}},e.a.createElement(te.a.Item,{label:"\u7C7B\u578B",name:"is_jupyter",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}]},e.a.createElement(S.a.Group,null,e.a.createElement(S.a,{defaultChecked:!0,value:!1},"\u5168\u6808\u5B9E\u8DF5\u9879\u76EE"),e.a.createElement(S.a,{value:!0},"Jupyter Notebook\u5B9E\u8DF5\u9879\u76EE"))),e.a.createElement(te.a.Item,{label:"\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"}]},e.a.createElement(re.a,{suffix:e.a.createElement("span",null,Qn.name.length,"/60")})))),e.a.createElement(T.a,{centered:!0,title:Xi?"\u7F16\u8F91\u6559\u5B66\u8BFE\u4EF6":"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6",visible:er,confirmLoading:Ia,destroyOnClose:!0,onOk:Object(v.a)(i.a.mark(function Sn(){var Ft,$t,Cn,Zt,qn,or;return i.a.wrap(function($r){for(;;)switch($r.prev=$r.next){case 0:return $r.next=2,ir.validateFields();case 2:return ka(!0),$r.next=5,ir.getFieldsValue();case 5:if(Ft=$r.sent,$t=!1,Cn="",Ft.files.forEach(function(vn){(!vn.response||!vn.response.id)&&($t=!0,Cn=vn.name)}),!$t){$r.next=11;break}return I.b.error("".concat(Cn," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20")),$r.abrupt("return");case 11:if(Xi){$r.next=18;break}return $r.next=14,Object(K.c)({id:Yt[rn].stage_id,subject_id:Dt.pathId,tags:Ta,attachment_ids:Ft.files.map(function(vn){return vn.response.id})});case 14:Zt=$r.sent,Zt.status===0&&(I.b.success("\u4FEE\u6539\u6210\u529F"),dn(!1),Po(Object(o.a)(Zt.items))),$r.next=22;break;case 18:return $r.next=20,Object(K.S)({id:Xi==null?void 0:Xi.id,subject_id:Dt.pathId,tags:Ta,attachment_id:(qn=Ft.files.map(function(vn){return vn.response.id}))===null||qn===void 0?void 0:qn[0]});case 20:or=$r.sent,or.status===0&&(I.b.success("\u4FEE\u6539\u6210\u529F"),dn(!1),Po(Object(o.a)(or.items)));case 22:ka(!1);case 23:case"end":return $r.stop()}},Sn)})),onCancel:function(){dn(!1),fo([]),ao("")}},e.a.createElement(te.a,{form:ir},e.a.createElement(te.a.Item,{label:"\u8BFE\u4EF6\u5185\u5BB9",name:"files",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8BFE\u4EF6\u5185\u5BB9"}]},e.a.createElement(vo.b,{aloneClear:!0,maxSize:Object(U.v)()?500:100,accept:to.toString(),number:Xi?1:10})),e.a.createElement(te.a.Item,{style:{marginLeft:8},label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag"},e.a.createElement(re.a,{onKeyUp:$o})),e.a.createElement("div",{className:Vr.a["tagsList-content"]},Ta.map(function(Sn,Ft){return e.a.createElement(p.a,{key:Ft+Sn,closable:!0,onClose:function(Cn){qo(Cn,Sn)}},Sn)})),e.a.createElement("div",null,e.a.createElement("span",{className:"c-red"},"\u6CE8\u610F\uFF1A"),e.a.createElement("br",null),"1\u3001\u4E0A\u4F20\u8BFE\u4EF6\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",e.a.createElement(jt.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",e.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(U.v)()?500:100,"M\uFF1B",e.a.createElement("br",null),"3\u3001\u5F53\u524D\u4EC5\u9650\u652F\u6301pdf\u3001word\u3001excel\u3001ppt\u3001zip\u6587\u4EF6\uFF1B",e.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",e.a.createElement("br",null),"5\u3001\u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6\u3002"))),e.a.createElement(T.a,{centered:!0,title:"\u65B0\u5EFA\u5C0F\u8282\u540D\u79F0",visible:dr,confirmLoading:Ia,onOk:Object(v.a)(i.a.mark(function Sn(){var Ft,$t;return i.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:return Zt.next=2,pn.validateFields();case 2:return ka(!0),Zt.next=5,pn.getFieldsValue();case 5:return Ft=Zt.sent,Zt.next=8,Object(K.a)({id:Yt[rn].stage_id,subject_id:Dt.pathId,name:Ft.name});case 8:$t=Zt.sent,$t.status===0&&(I.b.success("\u6DFB\u52A0\u6210\u529F"),Br(!1),Vo(Object(M.a)({},$t))),ka(!1);case 11:case"end":return Zt.stop()}},Sn)})),onCancel:function(){return Br(!1)}},e.a.createElement(te.a,{form:pn},e.a.createElement(te.a.Item,{label:"",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u5C0F\u8282\u540D\u79F0"}]},e.a.createElement(re.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u5C0F\u8282\u540D\u79F0"})))),e.a.createElement(Xr,{shixunIds:Vi,cb:bo}),e.a.createElement(va.a,{visible:na,editData:Xi,onCancel:function(){return Ki(!1)},onOk:Xo}))},us=Object(s.a)(function(Ve){var Ye=Ve.pathsDetail,Je=Ve.user,Be=Ve.loading,Xe=Ve.globalSetting;return{pathsDetail:Ye,user:Je,globalSetting:Xe,loading:Be.effects}})(ls),Is=R("uRQ9"),ws=R.n(Is),js=function(Ye){var Je=Ye.user,Be=Object(C.a)(Ye,["user"]),Xe=Object(n.useState)([]),Oe=Object(b.a)(Xe,2),at=Oe[0],tt=Oe[1],st=Object(n.useState)(!0),ot=Object(b.a)(st,2),dt=ot[0],It=ot[1],Gt=Object(n.useState)(!1),Dt=Object(b.a)(Gt,2),tn=Dt[0],cn=Dt[1],Bn=Object(n.useState)(!1),Yt=Object(b.a)(Bn,2),en=Yt[0],bn=Yt[1],Dn=Object(n.useState)(0),rn=Object(b.a)(Dn,2),En=rn[0],Ln=rn[1],Vn=Object(n.useState)({}),an=Object(b.a)(Vn,2),fn=an[0],An=an[1],wn=Object(a.i)(),er=Object(n.useState)({page:1,limit:10}),dn=Object(b.a)(er,2),Fn=dn[0],Ir=dn[1],dr=[{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(yr,On){return e.a.createElement(e.a.Fragment,null,(On==null?void 0:On.state)==="drafted"&&e.a.createElement("span",null,"\u7533\u8BF7\u4E2D"),(On==null?void 0:On.state)==="rejected"&&e.a.createElement("span",{style:{color:"#E53333"}},"\u672A\u901A\u8FC7"),(On==null?void 0:On.state)==="passed"&&e.a.createElement("span",{style:{color:"#2FA34F"}},"\u901A\u8FC7"))}},{title:"\u5B66\u4E60\u8FDB\u5EA6",dataIndex:"process",key:"process",align:"left",render:function(yr){return"".concat(yr,"%")}},{title:"\u5BA1\u6279\u64CD\u4F5C",dataIndex:"action",key:"action",align:"left",render:function(yr,On){return e.a.createElement("div",{className:ws.a.actionsBtns},(On==null?void 0:On.state)==="drafted"&&e.a.createElement("span",{onClick:function(){return Br(On)}},"\u540C\u610F"),(On==null?void 0:On.state)==="drafted"&&e.a.createElement("span",{onClick:function(){return sr(On)}},"\u62D2\u7EDD"),(On==null?void 0:On.state)==="rejected"&&e.a.createElement("span",{onClick:function(){return Nr(On)}},"\u62D2\u7EDD\u539F\u56E0"),(On==null?void 0:On.state)==="passed"&&e.a.createElement("span",{onClick:function(){return Qn(On)}},"\u67E5\u770B\u8BC1\u4E66"))}}].filter(function(Kr){return en?!0:Kr.title!=="\u5B66\u4E60\u8FDB\u5EA6"&&Kr.title!=="\u5BA1\u6279\u64CD\u4F5C"});Object(n.useEffect)(function(){Fr(Fn)},[Fn]);var Br=function(){var Kr=Object(v.a)(i.a.mark(function yr(On){var rr;return i.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return jn.next=2,Object(ce.a)("/api/paths/".concat(wn==null?void 0:wn.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:On==null?void 0:On.id,op:"pass"}});case 2:rr=jn.sent,(rr==null?void 0:rr.status)===0&&Fr(Fn);case 4:case"end":return jn.stop()}},yr)}));return function(On){return Kr.apply(this,arguments)}}(),sr=function(yr){var On="";T.a.confirm({title:"\u8BC1\u4E66\u7533\u8BF7\u62D2\u7EDD",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:e.a.createElement("div",null,e.a.createElement("p",null,"\u62D2\u7EDD\u8BC1\u4E66\u53D1\u653E\u9700\u586B\u5199\u62D2\u7EDD\u539F\u56E0\u3002"),e.a.createElement("aside",{className:"flex-container"},e.a.createElement("sup",{className:"c-red-ee4"},"*"),e.a.createElement("span",null,"\u62D2\u7EDD\u539F\u56E0:"),e.a.createElement(re.a,{maxLength:30,style:{width:284,marginLeft:10},onChange:function(Pr){return On=Pr.target.value}}))),okText:"\u786E\u5B9A\u62D2\u7EDD",cancelText:"\u53D6\u6D88",onOk:function(){var rr=Object(v.a)(i.a.mark(function jn(){var $n;return i.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:if(On){Jn.next=3;break}return I.b.warn("\u62D2\u7EDD\u7406\u7531\u4E0D\u80FD\u4E3A\u7A7A"),Jn.abrupt("return",Promise.reject());case 3:return Jn.next=5,Object(ce.a)("/api/paths/".concat(wn==null?void 0:wn.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:yr==null?void 0:yr.id,op:"reject",content:On}});case 5:$n=Jn.sent,($n==null?void 0:$n.status)===0&&Fr(Fn);case 7:case"end":return Jn.stop()}},jn)}));function Pr(){return rr.apply(this,arguments)}return Pr}()})},Nr=function(yr){T.a.info({title:"\u62D2\u7EDD\u539F\u56E0",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:e.a.createElement("div",null,yr==null?void 0:yr.content),okText:"\u786E\u5B9A"})},Qn=function(yr){An((yr==null?void 0:yr.info)||{}),cn(!0)},Fr=function(){var Kr=Object(v.a)(i.a.mark(function yr(On){var rr;return i.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return It(!0),jn.next=3,Object(ce.a)("/api/paths/".concat(wn==null?void 0:wn.pathId,"/request_certificates.json"),{method:"get",params:On});case 3:rr=jn.sent,rr!=null&&rr.data&&(tt(rr==null?void 0:rr.data),Ln((rr==null?void 0:rr.total_count)||0),bn(rr==null?void 0:rr.is_manage)),It(!1);case 6:case"end":return jn.stop()}},yr)}));return function(On){return Kr.apply(this,arguments)}}(),ei=function(yr,On){var rr=Object(M.a)(Object(M.a)({},Fn),{},{page:yr,limit:On});Ir(rr),Fr(rr)};return e.a.createElement("div",{className:ws.a.certificate},e.a.createElement(Bt.a,{dataSource:at,rowKey:function(yr){return yr.id},columns:dr,loading:dt,pagination:{pageSize:Fn.limit,total:En,current:Fn.page,onChange:ei,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}),e.a.createElement(hi,{visible:tn,onCancel:function(){cn(!1),An({})},data:fn}))},Zs=Object(s.a)(function(Ve){var Ye=Ve.user,Je=Ve.pathsDetail;return{user:Ye,pathsDetail:Je}})(js);ge.a.locale("ZH-cn");var cs=m.a.TabPane,dl=function(Ye){var Je=Ye.data,Be=Object(n.useState)("1"),Xe=Object(b.a)(Be,2),Oe=Xe[0],at=Xe[1],tt=Object(n.useState)(1),st=Object(b.a)(tt,2),ot=st[0],dt=st[1],It=Object(n.useState)(),Gt=Object(b.a)(It,2),Dt=Gt[0],tn=Gt[1],cn=Object(n.useState)(!0),Bn=Object(b.a)(cn,2),Yt=Bn[0],en=Bn[1],bn=Object(a.i)();function Dn(){return rn.apply(this,arguments)}function rn(){return rn=Object(v.a)(i.a.mark(function Ln(){var Vn,an;return i.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return en(!0),Oe==="1"?Vn="/api/paths/".concat(bn.pathId,"/study_ranking_shixuns_passed.json"):Oe==="2"?Vn="/api/paths/".concat(bn.pathId,"/study_ranking_videos.json"):Oe==="3"?Vn="/api/paths/".concat(bn.pathId,"/study_ranking_pdf_attachments.json"):Oe==="4"&&(Vn="/api/paths/".concat(bn.pathId,"/study_ranking_discusses.json")),An.next=4,Object(ce.a)(Vn,{method:"get",params:{page:ot}});case 4:an=An.sent,en(!1),tn(an);case 7:case"end":return An.stop()}},Ln)})),rn.apply(this,arguments)}Object(n.useEffect)(function(){Dn()},[ot,Oe]);var En=function(){var Vn,an,fn,An,wn,er,dn,Fn,Ir,dr,Br,sr,Nr;return e.a.createElement(e.a.Fragment,null,e.a.createElement(G.a,{spinning:Yt},e.a.createElement("div",{style:{height:"42px",background:"#fafafa",display:"flex",padding:"0px 5px",alignItems:"center"}},e.a.createElement("span",{style:{flex:"1"}},"\u6392\u540D"),e.a.createElement("span",{style:{flex:"1"}},"\u59D3\u540D"),Oe==="1"&&e.a.createElement("span",{style:{flex:"3"}},"\u901A\u8FC7\u5173\u5361\u6570"),Oe==="2"&&e.a.createElement("span",{style:{flex:"3"}},"\u7D2F\u8BA1\u5B66\u4E60\u65F6\u957F"),Oe==="3"&&e.a.createElement("span",{style:{flex:"3"}},"\u4E0B\u8F7D\u8D44\u6E90\u6B21\u6570"),Oe==="4"&&e.a.createElement("span",{style:{flex:"3"}},"\u53D1\u5E16\u6570")),(Dt==null?void 0:Dt.user_show)&&e.a.createElement("div",{style:{height:"42px",display:"flex",padding:"0px 5px",alignItems:"center"}},e.a.createElement("span",{style:{flex:"1"}},(Dt==null||((Vn=Dt.data_user)===null||Vn===void 0)?void 0:Vn.rank)===0&&(Dt==null||((an=Dt.data_user)===null||an===void 0)?void 0:an.num)===0?"--":(Dt==null||((fn=Dt.data_user)===null||fn===void 0)?void 0:fn.rank)<=100&&(Dt==null||((An=Dt.data_user)===null||An===void 0)?void 0:An.rank)!=0?Dt==null||((wn=Dt.data_user)===null||wn===void 0)?void 0:wn.rank:"\u672A\u4E0A\u699C"),e.a.createElement("span",{style:{flex:"1"}},Dt==null||((er=Dt.data_user)===null||er===void 0)?void 0:er.user_real_name),Oe==="1"&&e.a.createElement("span",{style:{flex:"3"}},(Dt==null||((dn=Dt.data_user)===null||dn===void 0)?void 0:dn.num)||"--"),Oe==="2"&&e.a.createElement("span",{style:{flex:"3"}},Dt!=null&&(Fn=Dt.data_user)!==null&&Fn!==void 0&&Fn.num?Object(ve.X)(Dt==null||((Ir=Dt.data_user)===null||Ir===void 0)?void 0:Ir.num):"--"),Oe==="3"&&e.a.createElement("span",{style:{flex:"3"}},(Dt==null||((dr=Dt.data_user)===null||dr===void 0)?void 0:dr.num)||"--"),Oe==="4"&&e.a.createElement("span",{style:{flex:"3"}},(Dt==null||((Br=Dt.data_user)===null||Br===void 0)?void 0:Br.num)||"--")),(Dt==null?void 0:Dt.user_show)&&e.a.createElement(Mi.a,null),(Dt==null||((sr=Dt.data)===null||sr===void 0)?void 0:sr.length)>0?Dt==null||((Nr=Dt.data)===null||Nr===void 0)?void 0:Nr.map(function(Qn,Fr){return e.a.createElement("div",{style:{height:"42px",display:"flex",padding:"0px 5px",alignItems:"center"}},(Qn==null?void 0:Qn.rank)===1&&e.a.createElement("span",{style:{flex:"1",color:"#E02020"}},Qn==null?void 0:Qn.rank),(Qn==null?void 0:Qn.rank)===2&&e.a.createElement("span",{style:{flex:"1",color:"#FA6400"}},Qn==null?void 0:Qn.rank),(Qn==null?void 0:Qn.rank)===3&&e.a.createElement("span",{style:{flex:"1",color:"#F7B500"}},Qn==null?void 0:Qn.rank),(Qn==null?void 0:Qn.rank)>3&&e.a.createElement("span",{style:{flex:"1"}},Qn==null?void 0:Qn.rank),e.a.createElement("span",{style:{flex:"1"}},Qn==null?void 0:Qn.user_real_name),Oe==="1"&&e.a.createElement("span",{style:{flex:"3"}},Qn==null?void 0:Qn.num),Oe==="2"&&e.a.createElement("span",{style:{flex:"3"}},Object(ve.X)(Qn==null?void 0:Qn.num)),Oe==="3"&&e.a.createElement("span",{style:{flex:"3"}},Qn==null?void 0:Qn.num),Oe==="4"&&e.a.createElement("span",{style:{flex:"3"}},Qn==null?void 0:Qn.num))}):e.a.createElement(eo.a,null),(Dt==null?void 0:Dt.count)>10&&e.a.createElement(sa.a,{current:ot,pageSize:10,showSizeChanger:!1,total:Dt==null?void 0:Dt.count,style:{textAlign:"center",margin:"20px 0px"},onChange:function(Fr){dt(Fr)}})))};return e.a.createElement("div",null,e.a.createElement(m.a,{activeKey:Oe,style:{background:"#fff",padding:"0px 20px"},onChange:function(Vn){at(Vn),dt(1)}},e.a.createElement(cs,{tab:"\u901A\u5173\u699C",style:{background:"#fff"},key:"1"},e.a.createElement(En,null)),e.a.createElement(cs,{tab:"\u89C6\u9891\u5B66\u4E60\u699C",key:"2"},e.a.createElement(En,null)),e.a.createElement(cs,{tab:"\u4E0B\u8F7D\u8D44\u6E90\u699C",key:"3"},e.a.createElement(En,null)),e.a.createElement(cs,{tab:"\u4E92\u52A8\u8BA8\u8BBA\u699C",key:"4"},e.a.createElement(En,null))))},$s=R("XzQ7"),wo=R.n($s),ms=R("ho57"),Qi=R.n(ms),_s=m.a.TabPane;function _o(Ve){var Ye=function(at,tt){if(at.localName===tt)return at;for(var st=0,ot=at;ot=ot.parentNode;st++){if(ot.localName===tt)return ot;if(ot==document.documentElement)return!1}},Je=Ve.target,Be=Ye(Je,"a");if(console.log([Be],Be==null?void 0:Be.href,44),Be!=null&&Be.href)return;if(Je.tagName.toUpperCase()==="IMG"){var Xe=Je.src||Je.getAttribute("src");Xe&&Xe.indexOf("/images/avatars/User")===-1&&(Ve.stopPropagation(),Ve.preventDefault(),Dr.a.publish("preview-image",Xe))}}var Hs=function(Ye){var Je,Be,Xe=Ye.pathsDetail,Oe=Ye.globalSetting,at=Ye.loading,tt=Ye.dispatch,st=Object(C.a)(Ye,["pathsDetail","globalSetting","loading","dispatch"]),ot=Object(a.i)(),dt=st.location.query,It=Object(n.useRef)(),Gt=Object(n.useState)("stage"),Dt=Object(b.a)(Gt,2),tn=Dt[0],cn=Dt[1],Bn=[{name:"\u8BFE\u7A0B\u7AE0\u8282",key:"stage"},{name:"\u6392\u884C\u699C",key:"ranking"},{name:"\u8BC1\u4E66\u7533\u8BF7",key:"certificate"}].filter(function(en){var bn;return(bn=Xe.detail)!==null&&bn!==void 0&&bn.excellent?!0:en.key!=="certificate"});Object(n.useEffect)(function(){if(It.current)return It.current.addEventListener("mousedown",_o),function(){It.current.removeEventListener("mousedown",_o)}},[It.current]),Object(n.useEffect)(function(){if(!ot.pathId)return;Yt()},[ot.pathId]),Object(n.useEffect)(function(){var en;Object(ve.T)((en=Xe.detail)===null||en===void 0?void 0:en.name)},[Xe]);var Yt=function(){var en=Object(v.a)(i.a.mark(function bn(){var Dn;return i.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return En.next=2,tt({type:"pathsDetail/getPathsDetail",payload:Object(M.a)({id:ot.pathId},dt)});case 2:Dn=En.sent,tt({type:"pathsDetail/getRightData",payload:{id:ot.pathId}}),tt({type:"pathsDetail/getStageData",payload:{subject_id:ot.pathId}}),Dn!=null&&Dn.id&&dt.token&&(location.href=location.pathname);case 6:case"end":return En.stop()}},bn)}));return function(){return en.apply(this,arguments)}}();return e.a.createElement(G.a,{spinning:!1},e.a.createElement("section",{className:wo.a.bg},e.a.createElement(vt,null),e.a.createElement(zo.a,null),e.a.createElement("section",{style:{marginTop:((Je=Xe.detail)===null||Je===void 0?void 0:Je.excellent)&&"89px"},className:"edu-container mb80 ".concat(wo.a.wrap)},e.a.createElement("aside",{className:wo.a.content},e.a.createElement("div",{className:wo.a.intro},e.a.createElement("div",{className:wo.a.introTitle},e.a.createElement("span",{className:"font16",style:{display:"flex",alignItems:"center"}},e.a.createElement("img",{src:Qi.a,style:{marginRight:"10px"}}),"\u8BFE\u7A0B\u4ECB\u7ECD")),e.a.createElement("div",{ref:It},e.a.createElement(Ke.a,{value:(Be=Xe.detail)===null||Be===void 0?void 0:Be.description}))),e.a.createElement(m.a,{className:wo.a.wrapTabs,activeKey:tn,onChange:function(bn){return cn(bn)},tabBarGutter:50,tabBarStyle:{height:76}},Bn.map(function(en){return e.a.createElement(_s,{tab:en.name,key:en.key})})),tn==="stage"&&e.a.createElement(us,null),tn==="ranking"&&e.a.createElement(dl,null),tn==="certificate"&&e.a.createElement(Zs,null)),e.a.createElement(wi,null))))},ut=fe.default=Object(s.a)(function(Ve){var Ye=Ve.pathsDetail,Je=Ve.loading,Be=Ve.globalSetting;return{pathsDetail:Ye,globalSetting:Be,loading:Je}})(Hs)},Aky1:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return d});var se=R("ErOA"),G=R("ppsT"),M=R.n(G),v="",b,C="";function w(i){m(i)}function m(i){b=new M.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(e){console.log("addFileSuccess: "+e.file.name),i.addFileSuccess&&i.addFileSuccess(e),b.startUpload()},onUploadstarted:function(e){var a=e.file.name;if(e.videoId){var f="/api/users/".concat(v,"/video_auths.json");Object(se.a)(f,{method:"put",body:{video_id:e.videoId,title:a,file_name:a,virtual_classroom_id:C}}).then(function(l){if(l.status==-1){i.onUploadError&&i.onUploadError(e);return}var r=l.data,c=r.UploadAuth,A=r.UploadAddress,p=r.VideoId;b.setUploadAuthAndAddress(e,c,A)}).catch(function(l){b.deleteFile(b._curIndex),b.nextUpload(),console.log(l)})}else{var s="/api/users/".concat(v,"/video_auths.json"),o="";Object(se.a)(s,{method:"Post",body:{title:o+a,file_name:o+a,virtual_classroom_id:C}}).then(function(l){if(l){var r=l.data,c=r.UploadAuth,A=r.UploadAddress,p=r.VideoId;b.setUploadAuthAndAddress(e,c,A,p)}}).catch(function(l){b.deleteFile(b._curIndex),b.nextUpload(),console.log(l)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(e){i.onUploadSucceed&&i.onUploadSucceed(e),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(e,a,s){i.onUploadFailed&&i.onUploadFailed(e),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(e,a,s){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(e,a,s){i.onUploadProgress&&i.onUploadProgress(e,a,s);var o=Math.ceil(s*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(e){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var a="/api/users/".concat(v,"/video_auths.json");Object(se.a)(a,{method:"put",body:{video_id:e.videoId}}).then(function(s){var o=s.data,f=o.UploadAuth;b.resumeUploadWithAuth(f)}).catch(function(s){console.log(s)})},onUploadEnd:function(e){i.onUploadEnd&&i.onUploadEnd(e),console.log("onUploadEnd: uploaded all the files")}}),i.gotUploader&&i.gotUploader(b)}function d(i,n,e){i&&(v=i),n&&(C=n),w(e)}},BPZU:function(Ge,fe){var R=32,se=7,G=256;function M(n){for(var e=0;n>=R;)e|=n&1,n>>=1;return n+e}function v(n,e,a,s){var o=e+1;if(o===a)return 1;if(s(n[o++],n[e])<0){for(;o<a&&s(n[o],n[o-1])<0;)o++;b(n,e,o)}else for(;o<a&&s(n[o],n[o-1])>=0;)o++;return o-e}function b(n,e,a){for(a--;e<a;){var s=n[e];n[e++]=n[a],n[a--]=s}}function C(n,e,a,s,o){for(s===e&&s++;s<a;s++){for(var f=n[s],l=e,r=s,c;l<r;)c=l+r>>>1,o(f,n[c])<0?r=c:l=c+1;var A=s-l;switch(A){case 3:n[l+3]=n[l+2];case 2:n[l+2]=n[l+1];case 1:n[l+1]=n[l];break;default:for(;A>0;)n[l+A]=n[l+A-1],A--}n[l]=f}}function w(n,e,a,s,o,f){var l=0,r=0,c=1;if(f(n,e[a+o])>0){for(r=s-o;c<r&&f(n,e[a+o+c])>0;)l=c,c=(c<<1)+1,c<=0&&(c=r);c>r&&(c=r),l+=o,c+=o}else{for(r=o+1;c<r&&f(n,e[a+o-c])<=0;)l=c,c=(c<<1)+1,c<=0&&(c=r);c>r&&(c=r);var A=l;l=o-c,c=o-A}for(l++;l<c;){var p=l+(c-l>>>1);f(n,e[a+p])>0?l=p+1:c=p}return c}function m(n,e,a,s,o,f){var l=0,r=0,c=1;if(f(n,e[a+o])<0){for(r=o+1;c<r&&f(n,e[a+o-c])<0;)l=c,c=(c<<1)+1,c<=0&&(c=r);c>r&&(c=r);var A=l;l=o-c,c=o-A}else{for(r=s-o;c<r&&f(n,e[a+o+c])>=0;)l=c,c=(c<<1)+1,c<=0&&(c=r);c>r&&(c=r),l+=o,c+=o}for(l++;l<c;){var p=l+(c-l>>>1);f(n,e[a+p])<0?c=p:l=p+1}return c}function d(n,e){var a=se,s=0,o=G,f=0,l,r,c=0;s=n.length,s<2*G&&(o=s>>>1);var A=[];f=s<120?5:s<1542?10:s<119151?19:40,l=[],r=[];function p(h,u){l[c]=h,r[c]=u,c+=1}function x(){for(;c>1;){var h=c-2;if(h>=1&&r[h-1]<=r[h]+r[h+1]||h>=2&&r[h-2]<=r[h]+r[h-1])r[h-1]<r[h+1]&&h--;else if(r[h]>r[h+1])break;B(h)}}function _(){for(;c>1;){var h=c-2;h>0&&r[h-1]<r[h+1]&&h--,B(h)}}function B(h){var u=l[h],S=r[h],O=l[h+1],T=r[h+1];r[h]=S+T,h===c-3&&(l[h+1]=l[h+2],r[h+1]=r[h+2]),c--;var D=m(n[O],n,u,S,0,e);if(u+=D,S-=D,S===0)return;if(T=w(n[u+S-1],n,O,T,T-1,e),T===0)return;S<=T?E(u,S,O,T):g(u,S,O,T)}function E(h,u,S,O){var T=0;for(T=0;T<u;T++)A[T]=n[h+T];var D=0,I=S,k=h;if(n[k++]=n[I++],--O===0){for(T=0;T<u;T++)n[k+T]=A[D+T];return}if(u===1){for(T=0;T<O;T++)n[k+T]=n[I+T];n[k+O]=A[D];return}for(var F=a,X,U,K;;){X=0,U=0,K=!1;do if(e(n[I],A[D])<0){if(n[k++]=n[I++],U++,X=0,--O===0){K=!0;break}}else if(n[k++]=A[D++],X++,U=0,--u===1){K=!0;break}while((X|U)<F);if(K)break;do{if(X=m(n[I],A,D,u,0,e),X!==0){for(T=0;T<X;T++)n[k+T]=A[D+T];if(k+=X,D+=X,u-=X,u<=1){K=!0;break}}if(n[k++]=n[I++],--O===0){K=!0;break}if(U=w(A[D],n,I,O,0,e),U!==0){for(T=0;T<U;T++)n[k+T]=n[I+T];if(k+=U,I+=U,O-=U,O===0){K=!0;break}}if(n[k++]=A[D++],--u===1){K=!0;break}F--}while(X>=se||U>=se);if(K)break;F<0&&(F=0),F+=2}if(a=F,a<1&&(a=1),u===1){for(T=0;T<O;T++)n[k+T]=n[I+T];n[k+O]=A[D]}else{if(u===0)throw new Error;for(T=0;T<u;T++)n[k+T]=A[D+T]}}function g(h,u,S,O){var T=0;for(T=0;T<O;T++)A[T]=n[S+T];var D=h+u-1,I=O-1,k=S+O-1,F=0,X=0;if(n[k--]=n[D--],--u===0){for(F=k-(O-1),T=0;T<O;T++)n[F+T]=A[T];return}if(O===1){for(k-=u,D-=u,X=k+1,F=D+1,T=u-1;T>=0;T--)n[X+T]=n[F+T];n[k]=A[I];return}for(var U=a;;){var K=0,V=0,N=!1;do if(e(A[I],n[D])<0){if(n[k--]=n[D--],K++,V=0,--u===0){N=!0;break}}else if(n[k--]=A[I--],V++,K=0,--O===1){N=!0;break}while((K|V)<U);if(N)break;do{if(K=u-m(A[I],n,h,u,u-1,e),K!==0){for(k-=K,D-=K,u-=K,X=k+1,F=D+1,T=K-1;T>=0;T--)n[X+T]=n[F+T];if(u===0){N=!0;break}}if(n[k--]=A[I--],--O===1){N=!0;break}if(V=O-w(n[D],A,0,O,O-1,e),V!==0){for(k-=V,I-=V,O-=V,X=k+1,F=I+1,T=0;T<V;T++)n[X+T]=A[F+T];if(O<=1){N=!0;break}}if(n[k--]=n[D--],--u===0){N=!0;break}U--}while(K>=se||V>=se);if(N)break;U<0&&(U=0),U+=2}if(a=U,a<1&&(a=1),O===1){for(k-=u,D-=u,X=k+1,F=D+1,T=u-1;T>=0;T--)n[X+T]=n[F+T];n[k]=A[I]}else{if(O===0)throw new Error;for(F=k-(O-1),T=0;T<O;T++)n[F+T]=A[T]}}this.mergeRuns=x,this.forceMergeRuns=_,this.pushRun=p}function i(n,e,a,s){a||(a=0),s||(s=n.length);var o=s-a;if(o<2)return;var f=0;if(o<R){f=v(n,a,s,e),C(n,a,s,a+f,e);return}var l=new d(n,e),r=M(o);do{if(f=v(n,a,s,e),f<r){var c=o;c>r&&(c=r),C(n,a,a+c,a+f,e),f=c}l.pushRun(a,f),l.mergeRuns(),o-=f,a+=f}while(o!==0);l.forceMergeRuns()}Ge.exports=i},BU3w:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return C});var se=R("MNnm"),G="rc-util-key";function M(w){if(w.attachTo)return w.attachTo;var m=document.querySelector("head");return m||document.body}function v(w){var m,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(se.a)())return null;var i=document.createElement("style");if((m=d.csp)===null||m===void 0?void 0:m.nonce){var n;i.nonce=(n=d.csp)===null||n===void 0?void 0:n.nonce}i.innerHTML=w;var e=M(d),a=e.firstChild;return d.prepend&&e.prepend?e.prepend(i):d.prepend&&a?e.insertBefore(i,a):e.appendChild(i),i}var b=new Map;function C(w,m){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=M(d);if(!b.has(i)){var n=v("",d),e=n.parentNode;b.set(i,e),e.removeChild(n)}var a=Array.from(b.get(i).children).find(function(r){return r.tagName==="STYLE"&&r[G]===m});if(a){var s,o;if(((s=d.csp)===null||s===void 0?void 0:s.nonce)&&a.nonce!==((o=d.csp)===null||o===void 0?void 0:o.nonce)){var f;a.nonce=(f=d.csp)===null||f===void 0?void 0:f.nonce}return a.innerHTML!==w&&(a.innerHTML=w),a}var l=v(w,d);return l[G]=m,l}},Bd2K:function(Ge,fe,R){(function(se){se(R("VrN/"),R("osHv"))})(function(se){se.defineOption("autoCloseTags",!1,function(d,i,n){if(n!=se.Init&&n&&d.removeKeyMap("autoCloseTags"),!i)return;var e={name:"autoCloseTags"};(typeof i!="object"||i.whenClosing!==!1)&&(e["'/'"]=function(a){return C(a)}),(typeof i!="object"||i.whenOpening!==!1)&&(e["'>'"]=function(a){return v(a)}),d.addKeyMap(e)});var G=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],M=["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 v(d){if(d.getOption("disableInput"))return se.Pass;for(var i=d.listSelections(),n=[],e=d.getOption("autoCloseTags"),a=0;a<i.length;a++){if(!i[a].empty())return se.Pass;var s=i[a].head,o=d.getTokenAt(s),f=se.innerMode(d.getMode(),o.state),l=f.state,r=f.mode.xmlCurrentTag&&f.mode.xmlCurrentTag(l),c=r&&r.name;if(!c)return se.Pass;var A=f.mode.configuration=="html",p=typeof e=="object"&&e.dontCloseTags||A&&G,x=typeof e=="object"&&e.indentTags||A&&M;o.end>s.ch&&(c=c.slice(0,c.length-o.end+s.ch));var _=c.toLowerCase();if(!c||o.type=="string"&&(o.end!=s.ch||!/[\"\']/.test(o.string.charAt(o.string.length-1))||o.string.length==1)||o.type=="tag"&&r.close||o.string.indexOf("/")==s.ch-o.start-1||p&&w(p,_)>-1||m(d,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(l)||[],c,s,!0))return se.Pass;var B=typeof e=="object"&&e.emptyTags;if(B&&w(B,c)>-1){n[a]={text:"/>",newPos:se.Pos(s.line,s.ch+2)};continue}var E=x&&w(x,_)>-1;n[a]={indent:E,text:">"+(E?`
`:"")+"</"+c+">",newPos:E?se.Pos(s.line+1,0):se.Pos(s.line,s.ch+1)}}for(var g=typeof e=="object"&&e.dontIndentOnAutoClose,a=i.length-1;a>=0;a--){var h=n[a];d.replaceRange(h.text,i[a].head,i[a].anchor,"+insert");var u=d.listSelections().slice(0);u[a]={head:h.newPos,anchor:h.newPos},d.setSelections(u),!g&&h.indent&&(d.indentLine(h.newPos.line,null,!0),d.indentLine(h.newPos.line+1,null,!0))}}function b(d,i){for(var n=d.listSelections(),e=[],a=i?"/":"</",s=d.getOption("autoCloseTags"),o=typeof s=="object"&&s.dontIndentOnSlash,f=0;f<n.length;f++){if(!n[f].empty())return se.Pass;var l=n[f].head,r=d.getTokenAt(l),c=se.innerMode(d.getMode(),r.state),A=c.state;if(i&&(r.type=="string"||r.string.charAt(0)!="<"||r.start!=l.ch-1))return se.Pass;var p,x=c.mode.name!="xml"&&d.getMode().name=="htmlmixed";if(x&&c.mode.name=="javascript")p=a+"script";else if(x&&c.mode.name=="css")p=a+"style";else{var _=c.mode.xmlCurrentContext&&c.mode.xmlCurrentContext(A);if(!_||_.length&&m(d,_,_[_.length-1],l))return se.Pass;p=a+_[_.length-1]}d.getLine(l.line).charAt(r.end)!=">"&&(p+=">"),e[f]=p}if(d.replaceSelections(e),n=d.listSelections(),!o)for(var f=0;f<n.length;f++)(f==n.length-1||n[f].head.line<n[f+1].head.line)&&d.indentLine(n[f].head.line)}function C(d){return d.getOption("disableInput")?se.Pass:b(d,!0)}se.commands.closeTag=function(d){return b(d)};function w(d,i){if(d.indexOf)return d.indexOf(i);for(var n=0,e=d.length;n<e;++n)if(d[n]==i)return n;return-1}function m(d,i,n,e,a){if(!se.scanForClosingTag)return!1;var s=Math.min(d.lastLine()+1,e.line+500),o=se.scanForClosingTag(d,e,null,s);if(!o||o.tag!=n)return!1;for(var f=a?1:0,l=i.length-1;l>=0&&i[l]==n;l--)++f;e=o.to;for(var l=1;l<f;l++){var r=se.scanForClosingTag(d,e,null,s);if(!r||r.tag!=n)return!1;e=r.to}return!0}})},BdwD:function(Ge,fe,R){"use strict";var se=R("+L6B"),G=R("2/Rp"),M=R("0Owb"),v=R("k1fw"),b=R("q1tI"),C=R.n(b),w=R("FOrL"),m=R.n(w),d=function(n){var e=n.buttonProps,a=e===void 0?{}:e,s=n.styles,o=s===void 0?{}:s,f=n.customText,l=n.ButtonText,r=n.ButtonClick,c=n.Buttonclass,A=n.ButtonTwo;return C.a.createElement("section",{className:"tc animated fadeIn",style:Object(v.a)(Object(v.a)({},{color:"#999",margin:"200px auto"}),o)},C.a.createElement("img",{src:m.a}),C.a.createElement("p",{className:"mt20 font14"},f||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),l&&C.a.createElement(G.a,Object(M.a)({className:c,onClick:r},a),l),A&&A)};fe.a=d},BjJ7:function(Ge,fe,R){"use strict";R.d(fe,"d",function(){return G}),R.d(fe,"c",function(){return M}),R.d(fe,"e",function(){return v}),R.d(fe,"b",function(){return b}),R.d(fe,"a",function(){return w});var se=R("m3rI");function G(m){var d=!0;if(m.length>0){for(var i=0;i<m.length;i++)if(m[i].compile_success==0||!m[i].compile_success){d=!1;break}}else d=!1;return d}function M(m){for(var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=[],n=0;n<m.length;n++){var e=m[n],a=d?"".concat(d,"/").concat(e.name):"".concat(e.name);i.push({title:e.name,isLeaf:!(e.type==="tree"),key:a})}return i}function v(m,d,i){for(var n=0;n<m.length;n++){var e=m[n];if(e.key===d){e.children=i;break}e.children&&v(e.children,d,i)}return m}function b(m,d,i){var n;return function(){var e=this,a=arguments,s=function(){n=null,i||m.apply(e,a)},o=i&&!n;clearTimeout(n),n=setTimeout(s,d),o&&m.apply(e,a)}}var C=!0,w=se.a.API_SERVER},BlVb:function(Ge,fe,R){var se=R("hyiK"),G=1e-8;function M(b,C){return Math.abs(b-C)<G}function v(b,C,w){var m=0,d=b[0];if(!d)return!1;for(var i=1;i<b.length;i++){var n=b[i];m+=se(d[0],d[1],n[0],n[1],C,w),d=n}var e=b[0];return(!M(d[0],e[0])||!M(d[1],e[1]))&&(m+=se(d[0],d[1],e[0],e[1],C,w)),m!==0}fe.contain=v},Bq2U:function(Ge,fe,R){var se=R("RDYZ"),G=R("Qe9p"),M=R("bYtY"),v=M.isArrayLike,b=Array.prototype.slice;function C(p,x){return p[x]}function w(p,x,_){p[x]=_}function m(p,x,_){return(x-p)*_+p}function d(p,x,_){return _>.5?x:p}function i(p,x,_,B,E){var g=p.length;if(E===1)for(var h=0;h<g;h++)B[h]=m(p[h],x[h],_);else for(var u=g&&p[0].length,h=0;h<g;h++)for(var S=0;S<u;S++)B[h][S]=m(p[h][S],x[h][S],_)}function n(p,x,_){var B=p.length,E=x.length;if(B!==E){var g=B>E;if(g)p.length=E;else for(var h=B;h<E;h++)p.push(_===1?x[h]:b.call(x[h]))}for(var u=p[0]&&p[0].length,h=0;h<p.length;h++)if(_===1)isNaN(p[h])&&(p[h]=x[h]);else for(var S=0;S<u;S++)isNaN(p[h][S])&&(p[h][S]=x[h][S])}function e(p,x,_){if(p===x)return!0;var B=p.length;if(B!==x.length)return!1;if(_===1){for(var E=0;E<B;E++)if(p[E]!==x[E])return!1}else for(var g=p[0].length,E=0;E<B;E++)for(var h=0;h<g;h++)if(p[E][h]!==x[E][h])return!1;return!0}function a(p,x,_,B,E,g,h,u,S){var O=p.length;if(S===1)for(var T=0;T<O;T++)u[T]=s(p[T],x[T],_[T],B[T],E,g,h);else for(var D=p[0].length,T=0;T<O;T++)for(var I=0;I<D;I++)u[T][I]=s(p[T][I],x[T][I],_[T][I],B[T][I],E,g,h)}function s(p,x,_,B,E,g,h){var u=(_-p)*.5,S=(B-x)*.5;return(2*(x-_)+u+S)*h+(-3*(x-_)-2*u-S)*g+u*E+x}function o(p){if(v(p)){var x=p.length;if(v(p[0])){for(var _=[],B=0;B<x;B++)_.push(b.call(p[B]));return _}return b.call(p)}return p}function f(p){return p[0]=Math.floor(p[0]),p[1]=Math.floor(p[1]),p[2]=Math.floor(p[2]),"rgba("+p.join(",")+")"}function l(p){var x=p[p.length-1].value;return v(x&&x[0])?2:1}function r(p,x,_,B,E,g){var h=p._getter,u=p._setter,S=x==="spline",O=B.length;if(!O)return;var T=B[0].value,D=v(T),I=!1,k=!1,F=D?l(B):0,X;B.sort(function(Te,Re){return Te.time-Re.time}),X=B[O-1].time;for(var U=[],K=[],V=B[0].value,N=!0,Q=0;Q<O;Q++){U.push(B[Q].time/X);var J=B[Q].value;if(D&&e(J,V,F)||!D&&J===V||(N=!1),V=J,typeof J=="string"){var ne=G.parse(J);ne?(J=ne,I=!0):k=!0}K.push(J)}if(!g&&N)return;for(var ue=K[O-1],Q=0;Q<O-1;Q++)D?n(K[Q],ue,F):isNaN(K[Q])&&!isNaN(ue)&&!k&&!I&&(K[Q]=ue);D&&n(h(p._target,E),ue,F);var be=0,de=0,_e,me,Ee,ge,Ae,ae;if(I)var ve=[0,0,0,0];var oe=function(Te,Re){var Me;if(Re<0)Me=0;else if(Re<de){for(_e=Math.min(be+1,O-1),Me=_e;Me>=0&&!(U[Me]<=Re);Me--);Me=Math.min(Me,O-2)}else{for(Me=be;Me<O&&!(U[Me]>Re);Me++);Me=Math.min(Me-1,O-2)}be=Me,de=Re;var re=U[Me+1]-U[Me];if(re===0)return;if(me=(Re-U[Me])/re,S)if(ge=K[Me],Ee=K[Me===0?Me:Me-1],Ae=K[Me>O-2?O-1:Me+1],ae=K[Me>O-3?O-1:Me+2],D)a(Ee,ge,Ae,ae,me,me*me,me*me*me,h(Te,E),F);else{var j;if(I)j=a(Ee,ge,Ae,ae,me,me*me,me*me*me,ve,1),j=f(ve);else{if(k)return d(ge,Ae,me);j=s(Ee,ge,Ae,ae,me,me*me,me*me*me)}u(Te,E,j)}else if(D)i(K[Me],K[Me+1],me,h(Te,E),F);else{var j;if(I)i(K[Me],K[Me+1],me,ve,1),j=f(ve);else{if(k)return d(K[Me],K[Me+1],me);j=m(K[Me],K[Me+1],me)}u(Te,E,j)}},ie=new se({target:p._target,life:X,loop:p._loop,delay:p._delay,onframe:oe,ondestroy:_});return x&&x!=="spline"&&(ie.easing=x),ie}var c=function(p,x,_,B){this._tracks={},this._target=p,this._loop=x||!1,this._getter=_||C,this._setter=B||w,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};c.prototype={when:function(p,x){var _=this._tracks;for(var B in x){if(!x.hasOwnProperty(B))continue;if(!_[B]){_[B]=[];var E=this._getter(this._target,B);if(E==null)continue;p!==0&&_[B].push({time:0,value:o(E)})}_[B].push({time:p,value:x[B]})}return this},during:function(p){return this._onframeList.push(p),this},pause:function(){for(var p=0;p<this._clipList.length;p++)this._clipList[p].pause();this._paused=!0},resume:function(){for(var p=0;p<this._clipList.length;p++)this._clipList[p].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var p=this._doneList,x=p.length,_=0;_<x;_++)p[_].call(this)},start:function(p,x){var _=this,B=0,E=function(){B--,B||_._doneCallback()},g;for(var h in this._tracks){if(!this._tracks.hasOwnProperty(h))continue;var u=r(this,p,E,this._tracks[h],h,x);u&&(this._clipList.push(u),B++,this.animation&&this.animation.addClip(u),g=u)}if(g){var S=g.onframe;g.onframe=function(O,T){S(O,T);for(var D=0;D<_._onframeList.length;D++)_._onframeList[D](O,T)}}return B||this._doneCallback(),this},stop:function(p){for(var x=this._clipList,_=this.animation,B=0;B<x.length;B++){var E=x[B];p&&E.onframe(this._target,1),_&&_.removeClip(E)}x.length=0},delay:function(p){return this._delay=p,this},done:function(p){return p&&this._doneList.push(p),this},getClips:function(){return this._clipList}};var A=c;Ge.exports=A},"C+DQ":function(Ge,fe,R){},"C/vA":function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return se});function se(G){var M=this,v=!1,b;return function(){return v||(v=!0,b=G.apply(M,arguments)),b}}},C0SR:function(Ge,fe,R){var se=R("YH21"),G=function(){this._track=[]};G.prototype={constructor:G,recognize:function(w,m,d){return this._doTrack(w,m,d),this._recognize(w)},clear:function(){return this._track.length=0,this},_doTrack:function(w,m,d){var i=w.touches;if(!i)return;for(var n={points:[],touches:[],target:m,event:w},e=0,a=i.length;e<a;e++){var s=i[e],o=se.clientToLocal(d,s,{});n.points.push([o.zrX,o.zrY]),n.touches.push(s)}this._track.push(n)},_recognize:function(w){for(var m in b)if(b.hasOwnProperty(m)){var d=b[m](this._track,w);if(d)return d}}};function M(w){var m=w[1][0]-w[0][0],d=w[1][1]-w[0][1];return Math.sqrt(m*m+d*d)}function v(w){return[(w[0][0]+w[1][0])/2,(w[0][1]+w[1][1])/2]}var b={pinch:function(w,m){var d=w.length;if(!d)return;var i=(w[d-1]||{}).points,n=(w[d-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var e=M(i)/M(n);!isFinite(e)&&(e=1),m.pinchScale=e;var a=v(i);return m.pinchX=a[0],m.pinchY=a[1],{type:"pinch",target:w[0].target,event:m}}}},C=G;Ge.exports=C},"Cg/j":function(Ge,fe,R){"use strict";R.d(fe,"b",function(){return se}),R.d(fe,"a",function(){return G}),R.d(fe,"c",function(){return v}),R.d(fe,"d",function(){return b});var se;(function(C){C.serviceIds=new Map,C.DI_TARGET="$di$target",C.DI_DEPENDENCIES="$di$dependencies";function w(m){return m[C.DI_DEPENDENCIES]||[]}C.getServiceDependencies=w})(se||(se={}));var G=v("instantiationService");function M(C,w,m,d){w[se.DI_TARGET]===w?w[se.DI_DEPENDENCIES].push({id:C,index:m,optional:d}):(w[se.DI_DEPENDENCIES]=[{id:C,index:m,optional:d}],w[se.DI_TARGET]=w)}function v(C){if(se.serviceIds.has(C))return se.serviceIds.get(C);var w=function(m,d,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");M(w,m,i,!1)};return w.toString=function(){return C},se.serviceIds.set(C,w),w}function b(C){return function(w,m,d){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");M(C,w,d,!0)}}},CnIC:function(Ge,fe){Ge.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(Ge,fe){function R(){}R.prototype={diff:function(b,C,w){w||(w=function(c,A){return c===A}),this.equals=w;var m=this;b=b.slice(),C=C.slice();var d=C.length,i=b.length,n=1,e=d+i,a=[{newPos:-1,components:[]}],s=this.extractCommon(a[0],C,b,0);if(a[0].newPos+1>=d&&s+1>=i){for(var o=[],f=0;f<C.length;f++)o.push(f);return[{indices:o,count:C.length}]}function l(){for(var c=-1*n;c<=n;c+=2){var A,p=a[c-1],x=a[c+1],_=(x?x.newPos:0)-c;p&&(a[c-1]=void 0);var B=p&&p.newPos+1<d,E=x&&0<=_&&_<i;if(!B&&!E){a[c]=void 0;continue}if(!B||E&&p.newPos<x.newPos?(A=G(x),m.pushComponent(A.components,void 0,!0)):(A=p,A.newPos++,m.pushComponent(A.components,!0,void 0)),_=m.extractCommon(A,C,b,c),A.newPos+1>=d&&_+1>=i)return se(m,A.components,C,b);a[c]=A}n++}for(;n<=e;){var r=l();if(r)return r}},pushComponent:function(b,C,w){var m=b[b.length-1];m&&m.added===C&&m.removed===w?b[b.length-1]={count:m.count+1,added:C,removed:w}:b.push({count:1,added:C,removed:w})},extractCommon:function(b,C,w,m){for(var d=C.length,i=w.length,n=b.newPos,e=n-m,a=0;n+1<d&&e+1<i&&this.equals(C[n+1],w[e+1]);)n++,e++,a++;return a&&b.components.push({count:a}),b.newPos=n,e},tokenize:function(b){return b.slice()},join:function(b){return b.slice()}};function se(b,C,w,m){for(var d=0,i=C.length,n=0,e=0;d<i;d++){var a=C[d];if(a.removed){for(var s=[],o=e;o<e+a.count;o++)s.push(o);a.indices=s,e+=a.count}else{for(var s=[],o=n;o<n+a.count;o++)s.push(o);a.indices=s,n+=a.count,a.added||(e+=a.count)}}return C}function G(b){return{newPos:b.newPos,components:b.components.slice(0)}}var M=new R;function v(b,C,w){return M.diff(b,C,w)}Ge.exports=v},DN4a:function(Ge,fe,R){var se=R("Fofx"),G=R("QBsz"),M=se.identity,v=5e-5;function b(e){return e>v||e<-v}var C=function(e){e=e||{},e.position||(this.position=[0,0]),e.rotation==null&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},w=C.prototype;w.transform=null,w.needLocalTransform=function(){return b(this.rotation)||b(this.position[0])||b(this.position[1])||b(this.scale[0]-1)||b(this.scale[1]-1)};var m=[];w.updateTransform=function(){var e=this.parent,a=e&&e.transform,s=this.needLocalTransform(),o=this.transform;if(!(s||a)){o&&M(o);return}o=o||se.create(),s?this.getLocalTransform(o):M(o),a&&(s?se.mul(o,e.transform,o):se.copy(o,e.transform)),this.transform=o;var f=this.globalScaleRatio;if(f!=null&&f!==1){this.getGlobalScale(m);var l=m[0]<0?-1:1,r=m[1]<0?-1:1,c=((m[0]-l)*f+l)/m[0]||0,A=((m[1]-r)*f+r)/m[1]||0;o[0]*=c,o[1]*=c,o[2]*=A,o[3]*=A}this.invTransform=this.invTransform||se.create(),se.invert(this.invTransform,o)},w.getLocalTransform=function(e){return C.getLocalTransform(this,e)},w.setTransform=function(e){var a=this.transform,s=e.dpr||1;a?e.setTransform(s*a[0],s*a[1],s*a[2],s*a[3],s*a[4],s*a[5]):e.setTransform(s,0,0,s,0,0)},w.restoreTransform=function(e){var a=e.dpr||1;e.setTransform(a,0,0,a,0,0)};var d=[],i=se.create();w.setLocalTransform=function(e){if(!e)return;var a=e[0]*e[0]+e[1]*e[1],s=e[2]*e[2]+e[3]*e[3],o=this.position,f=this.scale;b(a-1)&&(a=Math.sqrt(a)),b(s-1)&&(s=Math.sqrt(s)),e[0]<0&&(a=-a),e[3]<0&&(s=-s),o[0]=e[4],o[1]=e[5],f[0]=a,f[1]=s,this.rotation=Math.atan2(-e[1]/s,e[0]/a)},w.decomposeTransform=function(){if(!this.transform)return;var e=this.parent,a=this.transform;e&&e.transform&&(se.mul(d,e.invTransform,a),a=d);var s=this.origin;s&&(s[0]||s[1])&&(i[4]=s[0],i[5]=s[1],se.mul(d,a,i),d[4]-=s[0],d[5]-=s[1],a=d),this.setLocalTransform(a)},w.getGlobalScale=function(e){var a=this.transform;return e=e||[],a?(e[0]=Math.sqrt(a[0]*a[0]+a[1]*a[1]),e[1]=Math.sqrt(a[2]*a[2]+a[3]*a[3]),a[0]<0&&(e[0]=-e[0]),a[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},w.transformCoordToLocal=function(e,a){var s=[e,a],o=this.invTransform;return o&&G.applyTransform(s,s,o),s},w.transformCoordToGlobal=function(e,a){var s=[e,a],o=this.transform;return o&&G.applyTransform(s,s,o),s},C.getLocalTransform=function(e,a){a=a||[],M(a);var s=e.origin,o=e.scale||[1,1],f=e.rotation||0,l=e.position||[0,0];return s&&(a[4]-=s[0],a[5]-=s[1]),se.scale(a,a,o),f&&se.rotate(a,a,f),s&&(a[4]+=s[0],a[5]+=s[1]),a[4]+=l[0],a[5]+=l[1],a};var n=C;Ge.exports=n},Dagg:function(Ge,fe,R){var se=R("Gev7"),G=R("mFDi"),M=R("bYtY"),v=R("Xnb7");function b(w){se.call(this,w)}b.prototype={constructor:b,type:"image",brush:function(w,m){var d=this.style,i=d.image;d.bind(w,this,m);var n=this._image=v.createOrUpdateImage(i,this._image,this,this.onload);if(!n||!v.isImageReady(n))return;var e=d.x||0,a=d.y||0,s=d.width,o=d.height,f=n.width/n.height;if(s==null&&o!=null?s=o*f:o==null&&s!=null?o=s/f:s==null&&o==null&&(s=n.width,o=n.height),this.setTransform(w),d.sWidth&&d.sHeight){var l=d.sx||0,r=d.sy||0;w.drawImage(n,l,r,d.sWidth,d.sHeight,e,a,s,o)}else if(d.sx&&d.sy){var l=d.sx,r=d.sy,c=s-l,A=o-r;w.drawImage(n,l,r,c,A,e,a,s,o)}else w.drawImage(n,e,a,s,o);d.text!=null&&(this.restoreTransform(w),this.drawRectText(w,this.getBoundingRect()))},getBoundingRect:function(){var w=this.style;return this._rect||(this._rect=new G(w.x||0,w.y||0,w.width||0,w.height||0)),this._rect}},M.inherits(b,se);var C=b;Ge.exports=C},DlQD:function(Ge,fe,R){(function(se,G){Ge.exports=G()})(this,function(){"use strict";function se(rt,Ze){for(var $e=0;$e<Ze.length;$e++){var Ue=Ze[$e];Ue.enumerable=Ue.enumerable||!1,Ue.configurable=!0,"value"in Ue&&(Ue.writable=!0),Object.defineProperty(rt,Ue.key,Ue)}}function G(rt,Ze,$e){return Ze&&se(rt.prototype,Ze),$e&&se(rt,$e),rt}function M(rt,Ze){if(!rt)return;if(typeof rt=="string")return v(rt,Ze);var $e=Object.prototype.toString.call(rt).slice(8,-1);if($e==="Object"&&rt.constructor&&($e=rt.constructor.name),$e==="Map"||$e==="Set")return Array.from(rt);if($e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($e))return v(rt,Ze)}function v(rt,Ze){(Ze==null||Ze>rt.length)&&(Ze=rt.length);for(var $e=0,Ue=new Array(Ze);$e<Ze;$e++)Ue[$e]=rt[$e];return Ue}function b(rt,Ze){var $e;if(typeof Symbol=="undefined"||rt[Symbol.iterator]==null){if(Array.isArray(rt)||($e=M(rt))||Ze&&rt&&typeof rt.length=="number"){$e&&(rt=$e);var Ue=0;return function(){return Ue>=rt.length?{done:!0}:{done:!1,value:rt[Ue++]}}}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 $e=rt[Symbol.iterator](),$e.next.bind($e)}function C(rt,Ze){return Ze={exports:{}},rt(Ze,Ze.exports),Ze.exports}var w=C(function(rt){function Ze(){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 $e(Ue){rt.exports.defaults=Ue}rt.exports={defaults:Ze(),getDefaults:Ze,changeDefaults:$e}}),m=w.defaults,d=w.getDefaults,i=w.changeDefaults,n=/[&<>"']/,e=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},f=function(Ze){return o[Ze]};function l(rt,Ze){if(Ze){if(n.test(rt))return rt.replace(e,f)}else if(a.test(rt))return rt.replace(s,f);return rt}var r=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function c(rt){return rt.replace(r,function(Ze,$e){return $e=$e.toLowerCase(),$e==="colon"?":":$e.charAt(0)==="#"?$e.charAt(1)==="x"?String.fromCharCode(parseInt($e.substring(2),16)):String.fromCharCode(+$e.substring(1)):""})}var A=/(^|[^\[])\^/g;function p(rt,Ze){rt=rt.source||rt,Ze=Ze||"";var $e={replace:function(Ne,We){return We=We.source||We,We=We.replace(A,"$1"),rt=rt.replace(Ne,We),$e},getRegex:function(){return new RegExp(rt,Ze)}};return $e}var x=/[^\w:]/g,_=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function B(rt,Ze,$e){if(rt){var Ue;try{Ue=decodeURIComponent(c($e)).replace(x,"").toLowerCase()}catch(Ne){return null}if(Ue.indexOf("javascript:")===0||Ue.indexOf("vbscript:")===0||Ue.indexOf("data:")===0)return null}Ze&&!_.test($e)&&($e=S(Ze,$e));try{$e=encodeURI($e).replace(/%25/g,"%")}catch(Ne){return null}return $e}var E={},g=/^[^:]+:\/*[^/]*$/,h=/^([^:]+:)[\s\S]*$/,u=/^([^:]+:\/*[^/]*)[\s\S]*$/;function S(rt,Ze){E[" "+rt]||(g.test(rt)?E[" "+rt]=rt+"/":E[" "+rt]=I(rt,"/",!0)),rt=E[" "+rt];var $e=rt.indexOf(":")===-1;return Ze.substring(0,2)==="//"?$e?Ze:rt.replace(h,"$1")+Ze:Ze.charAt(0)==="/"?$e?Ze:rt.replace(u,"$1")+Ze:rt+Ze}var O={exec:function(){}};function T(rt){for(var Ze=1,$e,Ue;Ze<arguments.length;Ze++){$e=arguments[Ze];for(Ue in $e)Object.prototype.hasOwnProperty.call($e,Ue)&&(rt[Ue]=$e[Ue])}return rt}function D(rt,Ze){var $e=rt.replace(/\|/g,function(We,it,yt){for(var vt=!1,Mt=it;--Mt>=0&&yt[Mt]==="\\";)vt=!vt;return vt?"|":" |"}),Ue=$e.split(/ \|/),Ne=0;if(Ue.length>Ze)Ue.splice(Ze);else for(;Ue.length<Ze;)Ue.push("");for(;Ne<Ue.length;Ne++)Ue[Ne]=Ue[Ne].trim().replace(/\\\|/g,"|");return Ue}function I(rt,Ze,$e){var Ue=rt.length;if(Ue===0)return"";for(var Ne=0;Ne<Ue;){var We=rt.charAt(Ue-Ne-1);if(We===Ze&&!$e)Ne++;else if(We!==Ze&&$e)Ne++;else break}return rt.substr(0,Ue-Ne)}function k(rt,Ze){if(rt.indexOf(Ze[1])===-1)return-1;for(var $e=rt.length,Ue=0,Ne=0;Ne<$e;Ne++)if(rt[Ne]==="\\")Ne++;else if(rt[Ne]===Ze[0])Ue++;else if(rt[Ne]===Ze[1]&&(Ue--,Ue<0))return Ne;return-1}function F(rt){rt&&rt.sanitize&&!rt.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var X={escape:l,unescape:c,edit:p,cleanUrl:B,resolveUrl:S,noopTest:O,merge:T,splitCells:D,rtrim:I,findClosingBracket:k,checkSanitizeDeprecation:F},U=w.defaults,K=X.rtrim,V=X.splitCells,N=X.escape,Q=X.findClosingBracket;function J(rt,Ze,$e){var Ue=Ze.href,Ne=Ze.title?N(Ze.title):null,We=rt[1].replace(/\\([\[\]])/g,"$1");return rt[0].charAt(0)!=="!"?{type:"link",raw:$e,href:Ue,title:Ne,text:We}:{type:"image",raw:$e,href:Ue,title:Ne,text:N(We)}}function ne(rt,Ze){var $e=rt.match(/^(\s+)(?:```)/);if($e===null)return Ze;var Ue=$e[1];return Ze.split(`
`).map(function(Ne){var We=Ne.match(/^\s+/);if(We===null)return Ne;var it=We[0];return it.length>=Ue.length?Ne.slice(Ue.length):Ne}).join(`
`)}var ue=function(){function rt($e){this.options=$e||U}var Ze=rt.prototype;return Ze.space=function(Ue){var Ne=this.rules.block.newline.exec(Ue);if(Ne)return Ne[0].length>1?{type:"space",raw:Ne[0]}:{raw:`
`}},Ze.code=function(Ue,Ne){var We=this.rules.block.code.exec(Ue);if(We){var it=Ne[Ne.length-1];if(it&&it.type==="paragraph")return{raw:We[0],text:We[0].trimRight()};var yt=We[0].replace(/^ {4}/gm,"");return{type:"code",raw:We[0],codeBlockStyle:"indented",text:this.options.pedantic?yt:K(yt,`
`)}}},Ze.fences=function(Ue){var Ne=this.rules.block.fences.exec(Ue);if(Ne){var We=Ne[0],it=ne(We,Ne[3]||"");return{type:"code",raw:We,lang:Ne[2]?Ne[2].trim():Ne[2],text:it}}},Ze.heading=function(Ue){var Ne=this.rules.block.heading.exec(Ue);if(Ne)return{type:"heading",raw:Ne[0],depth:Ne[1].length,text:Ne[2]}},Ze.nptable=function(Ue){var Ne=this.rules.block.nptable.exec(Ue);if(Ne){var We={type:"table",header:V(Ne[1].replace(/^ *| *\| *$/g,"")),align:Ne[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ne[3]?Ne[3].replace(/\n$/,"").split(`
`):[],raw:Ne[0]};if(We.header.length===We.align.length){var it=We.align.length,yt;for(yt=0;yt<it;yt++)/^ *-+: *$/.test(We.align[yt])?We.align[yt]="right":/^ *:-+: *$/.test(We.align[yt])?We.align[yt]="center":/^ *:-+ *$/.test(We.align[yt])?We.align[yt]="left":We.align[yt]=null;for(it=We.cells.length,yt=0;yt<it;yt++)We.cells[yt]=V(We.cells[yt],We.header.length);return We}}},Ze.hr=function(Ue){var Ne=this.rules.block.hr.exec(Ue);if(Ne)return{type:"hr",raw:Ne[0]}},Ze.blockquote=function(Ue){var Ne=this.rules.block.blockquote.exec(Ue);if(Ne){var We=Ne[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Ne[0],text:We}}},Ze.list=function(Ue){var Ne=this.rules.block.list.exec(Ue);if(Ne){for(var We=Ne[0],it=Ne[2],yt=it.length>1,vt=it[it.length-1]===")",Mt={type:"list",raw:We,ordered:yt,start:yt?+it.slice(0,-1):"",loose:!1,items:[]},Tt=Ne[0].match(this.rules.block.item),Rt=!1,kt,Ut,Bt,At,bt,je,qe,Ot=Tt.length,Ct=0;Ct<Ot;Ct++)kt=Tt[Ct],We=kt,Ut=kt.length,kt=kt.replace(/^ *([*+-]|\d+[.)]) */,""),~kt.indexOf(`
`)&&(Ut-=kt.length,kt=this.options.pedantic?kt.replace(/^ {1,4}/gm,""):kt.replace(new RegExp("^ {1,"+Ut+"}","gm"),"")),Ct!==Ot-1&&(Bt=this.rules.block.bullet.exec(Tt[Ct+1])[0],(yt?Bt.length===1||!vt&&Bt[Bt.length-1]===")":Bt.length>1||this.options.smartLists&&Bt!==it)&&(At=Tt.slice(Ct+1).join(`
`),Mt.raw=Mt.raw.substring(0,Mt.raw.length-At.length),Ct=Ot-1)),bt=Rt||/\n\n(?!\s*$)/.test(kt),Ct!==Ot-1&&(Rt=kt.charAt(kt.length-1)===`
`,bt||(bt=Rt)),bt&&(Mt.loose=!0),je=/^\[[ xX]\] /.test(kt),qe=void 0,je&&(qe=kt[1]!==" ",kt=kt.replace(/^\[[ xX]\] +/,"")),Mt.items.push({type:"list_item",raw:We,task:je,checked:qe,loose:bt,text:kt});return Mt}},Ze.html=function(Ue){var Ne=this.rules.block.html.exec(Ue);if(Ne)return{type:this.options.sanitize?"paragraph":"html",raw:Ne[0],pre:!this.options.sanitizer&&(Ne[1]==="pre"||Ne[1]==="script"||Ne[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ne[0]):N(Ne[0]):Ne[0]}},Ze.def=function(Ue){var Ne=this.rules.block.def.exec(Ue);if(Ne){Ne[3]&&(Ne[3]=Ne[3].substring(1,Ne[3].length-1));var We=Ne[1].toLowerCase().replace(/\s+/g," ");return{tag:We,raw:Ne[0],href:Ne[2],title:Ne[3]}}},Ze.table=function(Ue){var Ne=this.rules.block.table.exec(Ue);if(Ne){var We={type:"table",header:V(Ne[1].replace(/^ *| *\| *$/g,"")),align:Ne[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ne[3]?Ne[3].replace(/\n$/,"").split(`
`):[]};if(We.header.length===We.align.length){We.raw=Ne[0];var it=We.align.length,yt;for(yt=0;yt<it;yt++)/^ *-+: *$/.test(We.align[yt])?We.align[yt]="right":/^ *:-+: *$/.test(We.align[yt])?We.align[yt]="center":/^ *:-+ *$/.test(We.align[yt])?We.align[yt]="left":We.align[yt]=null;for(it=We.cells.length,yt=0;yt<it;yt++)We.cells[yt]=V(We.cells[yt].replace(/^ *\| *| *\| *$/g,""),We.header.length);return We}}},Ze.lheading=function(Ue){var Ne=this.rules.block.lheading.exec(Ue);if(Ne)return{type:"heading",raw:Ne[0],depth:Ne[2].charAt(0)==="="?1:2,text:Ne[1]}},Ze.paragraph=function(Ue){var Ne=this.rules.block.paragraph.exec(Ue);if(Ne)return{type:"paragraph",raw:Ne[0],text:Ne[1].charAt(Ne[1].length-1)===`
`?Ne[1].slice(0,-1):Ne[1]}},Ze.text=function(Ue,Ne){var We=this.rules.block.text.exec(Ue);if(We){var it=Ne[Ne.length-1];return it&&it.type==="text"?{raw:We[0],text:We[0]}:{type:"text",raw:We[0],text:We[0]}}},Ze.escape=function(Ue){var Ne=this.rules.inline.escape.exec(Ue);if(Ne)return{type:"escape",raw:Ne[0],text:N(Ne[1])}},Ze.tag=function(Ue,Ne,We){var it=this.rules.inline.tag.exec(Ue);if(it)return!Ne&&/^<a /i.test(it[0])?Ne=!0:Ne&&/^<\/a>/i.test(it[0])&&(Ne=!1),!We&&/^<(pre|code|kbd|script)(\s|>)/i.test(it[0])?We=!0:We&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(it[0])&&(We=!1),{type:this.options.sanitize?"text":"html",raw:it[0],inLink:Ne,inRawBlock:We,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(it[0]):N(it[0]):it[0]}},Ze.link=function(Ue){var Ne=this.rules.inline.link.exec(Ue);if(Ne){var We=Q(Ne[2],"()");if(We>-1){var it=Ne[0].indexOf("!")===0?5:4,yt=it+Ne[1].length+We;Ne[2]=Ne[2].substring(0,We),Ne[0]=Ne[0].substring(0,yt).trim(),Ne[3]=""}var vt=Ne[2],Mt="";if(this.options.pedantic){var Tt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(vt);Tt?(vt=Tt[1],Mt=Tt[3]):Mt=""}else Mt=Ne[3]?Ne[3].slice(1,-1):"";vt=vt.trim().replace(/^<([\s\S]*)>$/,"$1");var Rt=J(Ne,{href:vt&&vt.replace(this.rules.inline._escapes,"$1"),title:Mt&&Mt.replace(this.rules.inline._escapes,"$1")},Ne[0]);return Rt}},Ze.reflink=function(Ue,Ne){var We;if((We=this.rules.inline.reflink.exec(Ue))||(We=this.rules.inline.nolink.exec(Ue))){var it=(We[2]||We[1]).replace(/\s+/g," ");if(it=Ne[it.toLowerCase()],!it||!it.href){var yt=We[0].charAt(0);return{type:"text",raw:yt,text:yt}}var vt=J(We,it,We[0]);return vt}},Ze.strong=function(Ue,Ne,We){We===void 0&&(We="");var it=this.rules.inline.strong.start.exec(Ue);if(it&&(!it[1]||it[1]&&(We===""||this.rules.inline.punctuation.exec(We)))){Ne=Ne.slice(-1*Ue.length);var yt=it[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;yt.lastIndex=0;for(var vt;(it=yt.exec(Ne))!=null;)if(vt=this.rules.inline.strong.middle.exec(Ne.slice(0,it.index+3)),vt)return{type:"strong",raw:Ue.slice(0,vt[0].length),text:Ue.slice(2,vt[0].length-2)}}},Ze.em=function(Ue,Ne,We){We===void 0&&(We="");var it=this.rules.inline.em.start.exec(Ue);if(it&&(!it[1]||it[1]&&(We===""||this.rules.inline.punctuation.exec(We)))){Ne=Ne.slice(-1*Ue.length);var yt=it[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;yt.lastIndex=0;for(var vt;(it=yt.exec(Ne))!=null;)if(vt=this.rules.inline.em.middle.exec(Ne.slice(0,it.index+2)),vt)return{type:"em",raw:Ue.slice(0,vt[0].length),text:Ue.slice(1,vt[0].length-1)}}},Ze.codespan=function(Ue){var Ne=this.rules.inline.code.exec(Ue);if(Ne){var We=Ne[2].replace(/\n/g," "),it=/[^ ]/.test(We),yt=We.startsWith(" ")&&We.endsWith(" ");return it&&yt&&(We=We.substring(1,We.length-1)),We=N(We,!0),{type:"codespan",raw:Ne[0],text:We}}},Ze.br=function(Ue){var Ne=this.rules.inline.br.exec(Ue);if(Ne)return{type:"br",raw:Ne[0]}},Ze.del=function(Ue){var Ne=this.rules.inline.del.exec(Ue);if(Ne)return{type:"del",raw:Ne[0],text:Ne[1]}},Ze.autolink=function(Ue,Ne){var We=this.rules.inline.autolink.exec(Ue);if(We){var it,yt;return We[2]==="@"?(it=N(this.options.mangle?Ne(We[1]):We[1]),yt="mailto:"+it):(it=N(We[1]),yt=it),{type:"link",raw:We[0],text:it,href:yt,tokens:[{type:"text",raw:it,text:it}]}}},Ze.url=function(Ue,Ne){var We;if(We=this.rules.inline.url.exec(Ue)){var it,yt;if(We[2]==="@")it=N(this.options.mangle?Ne(We[0]):We[0]),yt="mailto:"+it;else{var vt;do vt=We[0],We[0]=this.rules.inline._backpedal.exec(We[0])[0];while(vt!==We[0]);it=N(We[0]),We[1]==="www."?yt="http://"+it:yt=it}return{type:"link",raw:We[0],text:it,href:yt,tokens:[{type:"text",raw:it,text:it}]}}},Ze.inlineText=function(Ue,Ne,We){var it=this.rules.inline.text.exec(Ue);if(it){var yt;return Ne?yt=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(it[0]):N(it[0]):it[0]:yt=N(this.options.smartypants?We(it[0]):it[0]),{type:"text",raw:it[0],text:yt}}},rt}(),be=X.noopTest,de=X.edit,_e=X.merge,me={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:be,table:be,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};me._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,me._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,me.def=de(me.def).replace("label",me._label).replace("title",me._title).getRegex(),me.bullet=/(?:[*+-]|\d{1,9}[.)])/,me.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,me.item=de(me.item,"gm").replace(/bull/g,me.bullet).getRegex(),me.list=de(me.list).replace(/bull/g,me.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+me.def.source+")").getRegex(),me._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",me._comment=/<!--(?!-?>)[\s\S]*?-->/,me.html=de(me.html,"i").replace("comment",me._comment).replace("tag",me._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),me.paragraph=de(me._paragraph).replace("hr",me.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",me._tag).getRegex(),me.blockquote=de(me.blockquote).replace("paragraph",me.paragraph).getRegex(),me.normal=_e({},me),me.gfm=_e({},me.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*|$)"}),me.gfm.nptable=de(me.gfm.nptable).replace("hr",me.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",me._tag).getRegex(),me.gfm.table=de(me.gfm.table).replace("hr",me.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",me._tag).getRegex(),me.pedantic=_e({},me.normal,{html:de(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",me._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:be,paragraph:de(me.normal._paragraph).replace("hr",me.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",me.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Ee={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:be,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\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:be,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};Ee._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ee.punctuation=de(Ee.punctuation).replace(/punctuation/g,Ee._punctuation).getRegex(),Ee._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Ee._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Ee.em.start=de(Ee.em.start).replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.em.middle=de(Ee.em.middle).replace(/punctuation/g,Ee._punctuation).replace(/overlapSkip/g,Ee._overlapSkip).getRegex(),Ee.em.endAst=de(Ee.em.endAst,"g").replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.em.endUnd=de(Ee.em.endUnd,"g").replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.strong.start=de(Ee.strong.start).replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.strong.middle=de(Ee.strong.middle).replace(/punctuation/g,Ee._punctuation).replace(/blockSkip/g,Ee._blockSkip).getRegex(),Ee.strong.endAst=de(Ee.strong.endAst,"g").replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.strong.endUnd=de(Ee.strong.endUnd,"g").replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.blockSkip=de(Ee._blockSkip,"g").getRegex(),Ee.overlapSkip=de(Ee._overlapSkip,"g").getRegex(),Ee._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ee._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ee._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])?)+(?![-_])/,Ee.autolink=de(Ee.autolink).replace("scheme",Ee._scheme).replace("email",Ee._email).getRegex(),Ee._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ee.tag=de(Ee.tag).replace("comment",me._comment).replace("attribute",Ee._attribute).getRegex(),Ee._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ee._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Ee._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ee.link=de(Ee.link).replace("label",Ee._label).replace("href",Ee._href).replace("title",Ee._title).getRegex(),Ee.reflink=de(Ee.reflink).replace("label",Ee._label).getRegex(),Ee.reflinkSearch=de(Ee.reflinkSearch,"g").replace("reflink",Ee.reflink).replace("nolink",Ee.nolink).getRegex(),Ee.normal=_e({},Ee),Ee.pedantic=_e({},Ee.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:de(/^!?\[(label)\]\((.*?)\)/).replace("label",Ee._label).getRegex(),reflink:de(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ee._label).getRegex()}),Ee.gfm=_e({},Ee.normal,{escape:de(Ee.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]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),Ee.gfm.url=de(Ee.gfm.url,"i").replace("email",Ee.gfm._extended_email).getRegex(),Ee.breaks=_e({},Ee.gfm,{br:de(Ee.br).replace("{2,}","*").getRegex(),text:de(Ee.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var ge={block:me,inline:Ee},Ae=w.defaults,ae=ge.block,ve=ge.inline;function oe(rt){return rt.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function ie(rt){var Ze="",$e,Ue,Ne=rt.length;for($e=0;$e<Ne;$e++)Ue=rt.charCodeAt($e),Math.random()>.5&&(Ue="x"+Ue.toString(16)),Ze+="&#"+Ue+";";return Ze}var Te=function(){function rt($e){this.tokens=[],this.tokens.links=Object.create(null),this.options=$e||Ae,this.options.tokenizer=this.options.tokenizer||new ue,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ue={block:ae.normal,inline:ve.normal};this.options.pedantic?(Ue.block=ae.pedantic,Ue.inline=ve.pedantic):this.options.gfm&&(Ue.block=ae.gfm,this.options.breaks?Ue.inline=ve.breaks:Ue.inline=ve.gfm),this.tokenizer.rules=Ue}rt.lex=function(Ue,Ne){var We=new rt(Ne);return We.lex(Ue)};var Ze=rt.prototype;return Ze.lex=function(Ue){return Ue=Ue.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Ue,this.tokens,!0),this.inline(this.tokens),this.tokens},Ze.blockTokens=function(Ue,Ne,We){Ne===void 0&&(Ne=[]),We===void 0&&(We=!0),Ue=Ue.replace(/^ +$/gm,"");for(var it,yt,vt,Mt;Ue;){if(it=this.tokenizer.space(Ue)){Ue=Ue.substring(it.raw.length),it.type&&Ne.push(it);continue}if(it=this.tokenizer.code(Ue,Ne)){Ue=Ue.substring(it.raw.length),it.type?Ne.push(it):(Mt=Ne[Ne.length-1],Mt.raw+=`
`+it.raw,Mt.text+=`
`+it.text);continue}if(it=this.tokenizer.fences(Ue)){Ue=Ue.substring(it.raw.length),Ne.push(it);continue}if(it=this.tokenizer.heading(Ue)){Ue=Ue.substring(it.raw.length),Ne.push(it);continue}if(it=this.tokenizer.nptable(Ue)){Ue=Ue.substring(it.raw.length),Ne.push(it);continue}if(it=this.tokenizer.hr(Ue)){Ue=Ue.substring(it.raw.length),Ne.push(it);continue}if(it=this.tokenizer.blockquote(Ue)){Ue=Ue.substring(it.raw.length),it.tokens=this.blockTokens(it.text,[],We),Ne.push(it);continue}if(it=this.tokenizer.list(Ue)){for(Ue=Ue.substring(it.raw.length),vt=it.items.length,yt=0;yt<vt;yt++)it.items[yt].tokens=this.blockTokens(it.items[yt].text,[],!1);Ne.push(it);continue}if(it=this.tokenizer.html(Ue)){Ue=Ue.substring(it.raw.length),Ne.push(it);continue}if(We&&(it=this.tokenizer.def(Ue))){Ue=Ue.substring(it.raw.length),this.tokens.links[it.tag]||(this.tokens.links[it.tag]={href:it.href,title:it.title});continue}if(it=this.tokenizer.table(Ue)){Ue=Ue.substring(it.raw.length),Ne.push(it);continue}if(it=this.tokenizer.lheading(Ue)){Ue=Ue.substring(it.raw.length),Ne.push(it);continue}if(We&&(it=this.tokenizer.paragraph(Ue))){Ue=Ue.substring(it.raw.length),Ne.push(it);continue}if(it=this.tokenizer.text(Ue,Ne)){Ue=Ue.substring(it.raw.length),it.type?Ne.push(it):(Mt=Ne[Ne.length-1],Mt.raw+=`
`+it.raw,Mt.text+=`
`+it.text);continue}if(Ue){var Tt="Infinite loop on byte: "+Ue.charCodeAt(0);if(this.options.silent){console.error(Tt);break}else throw new Error(Tt)}}return Ne},Ze.inline=function(Ue){var Ne,We,it,yt,vt,Mt,Tt=Ue.length;for(Ne=0;Ne<Tt;Ne++){Mt=Ue[Ne];switch(Mt.type){case"paragraph":case"text":case"heading":{Mt.tokens=[],this.inlineTokens(Mt.text,Mt.tokens);break}case"table":{for(Mt.tokens={header:[],cells:[]},yt=Mt.header.length,We=0;We<yt;We++)Mt.tokens.header[We]=[],this.inlineTokens(Mt.header[We],Mt.tokens.header[We]);for(yt=Mt.cells.length,We=0;We<yt;We++)for(vt=Mt.cells[We],Mt.tokens.cells[We]=[],it=0;it<vt.length;it++)Mt.tokens.cells[We][it]=[],this.inlineTokens(vt[it],Mt.tokens.cells[We][it]);break}case"blockquote":{this.inline(Mt.tokens);break}case"list":{for(yt=Mt.items.length,We=0;We<yt;We++)this.inline(Mt.items[We].tokens);break}}}return Ue},Ze.inlineTokens=function(Ue,Ne,We,it,yt){Ne===void 0&&(Ne=[]),We===void 0&&(We=!1),it===void 0&&(it=!1),yt===void 0&&(yt="");var vt,Mt=Ue,Tt;if(this.tokens.links){var Rt=Object.keys(this.tokens.links);if(Rt.length>0)for(;(Tt=this.tokenizer.rules.inline.reflinkSearch.exec(Mt))!=null;)Rt.includes(Tt[0].slice(Tt[0].lastIndexOf("[")+1,-1))&&(Mt=Mt.slice(0,Tt.index)+"["+"a".repeat(Tt[0].length-2)+"]"+Mt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Tt=this.tokenizer.rules.inline.blockSkip.exec(Mt))!=null;)Mt=Mt.slice(0,Tt.index)+"["+"a".repeat(Tt[0].length-2)+"]"+Mt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ue;){if(vt=this.tokenizer.escape(Ue)){Ue=Ue.substring(vt.raw.length),Ne.push(vt);continue}if(vt=this.tokenizer.tag(Ue,We,it)){Ue=Ue.substring(vt.raw.length),We=vt.inLink,it=vt.inRawBlock,Ne.push(vt);continue}if(vt=this.tokenizer.link(Ue)){Ue=Ue.substring(vt.raw.length),vt.type==="link"&&(vt.tokens=this.inlineTokens(vt.text,[],!0,it)),Ne.push(vt);continue}if(vt=this.tokenizer.reflink(Ue,this.tokens.links)){Ue=Ue.substring(vt.raw.length),vt.type==="link"&&(vt.tokens=this.inlineTokens(vt.text,[],!0,it)),Ne.push(vt);continue}if(vt=this.tokenizer.strong(Ue,Mt,yt)){Ue=Ue.substring(vt.raw.length),vt.tokens=this.inlineTokens(vt.text,[],We,it),Ne.push(vt);continue}if(vt=this.tokenizer.em(Ue,Mt,yt)){Ue=Ue.substring(vt.raw.length),vt.tokens=this.inlineTokens(vt.text,[],We,it),Ne.push(vt);continue}if(vt=this.tokenizer.codespan(Ue)){Ue=Ue.substring(vt.raw.length),Ne.push(vt);continue}if(vt=this.tokenizer.br(Ue)){Ue=Ue.substring(vt.raw.length),Ne.push(vt);continue}if(vt=this.tokenizer.del(Ue)){Ue=Ue.substring(vt.raw.length),vt.tokens=this.inlineTokens(vt.text,[],We,it),Ne.push(vt);continue}if(vt=this.tokenizer.autolink(Ue,ie)){Ue=Ue.substring(vt.raw.length),Ne.push(vt);continue}if(!We&&(vt=this.tokenizer.url(Ue,ie))){Ue=Ue.substring(vt.raw.length),Ne.push(vt);continue}if(vt=this.tokenizer.inlineText(Ue,it,oe)){Ue=Ue.substring(vt.raw.length),yt=vt.raw.slice(-1),Ne.push(vt);continue}if(Ue){var kt="Infinite loop on byte: "+Ue.charCodeAt(0);if(this.options.silent){console.error(kt);break}else throw new Error(kt)}}return Ne},G(rt,null,[{key:"rules",get:function(){return{block:ae,inline:ve}}}]),rt}(),Re=w.defaults,Me=X.cleanUrl,re=X.escape,j=function(){function rt($e){this.options=$e||Re}var Ze=rt.prototype;return Ze.code=function(Ue,Ne,We){var it=(Ne||"").match(/\S*/)[0];if(this.options.highlight){var yt=this.options.highlight(Ue,it);yt!=null&&yt!==Ue&&(We=!0,Ue=yt)}return it?'<pre><code class="'+this.options.langPrefix+re(it,!0)+'">'+(We?Ue:re(Ue,!0))+`</code></pre>
`:"<pre><code>"+(We?Ue:re(Ue,!0))+`</code></pre>
`},Ze.blockquote=function(Ue){return`<blockquote>
`+Ue+`</blockquote>
`},Ze.html=function(Ue){return Ue},Ze.heading=function(Ue,Ne,We,it){return this.options.headerIds?"<h"+Ne+' id="'+this.options.headerPrefix+it.slug(We)+'">'+Ue+"</h"+Ne+`>
`:"<h"+Ne+">"+Ue+"</h"+Ne+`>
`},Ze.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Ze.list=function(Ue,Ne,We){var it=Ne?"ol":"ul",yt=Ne&&We!==1?' start="'+We+'"':"";return"<"+it+yt+`>
`+Ue+"</"+it+`>
`},Ze.listitem=function(Ue){return"<li>"+Ue+`</li>
`},Ze.checkbox=function(Ue){return"<input "+(Ue?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Ze.paragraph=function(Ue){return"<p>"+Ue+`</p>
`},Ze.table=function(Ue,Ne){return Ne&&(Ne="<tbody>"+Ne+"</tbody>"),`<table>
<thead>
`+Ue+`</thead>
`+Ne+`</table>
`},Ze.tablerow=function(Ue){return`<tr>
`+Ue+`</tr>
`},Ze.tablecell=function(Ue,Ne){var We=Ne.header?"th":"td",it=Ne.align?"<"+We+' align="'+Ne.align+'">':"<"+We+">";return it+Ue+"</"+We+`>
`},Ze.strong=function(Ue){return"<strong>"+Ue+"</strong>"},Ze.em=function(Ue){return"<em>"+Ue+"</em>"},Ze.codespan=function(Ue){return"<code>"+Ue+"</code>"},Ze.br=function(){return this.options.xhtml?"<br/>":"<br>"},Ze.del=function(Ue){return"<del>"+Ue+"</del>"},Ze.link=function(Ue,Ne,We){if(Ue=Me(this.options.sanitize,this.options.baseUrl,Ue),Ue===null)return We;var it='<a href="'+re(Ue)+'"';return Ne&&(it+=' title="'+Ne+'"'),it+=">"+We+"</a>",it},Ze.image=function(Ue,Ne,We){if(Ue=Me(this.options.sanitize,this.options.baseUrl,Ue),Ue===null)return We;var it='<img src="'+Ue+'" alt="'+We+'"';return Ne&&(it+=' title="'+Ne+'"'),it+=this.options.xhtml?"/>":">",it},Ze.text=function(Ue){return Ue},rt}(),W=function(){function rt(){}var Ze=rt.prototype;return Ze.strong=function(Ue){return Ue},Ze.em=function(Ue){return Ue},Ze.codespan=function(Ue){return Ue},Ze.del=function(Ue){return Ue},Ze.html=function(Ue){return Ue},Ze.text=function(Ue){return Ue},Ze.link=function(Ue,Ne,We){return""+We},Ze.image=function(Ue,Ne,We){return""+We},Ze.br=function(){return""},rt}(),he=function(){function rt(){this.seen={}}var Ze=rt.prototype;return Ze.slug=function(Ue){var Ne=Ue.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ne)){var We=Ne;do this.seen[We]++,Ne=We+"-"+this.seen[We];while(this.seen.hasOwnProperty(Ne))}return this.seen[Ne]=0,Ne},rt}(),te=w.defaults,ce=X.unescape,Ie=function(){function rt($e){this.options=$e||te,this.options.renderer=this.options.renderer||new j,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new W,this.slugger=new he}rt.parse=function(Ue,Ne){var We=new rt(Ne);return We.parse(Ue)};var Ze=rt.prototype;return Ze.parse=function(Ue,Ne){Ne===void 0&&(Ne=!0);var We="",it,yt,vt,Mt,Tt,Rt,kt,Ut,Bt,At,bt,je,qe,Ot,Ct,jt,Vt,Et,Lt=Ue.length;for(it=0;it<Lt;it++){At=Ue[it];switch(At.type){case"space":continue;case"hr":{We+=this.renderer.hr();continue}case"heading":{We+=this.renderer.heading(this.parseInline(At.tokens),At.depth,ce(this.parseInline(At.tokens,this.textRenderer)),this.slugger);continue}case"code":{We+=this.renderer.code(At.text,At.lang,At.escaped);continue}case"table":{for(Ut="",kt="",Mt=At.header.length,yt=0;yt<Mt;yt++)kt+=this.renderer.tablecell(this.parseInline(At.tokens.header[yt]),{header:!0,align:At.align[yt]});for(Ut+=this.renderer.tablerow(kt),Bt="",Mt=At.cells.length,yt=0;yt<Mt;yt++){for(Rt=At.tokens.cells[yt],kt="",Tt=Rt.length,vt=0;vt<Tt;vt++)kt+=this.renderer.tablecell(this.parseInline(Rt[vt]),{header:!1,align:At.align[vt]});Bt+=this.renderer.tablerow(kt)}We+=this.renderer.table(Ut,Bt);continue}case"blockquote":{Bt=this.parse(At.tokens),We+=this.renderer.blockquote(Bt);continue}case"list":{for(bt=At.ordered,je=At.start,qe=At.loose,Mt=At.items.length,Bt="",yt=0;yt<Mt;yt++)Ct=At.items[yt],jt=Ct.checked,Vt=Ct.task,Ot="",Ct.task&&(Et=this.renderer.checkbox(jt),qe?Ct.tokens.length>0&&Ct.tokens[0].type==="text"?(Ct.tokens[0].text=Et+" "+Ct.tokens[0].text,Ct.tokens[0].tokens&&Ct.tokens[0].tokens.length>0&&Ct.tokens[0].tokens[0].type==="text"&&(Ct.tokens[0].tokens[0].text=Et+" "+Ct.tokens[0].tokens[0].text)):Ct.tokens.unshift({type:"text",text:Et}):Ot+=Et),Ot+=this.parse(Ct.tokens,qe),Bt+=this.renderer.listitem(Ot,Vt,jt);We+=this.renderer.list(Bt,bt,je);continue}case"html":{We+=this.renderer.html(At.text);continue}case"paragraph":{We+=this.renderer.paragraph(this.parseInline(At.tokens));continue}case"text":{for(Bt=At.tokens?this.parseInline(At.tokens):At.text;it+1<Lt&&Ue[it+1].type==="text";)At=Ue[++it],Bt+=`
`+(At.tokens?this.parseInline(At.tokens):At.text);We+=Ne?this.renderer.paragraph(Bt):Bt;continue}default:{var Ht='Token with "'+At.type+'" type was not found.';if(this.options.silent){console.error(Ht);return}else throw new Error(Ht)}}}return We},Ze.parseInline=function(Ue,Ne){Ne=Ne||this.renderer;var We="",it,yt,vt=Ue.length;for(it=0;it<vt;it++){yt=Ue[it];switch(yt.type){case"escape":{We+=Ne.text(yt.text);break}case"html":{We+=Ne.html(yt.text);break}case"link":{We+=Ne.link(yt.href,yt.title,this.parseInline(yt.tokens,Ne));break}case"image":{We+=Ne.image(yt.href,yt.title,yt.text);break}case"strong":{We+=Ne.strong(this.parseInline(yt.tokens,Ne));break}case"em":{We+=Ne.em(this.parseInline(yt.tokens,Ne));break}case"codespan":{We+=Ne.codespan(yt.text);break}case"br":{We+=Ne.br();break}case"del":{We+=Ne.del(this.parseInline(yt.tokens,Ne));break}case"text":{We+=Ne.text(yt.text);break}default:{var Mt='Token with "'+yt.type+'" type was not found.';if(this.options.silent){console.error(Mt);return}else throw new Error(Mt)}}}return We},rt}(),ze=X.merge,_t=X.checkSanitizeDeprecation,He=X.escape,Ke=w.getDefaults,ht=w.changeDefaults,St=w.defaults;function ct(rt,Ze,$e){if(typeof rt=="undefined"||rt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof rt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(rt)+", string expected");if(typeof Ze=="function"&&($e=Ze,Ze=null),Ze=ze({},ct.defaults,Ze||{}),_t(Ze),$e){var Ue=Ze.highlight,Ne;try{Ne=Te.lex(rt,Ze)}catch(vt){return $e(vt)}var We=function(Mt){var Tt;if(!Mt)try{Tt=Ie.parse(Ne,Ze)}catch(Rt){Mt=Rt}return Ze.highlight=Ue,Mt?$e(Mt):$e(null,Tt)};if(!Ue||Ue.length<3)return We();if(delete Ze.highlight,!Ne.length)return We();var it=0;ct.walkTokens(Ne,function(vt){vt.type==="code"&&(it++,setTimeout(function(){Ue(vt.text,vt.lang,function(Mt,Tt){if(Mt)return We(Mt);Tt!=null&&Tt!==vt.text&&(vt.text=Tt,vt.escaped=!0),it--,it===0&&We()})},0))}),it===0&&We();return}try{var yt=Te.lex(rt,Ze);return Ze.walkTokens&&ct.walkTokens(yt,Ze.walkTokens),Ie.parse(yt,Ze)}catch(vt){if(vt.message+=`
Please report this to https://github.com/markedjs/marked.`,Ze.silent)return"<p>An error occurred:</p><pre>"+He(vt.message+"",!0)+"</pre>";throw vt}}ct.options=ct.setOptions=function(rt){return ze(ct.defaults,rt),ht(ct.defaults),ct},ct.getDefaults=Ke,ct.defaults=St,ct.use=function(rt){var Ze=ze({},rt);if(rt.renderer&&function(){var Ue=ct.defaults.renderer||new j,Ne=function(yt){var vt=Ue[yt];Ue[yt]=function(){for(var Mt=arguments.length,Tt=new Array(Mt),Rt=0;Rt<Mt;Rt++)Tt[Rt]=arguments[Rt];var kt=rt.renderer[yt].apply(Ue,Tt);return kt===!1&&(kt=vt.apply(Ue,Tt)),kt}};for(var We in rt.renderer)Ne(We);Ze.renderer=Ue}(),rt.tokenizer&&function(){var Ue=ct.defaults.tokenizer||new ue,Ne=function(yt){var vt=Ue[yt];Ue[yt]=function(){for(var Mt=arguments.length,Tt=new Array(Mt),Rt=0;Rt<Mt;Rt++)Tt[Rt]=arguments[Rt];var kt=rt.tokenizer[yt].apply(Ue,Tt);return kt===!1&&(kt=vt.apply(Ue,Tt)),kt}};for(var We in rt.tokenizer)Ne(We);Ze.tokenizer=Ue}(),rt.walkTokens){var $e=ct.defaults.walkTokens;Ze.walkTokens=function(Ue){rt.walkTokens(Ue),$e&&$e(Ue)}}ct.setOptions(Ze)},ct.walkTokens=function(rt,Ze){for(var $e=b(rt),Ue;!(Ue=$e()).done;){var Ne=Ue.value;Ze(Ne);switch(Ne.type){case"table":{for(var We=b(Ne.tokens.header),it;!(it=We()).done;){var yt=it.value;ct.walkTokens(yt,Ze)}for(var vt=b(Ne.tokens.cells),Mt;!(Mt=vt()).done;)for(var Tt=Mt.value,Rt=b(Tt),kt;!(kt=Rt()).done;){var Ut=kt.value;ct.walkTokens(Ut,Ze)}break}case"list":{ct.walkTokens(Ne.items,Ze);break}default:Ne.tokens&&ct.walkTokens(Ne.tokens,Ze)}}},ct.Parser=Ie,ct.parser=Ie.parse,ct.Renderer=j,ct.TextRenderer=W,ct.Lexer=Te,ct.lexer=Te.lex,ct.Tokenizer=ue,ct.Slugger=he,ct.parse=ct;var lt=ct;return lt})},Dols:function(Ge,fe,R){Ge.exports={tree:"tree___22OZV",learn:"learn___ky8Lf",name:"name___2Aqg-",sign:"sign___1WxvA"}},E7E6:function(Ge,fe){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},ELLl:function(Ge,fe,R){(function(se){se(R("VrN/"))})(function(se){var G={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},M=se.Pos;se.defineOption("autoCloseBrackets",!1,function(o,f,l){l&&l!=se.Init&&(o.removeKeyMap(b),o.state.closeBrackets=null),f&&(C(v(f,"pairs")),o.state.closeBrackets=f,o.addKeyMap(b))});function v(o,f){return f=="pairs"&&typeof o=="string"?o:typeof o=="object"&&o[f]!=null?o[f]:G[f]}var b={Backspace:d,Enter:i};function C(o){for(var f=0;f<o.length;f++){var l=o.charAt(f),r="'"+l+"'";b[r]||(b[r]=w(l))}}C(G.pairs+"`");function w(o){return function(f){return e(f,o)}}function m(o){var f=o.state.closeBrackets;if(!f||f.override)return f;var l=o.getModeAt(o.getCursor());return l.closeBrackets||f}function d(o){var f=m(o);if(!f||o.getOption("disableInput"))return se.Pass;for(var l=v(f,"pairs"),r=o.listSelections(),c=0;c<r.length;c++){if(!r[c].empty())return se.Pass;var A=a(o,r[c].head);if(!A||l.indexOf(A)%2!=0)return se.Pass}for(var c=r.length-1;c>=0;c--){var p=r[c].head;o.replaceRange("",M(p.line,p.ch-1),M(p.line,p.ch+1),"+delete")}}function i(o){var f=m(o),l=f&&v(f,"explode");if(!l||o.getOption("disableInput"))return se.Pass;for(var r=o.listSelections(),c=0;c<r.length;c++){if(!r[c].empty())return se.Pass;var A=a(o,r[c].head);if(!A||l.indexOf(A)%2!=0)return se.Pass}o.operation(function(){var p=o.lineSeparator()||`
`;o.replaceSelection(p+p,null),o.execCommand("goCharLeft"),r=o.listSelections();for(var x=0;x<r.length;x++){var _=r[x].head.line;o.indentLine(_,null,!0),o.indentLine(_+1,null,!0)}})}function n(o){var f=se.cmpPos(o.anchor,o.head)>0;return{anchor:new M(o.anchor.line,o.anchor.ch+(f?-1:1)),head:new M(o.head.line,o.head.ch+(f?1:-1))}}function e(o,f){var l=m(o);if(!l||o.getOption("disableInput"))return se.Pass;var r=v(l,"pairs"),c=r.indexOf(f);if(c==-1)return se.Pass;for(var A=v(l,"closeBefore"),p=v(l,"triples"),x=r.charAt(c+1)==f,_=o.listSelections(),B=c%2==0,E,g=0;g<_.length;g++){var h=_[g],u=h.head,S,O=o.getRange(u,M(u.line,u.ch+1));if(B&&!h.empty())S="surround";else if((x||!B)&&O==f)x&&s(o,u)?S="both":p.indexOf(f)>=0&&o.getRange(u,M(u.line,u.ch+3))==f+f+f?S="skipThree":S="skip";else if(x&&u.ch>1&&p.indexOf(f)>=0&&o.getRange(M(u.line,u.ch-2),u)==f+f){if(u.ch>2&&/\bstring/.test(o.getTokenTypeAt(M(u.line,u.ch-2))))return se.Pass;S="addFour"}else if(x){var T=u.ch==0?" ":o.getRange(M(u.line,u.ch-1),u);if(!se.isWordChar(O)&&T!=f&&!se.isWordChar(T))S="both";else return se.Pass}else if(B&&(O.length===0||/\s/.test(O)||A.indexOf(O)>-1))S="both";else return se.Pass;if(!E)E=S;else if(E!=S)return se.Pass}var D=c%2?r.charAt(c-1):f,I=c%2?f:r.charAt(c+1);o.operation(function(){if(E=="skip")o.execCommand("goCharRight");else if(E=="skipThree")for(var k=0;k<3;k++)o.execCommand("goCharRight");else if(E=="surround"){for(var F=o.getSelections(),k=0;k<F.length;k++)F[k]=D+F[k]+I;o.replaceSelections(F,"around"),F=o.listSelections().slice();for(var k=0;k<F.length;k++)F[k]=n(F[k]);o.setSelections(F)}else E=="both"?(o.replaceSelection(D+I,null),o.triggerElectric(D+I),o.execCommand("goCharLeft")):E=="addFour"&&(o.replaceSelection(D+D+D+D,"before"),o.execCommand("goCharRight"))})}function a(o,f){var l=o.getRange(M(f.line,f.ch-1),M(f.line,f.ch+1));return l.length==2?l:null}function s(o,f){var l=o.getTokenAt(M(f.line,f.ch+1));return/\bstring/.test(l.type)&&l.start==f.ch&&(f.ch==0||!/\bstring/.test(o.getTokenTypeAt(f)))}})},FOrL:function(Ge,fe,R){Ge.exports=R.p+"static/nodata.a6b3f948.png"},FPkq:function(Ge,fe,R){Ge.exports=R.p+"static/qrCode.dd0fe9b2.png"},Fofx:function(Ge,fe){var R=typeof Float32Array=="undefined"?Array:Float32Array;function se(){var i=new R(6);return G(i),i}function G(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=1,i[4]=0,i[5]=0,i}function M(i,n){return i[0]=n[0],i[1]=n[1],i[2]=n[2],i[3]=n[3],i[4]=n[4],i[5]=n[5],i}function v(i,n,e){var a=n[0]*e[0]+n[2]*e[1],s=n[1]*e[0]+n[3]*e[1],o=n[0]*e[2]+n[2]*e[3],f=n[1]*e[2]+n[3]*e[3],l=n[0]*e[4]+n[2]*e[5]+n[4],r=n[1]*e[4]+n[3]*e[5]+n[5];return i[0]=a,i[1]=s,i[2]=o,i[3]=f,i[4]=l,i[5]=r,i}function b(i,n,e){return i[0]=n[0],i[1]=n[1],i[2]=n[2],i[3]=n[3],i[4]=n[4]+e[0],i[5]=n[5]+e[1],i}function C(i,n,e){var a=n[0],s=n[2],o=n[4],f=n[1],l=n[3],r=n[5],c=Math.sin(e),A=Math.cos(e);return i[0]=a*A+f*c,i[1]=-a*c+f*A,i[2]=s*A+l*c,i[3]=-s*c+A*l,i[4]=A*o+c*r,i[5]=A*r-c*o,i}function w(i,n,e){var a=e[0],s=e[1];return i[0]=n[0]*a,i[1]=n[1]*s,i[2]=n[2]*a,i[3]=n[3]*s,i[4]=n[4]*a,i[5]=n[5]*s,i}function m(i,n){var e=n[0],a=n[2],s=n[4],o=n[1],f=n[3],l=n[5],r=e*f-o*a;return r?(r=1/r,i[0]=f*r,i[1]=-o*r,i[2]=-a*r,i[3]=e*r,i[4]=(a*l-f*s)*r,i[5]=(o*s-e*l)*r,i):null}function d(i){var n=se();return M(n,i),n}fe.create=se,fe.identity=G,fe.copy=M,fe.mul=v,fe.translate=b,fe.rotate=C,fe.scale=w,fe.invert=m,fe.clone=d},FxDU:function(Ge,fe,R){"use strict";Object.defineProperty(fe,"__esModule",{value:!0}),fe.createSensor=void 0;var se=R("QO+J"),G=R("j5sG"),M=typeof ResizeObserver!="undefined"?G.createSensor:se.createSensor;fe.createSensor=M},GABl:function(Ge,fe){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/iY3m24R0p2jc6BDZrkVHf3XTiBFfMy9PdbSgNotCYv6kDAPGVhCTT3vz3zCNT7o9PhHJsRoIwUJN518TS0qKrWI62q4xQ/H5uTsB+Q3I0521zrcfGf/KuTMDBrguXar7or2mSuCCRm1q4t6SN5sGOGZBTQ9DsRdgJEFpQeo8pRvRJe/MYeMUMe2lYlQczl4cBki7jT78DyCVTN32qfkuRJC8Mrd3nSGNzYoa5wYm+P5kvivv43kakBdbbWTk1zqRnlBa6jdt8j4UR1Fx9WQAUyG4aqtEUIHYBWJh4ay4dQ28ciBjJiAvR5Qx8jtEOROZsuliSFBCQc4LSvBs4xogLjmjolPLH156VLKyok4ePuKHyK1XOSN/0Bz6PUlFRaXmuzELLrmNYHCVQO6wEhjBT5zReHj99LiToUwdGPIYgNesYMPE8hDTtq0JCYovyD0KkVuaGZHvnfb6xpjPTnk8o5WS91qSNC2bo+fWZiqq1RDpZDOggMPhHPHuzKi99aIy8gHx2uQwJ9t69tr2IBPfyr3TqJPPwxE4dGScGp+//XKB2CIiQ6/YcXP3faUjGjITNII7IxBTT0eeitJjB6yfyUr5MrMrLtT6IXDZFHUWaTd0Y8LKieOVEb6JkjgwOCbTvTY726j0eFINwT4RcYRi0LVfJZeUfGqumeKimgNWp1kbQX7w/pxOmaEsHRw6BaKW2BRkBjWQCQUTFylR01td9ODjgRzfq6Gp18ezSEGmEyxJ3lfaz3w2en7VNKUQen+tQ9O0ezfMiv1QjmZcj1oJQGBvl09tKl0Fuf8Rkd+1Koj4NkqPS/lq3D+/PztoUNcLF6oOQ7AweV/p8yZm5LyqveGqWSTiSK4pnB33UH2WMtZAJMsWD7HIFHRQRFLbBnLR6Rzfk6G15PFM05R2NHFf8RazzwSDqs0Dl52ACJ6PuTm229psXhJ/xjQosZl5vs/4/NxKQNpegERQd7B3xVjfIcnK0iuPHYtOLC6uHjW/dqQoo9BO0O3ZRkfpt6+bEXNY/BmZUPJ+e/bN3pM76crPrRVIdHtAkpsDXl+oqjWMUfOrpoiC/cXbhjPqWnrhU7E75NB9dyFYt6+9uFq838/4gpwfILjOCpBkZsDr+6DBduTcmomAWmYFa9VGc3DQhplxn4h/aAqU+sIqLmRHfkZXQU6ZCG63AiRZlpQa1bu4/9K6UEGYXzMESm2zgrVqQ2i3FM6JPS7+jIEwT832xi668nN2CPBbqziN2lOV3uULTPusl6uTahTKIZFuKpt7JXGm36y4hDxSiX/YI1DG61bjupyhzaag1QJkWwfyrO6MSqkYu/QbEzNqXvV2EbnXOr51S2p4o3BWJ3Nja5btAohMsMfLV80qtxCQGXaAJJcEvL5pJmb0vJpxStRKO/hwtuYunE7ds+HJ6P1yfEwXVJ+vgCDWFi8xg64Vk7JFGattAg2nw9n35NjX92etEb32qxpzn3dNWSKxvHB2p0n12RkyHYJFtmIyjXUtnT3eye1Sc16+gUC3Q0CyJCk1aqBZIB6YKzfVsdrcMSTY4WiwJbC/C+J+vWIOq0TyHPDvNI8rKba4iBpERXUNHR9cBTkfi9j/LEJqLwW8y582OR6Ye7FXHYx3gTDnpjYiM8U4o5nZeCbyD50BpRbaEmMaE1uZtn3Y5fPQxGch6gXbJKDSdW1ExfhlW0zsmAXSxQjW+ARy1X1ZS+76k6vkd5G4J8zMhKZa2ahuqKs+DPOLn91BPsK0bctCghJXTLrDUMoPiO3PJAQvApwSyFme3xDD6PmXPCJ1MwA+KCI/axqbWZpBFFJ3LDYLQNN3cnDIEgim2NWC+unmYsqmc42XEq6C3FUiEtrpRjIIzBscm/mMeXZqih+9UOIhNbeFMhBkRb/ZMV+afaalDykb3gdBowRi/0cFtcVM2xqq1FcErZyYKoZ8FkmWGoMjjwGy6MaYTsv82a9eaOuHue2DJ6KP3P/KxQYbOThkB8R6g2/i8xwcsbfyjsJQX2x50XhNWboigGcBrKam7RKRMqce+vodYwiSIOihREYAPN5wJJGDGdkQsdc6Gpxp/AtTt/2t4c9mghIKJvcU1O0VQVQk084yhjgHxKac9i45I+VZsTj3/SGI/MIyvjF6VqBrbAoTC6vDCjIfulZM/KMo9YptchsAEk8HvPkvhdbVwYznIJJnA97EVBvLXlvfblZ0whG58nPWCvCHyJy0gyKPde7WOdVcP3JkWHfUqkOAxNn2Rcxn2vbZLXFhr15vW/nEdeeNcyUArr5ctO25OUAjH6z0+tZfzs4qRFJZiU1IHTySvPoDQKt3yeb1cFDJNhHcdI0amhQk7gh4fen1YoYPhgQ/ss/NzxHtHGj2nHDYNi/Hk9/MTQka2CoiN9t3fNVkUDr0/hU5b5SK5Gnw7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},Gev7:function(Ge,fe,R){var se=R("bYtY"),G=R("K2GJ"),M=R("1bdT"),v=R("ni6a");function b(w){w=w||{},M.call(this,w);for(var m in w)w.hasOwnProperty(m)&&m!=="style"&&(this[m]=w[m]);this.style=new G(w.style,this),this._rect=null,this.__clipPaths=null}b.prototype={constructor:b,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(w){},afterBrush:function(w){},brush:function(w,m){},getBoundingRect:function(){},contain:function(w,m){return this.rectContain(w,m)},traverse:function(w,m){w.call(m,this)},rectContain:function(w,m){var d=this.transformCoordToLocal(w,m),i=this.getBoundingRect();return i.contain(d[0],d[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(w){return this.animate("style",w)},attrKV:function(w,m){w!=="style"?M.prototype.attrKV.call(this,w,m):this.style.set(m)},setStyle:function(w,m){return this.style.set(w,m),this.dirty(!1),this},useStyle:function(w){return this.style=new G(w,this),this.dirty(!1),this},calculateTextPosition:null},se.inherits(b,M),se.mixin(b,v);var C=b;Ge.exports=C},GfqC:function(Ge,fe,R){"use strict";var se=R("q1tI"),G=R.n(se),M=R("TSYQ"),v=R.n(M);function b(X,U){var K="cannot "+X.method+" "+X.action+" "+U.status+"'",V=new Error(K);return V.status=U.status,V.method=X.method,V.url=X.action,V}function C(X){var U=X.responseText||X.response;if(!U)return U;try{return JSON.parse(U)}catch(K){return U}}function w(X){var U=new XMLHttpRequest;X.onProgress&&U.upload&&(U.upload.onprogress=function(Q){Q.total>0&&(Q.percent=Q.loaded/Q.total*100),X.onProgress(Q)});var K=new FormData;X.data&&Object.keys(X.data).forEach(function(N){var Q=X.data[N];if(Array.isArray(Q)){Q.forEach(function(J){K.append(N+"[]",J)});return}K.append(N,X.data[N])}),X.file instanceof Blob?K.append(X.filename,X.file,X.file.name):K.append(X.filename,X.file),U.onerror=function(Q){X.onError(Q)},U.onload=function(){return U.status<200||U.status>=300?X.onError(b(X,U),C(U)):X.onSuccess(C(U),U)},U.open(X.method,X.action,!0),X.withCredentials&&"withCredentials"in U&&(U.withCredentials=!0);var V=X.headers||{};return V["X-Requested-With"]!==null&&U.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(V).forEach(function(N){V[N]!==null&&U.setRequestHeader(N,V[N])}),U.send(K),{abort:function(){U.abort()}}}var m=+new Date,d=0;function i(){return"rc-upload-"+m+"-"+ ++d}function n(X,U){return X.indexOf(U,X.length-U.length)!==-1}var e=function(X,U){if(X&&U){var K=Array.isArray(U)?U:U.split(","),V=X.name||"",N=X.type||"",Q=N.replace(/\/.*$/,"");return K.some(function(J){var ne=J.trim();return ne.charAt(0)==="."?n(V.toLowerCase(),ne.toLowerCase()):/\/\*$/.test(ne)?Q===ne.replace(/\/.*$/,""):N===ne})}return!0};function a(X,U){var K=X.createReader(),V=[];function N(){K.readEntries(function(Q){var J=Array.prototype.slice.apply(Q);V=V.concat(J);var ne=!J.length;ne?U(V):N()})}N()}var s=function(U,K,V){var N=function Q(J,ne){ne=ne||"",J.isFile?J.file(function(ue){V(ue)&&(J.fullPath&&!ue.webkitRelativePath&&(Object.defineProperties(ue,{webkitRelativePath:{writable:!0}}),ue.webkitRelativePath=J.fullPath.replace(/^\//,""),Object.defineProperties(ue,{webkitRelativePath:{writable:!1}})),K([ue]))}):J.isDirectory&&a(J,function(ue){ue.forEach(function(be){Q(be,""+ne+J.name+"/")})})};U.forEach(function(Q){N(Q.webkitGetAsEntry())})},o=s,f=Object.assign||function(X){for(var U=1;U<arguments.length;U++){var K=arguments[U];for(var V in K)Object.prototype.hasOwnProperty.call(K,V)&&(X[V]=K[V])}return X},l=function(){function X(U,K){var V=[],N=!0,Q=!1,J=void 0;try{for(var ne=U[Symbol.iterator](),ue;!(N=(ue=ne.next()).done)&&!(V.push(ue.value),K&&V.length===K);N=!0);}catch(be){Q=!0,J=be}finally{try{!N&&ne.return&&ne.return()}finally{if(Q)throw J}}return V}return function(U,K){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return X(U,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function X(U,K){for(var V=0;V<K.length;V++){var N=K[V];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(U,N.key,N)}}return function(U,K,V){return K&&X(U.prototype,K),V&&X(U,V),U}}();function c(X,U,K){return U in X?Object.defineProperty(X,U,{value:K,enumerable:!0,configurable:!0,writable:!0}):X[U]=K,X}function A(X,U){var K={};for(var V in X){if(U.indexOf(V)>=0)continue;if(!Object.prototype.hasOwnProperty.call(X,V))continue;K[V]=X[V]}return K}function p(X,U){if(!(X instanceof U))throw new TypeError("Cannot call a class as a function")}function x(X,U){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:X}function _(X,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);X.prototype=Object.create(U&&U.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(X,U):X.__proto__=U)}var B=function(U){return Object.keys(U).reduce(function(K,V){return(V.substr(0,5)==="data-"||V.substr(0,5)==="aria-"||V==="role")&&(K[V]=U[V]),K},{})},E=function(X){_(U,X);function U(){var K,V,N,Q;p(this,U);for(var J=arguments.length,ne=Array(J),ue=0;ue<J;ue++)ne[ue]=arguments[ue];return Q=(V=(N=x(this,(K=U.__proto__||Object.getPrototypeOf(U)).call.apply(K,[this].concat(ne))),N),N.state={uid:i()},N.reqs={},N.onChange=function(be){var de=be.target.files;N.uploadFiles(de),N.reset()},N.onClick=function(be){var de=N.fileInput;if(!de)return;var _e=N.props,me=_e.children,Ee=_e.onClick;me&&me.type==="button"&&(de.parentNode.focus(),de.parentNode.querySelector("button").blur()),de.click(),Ee&&Ee(be)},N.onKeyDown=function(be){be.key==="Enter"&&N.onClick()},N.onFileDrop=function(be){var de=N.props.multiple;if(be.preventDefault(),be.type==="dragover")return;if(N.props.directory)o(Array.prototype.slice.call(be.dataTransfer.items),N.uploadFiles,function(me){return e(me,N.props.accept)});else{var _e=Array.prototype.slice.call(be.dataTransfer.files).filter(function(me){return e(me,N.props.accept)});de===!1&&(_e=_e.slice(0,1)),N.uploadFiles(_e)}},N.uploadFiles=function(be){var de=Array.prototype.slice.call(be);de.map(function(_e){return _e.uid=i(),_e}).forEach(function(_e){N.upload(_e,de)})},N.saveFileInput=function(be){N.fileInput=be},V),x(N,Q)}return r(U,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(V,N){var Q=this,J=this.props;if(!J.beforeUpload)return setTimeout(function(){return Q.post(V)},0);var ne=J.beforeUpload(V,N);ne&&ne.then?ne.then(function(ue){var be=Object.prototype.toString.call(ue);return be==="[object File]"||be==="[object Blob]"?Q.post(ue):Q.post(V)}).catch(function(ue){console.log(ue)}):ne!==!1&&setTimeout(function(){return Q.post(V)},0);return}},{key:"post",value:function(V){var N=this;if(!this._isMounted)return;var Q=this.props,J=Q.onStart,ne=Q.onProgress,ue=Q.transformFile,be=ue===void 0?function(de){return de}:ue;new Promise(function(de){var _e=Q.action;return typeof _e=="function"&&(_e=_e(V)),de(_e)}).then(function(de){var _e=V.uid,me=Q.customRequest||w,Ee=Promise.resolve(be(V)).then(function(ge){var Ae=Q.data;return typeof Ae=="function"&&(Ae=Ae(ge)),Promise.all([ge,Ae])}).catch(function(ge){console.error(ge)});Ee.then(function(ge){var Ae=l(ge,2),ae=Ae[0],ve=Ae[1],oe={action:de,filename:Q.name,data:ve,file:ae,headers:Q.headers,withCredentials:Q.withCredentials,method:Q.method||"post",onProgress:ne?function(ie){ne(ie,V)}:null,onSuccess:function(Te,Re){delete N.reqs[_e],Q.onSuccess(Te,V,Re)},onError:function(Te,Re){delete N.reqs[_e],Q.onError(Te,Re,V)}};J(V),N.reqs[_e]=me(oe)})})}},{key:"reset",value:function(){this.setState({uid:i()})}},{key:"abort",value:function(V){var N=this.reqs;if(V){var Q=V;V&&V.uid&&(Q=V.uid),N[Q]&&N[Q].abort&&N[Q].abort(),delete N[Q]}else Object.keys(N).forEach(function(J){N[J]&&N[J].abort&&N[J].abort(),delete N[J]})}},{key:"render",value:function(){var V,N=this.props,Q=N.component,J=N.prefixCls,ne=N.className,ue=N.disabled,be=N.id,de=N.style,_e=N.multiple,me=N.accept,Ee=N.children,ge=N.directory,Ae=N.openFileDialogOnClick,ae=N.onMouseEnter,ve=N.onMouseLeave,oe=A(N,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),ie=v()((V={},c(V,J,!0),c(V,J+"-disabled",ue),c(V,ne,ne),V)),Te=ue?{}:{onClick:Ae?this.onClick:function(){},onKeyDown:Ae?this.onKeyDown:function(){},onMouseEnter:ae,onMouseLeave:ve,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return G.a.createElement(Q,f({},Te,{className:ie,role:"button",style:de}),G.a.createElement("input",f({},B(oe),{id:be,type:"file",ref:this.saveFileInput,onClick:function(Me){return Me.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:me,directory:ge?"directory":null,webkitdirectory:ge?"webkitdirectory":null,multiple:_e,onChange:this.onChange})),Ee)}}]),U}(se.Component),g=E,h=Object.assign||function(X){for(var U=1;U<arguments.length;U++){var K=arguments[U];for(var V in K)Object.prototype.hasOwnProperty.call(K,V)&&(X[V]=K[V])}return X},u=function(){function X(U,K){for(var V=0;V<K.length;V++){var N=K[V];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(U,N.key,N)}}return function(U,K,V){return K&&X(U.prototype,K),V&&X(U,V),U}}();function S(X,U){if(!(X instanceof U))throw new TypeError("Cannot call a class as a function")}function O(X,U){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:X}function T(X,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);X.prototype=Object.create(U&&U.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(X,U):X.__proto__=U)}function D(){}var I=function(X){T(U,X);function U(){var K,V,N,Q;S(this,U);for(var J=arguments.length,ne=Array(J),ue=0;ue<J;ue++)ne[ue]=arguments[ue];return Q=(V=(N=O(this,(K=U.__proto__||Object.getPrototypeOf(U)).call.apply(K,[this].concat(ne))),N),N.saveUploader=function(be){N.uploader=be},V),O(N,Q)}return u(U,[{key:"abort",value:function(V){this.uploader.abort(V)}},{key:"render",value:function(){return G.a.createElement(g,h({},this.props,{ref:this.saveUploader}))}}]),U}(se.Component);I.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:D,onError:D,onSuccess:D,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var k=I,F=fe.a=k},Gytx:function(Ge,fe){Ge.exports=function(se,G,M,v){var b=M?M.call(v,se,G):void 0;if(b!==void 0)return!!b;if(se===G)return!0;if(typeof se!="object"||!se||typeof G!="object"||!G)return!1;var C=Object.keys(se),w=Object.keys(G);if(C.length!==w.length)return!1;for(var m=Object.prototype.hasOwnProperty.bind(G),d=0;d<C.length;d++){var i=C[d];if(!m(i))return!1;var n=se[i],e=G[i];if(b=M?M.call(v,n,e,i):void 0,b===!1||b===void 0&&n!==e)return!1}return!0}},H6uX:function(Ge,fe){var R=Array.prototype.slice,se=function(b){this._$handlers={},this._$eventProcessor=b};se.prototype={constructor:se,one:function(b,C,w,m){return M(this,b,C,w,m,!0)},on:function(b,C,w,m){return M(this,b,C,w,m,!1)},isSilent:function(b){var C=this._$handlers;return!C[b]||!C[b].length},off:function(b,C){var w=this._$handlers;if(!b)return this._$handlers={},this;if(C){if(w[b]){for(var m=[],d=0,i=w[b].length;d<i;d++)w[b][d].h!==C&&m.push(w[b][d]);w[b]=m}w[b]&&w[b].length===0&&delete w[b]}else delete w[b];return this},trigger:function(b){var C=this._$handlers[b],w=this._$eventProcessor;if(C){var m=arguments,d=m.length;d>3&&(m=R.call(m,1));for(var i=C.length,n=0;n<i;){var e=C[n];if(w&&w.filter&&e.query!=null&&!w.filter(b,e.query)){n++;continue}switch(d){case 1:e.h.call(e.ctx);break;case 2:e.h.call(e.ctx,m[1]);break;case 3:e.h.call(e.ctx,m[1],m[2]);break;default:e.h.apply(e.ctx,m);break}e.one?(C.splice(n,1),i--):n++}}return w&&w.afterTrigger&&w.afterTrigger(b),this},triggerWithContext:function(b){var C=this._$handlers[b],w=this._$eventProcessor;if(C){var m=arguments,d=m.length;d>4&&(m=R.call(m,1,m.length-1));for(var i=m[m.length-1],n=C.length,e=0;e<n;){var a=C[e];if(w&&w.filter&&a.query!=null&&!w.filter(b,a.query)){e++;continue}switch(d){case 1:a.h.call(i);break;case 2:a.h.call(i,m[1]);break;case 3:a.h.call(i,m[1],m[2]);break;default:a.h.apply(i,m);break}a.one?(C.splice(e,1),n--):e++}}return w&&w.afterTrigger&&w.afterTrigger(b),this}};function G(b,C){var w=b._$eventProcessor;return C!=null&&w&&w.normalizeQuery&&(C=w.normalizeQuery(C)),C}function M(b,C,w,m,d,i){var n=b._$handlers;if(typeof w=="function"&&(d=m,m=w,w=null),!m||!C)return b;w=G(b,w),n[C]||(n[C]=[]);for(var e=0;e<n[C].length;e++)if(n[C][e].h===m)return b;var a={h:m,one:i,query:w,ctx:d||b,callAtLast:m.zrEventfulCallAtLast},s=n[C].length-1,o=n[C][s];return o&&o.callAtLast?n[C].splice(s,0,a):n[C].push(a),b}var v=se;Ge.exports=v},HmJG:function(Ge,fe,R){},HpTS:function(Ge,fe,R){Ge.exports=R.p+"static/small_program.f74069ec.png"},I8Z2:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return v}),R.d(fe,"b",function(){return a}),R.d(fe,"c",function(){return o});var se=R("q1tI"),G=function(){var f=function(l,r){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,A){c.__proto__=A}||function(c,A){for(var p in A)A.hasOwnProperty(p)&&(c[p]=A[p])},f(l,r)};return function(l,r){f(l,r);function c(){this.constructor=l}l.prototype=r===null?Object.create(r):(c.prototype=r.prototype,new c)}}(),M=se.createContext(null),v=function(f){G(l,f);function l(){return f!==null&&f.apply(this,arguments)||this}return l.prototype.render=function(){return se.createElement(M.Provider,{value:this.props.store},this.props.children)},l}(se.Component),b=R("Gytx"),C=R.n(b),w=R("2mql"),m=R.n(w),d=function(){var f=function(l,r){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,A){c.__proto__=A}||function(c,A){for(var p in A)A.hasOwnProperty(p)&&(c[p]=A[p])},f(l,r)};return function(l,r){f(l,r);function c(){this.constructor=l}l.prototype=r===null?Object.create(r):(c.prototype=r.prototype,new c)}}(),i=function(){return i=Object.assign||function(f){for(var l,r=1,c=arguments.length;r<c;r++){l=arguments[r];for(var A in l)Object.prototype.hasOwnProperty.call(l,A)&&(f[A]=l[A])}return f},i.apply(this,arguments)};function n(f){return f.displayName||f.name||"Component"}var e=function(){return{}};function a(f,l){l===void 0&&(l={});var r=!!f,c=f||e;return function(p){var x=function(B){d(E,B);function E(g,h){var u=B.call(this,g,h)||this;return u.unsubscribe=null,u.handleChange=function(){if(!u.unsubscribe)return;var S=c(u.store.getState(),u.props);u.setState({subscribed:S})},u.store=u.context,u.state={subscribed:c(u.store.getState(),g),store:u.store,props:g},u}return E.getDerivedStateFromProps=function(g,h){return f&&f.length===2&&g!==h.props?{subscribed:c(h.store.getState(),g),props:g}:{props:g}},E.prototype.componentDidMount=function(){this.trySubscribe()},E.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},E.prototype.shouldComponentUpdate=function(g,h){return!C()(this.props,g)||!C()(this.state.subscribed,h.subscribed)},E.prototype.trySubscribe=function(){r&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},E.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},E.prototype.render=function(){var g=i(i(i({},this.props),this.state.subscribed),{store:this.store});return se.createElement(p,i({},g,{ref:this.props.miniStoreForwardedRef}))},E.displayName="Connect("+n(p)+")",E.contextType=M,E}(se.Component);if(l.forwardRef){var _=se.forwardRef(function(B,E){return se.createElement(x,i({},B,{miniStoreForwardedRef:E}))});return m()(_,p)}return m()(x,p)}}var s=function(){return s=Object.assign||function(f){for(var l,r=1,c=arguments.length;r<c;r++){l=arguments[r];for(var A in l)Object.prototype.hasOwnProperty.call(l,A)&&(f[A]=l[A])}return f},s.apply(this,arguments)};function o(f){var l=f,r=[];function c(x){l=s(s({},l),x);for(var _=0;_<r.length;_++)r[_]()}function A(){return l}function p(x){return r.push(x),function(){var B=r.indexOf(x);r.splice(B,1)}}return{setState:c,getState:A,subscribe:p}}},IBYe:function(Ge,fe,R){"use strict";function se(G){return null}fe.a=se},IMiH:function(Ge,fe,R){var se=R("Sj9i"),G=R("QBsz"),M=R("4mN7"),v=R("mFDi"),b=R("LPTA"),C=b.devicePixelRatio,w={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},m=[],d=[],i=[],n=[],e=Math.min,a=Math.max,s=Math.cos,o=Math.sin,f=Math.sqrt,l=Math.abs,r=typeof Float32Array!="undefined",c=function(p){this._saveData=!(p||!1),this._saveData&&(this.data=[]),this._ctx=null};c.prototype={constructor:c,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(p,x,_){_=_||0,this._ux=l(_/C/p)||0,this._uy=l(_/C/x)||0},getContext:function(){return this._ctx},beginPath:function(p){return this._ctx=p,p&&p.beginPath(),p&&(this.dpr=p.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(p,x){return this.addData(w.M,p,x),this._ctx&&this._ctx.moveTo(p,x),this._x0=p,this._y0=x,this._xi=p,this._yi=x,this},lineTo:function(p,x){var _=l(p-this._xi)>this._ux||l(x-this._yi)>this._uy||this._len<5;return this.addData(w.L,p,x),this._ctx&&_&&(this._needsDash()?this._dashedLineTo(p,x):this._ctx.lineTo(p,x)),_&&(this._xi=p,this._yi=x),this},bezierCurveTo:function(p,x,_,B,E,g){return this.addData(w.C,p,x,_,B,E,g),this._ctx&&(this._needsDash()?this._dashedBezierTo(p,x,_,B,E,g):this._ctx.bezierCurveTo(p,x,_,B,E,g)),this._xi=E,this._yi=g,this},quadraticCurveTo:function(p,x,_,B){return this.addData(w.Q,p,x,_,B),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(p,x,_,B):this._ctx.quadraticCurveTo(p,x,_,B)),this._xi=_,this._yi=B,this},arc:function(p,x,_,B,E,g){return this.addData(w.A,p,x,_,_,B,E-B,0,g?0:1),this._ctx&&this._ctx.arc(p,x,_,B,E,g),this._xi=s(E)*_+p,this._yi=o(E)*_+x,this},arcTo:function(p,x,_,B,E){return this._ctx&&this._ctx.arcTo(p,x,_,B,E),this},rect:function(p,x,_,B){return this._ctx&&this._ctx.rect(p,x,_,B),this.addData(w.R,p,x,_,B),this},closePath:function(){this.addData(w.Z);var p=this._ctx,x=this._x0,_=this._y0;return p&&(this._needsDash()&&this._dashedLineTo(x,_),p.closePath()),this._xi=x,this._yi=_,this},fill:function(p){p&&p.fill(),this.toStatic()},stroke:function(p){p&&p.stroke(),this.toStatic()},setLineDash:function(p){if(p instanceof Array){this._lineDash=p,this._dashIdx=0;for(var x=0,_=0;_<p.length;_++)x+=p[_];this._dashSum=x}return this},setLineDashOffset:function(p){return this._dashOffset=p,this},len:function(){return this._len},setData:function(p){var x=p.length;!(this.data&&this.data.length===x)&&r&&(this.data=new Float32Array(x));for(var _=0;_<x;_++)this.data[_]=p[_];this._len=x},appendPath:function(p){p instanceof Array||(p=[p]);for(var x=p.length,_=0,B=this._len,E=0;E<x;E++)_+=p[E].len();r&&this.data instanceof Float32Array&&(this.data=new Float32Array(B+_));for(var E=0;E<x;E++)for(var g=p[E].data,h=0;h<g.length;h++)this.data[B++]=g[h];this._len=B},addData:function(p){if(!this._saveData)return;var x=this.data;this._len+arguments.length>x.length&&(this._expandData(),x=this.data);for(var _=0;_<arguments.length;_++)x[this._len++]=arguments[_];this._prevCmd=p},_expandData:function(){if(!(this.data instanceof Array)){for(var p=[],x=0;x<this._len;x++)p[x]=this.data[x];this.data=p}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(p,x){var _=this._dashSum,B=this._dashOffset,E=this._lineDash,g=this._ctx,h=this._xi,u=this._yi,S=p-h,O=x-u,T=f(S*S+O*O),D=h,I=u,k,F=E.length,X;for(S/=T,O/=T,B<0&&(B=_+B),B%=_,D-=B*S,I-=B*O;S>0&&D<=p||S<0&&D>=p||S===0&&(O>0&&I<=x||O<0&&I>=x);){if(X=this._dashIdx,k=E[X],D+=S*k,I+=O*k,this._dashIdx=(X+1)%F,S>0&&D<h||S<0&&D>h||O>0&&I<u||O<0&&I>u)continue;g[X%2?"moveTo":"lineTo"](S>=0?e(D,p):a(D,p),O>=0?e(I,x):a(I,x))}S=D-p,O=I-x,this._dashOffset=-f(S*S+O*O)},_dashedBezierTo:function(p,x,_,B,E,g){var h=this._dashSum,u=this._dashOffset,S=this._lineDash,O=this._ctx,T=this._xi,D=this._yi,I,k,F,X=se.cubicAt,U=0,K=this._dashIdx,V=S.length,N,Q,J=0;for(u<0&&(u=h+u),u%=h,I=0;I<1;I+=.1)k=X(T,p,_,E,I+.1)-X(T,p,_,E,I),F=X(D,x,B,g,I+.1)-X(D,x,B,g,I),U+=f(k*k+F*F);for(;K<V&&!(J+=S[K],J>u);K++);for(I=(J-u)/U;I<=1;)N=X(T,p,_,E,I),Q=X(D,x,B,g,I),K%2?O.moveTo(N,Q):O.lineTo(N,Q),I+=S[K]/U,K=(K+1)%V;K%2!==0&&O.lineTo(E,g),k=E-N,F=g-Q,this._dashOffset=-f(k*k+F*F)},_dashedQuadraticTo:function(p,x,_,B){var E=_,g=B;_=(_+2*p)/3,B=(B+2*x)/3,p=(this._xi+2*p)/3,x=(this._yi+2*x)/3,this._dashedBezierTo(p,x,_,B,E,g)},toStatic:function(){var p=this.data;p instanceof Array&&(p.length=this._len,r&&(this.data=new Float32Array(p)))},getBoundingRect:function(){m[0]=m[1]=i[0]=i[1]=Number.MAX_VALUE,d[0]=d[1]=n[0]=n[1]=-Number.MAX_VALUE;for(var p=this.data,x=0,_=0,B=0,E=0,g=0;g<p.length;){var h=p[g++];g===1&&(x=p[g],_=p[g+1],B=x,E=_);switch(h){case w.M:B=p[g++],E=p[g++],x=B,_=E,i[0]=B,i[1]=E,n[0]=B,n[1]=E;break;case w.L:M.fromLine(x,_,p[g],p[g+1],i,n),x=p[g++],_=p[g++];break;case w.C:M.fromCubic(x,_,p[g++],p[g++],p[g++],p[g++],p[g],p[g+1],i,n),x=p[g++],_=p[g++];break;case w.Q:M.fromQuadratic(x,_,p[g++],p[g++],p[g],p[g+1],i,n),x=p[g++],_=p[g++];break;case w.A:var u=p[g++],S=p[g++],O=p[g++],T=p[g++],D=p[g++],I=p[g++]+D;g+=1;var k=1-p[g++];g===1&&(B=s(D)*O+u,E=o(D)*T+S),M.fromArc(u,S,O,T,D,I,k,i,n),x=s(I)*O+u,_=o(I)*T+S;break;case w.R:B=x=p[g++],E=_=p[g++];var F=p[g++],X=p[g++];M.fromLine(B,E,B+F,E+X,i,n);break;case w.Z:x=B,_=E;break}G.min(m,m,i),G.max(d,d,n)}return g===0&&(m[0]=m[1]=d[0]=d[1]=0),new v(m[0],m[1],d[0]-m[0],d[1]-m[1])},rebuildPath:function(p){for(var x=this.data,_,B,E,g,h,u,S=this._ux,O=this._uy,T=this._len,D=0;D<T;){var I=x[D++];D===1&&(E=x[D],g=x[D+1],_=E,B=g);switch(I){case w.M:_=E=x[D++],B=g=x[D++],p.moveTo(E,g);break;case w.L:h=x[D++],u=x[D++],(l(h-E)>S||l(u-g)>O||D===T-1)&&(p.lineTo(h,u),E=h,g=u);break;case w.C:p.bezierCurveTo(x[D++],x[D++],x[D++],x[D++],x[D++],x[D++]),E=x[D-2],g=x[D-1];break;case w.Q:p.quadraticCurveTo(x[D++],x[D++],x[D++],x[D++]),E=x[D-2],g=x[D-1];break;case w.A:var k=x[D++],F=x[D++],X=x[D++],U=x[D++],K=x[D++],V=x[D++],N=x[D++],Q=x[D++],J=X>U?X:U,ne=X>U?1:X/U,ue=X>U?U/X:1,be=Math.abs(X-U)>.001,de=K+V;be?(p.translate(k,F),p.rotate(N),p.scale(ne,ue),p.arc(0,0,J,K,de,1-Q),p.scale(1/ne,1/ue),p.rotate(-N),p.translate(-k,-F)):p.arc(k,F,J,K,de,1-Q),D===1&&(_=s(K)*X+k,B=o(K)*U+F),E=s(de)*X+k,g=o(de)*U+F;break;case w.R:_=E=x[D],B=g=x[D+1],p.rect(x[D++],x[D++],x[D++],x[D++]);break;case w.Z:p.closePath(),E=_,g=B}}}},c.CMD=w;var A=c;Ge.exports=A},ItGF:function(Ge,fe){var R={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?R={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?R={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?R={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:R=G(navigator.userAgent);var se=R;function G(M){var v={},b={},C=M.match(/Firefox\/([\d.]+)/),w=M.match(/MSIE\s([\d.]+)/)||M.match(/Trident\/.+?rv:(([\d.]+))/),m=M.match(/Edge\/([\d.]+)/),d=/micromessenger/i.test(M);return C&&(b.firefox=!0,b.version=C[1]),w&&(b.ie=!0,b.version=w[1]),m&&(b.edge=!0,b.version=m[1]),d&&(b.weChat=!0),{browser:b,os:v,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!b.ie&&!b.edge,pointerEventsSupported:"onpointerdown"in window&&(b.edge||b.ie&&b.version>=11),domSupported:typeof document!="undefined"}}Ge.exports=se},IxHN:function(Ge,fe,R){"use strict";var se=R("q1tI"),G=R.n(se),M=R("07cG"),v=R.n(M);fe.a=function(b){var C=b.message,w=b.className,m=b.children,d=b.style,i=d===void 0?{}:d;return G.a.createElement("div",{className:"".concat(v.a.idsRingWrapper," ").concat(w)},G.a.createElement("div",{className:v.a.ldsRing},G.a.createElement("div",null),G.a.createElement("div",null),G.a.createElement("div",null),G.a.createElement("div",null)),C?G.a.createElement("p",{style:i},C):null,m)}},JTSX:function(Ge,fe,R){Ge.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(Ge,fe,R){Ge.exports=R.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(Ge,fe,R){"use strict";R.d(fe,"c",function(){return G}),R.d(fe,"d",function(){return M}),R.d(fe,"f",function(){return b}),R.d(fe,"a",function(){return C}),R.d(fe,"b",function(){return w}),R.d(fe,"e",function(){return m});var se=function(){var d=function(i,n){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var s in a)a.hasOwnProperty(s)&&(e[s]=a[s])},d(i,n)};return function(i,n){d(i,n);function e(){this.constructor=i}i.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}}(),G={done:!0,value:void 0},M;(function(d){var i={next:function(){return G}};function n(){return i}d.empty=n;function e(x){var _=!1;return{next:function(){return _?G:(_=!0,{done:!1,value:x})}}}d.single=e;function a(x,_,B){return _===void 0&&(_=0),B===void 0&&(B=x.length),{next:function(){return _>=B?G:{done:!1,value:x[_++]}}}}d.fromArray=a;function s(x){return{next:function(){var _=x.next();return _.done?G:{done:!1,value:_.value}}}}d.fromNativeIterator=s;function o(x){return x?Array.isArray(x)?d.fromArray(x):x:d.empty()}d.from=o;function f(x,_){return{next:function(){var B=x.next();return B.done?G:{done:!1,value:_(B.value)}}}}d.map=f;function l(x,_){return{next:function(){for(;;){var B=x.next();if(B.done)return G;if(_(B.value))return{done:!1,value:B.value}}}}}d.filter=l;function r(x,_){for(var B=x.next();!B.done;B=x.next())_(B.value)}d.forEach=r;function c(x,_){_===void 0&&(_=Number.POSITIVE_INFINITY);var B=[];if(_===0)return B;for(var E=0,g=x.next();!g.done&&!(B.push(g.value),++E>=_);g=x.next());return B}d.collect=c;function A(){for(var x=[],_=0;_<arguments.length;_++)x[_]=arguments[_];var B=0;return{next:function(){if(B>=x.length)return G;var E=x[B],g=E.next();return g.done?(B++,this.next()):g}}}d.concat=A;function p(x){return new v(x)}d.chain=p})(M||(M={}));var v=function(){function d(i){this.it=i}return d.prototype.next=function(){return this.it.next()},d}();function b(d){return Array.isArray(d)?M.fromArray(d):d||M.empty()}var C=function(){function d(i,n,e,a){n===void 0&&(n=0),e===void 0&&(e=i.length),a===void 0&&(a=n-1),this.items=i,this.start=n,this.end=e,this.index=a}return d.prototype.first=function(){return this.index=this.start,this.current()},d.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},d.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},d}(),w=function(d){se(i,d);function i(n,e,a,s){return e===void 0&&(e=0),a===void 0&&(a=n.length),s===void 0&&(s=e-1),d.call(this,n,e,a,s)||this}return i.prototype.current=function(){return d.prototype.current.call(this)},i.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},i.prototype.first=function(){return this.index=this.start,this.current()},i.prototype.last=function(){return this.index=this.end-1,this.current()},i.prototype.parent=function(){return null},i}(C),m=function(){function d(i,n){this.iterator=i,this.fn=n}return d.prototype.next=function(){return this.fn(this.iterator.next())},d}()},JeFH:function(Ge,fe){Ge.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(Ge,fe,R){Ge.exports=R.p+"static/qrcode.54870d9b.png"},K2GJ:function(Ge,fe,R){var se=R("fW2E"),G=R("gut8"),M=G.ContextCachedBy,v=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],b=function(e){this.extendFrom(e,!1)};function C(e,a,s){var o=a.x==null?0:a.x,f=a.x2==null?1:a.x2,l=a.y==null?0:a.y,r=a.y2==null?0:a.y2;a.global||(o=o*s.width+s.x,f=f*s.width+s.x,l=l*s.height+s.y,r=r*s.height+s.y),o=isNaN(o)?0:o,f=isNaN(f)?1:f,l=isNaN(l)?0:l,r=isNaN(r)?0:r;var c=e.createLinearGradient(o,l,f,r);return c}function w(e,a,s){var o=s.width,f=s.height,l=Math.min(o,f),r=a.x==null?.5:a.x,c=a.y==null?.5:a.y,A=a.r==null?.5:a.r;a.global||(r=r*o+s.x,c=c*f+s.y,A=A*l);var p=e.createRadialGradient(r,c,0,r,c,A);return p}b.prototype={constructor:b,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(e,a,s){var o=this,f=s&&s.style,l=!f||e.__attrCachedBy!==M.STYLE_BIND;e.__attrCachedBy=M.STYLE_BIND;for(var r=0;r<v.length;r++){var c=v[r],A=c[0];(l||o[A]!==f[A])&&(e[A]=se(e,A,o[A]||c[1]))}if((l||o.fill!==f.fill)&&(e.fillStyle=o.fill),(l||o.stroke!==f.stroke)&&(e.strokeStyle=o.stroke),(l||o.opacity!==f.opacity)&&(e.globalAlpha=o.opacity==null?1:o.opacity),(l||o.blend!==f.blend)&&(e.globalCompositeOperation=o.blend||"source-over"),this.hasStroke()){var p=o.lineWidth;e.lineWidth=p/(this.strokeNoScale&&a&&a.getLineScale?a.getLineScale():1)}},hasFill:function(){var e=this.fill;return e!=null&&e!=="none"},hasStroke:function(){var e=this.stroke;return e!=null&&e!=="none"&&this.lineWidth>0},extendFrom:function(e,a){if(e)for(var s in e)e.hasOwnProperty(s)&&(a===!0||(a===!1?!this.hasOwnProperty(s):e[s]!=null))&&(this[s]=e[s])},set:function(e,a){typeof e=="string"?this[e]=a:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,a,s){for(var o=a.type==="radial"?w:C,f=o(e,a,s),l=a.colorStops,r=0;r<l.length;r++)f.addColorStop(l[r].offset,l[r].color);return f}};for(var m=b.prototype,d=0;d<v.length;d++){var i=v[d];i[0]in m||(m[i[0]]=i[1])}b.getGradient=m.getGradient;var n=b;Ge.exports=n},LPTA:function(Ge,fe){var R=1;typeof window!="undefined"&&(R=Math.max(window.devicePixelRatio||1,1));var se=0,G=R;fe.debugMode=se,fe.devicePixelRatio=G},LSTS:function(Ge,fe,R){"use strict";Object.defineProperty(fe,"__esModule",{value:!0});var se=function(){function e(a,s){for(var o=0;o<s.length;o++){var f=s[o];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,s,o){return s&&e(a.prototype,s),o&&e(a,o),a}}(),G=R("q1tI"),M=C(G),v=R("17x9"),b=C(v);function C(e){return e&&e.__esModule?e:{default:e}}function w(e,a){var s={};for(var o in e){if(a.indexOf(o)>=0)continue;if(!Object.prototype.hasOwnProperty.call(e,o))continue;s[o]=e[o]}return s}function m(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function d(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:e}function i(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}var n=function(e){i(a,e);function a(s){m(this,a);var o=d(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,s));return o.scrollListener=o.scrollListener.bind(o),o.eventListenerOptions=o.eventListenerOptions.bind(o),o.mousewheelListener=o.mousewheelListener.bind(o),o}return se(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 o=this.getParentElement(this.scrollComponent);o.scrollTop=o.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var o=!1,f={get passive(){o=!0}};try{document.addEventListener("test",null,f),document.removeEventListener("test",null,f)}catch(l){}return o}},{key:"eventListenerOptions",value:function(){var o=this.props.useCapture;return this.isPassiveSupported()&&(o={useCapture:this.props.useCapture,passive:!0}),o}},{key:"setDefaultLoader",value:function(o){this.defaultLoader=o}},{key:"detachMousewheelListener",value:function(){var o=window;this.props.useWindow===!1&&(o=this.scrollComponent.parentNode),o.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var o=window;this.props.useWindow===!1&&(o=this.getParentElement(this.scrollComponent)),o.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),o.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(o){var f=this.props.getScrollParent&&this.props.getScrollParent();return f!=null?f:o&&o.parentNode}},{key:"filterProps",value:function(o){return o}},{key:"attachScrollListener",value:function(){var o=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!o)return;var f=window;this.props.useWindow===!1&&(f=o),f.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),f.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),f.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(o){o.deltaY===1&&!this.isPassiveSupported()&&o.preventDefault()}},{key:"scrollListener",value:function(){var o=this.scrollComponent,f=window,l=this.getParentElement(o),r=void 0;if(this.props.useWindow){var c=document.documentElement||document.body.parentNode||document.body,A=f.pageYOffset!==void 0?f.pageYOffset:c.scrollTop;this.props.isReverse?r=A:r=this.calculateOffset(o,A)}else this.props.isReverse?r=l.scrollTop:r=o.scrollHeight-l.scrollTop-l.clientHeight;r<Number(this.props.threshold)&&o&&o.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=l.scrollHeight,this.beforeScrollTop=l.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(o,f){return o?this.calculateTopPosition(o)+(o.offsetHeight-f-window.innerHeight):0}},{key:"calculateTopPosition",value:function(o){return o?o.offsetTop+this.calculateTopPosition(o.offsetParent):0}},{key:"render",value:function(){var o=this,f=this.filterProps(this.props),l=f.children,r=f.element,c=f.hasMore,A=f.initialLoad,p=f.isReverse,x=f.loader,_=f.loadMore,B=f.pageStart,E=f.ref,g=f.threshold,h=f.useCapture,u=f.useWindow,S=f.getScrollParent,O=w(f,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);O.ref=function(D){o.scrollComponent=D,E&&E(D)};var T=[l];return c&&(x?p?T.unshift(x):T.push(x):this.defaultLoader&&(p?T.unshift(this.defaultLoader):T.push(this.defaultLoader))),M.default.createElement(r,O,T)}}]),a}(G.Component);n.propTypes={children:b.default.node.isRequired,element:b.default.node,hasMore:b.default.bool,initialLoad:b.default.bool,isReverse:b.default.bool,loader:b.default.node,loadMore:b.default.func.isRequired,pageStart:b.default.number,ref:b.default.func,getScrollParent:b.default.func,threshold:b.default.number,useCapture:b.default.bool,useWindow:b.default.bool},n.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},fe.default=n,Ge.exports=fe.default},LZjx:function(Ge,fe){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAYAAAD+vg1LAAAAAXNSR0IArs4c6QAAAgpJREFUSA3VVT1LHFEUPXdnPxUVU6TwB9j5hQZsElxECBgMgkIaU/kjJH8gmPQ2goWkMSSNWoSA7pIuKGxCmiSkFlQM6JpFd3fm5rzgzs6Ob3CywSKPYd7Mu+ecufe+e+cBMcduSTd2Svo6JhzJuEAFxgTgFW8IPVkhafz0An1VF11RtDsdyBrbzwouojBpB+WeLA6g+JjkLUNglnNOPXREkU7OfUskBgnUqZMVQcYPbXSZ+VPM+/Q2Hij2dn9J5gw10QY/FuX/E7aWWy4FPH8MdP+pg+jIz1gfzzaBSvU6xirsMEEsL/TkrhOCKykHcPztD1pgb5DzS+Dpeivwb99ubfOsqTDe5fuZihtyzG5F4bs9FqvwXTb2y1k7Ibw6vQIclsOrETk+IvDJ2s0em6qwiZrPWD02hh/H5t7+uLXNaworau37d8UU+K3SFBa8/1dh/i59jZa+GX2hi+JhhueE/8/NJNHZ14WRhCBtPuwpqgdllC7r+OU7oqhQaGtvSVYbay3CjcXGXPiiY14N7wjqlgQWeNIoPLxSQZnd/HBiRPYa2PAcKVz8rPddF9sEpCk6nx+WbUPmUTZN+TeMqqYOHk0OyoewqHm3ChdLes9VFGlVHgUzk0OyGyQXP2meKdmk1ZEUHuQHZD9oN8/NzQtYXEEvRb85DqbCogY2MSwFRjHFlHyVOrGW8RupGIelwwS0iwAAAABJRU5ErkJggg=="},LdHM:function(Ge,fe,R){"use strict";R.d(fe,"b",function(){return A}),R.d(fe,"a",function(){return x});var se=R("1OyB"),G=R("vuIU"),M=R("Ji7U"),v=R("LK+K"),b=R("q1tI"),C=R("rePB"),w=R("Ff2n"),m=R("ODXe"),d=R("4IlW"),i=R("bX4T"),n=R("YrtM"),e=R("TSYQ"),a=R.n(e),s=R("+nKL"),o=R("8OUc"),f=function(V,N){var Q=V.prefixCls,J=V.id,ne=V.flattenOptions,ue=V.childrenAsData,be=V.values,de=V.searchValue,_e=V.multiple,me=V.defaultActiveFirstOption,Ee=V.height,ge=V.itemHeight,Ae=V.notFoundContent,ae=V.open,ve=V.menuItemSelectedIcon,oe=V.virtual,ie=V.onSelect,Te=V.onToggleOpen,Re=V.onActiveValue,Me=V.onScroll,re=V.onMouseEnter,j="".concat(Q,"-item"),W=Object(n.a)(function(){return ne},[ae,ne],function(lt,rt){return rt[0]&&lt[1]!==rt[1]}),he=b.useRef(null),te=function(rt){rt.preventDefault()},ce=function(rt){he.current&&he.current.scrollTo({index:rt})},Ie=function(rt){for(var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,$e=W.length,Ue=0;Ue<$e;Ue+=1){var Ne=(rt+Ue*Ze+$e)%$e,We=W[Ne],it=We.group,yt=We.data;if(!it&&!yt.disabled)return Ne}return-1},ze=b.useState(function(){return Ie(0)}),_t=Object(m.a)(ze,2),He=_t[0],Ke=_t[1],ht=function(rt){Ke(rt);var Ze=W[rt];if(!Ze){Re(null,-1);return}Re(Ze.data.value,rt)};b.useEffect(function(){ht(me!==!1?Ie(0):-1)},[W.length,de]),b.useEffect(function(){var lt=setTimeout(function(){if(!_e&&ae&&be.size===1){var rt=Array.from(be)[0],Ze=W.findIndex(function($e){var Ue=$e.data;return Ue.value===rt});ht(Ze),ce(Ze)}});return function(){return clearTimeout(lt)}},[ae]);var St=function(rt){rt!==void 0&&ie(rt,{selected:!be.has(rt)}),_e||Te(!1)};if(b.useImperativeHandle(N,function(){return{onKeyDown:function(rt){var Ze=rt.which;switch(Ze){case d.a.UP:case d.a.DOWN:{var $e=0;if(Ze===d.a.UP?$e=-1:Ze===d.a.DOWN&&($e=1),$e!==0){var Ue=Ie(He+$e,$e);ce(Ue),ht(Ue)}break}case d.a.ENTER:{var Ne=W[He];Ne&&!Ne.data.disabled?St(Ne.data.value):St(void 0),ae&&rt.preventDefault();break}case d.a.ESC:Te(!1)}},onKeyUp:function(){},scrollTo:function(rt){ce(rt)}}}),W.length===0)return b.createElement("div",{role:"listbox",id:"".concat(J,"_list"),className:"".concat(j,"-empty"),onMouseDown:te},Ae);function ct(lt){var rt=W[lt];if(!rt)return null;var Ze=rt.data||{},$e=Ze.value,Ue=Ze.label,Ne=Ze.children,We=Object(i.a)(Ze,!0),it=ue?Ne:Ue;return rt?b.createElement("div",Object.assign({"aria-label":typeof it=="string"?it:null},We,{key:lt,role:"option",id:"".concat(J,"_list_").concat(lt),"aria-selected":be.has($e)}),$e):null}return b.createElement(b.Fragment,null,b.createElement("div",{role:"listbox",id:"".concat(J,"_list"),style:{height:0,width:0,overflow:"hidden"}},ct(He-1),ct(He),ct(He+1)),b.createElement(s.a,{itemKey:"key",ref:he,data:W,height:Ee,itemHeight:ge,fullHeight:!1,onMouseDown:te,onScroll:Me,virtual:oe,onMouseEnter:re},function(lt,rt){var Ze,$e=lt.group,Ue=lt.groupOption,Ne=lt.data,We=Ne.label,it=Ne.key;if($e)return b.createElement("div",{className:a()(j,"".concat(j,"-group"))},We!==void 0?We:it);var yt=Ne.disabled,vt=Ne.value,Mt=Ne.title,Tt=Ne.children,Rt=Ne.style,kt=Ne.className,Ut=Object(w.a)(Ne,["disabled","value","title","children","style","className"]),Bt=be.has(vt),At="".concat(j,"-option"),bt=a()(j,At,kt,(Ze={},Object(C.a)(Ze,"".concat(At,"-grouped"),Ue),Object(C.a)(Ze,"".concat(At,"-active"),He===rt&&!yt),Object(C.a)(Ze,"".concat(At,"-disabled"),yt),Object(C.a)(Ze,"".concat(At,"-selected"),Bt),Ze)),je=ue?Tt:We,qe=!ve||typeof ve=="function"||Bt;return b.createElement("div",Object.assign({},Ut,{"aria-selected":Bt,className:bt,title:Mt,onMouseMove:function(){if(He===rt||yt)return;ht(rt)},onClick:function(){yt||St(vt)},style:Rt}),b.createElement("div",{className:"".concat(At,"-content")},je||vt),b.isValidElement(ve)||Bt,qe&&b.createElement(o.a,{className:"".concat(j,"-option-state"),customizeIcon:ve,customizeIconProps:{isSelected:Bt}},Bt?"\u2713":null))}))},l=b.forwardRef(f);l.displayName="OptionList";var r=l,c=function(){return null};c.isSelectOption=!0;var A=c,p=function(){return null};p.isSelectOptGroup=!0;var x=p,_=R("VTBJ"),B=R("Zm9Q");function E(K){var V=K.key,N=K.props,Q=N.children,J=N.value,ne=Object(w.a)(N,["children","value"]);return Object(_.a)({key:V,value:J!==void 0?J:V,children:Q},ne)}function g(K){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(B.a)(K).map(function(N,Q){if(!b.isValidElement(N)||!N.type)return null;var J=N.type.isSelectOptGroup,ne=N.key,ue=N.props,be=ue.children,de=Object(w.a)(ue,["children"]);return V||!J?E(N):Object(_.a)(Object(_.a)({key:"__RC_SELECT_GRP__".concat(ne===null?Q:ne,"__"),label:ne},de),{},{options:g(be)})}).filter(function(N){return N})}var h=R("2Qr1"),u=R("qNPg"),S=R("U8pU"),O=R("Kwbf"),T=R("WKfj");function D(K){var V=K.mode,N=K.options,Q=K.children,J=K.backfill,ne=K.allowClear,ue=K.placeholder,be=K.getInputElement,de=K.showSearch,_e=K.onSearch,me=K.defaultOpen,Ee=K.autoFocus,ge=K.labelInValue,Ae=K.value,ae=K.inputValue,ve=K.optionLabelProp,oe=V==="multiple"||V==="tags",ie=de!==void 0?de:oe||V==="combobox",Te=N||g(Q);if(Object(O.a)(V!=="tags"||Te.every(function(j){return!j.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),V==="tags"||V==="combobox"){var Re=Te.some(function(j){return j.options?j.options.some(function(W){return typeof("value"in W?W.value:W.key)=="number"}):typeof("value"in j?j.value:j.key)=="number"});Object(O.a)(!Re,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(O.a)(V!=="combobox"||!ve,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(O.a)(V==="combobox"||!J,"`backfill` only works with `combobox` mode."),Object(O.a)(V==="combobox"||!be,"`getInputElement` only work with `combobox` mode."),Object(O.b)(V!=="combobox"||!be||!ne||!ue,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),_e&&!ie&&V!=="combobox"&&V!=="tags"&&Object(O.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(O.b)(!me||Ee,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ae!=null){var Me=Object(T.d)(Ae);Object(O.a)(!ge||Me.every(function(j){return Object(S.a)(j)==="object"&&("key"in j||"value"in j)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(O.a)(!oe||Array.isArray(Ae),"`value` should be array when `mode` is `multiple` or `tags`")}if(Q){var re=null;Object(B.a)(Q).some(function(j){if(!b.isValidElement(j)||!j.type)return!1;var W=j.type;if(W.isSelectOption)return!1;if(W.isSelectOptGroup){var he=Object(B.a)(j.props.children).every(function(te){return!b.isValidElement(te)||!j.type||te.type.isSelectOption?!0:(re=te.type,!1)});return!he}return re=W,!0}),re&&Object(O.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(re.displayName||re.name||re,"`.")),Object(O.a)(ae===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var I=D,k=Object(u.a)({prefixCls:"rc-select",components:{optionList:r},convertChildrenToData:g,flattenOptions:h.d,getLabeledValue:h.e,filterOptions:h.b,isValueDisabled:h.g,findValueOption:h.c,warningProps:I,fillOptionsWithMissingValue:h.a}),F=function(K){Object(M.a)(N,K);var V=Object(v.a)(N);function N(){var Q;return Object(se.a)(this,N),Q=V.apply(this,arguments),Q.selectRef=b.createRef(),Q.focus=function(){Q.selectRef.current.focus()},Q.blur=function(){Q.selectRef.current.blur()},Q}return Object(G.a)(N,[{key:"render",value:function(){return b.createElement(k,Object.assign({ref:this.selectRef},this.props))}}]),N}(b.Component);F.Option=A,F.OptGroup=x;var X=F,U=fe.c=X},M8RZ:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return d});var se=R("fWQN"),G=R("mtLc"),M=R("yKVA"),v=R("879j"),b=R("q1tI"),C=R.n(b),w=R("i8i4"),m=R.n(w),d=function(i){Object(M.a)(e,i);var n=Object(v.a)(e);function e(a){var s;Object(se.a)(this,e),s=n.call(this,a);var o=window.document;return s.node=o.createElement("div"),o.body.appendChild(s.node),s}return Object(G.a)(e,[{key:"render",value:function(){var s=this.props.children;return Object(w.createPortal)(s,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),e}(C.a.Component)},MEGo:function(Ge,fe,R){var se=R("4fz+"),G=R("Dagg"),M=R("dqUG"),v=R("2fw6"),b=R("x6Kt"),C=R("rmlV"),w=R("yxFR"),m=R("y+Vt"),d=R("h7HQ"),i=R("1Jh7"),n=R("SKnc"),e=R("K2GJ"),a=R("Fofx"),s=R("NC18"),o=s.createFromString,f=R("bYtY"),l=f.isString,r=f.extend,c=f.defaults,A=f.trim,p=f.each,x=/[\s,]+/;function _(N){if(l(N)){var Q=new DOMParser;N=Q.parseFromString(N,"text/xml")}for(N.nodeType===9&&(N=N.firstChild);N.nodeName.toLowerCase()!=="svg"||N.nodeType!==1;)N=N.nextSibling;return N}function B(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}B.prototype.parse=function(N,Q){Q=Q||{};var J=_(N);if(!J)throw new Error("Illegal svg");var ne=new se;this._root=ne;var ue=J.getAttribute("viewBox")||"",be=parseFloat(J.getAttribute("width")||Q.width),de=parseFloat(J.getAttribute("height")||Q.height);isNaN(be)&&(be=null),isNaN(de)&&(de=null),T(J,ne,null,!0);for(var _e=J.firstChild;_e;)this._parseNode(_e,ne),_e=_e.nextSibling;var me,Ee;if(ue){var ge=A(ue).split(x);ge.length>=4&&(me={x:parseFloat(ge[0]||0),y:parseFloat(ge[1]||0),width:parseFloat(ge[2]),height:parseFloat(ge[3])})}if(me&&be!=null&&de!=null&&(Ee=K(me,be,de),!Q.ignoreViewBox)){var Ae=ne;ne=new se,ne.add(Ae),Ae.scale=Ee.scale.slice(),Ae.position=Ee.position.slice()}return!Q.ignoreRootClip&&be!=null&&de!=null&&ne.setClipPath(new b({shape:{x:0,y:0,width:be,height:de}})),{root:ne,width:be,height:de,viewBoxRect:me,viewBoxTransform:Ee}},B.prototype._parseNode=function(N,Q){var J=N.nodeName.toLowerCase();J==="defs"?this._isDefine=!0:J==="text"&&(this._isText=!0);var ne;if(this._isDefine){var ue=g[J];if(ue){var be=ue.call(this,N),de=N.getAttribute("id");de&&(this._defs[de]=be)}}else{var ue=E[J];ue&&(ne=ue.call(this,N,Q),Q.add(ne))}for(var _e=N.firstChild;_e;)_e.nodeType===1&&this._parseNode(_e,ne),_e.nodeType===3&&this._isText&&this._parseText(_e,ne),_e=_e.nextSibling;J==="defs"?this._isDefine=!1:J==="text"&&(this._isText=!1)},B.prototype._parseText=function(N,Q){if(N.nodeType===1){var J=N.getAttribute("dx")||0,ne=N.getAttribute("dy")||0;this._textX+=parseFloat(J),this._textY+=parseFloat(ne)}var ue=new M({style:{text:N.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});u(Q,ue),T(N,ue,this._defs);var be=ue.style.fontSize;be&&be<9&&(ue.style.fontSize=9,ue.scale=ue.scale||[1,1],ue.scale[0]*=be/9,ue.scale[1]*=be/9);var de=ue.getBoundingRect();return this._textX+=de.width,Q.add(ue),ue};var E={g:function(N,Q){var J=new se;return u(Q,J),T(N,J,this._defs),J},rect:function(N,Q){var J=new b;return u(Q,J),T(N,J,this._defs),J.setShape({x:parseFloat(N.getAttribute("x")||0),y:parseFloat(N.getAttribute("y")||0),width:parseFloat(N.getAttribute("width")||0),height:parseFloat(N.getAttribute("height")||0)}),J},circle:function(N,Q){var J=new v;return u(Q,J),T(N,J,this._defs),J.setShape({cx:parseFloat(N.getAttribute("cx")||0),cy:parseFloat(N.getAttribute("cy")||0),r:parseFloat(N.getAttribute("r")||0)}),J},line:function(N,Q){var J=new w;return u(Q,J),T(N,J,this._defs),J.setShape({x1:parseFloat(N.getAttribute("x1")||0),y1:parseFloat(N.getAttribute("y1")||0),x2:parseFloat(N.getAttribute("x2")||0),y2:parseFloat(N.getAttribute("y2")||0)}),J},ellipse:function(N,Q){var J=new C;return u(Q,J),T(N,J,this._defs),J.setShape({cx:parseFloat(N.getAttribute("cx")||0),cy:parseFloat(N.getAttribute("cy")||0),rx:parseFloat(N.getAttribute("rx")||0),ry:parseFloat(N.getAttribute("ry")||0)}),J},polygon:function(N,Q){var J=N.getAttribute("points");J&&(J=S(J));var ne=new d({shape:{points:J||[]}});return u(Q,ne),T(N,ne,this._defs),ne},polyline:function(N,Q){var J=new m;u(Q,J),T(N,J,this._defs);var ne=N.getAttribute("points");ne&&(ne=S(ne));var ue=new i({shape:{points:ne||[]}});return ue},image:function(N,Q){var J=new G;return u(Q,J),T(N,J,this._defs),J.setStyle({image:N.getAttribute("xlink:href"),x:N.getAttribute("x"),y:N.getAttribute("y"),width:N.getAttribute("width"),height:N.getAttribute("height")}),J},text:function(N,Q){var J=N.getAttribute("x")||0,ne=N.getAttribute("y")||0,ue=N.getAttribute("dx")||0,be=N.getAttribute("dy")||0;this._textX=parseFloat(J)+parseFloat(ue),this._textY=parseFloat(ne)+parseFloat(be);var de=new se;return u(Q,de),T(N,de,this._defs),de},tspan:function(N,Q){var J=N.getAttribute("x"),ne=N.getAttribute("y");J!=null&&(this._textX=parseFloat(J)),ne!=null&&(this._textY=parseFloat(ne));var ue=N.getAttribute("dx")||0,be=N.getAttribute("dy")||0,de=new se;return u(Q,de),T(N,de,this._defs),this._textX+=ue,this._textY+=be,de},path:function(N,Q){var J=N.getAttribute("d")||"",ne=o(J);return u(Q,ne),T(N,ne,this._defs),ne}},g={lineargradient:function(N){var Q=parseInt(N.getAttribute("x1")||0,10),J=parseInt(N.getAttribute("y1")||0,10),ne=parseInt(N.getAttribute("x2")||10,10),ue=parseInt(N.getAttribute("y2")||0,10),be=new n(Q,J,ne,ue);return h(N,be),be},radialgradient:function(N){}};function h(N,Q){for(var J=N.firstChild;J;){if(J.nodeType===1){var ne=J.getAttribute("offset");ne.indexOf("%")>0?ne=parseInt(ne,10)/100:ne?ne=parseFloat(ne):ne=0;var ue=J.getAttribute("stop-color")||"#000000";Q.addColorStop(ne,ue)}J=J.nextSibling}}function u(N,Q){N&&N.__inheritedStyle&&(Q.__inheritedStyle||(Q.__inheritedStyle={}),c(Q.__inheritedStyle,N.__inheritedStyle))}function S(N){for(var Q=A(N).split(x),J=[],ne=0;ne<Q.length;ne+=2){var ue=parseFloat(Q[ne]),be=parseFloat(Q[ne+1]);J.push([ue,be])}return J}var O={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 T(N,Q,J,ne){var ue=Q.__inheritedStyle||{},be=Q.type==="text";if(N.nodeType===1&&(F(N,Q),r(ue,U(N)),!ne)){for(var de in O)if(O.hasOwnProperty(de)){var _e=N.getAttribute(de);_e!=null&&(ue[O[de]]=_e)}}var me=be?"textFill":"fill",Ee=be?"textStroke":"stroke";Q.style=Q.style||new e;var ge=Q.style;ue.fill!=null&&ge.set(me,I(ue.fill,J)),ue.stroke!=null&&ge.set(Ee,I(ue.stroke,J)),p(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(Ae){var ae=Ae==="lineWidth"&&be?"textStrokeWidth":Ae;ue[Ae]!=null&&ge.set(ae,parseFloat(ue[Ae]))}),(!ue.textBaseline||ue.textBaseline==="auto")&&(ue.textBaseline="alphabetic"),ue.textBaseline==="alphabetic"&&(ue.textBaseline="bottom"),ue.textAlign==="start"&&(ue.textAlign="left"),ue.textAlign==="end"&&(ue.textAlign="right"),p(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(Ae){ue[Ae]!=null&&ge.set(Ae,ue[Ae])}),ue.lineDash&&(Q.style.lineDash=A(ue.lineDash).split(x)),ge[Ee]&&ge[Ee]!=="none"&&(Q[Ee]=!0),Q.__inheritedStyle=ue}var D=/url\(\s*#(.*?)\)/;function I(N,Q){var J=Q&&N&&N.match(D);if(J){var ne=A(J[1]),ue=Q[ne];return ue}return N}var k=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function F(N,Q){var J=N.getAttribute("transform");if(J){J=J.replace(/,/g," ");var ne=null,ue=[];J.replace(k,function(me,Ee,ge){ue.push(Ee,ge)});for(var be=ue.length-1;be>0;be-=2){var de=ue[be],_e=ue[be-1];ne=ne||a.create();switch(_e){case"translate":de=A(de).split(x),a.translate(ne,ne,[parseFloat(de[0]),parseFloat(de[1]||0)]);break;case"scale":de=A(de).split(x),a.scale(ne,ne,[parseFloat(de[0]),parseFloat(de[1]||de[0])]);break;case"rotate":de=A(de).split(x),a.rotate(ne,ne,parseFloat(de[0]));break;case"skew":de=A(de).split(x),console.warn("Skew transform is not supported yet");break;case"matrix":var de=A(de).split(x);ne[0]=parseFloat(de[0]),ne[1]=parseFloat(de[1]),ne[2]=parseFloat(de[2]),ne[3]=parseFloat(de[3]),ne[4]=parseFloat(de[4]),ne[5]=parseFloat(de[5]);break}}Q.setLocalTransform(ne)}}var X=/([^\s:;]+)\s*:\s*([^:;]+)/g;function U(N){var Q=N.getAttribute("style"),J={};if(!Q)return J;var ne={};X.lastIndex=0;for(var ue;(ue=X.exec(Q))!=null;)ne[ue[1]]=ue[2];for(var be in O)O.hasOwnProperty(be)&&ne[be]!=null&&(J[O[be]]=ne[be]);return J}function K(N,Q,J){var ne=Q/N.width,ue=J/N.height,be=Math.min(ne,ue),de=[be,be],_e=[-(N.x+N.width/2)*be+Q/2,-(N.y+N.height/2)*be+J/2];return{scale:de,position:_e}}function V(N,Q){var J=new B;return J.parse(N,Q)}fe.parseXML=_,fe.makeViewBoxTransform=K,fe.parseSVG=V},MI8n:function(Ge,fe,R){"use strict";R.d(fe,"b",function(){return C}),R.d(fe,"a",function(){return d}),R.d(fe,"e",function(){return i}),R.d(fe,"d",function(){return n}),R.d(fe,"c",function(){return e}),R.d(fe,"f",function(){return a});var se=R("/cxE"),G=R("C/vA"),M=R("pmY6"),v=R("24hK"),b=function(){var s=function(o,f){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,r){l.__proto__=r}||function(l,r){for(var c in r)r.hasOwnProperty(c)&&(l[c]=r[c])},s(o,f)};return function(o,f){s(o,f);function l(){this.constructor=o}o.prototype=f===null?Object.create(f):(l.prototype=f.prototype,new l)}}(),C;(function(s){s.None=function(){return M.a.None};function o(I){return function(k,F,X){F===void 0&&(F=null);var U=!1,K;return K=I(function(V){return U?void 0:(K?K.dispose():U=!0,k.call(F,V))},null,X),U&&K.dispose(),K}}s.once=o;function f(I,k){return x(function(F,X,U){return X===void 0&&(X=null),I(function(K){return F.call(X,k(K))},null,U)})}s.map=f;function l(I,k){return x(function(F,X,U){return X===void 0&&(X=null),I(function(K){k(K),F.call(X,K)},null,U)})}s.forEach=l;function r(I,k){return x(function(F,X,U){return X===void 0&&(X=null),I(function(K){return k(K)&&F.call(X,K)},null,U)})}s.filter=r;function c(I){return I}s.signal=c;function A(){for(var I=[],k=0;k<arguments.length;k++)I[k]=arguments[k];return function(F,X,U){return X===void 0&&(X=null),M.e.apply(void 0,I.map(function(K){return K(function(V){return F.call(X,V)},null,U)}))}}s.any=A;function p(I,k,F){var X=F;return f(I,function(U){return X=k(X,U),X})}s.reduce=p;function x(I){var k,F=new d({onFirstListenerAdd:function(){k=I(F.fire,F)},onLastListenerRemove:function(){k.dispose()}});return F.event}s.snapshot=x;function _(I,k,F,X,U){F===void 0&&(F=100),X===void 0&&(X=!1);var K,V=void 0,N=void 0,Q=0,J=new d({leakWarningThreshold:U,onFirstListenerAdd:function(){K=I(function(ne){Q++,V=k(V,ne),X&&!N&&(J.fire(V),V=void 0),clearTimeout(N),N=setTimeout(function(){var ue=V;V=void 0,N=void 0,(!X||Q>1)&&J.fire(ue),Q=0},F)})},onLastListenerRemove:function(){K.dispose()}});return J.event}s.debounce=_;function B(I){var k=new Date().getTime();return f(o(I),function(F){return new Date().getTime()-k})}s.stopwatch=B;function E(I){var k=!0,F;return r(I,function(X){var U=k||X!==F;return k=!1,F=X,U})}s.latch=E;function g(I,k,F){k===void 0&&(k=!1),F===void 0&&(F=[]);var X=F.slice(),U=I(function(N){X?X.push(N):V.fire(N)}),K=function(){X&&X.forEach(function(N){return V.fire(N)}),X=null},V=new d({onFirstListenerAdd:function(){U||(U=I(function(N){return V.fire(N)}))},onFirstListenerDidAdd:function(){X&&(k?setTimeout(K):K())},onLastListenerRemove:function(){U&&U.dispose(),U=null}});return V.event}s.buffer=g;var h=function(){function I(k){this.event=k}return I.prototype.map=function(k){return new I(f(this.event,k))},I.prototype.forEach=function(k){return new I(l(this.event,k))},I.prototype.filter=function(k){return new I(r(this.event,k))},I.prototype.reduce=function(k,F){return new I(p(this.event,k,F))},I.prototype.latch=function(){return new I(E(this.event))},I.prototype.debounce=function(k,F,X,U){return F===void 0&&(F=100),X===void 0&&(X=!1),new I(_(this.event,k,F,X,U))},I.prototype.on=function(k,F,X){return this.event(k,F,X)},I.prototype.once=function(k,F,X){return o(this.event)(k,F,X)},I}();function u(I){return new h(I)}s.chain=u;function S(I,k,F){F===void 0&&(F=function(N){return N});var X=function(){for(var N=[],Q=0;Q<arguments.length;Q++)N[Q]=arguments[Q];return V.fire(F.apply(void 0,N))},U=function(){return I.on(k,X)},K=function(){return I.removeListener(k,X)},V=new d({onFirstListenerAdd:U,onLastListenerRemove:K});return V.event}s.fromNodeEventEmitter=S;function O(I,k,F){F===void 0&&(F=function(N){return N});var X=function(){for(var N=[],Q=0;Q<arguments.length;Q++)N[Q]=arguments[Q];return V.fire(F.apply(void 0,N))},U=function(){return I.addEventListener(k,X)},K=function(){return I.removeEventListener(k,X)},V=new d({onFirstListenerAdd:U,onLastListenerRemove:K});return V.event}s.fromDOMEventEmitter=O;function T(I){var k=new d,F=!1;return I.then(void 0,function(){return null}).then(function(){F?k.fire(void 0):setTimeout(function(){return k.fire(void 0)},0)}),F=!0,k.event}s.fromPromise=T;function D(I){return new Promise(function(k){return o(I)(k)})}s.toPromise=D})(C||(C={}));var w=-1,m=function(){function s(o,f){f===void 0&&(f=Math.random().toString(18).slice(2,5)),this.customThreshold=o,this.name=f,this._warnCountdown=0}return s.prototype.dispose=function(){this._stacks&&this._stacks.clear()},s.prototype.check=function(o){var f=this,l=w;if(typeof this.customThreshold=="number"&&(l=this.customThreshold),l<=0||o<l)return;this._stacks||(this._stacks=new Map);var r=new Error().stack.split(`
`).slice(3).join(`
`),c=this._stacks.get(r)||0;if(this._stacks.set(r,c+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=l*.5;var A,p=0;this._stacks.forEach(function(x,_){(!A||p<x)&&(A=_,p=x)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+o+" listeners already. MOST frequent listener ("+p+"):"),console.warn(A)}return function(){var x=f._stacks.get(r)||0;f._stacks.set(r,x-1)}},s}(),d=function(){function s(o){this._disposed=!1,this._options=o,this._leakageMon=w>0?new m(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(s.prototype,"event",{get:function(){var o=this;return this._event||(this._event=function(f,l,r){o._listeners||(o._listeners=new v.a);var c=o._listeners.isEmpty();c&&o._options&&o._options.onFirstListenerAdd&&o._options.onFirstListenerAdd(o);var A=o._listeners.push(l?[f,l]:f);c&&o._options&&o._options.onFirstListenerDidAdd&&o._options.onFirstListenerDidAdd(o),o._options&&o._options.onListenerDidAdd&&o._options.onListenerDidAdd(o,f,l);var p;o._leakageMon&&(p=o._leakageMon.check(o._listeners.size));var x;return x={dispose:function(){if(p&&p(),x.dispose=s._noop,!o._disposed&&(A(),o._options&&o._options.onLastListenerRemove)){var _=o._listeners&&!o._listeners.isEmpty();_||o._options.onLastListenerRemove(o)}}},r instanceof M.b?r.add(x):Array.isArray(r)&&r.push(x),x}),this._event},enumerable:!0,configurable:!0}),s.prototype.fire=function(o){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new v.a);for(var f=this._listeners.iterator(),l=f.next();!l.done;l=f.next())this._deliveryQueue.push([l.value,o]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),c=r[0],A=r[1];try{typeof c=="function"?c.call(void 0,A):c[0].call(c[1],A)}catch(p){Object(se.e)(p)}}}},s.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},s._noop=function(){},s}(),i=function(s){b(o,s);function o(f){var l=s.call(this,f)||this;return l._isPaused=0,l._eventQueue=new v.a,l._mergeFn=f&&f.merge,l}return o.prototype.pause=function(){this._isPaused++},o.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var f=this._eventQueue.toArray();this._eventQueue.clear(),s.prototype.fire.call(this,this._mergeFn(f))}else for(;!this._isPaused&&this._eventQueue.size!==0;)s.prototype.fire.call(this,this._eventQueue.shift())},o.prototype.fire=function(f){this._listeners&&(this._isPaused!==0?this._eventQueue.push(f):s.prototype.fire.call(this,f))},o}(d),n=function(){function s(){var o=this;this.hasListeners=!1,this.events=[],this.emitter=new d({onFirstListenerAdd:function(){return o.onFirstListenerAdd()},onLastListenerRemove:function(){return o.onLastListenerRemove()}})}return Object.defineProperty(s.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),s.prototype.add=function(o){var f=this,l={event:o,listener:null};this.events.push(l),this.hasListeners&&this.hook(l);var r=function(){f.hasListeners&&f.unhook(l);var c=f.events.indexOf(l);f.events.splice(c,1)};return Object(M.h)(Object(G.a)(r))},s.prototype.onFirstListenerAdd=function(){var o=this;this.hasListeners=!0,this.events.forEach(function(f){return o.hook(f)})},s.prototype.onLastListenerRemove=function(){var o=this;this.hasListeners=!1,this.events.forEach(function(f){return o.unhook(f)})},s.prototype.hook=function(o){var f=this;o.listener=o.event(function(l){return f.emitter.fire(l)})},s.prototype.unhook=function(o){o.listener&&o.listener.dispose(),o.listener=null},s.prototype.dispose=function(){this.emitter.dispose()},s}(),e=function(){function s(){this.buffers=[]}return s.prototype.wrapEvent=function(o){var f=this;return function(l,r,c){return o(function(A){var p=f.buffers[f.buffers.length-1];p?p.push(function(){return l.call(r,A)}):l.call(r,A)},void 0,c)}},s.prototype.bufferEvents=function(o){var f=[];this.buffers.push(f);var l=o();return this.buffers.pop(),f.forEach(function(r){return r()}),l},s}(),a=function(){function s(){var o=this;this.listening=!1,this.inputEvent=C.None,this.inputEventListener=M.a.None,this.emitter=new d({onFirstListenerDidAdd:function(){o.listening=!0,o.inputEventListener=o.inputEvent(o.emitter.fire,o.emitter)},onLastListenerRemove:function(){o.listening=!1,o.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(s.prototype,"input",{set:function(o){this.inputEvent=o,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=o(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),s.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},s}()},MKOG:function(Ge,fe,R){var se=R("bYtY"),G=R("YH21"),M=G.Dispatcher,v=R("mLcG"),b=R("Bq2U"),C=function(m){m=m||{},this.stage=m.stage||{},this.onframe=m.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,M.call(this)};C.prototype={constructor:C,addClip:function(m){this._clips.push(m)},addAnimator:function(m){m.animation=this;for(var d=m.getClips(),i=0;i<d.length;i++)this.addClip(d[i])},removeClip:function(m){var d=se.indexOf(this._clips,m);d>=0&&this._clips.splice(d,1)},removeAnimator:function(m){for(var d=m.getClips(),i=0;i<d.length;i++)this.removeClip(d[i]);m.animation=null},_update:function(){for(var m=new Date().getTime()-this._pausedTime,d=m-this._time,i=this._clips,n=i.length,e=[],a=[],s=0;s<n;s++){var o=i[s],f=o.step(m,d);f&&(e.push(f),a.push(o))}for(var s=0;s<n;)i[s]._needsRemove?(i[s]=i[n-1],i.pop(),n--):s++;n=e.length;for(var s=0;s<n;s++)a[s].fire(e[s]);this._time=m,this.onframe(d),this.trigger("frame",d),this.stage.update&&this.stage.update()},_startLoop:function(){var m=this;this._running=!0;function d(){m._running&&(v(d),!m._paused&&m._update())}v(d)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(m,d){d=d||{};var i=new b(m,d.loop,d.getter,d.setter);return this.addAnimator(i),i}},se.mixin(C,M);var w=C;Ge.exports=w},MKdu:function(Ge,fe,R){Ge.exports=R.p+"static/fsz.c0b87223.svg"},N0LK:function(Ge,fe,R){"use strict";R.d(fe,"x",function(){return se}),R.d(fe,"F",function(){return G}),R.d(fe,"r",function(){return v}),R.d(fe,"o",function(){return b}),R.d(fe,"p",function(){return C}),R.d(fe,"Q",function(){return w}),R.d(fe,"K",function(){return d}),R.d(fe,"k",function(){return i}),R.d(fe,"N",function(){return n}),R.d(fe,"m",function(){return e}),R.d(fe,"l",function(){return a}),R.d(fe,"I",function(){return s}),R.d(fe,"H",function(){return o}),R.d(fe,"q",function(){return f}),R.d(fe,"t",function(){return l}),R.d(fe,"D",function(){return r}),R.d(fe,"e",function(){return c}),R.d(fe,"f",function(){return A}),R.d(fe,"B",function(){return p}),R.d(fe,"C",function(){return x}),R.d(fe,"n",function(){return B}),R.d(fe,"O",function(){return g}),R.d(fe,"c",function(){return h}),R.d(fe,"d",function(){return u}),R.d(fe,"z",function(){return S}),R.d(fe,"A",function(){return O}),R.d(fe,"u",function(){return T}),R.d(fe,"E",function(){return I}),R.d(fe,"G",function(){return k}),R.d(fe,"i",function(){return X}),R.d(fe,"g",function(){return K}),R.d(fe,"v",function(){return N}),R.d(fe,"h",function(){return Q}),R.d(fe,"y",function(){return J}),R.d(fe,"w",function(){return ne}),R.d(fe,"a",function(){return ue}),R.d(fe,"P",function(){return be}),R.d(fe,"L",function(){return de}),R.d(fe,"J",function(){return _e}),R.d(fe,"j",function(){return me}),R.d(fe,"M",function(){return Ee}),R.d(fe,"s",function(){return ge}),R.d(fe,"b",function(){return Ae});function se(oe){return!oe||typeof oe!="string"?!0:oe.trim().length===0}function G(oe,ie,Te){Te===void 0&&(Te="0");for(var Re=""+oe,Me=[Re],re=Re.length;re<ie;re++)Me.push(Te);return Me.reverse().join("")}var M=/{(\d+)}/g;function v(oe){for(var ie=[],Te=1;Te<arguments.length;Te++)ie[Te-1]=arguments[Te];return ie.length===0?oe:oe.replace(M,function(Re,Me){var re=parseInt(Me,10);return isNaN(re)||re<0||re>=ie.length?Re:ie[re]})}function b(oe){return oe.replace(/[<>&]/g,function(ie){switch(ie){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return ie}})}function C(oe){return oe.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function w(oe,ie){ie===void 0&&(ie=" ");var Te=m(oe,ie);return d(Te,ie)}function m(oe,ie){if(!oe||!ie)return oe;var Te=ie.length;if(Te===0||oe.length===0)return oe;for(var Re=0;oe.indexOf(ie,Re)===Re;)Re=Re+Te;return oe.substring(Re)}function d(oe,ie){if(!oe||!ie)return oe;var Te=ie.length,Re=oe.length;if(Te===0||Re===0)return oe;for(var Me=Re,re=-1;!(re=oe.lastIndexOf(ie,Me-1),re===-1||re+Te!==Me);){if(re===0)return"";Me=re}return oe.substring(0,Me)}function i(oe){return oe.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function n(oe,ie){if(oe.length<ie.length)return!1;if(oe===ie)return!0;for(var Te=0;Te<ie.length;Te++)if(oe[Te]!==ie[Te])return!1;return!0}function e(oe,ie){var Te=oe.length-ie.length;return Te>0?oe.indexOf(ie,Te)===Te:Te===0?oe===ie:!1}function a(oe,ie,Te){if(Te===void 0&&(Te={}),!oe)throw new Error("Cannot create regex from empty string");ie||(oe=C(oe)),Te.wholeWord&&(/\B/.test(oe.charAt(0))||(oe="\\b"+oe),/\B/.test(oe.charAt(oe.length-1))||(oe=oe+"\\b"));var Re="";return Te.global&&(Re+="g"),Te.matchCase||(Re+="i"),Te.multiline&&(Re+="m"),Te.unicode&&(Re+="u"),new RegExp(oe,Re)}function s(oe){if(oe.source==="^"||oe.source==="^$"||oe.source==="$"||oe.source==="^\\s*$")return!1;var ie=oe.exec("");return!!(ie&&oe.lastIndex===0)}function o(oe){return(oe.global?"g":"")+(oe.ignoreCase?"i":"")+(oe.multiline?"m":"")+(oe.unicode?"u":"")}function f(oe){for(var ie=0,Te=oe.length;ie<Te;ie++){var Re=oe.charCodeAt(ie);if(Re!==32&&Re!==9)return ie}return-1}function l(oe,ie,Te){ie===void 0&&(ie=0),Te===void 0&&(Te=oe.length);for(var Re=ie;Re<Te;Re++){var Me=oe.charCodeAt(Re);if(Me!==32&&Me!==9)return oe.substring(ie,Re)}return oe.substring(ie,Te)}function r(oe,ie){ie===void 0&&(ie=oe.length-1);for(var Te=ie;Te>=0;Te--){var Re=oe.charCodeAt(Te);if(Re!==32&&Re!==9)return Te}return-1}function c(oe,ie){return oe<ie?-1:oe>ie?1:0}function A(oe,ie){for(var Te=Math.min(oe.length,ie.length),Re=0;Re<Te;Re++){var Me=oe.charCodeAt(Re),re=ie.charCodeAt(Re);if(Me===re)continue;x(Me)&&(Me+=32),x(re)&&(re+=32);var j=Me-re;if(j===0)continue;return p(Me)&&p(re)?j:c(oe.toLowerCase(),ie.toLowerCase())}return oe.length<ie.length?-1:oe.length>ie.length?1:0}function p(oe){return oe>=97&&oe<=122}function x(oe){return oe>=65&&oe<=90}function _(oe){return p(oe)||x(oe)}function B(oe,ie){return oe.length===ie.length&&E(oe,ie)}function E(oe,ie,Te){Te===void 0&&(Te=oe.length);for(var Re=0;Re<Te;Re++){var Me=oe.charCodeAt(Re),re=ie.charCodeAt(Re);if(Me===re)continue;if(_(Me)&&_(re)){var j=Math.abs(Me-re);if(j!==0&&j!==32)return!1}else if(String.fromCharCode(Me).toLowerCase()!==String.fromCharCode(re).toLowerCase())return!1}return!0}function g(oe,ie){var Te=ie.length;return ie.length>oe.length?!1:E(oe,ie,Te)}function h(oe,ie){var Te,Re=Math.min(oe.length,ie.length);for(Te=0;Te<Re;Te++)if(oe.charCodeAt(Te)!==ie.charCodeAt(Te))return Te;return Re}function u(oe,ie){var Te,Re=Math.min(oe.length,ie.length),Me=oe.length-1,re=ie.length-1;for(Te=0;Te<Re;Te++)if(oe.charCodeAt(Me-Te)!==ie.charCodeAt(re-Te))return Te;return Re}function S(oe){return 55296<=oe&&oe<=56319}function O(oe){return 56320<=oe&&oe<=57343}function T(oe,ie,Te){var Re=oe.charCodeAt(Te);if(S(Re)&&Te+1<ie){var Me=oe.charCodeAt(Te+1);if(O(Me))return(Re-55296<<10)+(Me-56320)+65536}return Re}function D(oe,ie){var Te=oe.charCodeAt(ie-1);if(O(Te)&&ie>1){var Re=oe.charCodeAt(ie-2);if(S(Re))return(Re-55296<<10)+(Te-56320)+65536}return Te}function I(oe,ie){var Te=ae.getInstance(),Re=ie,Me=oe.length,re=T(oe,Me,ie);ie+=re>=65536?2:1;for(var j=Te.getGraphemeBreakType(re);ie<Me;){var W=T(oe,Me,ie),he=Te.getGraphemeBreakType(W);if(Ae(j,he))break;ie+=W>=65536?2:1,j=he}return ie-Re}function k(oe,ie){var Te=ae.getInstance(),Re=ie,Me=D(oe,ie);ie-=Me>=65536?2:1;for(var re=Te.getGraphemeBreakType(Me);ie>0;){var j=D(oe,ie),W=Te.getGraphemeBreakType(j);if(Ae(W,re))break;ie-=j>=65536?2:1,re=W}return Re-ie}var F=/(?:[\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 X(oe){return F.test(oe)}var U=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function K(oe){return U.test(oe)}var V=/^[\t\n\r\x20-\x7E]*$/;function N(oe){return V.test(oe)}function Q(oe){for(var ie=0,Te=oe.length;ie<Te;ie++)if(J(oe.charCodeAt(ie)))return!0;return!1}function J(oe){return oe=+oe,oe>=11904&&oe<=55215||oe>=63744&&oe<=64255||oe>=65281&&oe<=65374}function ne(oe){return oe>=127462&&oe<=127487||oe>=9728&&oe<=10175||oe>=127744&&oe<=128591||oe>=128640&&oe<=128764||oe>=128992&&oe<=129003||oe>=129280&&oe<=129535||oe>=129648&&oe<=129651||oe>=129656&&oe<=129666||oe>=129680&&oe<=129685}var ue=String.fromCharCode(65279);function be(oe){return!!(oe&&oe.length>0&&oe.charCodeAt(0)===65279)}function de(oe){return btoa(encodeURIComponent(oe))}function _e(oe,ie){for(var Te="",Re=0;Re<ie;Re++)Te+=oe;return Te}function me(oe,ie){return ie===void 0&&(ie=!1),oe?(ie&&(oe=oe.replace(/\\./g,"")),oe.toLowerCase()!==oe):!1}function Ee(oe){var ie=90-65+1;return oe=oe%(2*ie),oe<ie?String.fromCharCode(97+oe):String.fromCharCode(65+oe-ie)}function ge(oe){var ie=ae.getInstance();return ie.getGraphemeBreakType(oe)}function Ae(oe,ie){return oe===0?ie!==5&&ie!==7:oe===2&&ie===3?!1:oe===4||oe===2||oe===3||(ie===4||ie===2||ie===3)?!0:oe===8&&(ie===8||ie===9||ie===11||ie===12)||((oe===11||oe===9)&&(ie===9||ie===10)||((oe===12||oe===10)&&ie===10||(ie===5||ie===13||(ie===7||(oe===1||oe===13&&ie===14)))))?!1:!(oe===6&&ie===6)}var ae=function(){function oe(){this._data=ve()}return oe.getInstance=function(){return oe._INSTANCE||(oe._INSTANCE=new oe),oe._INSTANCE},oe.prototype.getGraphemeBreakType=function(ie){if(ie<32)return ie===10?3:ie===13?2:4;if(ie<127)return 0;for(var Te=this._data,Re=Te.length/3,Me=1;Me<=Re;)if(ie<Te[3*Me])Me=2*Me;else if(ie>Te[3*Me+1])Me=2*Me+1;else return Te[3*Me+2];return 0},oe._INSTANCE=null,oe}();function ve(){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]")}},NC18:function(Ge,fe,R){var se=R("y+Vt"),G=R("IMiH"),M=R("7oTu"),v=Math.sqrt,b=Math.sin,C=Math.cos,w=Math.PI,m=function(c){return Math.sqrt(c[0]*c[0]+c[1]*c[1])},d=function(c,A){return(c[0]*A[0]+c[1]*A[1])/(m(c)*m(A))},i=function(c,A){return(c[0]*A[1]<c[1]*A[0]?-1:1)*Math.acos(d(c,A))};function n(c,A,p,x,_,B,E,g,h,u,S){var O=h*(w/180),T=C(O)*(c-p)/2+b(O)*(A-x)/2,D=-1*b(O)*(c-p)/2+C(O)*(A-x)/2,I=T*T/(E*E)+D*D/(g*g);I>1&&(E*=v(I),g*=v(I));var k=(_===B?-1:1)*v((E*E*(g*g)-E*E*(D*D)-g*g*(T*T))/(E*E*(D*D)+g*g*(T*T)))||0,F=k*E*D/g,X=k*-g*T/E,U=(c+p)/2+C(O)*F-b(O)*X,K=(A+x)/2+b(O)*F+C(O)*X,V=i([1,0],[(T-F)/E,(D-X)/g]),N=[(T-F)/E,(D-X)/g],Q=[(-1*T-F)/E,(-1*D-X)/g],J=i(N,Q);d(N,Q)<=-1&&(J=w),d(N,Q)>=1&&(J=0),B===0&&J>0&&(J=J-2*w),B===1&&J<0&&(J=J+2*w),S.addData(u,U,K,E,g,V,J,O,B)}var e=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,a=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function s(c){if(!c)return new G;for(var A=0,p=0,x=A,_=p,B,E=new G,g=G.CMD,h=c.match(e),u=0;u<h.length;u++){for(var S=h[u],O=S.charAt(0),T,D=S.match(a)||[],I=D.length,k=0;k<I;k++)D[k]=parseFloat(D[k]);for(var F=0;F<I;){var X,U,K,V,N,Q,J,ne=A,ue=p;switch(O){case"l":A+=D[F++],p+=D[F++],T=g.L,E.addData(T,A,p);break;case"L":A=D[F++],p=D[F++],T=g.L,E.addData(T,A,p);break;case"m":A+=D[F++],p+=D[F++],T=g.M,E.addData(T,A,p),x=A,_=p,O="l";break;case"M":A=D[F++],p=D[F++],T=g.M,E.addData(T,A,p),x=A,_=p,O="L";break;case"h":A+=D[F++],T=g.L,E.addData(T,A,p);break;case"H":A=D[F++],T=g.L,E.addData(T,A,p);break;case"v":p+=D[F++],T=g.L,E.addData(T,A,p);break;case"V":p=D[F++],T=g.L,E.addData(T,A,p);break;case"C":T=g.C,E.addData(T,D[F++],D[F++],D[F++],D[F++],D[F++],D[F++]),A=D[F-2],p=D[F-1];break;case"c":T=g.C,E.addData(T,D[F++]+A,D[F++]+p,D[F++]+A,D[F++]+p,D[F++]+A,D[F++]+p),A+=D[F-2],p+=D[F-1];break;case"S":X=A,U=p;var be=E.len(),de=E.data;B===g.C&&(X+=A-de[be-4],U+=p-de[be-3]),T=g.C,ne=D[F++],ue=D[F++],A=D[F++],p=D[F++],E.addData(T,X,U,ne,ue,A,p);break;case"s":X=A,U=p;var be=E.len(),de=E.data;B===g.C&&(X+=A-de[be-4],U+=p-de[be-3]),T=g.C,ne=A+D[F++],ue=p+D[F++],A+=D[F++],p+=D[F++],E.addData(T,X,U,ne,ue,A,p);break;case"Q":ne=D[F++],ue=D[F++],A=D[F++],p=D[F++],T=g.Q,E.addData(T,ne,ue,A,p);break;case"q":ne=D[F++]+A,ue=D[F++]+p,A+=D[F++],p+=D[F++],T=g.Q,E.addData(T,ne,ue,A,p);break;case"T":X=A,U=p;var be=E.len(),de=E.data;B===g.Q&&(X+=A-de[be-4],U+=p-de[be-3]),A=D[F++],p=D[F++],T=g.Q,E.addData(T,X,U,A,p);break;case"t":X=A,U=p;var be=E.len(),de=E.data;B===g.Q&&(X+=A-de[be-4],U+=p-de[be-3]),A+=D[F++],p+=D[F++],T=g.Q,E.addData(T,X,U,A,p);break;case"A":K=D[F++],V=D[F++],N=D[F++],Q=D[F++],J=D[F++],ne=A,ue=p,A=D[F++],p=D[F++],T=g.A,n(ne,ue,A,p,Q,J,K,V,N,T,E);break;case"a":K=D[F++],V=D[F++],N=D[F++],Q=D[F++],J=D[F++],ne=A,ue=p,A+=D[F++],p+=D[F++],T=g.A,n(ne,ue,A,p,Q,J,K,V,N,T,E);break}}(O==="z"||O==="Z")&&(T=g.Z,E.addData(T),A=x,p=_),B=T}return E.toStatic(),E}function o(c,A){var p=s(c);return A=A||{},A.buildPath=function(x){if(x.setData){x.setData(p.data);var _=x.getContext();_&&x.rebuildPath(_)}else{var _=x;p.rebuildPath(_)}},A.applyTransform=function(x){M(p,x),this.dirty(!0)},A}function f(c,A){return new se(o(c,A))}function l(c,A){return se.extend(o(c,A))}function r(c,A){for(var p=[],x=c.length,_=0;_<x;_++){var B=c[_];B.path||B.createPathProxy(),B.__dirtyPath&&B.buildPath(B.path,B.shape,!0),p.push(B.path)}var E=new se(A);return E.createPathProxy(),E.buildPath=function(g){g.appendPath(p);var h=g.getContext();h&&g.rebuildPath(h)},E}fe.createFromString=f,fe.extendFromString=l,fe.mergePath=r},NLgs:function(Ge,fe,R){"use strict";R.d(fe,"e",function(){return p}),R.d(fe,"f",function(){return x}),R.d(fe,"d",function(){return B}),R.d(fe,"c",function(){return E}),R.d(fe,"a",function(){return g}),R.d(fe,"b",function(){return h});var se=R("miYZ"),G=R("tsqr"),M=R("9og8"),v=R("2qtc"),b=R("kLXV"),C=R("WmNS"),w=R.n(C),m=R("q1tI"),d=R.n(m),i=R("9kvl"),n=R("xKgJ"),e=R("1vsH"),a=R("RCxd"),s=R("mOS8"),o=R.n(s),f=R("1ZF9"),l=R.n(f),r=R("WdTA"),c=R.n(r),A=R("m3rI"),p=function(S){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(x(S)&&_(O))},x=function(S){return Object(n.p)()?!0:(S({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},_=function(){var S,O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,T=Object(i.c)()._store.getState(),D=T.user;return(S=D.userInfo)!==null&&S!==void 0&&S.profile_completed?!0:(b.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:O?"\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(){i.d.push("/account/profile/edit")}}),!1)},B=function(){var S,O=Object(i.c)()._store.getState(),T=O.user;return(S=T.userInfo)!==null&&S!==void 0&&S.professional_certification?!0:(b.a.confirm({title:"\u63D0\u793A",centered:!0,content:d.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(e.O)("/account/certification")}}),!1)},E=function(){return Object(n.a)()?!0:(b.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:d.a.createElement("div",{className:"tc",style:{marginLeft:-38}},d.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),d.a.createElement("img",{src:Object(n.t)()?c.a:"".concat(A.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},g=function(S,O){return S?!0:(b.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:d.a.createElement("div",null,d.a.createElement("p",null,O||"\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"),d.a.createElement("div",{style:{marginLeft:"110px"}},d.a.createElement("img",{src:l.a,width:200}),d.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(e.O)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},h=function(S){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",T=Object(i.c)()._store.getState(),D=T.shixunsDetail.detail;return(D==null?void 0:D.public)===2||(D==null?void 0:D.public)===1||(D==null?void 0:D.shixun_status)===3?(b.a.info({centered:!0,icon:d.a.createElement(a.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:d.a.createElement("div",{className:"tc",style:{marginLeft:-38}},d.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},d.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(D==null?void 0:D.public)===2?"\u5DF2\u516C\u5F00":(D==null?void 0:D.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",O,"\u3002"),d.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),d.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:o.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(D==null?void 0:D.shixun_status)===2?(b.a.confirm({centered:!0,icon:d.a.createElement(a.a,null),title:"\u63D0\u793A",content:d.a.createElement("div",null,d.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",O,"\u3002"),d.a.createElement("br",null),d.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(){b.a.confirm({width:440,centered:!0,icon:d.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 k=Object(M.a)(w.a.mark(function X(){var U;return w.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,S({type:"shixunsDetail/cancelRelease",payload:{id:D==null?void 0:D.identifier}});case 2:U=V.sent,U.status!==401&&(G.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),S({type:"shixunsDetail/getShixunsDetail",payload:{id:D==null?void 0:D.identifier}}),S({type:"practiceSetting/getCommonData",payload:{id:D==null?void 0:D.identifier}}));case 4:case"end":return V.stop()}},X)}));function F(){return k.apply(this,arguments)}return F}()})}}),!0):!1}},Nddv:function(Ge,fe,R){Ge.exports=R.p+"static/sz.d6b17ad9.svg"},Nmxd:function(Ge,fe){Ge.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(Ge,fe,R){"use strict";Object.defineProperty(fe,"__esModule",{value:!0}),fe.default=void 0;var se=function(M){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,b=null;return function(){for(var C=this,w=arguments.length,m=new Array(w),d=0;d<w;d++)m[d]=arguments[d];clearTimeout(b),b=setTimeout(function(){M.apply(C,m)},v)}};fe.default=se},NvD2:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return C});var se=R("Kwbf");function G(w,m){var d=new Set;return w.forEach(function(i){m.has(i)||d.add(i)}),d}function M(w){var m=w||{},d=m.disabled,i=m.disableCheckbox,n=m.checkable;return!!(d||i)||n===!1}function v(w,m,d,i){for(var n=new Set(w),e=new Set,a=0;a<=d;a+=1){var s=m.get(a)||new Set;s.forEach(function(r){var c=r.key,A=r.node,p=r.children,x=p===void 0?[]:p;n.has(c)&&!i(A)&&x.filter(function(_){return!i(_.node)}).forEach(function(_){n.add(_.key)})})}for(var o=new Set,f=d;f>=0;f-=1){var l=m.get(f)||new Set;l.forEach(function(r){var c=r.parent,A=r.node;if(i(A)||!r.parent||o.has(r.parent.key))return;if(i(r.parent.node)){o.add(c.key);return}var p=!0,x=!1;(c.children||[]).filter(function(_){return!i(_.node)}).forEach(function(_){var B=_.key,E=n.has(B);p&&!E&&(p=!1),!x&&(E||e.has(B))&&(x=!0)}),p&&n.add(c.key),x&&e.add(c.key),o.add(c.key)})}return{checkedKeys:Array.from(n),halfCheckedKeys:Array.from(G(e,n))}}function b(w,m,d,i,n){for(var e=new Set(w),a=new Set(m),s=0;s<=i;s+=1){var o=d.get(s)||new Set;o.forEach(function(c){var A=c.key,p=c.node,x=c.children,_=x===void 0?[]:x;!e.has(A)&&!a.has(A)&&!n(p)&&_.filter(function(B){return!n(B.node)}).forEach(function(B){e.delete(B.key)})})}a=new Set;for(var f=new Set,l=i;l>=0;l-=1){var r=d.get(l)||new Set;r.forEach(function(c){var A=c.parent,p=c.node;if(n(p)||!c.parent||f.has(c.parent.key))return;if(n(c.parent.node)){f.add(A.key);return}var x=!0,_=!1;(A.children||[]).filter(function(B){return!n(B.node)}).forEach(function(B){var E=B.key,g=e.has(E);x&&!g&&(x=!1),!_&&(g||a.has(E))&&(_=!0)}),x||e.delete(A.key),_&&a.add(A.key),f.add(A.key)})}return{checkedKeys:Array.from(e),halfCheckedKeys:Array.from(G(a,e))}}function C(w,m,d,i){var n=[],e;i?e=i:e=M;var a=new Set(w.filter(function(l){var r=!!d[l];return r||n.push(l),r})),s=new Map,o=0;Object.keys(d).forEach(function(l){var r=d[l],c=r.level,A=s.get(c);A||(A=new Set,s.set(c,A)),A.add(r),o=Math.max(o,c)}),Object(se.a)(!n.length,"Tree missing follow keys: ".concat(n.slice(0,100).map(function(l){return"'".concat(l,"'")}).join(", ")));var f;return m===!0?f=v(a,s,o,e):f=b(a,m.halfCheckedKeys,s,o,e),f}},OC45:function(Ge,fe,R){Ge.exports={applyPublicContainer:"applyPublicContainer___3sK8L",applyPublicContent:"applyPublicContent___3Hye1",spin:"spin___3-Uh7",tips:"tips___3d-sF",action:"action___3Uny2"}},OLES:function(Ge,fe,R){"use strict";var se=R("U8pU"),G=R("VTBJ"),M=R("Ff2n"),v=R("q1tI"),b=R("uciX"),C=R("7ixt"),w=function(a){var s=a.overlay,o=a.prefixCls,f=a.id,l=a.overlayInnerStyle;return v.createElement("div",{className:"".concat(o,"-inner"),id:f,role:"tooltip",style:l},typeof s=="function"?s():s)},m=w,d=function(a,s){var o=a.overlayClassName,f=a.trigger,l=f===void 0?["hover"]:f,r=a.mouseEnterDelay,c=r===void 0?0:r,A=a.mouseLeaveDelay,p=A===void 0?.1:A,x=a.overlayStyle,_=a.prefixCls,B=_===void 0?"rc-tooltip":_,E=a.children,g=a.onVisibleChange,h=a.afterVisibleChange,u=a.transitionName,S=a.animation,O=a.placement,T=O===void 0?"right":O,D=a.align,I=D===void 0?{}:D,k=a.destroyTooltipOnHide,F=k===void 0?!1:k,X=a.defaultVisible,U=a.getTooltipContainer,K=a.overlayInnerStyle,V=Object(M.a)(a,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),N=Object(v.useRef)(null);Object(v.useImperativeHandle)(s,function(){return N.current});var Q=Object(G.a)({},V);"visible"in a&&(Q.popupVisible=a.visible);var J=function(){var _e=a.arrowContent,me=_e===void 0?null:_e,Ee=a.overlay,ge=a.id;return[v.createElement("div",{className:"".concat(B,"-arrow"),key:"arrow"},me),v.createElement(m,{key:"content",prefixCls:B,id:ge,overlay:Ee,overlayInnerStyle:K})]},ne=!1,ue=!1;if(typeof F=="boolean")ne=F;else if(F&&Object(se.a)(F)==="object"){var be=F.keepParent;ne=be===!0,ue=be===!1}return v.createElement(b.a,Object.assign({popupClassName:o,prefixCls:B,popup:J,action:l,builtinPlacements:C.a,popupPlacement:T,ref:N,popupAlign:I,getPopupContainer:U,onPopupVisibleChange:g,afterPopupVisibleChange:h,popupTransitionName:u,popupAnimation:S,defaultPopupVisible:X,destroyPopupOnHide:ne,autoDestroy:ue,mouseLeaveDelay:p,popupStyle:x,mouseEnterDelay:c},Q),E)},i=Object(v.forwardRef)(d),n=fe.a=i},OS9S:function(Ge,fe,R){var se=R("bYtY"),G=se.inherits,M=R("Gev7"),v=R("mFDi");function b(m){M.call(this,m),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}b.prototype.incremental=!0,b.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},b.prototype.addDisplayable=function(m,d){d?this._temporaryDisplayables.push(m):this._displayables.push(m),this.dirty()},b.prototype.addDisplayables=function(m,d){d=d||!1;for(var i=0;i<m.length;i++)this.addDisplayable(m[i],d)},b.prototype.eachPendingDisplayable=function(m){for(var d=this._cursor;d<this._displayables.length;d++)m&&m(this._displayables[d]);for(var d=0;d<this._temporaryDisplayables.length;d++)m&&m(this._temporaryDisplayables[d])},b.prototype.update=function(){this.updateTransform();for(var m=this._cursor;m<this._displayables.length;m++){var d=this._displayables[m];d.parent=this,d.update(),d.parent=null}for(var m=0;m<this._temporaryDisplayables.length;m++){var d=this._temporaryDisplayables[m];d.parent=this,d.update(),d.parent=null}},b.prototype.brush=function(m,d){for(var i=this._cursor;i<this._displayables.length;i++){var n=this._displayables[i];n.beforeBrush&&n.beforeBrush(m),n.brush(m,i===this._cursor?null:this._displayables[i-1]),n.afterBrush&&n.afterBrush(m)}this._cursor=i;for(var i=0;i<this._temporaryDisplayables.length;i++){var n=this._temporaryDisplayables[i];n.beforeBrush&&n.beforeBrush(m),n.brush(m,i===0?null:this._temporaryDisplayables[i-1]),n.afterBrush&&n.afterBrush(m)}this._temporaryDisplayables=[],this.notClear=!0};var C=[];b.prototype.getBoundingRect=function(){if(!this._rect){for(var m=new v(Infinity,Infinity,-Infinity,-Infinity),d=0;d<this._displayables.length;d++){var i=this._displayables[d],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(C)),m.union(n)}this._rect=m}return this._rect},b.prototype.contain=function(m,d){var i=this.transformCoordToLocal(m,d),n=this.getBoundingRect();if(n.contain(i[0],i[1]))for(var e=0;e<this._displayables.length;e++){var a=this._displayables[e];if(a.contain(m,d))return!0}return!1},G(b,M);var w=b;Ge.exports=w},OZM5:function(Ge,fe,R){"use strict";R.d(fe,"b",function(){return i}),R.d(fe,"a",function(){return n}),R.d(fe,"k",function(){return e}),R.d(fe,"h",function(){return a}),R.d(fe,"i",function(){return s}),R.d(fe,"g",function(){return o}),R.d(fe,"c",function(){return f}),R.d(fe,"d",function(){return l}),R.d(fe,"j",function(){return A}),R.d(fe,"e",function(){return p}),R.d(fe,"f",function(){return x});var se=R("KQm4"),G=R("U8pU"),M=R("Ff2n"),v=R("q1tI"),b=R.n(v),C=R("Kwbf"),w=R("WaYH"),m=.25,d=2;function i(_,B){var E=_.slice(),g=E.indexOf(B);return g>=0&&E.splice(g,1),E}function n(_,B){var E=_.slice();return E.indexOf(B)===-1&&E.push(B),E}function e(_){return _.split("-")}function a(_,B){return"".concat(_,"-").concat(B)}function s(_){return _&&_.type&&_.type.isTreeNode}function o(_,B){var E=[_],g=B[_];function h(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];u.forEach(function(S){var O=S.key,T=S.children;E.push(O),h(T)})}return h(g.children),E}function f(_,B){var E=_.clientY,g=B.selectHandle.getBoundingClientRect(),h=g.top,u=g.bottom,S=g.height,O=Math.max(S*m,d);return E<=h+O?-1:E>=u-O?1:0}function l(_,B){if(!_)return;var E=B.multiple;return E?_.slice():_.length?[_[0]]:_}var r=function(B){return B};function c(_,B){if(!_)return[];var E=B||{},g=E.processProps,h=g===void 0?r:g,u=Array.isArray(_)?_:[_];return u.map(function(S){var O=S.children,T=Object(M.a)(S,["children"]),D=c(O,B);return b.a.createElement(w.a,Object.assign({},h(T)),D)})}function A(_){if(!_)return null;var B;if(Array.isArray(_))B={checkedKeys:_,halfCheckedKeys:void 0};else if(Object(G.a)(_)==="object")B={checkedKeys:_.checked||void 0,halfCheckedKeys:_.halfChecked||void 0};else return Object(C.a)(!1,"`checkedKeys` is not an array or an object"),null;return B}function p(_,B){var E=new Set;function g(h){if(E.has(h))return;var u=B[h];if(!u)return;E.add(h);var S=u.parent,O=u.node;if(O.disabled)return;S&&g(S.key)}return(_||[]).forEach(function(h){g(h)}),Object(se.a)(E)}function x(_){var B={};return Object.keys(_).forEach(function(E){(E.startsWith("data-")||E.startsWith("aria-"))&&(B[E]=_[E])}),B}},Ohmc:function(Ge,fe,R){Ge.exports=R.p+"static/certificate.fc32dc1b.jpg"},OljG:function(Ge,fe,R){Ge.exports=R.p+"static/banner.4c45dd73.png"},Ot1p:function(Ge,fe,R){"use strict";var se=R("2qtc"),G=R("kLXV"),M=R("rAM+"),v=R("miYZ"),b=R("tsqr"),C=R("9og8"),w=R("tJVT"),m=R("jrin"),d=R("WmNS"),i=R.n(d),n=R("q1tI"),e=R.n(n),a=R("VrN/"),s=R.n(a),o=R("bdgK"),f=R("p77/"),l=R("Bd2K"),r=R("ELLl"),c=R("19Vz"),A=R("lZu9"),p=R("+NIl"),x=R("kSUc"),_=R("9Bee"),B=function(vt){var Mt=vt.value,Tt=Mt===void 0?"":Mt,Rt=vt.className,kt=vt.showTextOnly,Ut=vt.showLines,Bt=vt.style,At=Bt===void 0?{}:Bt,bt=Object(n.useMemo)(function(){return""},[Tt]);return e.a.createElement(e.a.Fragment,null,e.a.createElement("div",{dangerouslySetInnerHTML:{__html:bt}}))},E=R("0Owb"),g=R("dejd"),h=R("C+DQ"),u=R("1vsH"),S=R("m3rI"),O=[{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 T(vt){var Mt=vt.onActionCallback,Tt=vt.title,Rt=vt.icon,kt=vt.actionName,Ut=vt.className,Bt=Ut===void 0?"":Ut,At=vt.children;function bt(){Mt(kt)}return e.a.createElement("a",{title:Tt,className:Bt,onClick:bt},e.a.createElement("i",{className:"md-iconfont ".concat(Rt)}),At)}var D=function(vt){var Mt=vt.watch,Tt=vt.showNullButton,Rt=vt.onActionCallback,kt=vt.fullScreen,Ut=vt.insertTemp,Bt=vt.hidetoolBar,At=vt.uuid,bt=vt.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(u.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(u.D)("_educoder_session"),"&key=").concat(At,"&api=").concat(encodeURIComponent(S.a.PROXY_SERVER)));var je=[].concat(O,[{title:"".concat(Mt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Mt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return e.a.createElement("ul",{className:"markdown-toolbar-container"},!Bt&&je.map(function(qe,Ot){return e.a.createElement("li",{key:Ot},qe.actionName?e.a.createElement(T,Object(E.a)({},qe,{onActionCallback:Rt})):e.a.createElement("span",{className:"v-line"}))}),Tt?e.a.createElement("li",null,e.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Rt},e.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ut&&e.a.createElement("li",null,e.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Ut),onActionCallback:Rt},e.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),e.a.createElement("li",{className:"btn-full-screen"},e.a.createElement(T,{icon:"".concat(kt?"icon-shrink":"icon-enlarge"),title:kt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Rt})))},I=R("M8RZ"),k=R("+L6B"),F=R("2/Rp"),X=R("y8nQ"),U=R("Vl3Y"),K=R("5NDa"),V=R("5rEg"),N={labelCol:{span:4},wrapperCol:{span:20}},Q=function(vt){var Mt=vt.callback,Tt=vt.onCancel;function Rt(kt){Mt(kt)}return e.a.createElement(U.a,Object(E.a)({},N,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Rt}),e.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},e.a.createElement(V.a,null)),e.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},e.a.createElement(V.a,null)),e.a.createElement("div",{className:"flex-container flex-end"},e.a.createElement(F.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),e.a.createElement(F.a,{type:"ghost",onClick:Tt},"\u53D6\u6D88")))},J=R("7ahc"),ne=R("k1fw"),ue=R("HmJG"),be=R("BjJ7"),de=U.a.useForm,_e={width:280,marginRight:10},me={labelCol:{span:5},wrapperCol:{span:19}},Ee=function(vt){var Mt=vt.callback,Tt=vt.onCancel,Rt=de(),kt=Object(w.a)(Rt,1),Ut=kt[0],Bt=Object(n.useRef)();function At(qe){Mt(Object(ne.a)(Object(ne.a)({},qe),{},{name:Bt.current}))}function bt(qe,Ot){Ut.setFieldsValue({src:"/api/attachments/".concat(qe.id,"?type=").concat(qe.content_type),type:Ot.type})}function je(qe){var Ot=qe.target.files[0];Bt.current=Ot.name,Ae(Ot,bt)}return e.a.createElement(U.a,Object(E.a)({form:Ut},me,{className:"upload-image-panel",onFinish:At}),e.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},e.a.createElement("div",{className:"flex-container"},e.a.createElement(U.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},e.a.createElement(V.a,{style:_e})),e.a.createElement(ge,{onFileChange:je}))),e.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},e.a.createElement(V.a,{style:{width:264}})),e.a.createElement(U.a.Item,{style:{textAlign:"right"}},e.a.createElement(F.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),e.a.createElement(F.a,{type:"ghost",onClick:Tt},"\u53D6\u6D88")))};function ge(vt){var Mt=vt.onFileChange;return e.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",e.a.createElement("input",{type:"file",onChange:Mt}))}function Ae(vt,Mt){if(!vt)throw new String("\u6CA1\u6709\u6587\u4EF6");var Tt=new FormData;Tt.append("editormd-image-file",vt),Tt.append("file_param_name","editormd-image-file"),Tt.append("byxhr","true");var Rt=new window.XMLHttpRequest;Rt.withCredentials=!0,Rt.addEventListener("load",function(kt){Mt(JSON.parse(kt.target.responseText),vt)},!1),Rt.addEventListener("error",function(kt){console.error(kt)},!1),Rt.open("POST","".concat(be.a,"/api/attachments.json")),Rt.send(Tt)}var ae=R("giR+"),ve=R("fyUT"),oe=R("7Kak"),ie=R("9yH6"),Te=ie.a.Group,Re={margin:"0 8px"},Me=function(vt){var Mt=vt.callback,Tt=vt.onCancel;function Rt(kt){Mt(kt)}return e.a.createElement(U.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Rt},e.a.createElement("div",{className:"flex-container"},e.a.createElement("span",{style:Re},"\u5355\u5143\u683C\u6570\uFF1A"),e.a.createElement("span",{style:Re},"\u884C\u6570"),e.a.createElement(U.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},e.a.createElement(ve.a,null)),e.a.createElement("span",{style:Re},"\u5217\u6570"),e.a.createElement(U.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},e.a.createElement(ve.a,null))),e.a.createElement("div",{className:"flex-container",style:{marginTop:12}},e.a.createElement("span",{style:Re},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),e.a.createElement(U.a.Item,{name:"align"},e.a.createElement(Te,null,e.a.createElement(ie.a,{value:"default"},e.a.createElement("i",{className:"fa fa-align-justify"})),e.a.createElement(ie.a,{value:"left"},e.a.createElement("i",{className:"fa fa-align-left"})),e.a.createElement(ie.a,{value:"center"},e.a.createElement("i",{className:"fa fa-align-center"})),e.a.createElement(ie.a,{value:"right"},e.a.createElement("i",{className:"fa fa-align-right"}))))),e.a.createElement("div",{className:"flex-container flex-end"},e.a.createElement(F.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),e.a.createElement(F.a,{type:"ghost",onClick:Tt},"\u53D6\u6D88")))},re=R("ErOA"),j=R("7Cbv"),W="link",he="upload-image",te="code-block",ce="add-table",Ie="------------",ze={default:Ie,left:":".concat(Ie),center:":".concat(Ie,":"),right:"".concat(Ie,":")},_t=R("9VGf"),He,Ke;function ht(){}var St=0,ct=1e4,lt="\u2581",rt=`
**\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(vt){return/^\d+$/.test(vt)?"".concat(vt,"px"):vt}var $e=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ue=$e?"Cmd":"Ctrl",Ne=["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"],We=(He={},Object(m.a)(He,Ue+"-B","bold"),Object(m.a)(He,Ue+"-I","italic"),He),it=(Ke={},Object(m.a)(Ke,W,"\u6DFB\u52A0\u94FE\u63A5"),Object(m.a)(Ke,te,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(m.a)(Ke,he,"\u6DFB\u52A0\u6587\u4EF6"),Object(m.a)(Ke,ce,"\u6DFB\u52A0\u8868\u683C"),Ke),yt=fe.a=function(vt){var Mt=vt.defaultValue,Tt=Mt===void 0?"":Mt,Rt=vt.onChange,kt=vt.width,Ut=kt===void 0?"100%":kt,Bt=vt.height,At=Bt===void 0?400:Bt,bt=vt.miniToolbar,je=bt===void 0?!1:bt,qe=vt.isFocus,Ot=qe===void 0?!1:qe,Ct=vt.watch,jt=vt.insertTemp,Vt=vt.mode,Et=Vt===void 0?"markdown":Vt,Lt=vt.id,Ht=Lt===void 0?"markdown-editor-id":Lt,un=vt.showResizeBar,gn=un===void 0?!1:un,Ar=vt.noStorage,wr=Ar===void 0?!1:Ar,cr=vt.showNullButton,Rn=cr===void 0?!1:cr,Jr=vt.hidetoolBar,si=Jr===void 0?!1:Jr,li=vt.fullScreen,kr=li===void 0?!1:li,hi=vt.onBlur,Ui=vt.onCMBeforeChange,Zi=vt.onFullScreen,Le=vt.className,Fe=Le===void 0?"":Le,nt=vt.disablePaste,xt=nt===void 0?!1:nt,Wt=vt.placeholder,Xt=Wt===void 0?"":Wt,pe=vt.values,z=pe===void 0?"":pe,Z=Object(n.useState)(null),ye=Object(w.a)(Z,2),xe=ye[0],Ce=ye[1],ft=Object(n.useState)(Tt),zt=Object(w.a)(ft,2),ln=zt[0],mn=zt[1],Jt=Object(n.useState)(Ct),Zn=Object(w.a)(Jt,2),Un=Zn[0],nr=Zn[1],Sr=Object(n.useState)(kr),ii=Object(w.a)(Sr,2),Dr=ii[0],ti=ii[1],Tr=Object(n.useState)(""),vi=Object(w.a)(Tr,2),fi=vi[0],Oi=vi[1],wi=Object(n.useState)(0),Fi=Object(w.a)(wi,2),Hi=Fi[0],Ii=Fi[1],Vr=Object(n.useState)(At),zi=Object(w.a)(Vr,2),Gi=zi[0],Di=zi[1],sa=Object(n.useState)(!1),da=Object(w.a)(sa,2),Mi=da[0],Wr=da[1],hr=Object(n.useRef)(Object(j.a)()),zr=Object(n.useRef)(!1),Zr=Object(n.useRef)(),_i=Object(n.useRef)(),Xr=Object(n.useRef)(),ja=Object(n.useRef)(),Ni=Object(n.useRef)(),va=function(){var kn=Object(C.a)(i.a.mark(function Cr(){var gr,Gr;return i.a.wrap(function(Si){for(;;)switch(Si.prev=Si.next){case 0:return Si.next=2,Object(re.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:hr.current}});case 2:Gr=Si.sent,Gr!=null&&(gr=Gr.attachments)!==null&&gr!==void 0&&gr.length&&(console.log("cm:",xe,_i),Gr.attachments.map(function(oi){oi.content_type.indexOf("image")>-1?xe.replaceSelection("![,](/api/attachments/".concat(oi.id,"?type=").concat(oi.content_type,")")):oi.content_type.indexOf("video")>-1?xe.replaceSelection('<video width="100%" controls src="'.concat(S.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):oi.content_type.indexOf("pdf")>-1?xe.replaceSelection('<a href="'.concat(S.a.API_SERVER,"/api/attachments/").concat(oi.id,"?type=").concat(oi.content_type,'&disposition=inline" target="_blank">').concat(oi.name,"</a>")):xe.replaceSelection("[".concat(oi.name,"](").concat(S.a.API_SERVER,"/api/attachments/").concat(oi.id,"?type=").concat(oi.content_type,")"))}));case 4:case"end":return Si.stop()}},Cr)}));return function(){return kn.apply(this,arguments)}}();Object(n.useEffect)(function(){mn(z),xe==null||xe.setValue(z)},[z]),Object(n.useEffect)(function(){Zi==null||Zi(Dr)},[Dr]),Object(n.useEffect)(function(){if(_i.current){var kn=s.a.fromTextArea(_i.current,{mode:Et,lineNumbers:!je,lineWrapping:!0,value:Tt,autoCloseTags:!0,autoCloseBrackets:!0});Ot&&kn.focus();function Cr(gr,Gr){if(xt){Gr.preventDefault();return}var Ai=Gr.clipboardData;if(Ai){var Si=Ai.types.toString(),oi=Ai.items;if(Si==="Files"||Ai.types.indexOf("Files")>-1){if(Gr.preventDefault(),Et=="stex")return;try{var fa,Ha=oi[1];((fa=oi[0])===null||fa===void 0?void 0:fa.kind)==="file"&&(Ha=oi[0]);var ni=Ha.getAsFile(),zo=ni.name.split(".").pop();Ae(ni,function(pi){if(pi.id){var Sa,uo,Ga;(ni==null||((Sa=ni.type)===null||Sa===void 0)?void 0:Sa.indexOf("image"))>-1?kn.replaceSelection("![,](/api/attachments/".concat(pi.id,"?type=").concat(pi.content_type,")")):(ni==null||((uo=ni.type)===null||uo===void 0)?void 0:uo.indexOf("video"))>-1?kn.replaceSelection('<video width="100%" controls src="'.concat(S.a.API_SERVER,"/api/attachments/").concat(pi.id,'"></video>')):(ni==null||((Ga=ni.type)===null||Ga===void 0)?void 0:Ga.indexOf("pdf"))>-1?kn.replaceSelection('<a href="'.concat(S.a.API_SERVER,"/api/attachments/").concat(pi.id,"?type=").concat(ni.type,'&disposition=inline" target="_blank">').concat(ni.name,"</a>")):Ne.includes(zo)?kn.replaceSelection('<a href="'.concat(S.a.API_SERVER,"/api/attachments/").concat(pi.id,'?type=office&disposition=inline" target="_blank">').concat(ni.name,"</a>")):kn.replaceSelection("[".concat(ni.name,"](").concat(S.a.API_SERVER,"/api/attachments/").concat(pi.id,"?type=").concat(pi.content_type,")"))}else(pi==null?void 0:pi.status)===401&&(document.location.href="/user/login")})}catch(pi){b.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return kn.on("paste",Cr),kn.on("dragleave",function(gr,Gr){Xr.current.classList.remove("mouse-hover-md")}),kn.on("dragover",function(gr,Gr){Xr.current.classList.add("mouse-hover-md")}),kn.on("drop",function(gr,Gr){Xr.current.classList.add("mouse-hover-md");var Ai;if(Ai=Gr.dataTransfer.files,Ai.length>0){Gr.preventDefault(),Gr.stopPropagation();for(var Si=function(Ha){var ni=Ai[Ha],zo=ni.name.split(".").pop();Ae(ni,function(pi){if(pi.id){var Sa,uo,Ga;(ni==null||((Sa=ni.type)===null||Sa===void 0)?void 0:Sa.indexOf("image"))>-1?kn.replaceSelection("![,](/api/attachments/".concat(pi.id,"?type=").concat(pi.content_type,")")):(ni==null||((uo=ni.type)===null||uo===void 0)?void 0:uo.indexOf("video"))>-1?kn.replaceSelection('<video width="100%" controls src="'.concat(S.a.API_SERVER,"/api/attachments/").concat(pi.id,'"></video>')):(ni==null||((Ga=ni.type)===null||Ga===void 0)?void 0:Ga.indexOf("pdf"))>-1?kn.replaceSelection('<a href="'.concat(S.a.API_SERVER,"/api/attachments/").concat(pi.id,"?type=").concat(ni.type,'&disposition=inline" target="_blank">').concat(ni.name,"</a>")):Ne.includes(zo)?kn.replaceSelection('<a href="'.concat(S.a.API_SERVER,"/api/attachments/").concat(pi.id,'?type=office&disposition=inline" target="_blank">').concat(ni.name,"</a>")):kn.replaceSelection("[".concat(ni.name,"](").concat(S.a.API_SERVER,"/api/attachments/").concat(pi.id,"?type=").concat(pi.content_type,")"))}else(pi==null?void 0:pi.status)===401&&(document.location.href="/user/login")})},oi=0;oi<Ai.length;oi++)Si(oi)}}),Ce(kn),function(){kn.off("paste",Cr)}}},[]);var vo=Object(n.useCallback)(function(){if(Xr.current)try{}catch(kn){console.log(kn,"---- to set md editor body height")}},[Gi,Xr,Dr]);Object(n.useEffect)(function(){function kn(){var gr=new o.default(function(Gr){var Ai=Object(M.a)(Gr),Si;try{for(Ai.s();!(Si=Ai.n()).done;){var oi=Si.value;(oi.target.offsetHeight>0||oi.target.offsetWidth>0)&&(vo(),xe.setSize("100%","100%"),xe.refresh())}}catch(fa){Ai.e(fa)}finally{Ai.f()}});return gr.observe(_i.current.parentElement),gr}if(xe){var Cr=kn();return function(){Cr.unobserve(_i.current.parentElement)}}},[xe,vo]),Object(n.useEffect)(function(){if(xe){for(var kn=[],Cr=function(){var oi=Gr[gr];Ai=Object(w.a)(oi,2);var fa=Ai[0],Ha=Ai[1],ni=Object(m.a)({},fa,function(){Wo(Ha)});kn.push(ni),xe.addKeyMap(ni)},gr=0,Gr=Object.entries(We);gr<Gr.length;gr++){var Ai;Cr()}return Zr.current=setInterval(function(){zr.current&&va()},4e3),function(){clearInterval(Zr.current);var Si=Object(M.a)(kn),oi;try{for(Si.s();!(oi=Si.n()).done;){var fa=oi.value;xe.removeKeyMap(fa)}}catch(Ha){Si.e(Ha)}finally{Si.f()}}}},[xe]),Object(n.useEffect)(function(){kr!==Dr&&ti(kr)},[kr]),Object(_t.a)(function(){if(!wr&&Hi>0){var kn=new Date().getTime(),Cr=window.sessionStorage.getItem(Ht);kn>=Hi+ct&&(!Cr||Cr!==ln)&&(window.sessionStorage.setItem(Ht,ln),Wr(!0))}},ct),Object(n.useEffect)(function(){nr(Ct)},[xe,Ct]),Object(n.useEffect)(function(){xe&&(Ot&&xe.focus())},[xe,Ot]),Object(n.useEffect)(function(){if(Un&&xe){var kn=xe.getScrollerElement();function Cr(gr){var Gr=gr.target;if(Ni.current){var Ai=Gr.scrollTop/Gr.scrollHeight;Ni.current.scrollTop=Ni.current.scrollHeight*Ai}}return kn.addEventListener("scroll",Cr),function(){kn.removeEventListener("scroll",Cr)}}},[xe,Un]),Object(n.useEffect)(function(){if(xe&&Ui){function kn(Cr,gr){Ui(Cr,gr)}return xe.on("beforeChange",kn),function(){xe.off("beforeChange",kn)}}},[xe,Ui]),Object(n.useEffect)(function(){if(xe&&hi){function kn(){hi(xe.getValue())}return xe.on("blur",kn),function(){xe.off("blur",kn)}}},[xe,hi]),Object(n.useEffect)(function(){if(xe){function kn(Cr){var gr=Cr.getValue();mn(gr),Ii(new Date().getTime()),Cr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Rt&&Rt(gr)}return xe.on("change",kn),function(){xe.off("change",kn)}}},[xe,Rt]),Object(n.useEffect)(function(){xe&&(Tt==null?(xe.setValue(""),mn("")):Tt!==xe.getValue()&&(xe.setValue(Tt),mn(Tt),xe.setCursor(xe.lineCount(),0)))},[xe,Tt]);var Wo=Object(n.useCallback)(function(kn){var Cr=xe.getCursor(),gr=xe.getSelection(),Gr=gr.split(`
`);switch(kn){case"bold":return xe.replaceSelection("**"+gr+"**"),gr===""&&xe.setCursor(Cr.line,Cr.ch+2),xe.focus();case"italic":return xe.replaceSelection("*"+gr+"*"),gr===""&&xe.setCursor(Cr.line,Cr.ch+1),xe.focus();case"code":return xe.replaceSelection("`"+gr+"`"),gr===""&&xe.setCursor(Cr.line,Cr.ch+1),xe.focus();case"inline-latex":return xe.replaceSelection("`$$"+gr+"$$`"),gr===""&&xe.setCursor(Cr.line,Cr.ch+3),xe.focus();case"latex":return xe.replaceSelection("```latex\n"+gr+"\n```"),xe.setCursor(Cr.line+1,gr.length+1),xe.focus();case"line-break":return xe.replaceSelection(`<br/>
`),xe.focus();case"list-ul":return gr===""?xe.replaceSelection("- "+gr):xe.replaceSelection(Gr.map(function(Ai){return Ai===""?"":"- ".concat(Ai)}).join(`
`)),xe.focus();case"list-ol":return gr===""?xe.replaceSelection("1. "+gr):xe.replaceSelection(Gr.map(function(Ai,Si){return Ai===""?"":"".concat(Si+1,". ").concat(Ai)}).join(`
`)),xe.focus();case"add-null-ch":return gr===""&&xe.setCursor(Cr.line,Cr.ch+1),xe.replaceSelection(lt),xe.focus();case"inster-template-1":return gr===""&&xe.setCursor(Cr.line,Cr.ch),xe.replaceSelection(rt),xe.focus();case"eraser":return xe.setValue(""),xe.focus();case"trigger-watch":return nr(!Un),xe.focus();case"trigger-full-screen":return ti(!Dr),xe.focus();case W:Oi(W);return;case te:Oi(te);return;case he:Oi(he);return;case ce:Oi(ce);return;default:throw new Error}},[xe,Un,Dr]),Ci=Object(n.useCallback)(function(kn){Oi("");switch(fi){case W:var Cr=kn.title,gr=kn.link;return xe.replaceSelection("[".concat(Cr,"](").concat(gr,")")),xe.focus();case te:var Gr=kn.language,Ai=kn.content;return xe.replaceSelection(["```"+Gr,Ai,"```"].join(`
`)),xe.focus();case he:var Si=kn.src,oi=kn.alt,fa=kn.name;return Si.indexOf("type=image")>-1?xe.replaceSelection("![ ".concat(oi||""," ]( ").concat(Si,' "').concat(oi||"",'" )')):Si.indexOf("type=application/pdf")>-1?xe.replaceSelection('<a href="'.concat(Si,'&disposition=inline" target="_blank">').concat(fa,"</a>")):xe.replaceSelection('<a href="'.concat(Si,'" target="_blank">').concat(fa,"</a>")),xe.focus();case ce:for(var Ha=kn.row,ni=kn.col,zo=kn.align,pi=`
`,Sa=0;Sa<Ha;Sa++){for(var uo=[],Ga=[],gi=0;gi<ni;gi++)Sa===1&&Ga.push(ze[zo]),uo.push(" ");Sa===1&&(pi+="| ".concat(Ga.join(" | "),` |
`)),pi+="| ".concat(uo.join(ni===1?"":" | "),` |
`)}return xe.replaceSelection(pi+`
`),xe.focus();default:throw new Error}},[xe,fi]),Ro=Object(n.useMemo)(function(){switch(fi){case W:return e.a.createElement(Q,{callback:Ci,onCancel:ha});case te:return e.a.createElement(J.b,{callback:Ci,onCancel:ha});case he:return e.a.createElement(Ee,{callback:Ci,onCancel:ha});case ce:return e.a.createElement(Me,{callback:Ci,onCancel:ha});default:return null}},[fi]);function ha(){Oi("")}Object(n.useEffect)(function(){if(ja.current){var kn=ja.current,Cr=!1,gr=0;function Gr(oi){Cr=!0,gr=oi.pageY}function Ai(){Cr=!1}function Si(oi){if(Cr){var fa=oi.pageY-gr;fa<0&&(fa=0),fa>300&&(fa=300);var Ha=At+fa+"px";Di(Ha)}}return kn.addEventListener("mousedown",Gr),document.addEventListener("mousemove",Si),document.addEventListener("mouseup",Ai),function(){kn.removeEventListener("mousedown",Gr),document.removeEventListener("mousemove",Si),document.removeEventListener("mouseup",Ai)}}},[xe,ja]),Object(n.useEffect)(function(){Di(At)},[At]);var os=Ze(Ut),eo=Ze(Gi),ss={width:os,height:eo},Jo=Object(n.useMemo)(function(){if(Hi){var kn=new Date(Hi),Cr=kn.getHours(),gr=kn.getMinutes(),Gr=kn.getSeconds();return Cr=Cr<10?"0"+Cr:Cr,gr=gr<10?"0"+gr:gr,Gr=Gr<10?"0"+Gr:Gr,"".concat(Cr,":").concat(gr,":").concat(Gr)}return 0},[Hi]);function Ua(){window.sessionStorage.removeItem(Ht),Wr(!1),Ii(0)}function Zo(){Wr(!1),Ii(0),xe.setValue(window.sessionStorage.getItem(Ht))}function ps(kn,Cr){var gr=xe.getValue();gr=gr.replace(kn,Cr),mn(gr),xe==null||xe.setValue(gr)}return e.a.createElement(n.Fragment,null,e.a.createElement("div",{className:"markdown-editor-wrapper",ref:Xr},e.a.createElement("div",{className:"markdown-editor-container ".concat(Fe," ").concat(Un?"on-preview":""," ").concat(je?"mini":""," ").concat(Dr?"full-screen":""),style:ss},e.a.createElement(D,{insertTemp:jt,watch:Un,fullScreen:Dr,showNullButton:Rn,onActionCallback:Wo,hidetoolBar:si,uuid:hr.current,setOpenPhones:function(){zr.current=!0}}),e.a.createElement("div",{className:"markdown-editor-body"},e.a.createElement("div",{className:"codemirror-container"},e.a.createElement("textarea",{ref:_i,placeholder:Xt})),Un?e.a.createElement("div",{ref:Ni,className:"preview-container"},Et==="stex"&&e.a.createElement(B,{value:ln}),Et!=="stex"&&e.a.createElement(_.a,{edit:!0,value:ln,replaces:ps})):null))),gn?e.a.createElement("a",{ref:ja,className:"editor-resize"}):null,e.a.createElement(I.a,null,it[fi]?e.a.createElement(G.a,{centered:!0,title:it[fi],visible:!0,onCancel:ha,footer:null},Ro):null))}},P47w:function(Ge,fe,R){var se=R("hydK"),G=se.createElement,M=R("IMiH"),v=R("mFDi"),b=R("Fofx"),C=R("6GrX"),w=R("pzxd"),m=R("dqUG"),d=M.CMD,i=Array.prototype.join,n="none",e=Math.round,a=Math.sin,s=Math.cos,o=Math.PI,f=Math.PI*2,l=180/o,r=1e-4;function c(N){return e(N*1e4)/1e4}function A(N){return N<r&&N>-r}function p(N,Q){var J=Q?N.textFill:N.fill;return J!=null&&J!==n}function x(N,Q){var J=Q?N.textStroke:N.stroke;return J!=null&&J!==n}function _(N,Q){Q&&B(N,"transform","matrix("+i.call(Q,",")+")")}function B(N,Q,J){(!J||J.type!=="linear"&&J.type!=="radial")&&N.setAttribute(Q,J)}function E(N,Q,J){N.setAttributeNS("http://www.w3.org/1999/xlink",Q,J)}function g(N,Q,J,ne){if(p(Q,J)){var ue=J?Q.textFill:Q.fill;ue=ue==="transparent"?n:ue,B(N,"fill",ue),B(N,"fill-opacity",Q.fillOpacity!=null?Q.fillOpacity*Q.opacity:Q.opacity)}else B(N,"fill",n);if(x(Q,J)){var be=J?Q.textStroke:Q.stroke;be=be==="transparent"?n:be,B(N,"stroke",be);var de=J?Q.textStrokeWidth:Q.lineWidth,_e=!J&&Q.strokeNoScale?ne.getLineScale():1;B(N,"stroke-width",de/_e),B(N,"paint-order",J?"stroke":"fill"),B(N,"stroke-opacity",Q.strokeOpacity!=null?Q.strokeOpacity:Q.opacity);var me=Q.lineDash;me?(B(N,"stroke-dasharray",Q.lineDash.join(",")),B(N,"stroke-dashoffset",e(Q.lineDashOffset||0))):B(N,"stroke-dasharray",""),Q.lineCap&&B(N,"stroke-linecap",Q.lineCap),Q.lineJoin&&B(N,"stroke-linejoin",Q.lineJoin),Q.miterLimit&&B(N,"stroke-miterlimit",Q.miterLimit)}else B(N,"stroke",n)}function h(N){for(var Q=[],J=N.data,ne=N.len(),ue=0;ue<ne;){var be=J[ue++],de="",_e=0;switch(be){case d.M:de="M",_e=2;break;case d.L:de="L",_e=2;break;case d.Q:de="Q",_e=4;break;case d.C:de="C",_e=6;break;case d.A:var me=J[ue++],Ee=J[ue++],ge=J[ue++],Ae=J[ue++],ae=J[ue++],ve=J[ue++],oe=J[ue++],ie=J[ue++],Te=Math.abs(ve),Re=A(Te-f)||(ie?ve>=f:-ve>=f),Me=ve>0?ve%f:ve%f+f,re=!1;Re?re=!0:A(Te)?re=!1:re=Me>=o===!!ie;var j=c(me+ge*s(ae)),W=c(Ee+Ae*a(ae));Re&&(ie?ve=f-1e-4:ve=-f+1e-4,re=!0,ue===9&&Q.push("M",j,W));var he=c(me+ge*s(ae+ve)),te=c(Ee+Ae*a(ae+ve));Q.push("A",c(ge),c(Ae),e(oe*l),+re,+ie,he,te);break;case d.Z:de="Z";break;case d.R:var he=c(J[ue++]),te=c(J[ue++]),ce=c(J[ue++]),Ie=c(J[ue++]);Q.push("M",he,te,"L",he+ce,te,"L",he+ce,te+Ie,"L",he,te+Ie,"L",he,te);break}de&&Q.push(de);for(var ze=0;ze<_e;ze++)Q.push(c(J[ue++]))}return Q.join(" ")}var u={};u.brush=function(N){var Q=N.style,J=N.__svgEl;J||(J=G("path"),N.__svgEl=J),N.path||N.createPathProxy();var ne=N.path;if(N.__dirtyPath){ne.beginPath(),ne.subPixelOptimize=!1,N.buildPath(ne,N.shape),N.__dirtyPath=!1;var ue=h(ne);ue.indexOf("NaN")<0&&B(J,"d",ue)}g(J,Q,!1,N),_(J,N.transform),Q.text!=null?F(N,N.getBoundingRect()):V(N)};var S={};S.brush=function(N){var Q=N.style,J=Q.image;if(J instanceof HTMLImageElement){var ne=J.src;J=ne}if(!J)return;var ue=Q.x||0,be=Q.y||0,de=Q.width,_e=Q.height,me=N.__svgEl;me||(me=G("image"),N.__svgEl=me),J!==N.__imageSrc&&(E(me,"href",J),N.__imageSrc=J),B(me,"width",de),B(me,"height",_e),B(me,"x",ue),B(me,"y",be),_(me,N.transform),Q.text!=null?F(N,N.getBoundingRect()):V(N)};var O={},T=new v,D={},I=[],k={left:"start",right:"end",center:"middle",middle:"middle"},F=function(N,Q){var J=N.style,ne=N.transform,ue=N instanceof m||J.transformText;N.__dirty&&w.normalizeTextStyle(J,!0);var be=J.text;if(be!=null&&(be+=""),!w.needDrawText(be,J))return;be==null&&(be=""),!ue&&ne&&(T.copy(Q),T.applyTransform(ne),Q=T);var de=N.__textSvgEl;de||(de=G("text"),N.__textSvgEl=de);var _e=de.style,me=J.font||C.DEFAULT_FONT,Ee=de.__computedFont;me!==de.__styleFont&&(_e.font=de.__styleFont=me,Ee=de.__computedFont=_e.font);var ge=J.textPadding,Ae=J.textLineHeight,ae=N.__textCotentBlock;(!ae||N.__dirtyText)&&(ae=N.__textCotentBlock=C.parsePlainText(be,Ee,ge,Ae,J.truncate));var ve=ae.outerHeight,oe=ae.lineHeight;w.getBoxPosition(D,N,J,Q);var ie=D.baseX,Te=D.baseY,Re=D.textAlign||"left",Me=D.textVerticalAlign;X(de,ue,ne,J,Q,ie,Te);var re=C.adjustTextY(Te,ve,Me),j=ie,W=re;ge&&(j=U(ie,Re,ge),W+=ge[0]),W+=oe/2,g(de,J,!0,N);var he=ae.canCacheByTextString,te=N.__tspanList||(N.__tspanList=[]),ce=te.length;if(he&&N.__canCacheByTextString&&N.__text===be){if(N.__dirtyText&&ce)for(var Ie=0;Ie<ce;++Ie)K(te[Ie],Re,j,W+Ie*oe)}else{N.__text=be,N.__canCacheByTextString=he;for(var ze=ae.lines,_t=ze.length,Ie=0;Ie<_t;Ie++){var He=te[Ie],Ke=ze[Ie];He?He.__zrText!==Ke&&(He.innerHTML="",He.appendChild(document.createTextNode(Ke))):(He=te[Ie]=G("tspan"),de.appendChild(He),He.appendChild(document.createTextNode(Ke))),K(He,Re,j,W+Ie*oe)}if(ce>_t){for(;Ie<ce;Ie++)de.removeChild(te[Ie]);te.length=_t}}};function X(N,Q,J,ne,ue,be,de){b.identity(I),Q&&J&&b.copy(I,J);var _e=ne.textRotation;if(ue&&_e){var me=ne.textOrigin;me==="center"?(be=ue.width/2+ue.x,de=ue.height/2+ue.y):me&&(be=me[0]+ue.x,de=me[1]+ue.y),I[4]-=be,I[5]-=de,b.rotate(I,I,_e),I[4]+=be,I[5]+=de}_(N,I)}function U(N,Q,J){return Q==="right"?N-J[1]:Q==="center"?N+J[3]/2-J[1]/2:N+J[3]}function K(N,Q,J,ne){B(N,"dominant-baseline","middle"),B(N,"text-anchor",k[Q]),B(N,"x",J),B(N,"y",ne)}function V(N){N&&N.__textSvgEl&&(N.__textSvgEl.parentNode&&N.__textSvgEl.parentNode.removeChild(N.__textSvgEl),N.__textSvgEl=null,N.__tspanList=[],N.__text=null)}O.drawRectText=F,O.brush=function(N){var Q=N.style;Q.text!=null?F(N,!1):V(N)},fe.path=u,fe.image=S,fe.text=O},P4Qj:function(Ge,fe,R){"use strict";Object.defineProperty(fe,"__esModule",{value:!0}),fe.removeSensor=fe.getSensor=void 0;var se=v(R("chpo")),G=R("FxDU"),M=R("24YM");function v(m){return m&&m.__esModule?m:{default:m}}var b={},C=function(d){var i=d.getAttribute(M.SizeSensorId);if(i&&b[i])return b[i];var n=(0,se.default)();d.setAttribute(M.SizeSensorId,n);var e=(0,G.createSensor)(d);return b[n]=e,e};fe.getSensor=C;var w=function(d){var i=d.element.getAttribute(M.SizeSensorId);d.element.removeAttribute(M.SizeSensorId),d.destroy(),i&&b[i]&&delete b[i]};fe.removeSensor=w},QBsz:function(Ge,fe){var R=typeof Float32Array=="undefined"?Array:Float32Array;function se(g,h){var u=new R(2);return g==null&&(g=0),h==null&&(h=0),u[0]=g,u[1]=h,u}function G(g,h){return g[0]=h[0],g[1]=h[1],g}function M(g){var h=new R(2);return h[0]=g[0],h[1]=g[1],h}function v(g,h,u){return g[0]=h,g[1]=u,g}function b(g,h,u){return g[0]=h[0]+u[0],g[1]=h[1]+u[1],g}function C(g,h,u,S){return g[0]=h[0]+u[0]*S,g[1]=h[1]+u[1]*S,g}function w(g,h,u){return g[0]=h[0]-u[0],g[1]=h[1]-u[1],g}function m(g){return Math.sqrt(i(g))}var d=m;function i(g){return g[0]*g[0]+g[1]*g[1]}var n=i;function e(g,h,u){return g[0]=h[0]*u[0],g[1]=h[1]*u[1],g}function a(g,h,u){return g[0]=h[0]/u[0],g[1]=h[1]/u[1],g}function s(g,h){return g[0]*h[0]+g[1]*h[1]}function o(g,h,u){return g[0]=h[0]*u,g[1]=h[1]*u,g}function f(g,h){var u=m(h);return u===0?(g[0]=0,g[1]=0):(g[0]=h[0]/u,g[1]=h[1]/u),g}function l(g,h){return Math.sqrt((g[0]-h[0])*(g[0]-h[0])+(g[1]-h[1])*(g[1]-h[1]))}var r=l;function c(g,h){return(g[0]-h[0])*(g[0]-h[0])+(g[1]-h[1])*(g[1]-h[1])}var A=c;function p(g,h){return g[0]=-h[0],g[1]=-h[1],g}function x(g,h,u,S){return g[0]=h[0]+S*(u[0]-h[0]),g[1]=h[1]+S*(u[1]-h[1]),g}function _(g,h,u){var S=h[0],O=h[1];return g[0]=u[0]*S+u[2]*O+u[4],g[1]=u[1]*S+u[3]*O+u[5],g}function B(g,h,u){return g[0]=Math.min(h[0],u[0]),g[1]=Math.min(h[1],u[1]),g}function E(g,h,u){return g[0]=Math.max(h[0],u[0]),g[1]=Math.max(h[1],u[1]),g}fe.create=se,fe.copy=G,fe.clone=M,fe.set=v,fe.add=b,fe.scaleAndAdd=C,fe.sub=w,fe.len=m,fe.length=d,fe.lenSquare=i,fe.lengthSquare=n,fe.mul=e,fe.div=a,fe.dot=s,fe.scale=o,fe.normalize=f,fe.distance=l,fe.dist=r,fe.distanceSquare=c,fe.distSquare=A,fe.negate=p,fe.lerp=x,fe.applyTransform=_,fe.min=B,fe.max=E},QDVR:function(Ge,fe,R){"use strict";R.d(fe,"e",function(){return G}),R.d(fe,"d",function(){return M}),R.d(fe,"c",function(){return w}),R.d(fe,"b",function(){return m}),R.d(fe,"a",function(){return i});var se=function(){var n=function(e,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var f in o)o.hasOwnProperty(f)&&(s[f]=o[f])},n(e,a)};return function(e,a){n(e,a);function s(){this.constructor=e}e.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}}();function G(n){var e=[];return n.forEach(function(a){return e.push(a)}),e}function M(n){var e=[];return n.forEach(function(a,s){return e.push(s)}),e}var v=function(){function n(){this._value="",this._pos=0}return n.prototype.reset=function(e){return this._value=e,this._pos=0,this},n.prototype.next=function(){return this._pos+=1,this},n.prototype.hasNext=function(){return this._pos<this._value.length-1},n.prototype.cmp=function(e){var a=e.charCodeAt(0),s=this._value.charCodeAt(this._pos);return a-s},n.prototype.value=function(){return this._value[this._pos]},n}(),b=function(){function n(e){e===void 0&&(e=!0),this._splitOnBackslash=e}return n.prototype.reset=function(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},n.prototype.hasNext=function(){return this._to<this._value.length},n.prototype.next=function(){this._from=this._to;for(var e=!0;this._to<this._value.length;this._to++){var a=this._value.charCodeAt(this._to);if(a===47||this._splitOnBackslash&&a===92)if(e)this._from++;else break;else e=!1}return this},n.prototype.cmp=function(e){for(var a=0,s=e.length,o=this._from;a<s&&o<this._to;){var f=e.charCodeAt(a)-this._value.charCodeAt(o);if(f!==0)return f;a+=1,o+=1}return s===this._to-this._from?0:a<s?-1:1},n.prototype.value=function(){return this._value.substring(this._from,this._to)},n}(),C=function(){function n(){}return n}(),w=function(){function n(e){this._iter=e}return n.forPaths=function(){return new n(new b)},n.forStrings=function(){return new n(new v)},n.prototype.clear=function(){this._root=void 0},n.prototype.set=function(e,a){var s=this._iter.reset(e),o;for(this._root||(this._root=new C,this._root.segment=s.value()),o=this._root;;){var f=s.cmp(o.segment);if(f>0)o.left||(o.left=new C,o.left.segment=s.value()),o=o.left;else if(f<0)o.right||(o.right=new C,o.right.segment=s.value()),o=o.right;else if(s.hasNext())s.next(),o.mid||(o.mid=new C,o.mid.segment=s.value()),o=o.mid;else break}var l=o.value;return o.value=a,o.key=e,l},n.prototype.get=function(e){for(var a=this._iter.reset(e),s=this._root;s;){var o=a.cmp(s.segment);if(o>0)s=s.left;else if(o<0)s=s.right;else if(a.hasNext())a.next(),s=s.mid;else break}return s?s.value:void 0},n.prototype.findSubstr=function(e){for(var a=this._iter.reset(e),s=this._root,o=void 0;s;){var f=a.cmp(s.segment);if(f>0)s=s.left;else if(f<0)s=s.right;else if(a.hasNext())a.next(),o=s.value||o,s=s.mid;else break}return s&&s.value||o},n.prototype.forEach=function(e){this._forEach(this._root,e)},n.prototype._forEach=function(e,a){e&&(this._forEach(e.left,a),e.value&&a(e.value,e.key),this._forEach(e.mid,a),this._forEach(e.right,a))},n}(),m=function(){function n(){this.map=new Map,this.ignoreCase=!1}return n.prototype.set=function(e,a){this.map.set(this.toKey(e),a)},n.prototype.get=function(e){return this.map.get(this.toKey(e))},n.prototype.toKey=function(e){var a=e.toString();return this.ignoreCase&&(a=a.toLowerCase()),a},n}(),d=function(){function n(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return n.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),n.prototype.get=function(e,a){a===void 0&&(a=0);var s=this._map.get(e);return s?(a!==0&&this.touch(s,a),s.value):void 0},n.prototype.set=function(e,a,s){s===void 0&&(s=0);var o=this._map.get(e);if(o)o.value=a,s!==0&&this.touch(o,s);else{o={key:e,value:a,next:void 0,previous:void 0};switch(s){case 0:this.addItemLast(o);break;case 1:this.addItemFirst(o);break;case 2:this.addItemLast(o);break;default:this.addItemLast(o);break}this._map.set(e,o),this._size++}},n.prototype.delete=function(e){return!!this.remove(e)},n.prototype.remove=function(e){var a=this._map.get(e);return a?(this._map.delete(e),this.removeItem(a),this._size--,a.value):void 0},n.prototype.forEach=function(e,a){for(var s=this._head;s;)a?e.bind(a)(s.value,s.key,this):e(s.value,s.key,this),s=s.next},n.prototype.trimOld=function(e){if(e>=this.size)return;if(e===0){this.clear();return}for(var a=this._head,s=this.size;a&&s>e;)this._map.delete(a.key),a=a.next,s--;this._head=a,this._size=s,a&&(a.previous=void 0)},n.prototype.addItemFirst=function(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e},n.prototype.addItemLast=function(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e},n.prototype.removeItem=function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{var a=e.next,s=e.previous;if(!a||!s)throw new Error("Invalid list");a.previous=s,s.next=a}e.next=void 0,e.previous=void 0},n.prototype.touch=function(e,a){if(!this._head||!this._tail)throw new Error("Invalid list");if(a!==1&&a!==2)return;if(a===1){if(e===this._head)return;var s=e.next,o=e.previous;e===this._tail?(o.next=void 0,this._tail=o):(s.previous=o,o.next=s),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(a===2){if(e===this._tail)return;var s=e.next,o=e.previous;e===this._head?(s.previous=void 0,this._head=s):(s.previous=o,o.next=s),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},n.prototype.toJSON=function(){var e=[];return this.forEach(function(a,s){e.push([s,a])}),e},n}(),i=function(n){se(e,n);function e(a,s){s===void 0&&(s=1);var o=n.call(this)||this;return o._limit=a,o._ratio=Math.min(Math.max(0,s),1),o}return e.prototype.get=function(a){return n.prototype.get.call(this,a,2)},e.prototype.peek=function(a){return n.prototype.get.call(this,a,0)},e.prototype.set=function(a,s){n.prototype.set.call(this,a,s,2),this.checkTrim()},e.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},e}(d)},"QO+J":function(Ge,fe,R){"use strict";Object.defineProperty(fe,"__esModule",{value:!0}),fe.createSensor=void 0;var se=M(R("NohK")),G=R("24YM");function M(b){return b&&b.__esModule?b:{default:b}}var v=function(C){var w=void 0,m=[],d=function(){getComputedStyle(C).position==="static"&&(C.style.position="relative");var o=document.createElement("object");return o.onload=function(){o.contentDocument.defaultView.addEventListener("resize",i),i()},o.style.display="block",o.style.position="absolute",o.style.top="0",o.style.left="0",o.style.height="100%",o.style.width="100%",o.style.overflow="hidden",o.style.pointerEvents="none",o.style.zIndex="-1",o.style.opacity="0",o.setAttribute("class",G.SensorClassName),o.setAttribute("tabindex",G.SensorTabIndex),o.type="text/html",C.appendChild(o),o.data="about:blank",o},i=(0,se.default)(function(){m.forEach(function(s){s(C)})}),n=function(o){w||(w=d()),m.indexOf(o)===-1&&m.push(o)},e=function(){w&&w.parentNode&&(w.contentDocument&&w.contentDocument.defaultView.removeEventListener("resize",i),w.parentNode.removeChild(w),w=void 0,m=[])},a=function(o){var f=m.indexOf(o);f!==-1&&m.splice(f,1),m.length===0&&w&&e()};return{element:C,bind:n,destroy:e,unbind:a}};fe.createSensor=v},QcdW:function(Ge,fe,R){},Qe9p:function(Ge,fe,R){var se=R("1RvN"),G={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function M(h){return h=Math.round(h),h<0?0:h>255?255:h}function v(h){return h=Math.round(h),h<0?0:h>360?360:h}function b(h){return h<0?0:h>1?1:h}function C(h){return h.length&&h.charAt(h.length-1)==="%"?M(parseFloat(h)/100*255):M(parseInt(h,10))}function w(h){return h.length&&h.charAt(h.length-1)==="%"?b(parseFloat(h)/100):b(parseFloat(h))}function m(h,u,S){return S<0?S+=1:S>1&&(S-=1),S*6<1?h+(u-h)*S*6:S*2<1?u:S*3<2?h+(u-h)*(2/3-S)*6:h}function d(h,u,S){return h+(u-h)*S}function i(h,u,S,O,T){return h[0]=u,h[1]=S,h[2]=O,h[3]=T,h}function n(h,u){return h[0]=u[0],h[1]=u[1],h[2]=u[2],h[3]=u[3],h}var e=new se(20),a=null;function s(h,u){a&&n(a,u),a=e.put(h,a||u.slice())}function o(h,u){if(!h)return;u=u||[];var S=e.get(h);if(S)return n(u,S);h=h+"";var O=h.replace(/ /g,"").toLowerCase();if(O in G)return n(u,G[O]),s(h,u),u;if(O.charAt(0)==="#"){if(O.length===4){var T=parseInt(O.substr(1),16);if(!(T>=0&&T<=4095)){i(u,0,0,0,1);return}return i(u,(T&3840)>>4|(T&3840)>>8,T&240|(T&240)>>4,T&15|(T&15)<<4,1),s(h,u),u}else if(O.length===7){var T=parseInt(O.substr(1),16);if(!(T>=0&&T<=16777215)){i(u,0,0,0,1);return}return i(u,(T&16711680)>>16,(T&65280)>>8,T&255,1),s(h,u),u}return}var D=O.indexOf("("),I=O.indexOf(")");if(D!==-1&&I+1===O.length){var k=O.substr(0,D),F=O.substr(D+1,I-(D+1)).split(","),X=1;switch(k){case"rgba":if(F.length!==4){i(u,0,0,0,1);return}X=w(F.pop());case"rgb":if(F.length!==3){i(u,0,0,0,1);return}return i(u,C(F[0]),C(F[1]),C(F[2]),X),s(h,u),u;case"hsla":if(F.length!==4){i(u,0,0,0,1);return}return F[3]=w(F[3]),f(F,u),s(h,u),u;case"hsl":if(F.length!==3){i(u,0,0,0,1);return}return f(F,u),s(h,u),u;default:return}}i(u,0,0,0,1);return}function f(h,u){var S=(parseFloat(h[0])%360+360)%360/360,O=w(h[1]),T=w(h[2]),D=T<=.5?T*(O+1):T+O-T*O,I=T*2-D;return u=u||[],i(u,M(m(I,D,S+1/3)*255),M(m(I,D,S)*255),M(m(I,D,S-1/3)*255),1),h.length===4&&(u[3]=h[3]),u}function l(h){if(!h)return;var u=h[0]/255,S=h[1]/255,O=h[2]/255,T=Math.min(u,S,O),D=Math.max(u,S,O),I=D-T,k=(D+T)/2,F,X;if(I===0)F=0,X=0;else{k<.5?X=I/(D+T):X=I/(2-D-T);var U=((D-u)/6+I/2)/I,K=((D-S)/6+I/2)/I,V=((D-O)/6+I/2)/I;u===D?F=V-K:S===D?F=1/3+U-V:O===D&&(F=2/3+K-U),F<0&&(F+=1),F>1&&(F-=1)}var N=[F*360,X,k];return h[3]!=null&&N.push(h[3]),N}function r(h,u){var S=o(h);if(S){for(var O=0;O<3;O++)u<0?S[O]=S[O]*(1-u)|0:S[O]=(255-S[O])*u+S[O]|0,S[O]>255?S[O]=255:h[O]<0&&(S[O]=0);return g(S,S.length===4?"rgba":"rgb")}}function c(h){var u=o(h);if(u)return((1<<24)+(u[0]<<16)+(u[1]<<8)+ +u[2]).toString(16).slice(1)}function A(h,u,S){if(!(u&&u.length)||!(h>=0&&h<=1))return;S=S||[];var O=h*(u.length-1),T=Math.floor(O),D=Math.ceil(O),I=u[T],k=u[D],F=O-T;return S[0]=M(d(I[0],k[0],F)),S[1]=M(d(I[1],k[1],F)),S[2]=M(d(I[2],k[2],F)),S[3]=b(d(I[3],k[3],F)),S}var p=A;function x(h,u,S){if(!(u&&u.length)||!(h>=0&&h<=1))return;var O=h*(u.length-1),T=Math.floor(O),D=Math.ceil(O),I=o(u[T]),k=o(u[D]),F=O-T,X=g([M(d(I[0],k[0],F)),M(d(I[1],k[1],F)),M(d(I[2],k[2],F)),b(d(I[3],k[3],F))],"rgba");return S?{color:X,leftIndex:T,rightIndex:D,value:O}:X}var _=x;function B(h,u,S,O){if(h=o(h),h)return h=l(h),u!=null&&(h[0]=v(u)),S!=null&&(h[1]=w(S)),O!=null&&(h[2]=w(O)),g(f(h),"rgba")}function E(h,u){if(h=o(h),h&&u!=null)return h[3]=b(u),g(h,"rgba")}function g(h,u){if(!h||!h.length)return;var S=h[0]+","+h[1]+","+h[2];return(u==="rgba"||u==="hsva"||u==="hsla")&&(S+=","+h[3]),u+"("+S+")"}fe.parse=o,fe.lift=r,fe.toHex=c,fe.fastLerp=A,fe.fastMapToColor=p,fe.lerp=x,fe.mapToColor=_,fe.modifyHSL=B,fe.modifyAlpha=E,fe.stringify=g},QuXc:function(Ge,fe){var R=function(G){this.colorStops=G||[]};R.prototype={constructor:R,addColorStop:function(G,M){this.colorStops.push({offset:G,color:M})}};var se=R;Ge.exports=se},RDYZ:function(Ge,fe,R){var se=R("dMvE");function G(v){this._target=v.target,this._life=v.life||1e3,this._delay=v.delay||0,this._initialized=!1,this.loop=v.loop==null?!1:v.loop,this.gap=v.gap||0,this.easing=v.easing||"Linear",this.onframe=v.onframe,this.ondestroy=v.ondestroy,this.onrestart=v.onrestart,this._pausedTime=0,this._paused=!1}G.prototype={constructor:G,step:function(v,b){if(this._initialized||(this._startTime=v+this._delay,this._initialized=!0),this._paused){this._pausedTime+=b;return}var C=(v-this._startTime-this._pausedTime)/this._life;if(C<0)return;C=Math.min(C,1);var w=this.easing,m=typeof w=="string"?se[w]:w,d=typeof m=="function"?m(C):C;return this.fire("frame",d),C===1?this.loop?(this.restart(v),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(v){var b=(v-this._startTime-this._pausedTime)%this._life;this._startTime=v-b+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(v,b){v="on"+v,this[v]&&this[v](this._target,b)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var M=G;Ge.exports=M},RMFE:function(Ge,fe){Ge.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(Ge,fe,R){var se=R("y+Vt"),G=se.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(M,v){var b=v.cx,C=v.cy,w=Math.PI*2;M.moveTo(b+v.r,C),M.arc(b,C,v.r,0,w,!1),M.moveTo(b+v.r0,C),M.arc(b,C,v.r0,0,w,!0)}});Ge.exports=G},RotF:function(Ge,fe,R){Ge.exports=R("LSTS")},RxwV:function(Ge,fe,R){"use strict";var se=R("q1tI"),G=R("uciX"),M=R("2W6z"),v=R.n(M),b=R("4IlW"),C=R("uK0f"),w=R.n(C);function m(de,_e){if(de===_e)return!0;if(!de||!_e)return!1;var me=de.length;if(_e.length!==me)return!1;for(var Ee=0;Ee<me;Ee++)if(de[Ee]!==_e[Ee])return!1;return!0}function d(de){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(me){return typeof me}:d=function(me){return me&&typeof Symbol=="function"&&me.constructor===Symbol&&me!==Symbol.prototype?"symbol":typeof me},d(de)}function i(de,_e){if(!(de instanceof _e))throw new TypeError("Cannot call a class as a function")}function n(de,_e){for(var me=0;me<_e.length;me++){var Ee=_e[me];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(de,Ee.key,Ee)}}function e(de,_e,me){return _e&&n(de.prototype,_e),me&&n(de,me),de}function a(de,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");de.prototype=Object.create(_e&&_e.prototype,{constructor:{value:de,writable:!0,configurable:!0}}),_e&&s(de,_e)}function s(de,_e){return s=Object.setPrototypeOf||function(Ee,ge){return Ee.__proto__=ge,Ee},s(de,_e)}function o(de){var _e=r();return function(){var me=c(de),Ee;if(_e){var ge=c(this).constructor;Ee=Reflect.construct(me,arguments,ge)}else Ee=me.apply(this,arguments);return f(this,Ee)}}function f(de,_e){return _e&&(d(_e)==="object"||typeof _e=="function")?_e:l(de)}function l(de){if(de===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de}function r(){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(de){return!1}}function c(de){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(me){return me.__proto__||Object.getPrototypeOf(me)},c(de)}var A=function(){var de=function(_e){a(Ee,_e);var me=o(Ee);function Ee(){var ge;return i(this,Ee),ge=me.apply(this,arguments),ge.menuItems={},ge.saveMenuItem=function(Ae){return function(ae){ge.menuItems[Ae]=ae}},ge}return e(Ee,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(Ae){!Ae.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(Ae){var ae=this.props,ve=ae.fieldNames,oe=ae.defaultFieldNames;return ve[Ae]||oe[Ae]}},{key:"getOption",value:function(Ae,ae){var ve=this.props,oe=ve.prefixCls,ie=ve.expandTrigger,Te=ve.expandIcon,Re=ve.loadingIcon,Me=this.props.onSelect.bind(this,Ae,ae),re=this.props.onItemDoubleClick.bind(this,Ae,ae),j={onClick:Me,onDoubleClick:re},W="".concat(oe,"-menu-item"),he=null,te=Ae[this.getFieldName("children")]&&Ae[this.getFieldName("children")].length>0;(te||Ae.isLeaf===!1)&&(W+=" ".concat(oe,"-menu-item-expand"),Ae.loading||(he=se.createElement("span",{className:"".concat(oe,"-menu-item-expand-icon")},Te))),ie==="hover"&&(te||Ae.isLeaf===!1)&&(j={onMouseEnter:this.delayOnSelect.bind(this,Me),onMouseLeave:this.delayOnSelect.bind(this),onClick:Me}),this.isActiveOption(Ae,ae)&&(W+=" ".concat(oe,"-menu-item-active"),j.ref=this.saveMenuItem(ae)),Ae.disabled&&(W+=" ".concat(oe,"-menu-item-disabled"));var ce=null;Ae.loading&&(W+=" ".concat(oe,"-menu-item-loading"),ce=Re||null);var Ie="";return"title"in Ae?Ie=Ae.title:typeof Ae[this.getFieldName("label")]=="string"&&(Ie=Ae[this.getFieldName("label")]),se.createElement("li",Object.assign({key:Ae[this.getFieldName("value")],className:W,title:Ie},j,{role:"menuitem",onMouseDown:function(_t){return _t.preventDefault()}}),Ae[this.getFieldName("label")],he,ce)}},{key:"getActiveOptions",value:function(Ae){var ae=this,ve=this.props.options,oe=Ae||this.props.activeValue;return w()(ve,function(ie,Te){return ie[ae.getFieldName("value")]===oe[Te]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var Ae=this,ae=this.props.options,ve=this.getActiveOptions().map(function(oe){return oe[Ae.getFieldName("children")]}).filter(function(oe){return!!oe});return ve.unshift(ae),ve}},{key:"delayOnSelect",value:function(Ae){for(var ae=this,ve=arguments.length,oe=new Array(ve>1?ve-1:0),ie=1;ie<ve;ie++)oe[ie-1]=arguments[ie];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof Ae=="function"&&(this.delayTimer=window.setTimeout(function(){Ae(oe),ae.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var Ae=this.getShowOptions().length,ae=0;ae<Ae;ae++){var ve=this.menuItems[ae];ve&&ve.parentElement&&(ve.parentElement.scrollTop=ve.offsetTop)}}},{key:"isActiveOption",value:function(Ae,ae){var ve=this.props.activeValue,oe=ve===void 0?[]:ve;return oe[ae]===Ae[this.getFieldName("value")]}},{key:"render",value:function(){var Ae=this,ae=this.props,ve=ae.prefixCls,oe=ae.dropdownMenuColumnStyle;return se.createElement("div",null,this.getShowOptions().map(function(ie,Te){return se.createElement("ul",{className:"".concat(ve,"-menu"),key:Te,style:oe},ie.map(function(Re){return Ae.getOption(Re,Te)}))}))}}]),Ee}(se.Component);return de.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},de}(),p=A,x={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},_=x;function B(de){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?B=function(me){return typeof me}:B=function(me){return me&&typeof Symbol=="function"&&me.constructor===Symbol&&me!==Symbol.prototype?"symbol":typeof me},B(de)}function E(de,_e){if(de==null)return{};var me=g(de,_e),Ee,ge;if(Object.getOwnPropertySymbols){var Ae=Object.getOwnPropertySymbols(de);for(ge=0;ge<Ae.length;ge++){if(Ee=Ae[ge],_e.indexOf(Ee)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(de,Ee))continue;me[Ee]=de[Ee]}}return me}function g(de,_e){if(de==null)return{};var me={},Ee=Object.keys(de),ge,Ae;for(Ae=0;Ae<Ee.length;Ae++){if(ge=Ee[Ae],_e.indexOf(ge)>=0)continue;me[ge]=de[ge]}return me}function h(de){return T(de)||O(de)||S(de)||u()}function u(){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 S(de,_e){if(!de)return;if(typeof de=="string")return D(de,_e);var me=Object.prototype.toString.call(de).slice(8,-1);if(me==="Object"&&de.constructor&&(me=de.constructor.name),me==="Map"||me==="Set")return Array.from(de);if(me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me))return D(de,_e)}function O(de){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(de))return Array.from(de)}function T(de){if(Array.isArray(de))return D(de)}function D(de,_e){(_e==null||_e>de.length)&&(_e=de.length);for(var me=0,Ee=new Array(_e);me<_e;me++)Ee[me]=de[me];return Ee}function I(de,_e){if(!(de instanceof _e))throw new TypeError("Cannot call a class as a function")}function k(de,_e){for(var me=0;me<_e.length;me++){var Ee=_e[me];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(de,Ee.key,Ee)}}function F(de,_e,me){return _e&&k(de.prototype,_e),me&&k(de,me),de}function X(de,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");de.prototype=Object.create(_e&&_e.prototype,{constructor:{value:de,writable:!0,configurable:!0}}),_e&&U(de,_e)}function U(de,_e){return U=Object.setPrototypeOf||function(Ee,ge){return Ee.__proto__=ge,Ee},U(de,_e)}function K(de){var _e=Q();return function(){var me=J(de),Ee;if(_e){var ge=J(this).constructor;Ee=Reflect.construct(me,arguments,ge)}else Ee=me.apply(this,arguments);return V(this,Ee)}}function V(de,_e){return _e&&(B(_e)==="object"||typeof _e=="function")?_e:N(de)}function N(de){if(de===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de}function Q(){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(de){return!1}}function J(de){return J=Object.setPrototypeOf?Object.getPrototypeOf:function(me){return me.__proto__||Object.getPrototypeOf(me)},J(de)}var ne=function(){var de=function(_e){X(Ee,_e);var me=K(Ee);function Ee(ge){var Ae;I(this,Ee),Ae=me.call(this,ge),Ae.setPopupVisible=function(ve){var oe=Ae.state.value;"popupVisible"in Ae.props||Ae.setState({popupVisible:ve}),ve&&!Ae.state.popupVisible&&Ae.setState({activeValue:oe}),Ae.props.onPopupVisibleChange(ve)},Ae.handleChange=function(ve,oe,ie){var Te=oe.visible;(ie.type!=="keydown"||ie.keyCode===b.a.ENTER)&&(Ae.props.onChange(ve.map(function(Re){return Re[Ae.getFieldName("value")]}),ve),Ae.setPopupVisible(Te))},Ae.handlePopupVisibleChange=function(ve){Ae.setPopupVisible(ve)},Ae.handleMenuSelect=function(ve,oe,ie){var Te=Ae.trigger.getRootDomNode();Te&&Te.focus&&Te.focus();var Re=Ae.props,Me=Re.changeOnSelect,re=Re.loadData,j=Re.expandTrigger;if(!ve||ve.disabled)return;var W=Ae.state.activeValue;W=W.slice(0,oe+1),W[oe]=ve[Ae.getFieldName("value")];var he=Ae.getActiveOptions(W);if(ve.isLeaf===!1&&!ve[Ae.getFieldName("children")]&&re){Me&&Ae.handleChange(he,{visible:!0},ie),Ae.setState({activeValue:W}),re(he);return}var te={};!ve[Ae.getFieldName("children")]||!ve[Ae.getFieldName("children")].length?(Ae.handleChange(he,{visible:!1},ie),te.value=W):Me&&(ie.type==="click"||ie.type==="keydown")&&(j==="hover"?Ae.handleChange(he,{visible:!1},ie):Ae.handleChange(he,{visible:!0},ie),te.value=W),te.activeValue=W,("value"in Ae.props||ie.type==="keydown"&&ie.keyCode!==b.a.ENTER)&&delete te.value,Ae.setState(te)},Ae.handleItemDoubleClick=function(){var ve=Ae.props.changeOnSelect;ve&&Ae.setPopupVisible(!1)},Ae.handleKeyDown=function(ve){var oe=Ae.props.children;if(oe&&oe.props.onKeyDown){oe.props.onKeyDown(ve);return}var ie=h(Ae.state.activeValue),Te=ie.length-1<0?0:ie.length-1,Re=Ae.getCurrentLevelOptions(),Me=Re.map(function(he){return he[Ae.getFieldName("value")]}).indexOf(ie[Te]);if(ve.keyCode!==b.a.DOWN&&ve.keyCode!==b.a.UP&&ve.keyCode!==b.a.LEFT&&ve.keyCode!==b.a.RIGHT&&ve.keyCode!==b.a.ENTER&&ve.keyCode!==b.a.SPACE&&ve.keyCode!==b.a.BACKSPACE&&ve.keyCode!==b.a.ESC&&ve.keyCode!==b.a.TAB)return;if(!Ae.state.popupVisible&&ve.keyCode!==b.a.BACKSPACE&&ve.keyCode!==b.a.LEFT&&ve.keyCode!==b.a.RIGHT&&ve.keyCode!==b.a.ESC&&ve.keyCode!==b.a.TAB){Ae.setPopupVisible(!0);return}if(ve.keyCode===b.a.DOWN||ve.keyCode===b.a.UP){ve.preventDefault();var re=Me;re!==-1?ve.keyCode===b.a.DOWN?(re+=1,re=re>=Re.length?0:re):(re-=1,re=re<0?Re.length-1:re):re=0,ie[Te]=Re[re][Ae.getFieldName("value")]}else if(ve.keyCode===b.a.LEFT||ve.keyCode===b.a.BACKSPACE)ve.preventDefault(),ie.splice(ie.length-1,1);else if(ve.keyCode===b.a.RIGHT)ve.preventDefault(),Re[Me]&&Re[Me][Ae.getFieldName("children")]&&ie.push(Re[Me][Ae.getFieldName("children")][0][Ae.getFieldName("value")]);else if(ve.keyCode===b.a.ESC||ve.keyCode===b.a.TAB){Ae.setPopupVisible(!1);return}(!ie||ie.length===0)&&Ae.setPopupVisible(!1);var j=Ae.getActiveOptions(ie),W=j[j.length-1];Ae.handleMenuSelect(W,j.length-1,ve),Ae.props.onKeyDown&&Ae.props.onKeyDown(ve)},Ae.saveTrigger=function(ve){Ae.trigger=ve};var ae=[];return"value"in ge?ae=ge.value||[]:"defaultValue"in ge&&(ae=ge.defaultValue||[]),v()(!("filedNames"in ge),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),Ae.state={popupVisible:ge.popupVisible,activeValue:ae,value:ae,prevProps:ge},Ae.defaultFieldNames={label:"label",value:"value",children:"children"},Ae}return F(Ee,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(Ae){var ae=this.defaultFieldNames,ve=this.props,oe=ve.fieldNames,ie=ve.filedNames;return"filedNames"in this.props?ie[Ae]||ae[Ae]:oe[Ae]||ae[Ae]}},{key:"getFieldNames",value:function(){var Ae=this.props,ae=Ae.fieldNames,ve=Ae.filedNames;return"filedNames"in this.props?ve:ae}},{key:"getCurrentLevelOptions",value:function(){var Ae=this,ae=this.props.options,ve=ae===void 0?[]:ae,oe=this.state.activeValue,ie=oe===void 0?[]:oe,Te=w()(ve,function(Re,Me){return Re[Ae.getFieldName("value")]===ie[Me]},{childrenKeyName:this.getFieldName("children")});return Te[Te.length-2]?Te[Te.length-2][this.getFieldName("children")]:h(ve).filter(function(Re){return!Re.disabled})}},{key:"getActiveOptions",value:function(Ae){var ae=this;return w()(this.props.options||[],function(ve,oe){return ve[ae.getFieldName("value")]===Ae[oe]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var Ae=this.props,ae=Ae.prefixCls,ve=Ae.transitionName,oe=Ae.popupClassName,ie=Ae.options,Te=ie===void 0?[]:ie,Re=Ae.disabled,Me=Ae.builtinPlacements,re=Ae.popupPlacement,j=Ae.children,W=Ae.dropdownRender,he=E(Ae,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),te=se.createElement("div",null),ce="";Te&&Te.length>0?te=se.createElement(p,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):ce=" ".concat(ae,"-menus-empty");var Ie=te;return W&&(Ie=W(te)),se.createElement(G.a,Object.assign({ref:this.saveTrigger},he,{popupPlacement:re,builtinPlacements:Me,popupTransitionName:ve,action:Re?[]:["click"],popupVisible:Re?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(ae,"-menus"),popupClassName:oe+ce,popup:Ie}),se.cloneElement(j,{onKeyDown:this.handleKeyDown,tabIndex:Re?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(Ae,ae){var ve=ae.prevProps,oe=ve===void 0?{}:ve,ie={prevProps:Ae};return"value"in Ae&&!m(oe.value,Ae.value)&&(ie.value=Ae.value||[],"loadData"in Ae||(ie.activeValue=Ae.value||[])),"popupVisible"in Ae&&(ie.popupVisible=Ae.popupVisible),ie}}]),Ee}(se.Component);return de.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:_,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},de}(),ue=ne,be=fe.a=ue},"SA+Z":function(Ge,fe,R){var se=R("wTVA"),G=R("EbDI"),M=R("ZhPi"),v=R("wkBT");function b(C){return se(C)||G(C)||M(C)||v()}Ge.exports=b,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},SJMd:function(Ge,fe){/**
* @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 R,se,G,M=!1,v,b;window.PR_SHOULD_USE_CONTINUATION=!0;var C,w;(function(){var m=window,d=["break,continue,do,else,for,if,return,while"],i=[d,"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"],n=[i,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],e=[n,"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=[n,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],s=[n,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],o="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",f=[n,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],l="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",r=[d,"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"],c=[d,"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"],A=[d,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],p=[e,s,a,f,l,r,c,A],x=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,_="str",B="kwd",E="com",g="typ",h="lit",u="pun",S="pln",O="tag",T="dec",D="src",I="atn",k="atv",F="nocode",X="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function U(ie){for(var Te=0,Re=!1,Me=!1,re=0,j=ie.length;re<j;++re){var W=ie[re];if(W.ignoreCase)Me=!0;else if(/[a-z]/i.test(W.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Re=!0,Me=!1;break}}var he={b:8,t:9,n:10,v:11,f:12,r:13};function te(He){var Ke=He.charCodeAt(0);if(Ke!==92)return Ke;var ht=He.charAt(1);return Ke=he[ht],Ke||("0"<=ht&&ht<="7"?parseInt(He.substring(1),8):ht==="u"||ht==="x"?parseInt(He.substring(2),16):He.charCodeAt(1))}function ce(He){if(He<32)return(He<16?"\\x0":"\\x")+He.toString(16);var Ke=String.fromCharCode(He);return Ke==="\\"||Ke==="-"||Ke==="]"||Ke==="^"?"\\"+Ke:Ke}function Ie(He){var Ke=He.substring(1,He.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),ht=[],St=Ke[0]==="^",ct=["["];St&&ct.push("^");for(var lt=St?1:0,rt=Ke.length;lt<rt;++lt){var Ze=Ke[lt];if(/\\[bdsw]/i.test(Ze))ct.push(Ze);else{var $e=te(Ze),Ue;lt+2<rt&&Ke[lt+1]==="-"?(Ue=te(Ke[lt+2]),lt+=2):Ue=$e,ht.push([$e,Ue]),Ue<65||$e>122||(Ue<65||$e>90||ht.push([Math.max(65,$e)|32,Math.min(Ue,90)|32]),Ue<97||$e>122||ht.push([Math.max(97,$e)&~32,Math.min(Ue,122)&~32]))}}ht.sort(function(yt,vt){return yt[0]-vt[0]||vt[1]-yt[1]});for(var Ne=[],We=[],lt=0;lt<ht.length;++lt){var it=ht[lt];it[0]<=We[1]+1?We[1]=Math.max(We[1],it[1]):Ne.push(We=it)}for(var lt=0;lt<Ne.length;++lt){var it=Ne[lt];ct.push(ce(it[0])),it[1]>it[0]&&(it[1]+1>it[0]&&ct.push("-"),ct.push(ce(it[1])))}return ct.push("]"),ct.join("")}function ze(He){for(var Ke=He.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")),ht=Ke.length,St=[],ct=0,lt=0;ct<ht;++ct){var rt=Ke[ct];if(rt==="(")++lt;else if(rt.charAt(0)==="\\"){var Ze=+rt.substring(1);Ze&&(Ze<=lt?St[Ze]=-1:Ke[ct]=ce(Ze))}}for(var ct=1;ct<St.length;++ct)St[ct]===-1&&(St[ct]=++Te);for(var ct=0,lt=0;ct<ht;++ct){var rt=Ke[ct];if(rt==="(")++lt,St[lt]||(Ke[ct]="(?:");else if(rt.charAt(0)==="\\"){var Ze=+rt.substring(1);Ze&&Ze<=lt&&(Ke[ct]="\\"+St[Ze])}}for(var ct=0;ct<ht;++ct)Ke[ct]==="^"&&Ke[ct+1]!=="^"&&(Ke[ct]="");if(He.ignoreCase&&Re)for(var ct=0;ct<ht;++ct){var rt=Ke[ct],$e=rt.charAt(0);rt.length>=2&&$e==="["?Ke[ct]=Ie(rt):$e!=="\\"&&(Ke[ct]=rt.replace(/[a-zA-Z]/g,function(We){var it=We.charCodeAt(0);return"["+String.fromCharCode(it&~32,it|32)+"]"}))}return Ke.join("")}for(var _t=[],re=0,j=ie.length;re<j;++re){var W=ie[re];if(W.global||W.multiline)throw new Error(""+W);_t.push("(?:"+ze(W)+")")}return new RegExp(_t.join("|"),Me?"gi":"g")}function K(ie,Te){var Re=/(?:^|\s)nocode(?:\s|$)/,Me=[],re=0,j=[],W=0;function he(te){var ce=te.nodeType;if(ce==1){if(Re.test(te.className))return;for(var Ie=te.firstChild;Ie;Ie=Ie.nextSibling)he(Ie);var ze=te.nodeName.toLowerCase();(ze==="br"||ze==="li")&&(Me[W]=`
`,j[W<<1]=re++,j[W++<<1|1]=te)}else if(ce==3||ce==4){var _t=te.nodeValue;_t.length&&(Te?_t=_t.replace(/\r\n?/g,`
`):_t=_t.replace(/[ \t\r\n]+/g," "),Me[W]=_t,j[W<<1]=re,re+=_t.length,j[W++<<1|1]=te)}}return he(ie),{sourceCode:Me.join("").replace(/\n$/,""),spans:j}}function V(ie,Te,Re,Me,re){if(!Re)return;var j={sourceNode:ie,pre:1,langExtension:null,numberLines:null,sourceCode:Re,spans:null,basePos:Te,decorations:null};Me(j),re.push.apply(re,j.decorations)}var N=/\S/;function Q(ie){for(var Te=void 0,Re=ie.firstChild;Re;Re=Re.nextSibling){var Me=Re.nodeType;Te=Me===1?Te?ie:Re:Me===3&&N.test(Re.nodeValue)?ie:Te}return Te===ie?void 0:Te}function J(ie,Te){var Re={},Me;(function(){for(var W=ie.concat(Te),he=[],te={},ce=0,Ie=W.length;ce<Ie;++ce){var ze=W[ce],_t=ze[3];if(_t)for(var He=_t.length;--He>=0;)Re[_t.charAt(He)]=ze;var Ke=ze[1],ht=""+Ke;te.hasOwnProperty(ht)||(he.push(Ke),te[ht]=null)}he.push(/[\0-\uffff]/),Me=U(he)})();var re=Te.length,j=function(W){for(var he=W.sourceCode,te=W.basePos,ce=W.sourceNode,Ie=[te,S],ze=0,_t=he.match(Me)||[],He={},Ke=0,ht=_t.length;Ke<ht;++Ke){var St=_t[Ke],ct=He[St],lt=void 0,rt;if(typeof ct=="string")rt=!1;else{var Ze=Re[St.charAt(0)];if(Ze)lt=St.match(Ze[1]),ct=Ze[0];else{for(var $e=0;$e<re;++$e)if(Ze=Te[$e],lt=St.match(Ze[1]),lt){ct=Ze[0];break}lt||(ct=S)}rt=ct.length>=5&&ct.substring(0,5)==="lang-",rt&&!(lt&&typeof lt[1]=="string")&&(rt=!1,ct=D),rt||(He[St]=ct)}var Ue=ze;if(ze+=St.length,!rt)Ie.push(te+Ue,ct);else{var Ne=lt[1],We=St.indexOf(Ne),it=We+Ne.length;lt[2]&&(it=St.length-lt[2].length,We=it-Ne.length);var yt=ct.substring(5);V(ce,te+Ue,St.substring(0,We),j,Ie),V(ce,te+Ue+We,Ne,Ee(yt,Ne),Ie),V(ce,te+Ue+it,St.substring(it),j,Ie)}}W.decorations=Ie};return j}function ne(ie){var Te=[],Re=[];ie.tripleQuotedStrings?Te.push([_,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ie.multiLineStrings?Te.push([_,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Te.push([_,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ie.verbatimStrings&&Re.push([_,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Me=ie.hashComments;Me&&(ie.cStyleComments?(Me>1?Te.push([E,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Te.push([E,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Re.push([_,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Te.push([E,/^#[^\r\n]*/,null,"#"])),ie.cStyleComments&&(Re.push([E,/^\/\/[^\r\n]*/,null]),Re.push([E,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var re=ie.regexLiterals;if(re){var j=re>1?"":`
\r`,W=j?".":"[\\S\\s]",he="/(?=[^/*"+j+"])(?:[^/\\x5B\\x5C"+j+"]|\\x5C"+W+"|\\x5B(?:[^\\x5C\\x5D"+j+"]|\\x5C"+W+")*(?:\\x5D|$))+/";Re.push(["lang-regex",RegExp("^"+X+"("+he+")")])}var te=ie.types;te&&Re.push([g,te]);var ce=(""+ie.keywords).replace(/^ | $/g,"");ce.length&&Re.push([B,new RegExp("^(?:"+ce.replace(/[\s,]+/g,"|")+")\\b"),null]),Te.push([S,/^\s+/,null,` \r
\xA0`]);var Ie="^.[^\\s\\w.$@'\"`/\\\\]*";return ie.regexLiterals&&(Ie+="(?!s*/)"),Re.push([h,/^@[a-z_$][a-z_$@0-9]*/i,null],[g,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[S,/^[a-z_$][a-z_$@0-9]*/i,null],[h,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[S,/^\\[\s\S]?/,null],[u,new RegExp(Ie),null]),J(Te,Re)}var ue=ne({keywords:p,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function be(ie,Te,Re){for(var Me=/(?:^|\s)nocode(?:\s|$)/,re=/\r\n?|\n/,j=ie.ownerDocument,W=j.createElement("li");ie.firstChild;)W.appendChild(ie.firstChild);var he=[W];function te(Ke){var ht=Ke.nodeType;if(ht==1&&!Me.test(Ke.className))if(Ke.nodeName==="br")ce(Ke),Ke.parentNode&&Ke.parentNode.removeChild(Ke);else for(var St=Ke.firstChild;St;St=St.nextSibling)te(St);else if((ht==3||ht==4)&&Re){var ct=Ke.nodeValue,lt=ct.match(re);if(lt){var rt=ct.substring(0,lt.index);Ke.nodeValue=rt;var Ze=ct.substring(lt.index+lt[0].length);if(Ze){var $e=Ke.parentNode;$e.insertBefore(j.createTextNode(Ze),Ke.nextSibling)}ce(Ke),rt||Ke.parentNode.removeChild(Ke)}}}function ce(Ke){for(;!Ke.nextSibling;)if(Ke=Ke.parentNode,!Ke)return;function ht(lt,rt){var Ze=rt?lt.cloneNode(!1):lt,$e=lt.parentNode;if($e){var Ue=ht($e,1),Ne=lt.nextSibling;Ue.appendChild(Ze);for(var We=Ne;We;We=Ne)Ne=We.nextSibling,Ue.appendChild(We)}return Ze}for(var St=ht(Ke.nextSibling,0),ct;(ct=St.parentNode)&&ct.nodeType===1;)St=ct;he.push(St)}for(var Ie=0;Ie<he.length;++Ie)te(he[Ie]);Te===(Te|0)&&he[0].setAttribute("value",Te);var ze=j.createElement("ol");ze.className="linenums";for(var _t=Math.max(0,Te-1|0)||0,Ie=0,He=he.length;Ie<He;++Ie)W=he[Ie],W.className="L"+(Ie+_t)%10,W.firstChild||W.appendChild(j.createTextNode("\xA0")),ze.appendChild(W);ie.appendChild(ze)}function de(ie){var Te=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Te=Te&&+Te[1]<=8;var Re=/\n/g,Me=ie.sourceCode,re=Me.length,j=0,W=ie.spans,he=W.length,te=0,ce=ie.decorations,Ie=ce.length,ze=0;ce[Ie]=re;var _t,He;for(He=_t=0;He<Ie;)ce[He]!==ce[He+2]?(ce[_t++]=ce[He++],ce[_t++]=ce[He++]):He+=2;for(Ie=_t,He=_t=0;He<Ie;){for(var Ke=ce[He],ht=ce[He+1],St=He+2;St+2<=Ie&&ce[St+1]===ht;)St+=2;ce[_t++]=Ke,ce[_t++]=ht,He=St}Ie=ce.length=_t;var ct=ie.sourceNode,lt="";ct&&(lt=ct.style.display,ct.style.display="none");try{for(var rt=null;te<he;){var Ze=W[te],$e=W[te+2]||re,Ue=ce[ze+2]||re,St=Math.min($e,Ue),Ne=W[te+1],We;if(Ne.nodeType!==1&&(We=Me.substring(j,St))){Te&&(We=We.replace(Re,"\r")),Ne.nodeValue=We;var it=Ne.ownerDocument,yt=it.createElement("span");yt.className=ce[ze+1];var vt=Ne.parentNode;vt.replaceChild(yt,Ne),yt.appendChild(Ne),j<$e&&(W[te+1]=Ne=it.createTextNode(Me.substring(St,$e)),vt.insertBefore(Ne,yt.nextSibling))}j=St,j>=$e&&(te+=2),j>=Ue&&(ze+=2)}}finally{ct&&(ct.style.display=lt)}}var _e={};function me(ie,Te){for(var Re=Te.length;--Re>=0;){var Me=Te[Re];_e.hasOwnProperty(Me)?m.console&&console.warn("cannot override language handler %s",Me):_e[Me]=ie}}function Ee(ie,Te){return ie&&_e.hasOwnProperty(ie)||(ie=/^\s*</.test(Te)?"default-markup":"default-code"),_e[ie]}me(ue,["default-code"]),me(J([],[[S,/^[^<?]+/],[T,/^<!\w[^>]*(?:>|$)/],[E,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[u,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),me(J([[S,/^[\s]+/,null,` \r
`],[k,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[O,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[I,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[u,/^[=<>\/]+/],["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"]),me(J([],[[k,/^[\s\S]+/]]),["uq.val"]),me(ne({keywords:e,hashComments:!0,cStyleComments:!0,types:x}),["c","cc","cpp","cxx","cyc","m"]),me(ne({keywords:"null,true,false"}),["json"]),me(ne({keywords:s,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:x}),["cs"]),me(ne({keywords:a,cStyleComments:!0}),["java"]),me(ne({keywords:A,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),me(ne({keywords:r,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),me(ne({keywords:l,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),me(ne({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),me(ne({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),me(ne({keywords:o,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),me(J([],[[_,/^[\s\S]+/]]),["regex"]);function ge(ie){var Te=ie.langExtension;try{var Re=K(ie.sourceNode,ie.pre),Me=Re.sourceCode;ie.sourceCode=Me,ie.spans=Re.spans,ie.basePos=0,Ee(Te,Me)(ie),de(ie)}catch(re){m.console&&console.log(re&&re.stack||re)}}function Ae(ie,Te,Re){var Me=Re||!1,re=Te||null,j=document.createElement("div");j.innerHTML="<pre>"+ie+"</pre>",j=j.firstChild,Me&&be(j,Me,!0);var W={langExtension:re,numberLines:Me,sourceNode:j,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return ge(W),j.innerHTML}function ae(ie,Te){var Re=Te||document.body,Me=Re.ownerDocument||document;function re(Ze){return Re.getElementsByTagName(Ze)}for(var j=[re("pre"),re("code"),re("xmp")],W=[],he=0;he<j.length;++he)for(var te=0,ce=j[he].length;te<ce;++te)W.push(j[he][te]);j=null;var Ie=Date;Ie.now||(Ie={now:function(){return+new Date}});var ze=0,_t=/\blang(?:uage)?-([\w.]+)(?!\S)/,He=/\bprettyprint\b/,Ke=/\bprettyprinted\b/,ht=/pre|xmp/i,St=/^code$/i,ct=/^(?:pre|code|xmp)$/i,lt={};function rt(){for(var Ze=m.PR_SHOULD_USE_CONTINUATION?Ie.now()+250:Infinity;ze<W.length&&Ie.now()<Ze;ze++){for(var $e=W[ze],Ue=lt,Ne=$e;Ne=Ne.previousSibling;){var We=Ne.nodeType,it=(We===7||We===8)&&Ne.nodeValue;if(it?!/^\??prettify\b/.test(it):We!==3||/\S/.test(Ne.nodeValue))break;if(it){Ue={},it.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Ot,Ct,jt){Ue[Ct]=jt});break}}var yt=$e.className;if((Ue!==lt||He.test(yt))&&!Ke.test(yt)){for(var vt=!1,Mt=$e.parentNode;Mt;Mt=Mt.parentNode){var Tt=Mt.tagName;if(ct.test(Tt)&&Mt.className&&He.test(Mt.className)){vt=!0;break}}if(!vt){$e.className+=" prettyprinted";var Rt=Ue.lang;if(!Rt){Rt=yt.match(_t);var kt;!Rt&&(kt=Q($e))&&St.test(kt.tagName)&&(Rt=kt.className.match(_t)),Rt&&(Rt=Rt[1])}var Ut;if(ht.test($e.tagName))Ut=1;else{var Bt=$e.currentStyle,At=Me.defaultView,bt=Bt?Bt.whiteSpace:At&&At.getComputedStyle?At.getComputedStyle($e,null).getPropertyValue("white-space"):0;Ut=bt&&bt.substring(0,3)==="pre"}var je=Ue.linenums;(je=je==="true"||+je)||(je=yt.match(/\blinenums\b(?::(\d+))?/),je=je?je[1]&&je[1].length?+je[1]:!0:!1),je&&be($e,je,Ut);var qe={langExtension:Rt,sourceNode:$e,numberLines:je,pre:Ut,sourceCode:null,basePos:null,spans:null,decorations:null};ge(qe)}}}ze<W.length?m.setTimeout(rt,250):typeof ie=="function"&&ie()}rt()}var ve=m.PR={createSimpleLexer:J,registerLangHandler:me,sourceDecorator:ne,PR_ATTRIB_NAME:I,PR_ATTRIB_VALUE:k,PR_COMMENT:E,PR_DECLARATION:T,PR_KEYWORD:B,PR_LITERAL:h,PR_NOCODE:F,PR_PLAIN:S,PR_PUNCTUATION:u,PR_SOURCE:D,PR_STRING:_,PR_TAG:O,PR_TYPE:g,prettyPrintOne:M?m.prettyPrintOne=Ae:C=Ae,prettyPrint:w=M?m.prettyPrint=ae:w=ae},oe=m.define;typeof oe=="function"&&oe.amd&&oe("google-code-prettify",[],function(){return ve})})()},SKnc:function(Ge,fe,R){var se=R("bYtY"),G=R("QuXc"),M=function(b,C,w,m,d,i){this.x=b==null?0:b,this.y=C==null?0:C,this.x2=w==null?1:w,this.y2=m==null?0:m,this.type="linear",this.global=i||!1,G.call(this,d)};M.prototype={constructor:M},se.inherits(M,G);var v=M;Ge.exports=v},SMhR:function(Ge,fe){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTD9c2nwzIk9pmA2TTNjeAPAnIpm1uANm0zQbIDSBPAXIDyKZtPhmQG22zAfLN2uaTAflUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT74ckCe1zZOAbNpm0zYbIDfaZgPkRts8qW1utM0GyKZtntI2GyBPArJpmw2QTds8CcimbW4A+WRAntQ23+pEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0viJXtU2T2qbDZA3Adm0zZOAbNpm0zYbIJu2+VZtswGyaZsbbbMBsmmbDZBN29xoG32mE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJ3oVkCe1zZPaZgNk0zYbIJu2eRKQJwF5S9vcAPIkIJu2uQFk0zY32kbf6USSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnS+MmXa5t/WdtsgGza5psB+WRt8xQgN4DcaJtv1jYbIDfa5pO1jf5/J5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGTz4ckH9Z22yAbNpmA2TTNhsgm7bZANm0zQbIpm02QDZtswFyA8h/aZsbbbMBsmmbDZBN22yAbNpmA2TTNhsgm7bZALkBZNM2N4Doz5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX9LGAvKltNkA2bXMDyJvaZgNk0zZPAfLN2mYD5EbbPAnIk9pG7ziRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7y4YBs2uYGkE3bbIBs2mYD5Ebb/Mva5klAbgB5S9tsgGza5gaQDZBN2zwJyJPaZgNkA2TTNhsgN9pmA2TTNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdKgv/IPA3KjbW4AeVLb3ADyzdrmBpAntc2nAnKjbTZANm1zA8gna5sNkH9Z27zlRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZcDcqNtbgDZtM2mbTZANm1zA8imbTZANm1zA8iTgGza5gaQpwDZtM2NttkAudE2b2qbDZAbbbMB8qa20f/vRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4ycuA3GibDZANkBttswHyJCA32uZJQDZt8yQgTwKyaZsNkD/VNk8CsmmbDZA3tc0GyI222QDZtM0NIJu2eRKQTdt8qxNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4yf/uLbZANkA2bTNDSBPAnKjbd7UNhsgN4Bs2uZG27wFyKZtbrTNBsimbW4AudE2N9pmA+RG29wAsmmbJwHZtM1bTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3w5IJu2udE2N4DcaJsbQDZtswGyAfIvA7Jpmz8F5EbbPAnIpm1uANm0zZuAbNpm0zYbIBsgm7a5AeRJbfOpTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3y4ttkAuQFk0zYbIDfa5gaQN7XNk4A8qW02QG4A+VNtswHyzdpmA+RJbfMkIJu2eVPbbIBs2uZvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/ERX2kb/DcimbW4AuQFk0zYbIDfa5i1t8yYgm7a50TYbIN+sbW4A2bTNk4Bs2uYtJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT/5yQDZtswHypLbZAHlT29xomw2QTdvcAHIDyKdqmze1zZuAvKltNkCeBOSTAflWJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUPBuRG22yAbNrmBpAbbbMBcqNtNkA2bbMBsmmbDZBN2zwJyFvaZgNk0zYbIDfaZgNk0zYbIG9qm08GZNM2GyCbttkA2bTNtzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiBPAvIkIN8MyA0gm7bZALkB5Elt8yQgf6pt9N/aZgPkTUA2bbNpmycB+VedSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRr0V/5iQDZt882AbNrmBpBN22yAbNpmA+RG2zwJyKZt/hSQTds8CcimbW4A2bTNk4B8s7bZALnRNhsgm7bZANm0zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDggm7bZtM0GyJvaZgPkBpBN2zypbTZAbrTNBsimbZ4E5ClAbrTNNwOyaZsbbXMDyI222QDZtM0GyAbIDSCbtvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZV/GJAbbbMB8qa22QDZtM0GyKZtbgDZtM0NIJu22QC50Tb/BciNttkAeVLbbIDcaJsNkE3bbIA8qW02QN7UNv+qE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8DcqNt3gTkkwH5ZECeBOSTAXkKkE3bbIA8qW2e1DY32mYDZNM2GyD6TCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxk++HJBN29xomycB2bTNm4Bs2mYD5JsBudE2TwGyaZsNkCcBudE2N4C8CciNtnkSkBtAbrTNpzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7ysrb5ZkA2bXMDyI22eRKQTds8CcimbTZANm2zAXIDyH9pmye1zQbIpm02QG4A+WRtswHyJCCbtnlT23yrE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0vjJy4A8qW2e1DZvapsbQDZtswFyA8imbTZtc6Nt3tQ2TwGyaZtN22yA3GibDZBN22yAPAnIm9rmSUA2bbMBcqNt3nIiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAfLN2mYD5Ebb3AByo202QPSOttkA2bTNm4Bs2uYGEP25tvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUXAbnRNjeA3GibG0ButM03A/LJ2mYDZNM2fwrIJ2ubG0A2bXMDyI22uQFk0zY3gNxomxtANm3zrU4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkDforLwKyaZsNkE3bPAnIpm02QJ7UNk8CcqNtNkButM0GyJPaZgPkT7XNBsiNttkA+Ze1zQ0gN9pmA+RNbbMBsmmbt5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX/mJANm3zzYDcaJsbQG60zQ0gm7a5AeRJbfMWIE9qmw2QG22zAXKjbTZANm2zAfKktrkB5E1t85YTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeMnLwOyaZsbbbMB8qa2udE2GyBvapsNkE3bbNrmTW2zAbIB8l/a5kltswHypLZ5U9s8CciNtnkSkE3b/KtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2fvKxtbgDZtM2NtvlmbbMB8iQgTwKyaZsNkG8F5Elt8yYgm7Z5EpBN2zwJyCcDcqNtPtWJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTDwdk0zY32uYGkE3b3ACyaZtP1jZvArJpmw2QDZBN22yA/Bcgm7bZALkB5Ebb6L8B2bTNDSCbttkAudE2GyCbtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRBf+UvBmTTNhsgm7a5AeSTtc2TgNxomw2QG22zAbJpmz8F5EbbbIC8qW2+GZBN2zwJyKZtNkButM0GyI22ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpEF/5UVAbrTNk4DcaJsNkG/WNk8C8qS22QDZtM0GyKZtPhWQN7XNk4Bs2mYD5Elt8yQgN9rmb3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBfeRGQN7XNk4Bs2uabAdm0zQbIm9rmUwHZtM0GyI222QB5U9tsgDypbZ4EZNM2bwKyaZtvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/OTDtc0GyJOA3GibDZAbbXMDyKZtntQ23wzIjbb5L21zo21uALnRNhsgn6xtNkA2bfMmIG8CsmmbT3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAbJpmw2QTdv8y4DcaJsbQDZtswFyo202QDZt8xQgm7a5AeRG23wzIDfa5k1ANm1zA8iNtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxk79c2zwJyI222QDZtM2TgGzaZgNkA+RNbbMBcqNtNkD+VNvcALJpmzcB2bTNBsimbT4ZkE3bvAnIpm2+1YkkSRonkiRpnEiSpHEiSZLGiSRJGieSJGmcSJKkQX/lgwF5Uts8CciNtrkB5EltcwPIjbbZANm0zQbIp2qbJwHZtM0NIG9qmzcB2bTNBsiNttkAeVLbfKoTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSYP+youAPKltngRk0zY3gGza5klAntQ2N4A8qW02QL5V22yAfLK22QC50TYbIJu22QD5Zm2zAXKjbd5yIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGieSJGnQX9FrgGzaZgNk0zYbIDfaZgNk0zYbIJu22QDZtM0NIJu2eQqQG21zA8imbTZANm3zJiBvapsnAbnRNn+rE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8D8jdrm03b3GibDZA3tc2NtnkSkDcB+S9tc6NtntQ2N9rmBpAbbXOjbW4AuQFk0zZPAnKjbT7ViSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxkw/XNp8MyJOAbNrmRts8CcimbT5Z22yA3GibpwDZtM0NIJ+sbTZAbgB5U9s8qW02QDZt861OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDkgT2qbJwF5UttsgLwJyJPa5gaQG0De0jY3gGza5gaQG22zAXKjbZ4EZAPkTUBuANm0zac6kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjR+ole1zZvaZgPkRtvcAPIkIJu22QDZtM3fCsiNttkAudE2TwKyaZtN22yAbNrmBpAbbbMBsgGyaZu3nEiSpHEiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaP9FHA3KjbTZAngRk0zafDMiTgPyptrkB5Eltc6Nt3gTkTW1zA8imbZ7UNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZdrm28G5JO1zQ0gN9pmA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},SUKs:function(Ge,fe,R){var se=R("LPTA"),G=se.debugMode,M=function(){};G===1&&(M=console.error);var v=M;Ge.exports=v},Sj9i:function(Ge,fe,R){var se=R("QBsz"),G=se.create,M=se.distSquare,v=Math.pow,b=Math.sqrt,C=1e-8,w=1e-4,m=b(3),d=1/3,i=G(),n=G(),e=G();function a(h){return h>-C&&h<C}function s(h){return h>C||h<-C}function o(h,u,S,O,T){var D=1-T;return D*D*(D*h+3*T*u)+T*T*(T*O+3*D*S)}function f(h,u,S,O,T){var D=1-T;return 3*(((u-h)*D+2*(S-u)*T)*D+(O-S)*T*T)}function l(h,u,S,O,T,D){var I=O+3*(u-S)-h,k=3*(S-u*2+h),F=3*(u-h),X=h-T,U=k*k-3*I*F,K=k*F-9*I*X,V=F*F-3*k*X,N=0;if(a(U)&&a(K))if(a(k))D[0]=0;else{var Q=-F/k;Q>=0&&Q<=1&&(D[N++]=Q)}else{var J=K*K-4*U*V;if(a(J)){var ne=K/U,Q=-k/I+ne,ue=-ne/2;Q>=0&&Q<=1&&(D[N++]=Q),ue>=0&&ue<=1&&(D[N++]=ue)}else if(J>0){var be=b(J),de=U*k+1.5*I*(-K+be),_e=U*k+1.5*I*(-K-be);de<0?de=-v(-de,d):de=v(de,d),_e<0?_e=-v(-_e,d):_e=v(_e,d);var Q=(-k-(de+_e))/(3*I);Q>=0&&Q<=1&&(D[N++]=Q)}else{var me=(2*U*k-3*I*K)/(2*b(U*U*U)),Ee=Math.acos(me)/3,ge=b(U),Ae=Math.cos(Ee),Q=(-k-2*ge*Ae)/(3*I),ue=(-k+ge*(Ae+m*Math.sin(Ee)))/(3*I),ae=(-k+ge*(Ae-m*Math.sin(Ee)))/(3*I);Q>=0&&Q<=1&&(D[N++]=Q),ue>=0&&ue<=1&&(D[N++]=ue),ae>=0&&ae<=1&&(D[N++]=ae)}}return N}function r(h,u,S,O,T){var D=6*S-12*u+6*h,I=9*u+3*O-3*h-9*S,k=3*u-3*h,F=0;if(a(I)){if(s(D)){var X=-k/D;X>=0&&X<=1&&(T[F++]=X)}}else{var U=D*D-4*I*k;if(a(U))T[0]=-D/(2*I);else if(U>0){var K=b(U),X=(-D+K)/(2*I),V=(-D-K)/(2*I);X>=0&&X<=1&&(T[F++]=X),V>=0&&V<=1&&(T[F++]=V)}}return F}function c(h,u,S,O,T,D){var I=(u-h)*T+h,k=(S-u)*T+u,F=(O-S)*T+S,X=(k-I)*T+I,U=(F-k)*T+k,K=(U-X)*T+X;D[0]=h,D[1]=I,D[2]=X,D[3]=K,D[4]=K,D[5]=U,D[6]=F,D[7]=O}function A(h,u,S,O,T,D,I,k,F,X,U){var K,V=.005,N=Infinity,Q,J,ne,ue;i[0]=F,i[1]=X;for(var be=0;be<1;be+=.05)n[0]=o(h,S,T,I,be),n[1]=o(u,O,D,k,be),ne=M(i,n),ne<N&&(K=be,N=ne);N=Infinity;for(var de=0;de<32&&!(V<w);de++)Q=K-V,J=K+V,n[0]=o(h,S,T,I,Q),n[1]=o(u,O,D,k,Q),ne=M(n,i),Q>=0&&ne<N?(K=Q,N=ne):(e[0]=o(h,S,T,I,J),e[1]=o(u,O,D,k,J),ue=M(e,i),J<=1&&ue<N?(K=J,N=ue):V*=.5);return U&&(U[0]=o(h,S,T,I,K),U[1]=o(u,O,D,k,K)),b(N)}function p(h,u,S,O){var T=1-O;return T*(T*h+2*O*u)+O*O*S}function x(h,u,S,O){return 2*((1-O)*(u-h)+O*(S-u))}function _(h,u,S,O,T){var D=h-2*u+S,I=2*(u-h),k=h-O,F=0;if(a(D)){if(s(I)){var X=-k/I;X>=0&&X<=1&&(T[F++]=X)}}else{var U=I*I-4*D*k;if(a(U)){var X=-I/(2*D);X>=0&&X<=1&&(T[F++]=X)}else if(U>0){var K=b(U),X=(-I+K)/(2*D),V=(-I-K)/(2*D);X>=0&&X<=1&&(T[F++]=X),V>=0&&V<=1&&(T[F++]=V)}}return F}function B(h,u,S){var O=h+S-2*u;return O===0?.5:(h-u)/O}function E(h,u,S,O,T){var D=(u-h)*O+h,I=(S-u)*O+u,k=(I-D)*O+D;T[0]=h,T[1]=D,T[2]=k,T[3]=k,T[4]=I,T[5]=S}function g(h,u,S,O,T,D,I,k,F){var X,U=.005,K=Infinity;i[0]=I,i[1]=k;for(var V=0;V<1;V+=.05){n[0]=p(h,S,T,V),n[1]=p(u,O,D,V);var N=M(i,n);N<K&&(X=V,K=N)}K=Infinity;for(var Q=0;Q<32&&!(U<w);Q++){var J=X-U,ne=X+U;n[0]=p(h,S,T,J),n[1]=p(u,O,D,J);var N=M(n,i);if(J>=0&&N<K)X=J,K=N;else{e[0]=p(h,S,T,ne),e[1]=p(u,O,D,ne);var ue=M(e,i);ne<=1&&ue<K?(X=ne,K=ue):U*=.5}}return F&&(F[0]=p(h,S,T,X),F[1]=p(u,O,D,X)),b(K)}fe.cubicAt=o,fe.cubicDerivativeAt=f,fe.cubicRootAt=l,fe.cubicExtrema=r,fe.cubicSubdivide=c,fe.cubicProjectPoint=A,fe.quadraticAt=p,fe.quadraticDerivativeAt=x,fe.quadraticRootAt=_,fe.quadraticExtremum=B,fe.quadraticSubdivide=E,fe.quadraticProjectPoint=g},SqI9:function(Ge,fe,R){var se=R("y+Vt"),G=R("iXp4"),M=se.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:G(se.prototype.brush),buildPath:function(v,b){var C=b.cx,w=b.cy,m=Math.max(b.r0||0,0),d=Math.max(b.r,0),i=b.startAngle,n=b.endAngle,e=b.clockwise,a=Math.cos(i),s=Math.sin(i);v.moveTo(a*m+C,s*m+w),v.lineTo(a*d+C,s*d+w),v.arc(C,w,d,i,n,!e),v.lineTo(Math.cos(n)*m+C,Math.sin(n)*m+w),m!==0&&v.arc(C,w,m,n,i,e),v.closePath()}});Ge.exports=M},SrGk:function(Ge,fe,R){var se=R("hydK"),G=se.createElement,M=R("bYtY"),v=R("y+Vt"),b=R("Dagg"),C=R("dqUG"),w=R("P47w"),m=w.path,d=w.image,i=w.text,n="0",e="1";function a(o,f,l,r,c){this._zrId=o,this._svgRoot=f,this._tagNames=typeof l=="string"?[l]:l,this._markLabel=r,this._domName=c||"_dom",this.nextId=0}a.prototype.createElement=G,a.prototype.getDefs=function(o){var f=this._svgRoot,l=this._svgRoot.getElementsByTagName("defs");return l.length===0?o?(l=f.insertBefore(this.createElement("defs"),f.firstChild),l.contains||(l.contains=function(r){var c=l.children;if(!c)return!1;for(var A=c.length-1;A>=0;--A)if(c[A]===r)return!0;return!1}),l):null:l[0]},a.prototype.update=function(o,f){if(!o)return;var l=this.getDefs(!1);if(o[this._domName]&&l.contains(o[this._domName]))typeof f=="function"&&f(o);else{var r=this.add(o);r&&(o[this._domName]=r)}},a.prototype.addDom=function(o){var f=this.getDefs(!0);f.appendChild(o)},a.prototype.removeDom=function(o){var f=this.getDefs(!1);f&&o[this._domName]&&(f.removeChild(o[this._domName]),o[this._domName]=null)},a.prototype.getDoms=function(){var o=this.getDefs(!1);if(!o)return[];var f=[];return M.each(this._tagNames,function(l){var r=o.getElementsByTagName(l);f=f.concat([].slice.call(r))}),f},a.prototype.markAllUnused=function(){var o=this.getDoms(),f=this;M.each(o,function(l){l[f._markLabel]=n})},a.prototype.markUsed=function(o){o&&(o[this._markLabel]=e)},a.prototype.removeUnused=function(){var o=this.getDefs(!1);if(!o)return;var f=this.getDoms(),l=this;M.each(f,function(r){r[l._markLabel]!==e&&o.removeChild(r)})},a.prototype.getSvgProxy=function(o){return o instanceof v?m:o instanceof b?d:o instanceof C?i:m},a.prototype.getTextSvgElement=function(o){return o.__textSvgEl},a.prototype.getSvgElement=function(o){return o.__svgEl};var s=a;Ge.exports=s},T6xi:function(Ge,fe,R){var se=R("YgsL"),G=R("nCxF");function M(v,b,C){var w=b.points,m=b.smooth;if(w&&w.length>=2){if(m&&m!=="spline"){var d=G(w,m,C,b.smoothConstraint);v.moveTo(w[0][0],w[0][1]);for(var i=w.length,n=0;n<(C?i:i-1);n++){var e=d[n*2],a=d[n*2+1],s=w[(n+1)%i];v.bezierCurveTo(e[0],e[1],a[0],a[1],s[0],s[1])}}else{m==="spline"&&(w=se(w,C)),v.moveTo(w[0][0],w[0][1]);for(var n=1,o=w.length;n<o;n++)v.lineTo(w[n][0],w[n][1])}C&&v.closePath()}}fe.buildPath=M},T8No:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return v}),R.d(fe,"b",function(){return a}),R.d(fe,"d",function(){return s}),R.d(fe,"c",function(){return o}),R.d(fe,"e",function(){return f});var se=R("N0LK"),G=R("Cg/j"),M=function(){var l=function(r,c){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,p){A.__proto__=p}||function(A,p){for(var x in p)p.hasOwnProperty(x)&&(A[x]=p[x])},l(r,c)};return function(r,c){l(r,c);function A(){this.constructor=r}r.prototype=c===null?Object.create(c):(A.prototype=c.prototype,new A)}}(),v=function(){function l(){}return l.has=function(r){return C.create(r)},l.equals=function(r,c){return w.create(r,c)},l.regex=function(r,c){return i.create(r,c)},l.not=function(r){return d.create(r)},l.and=function(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return e.create(r)},l.or=function(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return a.create(r)},l.deserialize=function(r,c){return c===void 0&&(c=!1),r?this._deserializeOrExpression(r,c):void 0},l._deserializeOrExpression=function(r,c){var A=this,p=r.split("||");return a.create(p.map(function(x){return A._deserializeAndExpression(x,c)}))},l._deserializeAndExpression=function(r,c){var A=this,p=r.split("&&");return e.create(p.map(function(x){return A._deserializeOne(x,c)}))},l._deserializeOne=function(r,c){if(r=r.trim(),r.indexOf("!=")>=0){var A=r.split("!=");return m.create(A[0].trim(),this._deserializeValue(A[1],c))}if(r.indexOf("==")>=0){var A=r.split("==");return w.create(A[0].trim(),this._deserializeValue(A[1],c))}if(r.indexOf("=~")>=0){var A=r.split("=~");return i.create(A[0].trim(),this._deserializeRegexValue(A[1],c))}return/^\!\s*/.test(r)?d.create(r.substr(1).trim()):C.create(r)},l._deserializeValue=function(r,c){if(r=r.trim(),r==="true")return!0;if(r==="false")return!1;var A=/^'([^']*)'$/.exec(r);return A?A[1].trim():r},l._deserializeRegexValue=function(r,c){if(Object(se.x)(r)){if(c)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var A=r.indexOf("/"),p=r.lastIndexOf("/");if(A===p||A<0){if(c)throw new Error("bad regexp-value '"+r+"', missing /-enclosure");return console.warn("bad regexp-value '"+r+"', missing /-enclosure"),null}var x=r.slice(A+1,p),_=r[p+1]==="i"?"i":"";try{return new RegExp(x,_)}catch(B){if(c)throw new Error("bad regexp-value '"+r+"', parse error: "+B);return console.warn("bad regexp-value '"+r+"', parse error: "+B),null}},l}();function b(l,r){var c=l.getType(),A=r.getType();if(c!==A)return c-A;switch(c){case 1:return l.cmp(r);case 2:return l.cmp(r);case 3:return l.cmp(r);case 4:return l.cmp(r);case 6:return l.cmp(r);case 7:return l.cmp(r);case 5:return l.cmp(r);default:throw new Error("Unknown ContextKeyExpr!")}}var C=function(){function l(r){this.key=r}return l.create=function(r){return new l(r)},l.prototype.getType=function(){return 1},l.prototype.cmp=function(r){return this.key<r.key?-1:this.key>r.key?1:0},l.prototype.equals=function(r){return r instanceof l?this.key===r.key:!1},l.prototype.evaluate=function(r){return!!r.getValue(this.key)},l.prototype.keys=function(){return[this.key]},l.prototype.negate=function(){return d.create(this.key)},l}(),w=function(){function l(r,c){this.key=r,this.value=c}return l.create=function(r,c){return typeof c=="boolean"?c?C.create(r):d.create(r):new l(r,c)},l.prototype.getType=function(){return 3},l.prototype.cmp=function(r){return this.key<r.key?-1:this.key>r.key?1:this.value<r.value?-1:this.value>r.value?1:0},l.prototype.equals=function(r){return r instanceof l?this.key===r.key&&this.value===r.value:!1},l.prototype.evaluate=function(r){return r.getValue(this.key)==this.value},l.prototype.keys=function(){return[this.key]},l.prototype.negate=function(){return m.create(this.key,this.value)},l}(),m=function(){function l(r,c){this.key=r,this.value=c}return l.create=function(r,c){return typeof c=="boolean"?c?d.create(r):C.create(r):new l(r,c)},l.prototype.getType=function(){return 4},l.prototype.cmp=function(r){return this.key<r.key?-1:this.key>r.key?1:this.value<r.value?-1:this.value>r.value?1:0},l.prototype.equals=function(r){return r instanceof l?this.key===r.key&&this.value===r.value:!1},l.prototype.evaluate=function(r){return r.getValue(this.key)!=this.value},l.prototype.keys=function(){return[this.key]},l.prototype.negate=function(){return w.create(this.key,this.value)},l}(),d=function(){function l(r){this.key=r}return l.create=function(r){return new l(r)},l.prototype.getType=function(){return 2},l.prototype.cmp=function(r){return this.key<r.key?-1:this.key>r.key?1:0},l.prototype.equals=function(r){return r instanceof l?this.key===r.key:!1},l.prototype.evaluate=function(r){return!r.getValue(this.key)},l.prototype.keys=function(){return[this.key]},l.prototype.negate=function(){return C.create(this.key)},l}(),i=function(){function l(r,c){this.key=r,this.regexp=c}return l.create=function(r,c){return new l(r,c)},l.prototype.getType=function(){return 6},l.prototype.cmp=function(r){if(this.key<r.key)return-1;if(this.key>r.key)return 1;var c=this.regexp?this.regexp.source:"",A=r.regexp?r.regexp.source:"";return c<A?-1:c>A?1:0},l.prototype.equals=function(r){if(r instanceof l){var c=this.regexp?this.regexp.source:"",A=r.regexp?r.regexp.source:"";return this.key===r.key&&c===A}return!1},l.prototype.evaluate=function(r){var c=r.getValue(this.key);return this.regexp?this.regexp.test(c):!1},l.prototype.keys=function(){return[this.key]},l.prototype.negate=function(){return n.create(this)},l}(),n=function(){function l(r){this._actual=r}return l.create=function(r){return new l(r)},l.prototype.getType=function(){return 7},l.prototype.cmp=function(r){return this._actual.cmp(r._actual)},l.prototype.equals=function(r){return r instanceof l?this._actual.equals(r._actual):!1},l.prototype.evaluate=function(r){return!this._actual.evaluate(r)},l.prototype.keys=function(){return this._actual.keys()},l.prototype.negate=function(){return this._actual},l}(),e=function(){function l(r){this.expr=r}return l.create=function(r){var c=l._normalizeArr(r);return c.length===0?void 0:c.length===1?c[0]:new l(c)},l.prototype.getType=function(){return 5},l.prototype.cmp=function(r){if(this.expr.length<r.expr.length)return-1;if(this.expr.length>r.expr.length)return 1;for(var c=0,A=this.expr.length;c<A;c++){var p=b(this.expr[c],r.expr[c]);if(p!==0)return p}return 0},l.prototype.equals=function(r){if(r instanceof l){if(this.expr.length!==r.expr.length)return!1;for(var c=0,A=this.expr.length;c<A;c++)if(!this.expr[c].equals(r.expr[c]))return!1;return!0}return!1},l.prototype.evaluate=function(r){for(var c=0,A=this.expr.length;c<A;c++)if(!this.expr[c].evaluate(r))return!1;return!0},l._normalizeArr=function(r){var c=[];if(r){for(var A=0,p=r.length;A<p;A++){var x=r[A];if(!x)continue;if(x instanceof l){c=c.concat(x.expr);continue}if(x instanceof a)throw new Error('It is not allowed to have an or expression here due to lack of parens! For example "a && (b||c)" is not supported, use "(a&&b) || (a&&c)" instead.');c.push(x)}c.sort(b)}return c},l.prototype.keys=function(){for(var r=[],c=0,A=this.expr;c<A.length;c++){var p=A[c];r.push.apply(r,p.keys())}return r},l.prototype.negate=function(){for(var r=[],c=0,A=this.expr;c<A.length;c++){var p=A[c];r.push(p.negate())}return a.create(r)},l}(),a=function(){function l(r){this.expr=r}return l.create=function(r){var c=l._normalizeArr(r);return c.length===0?void 0:c.length===1?c[0]:new l(c)},l.prototype.getType=function(){return 8},l.prototype.equals=function(r){if(r instanceof l){if(this.expr.length!==r.expr.length)return!1;for(var c=0,A=this.expr.length;c<A;c++)if(!this.expr[c].equals(r.expr[c]))return!1;return!0}return!1},l.prototype.evaluate=function(r){for(var c=0,A=this.expr.length;c<A;c++)if(this.expr[c].evaluate(r))return!0;return!1},l._normalizeArr=function(r){var c=[];if(r){for(var A=0,p=r.length;A<p;A++){var x=r[A];if(!x)continue;if(x instanceof l){c=c.concat(x.expr);continue}c.push(x)}c.sort(b)}return c},l.prototype.keys=function(){for(var r=[],c=0,A=this.expr;c<A.length;c++){var p=A[c];r.push.apply(r,p.keys())}return r},l.prototype.negate=function(){for(var r=[],c=0,A=this.expr;c<A.length;c++){var p=A[c];r.push(p.negate())}for(var x=function(D){return D instanceof l?D.expr:[D]};r.length>1;){for(var _=r.shift(),B=r.shift(),E=[],g=0,h=x(_);g<h.length;g++)for(var u=h[g],S=0,O=x(B);S<O.length;S++){var T=O[S];E.push(v.and(u,T))}r.unshift(v.or.apply(v,E))}return r[0]},l}(),s=function(l){M(r,l);function r(c,A){var p=l.call(this,c)||this;return p._defaultValue=A,p}return r.prototype.bindTo=function(c){return c.createKey(this.key,this._defaultValue)},r.prototype.getValue=function(c){return c.getContextKeyValue(this.key)},r.prototype.toNegated=function(){return v.not(this.key)},r}(C),o=Object(G.c)("contextKeyService"),f="setContext"},TGq3:function(Ge,fe,R){Ge.exports=R.p+"static/lockclose.365036e8.svg"},VlDO:function(Ge,fe,R){Ge.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(Ge,fe){function R(se,G){var M=G.x,v=G.y,b=G.width,C=G.height,w=G.r,m,d,i,n;b<0&&(M=M+b,b=-b),C<0&&(v=v+C,C=-C),typeof w=="number"?m=d=i=n=w:w instanceof Array?w.length===1?m=d=i=n=w[0]:w.length===2?(m=i=w[0],d=n=w[1]):w.length===3?(m=w[0],d=n=w[1],i=w[2]):(m=w[0],d=w[1],i=w[2],n=w[3]):m=d=i=n=0;var e;m+d>b&&(e=m+d,m*=b/e,d*=b/e),i+n>b&&(e=i+n,i*=b/e,n*=b/e),d+i>C&&(e=d+i,d*=C/e,i*=C/e),m+n>C&&(e=m+n,m*=C/e,n*=C/e),se.moveTo(M+m,v),se.lineTo(M+b-d,v),d!==0&&se.arc(M+b-d,v+d,d,-Math.PI/2,0),se.lineTo(M+b,v+C-i),i!==0&&se.arc(M+b-i,v+C-i,i,0,Math.PI/2),se.lineTo(M+n,v+C),n!==0&&se.arc(M+n,v+C-n,n,Math.PI/2,Math.PI),se.lineTo(M,v+m),m!==0&&se.arc(M+m,v+m,m,Math.PI,Math.PI*1.5)}fe.buildPath=R},"VrN/":function(Ge,fe,R){(function(se,G){Ge.exports=G()})(this,function(){"use strict";var se=navigator.userAgent,G=navigator.platform,M=/gecko\/\d/i.test(se),v=/MSIE \d/.test(se),b=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(se),C=/Edge\/(\d+)/.exec(se),w=v||b||C,m=w&&(v?document.documentMode||6:+(C||b)[1]),d=!C&&/WebKit\//.test(se),i=d&&/Qt\/\d+\.\d+/.test(se),n=!C&&/Chrome\//.test(se),e=/Opera\//.test(se),a=/Apple Computer/.test(navigator.vendor),s=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(se),o=/PhantomJS/.test(se),f=!C&&/AppleWebKit/.test(se)&&/Mobile\/\w+/.test(se),l=/Android/.test(se),r=f||l||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(se),c=f||/Mac/.test(G),A=/\bCrOS\b/.test(se),p=/win/i.test(G),x=e&&se.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(e=!1,d=!0);var _=c&&(i||e&&(x==null||x<12.11)),B=M||w&&m>=9;function E(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var g=function(t,y){var P=t.className,L=E(y).exec(P);if(L){var H=P.slice(L.index+L[0].length);t.className=P.slice(0,L.index)+(H?L[1]+H:"")}};function h(t){for(var y=t.childNodes.length;y>0;--y)t.removeChild(t.firstChild);return t}function u(t,y){return h(t).appendChild(y)}function S(t,y,P,L){var H=document.createElement(t);if(P&&(H.className=P),L&&(H.style.cssText=L),typeof y=="string")H.appendChild(document.createTextNode(y));else if(y)for(var le=0;le<y.length;++le)H.appendChild(y[le]);return H}function O(t,y,P,L){var H=S(t,y,P,L);return H.setAttribute("role","presentation"),H}var T;document.createRange?T=function(t,y,P,L){var H=document.createRange();return H.setEnd(L||t,P),H.setStart(t,y),H}:T=function(t,y,P){var L=document.body.createTextRange();try{L.moveToElementText(t.parentNode)}catch(H){return L}return L.collapse(!0),L.moveEnd("character",P),L.moveStart("character",y),L};function D(t,y){if(y.nodeType==3&&(y=y.parentNode),t.contains)return t.contains(y);do if(y.nodeType==11&&(y=y.host),y==t)return!0;while(y=y.parentNode)}function I(){var t;try{t=document.activeElement}catch(y){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function k(t,y){var P=t.className;E(y).test(P)||(t.className+=(P?" ":"")+y)}function F(t,y){for(var P=t.split(" "),L=0;L<P.length;L++)P[L]&&!E(P[L]).test(y)&&(y+=" "+P[L]);return y}var X=function(t){t.select()};f?X=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:w&&(X=function(t){try{t.select()}catch(y){}});function U(t){var y=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,y)}}function K(t,y,P){y||(y={});for(var L in t)t.hasOwnProperty(L)&&(P!==!1||!y.hasOwnProperty(L))&&(y[L]=t[L]);return y}function V(t,y,P,L,H){y==null&&(y=t.search(/[^\s\u00a0]/),y==-1&&(y=t.length));for(var le=L||0,we=H||0;;){var De=t.indexOf(" ",le);if(De<0||De>=y)return we+(y-le);we+=De-le,we+=P-we%P,le=De+1}}var N=function(){this.id=null,this.f=null,this.time=0,this.handler=U(this.onTimeout,this)};N.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},N.prototype.set=function(t,y){this.f=y;var P=+new Date+t;(!this.id||P<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=P)};function Q(t,y){for(var P=0;P<t.length;++P)if(t[P]==y)return P;return-1}var J=50,ne={toString:function(){return"CodeMirror.Pass"}},ue={scroll:!1},be={origin:"*mouse"},de={origin:"+move"};function _e(t,y,P){for(var L=0,H=0;;){var le=t.indexOf(" ",L);le==-1&&(le=t.length);var we=le-L;if(le==t.length||H+we>=y)return L+Math.min(we,y-H);if(H+=le-L,H+=P-H%P,L=le+1,H>=y)return L}}var me=[""];function Ee(t){for(;me.length<=t;)me.push(ge(me)+" ");return me[t]}function ge(t){return t[t.length-1]}function Ae(t,y){for(var P=[],L=0;L<t.length;L++)P[L]=y(t[L],L);return P}function ae(t,y,P){for(var L=0,H=P(y);L<t.length&&P(t[L])<=H;)L++;t.splice(L,0,y)}function ve(){}function oe(t,y){var P;return Object.create?P=Object.create(t):(ve.prototype=t,P=new ve),y&&K(y,P),P}var ie=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Te(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||ie.test(t))}function Re(t,y){return y?y.source.indexOf("\\w")>-1&&Te(t)?!0:y.test(t):Te(t)}function Me(t){for(var y in t)if(t.hasOwnProperty(y)&&t[y])return!1;return!0}var re=/[\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 j(t){return t.charCodeAt(0)>=768&&re.test(t)}function W(t,y,P){for(;(P<0?y>0:y<t.length)&&j(t.charAt(y));)y+=P;return y}function he(t,y,P){for(var L=y>P?-1:1;;){if(y==P)return y;var H=(y+P)/2,le=L<0?Math.ceil(H):Math.floor(H);if(le==y)return t(le)?y:P;t(le)?P=le:y=le+L}}function te(t,y,P,L){if(!t)return L(y,P,"ltr",0);for(var H=!1,le=0;le<t.length;++le){var we=t[le];(we.from<P&&we.to>y||y==P&&we.to==y)&&(L(Math.max(we.from,y),Math.min(we.to,P),we.level==1?"rtl":"ltr",le),H=!0)}H||L(y,P,"ltr")}var ce=null;function Ie(t,y,P){var L;ce=null;for(var H=0;H<t.length;++H){var le=t[H];if(le.from<y&&le.to>y)return H;le.to==y&&(le.from!=le.to&&P=="before"?L=H:ce=H),le.from==y&&(le.from!=le.to&&P!="before"?L=H:ce=H)}return L!=null?L:ce}var ze=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function P(Qe){return Qe<=247?t.charAt(Qe):1424<=Qe&&Qe<=1524?"R":1536<=Qe&&Qe<=1785?y.charAt(Qe-1536):1774<=Qe&&Qe<=2220?"r":8192<=Qe&&Qe<=8203?"w":Qe==8204?"b":"L"}var L=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,H=/[stwN]/,le=/[LRr]/,we=/[Lb1n]/,De=/[1n]/;function Pe(Qe,gt,wt){this.level=Qe,this.from=gt,this.to=wt}return function(Qe,gt){var wt=gt=="ltr"?"L":"R";if(Qe.length==0||gt=="ltr"&&!L.test(Qe))return!1;for(var Qt=Qe.length,Nt=[],on=0;on<Qt;++on)Nt.push(P(Qe.charCodeAt(on)));for(var yn=0,Mn=wt;yn<Qt;++yn){var Gn=Nt[yn];Gn=="m"?Nt[yn]=Mn:Mn=Gn}for(var ar=0,Xn=wt;ar<Qt;++ar){var pr=Nt[ar];pr=="1"&&Xn=="r"?Nt[ar]="n":le.test(pr)&&(Xn=pr,pr=="r"&&(Nt[ar]="R"))}for(var Hr=1,Lr=Nt[0];Hr<Qt-1;++Hr){var mi=Nt[Hr];mi=="+"&&Lr=="1"&&Nt[Hr+1]=="1"?Nt[Hr]="1":mi==","&&Lr==Nt[Hr+1]&&(Lr=="1"||Lr=="n")&&(Nt[Hr]=Lr),Lr=mi}for(var ca=0;ca<Qt;++ca){var so=Nt[ca];if(so==",")Nt[ca]="N";else if(so=="%"){var Ra=void 0;for(Ra=ca+1;Ra<Qt&&Nt[Ra]=="%";++Ra);for(var Yo=ca&&Nt[ca-1]=="!"||Ra<Qt&&Nt[Ra]=="1"?"1":"N",Co=ca;Co<Ra;++Co)Nt[Co]=Yo;ca=Ra-1}}for(var za=0,xo=wt;za<Qt;++za){var mo=Nt[za];xo=="L"&&mo=="1"?Nt[za]="L":le.test(mo)&&(xo=mo)}for(var Hn=0;Hn<Qt;++Hn)if(H.test(Nt[Hn])){var xa=void 0;for(xa=Hn+1;xa<Qt&&H.test(Nt[xa]);++xa);for(var wa=(Hn?Nt[Hn-1]:wt)=="L",_a=(xa<Qt?Nt[xa]:wt)=="L",ml=wa==_a?wa?"L":"R":wt,Bi=Hn;Bi<xa;++Bi)Nt[Bi]=ml;Hn=xa-1}for(var yi=[],is,lo=0;lo<Qt;)if(we.test(Nt[lo])){var vl=lo;for(++lo;lo<Qt&&we.test(Nt[lo]);++lo);yi.push(new Pe(0,vl,lo))}else{var Ns=lo,Ds=yi.length,sl=gt=="rtl"?1:0;for(++lo;lo<Qt&&Nt[lo]!="L";++lo);for(var Oo=Ns;Oo<lo;)if(De.test(Nt[Oo])){Ns<Oo&&(yi.splice(Ds,0,new Pe(1,Ns,Oo)),Ds+=sl);var ll=Oo;for(++Oo;Oo<lo&&De.test(Nt[Oo]);++Oo);yi.splice(Ds,0,new Pe(2,ll,Oo)),Ds+=sl,Ns=Oo}else++Oo;Ns<lo&&yi.splice(Ds,0,new Pe(1,Ns,lo))}return gt=="ltr"&&(yi[0].level==1&&(is=Qe.match(/^\s+/))&&(yi[0].from=is[0].length,yi.unshift(new Pe(0,0,is[0].length))),ge(yi).level==1&&(is=Qe.match(/\s+$/))&&(ge(yi).to-=is[0].length,yi.push(new Pe(0,Qt-is[0].length,Qt)))),gt=="rtl"?yi.reverse():yi}}();function _t(t,y){var P=t.order;return P==null&&(P=t.order=ze(t.text,y)),P}var He=[],Ke=function(t,y,P){if(t.addEventListener)t.addEventListener(y,P,!1);else if(t.attachEvent)t.attachEvent("on"+y,P);else{var L=t._handlers||(t._handlers={});L[y]=(L[y]||He).concat(P)}};function ht(t,y){return t._handlers&&t._handlers[y]||He}function St(t,y,P){if(t.removeEventListener)t.removeEventListener(y,P,!1);else if(t.detachEvent)t.detachEvent("on"+y,P);else{var L=t._handlers,H=L&&L[y];if(H){var le=Q(H,P);le>-1&&(L[y]=H.slice(0,le).concat(H.slice(le+1)))}}}function ct(t,y){var P=ht(t,y);if(!P.length)return;for(var L=Array.prototype.slice.call(arguments,2),H=0;H<P.length;++H)P[H].apply(null,L)}function lt(t,y,P){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),ct(t,P||y.type,t,y),We(y)||y.codemirrorIgnore}function rt(t){var y=t._handlers&&t._handlers.cursorActivity;if(!y)return;for(var P=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),L=0;L<y.length;++L)Q(P,y[L])==-1&&P.push(y[L])}function Ze(t,y){return ht(t,y).length>0}function $e(t){t.prototype.on=function(y,P){Ke(this,y,P)},t.prototype.off=function(y,P){St(this,y,P)}}function Ue(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Ne(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function We(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function it(t){Ue(t),Ne(t)}function yt(t){return t.target||t.srcElement}function vt(t){var y=t.which;return y==null&&(t.button&1?y=1:t.button&2?y=3:t.button&4&&(y=2)),c&&t.ctrlKey&&y==1&&(y=3),y}var Mt=function(){if(w&&m<9)return!1;var t=S("div");return"draggable"in t||"dragDrop"in t}(),Tt;function Rt(t){if(Tt==null){var y=S("span","\u200B");u(t,S("span",[y,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Tt=y.offsetWidth<=1&&y.offsetHeight>2&&!(w&&m<8))}var P=Tt?S("span","\u200B"):S("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return P.setAttribute("cm-text",""),P}var kt;function Ut(t){if(kt!=null)return kt;var y=u(t,document.createTextNode("A\u062EA")),P=T(y,0,1).getBoundingClientRect(),L=T(y,1,2).getBoundingClientRect();return h(t),!P||P.left==P.right?!1:kt=L.right-P.right<3}var Bt=`
b`.split(/\n/).length!=3?function(t){for(var y=0,P=[],L=t.length;y<=L;){var H=t.indexOf(`
`,y);H==-1&&(H=t.length);var le=t.slice(y,t.charAt(H-1)=="\r"?H-1:H),we=le.indexOf("\r");we!=-1?(P.push(le.slice(0,we)),y+=we+1):(P.push(le),y=H+1)}return P}:function(t){return t.split(/\r\n?|\n/)},At=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(y){return!1}}:function(t){var y;try{y=t.ownerDocument.selection.createRange()}catch(P){}return!y||y.parentElement()!=t?!1:y.compareEndPoints("StartToEnd",y)!=0},bt=function(){var t=S("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),je=null;function qe(t){if(je!=null)return je;var y=u(t,S("span","x")),P=y.getBoundingClientRect(),L=T(y,0,1).getBoundingClientRect();return je=Math.abs(P.left-L.left)>1}var Ot={},Ct={};function jt(t,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Ot[t]=y}function Vt(t,y){Ct[t]=y}function Et(t){if(typeof t=="string"&&Ct.hasOwnProperty(t))t=Ct[t];else if(t&&typeof t.name=="string"&&Ct.hasOwnProperty(t.name)){var y=Ct[t.name];typeof y=="string"&&(y={name:y}),t=oe(y,t),t.name=y.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Et("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Et("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function Lt(t,y){y=Et(y);var P=Ot[y.name];if(!P)return Lt(t,"text/plain");var L=P(t,y);if(Ht.hasOwnProperty(y.name)){var H=Ht[y.name];for(var le in H){if(!H.hasOwnProperty(le))continue;L.hasOwnProperty(le)&&(L["_"+le]=L[le]),L[le]=H[le]}}if(L.name=y.name,y.helperType&&(L.helperType=y.helperType),y.modeProps)for(var we in y.modeProps)L[we]=y.modeProps[we];return L}var Ht={};function un(t,y){var P=Ht.hasOwnProperty(t)?Ht[t]:Ht[t]={};K(y,P)}function gn(t,y){if(y===!0)return y;if(t.copyState)return t.copyState(y);var P={};for(var L in y){var H=y[L];H instanceof Array&&(H=H.concat([])),P[L]=H}return P}function Ar(t,y){for(var P;t.innerMode&&!(P=t.innerMode(y),!P||P.mode==t);)y=P.state,t=P.mode;return P||{mode:t,state:y}}function wr(t,y,P){return t.startState?t.startState(y,P):!0}var cr=function(t,y,P){this.pos=this.start=0,this.string=t,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=P};cr.prototype.eol=function(){return this.pos>=this.string.length},cr.prototype.sol=function(){return this.pos==this.lineStart},cr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},cr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},cr.prototype.eat=function(t){var y=this.string.charAt(this.pos),P;if(typeof t=="string"?P=y==t:P=y&&(t.test?t.test(y):t(y)),P)return++this.pos,y},cr.prototype.eatWhile=function(t){for(var y=this.pos;this.eat(t););return this.pos>y},cr.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},cr.prototype.skipToEnd=function(){this.pos=this.string.length},cr.prototype.skipTo=function(t){var y=this.string.indexOf(t,this.pos);if(y>-1)return this.pos=y,!0},cr.prototype.backUp=function(t){this.pos-=t},cr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},cr.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},cr.prototype.match=function(t,y,P){if(typeof t=="string"){var L=function(we){return P?we.toLowerCase():we},H=this.string.substr(this.pos,t.length);if(L(H)==L(t))return y!==!1&&(this.pos+=t.length),!0}else{var le=this.string.slice(this.pos).match(t);return le&&le.index>0?null:(le&&y!==!1&&(this.pos+=le[0].length),le)}},cr.prototype.current=function(){return this.string.slice(this.start,this.pos)},cr.prototype.hideFirstChars=function(t,y){this.lineStart+=t;try{return y()}finally{this.lineStart-=t}},cr.prototype.lookAhead=function(t){var y=this.lineOracle;return y&&y.lookAhead(t)},cr.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function Rn(t,y){if(y-=t.first,y<0||y>=t.size)throw new Error("There is no line "+(y+t.first)+" in the document.");for(var P=t;!P.lines;)for(var L=0;;++L){var H=P.children[L],le=H.chunkSize();if(y<le){P=H;break}y-=le}return P.lines[y]}function Jr(t,y,P){var L=[],H=y.line;return t.iter(y.line,P.line+1,function(le){var we=le.text;H==P.line&&(we=we.slice(0,P.ch)),H==y.line&&(we=we.slice(y.ch)),L.push(we),++H}),L}function si(t,y,P){var L=[];return t.iter(y,P,function(H){L.push(H.text)}),L}function li(t,y){var P=y-t.height;if(P)for(var L=t;L;L=L.parent)L.height+=P}function kr(t){if(t.parent==null)return null;for(var y=t.parent,P=Q(y.lines,t),L=y.parent;L;y=L,L=L.parent)for(var H=0;!(L.children[H]==y);++H)P+=L.children[H].chunkSize();return P+y.first}function hi(t,y){var P=t.first;e:do{for(var L=0;L<t.children.length;++L){var H=t.children[L],le=H.height;if(y<le){t=H;continue e}y-=le,P+=H.chunkSize()}return P}while(!t.lines);for(var we=0;we<t.lines.length;++we){var De=t.lines[we],Pe=De.height;if(y<Pe)break;y-=Pe}return P+we}function Ui(t,y){return y>=t.first&&y<t.first+t.size}function Zi(t,y){return String(t.lineNumberFormatter(y+t.firstLineNumber))}function Le(t,y,P){if(P===void 0&&(P=null),!(this instanceof Le))return new Le(t,y,P);this.line=t,this.ch=y,this.sticky=P}function Fe(t,y){return t.line-y.line||t.ch-y.ch}function nt(t,y){return t.sticky==y.sticky&&Fe(t,y)==0}function xt(t){return Le(t.line,t.ch)}function Wt(t,y){return Fe(t,y)<0?y:t}function Xt(t,y){return Fe(t,y)<0?t:y}function pe(t,y){return Math.max(t.first,Math.min(y,t.first+t.size-1))}function z(t,y){if(y.line<t.first)return Le(t.first,0);var P=t.first+t.size-1;return y.line>P?Le(P,Rn(t,P).text.length):Z(y,Rn(t,y.line).text.length)}function Z(t,y){var P=t.ch;return P==null||P>y?Le(t.line,y):P<0?Le(t.line,0):t}function ye(t,y){for(var P=[],L=0;L<y.length;L++)P[L]=z(t,y[L]);return P}var xe=function(t,y){this.state=t,this.lookAhead=y},Ce=function(t,y,P,L){this.state=y,this.doc=t,this.line=P,this.maxLookAhead=L||0,this.baseTokens=null,this.baseTokenPos=1};Ce.prototype.lookAhead=function(t){var y=this.doc.getLine(this.line+t);return y!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),y},Ce.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Ce.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ce.fromSaved=function(t,y,P){return y instanceof xe?new Ce(t,gn(t.mode,y.state),P,y.lookAhead):new Ce(t,gn(t.mode,y),P)},Ce.prototype.save=function(t){var y=t!==!1?gn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new xe(y,this.maxLookAhead):y};function ft(t,y,P,L){var H=[t.state.modeGen],le={};ii(t,y.text,t.doc.mode,P,function(Qe,gt){return H.push(Qe,gt)},le,L);for(var we=P.state,De=function(Qe){P.baseTokens=H;var gt=t.state.overlays[Qe],wt=1,Qt=0;P.state=!0,ii(t,y.text,gt.mode,P,function(Nt,on){for(var yn=wt;Qt<Nt;){var Mn=H[wt];Mn>Nt&&H.splice(wt,1,Nt,H[wt+1],Mn),wt+=2,Qt=Math.min(Nt,Mn)}if(!on)return;if(gt.opaque)H.splice(yn,wt-yn,Nt,"overlay "+on),wt=yn+2;else for(;yn<wt;yn+=2){var Gn=H[yn+1];H[yn+1]=(Gn?Gn+" ":"")+"overlay "+on}},le),P.state=we,P.baseTokens=null,P.baseTokenPos=1},Pe=0;Pe<t.state.overlays.length;++Pe)De(Pe);return{styles:H,classes:le.bgClass||le.textClass?le:null}}function zt(t,y,P){if(!y.styles||y.styles[0]!=t.state.modeGen){var L=ln(t,kr(y)),H=y.text.length>t.options.maxHighlightLength&&gn(t.doc.mode,L.state),le=ft(t,y,L);H&&(L.state=H),y.stateAfter=L.save(!H),y.styles=le.styles,le.classes?y.styleClasses=le.classes:y.styleClasses&&(y.styleClasses=null),P===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return y.styles}function ln(t,y,P){var L=t.doc,H=t.display;if(!L.mode.startState)return new Ce(L,!0,y);var le=Dr(t,y,P),we=le>L.first&&Rn(L,le-1).stateAfter,De=we?Ce.fromSaved(L,we,le):new Ce(L,wr(L.mode),le);return L.iter(le,y,function(Pe){mn(t,Pe.text,De);var Qe=De.line;Pe.stateAfter=Qe==y-1||Qe%5==0||Qe>=H.viewFrom&&Qe<H.viewTo?De.save():null,De.nextLine()}),P&&(L.modeFrontier=De.line),De}function mn(t,y,P,L){var H=t.doc.mode,le=new cr(y,t.options.tabSize,P);for(le.start=le.pos=L||0,y==""&&Jt(H,P.state);!le.eol();)Zn(H,le,P.state),le.start=le.pos}function Jt(t,y){if(t.blankLine)return t.blankLine(y);if(!t.innerMode)return;var P=Ar(t,y);if(P.mode.blankLine)return P.mode.blankLine(P.state)}function Zn(t,y,P,L){for(var H=0;H<10;H++){L&&(L[0]=Ar(t,P).mode);var le=t.token(y,P);if(y.pos>y.start)return le}throw new Error("Mode "+t.name+" failed to advance stream.")}var Un=function(t,y,P){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=y||null,this.state=P};function nr(t,y,P,L){var H=t.doc,le=H.mode,we;y=z(H,y);var De=Rn(H,y.line),Pe=ln(t,y.line,P),Qe=new cr(De.text,t.options.tabSize,Pe),gt;for(L&&(gt=[]);(L||Qe.pos<y.ch)&&!Qe.eol();)Qe.start=Qe.pos,we=Zn(le,Qe,Pe.state),L&&gt.push(new Un(Qe,we,gn(H.mode,Pe.state)));return L?gt:new Un(Qe,we,Pe.state)}function Sr(t,y){if(t)for(;;){var P=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!P)break;t=t.slice(0,P.index)+t.slice(P.index+P[0].length);var L=P[1]?"bgClass":"textClass";y[L]==null?y[L]=P[2]:new RegExp("(?:^|\\s)"+P[2]+"(?:$|\\s)").test(y[L])||(y[L]+=" "+P[2])}return t}function ii(t,y,P,L,H,le,we){var De=P.flattenSpans;De==null&&(De=t.options.flattenSpans);var Pe=0,Qe=null,gt=new cr(y,t.options.tabSize,L),wt,Qt=t.options.addModeClass&&[null];for(y==""&&Sr(Jt(P,L.state),le);!gt.eol();){if(gt.pos>t.options.maxHighlightLength?(De=!1,we&&mn(t,y,L,gt.pos),gt.pos=y.length,wt=null):wt=Sr(Zn(P,gt,L.state,Qt),le),Qt){var Nt=Qt[0].name;Nt&&(wt="m-"+(wt?Nt+" "+wt:Nt))}if(!De||Qe!=wt){for(;Pe<gt.start;)Pe=Math.min(gt.start,Pe+5e3),H(Pe,Qe);Qe=wt}gt.start=gt.pos}for(;Pe<gt.pos;){var on=Math.min(gt.pos,Pe+5e3);H(on,Qe),Pe=on}}function Dr(t,y,P){for(var L,H,le=t.doc,we=P?-1:y-(t.doc.mode.innerMode?1e3:100),De=y;De>we;--De){if(De<=le.first)return le.first;var Pe=Rn(le,De-1),Qe=Pe.stateAfter;if(Qe&&(!P||De+(Qe instanceof xe?Qe.lookAhead:0)<=le.modeFrontier))return De;var gt=V(Pe.text,null,t.options.tabSize);(H==null||L>gt)&&(H=De-1,L=gt)}return H}function ti(t,y){if(t.modeFrontier=Math.min(t.modeFrontier,y),t.highlightFrontier<y-10)return;for(var P=t.first,L=y-1;L>P;L--){var H=Rn(t,L).stateAfter;if(H&&(!(H instanceof xe)||L+H.lookAhead<y)){P=L+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,P)}var Tr=!1,vi=!1;function fi(){Tr=!0}function Oi(){vi=!0}function wi(t,y,P){this.marker=t,this.from=y,this.to=P}function Fi(t,y){if(t)for(var P=0;P<t.length;++P){var L=t[P];if(L.marker==y)return L}}function Hi(t,y){for(var P,L=0;L<t.length;++L)t[L]!=y&&(P||(P=[])).push(t[L]);return P}function Ii(t,y){t.markedSpans=t.markedSpans?t.markedSpans.concat([y]):[y],y.marker.attachLine(t)}function Vr(t,y,P){var L;if(t)for(var H=0;H<t.length;++H){var le=t[H],we=le.marker,De=le.from==null||(we.inclusiveLeft?le.from<=y:le.from<y);if(De||le.from==y&&we.type=="bookmark"&&(!P||!le.marker.insertLeft)){var Pe=le.to==null||(we.inclusiveRight?le.to>=y:le.to>y);(L||(L=[])).push(new wi(we,le.from,Pe?null:le.to))}}return L}function zi(t,y,P){var L;if(t)for(var H=0;H<t.length;++H){var le=t[H],we=le.marker,De=le.to==null||(we.inclusiveRight?le.to>=y:le.to>y);if(De||le.from==y&&we.type=="bookmark"&&(!P||le.marker.insertLeft)){var Pe=le.from==null||(we.inclusiveLeft?le.from<=y:le.from<y);(L||(L=[])).push(new wi(we,Pe?null:le.from-y,le.to==null?null:le.to-y))}}return L}function Gi(t,y){if(y.full)return null;var P=Ui(t,y.from.line)&&Rn(t,y.from.line).markedSpans,L=Ui(t,y.to.line)&&Rn(t,y.to.line).markedSpans;if(!P&&!L)return null;var H=y.from.ch,le=y.to.ch,we=Fe(y.from,y.to)==0,De=Vr(P,H,we),Pe=zi(L,le,we),Qe=y.text.length==1,gt=ge(y.text).length+(Qe?H:0);if(De)for(var wt=0;wt<De.length;++wt){var Qt=De[wt];if(Qt.to==null){var Nt=Fi(Pe,Qt.marker);Nt?Qe&&(Qt.to=Nt.to==null?null:Nt.to+gt):Qt.to=H}}if(Pe)for(var on=0;on<Pe.length;++on){var yn=Pe[on];if(yn.to!=null&&(yn.to+=gt),yn.from==null){var Mn=Fi(De,yn.marker);Mn||(yn.from=gt,Qe&&(De||(De=[])).push(yn))}else yn.from+=gt,Qe&&(De||(De=[])).push(yn)}De&&(De=Di(De)),Pe&&Pe!=De&&(Pe=Di(Pe));var Gn=[De];if(!Qe){var ar=y.text.length-2,Xn;if(ar>0&&De)for(var pr=0;pr<De.length;++pr)De[pr].to==null&&(Xn||(Xn=[])).push(new wi(De[pr].marker,null,null));for(var Hr=0;Hr<ar;++Hr)Gn.push(Xn);Gn.push(Pe)}return Gn}function Di(t){for(var y=0;y<t.length;++y){var P=t[y];P.from!=null&&P.from==P.to&&P.marker.clearWhenEmpty!==!1&&t.splice(y--,1)}return t.length?t:null}function sa(t,y,P){var L=null;if(t.iter(y.line,P.line+1,function(Nt){if(Nt.markedSpans)for(var on=0;on<Nt.markedSpans.length;++on){var yn=Nt.markedSpans[on].marker;yn.readOnly&&(!L||Q(L,yn)==-1)&&(L||(L=[])).push(yn)}}),!L)return null;for(var H=[{from:y,to:P}],le=0;le<L.length;++le)for(var we=L[le],De=we.find(0),Pe=0;Pe<H.length;++Pe){var Qe=H[Pe];if(Fe(Qe.to,De.from)<0||Fe(Qe.from,De.to)>0)continue;var gt=[Pe,1],wt=Fe(Qe.from,De.from),Qt=Fe(Qe.to,De.to);(wt<0||!we.inclusiveLeft&&!wt)&&gt.push({from:Qe.from,to:De.from}),(Qt>0||!we.inclusiveRight&&!Qt)&&gt.push({from:De.to,to:Qe.to}),H.splice.apply(H,gt),Pe+=gt.length-3}return H}function da(t){var y=t.markedSpans;if(!y)return;for(var P=0;P<y.length;++P)y[P].marker.detachLine(t);t.markedSpans=null}function Mi(t,y){if(!y)return;for(var P=0;P<y.length;++P)y[P].marker.attachLine(t);t.markedSpans=y}function Wr(t){return t.inclusiveLeft?-1:0}function hr(t){return t.inclusiveRight?1:0}function zr(t,y){var P=t.lines.length-y.lines.length;if(P!=0)return P;var L=t.find(),H=y.find(),le=Fe(L.from,H.from)||Wr(t)-Wr(y);if(le)return-le;var we=Fe(L.to,H.to)||hr(t)-hr(y);return we||y.id-t.id}function Zr(t,y){var P=vi&&t.markedSpans,L;if(P)for(var H=void 0,le=0;le<P.length;++le)H=P[le],H.marker.collapsed&&(y?H.from:H.to)==null&&(!L||zr(L,H.marker)<0)&&(L=H.marker);return L}function _i(t){return Zr(t,!0)}function Xr(t){return Zr(t,!1)}function ja(t,y){var P=vi&&t.markedSpans,L;if(P)for(var H=0;H<P.length;++H){var le=P[H];le.marker.collapsed&&(le.from==null||le.from<y)&&(le.to==null||le.to>y)&&(!L||zr(L,le.marker)<0)&&(L=le.marker)}return L}function Ni(t,y,P,L,H){var le=Rn(t,y),we=vi&&le.markedSpans;if(we)for(var De=0;De<we.length;++De){var Pe=we[De];if(!Pe.marker.collapsed)continue;var Qe=Pe.marker.find(0),gt=Fe(Qe.from,P)||Wr(Pe.marker)-Wr(H),wt=Fe(Qe.to,L)||hr(Pe.marker)-hr(H);if(gt>=0&&wt<=0||gt<=0&&wt>=0)continue;if(gt<=0&&(Pe.marker.inclusiveRight&&H.inclusiveLeft?Fe(Qe.to,P)>=0:Fe(Qe.to,P)>0)||gt>=0&&(Pe.marker.inclusiveRight&&H.inclusiveLeft?Fe(Qe.from,L)<=0:Fe(Qe.from,L)<0))return!0}}function va(t){for(var y;y=_i(t);)t=y.find(-1,!0).line;return t}function vo(t){for(var y;y=Xr(t);)t=y.find(1,!0).line;return t}function Wo(t){for(var y,P;y=Xr(t);)t=y.find(1,!0).line,(P||(P=[])).push(t);return P}function Ci(t,y){var P=Rn(t,y),L=va(P);return P==L?y:kr(L)}function Ro(t,y){if(y>t.lastLine())return y;var P=Rn(t,y),L;if(!ha(t,P))return y;for(;L=Xr(P);)P=L.find(1,!0).line;return kr(P)+1}function ha(t,y){var P=vi&&y.markedSpans;if(P)for(var L=void 0,H=0;H<P.length;++H){if(L=P[H],!L.marker.collapsed)continue;if(L.from==null)return!0;if(L.marker.widgetNode)continue;if(L.from==0&&L.marker.inclusiveLeft&&os(t,y,L))return!0}}function os(t,y,P){if(P.to==null){var L=P.marker.find(1,!0);return os(t,L.line,Fi(L.line.markedSpans,P.marker))}if(P.marker.inclusiveRight&&P.to==y.text.length)return!0;for(var H=void 0,le=0;le<y.markedSpans.length;++le)if(H=y.markedSpans[le],H.marker.collapsed&&!H.marker.widgetNode&&H.from==P.to&&(H.to==null||H.to!=P.from)&&(H.marker.inclusiveLeft||P.marker.inclusiveRight)&&os(t,y,H))return!0}function eo(t){t=va(t);for(var y=0,P=t.parent,L=0;L<P.lines.length;++L){var H=P.lines[L];if(H==t)break;y+=H.height}for(var le=P.parent;le;P=le,le=P.parent)for(var we=0;we<le.children.length;++we){var De=le.children[we];if(De==P)break;y+=De.height}return y}function ss(t){if(t.height==0)return 0;for(var y=t.text.length,P,L=t;P=_i(L);){var H=P.find(0,!0);L=H.from.line,y+=H.from.ch-H.to.ch}for(L=t;P=Xr(L);){var le=P.find(0,!0);y-=L.text.length-le.from.ch,L=le.to.line,y+=L.text.length-le.to.ch}return y}function Jo(t){var y=t.display,P=t.doc;y.maxLine=Rn(P,P.first),y.maxLineLength=ss(y.maxLine),y.maxLineChanged=!0,P.iter(function(L){var H=ss(L);H>y.maxLineLength&&(y.maxLineLength=H,y.maxLine=L)})}var Ua=function(t,y,P){this.text=t,Mi(this,y),this.height=P?P(this):1};Ua.prototype.lineNo=function(){return kr(this)},$e(Ua);function Zo(t,y,P,L){t.text=y,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),da(t),Mi(t,P);var H=L?L(t):1;H!=t.height&&li(t,H)}function ps(t){t.parent=null,da(t)}var kn={},Cr={};function gr(t,y){if(!t||/^\s*$/.test(t))return null;var P=y.addModeClass?Cr:kn;return P[t]||(P[t]=t.replace(/\S+/g,"cm-$&"))}function Gr(t,y){var P=O("span",null,null,d?"padding-right: .1px":null),L={pre:O("pre",[P],"CodeMirror-line"),content:P,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};y.measure={};for(var H=0;H<=(y.rest?y.rest.length:0);H++){var le=H?y.rest[H-1]:y.line,we=void 0;L.pos=0,L.addToken=Si,Ut(t.display.measure)&&(we=_t(le,t.doc.direction))&&(L.addToken=fa(L.addToken,we)),L.map=[];var De=y!=t.display.externalMeasured&&kr(le);ni(le,L,zt(t,le,De)),le.styleClasses&&(le.styleClasses.bgClass&&(L.bgClass=F(le.styleClasses.bgClass,L.bgClass||"")),le.styleClasses.textClass&&(L.textClass=F(le.styleClasses.textClass,L.textClass||""))),L.map.length==0&&L.map.push(0,0,L.content.appendChild(Rt(t.display.measure))),H==0?(y.measure.map=L.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(L.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(d){var Pe=L.content.lastChild;(/\bcm-tab\b/.test(Pe.className)||Pe.querySelector&&Pe.querySelector(".cm-tab"))&&(L.content.className="cm-tab-wrap-hack")}return ct(t,"renderLine",t,y.line,L.pre),L.pre.className&&(L.textClass=F(L.pre.className,L.textClass||"")),L}function Ai(t){var y=S("span","\u2022","cm-invalidchar");return y.title="\\u"+t.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Si(t,y,P,L,H,le,we){if(!y)return;var De=t.splitSpaces?oi(y,t.trailingSpace):y,Pe=t.cm.state.specialChars,Qe=!1,gt;if(!Pe.test(y))t.col+=y.length,gt=document.createTextNode(De),t.map.push(t.pos,t.pos+y.length,gt),w&&m<9&&(Qe=!0),t.pos+=y.length;else{gt=document.createDocumentFragment();for(var wt=0;;){Pe.lastIndex=wt;var Qt=Pe.exec(y),Nt=Qt?Qt.index-wt:y.length-wt;if(Nt){var on=document.createTextNode(De.slice(wt,wt+Nt));w&&m<9?gt.appendChild(S("span",[on])):gt.appendChild(on),t.map.push(t.pos,t.pos+Nt,on),t.col+=Nt,t.pos+=Nt}if(!Qt)break;wt+=Nt+1;var yn=void 0;if(Qt[0]==" "){var Mn=t.cm.options.tabSize,Gn=Mn-t.col%Mn;yn=gt.appendChild(S("span",Ee(Gn),"cm-tab")),yn.setAttribute("role","presentation"),yn.setAttribute("cm-text"," "),t.col+=Gn}else Qt[0]=="\r"||Qt[0]==`
`?(yn=gt.appendChild(S("span",Qt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),yn.setAttribute("cm-text",Qt[0]),t.col+=1):(yn=t.cm.options.specialCharPlaceholder(Qt[0]),yn.setAttribute("cm-text",Qt[0]),w&&m<9?gt.appendChild(S("span",[yn])):gt.appendChild(yn),t.col+=1);t.map.push(t.pos,t.pos+1,yn),t.pos++}}if(t.trailingSpace=De.charCodeAt(y.length-1)==32,P||L||H||Qe||le||we){var ar=P||"";L&&(ar+=L),H&&(ar+=H);var Xn=S("span",[gt],ar,le);if(we)for(var pr in we)we.hasOwnProperty(pr)&&pr!="style"&&pr!="class"&&Xn.setAttribute(pr,we[pr]);return t.content.appendChild(Xn)}t.content.appendChild(gt)}function oi(t,y){if(t.length>1&&!/ /.test(t))return t;for(var P=y,L="",H=0;H<t.length;H++){var le=t.charAt(H);le==" "&&P&&(H==t.length-1||t.charCodeAt(H+1)==32)&&(le="\xA0"),L+=le,P=le==" "}return L}function fa(t,y){return function(P,L,H,le,we,De,Pe){H=H?H+" cm-force-border":"cm-force-border";for(var Qe=P.pos,gt=Qe+L.length;;){for(var wt=void 0,Qt=0;Qt<y.length&&!(wt=y[Qt],wt.to>Qe&&wt.from<=Qe);Qt++);if(wt.to>=gt)return t(P,L,H,le,we,De,Pe);t(P,L.slice(0,wt.to-Qe),H,le,null,De,Pe),le=null,L=L.slice(wt.to-Qe),Qe=wt.to}}}function Ha(t,y,P,L){var H=!L&&P.widgetNode;H&&t.map.push(t.pos,t.pos+y,H),!L&&t.cm.display.input.needsContentAttribute&&(H||(H=t.content.appendChild(document.createElement("span"))),H.setAttribute("cm-marker",P.id)),H&&(t.cm.display.input.setUneditable(H),t.content.appendChild(H)),t.pos+=y,t.trailingSpace=!1}function ni(t,y,P){var L=t.markedSpans,H=t.text,le=0;if(!L){for(var we=1;we<P.length;we+=2)y.addToken(y,H.slice(le,le=P[we]),gr(P[we+1],y.cm.options));return}for(var De=H.length,Pe=0,Qe=1,gt="",wt,Qt,Nt=0,on,yn,Mn,Gn,ar;;){if(Nt==Pe){on=yn=Mn=Qt="",ar=null,Gn=null,Nt=Infinity;for(var Xn=[],pr=void 0,Hr=0;Hr<L.length;++Hr){var Lr=L[Hr],mi=Lr.marker;if(mi.type=="bookmark"&&Lr.from==Pe&&mi.widgetNode)Xn.push(mi);else if(Lr.from<=Pe&&(Lr.to==null||Lr.to>Pe||mi.collapsed&&Lr.to==Pe&&Lr.from==Pe)){if(Lr.to!=null&&Lr.to!=Pe&&Nt>Lr.to&&(Nt=Lr.to,yn=""),mi.className&&(on+=" "+mi.className),mi.css&&(Qt=(Qt?Qt+";":"")+mi.css),mi.startStyle&&Lr.from==Pe&&(Mn+=" "+mi.startStyle),mi.endStyle&&Lr.to==Nt&&(pr||(pr=[])).push(mi.endStyle,Lr.to),mi.title&&((ar||(ar={})).title=mi.title),mi.attributes)for(var ca in mi.attributes)(ar||(ar={}))[ca]=mi.attributes[ca];mi.collapsed&&(!Gn||zr(Gn.marker,mi)<0)&&(Gn=Lr)}else Lr.from>Pe&&Nt>Lr.from&&(Nt=Lr.from)}if(pr)for(var so=0;so<pr.length;so+=2)pr[so+1]==Nt&&(yn+=" "+pr[so]);if(!Gn||Gn.from==Pe)for(var Ra=0;Ra<Xn.length;++Ra)Ha(y,0,Xn[Ra]);if(Gn&&(Gn.from||0)==Pe){if(Ha(y,(Gn.to==null?De+1:Gn.to)-Pe,Gn.marker,Gn.from==null),Gn.to==null)return;Gn.to==Pe&&(Gn=!1)}}if(Pe>=De)break;for(var Yo=Math.min(De,Nt);;){if(gt){var Co=Pe+gt.length;if(!Gn){var za=Co>Yo?gt.slice(0,Yo-Pe):gt;y.addToken(y,za,wt?wt+on:on,Mn,Pe+za.length==Nt?yn:"",Qt,ar)}if(Co>=Yo){gt=gt.slice(Yo-Pe),Pe=Yo;break}Pe=Co,Mn=""}gt=H.slice(le,le=P[Qe++]),wt=gr(P[Qe++],y.cm.options)}}}function zo(t,y,P){this.line=y,this.rest=Wo(y),this.size=this.rest?kr(ge(this.rest))-P+1:1,this.node=this.text=null,this.hidden=ha(t,y)}function pi(t,y,P){for(var L=[],H,le=y;le<P;le=H){var we=new zo(t.doc,Rn(t.doc,le),le);H=le+we.size,L.push(we)}return L}var Sa=null;function uo(t){Sa?Sa.ops.push(t):t.ownsGroup=Sa={ops:[t],delayedCallbacks:[]}}function Ga(t){var y=t.delayedCallbacks,P=0;do{for(;P<y.length;P++)y[P].call(null);for(var L=0;L<t.ops.length;L++){var H=t.ops[L];if(H.cursorActivityHandlers)for(;H.cursorActivityCalled<H.cursorActivityHandlers.length;)H.cursorActivityHandlers[H.cursorActivityCalled++].call(null,H.cm)}}while(P<y.length)}function gi(t,y){var P=t.ownsGroup;if(!P)return;try{Ga(P)}finally{Sa=null,y(P)}}var ai=null;function ui(t,y){var P=ht(t,y);if(!P.length)return;var L=Array.prototype.slice.call(arguments,2),H;Sa?H=Sa.delayedCallbacks:ai?H=ai:(H=ai=[],setTimeout(to,0));for(var le=function(De){H.push(function(){return P[De].apply(null,L)})},we=0;we<P.length;++we)le(we)}function to(){var t=ai;ai=null;for(var y=0;y<t.length;++y)t[y]()}function ls(t,y,P,L){for(var H=0;H<y.changes.length;H++){var le=y.changes[H];le=="text"?js(t,y):le=="gutter"?cs(t,y,P,L):le=="class"?Zs(t,y):le=="widget"&&dl(t,y,L)}y.changes=null}function us(t){return t.node==t.text&&(t.node=S("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),w&&m<8&&(t.node.style.zIndex=2)),t.node}function Is(t,y){var P=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(P&&(P+=" CodeMirror-linebackground"),y.background)P?y.background.className=P:(y.background.parentNode.removeChild(y.background),y.background=null);else if(P){var L=us(y);y.background=L.insertBefore(S("div",null,P),L.firstChild),t.display.input.setUneditable(y.background)}}function ws(t,y){var P=t.display.externalMeasured;return P&&P.line==y.line?(t.display.externalMeasured=null,y.measure=P.measure,P.built):Gr(t,y)}function js(t,y){var P=y.text.className,L=ws(t,y);y.text==y.node&&(y.node=L.pre),y.text.parentNode.replaceChild(L.pre,y.text),y.text=L.pre,L.bgClass!=y.bgClass||L.textClass!=y.textClass?(y.bgClass=L.bgClass,y.textClass=L.textClass,Zs(t,y)):P&&(y.text.className=P)}function Zs(t,y){Is(t,y),y.line.wrapClass?us(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var P=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=P||""}function cs(t,y,P,L){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var H=us(y);y.gutterBackground=S("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(t.options.fixedGutter?L.fixedPos:-L.gutterTotalWidth)+"px; width: "+L.gutterTotalWidth+"px"),t.display.input.setUneditable(y.gutterBackground),H.insertBefore(y.gutterBackground,y.text)}var le=y.line.gutterMarkers;if(t.options.lineNumbers||le){var we=us(y),De=y.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?L.fixedPos:-L.gutterTotalWidth)+"px");if(t.display.input.setUneditable(De),we.insertBefore(De,y.text),y.line.gutterClass&&(De.className+=" "+y.line.gutterClass),t.options.lineNumbers&&(!le||!le["CodeMirror-linenumbers"])&&(y.lineNumber=De.appendChild(S("div",Zi(t.options,P),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+L.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),le)for(var Pe=0;Pe<t.display.gutterSpecs.length;++Pe){var Qe=t.display.gutterSpecs[Pe].className,gt=le.hasOwnProperty(Qe)&&le[Qe];gt&&De.appendChild(S("div",[gt],"CodeMirror-gutter-elt","left: "+L.gutterLeft[Qe]+"px; width: "+L.gutterWidth[Qe]+"px"))}}}function dl(t,y,P){y.alignable&&(y.alignable=null);for(var L=E("CodeMirror-linewidget"),H=y.node.firstChild,le=void 0;H;H=le)le=H.nextSibling,L.test(H.className)&&y.node.removeChild(H);wo(t,y,P)}function $s(t,y,P,L){var H=ws(t,y);return y.text=y.node=H.pre,H.bgClass&&(y.bgClass=H.bgClass),H.textClass&&(y.textClass=H.textClass),Zs(t,y),cs(t,y,P,L),wo(t,y,L),y.node}function wo(t,y,P){if(ms(t,y.line,y,P,!0),y.rest)for(var L=0;L<y.rest.length;L++)ms(t,y.rest[L],y,P,!1)}function ms(t,y,P,L,H){if(!y.widgets)return;for(var le=us(P),we=0,De=y.widgets;we<De.length;++we){var Pe=De[we],Qe=S("div",[Pe.node],"CodeMirror-linewidget"+(Pe.className?" "+Pe.className:""));Pe.handleMouseEvents||Qe.setAttribute("cm-ignore-events","true"),Qi(Pe,Qe,P,L),t.display.input.setUneditable(Qe),H&&Pe.above?le.insertBefore(Qe,P.gutter||P.text):le.appendChild(Qe),ui(Pe,"redraw")}}function Qi(t,y,P,L){if(t.noHScroll){(P.alignable||(P.alignable=[])).push(y);var H=L.wrapperWidth;y.style.left=L.fixedPos+"px",t.coverGutter||(H-=L.gutterTotalWidth,y.style.paddingLeft=L.gutterTotalWidth+"px"),y.style.width=H+"px"}t.coverGutter&&(y.style.zIndex=5,y.style.position="relative",t.noHScroll||(y.style.marginLeft=-L.gutterTotalWidth+"px"))}function _s(t){if(t.height!=null)return t.height;var y=t.doc.cm;if(!y)return 0;if(!D(document.body,t.node)){var P="position: relative;";t.coverGutter&&(P+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),t.noHScroll&&(P+="width: "+y.display.wrapper.clientWidth+"px;"),u(y.display.measure,S("div",[t.node],null,P))}return t.height=t.node.parentNode.offsetHeight}function _o(t,y){for(var P=yt(y);P!=t.wrapper;P=P.parentNode)if(!P||P.nodeType==1&&P.getAttribute("cm-ignore-events")=="true"||P.parentNode==t.sizer&&P!=t.mover)return!0}function Hs(t){return t.lineSpace.offsetTop}function ut(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Ve(t){if(t.cachedPaddingH)return t.cachedPaddingH;var y=u(t.measure,S("pre","x","CodeMirror-line-like")),P=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,L={left:parseInt(P.paddingLeft),right:parseInt(P.paddingRight)};return!isNaN(L.left)&&!isNaN(L.right)&&(t.cachedPaddingH=L),L}function Ye(t){return J-t.display.nativeBarWidth}function Je(t){return t.display.scroller.clientWidth-Ye(t)-t.display.barWidth}function Be(t){return t.display.scroller.clientHeight-Ye(t)-t.display.barHeight}function Xe(t,y,P){var L=t.options.lineWrapping,H=L&&Je(t);if(!y.measure.heights||L&&y.measure.width!=H){var le=y.measure.heights=[];if(L){y.measure.width=H;for(var we=y.text.firstChild.getClientRects(),De=0;De<we.length-1;De++){var Pe=we[De],Qe=we[De+1];Math.abs(Pe.bottom-Qe.bottom)>2&&le.push((Pe.bottom+Qe.top)/2-P.top)}}le.push(P.bottom-P.top)}}function Oe(t,y,P){if(t.line==y)return{map:t.measure.map,cache:t.measure.cache};for(var L=0;L<t.rest.length;L++)if(t.rest[L]==y)return{map:t.measure.maps[L],cache:t.measure.caches[L]};for(var H=0;H<t.rest.length;H++)if(kr(t.rest[H])>P)return{map:t.measure.maps[H],cache:t.measure.caches[H],before:!0}}function at(t,y){y=va(y);var P=kr(y),L=t.display.externalMeasured=new zo(t.doc,y,P);L.lineN=P;var H=L.built=Gr(t,L);return L.text=H.pre,u(t.display.lineMeasure,H.pre),L}function tt(t,y,P,L){return dt(t,ot(t,y),P,L)}function st(t,y){if(y>=t.display.viewFrom&&y<t.display.viewTo)return t.display.view[rr(t,y)];var P=t.display.externalMeasured;if(P&&y>=P.lineN&&y<P.lineN+P.size)return P}function ot(t,y){var P=kr(y),L=st(t,P);L&&!L.text?L=null:L&&L.changes&&(ls(t,L,P,Fr(t)),t.curOp.forceUpdate=!0),L||(L=at(t,y));var H=Oe(L,y,P);return{line:y,view:L,rect:null,map:H.map,cache:H.cache,before:H.before,hasHeights:!1}}function dt(t,y,P,L,H){y.before&&(P=-1);var le=P+(L||""),we;return y.cache.hasOwnProperty(le)?we=y.cache[le]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Xe(t,y.view,y.rect),y.hasHeights=!0),we=tn(t,y,P,L),we.bogus||(y.cache[le]=we)),{left:we.left,right:we.right,top:H?we.rtop:we.top,bottom:H?we.rbottom:we.bottom}}var It={left:0,right:0,top:0,bottom:0};function Gt(t,y,P){for(var L,H,le,we,De,Pe,Qe=0;Qe<t.length;Qe+=3)if(De=t[Qe],Pe=t[Qe+1],y<De?(H=0,le=1,we="left"):y<Pe?(H=y-De,le=H+1):(Qe==t.length-3||y==Pe&&t[Qe+3]>y)&&(le=Pe-De,H=le-1,y>=Pe&&(we="right")),H!=null){if(L=t[Qe+2],De==Pe&&P==(L.insertLeft?"left":"right")&&(we=P),P=="left"&&H==0)for(;Qe&&t[Qe-2]==t[Qe-3]&&t[Qe-1].insertLeft;)L=t[(Qe-=3)+2],we="left";if(P=="right"&&H==Pe-De)for(;Qe<t.length-3&&t[Qe+3]==t[Qe+4]&&!t[Qe+5].insertLeft;)L=t[(Qe+=3)+2],we="right";break}return{node:L,start:H,end:le,collapse:we,coverStart:De,coverEnd:Pe}}function Dt(t,y){var P=It;if(y=="left")for(var L=0;L<t.length&&!((P=t[L]).left!=P.right);L++);else for(var H=t.length-1;H>=0&&!((P=t[H]).left!=P.right);H--);return P}function tn(t,y,P,L){var H=Gt(y.map,P,L),le=H.node,we=H.start,De=H.end,Pe=H.collapse,Qe;if(le.nodeType==3){for(var gt=0;gt<4;gt++){for(;we&&j(y.line.text.charAt(H.coverStart+we));)--we;for(;H.coverStart+De<H.coverEnd&&j(y.line.text.charAt(H.coverStart+De));)++De;if(w&&m<9&&we==0&&De==H.coverEnd-H.coverStart?Qe=le.parentNode.getBoundingClientRect():Qe=Dt(T(le,we,De).getClientRects(),L),Qe.left||Qe.right||we==0)break;De=we,we=we-1,Pe="right"}w&&m<11&&(Qe=cn(t.display.measure,Qe))}else{we>0&&(Pe=L="right");var wt;t.options.lineWrapping&&(wt=le.getClientRects()).length>1?Qe=wt[L=="right"?wt.length-1:0]:Qe=le.getBoundingClientRect()}if(w&&m<9&&!we&&(!Qe||!Qe.left&&!Qe.right)){var Qt=le.parentNode.getClientRects()[0];Qt?Qe={left:Qt.left,right:Qt.left+Qn(t.display),top:Qt.top,bottom:Qt.bottom}:Qe=It}for(var Nt=Qe.top-y.rect.top,on=Qe.bottom-y.rect.top,yn=(Nt+on)/2,Mn=y.view.measure.heights,Gn=0;Gn<Mn.length-1&&!(yn<Mn[Gn]);Gn++);var ar=Gn?Mn[Gn-1]:0,Xn=Mn[Gn],pr={left:(Pe=="right"?Qe.right:Qe.left)-y.rect.left,right:(Pe=="left"?Qe.left:Qe.right)-y.rect.left,top:ar,bottom:Xn};return!Qe.left&&!Qe.right&&(pr.bogus=!0),t.options.singleCursorHeightPerLine||(pr.rtop=Nt,pr.rbottom=on),pr}function cn(t,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!qe(t))return y;var P=screen.logicalXDPI/screen.deviceXDPI,L=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*P,right:y.right*P,top:y.top*L,bottom:y.bottom*L}}function Bn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var y=0;y<t.rest.length;y++)t.measure.caches[y]={}}function Yt(t){t.display.externalMeasure=null,h(t.display.lineMeasure);for(var y=0;y<t.display.view.length;y++)Bn(t.display.view[y])}function en(t){Yt(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function bn(){return n&&l?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Dn(){return n&&l?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function rn(t){var y=0;if(t.widgets)for(var P=0;P<t.widgets.length;++P)t.widgets[P].above&&(y+=_s(t.widgets[P]));return y}function En(t,y,P,L,H){if(!H){var le=rn(y);P.top+=le,P.bottom+=le}if(L=="line")return P;L||(L="local");var we=eo(y);if(L=="local"?we+=Hs(t.display):we-=t.display.viewOffset,L=="page"||L=="window"){var De=t.display.lineSpace.getBoundingClientRect();we+=De.top+(L=="window"?0:Dn());var Pe=De.left+(L=="window"?0:bn());P.left+=Pe,P.right+=Pe}return P.top+=we,P.bottom+=we,P}function Ln(t,y,P){if(P=="div")return y;var L=y.left,H=y.top;if(P=="page")L-=bn(),H-=Dn();else if(P=="local"||!P){var le=t.display.sizer.getBoundingClientRect();L+=le.left,H+=le.top}var we=t.display.lineSpace.getBoundingClientRect();return{left:L-we.left,top:H-we.top}}function Vn(t,y,P,L,H){return L||(L=Rn(t.doc,y.line)),En(t,L,tt(t,L,y.ch,H),P)}function an(t,y,P,L,H,le){L=L||Rn(t.doc,y.line),H||(H=ot(t,L));function we(on,yn){var Mn=dt(t,H,on,yn?"right":"left",le);return yn?Mn.left=Mn.right:Mn.right=Mn.left,En(t,L,Mn,P)}var De=_t(L,t.doc.direction),Pe=y.ch,Qe=y.sticky;if(Pe>=L.text.length?(Pe=L.text.length,Qe="before"):Pe<=0&&(Pe=0,Qe="after"),!De)return we(Qe=="before"?Pe-1:Pe,Qe=="before");function gt(on,yn,Mn){var Gn=De[yn],ar=Gn.level==1;return we(Mn?on-1:on,ar!=Mn)}var wt=Ie(De,Pe,Qe),Qt=ce,Nt=gt(Pe,wt,Qe=="before");return Qt!=null&&(Nt.other=gt(Pe,Qt,Qe!="before")),Nt}function fn(t,y){var P=0;y=z(t.doc,y),t.options.lineWrapping||(P=Qn(t.display)*y.ch);var L=Rn(t.doc,y.line),H=eo(L)+Hs(t.display);return{left:P,right:P,top:H,bottom:H+L.height}}function An(t,y,P,L,H){var le=Le(t,y,P);return le.xRel=H,L&&(le.outside=L),le}function wn(t,y,P){var L=t.doc;if(P+=t.display.viewOffset,P<0)return An(L.first,0,null,-1,-1);var H=hi(L,P),le=L.first+L.size-1;if(H>le)return An(L.first+L.size-1,Rn(L,le).text.length,null,1,1);y<0&&(y=0);for(var we=Rn(L,H);;){var De=Ir(t,we,H,y,P),Pe=ja(we,De.ch+(De.xRel>0||De.outside>0?1:0));if(!Pe)return De;var Qe=Pe.find(1);if(Qe.line==H)return Qe;we=Rn(L,H=Qe.line)}}function er(t,y,P,L){L-=rn(y);var H=y.text.length,le=he(function(we){return dt(t,P,we-1).bottom<=L},H,0);return H=he(function(we){return dt(t,P,we).top>L},le,H),{begin:le,end:H}}function dn(t,y,P,L){P||(P=ot(t,y));var H=En(t,y,dt(t,P,L),"line").top;return er(t,y,P,H)}function Fn(t,y,P,L){return t.bottom<=P?!1:t.top>P?!0:(L?t.left:t.right)>y}function Ir(t,y,P,L,H){H-=eo(y);var le=ot(t,y),we=rn(y),De=0,Pe=y.text.length,Qe=!0,gt=_t(y,t.doc.direction);if(gt){var wt=(t.options.lineWrapping?Br:dr)(t,y,P,le,gt,L,H);Qe=wt.level!=1,De=Qe?wt.from:wt.to-1,Pe=Qe?wt.to:wt.from-1}var Qt=null,Nt=null,on=he(function(Hr){var Lr=dt(t,le,Hr);return Lr.top+=we,Lr.bottom+=we,Fn(Lr,L,H,!1)?(Lr.top<=H&&Lr.left<=L&&(Qt=Hr,Nt=Lr),!0):!1},De,Pe),yn,Mn,Gn=!1;if(Nt){var ar=L-Nt.left<Nt.right-L,Xn=ar==Qe;on=Qt+(Xn?0:1),Mn=Xn?"after":"before",yn=ar?Nt.left:Nt.right}else{!Qe&&(on==Pe||on==De)&&on++,Mn=on==0?"after":on==y.text.length?"before":dt(t,le,on-(Qe?1:0)).bottom+we<=H==Qe?"after":"before";var pr=an(t,Le(P,on,Mn),"line",y,le);yn=pr.left,Gn=H<pr.top?-1:H>=pr.bottom?1:0}return on=W(y.text,on,1),An(P,on,Mn,Gn,L-yn)}function dr(t,y,P,L,H,le,we){var De=he(function(wt){var Qt=H[wt],Nt=Qt.level!=1;return Fn(an(t,Le(P,Nt?Qt.to:Qt.from,Nt?"before":"after"),"line",y,L),le,we,!0)},0,H.length-1),Pe=H[De];if(De>0){var Qe=Pe.level!=1,gt=an(t,Le(P,Qe?Pe.from:Pe.to,Qe?"after":"before"),"line",y,L);Fn(gt,le,we,!0)&&gt.top>we&&(Pe=H[De-1])}return Pe}function Br(t,y,P,L,H,le,we){var De=er(t,y,L,we),Pe=De.begin,Qe=De.end;/\s/.test(y.text.charAt(Qe-1))&&Qe--;for(var gt=null,wt=null,Qt=0;Qt<H.length;Qt++){var Nt=H[Qt];if(Nt.from>=Qe||Nt.to<=Pe)continue;var on=Nt.level!=1,yn=dt(t,L,on?Math.min(Qe,Nt.to)-1:Math.max(Pe,Nt.from)).right,Mn=yn<le?le-yn+1e9:yn-le;(!gt||wt>Mn)&&(gt=Nt,wt=Mn)}return gt||(gt=H[H.length-1]),gt.from<Pe&&(gt={from:Pe,to:gt.to,level:gt.level}),gt.to>Qe&&(gt={from:gt.from,to:Qe,level:gt.level}),gt}var sr;function Nr(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(sr==null){sr=S("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)sr.appendChild(document.createTextNode("x")),sr.appendChild(S("br"));sr.appendChild(document.createTextNode("x"))}u(t.measure,sr);var P=sr.offsetHeight/50;return P>3&&(t.cachedTextHeight=P),h(t.measure),P||1}function Qn(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var y=S("span","xxxxxxxxxx"),P=S("pre",[y],"CodeMirror-line-like");u(t.measure,P);var L=y.getBoundingClientRect(),H=(L.right-L.left)/10;return H>2&&(t.cachedCharWidth=H),H||10}function Fr(t){for(var y=t.display,P={},L={},H=y.gutters.clientLeft,le=y.gutters.firstChild,we=0;le;le=le.nextSibling,++we){var De=t.display.gutterSpecs[we].className;P[De]=le.offsetLeft+le.clientLeft+H,L[De]=le.clientWidth}return{fixedPos:ei(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:P,gutterWidth:L,wrapperWidth:y.wrapper.clientWidth}}function ei(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Kr(t){var y=Nr(t.display),P=t.options.lineWrapping,L=P&&Math.max(5,t.display.scroller.clientWidth/Qn(t.display)-3);return function(H){if(ha(t.doc,H))return 0;var le=0;if(H.widgets)for(var we=0;we<H.widgets.length;we++)H.widgets[we].height&&(le+=H.widgets[we].height);return P?le+(Math.ceil(H.text.length/L)||1)*y:le+y}}function yr(t){var y=t.doc,P=Kr(t);y.iter(function(L){var H=P(L);H!=L.height&&li(L,H)})}function On(t,y,P,L){var H=t.display;if(!P&&yt(y).getAttribute("cm-not-content")=="true")return null;var le,we,De=H.lineSpace.getBoundingClientRect();try{le=y.clientX-De.left,we=y.clientY-De.top}catch(wt){return null}var Pe=wn(t,le,we),Qe;if(L&&Pe.xRel>0&&(Qe=Rn(t.doc,Pe.line).text).length==Pe.ch){var gt=V(Qe,Qe.length,t.options.tabSize)-Qe.length;Pe=Le(Pe.line,Math.max(0,Math.round((le-Ve(t.display).left)/Qn(t.display))-gt))}return Pe}function rr(t,y){if(y>=t.display.viewTo)return null;if(y-=t.display.viewFrom,y<0)return null;for(var P=t.display.view,L=0;L<P.length;L++)if(y-=P[L].size,y<0)return L}function Pr(t,y,P,L){y==null&&(y=t.doc.first),P==null&&(P=t.doc.first+t.doc.size),L||(L=0);var H=t.display;if(L&&P<H.viewTo&&(H.updateLineNumbers==null||H.updateLineNumbers>y)&&(H.updateLineNumbers=y),t.curOp.viewChanged=!0,y>=H.viewTo)vi&&Ci(t.doc,y)<H.viewTo&&$n(t);else if(P<=H.viewFrom)vi&&Ro(t.doc,P+L)>H.viewFrom?$n(t):(H.viewFrom+=L,H.viewTo+=L);else if(y<=H.viewFrom&&P>=H.viewTo)$n(t);else if(y<=H.viewFrom){var le=ir(t,P,P+L,1);le?(H.view=H.view.slice(le.index),H.viewFrom=le.lineN,H.viewTo+=L):$n(t)}else if(P>=H.viewTo){var we=ir(t,y,y,-1);we?(H.view=H.view.slice(0,we.index),H.viewTo=we.lineN):$n(t)}else{var De=ir(t,y,y,-1),Pe=ir(t,P,P+L,1);De&&Pe?(H.view=H.view.slice(0,De.index).concat(pi(t,De.lineN,Pe.lineN)).concat(H.view.slice(Pe.index)),H.viewTo+=L):$n(t)}var Qe=H.externalMeasured;Qe&&(P<Qe.lineN?Qe.lineN+=L:y<Qe.lineN+Qe.size&&(H.externalMeasured=null))}function jn(t,y,P){t.curOp.viewChanged=!0;var L=t.display,H=t.display.externalMeasured;if(H&&y>=H.lineN&&y<H.lineN+H.size&&(L.externalMeasured=null),y<L.viewFrom||y>=L.viewTo)return;var le=L.view[rr(t,y)];if(le.node==null)return;var we=le.changes||(le.changes=[]);Q(we,P)==-1&&we.push(P)}function $n(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function ir(t,y,P,L){var H=rr(t,y),le,we=t.display.view;if(!vi||P==t.doc.first+t.doc.size)return{index:H,lineN:P};for(var De=t.display.viewFrom,Pe=0;Pe<H;Pe++)De+=we[Pe].size;if(De!=y){if(L>0){if(H==we.length-1)return null;le=De+we[H].size-y,H++}else le=De-y;y+=le,P+=le}for(;Ci(t.doc,P)!=P;){if(H==(L<0?0:we.length-1))return null;P+=L*we[H-(L<0?1:0)].size,H+=L}return{index:H,lineN:P}}function Jn(t,y,P){var L=t.display,H=L.view;H.length==0||y>=L.viewTo||P<=L.viewFrom?(L.view=pi(t,y,P),L.viewFrom=y):(L.viewFrom>y?L.view=pi(t,y,L.viewFrom).concat(L.view):L.viewFrom<y&&(L.view=L.view.slice(rr(t,y))),L.viewFrom=y,L.viewTo<P?L.view=L.view.concat(pi(t,L.viewTo,P)):L.viewTo>P&&(L.view=L.view.slice(0,rr(t,P)))),L.viewTo=P}function Wn(t){for(var y=t.display.view,P=0,L=0;L<y.length;L++){var H=y[L];!H.hidden&&(!H.node||H.changes)&&++P}return P}function pn(t){t.display.input.showSelection(t.display.input.prepareSelection())}function sn(t,y){y===void 0&&(y=!0);for(var P=t.doc,L={},H=L.cursors=document.createDocumentFragment(),le=L.selection=document.createDocumentFragment(),we=0;we<P.sel.ranges.length;we++){if(!y&&we==P.sel.primIndex)continue;var De=P.sel.ranges[we];if(De.from().line>=t.display.viewTo||De.to().line<t.display.viewFrom)continue;var Pe=De.empty();(Pe||t.options.showCursorWhenSelecting)&&zn(t,De.head,H),Pe||_n(t,De,le)}return L}function zn(t,y,P){var L=an(t,y,"div",null,null,!t.options.singleCursorHeightPerLine),H=P.appendChild(S("div","\xA0","CodeMirror-cursor"));if(H.style.left=L.left+"px",H.style.top=L.top+"px",H.style.height=Math.max(0,L.bottom-L.top)*t.options.cursorHeight+"px",L.other){var le=P.appendChild(S("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));le.style.display="",le.style.left=L.other.left+"px",le.style.top=L.other.top+"px",le.style.height=(L.other.bottom-L.other.top)*.85+"px"}}function Yn(t,y){return t.top-y.top||t.left-y.left}function _n(t,y,P){var L=t.display,H=t.doc,le=document.createDocumentFragment(),we=Ve(t.display),De=we.left,Pe=Math.max(L.sizerWidth,Je(t)-L.sizer.offsetLeft)-we.right,Qe=H.direction=="ltr";function gt(Xn,pr,Hr,Lr){pr<0&&(pr=0),pr=Math.round(pr),Lr=Math.round(Lr),le.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+Xn+`px;
top: `+pr+"px; width: "+(Hr==null?Pe-Xn:Hr)+`px;
height: `+(Lr-pr)+"px"))}function wt(Xn,pr,Hr){var Lr=Rn(H,Xn),mi=Lr.text.length,ca,so;function Ra(za,xo){return Vn(t,Le(Xn,za),"div",Lr,xo)}function Yo(za,xo,mo){var Hn=dn(t,Lr,null,za),xa=xo=="ltr"==(mo=="after")?"left":"right",wa=mo=="after"?Hn.begin:Hn.end-(/\s/.test(Lr.text.charAt(Hn.end-1))?2:1);return Ra(wa,xa)[xa]}var Co=_t(Lr,H.direction);return te(Co,pr||0,Hr==null?mi:Hr,function(za,xo,mo,Hn){var xa=mo=="ltr",wa=Ra(za,xa?"left":"right"),_a=Ra(xo-1,xa?"right":"left"),ml=pr==null&&za==0,Bi=Hr==null&&xo==mi,yi=Hn==0,is=!Co||Hn==Co.length-1;if(_a.top-wa.top<=3){var lo=(Qe?ml:Bi)&&yi,vl=(Qe?Bi:ml)&&is,Ns=lo?De:(xa?wa:_a).left,Ds=vl?Pe:(xa?_a:wa).right;gt(Ns,wa.top,Ds-Ns,wa.bottom)}else{var sl,Oo,ll,Au;xa?(sl=Qe&&ml&&yi?De:wa.left,Oo=Qe?Pe:Yo(za,mo,"before"),ll=Qe?De:Yo(xo,mo,"after"),Au=Qe&&Bi&&is?Pe:_a.right):(sl=Qe?Yo(za,mo,"before"):De,Oo=!Qe&&ml&&yi?Pe:wa.right,ll=!Qe&&Bi&&is?De:_a.left,Au=Qe?Yo(xo,mo,"after"):Pe),gt(sl,wa.top,Oo-sl,wa.bottom),wa.bottom<_a.top&&gt(De,wa.bottom,null,_a.top),gt(ll,_a.top,Au-ll,_a.bottom)}(!ca||Yn(wa,ca)<0)&&(ca=wa),Yn(_a,ca)<0&&(ca=_a),(!so||Yn(wa,so)<0)&&(so=wa),Yn(_a,so)<0&&(so=_a)}),{start:ca,end:so}}var Qt=y.from(),Nt=y.to();if(Qt.line==Nt.line)wt(Qt.line,Qt.ch,Nt.ch);else{var on=Rn(H,Qt.line),yn=Rn(H,Nt.line),Mn=va(on)==va(yn),Gn=wt(Qt.line,Qt.ch,Mn?on.text.length+1:null).end,ar=wt(Nt.line,Mn?0:null,Nt.ch).start;Mn&&(Gn.top<ar.top-2?(gt(Gn.right,Gn.top,null,Gn.bottom),gt(De,ar.top,ar.left,ar.bottom)):gt(Gn.right,Gn.top,ar.left-Gn.right,Gn.bottom)),Gn.bottom<ar.top&&gt(De,Gn.bottom,null,ar.top)}P.appendChild(le)}function mr(t){if(!t.state.focused)return;var y=t.display;clearInterval(y.blinker);var P=!0;y.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?y.blinker=setInterval(function(){t.hasFocus()||ri(t),y.cursorDiv.style.visibility=(P=!P)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}function Qr(t){t.state.focused||(t.display.input.focus(),Ri(t))}function Vi(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,ri(t))},100)}function Ri(t,y){if(t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),t.options.readOnly=="nocursor")return;t.state.focused||(ct(t,"focus",t,y),t.state.focused=!0,k(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),d&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),mr(t)}function ri(t,y){if(t.state.delayingBlurEvent)return;t.state.focused&&(ct(t,"blur",t,y),t.state.focused=!1,g(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150)}function ga(t){for(var y=t.display,P=y.lineDiv.offsetTop,L=0;L<y.view.length;L++){var H=y.view[L],le=t.options.lineWrapping,we=void 0,De=0;if(H.hidden)continue;if(w&&m<8){var Pe=H.node.offsetTop+H.node.offsetHeight;we=Pe-P,P=Pe}else{var Qe=H.node.getBoundingClientRect();we=Qe.bottom-Qe.top,!le&&H.text.firstChild&&(De=H.text.firstChild.getBoundingClientRect().right-Qe.left-1)}var gt=H.line.height-we;if((gt>.005||gt<-.005)&&(li(H.line,we),na(H.line),H.rest))for(var wt=0;wt<H.rest.length;wt++)na(H.rest[wt]);if(De>t.display.sizerWidth){var Qt=Math.ceil(De/Qn(t.display));Qt>t.display.maxLineLength&&(t.display.maxLineLength=Qt,t.display.maxLine=H.line,t.display.maxLineChanged=!0)}}}function na(t){if(t.widgets)for(var y=0;y<t.widgets.length;++y){var P=t.widgets[y],L=P.node.parentNode;L&&(P.height=L.offsetHeight)}}function Ki(t,y,P){var L=P&&P.top!=null?Math.max(0,P.top):t.scroller.scrollTop;L=Math.floor(L-Hs(t));var H=P&&P.bottom!=null?P.bottom:L+t.wrapper.clientHeight,le=hi(y,L),we=hi(y,H);if(P&&P.ensure){var De=P.ensure.from.line,Pe=P.ensure.to.line;De<le?(le=De,we=hi(y,eo(Rn(y,De))+t.wrapper.clientHeight)):Math.min(Pe,y.lastLine())>=we&&(le=hi(y,eo(Rn(y,Pe))-t.wrapper.clientHeight),we=Pe)}return{from:le,to:Math.max(we,le+1)}}function no(t,y){if(lt(t,"scrollCursorIntoView"))return;var P=t.display,L=P.sizer.getBoundingClientRect(),H=null;if(y.top+L.top<0?H=!0:y.bottom+L.top>(window.innerHeight||document.documentElement.clientHeight)&&(H=!1),H!=null&&!o){var le=S("div","\u200B",null,`position: absolute;
top: `+(y.top-P.viewOffset-Hs(t.display))+`px;
height: `+(y.bottom-y.top+Ye(t)+P.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");t.display.lineSpace.appendChild(le),le.scrollIntoView(H),t.display.lineSpace.removeChild(le)}}function ro(t,y,P,L){L==null&&(L=0);var H;!t.options.lineWrapping&&y==P&&(y=y.ch?Le(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,P=y.sticky=="before"?Le(y.line,y.ch+1,"before"):y);for(var le=0;le<5;le++){var we=!1,De=an(t,y),Pe=!P||P==y?De:an(t,P);H={left:Math.min(De.left,Pe.left),top:Math.min(De.top,Pe.top)-L,right:Math.max(De.left,Pe.left),bottom:Math.max(De.bottom,Pe.bottom)+L};var Qe=Io(t,H),gt=t.doc.scrollTop,wt=t.doc.scrollLeft;if(Qe.scrollTop!=null&&(ho(t,Qe.scrollTop),Math.abs(t.doc.scrollTop-gt)>1&&(we=!0)),Qe.scrollLeft!=null&&(Ma(t,Qe.scrollLeft),Math.abs(t.doc.scrollLeft-wt)>1&&(we=!0)),!we)break}return H}function Da(t,y){var P=Io(t,y);P.scrollTop!=null&&ho(t,P.scrollTop),P.scrollLeft!=null&&Ma(t,P.scrollLeft)}function Io(t,y){var P=t.display,L=Nr(t.display);y.top<0&&(y.top=0);var H=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:P.scroller.scrollTop,le=Be(t),we={};y.bottom-y.top>le&&(y.bottom=y.top+le);var De=t.doc.height+ut(P),Pe=y.top<L,Qe=y.bottom>De-L;if(y.top<H)we.scrollTop=Pe?0:y.top;else if(y.bottom>H+le){var gt=Math.min(y.top,(Qe?De:y.bottom)-le);gt!=H&&(we.scrollTop=gt)}var wt=t.options.fixedGutter?0:P.gutters.offsetWidth,Qt=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:P.scroller.scrollLeft-wt,Nt=Je(t)-P.gutters.offsetWidth,on=y.right-y.left>Nt;return on&&(y.right=y.left+Nt),y.left<10?we.scrollLeft=0:y.left<Qt?we.scrollLeft=Math.max(0,y.left+wt-(on?0:10)):y.right>Nt+Qt-3&&(we.scrollLeft=y.right+(on?0:10)-Nt),we}function Mo(t,y){if(y==null)return;So(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+y}function io(t){So(t);var y=t.getCursor();t.curOp.scrollToPos={from:y,to:y,margin:t.options.cursorScrollMargin}}function Ia(t,y,P){(y!=null||P!=null)&&So(t),y!=null&&(t.curOp.scrollLeft=y),P!=null&&(t.curOp.scrollTop=P)}function ka(t,y){So(t),t.curOp.scrollToPos=y}function So(t){var y=t.curOp.scrollToPos;if(y){t.curOp.scrollToPos=null;var P=fn(t,y.from),L=fn(t,y.to);co(t,P,L,y.margin)}}function co(t,y,P,L){var H=Io(t,{left:Math.min(y.left,P.left),top:Math.min(y.top,P.top)-L,right:Math.max(y.right,P.right),bottom:Math.max(y.bottom,P.bottom)+L});Ia(t,H.scrollLeft,H.scrollTop)}function ho(t,y){if(Math.abs(t.doc.scrollTop-y)<2)return;M||Ja(t,{top:y}),Qa(t,y,!0),M&&Ja(t),Ya(t,100)}function Qa(t,y,P){if(y=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,y)),t.display.scroller.scrollTop==y&&!P)return;t.doc.scrollTop=y,t.display.scrollbars.setScrollTop(y),t.display.scroller.scrollTop!=y&&(t.display.scroller.scrollTop=y)}function Ma(t,y,P,L){if(y=Math.max(0,Math.min(y,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(P?y==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-y)<2)&&!L)return;t.doc.scrollLeft=y,Ur(t),t.display.scroller.scrollLeft!=y&&(t.display.scroller.scrollLeft=y),t.display.scrollbars.setScrollLeft(y)}function Va(t){var y=t.display,P=y.gutters.offsetWidth,L=Math.round(t.doc.height+ut(t.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:t.options.fixedGutter?P:0,docHeight:L,scrollHeight:L+Ye(t)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:P}}var Ka=function(t,y,P){this.cm=P;var L=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),H=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");L.tabIndex=H.tabIndex=-1,t(L),t(H),Ke(L,"scroll",function(){L.clientHeight&&y(L.scrollTop,"vertical")}),Ke(H,"scroll",function(){H.clientWidth&&y(H.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,w&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ka.prototype.update=function(t){var y=t.scrollWidth>t.clientWidth+1,P=t.scrollHeight>t.clientHeight+1,L=t.nativeBarWidth;if(P){this.vert.style.display="block",this.vert.style.bottom=y?L+"px":"0";var H=t.viewHeight-(y?L:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+H)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=P?L+"px":"0",this.horiz.style.left=t.barLeft+"px";var le=t.viewWidth-t.barLeft-(P?L:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+le)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(L==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:P?L:0,bottom:y?L:0}},Ka.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ka.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ka.prototype.zeroWidthHack=function(){var t=c&&!s?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new N,this.disableVert=new N},Ka.prototype.enableZeroWidthBar=function(t,y,P){t.style.pointerEvents="auto";function L(){var H=t.getBoundingClientRect(),le=P=="vert"?document.elementFromPoint(H.right-1,(H.top+H.bottom)/2):document.elementFromPoint((H.right+H.left)/2,H.bottom-1);le!=t?t.style.pointerEvents="none":y.set(1e3,L)}y.set(1e3,L)},Ka.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var go=function(){};go.prototype.update=function(){return{bottom:0,right:0}},go.prototype.setScrollLeft=function(){},go.prototype.setScrollTop=function(){},go.prototype.clear=function(){};function Fa(t,y){y||(y=Va(t));var P=t.display.barWidth,L=t.display.barHeight;yo(t,y);for(var H=0;H<4&&P!=t.display.barWidth||L!=t.display.barHeight;H++)P!=t.display.barWidth&&t.options.lineWrapping&&ga(t),yo(t,Va(t)),P=t.display.barWidth,L=t.display.barHeight}function yo(t,y){var P=t.display,L=P.scrollbars.update(y);P.sizer.style.paddingRight=(P.barWidth=L.right)+"px",P.sizer.style.paddingBottom=(P.barHeight=L.bottom)+"px",P.heightForcer.style.borderBottom=L.bottom+"px solid transparent",L.right&&L.bottom?(P.scrollbarFiller.style.display="block",P.scrollbarFiller.style.height=L.bottom+"px",P.scrollbarFiller.style.width=L.right+"px"):P.scrollbarFiller.style.display="",L.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(P.gutterFiller.style.display="block",P.gutterFiller.style.height=L.bottom+"px",P.gutterFiller.style.width=y.gutterWidth+"px"):P.gutterFiller.style.display=""}var Xi={native:Ka,null:go};function ao(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&g(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Xi[t.options.scrollbarStyle](function(y){t.display.wrapper.insertBefore(y,t.display.scrollbarFiller),Ke(y,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,P){P=="horizontal"?Ma(t,y):ho(t,y)},t),t.display.scrollbars.addClass&&k(t.display.wrapper,t.display.scrollbars.addClass)}var Lo=0;function Wa(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.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:++Lo},uo(t.curOp)}function Ta(t){var y=t.curOp;y&&gi(y,function(P){for(var L=0;L<P.ops.length;L++)P.ops[L].cm.curOp=null;fo(P)})}function fo(t){for(var y=t.ops,P=0;P<y.length;P++)$o(y[P]);for(var L=0;L<y.length;L++)qo(y[L]);for(var H=0;H<y.length;H++)Go(y[H]);for(var le=0;le<y.length;le++)Xa(y[le]);for(var we=0;we<y.length;we++)es(y[we])}function $o(t){var y=t.cm,P=y.display;Vo(y),t.updateMaxLine&&Jo(y),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<P.viewFrom||t.scrollToPos.to.line>=P.viewTo)||P.maxLineChanged&&y.options.lineWrapping,t.update=t.mustUpdate&&new La(y,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function qo(t){t.updatedDisplay=t.mustUpdate&&Ba(t.cm,t.update)}function Go(t){var y=t.cm,P=y.display;t.updatedDisplay&&ga(y),t.barMeasure=Va(y),P.maxLineChanged&&!y.options.lineWrapping&&(t.adjustWidthTo=tt(y,P.maxLine,P.maxLine.text.length).left+3,y.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(P.scroller.clientWidth,P.sizer.offsetLeft+t.adjustWidthTo+Ye(y)+y.display.barWidth),t.maxScrollLeft=Math.max(0,P.sizer.offsetLeft+t.adjustWidthTo-Je(y))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=P.input.prepareSelection())}function Xa(t){var y=t.cm;t.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<y.doc.scrollLeft&&Ma(y,Math.min(y.display.scroller.scrollLeft,t.maxScrollLeft),!0),y.display.maxLineChanged=!1);var P=t.focus&&t.focus==I();t.preparedSelection&&y.display.input.showSelection(t.preparedSelection,P),(t.updatedDisplay||t.startHeight!=y.doc.height)&&Fa(y,t.barMeasure),t.updatedDisplay&&ci(y,t.barMeasure),t.selectionChanged&&mr(y),y.state.focused&&t.updateInput&&y.display.input.reset(t.typing),P&&Qr(t.cm)}function es(t){var y=t.cm,P=y.display,L=y.doc;if(t.updatedDisplay&&In(y,t.update),P.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(P.wheelStartX=P.wheelStartY=null),t.scrollTop!=null&&Qa(y,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&Ma(y,t.scrollLeft,!0,!0),t.scrollToPos){var H=ro(y,z(L,t.scrollToPos.from),z(L,t.scrollToPos.to),t.scrollToPos.margin);no(y,H)}var le=t.maybeHiddenMarkers,we=t.maybeUnhiddenMarkers;if(le)for(var De=0;De<le.length;++De)le[De].lines.length||ct(le[De],"hide");if(we)for(var Pe=0;Pe<we.length;++Pe)we[Pe].lines.length&&ct(we[Pe],"unhide");P.wrapper.offsetHeight&&(L.scrollTop=y.display.scroller.scrollTop),t.changeObjs&&ct(y,"changes",y,t.changeObjs),t.update&&t.update.finish()}function ya(t,y){if(t.curOp)return y();Wa(t);try{return y()}finally{Ta(t)}}function ki(t,y){return function(){if(t.curOp)return y.apply(t,arguments);Wa(t);try{return y.apply(t,arguments)}finally{Ta(t)}}}function la(t){return function(){if(this.curOp)return t.apply(this,arguments);Wa(this);try{return t.apply(this,arguments)}finally{Ta(this)}}}function ji(t){return function(){var y=this.cm;if(!y||y.curOp)return t.apply(this,arguments);Wa(y);try{return t.apply(this,arguments)}finally{Ta(y)}}}function Ya(t,y){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(y,U(bo,t))}function bo(t){var y=t.doc;if(y.highlightFrontier>=t.display.viewTo)return;var P=+new Date+t.options.workTime,L=ln(t,y.highlightFrontier),H=[];y.iter(L.line,Math.min(y.first+y.size,t.display.viewTo+500),function(le){if(L.line>=t.display.viewFrom){var we=le.styles,De=le.text.length>t.options.maxHighlightLength?gn(y.mode,L.state):null,Pe=ft(t,le,L,!0);De&&(L.state=De),le.styles=Pe.styles;var Qe=le.styleClasses,gt=Pe.classes;gt?le.styleClasses=gt:Qe&&(le.styleClasses=null);for(var wt=!we||we.length!=le.styles.length||Qe!=gt&&(!Qe||!gt||Qe.bgClass!=gt.bgClass||Qe.textClass!=gt.textClass),Qt=0;!wt&&Qt<we.length;++Qt)wt=we[Qt]!=le.styles[Qt];wt&&H.push(L.line),le.stateAfter=L.save(),L.nextLine()}else le.text.length<=t.options.maxHighlightLength&&mn(t,le.text,L),le.stateAfter=L.line%5==0?L.save():null,L.nextLine();if(+new Date>P)return Ya(t,t.options.workDelay),!0}),y.highlightFrontier=L.line,y.modeFrontier=Math.max(y.modeFrontier,L.line),H.length&&ya(t,function(){for(var le=0;le<H.length;le++)jn(t,H[le],"text")})}var La=function(t,y,P){var L=t.display;this.viewport=y,this.visible=Ki(L,t.doc,y),this.editorIsHidden=!L.wrapper.offsetWidth,this.wrapperHeight=L.wrapper.clientHeight,this.wrapperWidth=L.wrapper.clientWidth,this.oldDisplayWidth=Je(t),this.force=P,this.dims=Fr(t),this.events=[]};La.prototype.signal=function(t,y){Ze(t,y)&&this.events.push(arguments)},La.prototype.finish=function(){for(var t=0;t<this.events.length;t++)ct.apply(null,this.events[t])};function Vo(t){var y=t.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=Ye(t)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Ye(t)+"px",y.scrollbarsClipped=!0)}function Po(t){if(t.hasFocus())return null;var y=I();if(!y||!D(t.display.lineDiv,y))return null;var P={activeElt:y};if(window.getSelection){var L=window.getSelection();L.anchorNode&&L.extend&&D(t.display.lineDiv,L.anchorNode)&&(P.anchorNode=L.anchorNode,P.anchorOffset=L.anchorOffset,P.focusNode=L.focusNode,P.focusOffset=L.focusOffset)}return P}function Xo(t){if(!t||!t.activeElt||t.activeElt==I())return;if(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&D(document.body,t.anchorNode)&&D(document.body,t.focusNode)){var y=window.getSelection(),P=document.createRange();P.setEnd(t.anchorNode,t.anchorOffset),P.collapse(!1),y.removeAllRanges(),y.addRange(P),y.extend(t.focusNode,t.focusOffset)}}function Ba(t,y){var P=t.display,L=t.doc;if(y.editorIsHidden)return $n(t),!1;if(!y.force&&y.visible.from>=P.viewFrom&&y.visible.to<=P.viewTo&&(P.updateLineNumbers==null||P.updateLineNumbers>=P.viewTo)&&P.renderedView==P.view&&Wn(t)==0)return!1;ua(t)&&($n(t),y.dims=Fr(t));var H=L.first+L.size,le=Math.max(y.visible.from-t.options.viewportMargin,L.first),we=Math.min(H,y.visible.to+t.options.viewportMargin);P.viewFrom<le&&le-P.viewFrom<20&&(le=Math.max(L.first,P.viewFrom)),P.viewTo>we&&P.viewTo-we<20&&(we=Math.min(H,P.viewTo)),vi&&(le=Ci(t.doc,le),we=Ro(t.doc,we));var De=le!=P.viewFrom||we!=P.viewTo||P.lastWrapHeight!=y.wrapperHeight||P.lastWrapWidth!=y.wrapperWidth;Jn(t,le,we),P.viewOffset=eo(Rn(t.doc,P.viewFrom)),t.display.mover.style.top=P.viewOffset+"px";var Pe=Wn(t);if(!De&&Pe==0&&!y.force&&P.renderedView==P.view&&(P.updateLineNumbers==null||P.updateLineNumbers>=P.viewTo))return!1;var Qe=Po(t);return Pe>4&&(P.lineDiv.style.display="none"),vs(t,P.updateLineNumbers,y.dims),Pe>4&&(P.lineDiv.style.display=""),P.renderedView=P.view,Xo(Qe),h(P.cursorDiv),h(P.selectionDiv),P.gutters.style.height=P.sizer.style.minHeight=0,De&&(P.lastWrapHeight=y.wrapperHeight,P.lastWrapWidth=y.wrapperWidth,Ya(t,400)),P.updateLineNumbers=null,!0}function In(t,y){for(var P=y.viewport,L=!0;;L=!1){if(!L||!t.options.lineWrapping||y.oldDisplayWidth==Je(t)){if(P&&P.top!=null&&(P={top:Math.min(t.doc.height+ut(t.display)-Be(t),P.top)}),y.visible=Ki(t.display,t.doc,P),y.visible.from>=t.display.viewFrom&&y.visible.to<=t.display.viewTo)break}else L&&(y.visible=Ki(t.display,t.doc,P));if(!Ba(t,y))break;ga(t);var H=Va(t);pn(t),Fa(t,H),ci(t,H),y.force=!1}y.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(y.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Ja(t,y){var P=new La(t,y);if(Ba(t,P)){ga(t),In(t,P);var L=Va(t);pn(t),Fa(t,L),ci(t,L),P.finish()}}function vs(t,y,P){var L=t.display,H=t.options.lineNumbers,le=L.lineDiv,we=le.firstChild;function De(on){var yn=on.nextSibling;return d&&c&&t.display.currentWheelTarget==on?on.style.display="none":on.parentNode.removeChild(on),yn}for(var Pe=L.view,Qe=L.viewFrom,gt=0;gt<Pe.length;gt++){var wt=Pe[gt];if(!wt.hidden)if(!wt.node||wt.node.parentNode!=le){var Qt=$s(t,wt,Qe,P);le.insertBefore(Qt,we)}else{for(;we!=wt.node;)we=De(we);var Nt=H&&y!=null&&y<=Qe&&wt.lineNumber;wt.changes&&(Q(wt.changes,"gutter")>-1&&(Nt=!1),ls(t,wt,Qe,P)),Nt&&(h(wt.lineNumber),wt.lineNumber.appendChild(document.createTextNode(Zi(t.options,Qe)))),we=wt.node.nextSibling}Qe+=wt.size}for(;we;)we=De(we)}function ts(t){var y=t.gutters.offsetWidth;t.sizer.style.marginLeft=y+"px"}function ci(t,y){t.display.sizer.style.minHeight=y.docHeight+"px",t.display.heightForcer.style.top=y.docHeight+"px",t.display.gutters.style.height=y.docHeight+t.display.barHeight+Ye(t)+"px"}function Ur(t){var y=t.display,P=y.view;if(!y.alignWidgets&&(!y.gutters.firstChild||!t.options.fixedGutter))return;for(var L=ei(y)-y.scroller.scrollLeft+t.doc.scrollLeft,H=y.gutters.offsetWidth,le=L+"px",we=0;we<P.length;we++)if(!P[we].hidden){t.options.fixedGutter&&(P[we].gutter&&(P[we].gutter.style.left=le),P[we].gutterBackground&&(P[we].gutterBackground.style.left=le));var De=P[we].alignable;if(De)for(var Pe=0;Pe<De.length;Pe++)De[Pe].style.left=le}t.options.fixedGutter&&(y.gutters.style.left=L+H+"px")}function ua(t){if(!t.options.lineNumbers)return!1;var y=t.doc,P=Zi(t.options,y.first+y.size-1),L=t.display;if(P.length!=L.lineNumChars){var H=L.measure.appendChild(S("div",[S("div",P)],"CodeMirror-linenumber CodeMirror-gutter-elt")),le=H.firstChild.offsetWidth,we=H.offsetWidth-le;return L.lineGutter.style.width="",L.lineNumInnerWidth=Math.max(le,L.lineGutter.offsetWidth-we)+1,L.lineNumWidth=L.lineNumInnerWidth+we,L.lineNumChars=L.lineNumInnerWidth?P.length:-1,L.lineGutter.style.width=L.lineNumWidth+"px",ts(t.display),!0}return!1}function xi(t,y){for(var P=[],L=!1,H=0;H<t.length;H++){var le=t[H],we=null;if(typeof le!="string"&&(we=le.style,le=le.className),le=="CodeMirror-linenumbers")if(y)L=!0;else continue;P.push({className:le,style:we})}return y&&!L&&P.push({className:"CodeMirror-linenumbers",style:null}),P}function To(t){var y=t.gutters,P=t.gutterSpecs;h(y),t.lineGutter=null;for(var L=0;L<P.length;++L){var H=P[L],le=H.className,we=H.style,De=y.appendChild(S("div",null,"CodeMirror-gutter "+le));we&&(De.style.cssText=we),le=="CodeMirror-linenumbers"&&(t.lineGutter=De,De.style.width=(t.lineNumWidth||1)+"px")}y.style.display=P.length?"":"none",ts(t)}function Za(t){To(t.display),Pr(t),Ur(t)}function Eo(t,y,P,L){var H=this;this.input=P,H.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),H.scrollbarFiller.setAttribute("cm-not-content","true"),H.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),H.gutterFiller.setAttribute("cm-not-content","true"),H.lineDiv=O("div",null,"CodeMirror-code"),H.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),H.cursorDiv=S("div",null,"CodeMirror-cursors"),H.measure=S("div",null,"CodeMirror-measure"),H.lineMeasure=S("div",null,"CodeMirror-measure"),H.lineSpace=O("div",[H.measure,H.lineMeasure,H.selectionDiv,H.cursorDiv,H.lineDiv],null,"position: relative; outline: none");var le=O("div",[H.lineSpace],"CodeMirror-lines");H.mover=S("div",[le],null,"position: relative"),H.sizer=S("div",[H.mover],"CodeMirror-sizer"),H.sizerWidth=null,H.heightForcer=S("div",null,null,"position: absolute; height: "+J+"px; width: 1px;"),H.gutters=S("div",null,"CodeMirror-gutters"),H.lineGutter=null,H.scroller=S("div",[H.sizer,H.heightForcer,H.gutters],"CodeMirror-scroll"),H.scroller.setAttribute("tabIndex","-1"),H.wrapper=S("div",[H.scrollbarFiller,H.gutterFiller,H.scroller],"CodeMirror"),w&&m<8&&(H.gutters.style.zIndex=-1,H.scroller.style.paddingRight=0),!d&&!(M&&r)&&(H.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(H.wrapper):t(H.wrapper)),H.viewFrom=H.viewTo=y.first,H.reportedViewFrom=H.reportedViewTo=y.first,H.view=[],H.renderedView=null,H.externalMeasured=null,H.viewOffset=0,H.lastWrapHeight=H.lastWrapWidth=0,H.updateLineNumbers=null,H.nativeBarWidth=H.barHeight=H.barWidth=0,H.scrollbarsClipped=!1,H.lineNumWidth=H.lineNumInnerWidth=H.lineNumChars=null,H.alignWidgets=!1,H.cachedCharWidth=H.cachedTextHeight=H.cachedPaddingH=null,H.maxLine=null,H.maxLineLength=0,H.maxLineChanged=!1,H.wheelDX=H.wheelDY=H.wheelStartX=H.wheelStartY=null,H.shift=!1,H.selForContextMenu=null,H.activeTouch=null,H.gutterSpecs=xi(L.gutters,L.lineNumbers),To(H),P.init(H)}var oo=0,hn=null;w?hn=-.53:M?hn=15:n?hn=-.7:a&&(hn=-1/3);function Uo(t){var y=t.wheelDeltaX,P=t.wheelDeltaY;return y==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(y=t.detail),P==null&&t.detail&&t.axis==t.VERTICAL_AXIS?P=t.detail:P==null&&(P=t.wheelDelta),{x:y,y:P}}function Ss(t){var y=Uo(t);return y.x*=hn,y.y*=hn,y}function gs(t,y){var P=Uo(y),L=P.x,H=P.y,le=t.display,we=le.scroller,De=we.scrollWidth>we.clientWidth,Pe=we.scrollHeight>we.clientHeight;if(!(L&&De||H&&Pe))return;if(H&&c&&d){e:for(var Qe=y.target,gt=le.view;Qe!=we;Qe=Qe.parentNode)for(var wt=0;wt<gt.length;wt++)if(gt[wt].node==Qe){t.display.currentWheelTarget=Qe;break e}}if(L&&!M&&!e&&hn!=null){H&&Pe&&ho(t,Math.max(0,we.scrollTop+H*hn)),Ma(t,Math.max(0,we.scrollLeft+L*hn)),(!H||H&&Pe)&&Ue(y),le.wheelStartX=null;return}if(H&&hn!=null){var Qt=H*hn,Nt=t.doc.scrollTop,on=Nt+le.wrapper.clientHeight;Qt<0?Nt=Math.max(0,Nt+Qt-50):on=Math.min(t.doc.height,on+Qt+50),Ja(t,{top:Nt,bottom:on})}oo<20&&(le.wheelStartX==null?(le.wheelStartX=we.scrollLeft,le.wheelStartY=we.scrollTop,le.wheelDX=L,le.wheelDY=H,setTimeout(function(){if(le.wheelStartX==null)return;var yn=we.scrollLeft-le.wheelStartX,Mn=we.scrollTop-le.wheelStartY,Gn=Mn&&le.wheelDY&&Mn/le.wheelDY||yn&&le.wheelDX&&yn/le.wheelDX;if(le.wheelStartX=le.wheelStartY=null,!Gn)return;hn=(hn*oo+Gn)/(oo+1),++oo},200)):(le.wheelDX+=L,le.wheelDY+=H))}var $i=function(t,y){this.ranges=t,this.primIndex=y};$i.prototype.primary=function(){return this.ranges[this.primIndex]},$i.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var y=0;y<this.ranges.length;y++){var P=this.ranges[y],L=t.ranges[y];if(!nt(P.anchor,L.anchor)||!nt(P.head,L.head))return!1}return!0},$i.prototype.deepCopy=function(){for(var t=[],y=0;y<this.ranges.length;y++)t[y]=new Sn(xt(this.ranges[y].anchor),xt(this.ranges[y].head));return new $i(t,this.primIndex)},$i.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},$i.prototype.contains=function(t,y){y||(y=t);for(var P=0;P<this.ranges.length;P++){var L=this.ranges[P];if(Fe(y,L.from())>=0&&Fe(t,L.to())<=0)return P}return-1};var Sn=function(t,y){this.anchor=t,this.head=y};Sn.prototype.from=function(){return Xt(this.anchor,this.head)},Sn.prototype.to=function(){return Wt(this.anchor,this.head)},Sn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ft(t,y,P){var L=t&&t.options.selectionsMayTouch,H=y[P];y.sort(function(Qt,Nt){return Fe(Qt.from(),Nt.from())}),P=Q(y,H);for(var le=1;le<y.length;le++){var we=y[le],De=y[le-1],Pe=Fe(De.to(),we.from());if(L&&!we.empty()?Pe>0:Pe>=0){var Qe=Xt(De.from(),we.from()),gt=Wt(De.to(),we.to()),wt=De.empty()?we.from()==we.head:De.from()==De.head;le<=P&&--P,y.splice(--le,2,new Sn(wt?gt:Qe,wt?Qe:gt))}}return new $i(y,P)}function $t(t,y){return new $i([new Sn(t,y||t)],0)}function Cn(t){return t.text?Le(t.from.line+t.text.length-1,ge(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Zt(t,y){if(Fe(t,y.from)<0)return t;if(Fe(t,y.to)<=0)return Cn(y);var P=t.line+y.text.length-(y.to.line-y.from.line)-1,L=t.ch;return t.line==y.to.line&&(L+=Cn(y).ch-y.to.ch),Le(P,L)}function qn(t,y){for(var P=[],L=0;L<t.sel.ranges.length;L++){var H=t.sel.ranges[L];P.push(new Sn(Zt(H.anchor,y),Zt(H.head,y)))}return Ft(t.cm,P,t.sel.primIndex)}function or(t,y,P){return t.line==y.line?Le(P.line,t.ch-y.ch+P.ch):Le(P.line+(t.line-y.line),t.ch)}function fr(t,y,P){for(var L=[],H=Le(t.first,0),le=H,we=0;we<y.length;we++){var De=y[we],Pe=or(De.from,H,le),Qe=or(Cn(De),H,le);if(H=De.to,le=Qe,P=="around"){var gt=t.sel.ranges[we],wt=Fe(gt.head,gt.anchor)<0;L[we]=new Sn(wt?Qe:Pe,wt?Pe:Qe)}else L[we]=new Sn(Pe,Pe)}return new $i(L,t.sel.primIndex)}function $r(t){t.doc.mode=Lt(t.options,t.doc.modeOption),vn(t)}function vn(t){t.doc.iter(function(y){y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Ya(t,100),t.state.modeGen++,t.curOp&&Pr(t)}function ra(t,y){return y.from.ch==0&&y.to.ch==0&&ge(y.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Pa(t,y,P,L){function H(ar){return P?P[ar]:null}function le(ar,Xn,pr){Zo(ar,Xn,pr,L),ui(ar,"change",ar,y)}function we(ar,Xn){for(var pr=[],Hr=ar;Hr<Xn;++Hr)pr.push(new Ua(Qe[Hr],H(Hr),L));return pr}var De=y.from,Pe=y.to,Qe=y.text,gt=Rn(t,De.line),wt=Rn(t,Pe.line),Qt=ge(Qe),Nt=H(Qe.length-1),on=Pe.line-De.line;if(y.full)t.insert(0,we(0,Qe.length)),t.remove(Qe.length,t.size-Qe.length);else if(ra(t,y)){var yn=we(0,Qe.length-1);le(wt,wt.text,Nt),on&&t.remove(De.line,on),yn.length&&t.insert(De.line,yn)}else if(gt==wt)if(Qe.length==1)le(gt,gt.text.slice(0,De.ch)+Qt+gt.text.slice(Pe.ch),Nt);else{var Mn=we(1,Qe.length-1);Mn.push(new Ua(Qt+gt.text.slice(Pe.ch),Nt,L)),le(gt,gt.text.slice(0,De.ch)+Qe[0],H(0)),t.insert(De.line+1,Mn)}else if(Qe.length==1)le(gt,gt.text.slice(0,De.ch)+Qe[0]+wt.text.slice(Pe.ch),H(0)),t.remove(De.line+1,on);else{le(gt,gt.text.slice(0,De.ch)+Qe[0],H(0)),le(wt,Qt+wt.text.slice(Pe.ch),Nt);var Gn=we(1,Qe.length-1);on>1&&t.remove(De.line+1,on-1),t.insert(De.line+1,Gn)}ui(t,"change",t,y)}function Li(t,y,P){function L(H,le,we){if(H.linked)for(var De=0;De<H.linked.length;++De){var Pe=H.linked[De];if(Pe.doc==le)continue;var Qe=we&&Pe.sharedHist;if(P&&!Qe)continue;y(Pe.doc,Qe),L(Pe.doc,H,Qe)}}L(t,null,!0)}function di(t,y){if(y.cm)throw new Error("This document is already in use.");t.doc=y,y.cm=t,yr(t),$r(t),Oa(t),t.options.lineWrapping||Jo(t),t.options.mode=y.modeOption,Pr(t)}function Oa(t){(t.doc.direction=="rtl"?k:g)(t.display.lineDiv,"CodeMirror-rtl")}function $a(t){ya(t,function(){Oa(t),Pr(t)})}function qi(t){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function Yi(t,y){var P={from:xt(y.from),to:Cn(y),text:Jr(t,y.from,y.to)};return hl(t,P,y.from.line,y.to.line+1),Li(t,function(L){return hl(L,P,y.from.line,y.to.line+1)},!0),P}function Aa(t){for(;t.length;){var y=ge(t);if(y.ranges)t.pop();else break}}function ko(t,y){if(y)return Aa(t.done),ge(t.done);if(t.done.length&&!ge(t.done).ranges)return ge(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),ge(t.done)}function Fo(t,y,P,L){var H=t.history;H.undone.length=0;var le=+new Date,we,De;if((H.lastOp==L||H.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&H.lastModTime>le-(t.cm?t.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(we=ko(H,H.lastOp==L)))De=ge(we.changes),Fe(y.from,y.to)==0&&Fe(y.from,De.to)==0?De.to=Cn(y):we.changes.push(Yi(t,y));else{var Pe=ge(H.done);for((!Pe||!Pe.ranges)&&Ts(t.sel,H.done),we={changes:[Yi(t,y)],generation:H.generation},H.done.push(we);H.done.length>H.undoDepth;)H.done.shift(),H.done[0].ranges||H.done.shift()}H.done.push(P),H.generation=++H.maxGeneration,H.lastModTime=H.lastSelTime=le,H.lastOp=H.lastSelOp=L,H.lastOrigin=H.lastSelOrigin=y.origin,De||ct(t,"historyAdded")}function No(t,y,P,L){var H=y.charAt(0);return H=="*"||H=="+"&&P.ranges.length==L.ranges.length&&P.somethingSelected()==L.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function jo(t,y,P,L){var H=t.history,le=L&&L.origin;P==H.lastSelOp||le&&H.lastSelOrigin==le&&(H.lastModTime==H.lastSelTime&&H.lastOrigin==le||No(t,le,ge(H.done),y))?H.done[H.done.length-1]=y:Ts(y,H.done),H.lastSelTime=+new Date,H.lastSelOrigin=le,H.lastSelOp=P,L&&L.clearRedo!==!1&&Aa(H.undone)}function Ts(t,y){var P=ge(y);P&&P.ranges&&P.equals(t)||y.push(t)}function hl(t,y,P,L){var H=y["spans_"+t.id],le=0;t.iter(Math.max(t.first,P),Math.min(t.first+t.size,L),function(we){we.markedSpans&&((H||(H=y["spans_"+t.id]={}))[le]=we.markedSpans),++le})}function fl(t){if(!t)return null;for(var y,P=0;P<t.length;++P)t[P].marker.explicitlyCleared?y||(y=t.slice(0,P)):y&&y.push(t[P]);return y?y.length?y:null:t}function Qs(t,y){var P=y["spans_"+t.id];if(!P)return null;for(var L=[],H=0;H<y.text.length;++H)L.push(fl(P[H]));return L}function lr(t,y){var P=Qs(t,y),L=Gi(t,y);if(!P)return L;if(!L)return P;for(var H=0;H<P.length;++H){var le=P[H],we=L[H];if(le&&we){e:for(var De=0;De<we.length;++De){for(var Pe=we[De],Qe=0;Qe<le.length;++Qe)if(le[Qe].marker==Pe.marker)continue e;le.push(Pe)}}else we&&(P[H]=we)}return P}function ys(t,y,P){for(var L=[],H=0;H<t.length;++H){var le=t[H];if(le.ranges){L.push(P?$i.prototype.deepCopy.call(le):le);continue}var we=le.changes,De=[];L.push({changes:De});for(var Pe=0;Pe<we.length;++Pe){var Qe=we[Pe],gt=void 0;if(De.push({from:Qe.from,to:Qe.to,text:Qe.text}),y)for(var wt in Qe)(gt=wt.match(/^spans_(\d+)$/))&&(Q(y,Number(gt[1]))>-1&&(ge(De)[wt]=Qe[wt],delete Qe[wt]))}}return L}function Ks(t,y,P,L){if(L){var H=t.anchor;if(P){var le=Fe(y,H)<0;le!=Fe(P,H)<0?(H=y,y=P):le!=Fe(y,P)<0&&(y=P)}return new Sn(H,y)}else return new Sn(P||y,y)}function Bs(t,y,P,L,H){H==null&&(H=t.cm&&(t.cm.display.shift||t.extend)),Na(t,new $i([Ks(t.sel.primary(),y,P,H)],0),L)}function Ao(t,y,P){for(var L=[],H=t.cm&&(t.cm.display.shift||t.extend),le=0;le<t.sel.ranges.length;le++)L[le]=Ks(t.sel.ranges[le],y[le],null,H);var we=Ft(t.cm,L,t.sel.primIndex);Na(t,we,P)}function bs(t,y,P,L){var H=t.sel.ranges.slice(0);H[y]=P,Na(t,Ft(t.cm,H,t.sel.primIndex),L)}function Ws(t,y,P,L){Na(t,$t(y,P),L)}function Ms(t,y,P){var L={ranges:y.ranges,update:function(H){this.ranges=[];for(var le=0;le<H.length;le++)this.ranges[le]=new Sn(z(t,H[le].anchor),z(t,H[le].head))},origin:P&&P.origin};return ct(t,"beforeSelectionChange",t,L),t.cm&&ct(t.cm,"beforeSelectionChange",t.cm,L),L.ranges!=y.ranges?Ft(t.cm,L.ranges,L.ranges.length-1):y}function Es(t,y,P){var L=t.history.done,H=ge(L);H&&H.ranges?(L[L.length-1]=y,zs(t,y,P)):Na(t,y,P)}function Na(t,y,P){zs(t,y,P),jo(t,t.sel,t.cm?t.cm.curOp.id:NaN,P)}function zs(t,y,P){(Ze(t,"beforeSelectionChange")||t.cm&&Ze(t.cm,"beforeSelectionChange"))&&(y=Ms(t,y,P));var L=P&&P.bias||(Fe(y.primary().head,t.sel.primary().head)<0?-1:1);ds(t,Ls(t,y,L,!0)),!(P&&P.scroll===!1)&&t.cm&&io(t.cm)}function ds(t,y){if(y.equals(t.sel))return;t.sel=y,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,rt(t.cm)),ui(t,"cursorActivity",t)}function Ho(t){ds(t,Ls(t,t.sel,null,!1))}function Ls(t,y,P,L){for(var H,le=0;le<y.ranges.length;le++){var we=y.ranges[le],De=y.ranges.length==t.sel.ranges.length&&t.sel.ranges[le],Pe=Yr(t,we.anchor,De&&De.anchor,P,L),Qe=Yr(t,we.head,De&&De.head,P,L);(H||Pe!=we.anchor||Qe!=we.head)&&(H||(H=y.ranges.slice(0,le)),H[le]=new Sn(Pe,Qe))}return H?Ft(t.cm,H,y.primIndex):y}function Qo(t,y,P,L,H){var le=Rn(t,y.line);if(le.markedSpans)for(var we=0;we<le.markedSpans.length;++we){var De=le.markedSpans[we],Pe=De.marker,Qe="selectLeft"in Pe?!Pe.selectLeft:Pe.inclusiveLeft,gt="selectRight"in Pe?!Pe.selectRight:Pe.inclusiveRight;if((De.from==null||(Qe?De.from<=y.ch:De.from<y.ch))&&(De.to==null||(gt?De.to>=y.ch:De.to>y.ch))){if(H&&(ct(Pe,"beforeCursorEnter"),Pe.explicitlyCleared))if(le.markedSpans){--we;continue}else break;if(!Pe.atomic)continue;if(P){var wt=Pe.find(L<0?1:-1),Qt=void 0;if((L<0?gt:Qe)&&(wt=Rr(t,wt,-L,wt&&wt.line==y.line?le:null)),wt&&wt.line==y.line&&(Qt=Fe(wt,P))&&(L<0?Qt<0:Qt>0))return Qo(t,wt,y,L,H)}var Nt=Pe.find(L<0?-1:1);return(L<0?Qe:gt)&&(Nt=Rr(t,Nt,L,Nt.line==y.line?le:null)),Nt?Qo(t,Nt,y,L,H):null}}return y}function Yr(t,y,P,L,H){var le=L||1,we=Qo(t,y,P,le,H)||!H&&Qo(t,y,P,le,!0)||Qo(t,y,P,-le,H)||!H&&Qo(t,y,P,-le,!0);return we||(t.cantEdit=!0,Le(t.first,0))}function Rr(t,y,P,L){return P<0&&y.ch==0?y.line>t.first?z(t,Le(y.line-1)):null:P>0&&y.ch==(L||Rn(t,y.line)).text.length?y.line<t.first+t.size-1?Le(y.line+1,0):null:new Le(y.line,y.ch+P)}function Ti(t){t.setSelection(Le(t.firstLine(),0),Le(t.lastLine()),ue)}function Or(t,y,P){var L={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return L.canceled=!0}};return P&&(L.update=function(H,le,we,De){H&&(L.from=z(t,H)),le&&(L.to=z(t,le)),we&&(L.text=we),De!==void 0&&(L.origin=De)}),ct(t,"beforeChange",t,L),t.cm&&ct(t.cm,"beforeChange",t.cm,L),L.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:L.from,to:L.to,text:L.text,origin:L.origin}}function Kn(t,y,P){if(t.cm){if(!t.cm.curOp)return ki(t.cm,Kn)(t,y,P);if(t.cm.state.suppressEdits)return}if((Ze(t,"beforeChange")||t.cm&&Ze(t.cm,"beforeChange"))&&(y=Or(t,y,!0),!y))return;var L=Tr&&!P&&sa(t,y.from,y.to);if(L)for(var H=L.length-1;H>=0;--H)Pn(t,{from:L[H].from,to:L[H].to,text:H?[""]:y.text,origin:y.origin});else Pn(t,y)}function Pn(t,y){if(y.text.length==1&&y.text[0]==""&&Fe(y.from,y.to)==0)return;var P=qn(t,y);Fo(t,y,P,t.cm?t.cm.curOp.id:NaN),Tn(t,y,P,Gi(t,y));var L=[];Li(t,function(H,le){!le&&Q(L,H.history)==-1&&(Ji(H.history,y),L.push(H.history)),Tn(H,y,null,Gi(H,y))})}function xn(t,y,P){var L=t.cm&&t.cm.state.suppressEdits;if(L&&!P)return;for(var H=t.history,le,we=t.sel,De=y=="undo"?H.done:H.undone,Pe=y=="undo"?H.undone:H.done,Qe=0;Qe<De.length&&!(le=De[Qe],P?le.ranges&&!le.equals(t.sel):!le.ranges);Qe++);if(Qe==De.length)return;for(H.lastOrigin=H.lastSelOrigin=null;;)if(le=De.pop(),le.ranges){if(Ts(le,Pe),P&&!le.equals(t.sel)){Na(t,le,{clearRedo:!1});return}we=le}else if(L){De.push(le);return}else break;var gt=[];Ts(we,Pe),Pe.push({changes:gt,generation:H.generation}),H.generation=le.generation||++H.maxGeneration;for(var wt=Ze(t,"beforeChange")||t.cm&&Ze(t.cm,"beforeChange"),Qt=function(yn){var Mn=le.changes[yn];if(Mn.origin=y,wt&&!Or(t,Mn,!1))return De.length=0,{};gt.push(Yi(t,Mn));var Gn=yn?qn(t,Mn):ge(De);Tn(t,Mn,Gn,lr(t,Mn)),!yn&&t.cm&&t.cm.scrollIntoView({from:Mn.from,to:Cn(Mn)});var ar=[];Li(t,function(Xn,pr){!pr&&Q(ar,Xn.history)==-1&&(Ji(Xn.history,Mn),ar.push(Xn.history)),Tn(Xn,Mn,null,lr(Xn,Mn))})},Nt=le.changes.length-1;Nt>=0;--Nt){var on=Qt(Nt);if(on)return on.v}}function tr(t,y){if(y==0)return;if(t.first+=y,t.sel=new $i(Ae(t.sel.ranges,function(H){return new Sn(Le(H.anchor.line+y,H.anchor.ch),Le(H.head.line+y,H.head.ch))}),t.sel.primIndex),t.cm){Pr(t.cm,t.first,t.first-y,y);for(var P=t.cm.display,L=P.viewFrom;L<P.viewTo;L++)jn(t.cm,L,"gutter")}}function Tn(t,y,P,L){if(t.cm&&!t.cm.curOp)return ki(t.cm,Tn)(t,y,P,L);if(y.to.line<t.first){tr(t,y.text.length-1-(y.to.line-y.from.line));return}if(y.from.line>t.lastLine())return;if(y.from.line<t.first){var H=y.text.length-1-(t.first-y.from.line);tr(t,H),y={from:Le(t.first,0),to:Le(y.to.line+H,y.to.ch),text:[ge(y.text)],origin:y.origin}}var le=t.lastLine();y.to.line>le&&(y={from:y.from,to:Le(le,Rn(t,le).text.length),text:[y.text[0]],origin:y.origin}),y.removed=Jr(t,y.from,y.to),P||(P=qn(t,y)),t.cm?_r(t.cm,y,L):Pa(t,y,L),zs(t,P,ue),t.cantEdit&&Yr(t,Le(t.firstLine(),0))&&(t.cantEdit=!1)}function _r(t,y,P){var L=t.doc,H=t.display,le=y.from,we=y.to,De=!1,Pe=le.line;t.options.lineWrapping||(Pe=kr(va(Rn(L,le.line))),L.iter(Pe,we.line+1,function(Nt){if(Nt==H.maxLine)return De=!0,!0})),L.sel.contains(y.from,y.to)>-1&&rt(t),Pa(L,y,P,Kr(t)),t.options.lineWrapping||(L.iter(Pe,le.line+y.text.length,function(Nt){var on=ss(Nt);on>H.maxLineLength&&(H.maxLine=Nt,H.maxLineLength=on,H.maxLineChanged=!0,De=!1)}),De&&(t.curOp.updateMaxLine=!0)),ti(L,le.line),Ya(t,400);var Qe=y.text.length-(we.line-le.line)-1;y.full?Pr(t):le.line==we.line&&y.text.length==1&&!ra(t.doc,y)?jn(t,le.line,"text"):Pr(t,le.line,we.line+1,Qe);var gt=Ze(t,"changes"),wt=Ze(t,"change");if(wt||gt){var Qt={from:le,to:we,text:y.text,removed:y.removed,origin:y.origin};wt&&ui(t,"change",t,Qt),gt&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(Qt)}t.display.selForContextMenu=null}function Mr(t,y,P,L,H){var le;L||(L=P),Fe(L,P)<0&&(le=[L,P],P=le[0],L=le[1]),typeof y=="string"&&(y=t.splitLines(y)),Kn(t,{from:P,to:L,text:y,origin:H})}function jr(t,y,P,L){P<t.line?t.line+=L:y<t.line&&(t.line=y,t.ch=0)}function Pi(t,y,P,L){for(var H=0;H<t.length;++H){var le=t[H],we=!0;if(le.ranges){le.copied||(le=t[H]=le.deepCopy(),le.copied=!0);for(var De=0;De<le.ranges.length;De++)jr(le.ranges[De].anchor,y,P,L),jr(le.ranges[De].head,y,P,L);continue}for(var Pe=0;Pe<le.changes.length;++Pe){var Qe=le.changes[Pe];if(P<Qe.from.line)Qe.from=Le(Qe.from.line+L,Qe.from.ch),Qe.to=Le(Qe.to.line+L,Qe.to.ch);else if(y<=Qe.to.line){we=!1;break}}we||(t.splice(0,H+1),H=0)}}function Ji(t,y){var P=y.from.line,L=y.to.line,H=y.text.length-(L-P)-1;Pi(t.done,P,L,H),Pi(t.undone,P,L,H)}function ba(t,y,P,L){var H=y,le=y;return typeof y=="number"?le=Rn(t,pe(t,y)):H=kr(y),H==null?null:(L(le,H)&&t.cm&&jn(t.cm,H,P),le)}function pa(t){this.lines=t,this.parent=null;for(var y=0,P=0;P<t.length;++P)t[P].parent=this,y+=t[P].height;this.height=y}pa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,y){for(var P=t,L=t+y;P<L;++P){var H=this.lines[P];this.height-=H.height,ps(H),ui(H,"delete")}this.lines.splice(t,y)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,y,P){this.height+=P,this.lines=this.lines.slice(0,t).concat(y).concat(this.lines.slice(t));for(var L=0;L<y.length;++L)y[L].parent=this},iterN:function(t,y,P){for(var L=t+y;t<L;++t)if(P(this.lines[t]))return!0}};function Ea(t){this.children=t;for(var y=0,P=0,L=0;L<t.length;++L){var H=t[L];y+=H.chunkSize(),P+=H.height,H.parent=this}this.size=y,this.height=P,this.parent=null}Ea.prototype={chunkSize:function(){return this.size},removeInner:function(t,y){this.size-=y;for(var P=0;P<this.children.length;++P){var L=this.children[P],H=L.chunkSize();if(t<H){var le=Math.min(y,H-t),we=L.height;if(L.removeInner(t,le),this.height-=we-L.height,H==le&&(this.children.splice(P--,1),L.parent=null),(y-=le)==0)break;t=0}else t-=H}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof pa))){var De=[];this.collapse(De),this.children=[new pa(De)],this.children[0].parent=this}},collapse:function(t){for(var y=0;y<this.children.length;++y)this.children[y].collapse(t)},insertInner:function(t,y,P){this.size+=y.length,this.height+=P;for(var L=0;L<this.children.length;++L){var H=this.children[L],le=H.chunkSize();if(t<=le){if(H.insertInner(t,y,P),H.lines&&H.lines.length>50){for(var we=H.lines.length%25+25,De=we;De<H.lines.length;){var Pe=new pa(H.lines.slice(De,De+=25));H.height-=Pe.height,this.children.splice(++L,0,Pe),Pe.parent=this}H.lines=H.lines.slice(0,we),this.maybeSpill()}break}t-=le}},maybeSpill:function(){if(this.children.length<=10)return;var t=this;do{var y=t.children.splice(t.children.length-5,5),P=new Ea(y);if(t.parent){t.size-=P.size,t.height-=P.height;var H=Q(t.parent.children,t);t.parent.children.splice(H+1,0,P)}else{var L=new Ea(t.children);L.parent=t,t.children=[L,P],t=L}P.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()},iterN:function(t,y,P){for(var L=0;L<this.children.length;++L){var H=this.children[L],le=H.chunkSize();if(t<le){var we=Math.min(y,le-t);if(H.iterN(t,we,P))return!0;if((y-=we)==0)break;t=0}else t-=le}}};var Ko=function(t,y,P){if(P)for(var L in P)P.hasOwnProperty(L)&&(this[L]=P[L]);this.doc=t,this.node=y};Ko.prototype.clear=function(){var t=this.doc.cm,y=this.line.widgets,P=this.line,L=kr(P);if(L==null||!y)return;for(var H=0;H<y.length;++H)y[H]==this&&y.splice(H--,1);y.length||(P.widgets=null);var le=_s(this);li(P,Math.max(0,P.height-le)),t&&(ya(t,function(){po(t,P,-le),jn(t,L,"widget")}),ui(t,"lineWidgetCleared",t,this,L))},Ko.prototype.changed=function(){var t=this,y=this.height,P=this.doc.cm,L=this.line;this.height=null;var H=_s(this)-y;if(!H)return;ha(this.doc,L)||li(L,L.height+H),P&&ya(P,function(){P.curOp.forceUpdate=!0,po(P,L,H),ui(P,"lineWidgetChanged",P,t,kr(L))})},$e(Ko);function po(t,y,P){eo(y)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Mo(t,P)}function Cs(t,y,P,L){var H=new Ko(t,P,L),le=t.cm;return le&&H.noHScroll&&(le.display.alignWidgets=!0),ba(t,y,"widget",function(we){var De=we.widgets||(we.widgets=[]);if(H.insertAt==null?De.push(H):De.splice(Math.min(De.length-1,Math.max(0,H.insertAt)),0,H),H.line=we,le&&!ha(t,we)){var Pe=eo(we)<t.scrollTop;li(we,we.height+_s(H)),Pe&&Mo(le,H.height),le.curOp.forceUpdate=!0}return!0}),le&&ui(le,"lineWidgetAdded",le,H,typeof y=="number"?y:kr(y)),H}var el=0,ns=function(t,y){this.lines=[],this.type=y,this.doc=t,this.id=++el};ns.prototype.clear=function(){if(this.explicitlyCleared)return;var t=this.doc.cm,y=t&&!t.curOp;if(y&&Wa(t),Ze(this,"clear")){var P=this.find();P&&ui(this,"clear",P.from,P.to)}for(var L=null,H=null,le=0;le<this.lines.length;++le){var we=this.lines[le],De=Fi(we.markedSpans,this);t&&!this.collapsed?jn(t,kr(we),"text"):t&&(De.to!=null&&(H=kr(we)),De.from!=null&&(L=kr(we))),we.markedSpans=Hi(we.markedSpans,De),De.from==null&&this.collapsed&&!ha(this.doc,we)&&t&&li(we,Nr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var Pe=0;Pe<this.lines.length;++Pe){var Qe=va(this.lines[Pe]),gt=ss(Qe);gt>t.display.maxLineLength&&(t.display.maxLine=Qe,t.display.maxLineLength=gt,t.display.maxLineChanged=!0)}L!=null&&t&&this.collapsed&&Pr(t,L,H+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ho(t.doc)),t&&ui(t,"markerCleared",t,this,L,H),y&&Ta(t),this.parent&&this.parent.clear()},ns.prototype.find=function(t,y){t==null&&this.type=="bookmark"&&(t=1);for(var P,L,H=0;H<this.lines.length;++H){var le=this.lines[H],we=Fi(le.markedSpans,this);if(we.from!=null&&(P=Le(y?le:kr(le),we.from),t==-1))return P;if(we.to!=null&&(L=Le(y?le:kr(le),we.to),t==1))return L}return P&&{from:P,to:L}},ns.prototype.changed=function(){var t=this,y=this.find(-1,!0),P=this,L=this.doc.cm;if(!y||!L)return;ya(L,function(){var H=y.line,le=kr(y.line),we=st(L,le);if(we&&(Bn(we),L.curOp.selectionChanged=L.curOp.forceUpdate=!0),L.curOp.updateMaxLine=!0,!ha(P.doc,H)&&P.height!=null){var De=P.height;P.height=null;var Pe=_s(P)-De;Pe&&li(H,H.height+Pe)}ui(L,"markerChanged",L,t)})},ns.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||Q(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},ns.prototype.detachLine=function(t){if(this.lines.splice(Q(this.lines,t),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},$e(ns);function hs(t,y,P,L,H){if(L&&L.shared)return nl(t,y,P,L,H);if(t.cm&&!t.cm.curOp)return ki(t.cm,hs)(t,y,P,L,H);var le=new ns(t,H),we=Fe(y,P);if(L&&K(L,le,!1),we>0||we==0&&le.clearWhenEmpty!==!1)return le;if(le.replacedWith&&(le.collapsed=!0,le.widgetNode=O("span",[le.replacedWith],"CodeMirror-widget"),L.handleMouseEvents||le.widgetNode.setAttribute("cm-ignore-events","true"),L.insertLeft&&(le.widgetNode.insertLeft=!0)),le.collapsed){if(Ni(t,y.line,y,P,le)||y.line!=P.line&&Ni(t,P.line,y,P,le))throw new Error("Inserting collapsed marker partially overlapping an existing one");Oi()}le.addToHistory&&Fo(t,{from:y,to:P,origin:"markText"},t.sel,NaN);var De=y.line,Pe=t.cm,Qe;if(t.iter(De,P.line+1,function(wt){Pe&&le.collapsed&&!Pe.options.lineWrapping&&va(wt)==Pe.display.maxLine&&(Qe=!0),le.collapsed&&De!=y.line&&li(wt,0),Ii(wt,new wi(le,De==y.line?y.ch:null,De==P.line?P.ch:null)),++De}),le.collapsed&&t.iter(y.line,P.line+1,function(wt){ha(t,wt)&&li(wt,0)}),le.clearOnEnter&&Ke(le,"beforeCursorEnter",function(){return le.clear()}),le.readOnly&&(fi(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),le.collapsed&&(le.id=++el,le.atomic=!0),Pe){if(Qe&&(Pe.curOp.updateMaxLine=!0),le.collapsed)Pr(Pe,y.line,P.line+1);else if(le.className||le.startStyle||le.endStyle||le.css||le.attributes||le.title)for(var gt=y.line;gt<=P.line;gt++)jn(Pe,gt,"text");le.atomic&&Ho(Pe.doc),ui(Pe,"markerAdded",Pe,le)}return le}var tl=function(t,y){this.markers=t,this.primary=y;for(var P=0;P<t.length;++P)t[P].parent=this};tl.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();ui(this,"clear")},tl.prototype.find=function(t,y){return this.primary.find(t,y)},$e(tl);function nl(t,y,P,L,H){L=K(L),L.shared=!1;var le=[hs(t,y,P,L,H)],we=le[0],De=L.widgetNode;return Li(t,function(Pe){De&&(L.widgetNode=De.cloneNode(!0)),le.push(hs(Pe,z(Pe,y),z(Pe,P),L,H));for(var Qe=0;Qe<Pe.linked.length;++Qe)if(Pe.linked[Qe].isParent)return;we=ge(le)}),new tl(le,we)}function Zl(t){return t.findMarks(Le(t.first,0),t.clipPos(Le(t.lastLine())),function(y){return y.parent})}function $l(t,y){for(var P=0;P<y.length;P++){var L=y[P],H=L.find(),le=t.clipPos(H.from),we=t.clipPos(H.to);if(Fe(le,we)){var De=hs(t,le,we,L.primary,L.primary.type);L.markers.push(De),De.parent=L}}}function ql(t){for(var y=function(L){var H=t[L],le=[H.primary.doc];Li(H.primary.doc,function(Pe){return le.push(Pe)});for(var we=0;we<H.markers.length;we++){var De=H.markers[we];Q(le,De.doc)==-1&&(De.parent=null,H.markers.splice(we--,1))}},P=0;P<t.length;P++)y(P)}var mu=0,Bo=function(t,y,P,L,H){if(!(this instanceof Bo))return new Bo(t,y,P,L,H);P==null&&(P=0),Ea.call(this,[new pa([new Ua("",null)])]),this.first=P,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=P;var le=Le(P,0);this.sel=$t(le),this.history=new qi(null),this.id=++mu,this.modeOption=y,this.lineSep=L,this.direction=H=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),Pa(this,{from:le,to:le,text:t}),Na(this,$t(le),ue)};Bo.prototype=oe(Ea.prototype,{constructor:Bo,iter:function(t,y,P){P?this.iterN(t-this.first,y-t,P):this.iterN(this.first,this.first+this.size,t)},insert:function(t,y){for(var P=0,L=0;L<y.length;++L)P+=y[L].height;this.insertInner(t-this.first,y,P)},remove:function(t,y){this.removeInner(t-this.first,y)},getValue:function(t){var y=si(this,this.first,this.first+this.size);return t===!1?y:y.join(t||this.lineSeparator())},setValue:ji(function(t){var y=Le(this.first,0),P=this.first+this.size-1;Kn(this,{from:y,to:Le(P,Rn(this,P).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Ia(this.cm,0,0),Na(this,$t(y),ue)}),replaceRange:function(t,y,P,L){y=z(this,y),P=P?z(this,P):y,Mr(this,t,y,P,L)},getRange:function(t,y,P){var L=Jr(this,z(this,t),z(this,y));return P===!1?L:L.join(P||this.lineSeparator())},getLine:function(t){var y=this.getLineHandle(t);return y&&y.text},getLineHandle:function(t){if(Ui(this,t))return Rn(this,t)},getLineNumber:function(t){return kr(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=Rn(this,t)),va(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return z(this,t)},getCursor:function(t){var y=this.sel.primary(),P;return t==null||t=="head"?P=y.head:t=="anchor"?P=y.anchor:t=="end"||t=="to"||t===!1?P=y.to():P=y.from(),P},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ji(function(t,y,P){Ws(this,z(this,typeof t=="number"?Le(t,y||0):t),null,P)}),setSelection:ji(function(t,y,P){Ws(this,z(this,t),z(this,y||t),P)}),extendSelection:ji(function(t,y,P){Bs(this,z(this,t),y&&z(this,y),P)}),extendSelections:ji(function(t,y){Ao(this,ye(this,t),y)}),extendSelectionsBy:ji(function(t,y){var P=Ae(this.sel.ranges,t);Ao(this,ye(this,P),y)}),setSelections:ji(function(t,y,P){if(!t.length)return;for(var L=[],H=0;H<t.length;H++)L[H]=new Sn(z(this,t[H].anchor),z(this,t[H].head));y==null&&(y=Math.min(t.length-1,this.sel.primIndex)),Na(this,Ft(this.cm,L,y),P)}),addSelection:ji(function(t,y,P){var L=this.sel.ranges.slice(0);L.push(new Sn(z(this,t),z(this,y||t))),Na(this,Ft(this.cm,L,L.length-1),P)}),getSelection:function(t){for(var y=this.sel.ranges,P,L=0;L<y.length;L++){var H=Jr(this,y[L].from(),y[L].to());P=P?P.concat(H):H}return t===!1?P:P.join(t||this.lineSeparator())},getSelections:function(t){for(var y=[],P=this.sel.ranges,L=0;L<P.length;L++){var H=Jr(this,P[L].from(),P[L].to());t!==!1&&(H=H.join(t||this.lineSeparator())),y[L]=H}return y},replaceSelection:function(t,y,P){for(var L=[],H=0;H<this.sel.ranges.length;H++)L[H]=t;this.replaceSelections(L,y,P||"+input")},replaceSelections:ji(function(t,y,P){for(var L=[],H=this.sel,le=0;le<H.ranges.length;le++){var we=H.ranges[le];L[le]={from:we.from(),to:we.to(),text:this.splitLines(t[le]),origin:P}}for(var De=y&&y!="end"&&fr(this,L,y),Pe=L.length-1;Pe>=0;Pe--)Kn(this,L[Pe]);De?Es(this,De):this.cm&&io(this.cm)}),undo:ji(function(){xn(this,"undo")}),redo:ji(function(){xn(this,"redo")}),undoSelection:ji(function(){xn(this,"undo",!0)}),redoSelection:ji(function(){xn(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,y=0,P=0,L=0;L<t.done.length;L++)t.done[L].ranges||++y;for(var H=0;H<t.undone.length;H++)t.undone[H].ranges||++P;return{undo:y,redo:P}},clearHistory:function(){var t=this;this.history=new qi(this.history.maxGeneration),Li(this,function(y){return y.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:ys(this.history.done),undone:ys(this.history.undone)}},setHistory:function(t){var y=this.history=new qi(this.history.maxGeneration);y.done=ys(t.done.slice(0),null,!0),y.undone=ys(t.undone.slice(0),null,!0)},setGutterMarker:ji(function(t,y,P){return ba(this,t,"gutter",function(L){var H=L.gutterMarkers||(L.gutterMarkers={});return H[y]=P,!P&&Me(H)&&(L.gutterMarkers=null),!0})}),clearGutter:ji(function(t){var y=this;this.iter(function(P){P.gutterMarkers&&P.gutterMarkers[t]&&ba(y,P,"gutter",function(){return P.gutterMarkers[t]=null,Me(P.gutterMarkers)&&(P.gutterMarkers=null),!0})})}),lineInfo:function(t){var y;if(typeof t=="number"){if(!Ui(this,t))return null;if(y=t,t=Rn(this,t),!t)return null}else if(y=kr(t),y==null)return null;return{line:y,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:ji(function(t,y,P){return ba(this,t,y=="gutter"?"gutter":"class",function(L){var H=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!L[H])L[H]=P;else{if(E(P).test(L[H]))return!1;L[H]+=" "+P}return!0})}),removeLineClass:ji(function(t,y,P){return ba(this,t,y=="gutter"?"gutter":"class",function(L){var H=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",le=L[H];if(le)if(P==null)L[H]=null;else{var we=le.match(E(P));if(!we)return!1;var De=we.index+we[0].length;L[H]=le.slice(0,we.index)+(!we.index||De==le.length?"":" ")+le.slice(De)||null}else return!1;return!0})}),addLineWidget:ji(function(t,y,P){return Cs(this,t,y,P)}),removeLineWidget:function(t){t.clear()},markText:function(t,y,P){return hs(this,z(this,t),z(this,y),P,P&&P.type||"range")},setBookmark:function(t,y){var P={replacedWith:y&&(y.nodeType==null?y.widget:y),insertLeft:y&&y.insertLeft,clearWhenEmpty:!1,shared:y&&y.shared,handleMouseEvents:y&&y.handleMouseEvents};return t=z(this,t),hs(this,t,t,P,"bookmark")},findMarksAt:function(t){t=z(this,t);var y=[],P=Rn(this,t.line).markedSpans;if(P)for(var L=0;L<P.length;++L){var H=P[L];(H.from==null||H.from<=t.ch)&&(H.to==null||H.to>=t.ch)&&y.push(H.marker.parent||H.marker)}return y},findMarks:function(t,y,P){t=z(this,t),y=z(this,y);var L=[],H=t.line;return this.iter(t.line,y.line+1,function(le){var we=le.markedSpans;if(we)for(var De=0;De<we.length;De++){var Pe=we[De];!(Pe.to!=null&&H==t.line&&t.ch>=Pe.to||Pe.from==null&&H!=t.line||Pe.from!=null&&H==y.line&&Pe.from>=y.ch)&&(!P||P(Pe.marker))&&L.push(Pe.marker.parent||Pe.marker)}++H}),L},getAllMarks:function(){var t=[];return this.iter(function(y){var P=y.markedSpans;if(P)for(var L=0;L<P.length;++L)P[L].from!=null&&t.push(P[L].marker)}),t},posFromIndex:function(t){var y,P=this.first,L=this.lineSeparator().length;return this.iter(function(H){var le=H.text.length+L;if(le>t)return y=t,!0;t-=le,++P}),z(this,Le(P,y))},indexFromPos:function(t){t=z(this,t);var y=t.ch;if(t.line<this.first||t.ch<0)return 0;var P=this.lineSeparator().length;return this.iter(this.first,t.line,function(L){y+=L.text.length+P}),y},copy:function(t){var y=new Bo(si(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return y.scrollTop=this.scrollTop,y.scrollLeft=this.scrollLeft,y.sel=this.sel,y.extend=!1,t&&(y.history.undoDepth=this.history.undoDepth,y.setHistory(this.getHistory())),y},linkedDoc:function(t){t||(t={});var y=this.first,P=this.first+this.size;t.from!=null&&t.from>y&&(y=t.from),t.to!=null&&t.to<P&&(P=t.to);var L=new Bo(si(this,y,P),t.mode||this.modeOption,y,this.lineSep,this.direction);return t.sharedHist&&(L.history=this.history),(this.linked||(this.linked=[])).push({doc:L,sharedHist:t.sharedHist}),L.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],$l(L,Zl(this)),L},unlinkDoc:function(t){if(t instanceof ma&&(t=t.doc),this.linked)for(var y=0;y<this.linked.length;++y){var P=this.linked[y];if(P.doc!=t)continue;this.linked.splice(y,1),t.unlinkDoc(this),ql(Zl(this));break}if(t.history==this.history){var L=[t.id];Li(t,function(H){return L.push(H.id)},!0),t.history=new qi(null),t.history.done=ys(this.history.done,L),t.history.undone=ys(this.history.undone,L)}},iterLinkedDocs:function(t){Li(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Bt(t)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ji(function(t){if(t!="rtl"&&(t="ltr"),t==this.direction)return;this.direction=t,this.iter(function(y){return y.order=null}),this.cm&&$a(this.cm)})}),Bo.prototype.eachLine=Bo.prototype.iter;var eu=0;function vu(t){var y=this;if(gu(y),lt(y,t)||_o(y.display,t))return;Ue(t),w&&(eu=+new Date);var P=On(y,t,!0),L=t.dataTransfer.files;if(!P||y.isReadOnly())return;if(L&&L.length&&window.FileReader&&window.File)for(var H=L.length,le=Array(H),we=0,De=function(){++we==H&&ki(y,function(){P=z(y.doc,P);var Nt={from:P,to:P,text:y.doc.splitLines(le.filter(function(on){return on!=null}).join(y.doc.lineSeparator())),origin:"paste"};Kn(y.doc,Nt),Es(y.doc,$t(z(y.doc,P),z(y.doc,Cn(Nt))))})()},Pe=function(Nt,on){if(y.options.allowDropFileTypes&&Q(y.options.allowDropFileTypes,Nt.type)==-1){De();return}var yn=new FileReader;yn.onerror=function(){return De()},yn.onload=function(){var Mn=yn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Mn)){De();return}le[on]=Mn,De()},yn.readAsText(Nt)},Qe=0;Qe<L.length;Qe++)Pe(L[Qe],Qe);else{if(y.state.draggingText&&y.doc.sel.contains(P)>-1){y.state.draggingText(t),setTimeout(function(){return y.display.input.focus()},20);return}try{var gt=t.dataTransfer.getData("Text");if(gt){var wt;if(y.state.draggingText&&!y.state.draggingText.copy&&(wt=y.listSelections()),zs(y.doc,$t(P,P)),wt)for(var Qt=0;Qt<wt.length;++Qt)Mr(y.doc,"",wt[Qt].anchor,wt[Qt].head,"drag");y.replaceSelection(gt,"around","paste"),y.display.input.focus()}}catch(Nt){}}}function tu(t,y){if(w&&(!t.state.draggingText||+new Date-eu<100)){it(y);return}if(lt(t,y)||_o(t.display,y))return;if(y.dataTransfer.setData("Text",t.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!a){var P=S("img",null,null,"position: fixed; left: 0; top: 0;");P.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",e&&(P.width=P.height=1,t.display.wrapper.appendChild(P),P._top=P.offsetTop),y.dataTransfer.setDragImage(P,0,0),e&&P.parentNode.removeChild(P)}}function Wu(t,y){var P=On(t,y);if(!P)return;var L=document.createDocumentFragment();zn(t,P,L),t.display.dragCursor||(t.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),u(t.display.dragCursor,L)}function gu(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function yu(t){if(!document.getElementsByClassName)return;for(var y=document.getElementsByClassName("CodeMirror"),P=[],L=0;L<y.length;L++){var H=y[L].CodeMirror;H&&P.push(H)}P.length&&P[0].operation(function(){for(var le=0;le<P.length;le++)t(P[le])})}var rs=!1;function nu(){if(rs)return;zu(),rs=!0}function zu(){var t;Ke(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,yu(Gu)},100))}),Ke(window,"blur",function(){return yu(ri)})}function Gu(t){var y=t.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,t.setSize()}for(var Gs={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Cl=0;Cl<10;Cl++)Gs[Cl+48]=Gs[Cl+96]=String(Cl);for(var kl=65;kl<=90;kl++)Gs[kl]=String.fromCharCode(kl);for(var xl=1;xl<=12;xl++)Gs[xl+111]=Gs[xl+63235]="F"+xl;var Ps={};Ps.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ps.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ps.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ps.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ps.default=c?Ps.macDefault:Ps.pcDefault;function Vu(t){var y=t.split(/-(?!$)/);t=y[y.length-1];for(var P,L,H,le,we=0;we<y.length-1;we++){var De=y[we];if(/^(cmd|meta|m)$/i.test(De))le=!0;else if(/^a(lt)?$/i.test(De))P=!0;else if(/^(c|ctrl|control)$/i.test(De))L=!0;else if(/^s(hift)?$/i.test(De))H=!0;else throw new Error("Unrecognized modifier name: "+De)}return P&&(t="Alt-"+t),L&&(t="Ctrl-"+t),le&&(t="Cmd-"+t),H&&(t="Shift-"+t),t}function Xu(t){var y={};for(var P in t)if(t.hasOwnProperty(P)){var L=t[P];if(/^(name|fallthrough|(de|at)tach)$/.test(P))continue;if(L=="..."){delete t[P];continue}for(var H=Ae(P.split(" "),Vu),le=0;le<H.length;le++){var we=void 0,De=void 0;le==H.length-1?(De=H.join(" "),we=L):(De=H.slice(0,le+1).join(" "),we="...");var Pe=y[De];if(!Pe)y[De]=we;else if(Pe!=we)throw new Error("Inconsistent bindings for "+De)}delete t[P]}for(var Qe in y)t[Qe]=y[Qe];return t}function rl(t,y,P,L){y=qa(y);var H=y.call?y.call(t,L):y[t];if(H===!1)return"nothing";if(H==="...")return"multi";if(H!=null&&P(H))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return rl(t,y.fallthrough,P,L);for(var le=0;le<y.fallthrough.length;le++){var we=rl(t,y.fallthrough[le],P,L);if(we)return we}}}function bu(t){var y=typeof t=="string"?t:Gs[t.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function Fl(t,y,P){var L=t;return y.altKey&&L!="Alt"&&(t="Alt-"+t),(_?y.metaKey:y.ctrlKey)&&L!="Ctrl"&&(t="Ctrl-"+t),(_?y.ctrlKey:y.metaKey)&&L!="Mod"&&(t="Cmd-"+t),!P&&y.shiftKey&&L!="Shift"&&(t="Shift-"+t),t}function ru(t,y){if(e&&t.keyCode==34&&t.char)return!1;var P=Gs[t.keyCode];return P==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(P=t.code),Fl(P,t,y))}function qa(t){return typeof t=="string"?Ps[t]:t}function Os(t,y){for(var P=t.doc.sel.ranges,L=[],H=0;H<P.length;H++){for(var le=y(P[H]);L.length&&Fe(le.from,ge(L).to)<=0;){var we=L.pop();if(Fe(we.from,le.from)<0){le.from=we.from;break}}L.push(le)}ya(t,function(){for(var De=L.length-1;De>=0;De--)Mr(t.doc,"",L[De].from,L[De].to,"+delete");io(t)})}function iu(t,y,P){var L=W(t.text,y+P,P);return L<0||L>t.text.length?null:L}function au(t,y,P){var L=iu(t,y.ch,P);return L==null?null:new Le(y.line,L,P<0?"after":"before")}function Nl(t,y,P,L,H){if(t){y.doc.direction=="rtl"&&(H=-H);var le=_t(P,y.doc.direction);if(le){var we=H<0?ge(le):le[0],De=H<0==(we.level==1),Pe=De?"after":"before",Qe;if(we.level>0||y.doc.direction=="rtl"){var gt=ot(y,P);Qe=H<0?P.text.length-1:0;var wt=dt(y,gt,Qe).top;Qe=he(function(Qt){return dt(y,gt,Qt).top==wt},H<0==(we.level==1)?we.from:we.to-1,Qe),Pe=="before"&&(Qe=iu(P,Qe,1))}else Qe=H<0?we.to:we.from;return new Le(L,Qe,Pe)}}return new Le(L,H<0?P.text.length:0,H<0?"before":"after")}function ou(t,y,P,L){var H=_t(y,t.doc.direction);if(!H)return au(y,P,L);P.ch>=y.text.length?(P.ch=y.text.length,P.sticky="before"):P.ch<=0&&(P.ch=0,P.sticky="after");var le=Ie(H,P.ch,P.sticky),we=H[le];if(t.doc.direction=="ltr"&&we.level%2==0&&(L>0?we.to>P.ch:we.from<P.ch))return au(y,P,L);var De=function(Gn,ar){return iu(y,Gn instanceof Le?Gn.ch:Gn,ar)},Pe,Qe=function(Gn){return t.options.lineWrapping?(Pe=Pe||ot(t,y),dn(t,y,Pe,Gn)):{begin:0,end:y.text.length}},gt=Qe(P.sticky=="before"?De(P,-1):P.ch);if(t.doc.direction=="rtl"||we.level==1){var wt=we.level==1==L<0,Qt=De(P,wt?1:-1);if(Qt!=null&&(wt?Qt<=we.to&&Qt<=gt.end:Qt>=we.from&&Qt>=gt.begin)){var Nt=wt?"before":"after";return new Le(P.line,Qt,Nt)}}var on=function(Gn,ar,Xn){for(var pr=function(ca,so){return so?new Le(P.line,De(ca,1),"before"):new Le(P.line,ca,"after")};Gn>=0&&Gn<H.length;Gn+=ar){var Hr=H[Gn],Lr=ar>0==(Hr.level!=1),mi=Lr?Xn.begin:De(Xn.end,-1);if(Hr.from<=mi&&mi<Hr.to)return pr(mi,Lr);if(mi=Lr?Hr.from:De(Hr.to,-1),Xn.begin<=mi&&mi<Xn.end)return pr(mi,Lr)}},yn=on(le+L,L,gt);if(yn)return yn;var Mn=L>0?gt.end:De(gt.begin,-1);return Mn!=null&&!(L>0&&Mn==y.text.length)&&(yn=on(L>0?0:H.length-1,L,Qe(Mn)),yn)?yn:null}var wl={selectAll:Ti,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),ue)},killLine:function(t){return Os(t,function(y){if(y.empty()){var P=Rn(t.doc,y.head.line).text.length;return y.head.ch==P&&y.head.line<t.lastLine()?{from:y.head,to:Le(y.head.line+1,0)}:{from:y.head,to:Le(y.head.line,P)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(t){return Os(t,function(y){return{from:Le(y.from().line,0),to:z(t.doc,Le(y.to().line+1,0))}})},delLineLeft:function(t){return Os(t,function(y){return{from:Le(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(t){return Os(t,function(y){var P=t.charCoords(y.head,"div").top+5,L=t.coordsChar({left:0,top:P},"div");return{from:L,to:y.from()}})},delWrappedLineRight:function(t){return Os(t,function(y){var P=t.charCoords(y.head,"div").top+5,L=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:P},"div");return{from:y.from(),to:L}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(Le(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(Le(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(y){return Eu(t,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(y){return Cu(t,y.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(y){return Yu(t,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(y){var P=t.cursorCoords(y.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:P},"div")},de)},goLineLeft:function(t){return t.extendSelectionsBy(function(y){var P=t.cursorCoords(y.head,"div").top+5;return t.coordsChar({left:0,top:P},"div")},de)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(y){var P=t.cursorCoords(y.head,"div").top+5,L=t.coordsChar({left:0,top:P},"div");return L.ch<t.getLine(L.line).search(/\S/)?Cu(t,y.head):L},de)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var y=[],P=t.listSelections(),L=t.options.tabSize,H=0;H<P.length;H++){var le=P[H].from(),we=V(t.getLine(le.line),le.ch,L);y.push(Ee(L-we%L))}t.replaceSelections(y)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return ya(t,function(){for(var y=t.listSelections(),P=[],L=0;L<y.length;L++){if(!y[L].empty())continue;var H=y[L].head,le=Rn(t.doc,H.line).text;if(le){if(H.ch==le.length&&(H=new Le(H.line,H.ch-1)),H.ch>0)H=new Le(H.line,H.ch+1),t.replaceRange(le.charAt(H.ch-1)+le.charAt(H.ch-2),Le(H.line,H.ch-2),H,"+transpose");else if(H.line>t.doc.first){var we=Rn(t.doc,H.line-1).text;we&&(H=new Le(H.line,1),t.replaceRange(le.charAt(0)+t.doc.lineSeparator()+we.charAt(we.length-1),Le(H.line-1,we.length-1),H,"+transpose"))}}P.push(new Sn(H,H))}t.setSelections(P)})},newlineAndIndent:function(t){return ya(t,function(){for(var y=t.listSelections(),P=y.length-1;P>=0;P--)t.replaceRange(t.doc.lineSeparator(),y[P].anchor,y[P].head,"+input");y=t.listSelections();for(var L=0;L<y.length;L++)t.indentLine(y[L].from().line,null,!0);io(t)})},openLine:function(t){return t.replaceSelection(`
`,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Eu(t,y){var P=Rn(t.doc,y),L=va(P);return L!=P&&(y=kr(L)),Nl(!0,t,L,y,1)}function Yu(t,y){var P=Rn(t.doc,y),L=vo(P);return L!=P&&(y=kr(L)),Nl(!0,t,P,y,-1)}function Cu(t,y){var P=Eu(t,y.line),L=Rn(t.doc,P.line),H=_t(L,t.doc.direction);if(!H||H[0].level==0){var le=Math.max(P.ch,L.text.search(/\S/)),we=y.line==P.line&&y.ch<=le&&y.ch;return Le(P.line,we?0:le,P.sticky)}return P}function jl(t,y,P){if(typeof y=="string"&&(y=wl[y],!y))return!1;t.display.input.ensurePolled();var L=t.display.shift,H=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),P&&(t.display.shift=!1),H=y(t)!=ne}finally{t.display.shift=L,t.state.suppressEdits=!1}return H}function Ju(t,y,P){for(var L=0;L<t.state.keyMaps.length;L++){var H=rl(y,t.state.keyMaps[L],P,t);if(H)return H}return t.options.extraKeys&&rl(y,t.options.extraKeys,P,t)||rl(y,t.options.keyMap,P,t)}var Zu=new N;function _l(t,y,P,L){var H=t.state.keySeq;if(H){if(bu(y))return"handled";if(/\'$/.test(y)?t.state.keySeq=null:Zu.set(50,function(){t.state.keySeq==H&&(t.state.keySeq=null,t.display.input.reset())}),su(t,H+" "+y,P,L))return!0}return su(t,y,P,L)}function su(t,y,P,L){var H=Ju(t,y,L);return H=="multi"&&(t.state.keySeq=y),H=="handled"&&ui(t,"keyHandled",t,y,P),(H=="handled"||H=="multi")&&(Ue(P),mr(t)),!!H}function lu(t,y){var P=ru(y,!0);return P?y.shiftKey&&!t.state.keySeq?_l(t,"Shift-"+P,y,function(L){return jl(t,L,!0)})||_l(t,P,y,function(L){if(typeof L=="string"?/^go[A-Z]/.test(L):L.motion)return jl(t,L)}):_l(t,P,y,function(L){return jl(t,L)}):!1}function xu(t,y,P){return _l(t,"'"+P+"'",y,function(L){return jl(t,L,!0)})}var Hl=null;function Ql(t){var y=this;if(t.target&&t.target!=y.display.input.getField())return;if(y.curOp.focus=I(),lt(y,t))return;w&&m<11&&t.keyCode==27&&(t.returnValue=!1);var P=t.keyCode;y.display.shift=P==16||t.shiftKey;var L=lu(y,t);e&&(Hl=L?P:null,!L&&P==88&&!bt&&(c?t.metaKey:t.ctrlKey)&&y.replaceSelection("",null,"cut")),M&&!c&&!L&&P==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),P==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&$u(y)}function $u(t){var y=t.display.lineDiv;k(y,"CodeMirror-crosshair");function P(L){(L.keyCode==18||!L.altKey)&&(g(y,"CodeMirror-crosshair"),St(document,"keyup",P),St(document,"mouseover",P))}Ke(document,"keyup",P),Ke(document,"mouseover",P)}function wu(t){t.keyCode==16&&(this.doc.sel.shift=!1),lt(this,t)}function _u(t){var y=this;if(t.target&&t.target!=y.display.input.getField())return;if(_o(y.display,t)||lt(y,t)||t.ctrlKey&&!t.altKey||c&&t.metaKey)return;var P=t.keyCode,L=t.charCode;if(e&&P==Hl){Hl=null,Ue(t);return}if(e&&(!t.which||t.which<10)&&lu(y,t))return;var H=String.fromCharCode(L==null?P:L);if(H=="\b")return;if(xu(y,t,H))return;y.display.input.onKeyPress(t)}var qu=400,Al=function(t,y,P){this.time=t,this.pos=y,this.button=P};Al.prototype.compare=function(t,y,P){return this.time+qu>t&&Fe(y,this.pos)==0&&P==this.button};var Vs,Sl;function Su(t,y){var P=+new Date;return Sl&&Sl.compare(P,t,y)?(Vs=Sl=null,"triple"):Vs&&Vs.compare(P,t,y)?(Sl=new Al(P,t,y),Vs=null,"double"):(Vs=new Al(P,t,y),Sl=null,"single")}function Kl(t){var y=this,P=y.display;if(lt(y,t)||P.activeTouch&&P.input.supportsTouch())return;if(P.input.ensurePolled(),P.shift=t.shiftKey,_o(P,t)){d||(P.scroller.draggable=!1,setTimeout(function(){return P.scroller.draggable=!0},100));return}if(uu(y,t))return;var L=On(y,t),H=vt(t),le=L?Su(L,H):"single";if(window.focus(),H==1&&y.state.selectingText&&y.state.selectingText(t),L&&Tu(y,H,L,le,t))return;H==1?L?Ou(y,L,le,t):yt(t)==P.scroller&&Ue(t):H==2?(L&&Bs(y.doc,L),setTimeout(function(){return P.input.focus()},20)):H==3&&(B?y.display.input.onContextMenu(t):Vi(y))}function Tu(t,y,P,L,H){var le="Click";return L=="double"?le="Double"+le:L=="triple"&&(le="Triple"+le),le=(y==1?"Left":y==2?"Middle":"Right")+le,_l(t,Fl(le,H),H,function(we){if(typeof we=="string"&&(we=wl[we]),!we)return!1;var De=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),De=we(t,P)!=ne}finally{t.state.suppressEdits=!1}return De})}function Bu(t,y,P){var L=t.getOption("configureMouse"),H=L?L(t,y,P):{};if(H.unit==null){var le=A?P.shiftKey&&P.metaKey:P.altKey;H.unit=le?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(H.extend==null||t.doc.extend)&&(H.extend=t.doc.extend||P.shiftKey),H.addNew==null&&(H.addNew=c?P.metaKey:P.ctrlKey),H.moveOnDrag==null&&(H.moveOnDrag=!(c?P.altKey:P.ctrlKey)),H}function Ou(t,y,P,L){w?setTimeout(U(Qr,t),0):t.curOp.focus=I();var H=Bu(t,P,L),le=t.doc.sel,we;t.options.dragDrop&&Mt&&!t.isReadOnly()&&P=="single"&&(we=le.contains(y))>-1&&(Fe((we=le.ranges[we]).from(),y)<0||y.xRel>0)&&(Fe(we.to(),y)>0||y.xRel<0)?ec(t,L,y,H):Du(t,L,y,H)}function ec(t,y,P,L){var H=t.display,le=!1,we=ki(t,function(Qe){d&&(H.scroller.draggable=!1),t.state.draggingText=!1,St(H.wrapper.ownerDocument,"mouseup",we),St(H.wrapper.ownerDocument,"mousemove",De),St(H.scroller,"dragstart",Pe),St(H.scroller,"drop",we),le||(Ue(Qe),L.addNew||Bs(t.doc,P,null,null,L.extend),d&&!a||w&&m==9?setTimeout(function(){H.wrapper.ownerDocument.body.focus({preventScroll:!0}),H.input.focus()},20):H.input.focus())}),De=function(Qe){le=le||Math.abs(y.clientX-Qe.clientX)+Math.abs(y.clientY-Qe.clientY)>=10},Pe=function(){return le=!0};d&&(H.scroller.draggable=!0),t.state.draggingText=we,we.copy=!L.moveOnDrag,H.scroller.dragDrop&&H.scroller.dragDrop(),Ke(H.wrapper.ownerDocument,"mouseup",we),Ke(H.wrapper.ownerDocument,"mousemove",De),Ke(H.scroller,"dragstart",Pe),Ke(H.scroller,"drop",we),Vi(t),setTimeout(function(){return H.input.focus()},20)}function Tl(t,y,P){if(P=="char")return new Sn(y,y);if(P=="word")return t.findWordAt(y);if(P=="line")return new Sn(Le(y.line,0),z(t.doc,Le(y.line+1,0)));var L=P(t,y);return new Sn(L.from,L.to)}function Du(t,y,P,L){var H=t.display,le=t.doc;Ue(y);var we,De,Pe=le.sel,Qe=Pe.ranges;if(L.addNew&&!L.extend?(De=le.sel.contains(P),De>-1?we=Qe[De]:we=new Sn(P,P)):(we=le.sel.primary(),De=le.sel.primIndex),L.unit=="rectangle")L.addNew||(we=new Sn(P,P)),P=On(t,y,!0,!0),De=-1;else{var gt=Tl(t,P,L.unit);L.extend?we=Ks(we,gt.anchor,gt.head,L.extend):we=gt}L.addNew?De==-1?(De=Qe.length,Na(le,Ft(t,Qe.concat([we]),De),{scroll:!1,origin:"*mouse"})):Qe.length>1&&Qe[De].empty()&&L.unit=="char"&&!L.extend?(Na(le,Ft(t,Qe.slice(0,De).concat(Qe.slice(De+1)),0),{scroll:!1,origin:"*mouse"}),Pe=le.sel):bs(le,De,we,be):(De=0,Na(le,new $i([we],0),be),Pe=le.sel);var wt=P;function Qt(Xn){if(Fe(wt,Xn)==0)return;if(wt=Xn,L.unit=="rectangle"){for(var pr=[],Hr=t.options.tabSize,Lr=V(Rn(le,P.line).text,P.ch,Hr),mi=V(Rn(le,Xn.line).text,Xn.ch,Hr),ca=Math.min(Lr,mi),so=Math.max(Lr,mi),Ra=Math.min(P.line,Xn.line),Yo=Math.min(t.lastLine(),Math.max(P.line,Xn.line));Ra<=Yo;Ra++){var Co=Rn(le,Ra).text,za=_e(Co,ca,Hr);ca==so?pr.push(new Sn(Le(Ra,za),Le(Ra,za))):Co.length>za&&pr.push(new Sn(Le(Ra,za),Le(Ra,_e(Co,so,Hr))))}pr.length||pr.push(new Sn(P,P)),Na(le,Ft(t,Pe.ranges.slice(0,De).concat(pr),De),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Xn)}else{var xo=we,mo=Tl(t,Xn,L.unit),Hn=xo.anchor,xa;Fe(mo.anchor,Hn)>0?(xa=mo.head,Hn=Xt(xo.from(),mo.anchor)):(xa=mo.anchor,Hn=Wt(xo.to(),mo.head));var wa=Pe.ranges.slice(0);wa[De]=Ru(t,new Sn(z(le,Hn),xa)),Na(le,Ft(t,wa,De),be)}}var Nt=H.wrapper.getBoundingClientRect(),on=0;function yn(Xn){var pr=++on,Hr=On(t,Xn,!0,L.unit=="rectangle");if(!Hr)return;if(Fe(Hr,wt)!=0){t.curOp.focus=I(),Qt(Hr);var Lr=Ki(H,le);(Hr.line>=Lr.to||Hr.line<Lr.from)&&setTimeout(ki(t,function(){on==pr&&yn(Xn)}),150)}else{var mi=Xn.clientY<Nt.top?-20:Xn.clientY>Nt.bottom?20:0;mi&&setTimeout(ki(t,function(){if(on!=pr)return;H.scroller.scrollTop+=mi,yn(Xn)}),50)}}function Mn(Xn){t.state.selectingText=!1,on=Infinity,Xn&&(Ue(Xn),H.input.focus()),St(H.wrapper.ownerDocument,"mousemove",Gn),St(H.wrapper.ownerDocument,"mouseup",ar),le.history.lastSelOrigin=null}var Gn=ki(t,function(Xn){Xn.buttons===0||!vt(Xn)?Mn(Xn):yn(Xn)}),ar=ki(t,Mn);t.state.selectingText=ar,Ke(H.wrapper.ownerDocument,"mousemove",Gn),Ke(H.wrapper.ownerDocument,"mouseup",ar)}function Ru(t,y){var P=y.anchor,L=y.head,H=Rn(t.doc,P.line);if(Fe(P,L)==0&&P.sticky==L.sticky)return y;var le=_t(H);if(!le)return y;var we=Ie(le,P.ch,P.sticky),De=le[we];if(De.from!=P.ch&&De.to!=P.ch)return y;var Pe=we+(De.from==P.ch==(De.level!=1)?0:1);if(Pe==0||Pe==le.length)return y;var Qe;if(L.line!=P.line)Qe=(L.line-P.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var gt=Ie(le,L.ch,L.sticky),wt=gt-we||(L.ch-P.ch)*(De.level==1?-1:1);gt==Pe-1||gt==Pe?Qe=wt<0:Qe=wt>0}var Qt=le[Pe+(Qe?-1:0)],Nt=Qe==(Qt.level==1),on=Nt?Qt.from:Qt.to,yn=Nt?"after":"before";return P.ch==on&&P.sticky==yn?y:new Sn(new Le(P.line,on,yn),L)}function Iu(t,y,P,L){var H,le;if(y.touches)H=y.touches[0].clientX,le=y.touches[0].clientY;else try{H=y.clientX,le=y.clientY}catch(Qt){return!1}if(H>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;L&&Ue(y);var we=t.display,De=we.lineDiv.getBoundingClientRect();if(le>De.bottom||!Ze(t,P))return We(y);le-=De.top-we.viewOffset;for(var Pe=0;Pe<t.display.gutterSpecs.length;++Pe){var Qe=we.gutters.childNodes[Pe];if(Qe&&Qe.getBoundingClientRect().right>=H){var gt=hi(t.doc,le),wt=t.display.gutterSpecs[Pe];return ct(t,P,t,gt,wt.className,y),We(y)}}}function uu(t,y){return Iu(t,y,"gutterClick",!0)}function cu(t,y){if(_o(t.display,y)||pl(t,y))return;if(lt(t,y,"contextmenu"))return;B||t.display.input.onContextMenu(y)}function pl(t,y){return Ze(t,"gutterContextMenu")?Iu(t,y,"gutterContextMenu",!1):!1}function Wl(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),en(t)}var Us={toString:function(){return"CodeMirror.Init"}},Mu={},zl={};function tc(t){var y=t.optionHandlers;function P(L,H,le,we){t.defaults[L]=H,le&&(y[L]=we?function(De,Pe,Qe){Qe!=Us&&le(De,Pe,Qe)}:le)}t.defineOption=P,t.Init=Us,P("value","",function(L,H){return L.setValue(H)},!0),P("mode",null,function(L,H){L.doc.modeOption=H,$r(L)},!0),P("indentUnit",2,$r,!0),P("indentWithTabs",!1),P("smartIndent",!0),P("tabSize",4,function(L){vn(L),en(L),Pr(L)},!0),P("lineSeparator",null,function(L,H){if(L.doc.lineSep=H,!H)return;var le=[],we=L.doc.first;L.doc.iter(function(Pe){for(var Qe=0;;){var gt=Pe.text.indexOf(H,Qe);if(gt==-1)break;Qe=gt+H.length,le.push(Le(we,gt))}we++});for(var De=le.length-1;De>=0;De--)Mr(L.doc,H,le[De],Le(le[De].line,le[De].ch+H.length))}),P("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(L,H,le){L.state.specialChars=new RegExp(H.source+(H.test(" ")?"":"| "),"g"),le!=Us&&L.refresh()}),P("specialCharPlaceholder",Ai,function(L){return L.refresh()},!0),P("electricChars",!0),P("inputStyle",r?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),P("spellcheck",!1,function(L,H){return L.getInputField().spellcheck=H},!0),P("autocorrect",!1,function(L,H){return L.getInputField().autocorrect=H},!0),P("autocapitalize",!1,function(L,H){return L.getInputField().autocapitalize=H},!0),P("rtlMoveVisually",!p),P("wholeLineUpdateBefore",!0),P("theme","default",function(L){Wl(L),Za(L)},!0),P("keyMap","default",function(L,H,le){var we=qa(H),De=le!=Us&&qa(le);De&&De.detach&&De.detach(L,we),we.attach&&we.attach(L,De||null)}),P("extraKeys",null),P("configureMouse",null),P("lineWrapping",!1,Lu,!0),P("gutters",[],function(L,H){L.display.gutterSpecs=xi(H,L.options.lineNumbers),Za(L)},!0),P("fixedGutter",!0,function(L,H){L.display.gutters.style.left=H?ei(L.display)+"px":"0",L.refresh()},!0),P("coverGutterNextToScrollbar",!1,function(L){return Fa(L)},!0),P("scrollbarStyle","native",function(L){ao(L),Fa(L),L.display.scrollbars.setScrollTop(L.doc.scrollTop),L.display.scrollbars.setScrollLeft(L.doc.scrollLeft)},!0),P("lineNumbers",!1,function(L,H){L.display.gutterSpecs=xi(L.options.gutters,H),Za(L)},!0),P("firstLineNumber",1,Za,!0),P("lineNumberFormatter",function(L){return L},Za,!0),P("showCursorWhenSelecting",!1,pn,!0),P("resetSelectionOnContextMenu",!0),P("lineWiseCopyCut",!0),P("pasteLinesPerSelection",!0),P("selectionsMayTouch",!1),P("readOnly",!1,function(L,H){H=="nocursor"&&(ri(L),L.display.input.blur()),L.display.input.readOnlyChanged(H)}),P("screenReaderLabel",null,function(L,H){H=H===""?null:H,L.display.input.screenReaderLabelChanged(H)}),P("disableInput",!1,function(L,H){H||L.display.input.reset()},!0),P("dragDrop",!0,nc),P("allowDropFileTypes",null),P("cursorBlinkRate",530),P("cursorScrollMargin",0),P("cursorHeight",1,pn,!0),P("singleCursorHeightPerLine",!0,pn,!0),P("workTime",100),P("workDelay",100),P("flattenSpans",!0,vn,!0),P("addModeClass",!1,vn,!0),P("pollInterval",100),P("undoDepth",200,function(L,H){return L.doc.history.undoDepth=H}),P("historyEventDelay",1250),P("viewportMargin",10,function(L){return L.refresh()},!0),P("maxHighlightLength",1e4,vn,!0),P("moveInputWithCursor",!0,function(L,H){H||L.display.input.resetPosition()}),P("tabindex",null,function(L,H){return L.display.input.getField().tabIndex=H||""}),P("autofocus",null),P("direction","ltr",function(L,H){return L.doc.setDirection(H)},!0),P("phrases",null)}function nc(t,y,P){var L=P&&P!=Us;if(!y!=!L){var H=t.display.dragFunctions,le=y?Ke:St;le(t.display.scroller,"dragstart",H.start),le(t.display.scroller,"dragenter",H.enter),le(t.display.scroller,"dragover",H.over),le(t.display.scroller,"dragleave",H.leave),le(t.display.scroller,"drop",H.drop)}}function Lu(t){t.options.lineWrapping?(k(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(g(t.display.wrapper,"CodeMirror-wrap"),Jo(t)),yr(t),Pr(t),en(t),setTimeout(function(){return Fa(t)},100)}function ma(t,y){var P=this;if(!(this instanceof ma))return new ma(t,y);this.options=y=y?K(y):{},K(Mu,y,!1);var L=y.value;typeof L=="string"?L=new Bo(L,y.mode,null,y.lineSeparator,y.direction):y.mode&&(L.modeOption=y.mode),this.doc=L;var H=new ma.inputStyles[y.inputStyle](this),le=this.display=new Eo(t,L,H,y);le.wrapper.CodeMirror=this,Wl(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ao(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 N,keySeq:null,specialChars:null},y.autofocus&&!r&&le.input.focus(),w&&m<11&&setTimeout(function(){return P.display.input.reset(!0)},20),Pu(this),nu(),Wa(this),this.curOp.forceUpdate=!0,di(this,L),y.autofocus&&!r||this.hasFocus()?setTimeout(function(){P.hasFocus()&&!P.state.focused&&Ri(P)},20):ri(this);for(var we in zl)zl.hasOwnProperty(we)&&zl[we](this,y[we],Us);ua(this),y.finishInit&&y.finishInit(this);for(var De=0;De<Gl.length;++De)Gl[De](this);Ta(this),d&&y.lineWrapping&&getComputedStyle(le.lineDiv).textRendering=="optimizelegibility"&&(le.lineDiv.style.textRendering="auto")}ma.defaults=Mu,ma.optionHandlers=zl;function Pu(t){var y=t.display;Ke(y.scroller,"mousedown",ki(t,Kl)),w&&m<11?Ke(y.scroller,"dblclick",ki(t,function(Pe){if(lt(t,Pe))return;var Qe=On(t,Pe);if(!Qe||uu(t,Pe)||_o(t.display,Pe))return;Ue(Pe);var gt=t.findWordAt(Qe);Bs(t.doc,gt.anchor,gt.head)})):Ke(y.scroller,"dblclick",function(Pe){return lt(t,Pe)||Ue(Pe)}),Ke(y.scroller,"contextmenu",function(Pe){return cu(t,Pe)}),Ke(y.input.getField(),"contextmenu",function(Pe){y.scroller.contains(Pe.target)||cu(t,Pe)});var P,L={end:0};function H(){y.activeTouch&&(P=setTimeout(function(){return y.activeTouch=null},1e3),L=y.activeTouch,L.end=+new Date)}function le(Pe){if(Pe.touches.length!=1)return!1;var Qe=Pe.touches[0];return Qe.radiusX<=1&&Qe.radiusY<=1}function we(Pe,Qe){if(Qe.left==null)return!0;var gt=Qe.left-Pe.left,wt=Qe.top-Pe.top;return gt*gt+wt*wt>20*20}Ke(y.scroller,"touchstart",function(Pe){if(!lt(t,Pe)&&!le(Pe)&&!uu(t,Pe)){y.input.ensurePolled(),clearTimeout(P);var Qe=+new Date;y.activeTouch={start:Qe,moved:!1,prev:Qe-L.end<=300?L:null},Pe.touches.length==1&&(y.activeTouch.left=Pe.touches[0].pageX,y.activeTouch.top=Pe.touches[0].pageY)}}),Ke(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Ke(y.scroller,"touchend",function(Pe){var Qe=y.activeTouch;if(Qe&&!_o(y,Pe)&&Qe.left!=null&&!Qe.moved&&new Date-Qe.start<300){var gt=t.coordsChar(y.activeTouch,"page"),wt;!Qe.prev||we(Qe,Qe.prev)?wt=new Sn(gt,gt):!Qe.prev.prev||we(Qe,Qe.prev.prev)?wt=t.findWordAt(gt):wt=new Sn(Le(gt.line,0),z(t.doc,Le(gt.line+1,0))),t.setSelection(wt.anchor,wt.head),t.focus(),Ue(Pe)}H()}),Ke(y.scroller,"touchcancel",H),Ke(y.scroller,"scroll",function(){y.scroller.clientHeight&&(ho(t,y.scroller.scrollTop),Ma(t,y.scroller.scrollLeft,!0),ct(t,"scroll",t))}),Ke(y.scroller,"mousewheel",function(Pe){return gs(t,Pe)}),Ke(y.scroller,"DOMMouseScroll",function(Pe){return gs(t,Pe)}),Ke(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(Pe){lt(t,Pe)||it(Pe)},over:function(Pe){lt(t,Pe)||(Wu(t,Pe),it(Pe))},start:function(Pe){return tu(t,Pe)},drop:ki(t,vu),leave:function(Pe){lt(t,Pe)||gu(t)}};var De=y.input.getField();Ke(De,"keyup",function(Pe){return wu.call(t,Pe)}),Ke(De,"keydown",ki(t,Ql)),Ke(De,"keypress",ki(t,_u)),Ke(De,"focus",function(Pe){return Ri(t,Pe)}),Ke(De,"blur",function(Pe){return ri(t,Pe)})}var Gl=[];ma.defineInitHook=function(t){return Gl.push(t)};function il(t,y,P,L){var H=t.doc,le;P==null&&(P="add"),P=="smart"&&(H.mode.indent?le=ln(t,y).state:P="prev");var we=t.options.tabSize,De=Rn(H,y),Pe=V(De.text,null,we);De.stateAfter&&(De.stateAfter=null);var Qe=De.text.match(/^\s*/)[0],gt;if(!L&&!/\S/.test(De.text))gt=0,P="not";else if(P=="smart"&&(gt=H.mode.indent(le,De.text.slice(Qe.length),De.text),gt==ne||gt>150)){if(!L)return;P="prev"}P=="prev"?y>H.first?gt=V(Rn(H,y-1).text,null,we):gt=0:P=="add"?gt=Pe+t.options.indentUnit:P=="subtract"?gt=Pe-t.options.indentUnit:typeof P=="number"&&(gt=Pe+P),gt=Math.max(0,gt);var wt="",Qt=0;if(t.options.indentWithTabs)for(var Nt=Math.floor(gt/we);Nt;--Nt)Qt+=we,wt+=" ";if(Qt<gt&&(wt+=Ee(gt-Qt)),wt!=Qe)return Mr(H,wt,Le(y,0),Le(y,Qe.length),"+input"),De.stateAfter=null,!0;for(var on=0;on<H.sel.ranges.length;on++){var yn=H.sel.ranges[on];if(yn.head.line==y&&yn.head.ch<Qe.length){var Mn=Le(y,Qe.length);bs(H,on,new Sn(Mn,Mn));break}}}var fs=null;function Bl(t){fs=t}function du(t,y,P,L,H){var le=t.doc;t.display.shift=!1,L||(L=le.sel);var we=+new Date-200,De=H=="paste"||t.state.pasteIncoming>we,Pe=Bt(y),Qe=null;if(De&&L.ranges.length>1)if(fs&&fs.text.join(`
`)==y){if(L.ranges.length%fs.text.length==0){Qe=[];for(var gt=0;gt<fs.text.length;gt++)Qe.push(le.splitLines(fs.text[gt]))}}else Pe.length==L.ranges.length&&t.options.pasteLinesPerSelection&&(Qe=Ae(Pe,function(Gn){return[Gn]}));for(var wt=t.curOp.updateInput,Qt=L.ranges.length-1;Qt>=0;Qt--){var Nt=L.ranges[Qt],on=Nt.from(),yn=Nt.to();Nt.empty()&&(P&&P>0?on=Le(on.line,on.ch-P):t.state.overwrite&&!De?yn=Le(yn.line,Math.min(Rn(le,yn.line).text.length,yn.ch+ge(Pe).length)):De&&fs&&fs.lineWise&&fs.text.join(`
`)==Pe.join(`
`)&&(on=yn=Le(on.line,0)));var Mn={from:on,to:yn,text:Qe?Qe[Qt%Qe.length]:Pe,origin:H||(De?"paste":t.state.cutIncoming>we?"cut":"+input")};Kn(t.doc,Mn),ui(t,"inputRead",t,Mn)}y&&!De&&Dl(t,y),io(t),t.curOp.updateInput<2&&(t.curOp.updateInput=wt),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ol(t,y){var P=t.clipboardData&&t.clipboardData.getData("Text");if(P)return t.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&ya(y,function(){return du(y,P,0,null,"paste")}),!0}function Dl(t,y){if(!t.options.electricChars||!t.options.smartIndent)return;for(var P=t.doc.sel,L=P.ranges.length-1;L>=0;L--){var H=P.ranges[L];if(H.head.ch>100||L&&P.ranges[L-1].head.line==H.head.line)continue;var le=t.getModeAt(H.head),we=!1;if(le.electricChars){for(var De=0;De<le.electricChars.length;De++)if(y.indexOf(le.electricChars.charAt(De))>-1){we=il(t,H.head.line,"smart");break}}else le.electricInput&&(le.electricInput.test(Rn(t.doc,H.head.line).text.slice(0,H.head.ch))&&(we=il(t,H.head.line,"smart")));we&&ui(t,"electricInput",t,H.head.line)}}function hu(t){for(var y=[],P=[],L=0;L<t.doc.sel.ranges.length;L++){var H=t.doc.sel.ranges[L].head.line,le={anchor:Le(H,0),head:Le(H+1,0)};P.push(le),y.push(t.getRange(le.anchor,le.head))}return{text:y,ranges:P}}function fu(t,y,P,L){t.setAttribute("autocorrect",P?"":"off"),t.setAttribute("autocapitalize",L?"":"off"),t.setAttribute("spellcheck",!!y)}function Uu(){var t=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=S("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return d?t.style.width="1000px":t.setAttribute("wrap","off"),f&&(t.style.border="1px solid black"),fu(t),y}function ku(t){var y=t.optionHandlers,P=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(L,H){var le=this.options,we=le[L];if(le[L]==H&&L!="mode")return;le[L]=H,y.hasOwnProperty(L)&&ki(this,y[L])(this,H,we),ct(this,"optionChange",this,L)},getOption:function(L){return this.options[L]},getDoc:function(){return this.doc},addKeyMap:function(L,H){this.state.keyMaps[H?"push":"unshift"](qa(L))},removeKeyMap:function(L){for(var H=this.state.keyMaps,le=0;le<H.length;++le)if(H[le]==L||H[le].name==L)return H.splice(le,1),!0},addOverlay:la(function(L,H){var le=L.token?L:t.getMode(this.options,L);if(le.startState)throw new Error("Overlays may not be stateful.");ae(this.state.overlays,{mode:le,modeSpec:L,opaque:H&&H.opaque,priority:H&&H.priority||0},function(we){return we.priority}),this.state.modeGen++,Pr(this)}),removeOverlay:la(function(L){for(var H=this.state.overlays,le=0;le<H.length;++le){var we=H[le].modeSpec;if(we==L||typeof L=="string"&&we.name==L){H.splice(le,1),this.state.modeGen++,Pr(this);return}}}),indentLine:la(function(L,H,le){typeof H!="string"&&typeof H!="number"&&(H==null?H=this.options.smartIndent?"smart":"prev":H=H?"add":"subtract"),Ui(this.doc,L)&&il(this,L,H,le)}),indentSelection:la(function(L){for(var H=this.doc.sel.ranges,le=-1,we=0;we<H.length;we++){var De=H[we];if(De.empty())De.head.line>le&&(il(this,De.head.line,L,!0),le=De.head.line,we==this.doc.sel.primIndex&&io(this));else{var Pe=De.from(),Qe=De.to(),gt=Math.max(le,Pe.line);le=Math.min(this.lastLine(),Qe.line-(Qe.ch?0:1))+1;for(var wt=gt;wt<le;++wt)il(this,wt,L);var Qt=this.doc.sel.ranges;Pe.ch==0&&H.length==Qt.length&&Qt[we].from().ch>0&&bs(this.doc,we,new Sn(Pe,Qt[we].to()),ue)}}}),getTokenAt:function(L,H){return nr(this,L,H)},getLineTokens:function(L,H){return nr(this,Le(L),H,!0)},getTokenTypeAt:function(L){L=z(this.doc,L);var H=zt(this,Rn(this.doc,L.line)),le=0,we=(H.length-1)/2,De=L.ch,Pe;if(De==0)Pe=H[2];else for(;;){var Qe=le+we>>1;if((Qe?H[Qe*2-1]:0)>=De)we=Qe;else if(H[Qe*2+1]<De)le=Qe+1;else{Pe=H[Qe*2+2];break}}var gt=Pe?Pe.indexOf("overlay "):-1;return gt<0?Pe:gt==0?null:Pe.slice(0,gt-1)},getModeAt:function(L){var H=this.doc.mode;return H.innerMode?t.innerMode(H,this.getTokenAt(L).state).mode:H},getHelper:function(L,H){return this.getHelpers(L,H)[0]},getHelpers:function(L,H){var le=[];if(!P.hasOwnProperty(H))return le;var we=P[H],De=this.getModeAt(L);if(typeof De[H]=="string")we[De[H]]&&le.push(we[De[H]]);else if(De[H])for(var Pe=0;Pe<De[H].length;Pe++){var Qe=we[De[H][Pe]];Qe&&le.push(Qe)}else De.helperType&&we[De.helperType]?le.push(we[De.helperType]):we[De.name]&&le.push(we[De.name]);for(var gt=0;gt<we._global.length;gt++){var wt=we._global[gt];wt.pred(De,this)&&Q(le,wt.val)==-1&&le.push(wt.val)}return le},getStateAfter:function(L,H){var le=this.doc;return L=pe(le,L==null?le.first+le.size-1:L),ln(this,L+1,H).state},cursorCoords:function(L,H){var le,we=this.doc.sel.primary();return L==null?le=we.head:typeof L=="object"?le=z(this.doc,L):le=L?we.from():we.to(),an(this,le,H||"page")},charCoords:function(L,H){return Vn(this,z(this.doc,L),H||"page")},coordsChar:function(L,H){return L=Ln(this,L,H||"page"),wn(this,L.left,L.top)},lineAtHeight:function(L,H){return L=Ln(this,{top:L,left:0},H||"page").top,hi(this.doc,L+this.display.viewOffset)},heightAtLine:function(L,H,le){var we=!1,De;if(typeof L=="number"){var Pe=this.doc.first+this.doc.size-1;L<this.doc.first?L=this.doc.first:L>Pe&&(L=Pe,we=!0),De=Rn(this.doc,L)}else De=L;return En(this,De,{top:0,left:0},H||"page",le||we).top+(we?this.doc.height-eo(De):0)},defaultTextHeight:function(){return Nr(this.display)},defaultCharWidth:function(){return Qn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(L,H,le,we,De){var Pe=this.display;L=an(this,z(this.doc,L));var Qe=L.bottom,gt=L.left;if(H.style.position="absolute",H.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(H),Pe.sizer.appendChild(H),we=="over")Qe=L.top;else if(we=="above"||we=="near"){var wt=Math.max(Pe.wrapper.clientHeight,this.doc.height),Qt=Math.max(Pe.sizer.clientWidth,Pe.lineSpace.clientWidth);(we=="above"||L.bottom+H.offsetHeight>wt)&&L.top>H.offsetHeight?Qe=L.top-H.offsetHeight:L.bottom+H.offsetHeight<=wt&&(Qe=L.bottom),gt+H.offsetWidth>Qt&&(gt=Qt-H.offsetWidth)}H.style.top=Qe+"px",H.style.left=H.style.right="",De=="right"?(gt=Pe.sizer.clientWidth-H.offsetWidth,H.style.right="0px"):(De=="left"?gt=0:De=="middle"&&(gt=(Pe.sizer.clientWidth-H.offsetWidth)/2),H.style.left=gt+"px"),le&&Da(this,{left:gt,top:Qe,right:gt+H.offsetWidth,bottom:Qe+H.offsetHeight})},triggerOnKeyDown:la(Ql),triggerOnKeyPress:la(_u),triggerOnKeyUp:wu,triggerOnMouseDown:la(Kl),execCommand:function(L){if(wl.hasOwnProperty(L))return wl[L].call(null,this)},triggerElectric:la(function(L){Dl(this,L)}),findPosH:function(L,H,le,we){var De=1;H<0&&(De=-1,H=-H);for(var Pe=z(this.doc,L),Qe=0;Qe<H&&!(Pe=Vl(this.doc,Pe,De,le,we),Pe.hitSide);++Qe);return Pe},moveH:la(function(L,H){var le=this;this.extendSelectionsBy(function(we){return le.display.shift||le.doc.extend||we.empty()?Vl(le.doc,we.head,L,H,le.options.rtlMoveVisually):L<0?we.from():we.to()},de)}),deleteH:la(function(L,H){var le=this.doc.sel,we=this.doc;le.somethingSelected()?we.replaceSelection("",null,"+delete"):Os(this,function(De){var Pe=Vl(we,De.head,L,H,!1);return L<0?{from:Pe,to:De.head}:{from:De.head,to:Pe}})}),findPosV:function(L,H,le,we){var De=1,Pe=we;H<0&&(De=-1,H=-H);for(var Qe=z(this.doc,L),gt=0;gt<H;++gt){var wt=an(this,Qe,"div");if(Pe==null?Pe=wt.left:wt.left=Pe,Qe=Fu(this,wt,De,le),Qe.hitSide)break}return Qe},moveV:la(function(L,H){var le=this,we=this.doc,De=[],Pe=!this.display.shift&&!we.extend&&we.sel.somethingSelected();if(we.extendSelectionsBy(function(gt){if(Pe)return L<0?gt.from():gt.to();var wt=an(le,gt.head,"div");gt.goalColumn!=null&&(wt.left=gt.goalColumn),De.push(wt.left);var Qt=Fu(le,wt,L,H);return H=="page"&&gt==we.sel.primary()&&Mo(le,Vn(le,Qt,"div").top-wt.top),Qt},de),De.length)for(var Qe=0;Qe<we.sel.ranges.length;Qe++)we.sel.ranges[Qe].goalColumn=De[Qe]}),findWordAt:function(L){var H=this.doc,le=Rn(H,L.line).text,we=L.ch,De=L.ch;if(le){var Pe=this.getHelper(L,"wordChars");(L.sticky=="before"||De==le.length)&&we?--we:++De;for(var Qe=le.charAt(we),gt=Re(Qe,Pe)?function(wt){return Re(wt,Pe)}:/\s/.test(Qe)?function(wt){return/\s/.test(wt)}:function(wt){return!/\s/.test(wt)&&!Re(wt)};we>0&&gt(le.charAt(we-1));)--we;for(;De<le.length&&gt(le.charAt(De));)++De}return new Sn(Le(L.line,we),Le(L.line,De))},toggleOverwrite:function(L){if(L!=null&&L==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?k(this.display.cursorDiv,"CodeMirror-overwrite"):g(this.display.cursorDiv,"CodeMirror-overwrite"),ct(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==I()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:la(function(L,H){Ia(this,L,H)}),getScrollInfo:function(){var L=this.display.scroller;return{left:L.scrollLeft,top:L.scrollTop,height:L.scrollHeight-Ye(this)-this.display.barHeight,width:L.scrollWidth-Ye(this)-this.display.barWidth,clientHeight:Be(this),clientWidth:Je(this)}},scrollIntoView:la(function(L,H){L==null?(L={from:this.doc.sel.primary().head,to:null},H==null&&(H=this.options.cursorScrollMargin)):typeof L=="number"?L={from:Le(L,0),to:null}:L.from==null&&(L={from:L,to:null}),L.to||(L.to=L.from),L.margin=H||0,L.from.line!=null?ka(this,L):co(this,L.from,L.to,L.margin)}),setSize:la(function(L,H){var le=this,we=function(Pe){return typeof Pe=="number"||/^\d+$/.test(String(Pe))?Pe+"px":Pe};L!=null&&(this.display.wrapper.style.width=we(L)),H!=null&&(this.display.wrapper.style.height=we(H)),this.options.lineWrapping&&Yt(this);var De=this.display.viewFrom;this.doc.iter(De,this.display.viewTo,function(Pe){if(Pe.widgets){for(var Qe=0;Qe<Pe.widgets.length;Qe++)if(Pe.widgets[Qe].noHScroll){jn(le,De,"widget");break}}++De}),this.curOp.forceUpdate=!0,ct(this,"refresh",this)}),operation:function(L){return ya(this,L)},startOperation:function(){return Wa(this)},endOperation:function(){return Ta(this)},refresh:la(function(){var L=this.display.cachedTextHeight;Pr(this),this.curOp.forceUpdate=!0,en(this),Ia(this,this.doc.scrollLeft,this.doc.scrollTop),ts(this.display),(L==null||Math.abs(L-Nr(this.display))>.5||this.options.lineWrapping)&&yr(this),ct(this,"refresh",this)}),swapDoc:la(function(L){var H=this.doc;return H.cm=null,this.state.selectingText&&this.state.selectingText(),di(this,L),en(this),this.display.input.reset(),Ia(this,L.scrollLeft,L.scrollTop),this.curOp.forceScroll=!0,ui(this,"swapDoc",this,H),H}),phrase:function(L){var H=this.options.phrases;return H&&Object.prototype.hasOwnProperty.call(H,L)?H[L]:L},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}},$e(t),t.registerHelper=function(L,H,le){P.hasOwnProperty(L)||(P[L]=t[L]={_global:[]}),P[L][H]=le},t.registerGlobalHelper=function(L,H,le,we){t.registerHelper(L,H,we),P[L]._global.push({pred:le,val:we})}}function Vl(t,y,P,L,H){var le=y,we=P,De=Rn(t,y.line),Pe=H&&t.direction=="rtl"?-P:P;function Qe(){var ar=y.line+Pe;return ar<t.first||ar>=t.first+t.size?!1:(y=new Le(ar,y.ch,y.sticky),De=Rn(t,ar))}function gt(ar){var Xn;if(L=="codepoint"){var pr=De.text.charCodeAt(y.ch+(L>0?0:-1));isNaN(pr)?Xn=null:Xn=new Le(y.line,Math.max(0,Math.min(De.text.length,y.ch+P*(pr>=55296&&pr<56320?2:1))),-P)}else H?Xn=ou(t.cm,De,y,P):Xn=au(De,y,P);if(Xn==null)if(!ar&&Qe())y=Nl(H,t.cm,De,y.line,Pe);else return!1;else y=Xn;return!0}if(L=="char"||L=="codepoint")gt();else if(L=="column")gt(!0);else if(L=="word"||L=="group")for(var wt=null,Qt=L=="group",Nt=t.cm&&t.cm.getHelper(y,"wordChars"),on=!0;!(P<0&&!gt(!on));on=!1){var yn=De.text.charAt(y.ch)||`
`,Mn=Re(yn,Nt)?"w":Qt&&yn==`
`?"n":!Qt||/\s/.test(yn)?null:"p";if(Qt&&!on&&!Mn&&(Mn="s"),wt&&wt!=Mn){P<0&&(P=1,gt(),y.sticky="after");break}if(Mn&&(wt=Mn),P>0&&!gt(!on))break}var Gn=Yr(t,y,le,we,!0);return nt(le,Gn)&&(Gn.hitSide=!0),Gn}function Fu(t,y,P,L){var H=t.doc,le=y.left,we;if(L=="page"){var De=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Pe=Math.max(De-.5*Nr(t.display),3);we=(P>0?y.bottom:y.top)+P*Pe}else L=="line"&&(we=P>0?y.bottom+3:y.top-3);for(var Qe;!(Qe=wn(t,le,we),!Qe.outside);){if(P<0?we<=0:we>=H.height){Qe.hitSide=!0;break}we+=P*5}return Qe}var ea=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new N,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ea.prototype.init=function(t){var y=this,P=this,L=P.cm,H=P.div=t.lineDiv;fu(H,L.options.spellcheck,L.options.autocorrect,L.options.autocapitalize);function le(De){for(var Pe=De.target;Pe;Pe=Pe.parentNode){if(Pe==H)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Pe.className))break}return!1}Ke(H,"paste",function(De){if(!le(De)||lt(L,De)||Ol(De,L))return;m<=11&&setTimeout(ki(L,function(){return y.updateFromDOM()}),20)}),Ke(H,"compositionstart",function(De){y.composing={data:De.data,done:!1}}),Ke(H,"compositionupdate",function(De){y.composing||(y.composing={data:De.data,done:!1})}),Ke(H,"compositionend",function(De){y.composing&&(De.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Ke(H,"touchstart",function(){return P.forceCompositionEnd()}),Ke(H,"input",function(){y.composing||y.readFromDOMSoon()});function we(De){if(!le(De)||lt(L,De))return;if(L.somethingSelected())Bl({lineWise:!1,text:L.getSelections()}),De.type=="cut"&&L.replaceSelection("",null,"cut");else if(L.options.lineWiseCopyCut){var Pe=hu(L);Bl({lineWise:!0,text:Pe.text}),De.type=="cut"&&L.operation(function(){L.setSelections(Pe.ranges,0,ue),L.replaceSelection("",null,"cut")})}else return;if(De.clipboardData){De.clipboardData.clearData();var Qe=fs.text.join(`
`);if(De.clipboardData.setData("Text",Qe),De.clipboardData.getData("Text")==Qe){De.preventDefault();return}}var gt=Uu(),wt=gt.firstChild;L.display.lineSpace.insertBefore(gt,L.display.lineSpace.firstChild),wt.value=fs.text.join(`
`);var Qt=document.activeElement;X(wt),setTimeout(function(){L.display.lineSpace.removeChild(gt),Qt.focus(),Qt==H&&P.showPrimarySelection()},50)}Ke(H,"copy",we),Ke(H,"cut",we)},ea.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},ea.prototype.prepareSelection=function(){var t=sn(this.cm,!1);return t.focus=document.activeElement==this.div,t},ea.prototype.showSelection=function(t,y){if(!t||!this.cm.display.view.length)return;(t.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(t)},ea.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ea.prototype.showPrimarySelection=function(){var t=this.getSelection(),y=this.cm,P=y.doc.sel.primary(),L=P.from(),H=P.to();if(y.display.viewTo==y.display.viewFrom||L.line>=y.display.viewTo||H.line<y.display.viewFrom){t.removeAllRanges();return}var le=ks(y,t.anchorNode,t.anchorOffset),we=ks(y,t.focusNode,t.focusOffset);if(le&&!le.bad&&we&&!we.bad&&Fe(Xt(le,we),L)==0&&Fe(Wt(le,we),H)==0)return;var De=y.display.view,Pe=L.line>=y.display.viewFrom&&al(y,L)||{node:De[0].measure.map[2],offset:0},Qe=H.line<y.display.viewTo&&al(y,H);if(!Qe){var gt=De[De.length-1].measure,wt=gt.maps?gt.maps[gt.maps.length-1]:gt.map;Qe={node:wt[wt.length-1],offset:wt[wt.length-2]-wt[wt.length-3]}}if(!Pe||!Qe){t.removeAllRanges();return}var Qt=t.rangeCount&&t.getRangeAt(0),Nt;try{Nt=T(Pe.node,Pe.offset,Qe.offset,Qe.node)}catch(on){}Nt&&(!M&&y.state.focused?(t.collapse(Pe.node,Pe.offset),Nt.collapsed||(t.removeAllRanges(),t.addRange(Nt))):(t.removeAllRanges(),t.addRange(Nt)),Qt&&t.anchorNode==null?t.addRange(Qt):M&&this.startGracePeriod()),this.rememberSelection()},ea.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},ea.prototype.showMultipleSelections=function(t){u(this.cm.display.cursorDiv,t.cursors),u(this.cm.display.selectionDiv,t.selection)},ea.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},ea.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var y=t.getRangeAt(0).commonAncestorContainer;return D(this.div,y)},ea.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ea.prototype.blur=function(){this.div.blur()},ea.prototype.getField=function(){return this.div},ea.prototype.supportsTouch=function(){return!0},ea.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():ya(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function y(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},ea.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},ea.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var t=this.getSelection(),y=this.cm;if(l&&n&&this.cm.display.gutterSpecs.length&&Nu(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var P=ks(y,t.anchorNode,t.anchorOffset),L=ks(y,t.focusNode,t.focusOffset);P&&L&&ya(y,function(){Na(y.doc,$t(P,L),ue),(P.bad||L.bad)&&(y.curOp.selectionChanged=!0)})},ea.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,y=t.display,P=t.doc.sel.primary(),L=P.from(),H=P.to();if(L.ch==0&&L.line>t.firstLine()&&(L=Le(L.line-1,Rn(t.doc,L.line-1).length)),H.ch==Rn(t.doc,H.line).text.length&&H.line<t.lastLine()&&(H=Le(H.line+1,0)),L.line<y.viewFrom||H.line>y.viewTo-1)return!1;var le,we,De;L.line==y.viewFrom||(le=rr(t,L.line))==0?(we=kr(y.view[0].line),De=y.view[0].node):(we=kr(y.view[le].line),De=y.view[le-1].node.nextSibling);var Pe=rr(t,H.line),Qe,gt;if(Pe==y.view.length-1?(Qe=y.viewTo-1,gt=y.lineDiv.lastChild):(Qe=kr(y.view[Pe+1].line)-1,gt=y.view[Pe+1].node.previousSibling),!De)return!1;for(var wt=t.doc.splitLines(ol(t,De,gt,we,Qe)),Qt=Jr(t.doc,Le(we,0),Le(Qe,Rn(t.doc,Qe).text.length));wt.length>1&&Qt.length>1;)if(ge(wt)==ge(Qt))wt.pop(),Qt.pop(),Qe--;else if(wt[0]==Qt[0])wt.shift(),Qt.shift(),we++;else break;for(var Nt=0,on=0,yn=wt[0],Mn=Qt[0],Gn=Math.min(yn.length,Mn.length);Nt<Gn&&yn.charCodeAt(Nt)==Mn.charCodeAt(Nt);)++Nt;for(var ar=ge(wt),Xn=ge(Qt),pr=Math.min(ar.length-(wt.length==1?Nt:0),Xn.length-(Qt.length==1?Nt:0));on<pr&&ar.charCodeAt(ar.length-on-1)==Xn.charCodeAt(Xn.length-on-1);)++on;if(wt.length==1&&Qt.length==1&&we==L.line)for(;Nt&&Nt>L.ch&&ar.charCodeAt(ar.length-on-1)==Xn.charCodeAt(Xn.length-on-1);)Nt--,on++;wt[wt.length-1]=ar.slice(0,ar.length-on).replace(/^\u200b+/,""),wt[0]=wt[0].slice(Nt).replace(/\u200b+$/,"");var Hr=Le(we,Nt),Lr=Le(Qe,Qt.length?ge(Qt).length-on:0);if(wt.length>1||wt[0]||Fe(Hr,Lr))return Mr(t.doc,wt,Hr,Lr,"+input"),!0},ea.prototype.ensurePolled=function(){this.forceCompositionEnd()},ea.prototype.reset=function(){this.forceCompositionEnd()},ea.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},ea.prototype.readFromDOMSoon=function(){var t=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80)},ea.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&ya(this.cm,function(){return Pr(t.cm)})},ea.prototype.setUneditable=function(t){t.contentEditable="false"},ea.prototype.onKeyPress=function(t){if(t.charCode==0||this.composing)return;t.preventDefault(),this.cm.isReadOnly()||ki(this.cm,du)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0)},ea.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},ea.prototype.onContextMenu=function(){},ea.prototype.resetPosition=function(){},ea.prototype.needsContentAttribute=!0;function al(t,y){var P=st(t,y.line);if(!P||P.hidden)return null;var L=Rn(t.doc,y.line),H=Oe(P,L,y.line),le=_t(L,t.doc.direction),we="left";if(le){var De=Ie(le,y.ch);we=De%2?"right":"left"}var Pe=Gt(H.map,y.ch,we);return Pe.offset=Pe.collapse=="right"?Pe.end:Pe.start,Pe}function Nu(t){for(var y=t;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Ca(t,y){return y&&(t.bad=!0),t}function ol(t,y,P,L,H){var le="",we=!1,De=t.doc.lineSeparator(),Pe=!1;function Qe(Nt){return function(on){return on.id==Nt}}function gt(){we&&(le+=De,Pe&&(le+=De),we=Pe=!1)}function wt(Nt){Nt&&(gt(),le+=Nt)}function Qt(Nt){if(Nt.nodeType==1){var on=Nt.getAttribute("cm-text");if(on){wt(on);return}var yn=Nt.getAttribute("cm-marker"),Mn;if(yn){var Gn=t.findMarks(Le(L,0),Le(H+1,0),Qe(+yn));Gn.length&&(Mn=Gn[0].find(0))&&wt(Jr(t.doc,Mn.from,Mn.to).join(De));return}if(Nt.getAttribute("contenteditable")=="false")return;var ar=/^(pre|div|p|li|table|br)$/i.test(Nt.nodeName);if(!/^br$/i.test(Nt.nodeName)&&Nt.textContent.length==0)return;ar&&gt();for(var Xn=0;Xn<Nt.childNodes.length;Xn++)Qt(Nt.childNodes[Xn]);/^(pre|p)$/i.test(Nt.nodeName)&&(Pe=!0),ar&&(we=!0)}else Nt.nodeType==3&&wt(Nt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Qt(y),y==P);)y=y.nextSibling,Pe=!1;return le}function ks(t,y,P){var L;if(y==t.display.lineDiv){if(L=t.display.lineDiv.childNodes[P],!L)return Ca(t.clipPos(Le(t.display.viewTo-1)),!0);y=null,P=0}else for(L=y;;L=L.parentNode){if(!L||L==t.display.lineDiv)return null;if(L.parentNode&&L.parentNode==t.display.lineDiv)break}for(var H=0;H<t.display.view.length;H++){var le=t.display.view[H];if(le.node==L)return Xs(le,y,P)}}function Xs(t,y,P){var L=t.text.firstChild,H=!1;if(!y||!D(L,y))return Ca(Le(kr(t.line),0),!0);if(y==L&&(H=!0,y=L.childNodes[P],P=0,!y)){var le=t.rest?ge(t.rest):t.line;return Ca(Le(kr(le),le.text.length),H)}var we=y.nodeType==3?y:null,De=y;for(!we&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(we=y.firstChild,P&&(P=we.nodeValue.length));De.parentNode!=L;)De=De.parentNode;var Pe=t.measure,Qe=Pe.maps;function gt(Mn,Gn,ar){for(var Xn=-1;Xn<(Qe?Qe.length:0);Xn++)for(var pr=Xn<0?Pe.map:Qe[Xn],Hr=0;Hr<pr.length;Hr+=3){var Lr=pr[Hr+2];if(Lr==Mn||Lr==Gn){var mi=kr(Xn<0?t.line:t.rest[Xn]),ca=pr[Hr]+ar;return(ar<0||Lr!=Mn)&&(ca=pr[Hr+(ar?1:0)]),Le(mi,ca)}}}var wt=gt(we,De,P);if(wt)return Ca(wt,H);for(var Qt=De.nextSibling,Nt=we?we.nodeValue.length-P:0;Qt;Qt=Qt.nextSibling){if(wt=gt(Qt,Qt.firstChild,0),wt)return Ca(Le(wt.line,wt.ch-Nt),H);Nt+=Qt.textContent.length}for(var on=De.previousSibling,yn=P;on;on=on.previousSibling){if(wt=gt(on,on.firstChild,-1),wt)return Ca(Le(wt.line,wt.ch+yn),H);yn+=on.textContent.length}}var ia=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new N,this.hasSelection=!1,this.composing=null};ia.prototype.init=function(t){var y=this,P=this,L=this.cm;this.createField(t);var H=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),f&&(H.style.width="0px"),Ke(H,"input",function(){w&&m>=9&&y.hasSelection&&(y.hasSelection=null),P.poll()}),Ke(H,"paste",function(we){if(lt(L,we)||Ol(we,L))return;L.state.pasteIncoming=+new Date,P.fastPoll()});function le(we){if(lt(L,we))return;if(L.somethingSelected())Bl({lineWise:!1,text:L.getSelections()});else if(L.options.lineWiseCopyCut){var De=hu(L);Bl({lineWise:!0,text:De.text}),we.type=="cut"?L.setSelections(De.ranges,null,ue):(P.prevInput="",H.value=De.text.join(`
`),X(H))}else return;we.type=="cut"&&(L.state.cutIncoming=+new Date)}Ke(H,"cut",le),Ke(H,"copy",le),Ke(t.scroller,"paste",function(we){if(_o(t,we)||lt(L,we))return;if(!H.dispatchEvent){L.state.pasteIncoming=+new Date,P.focus();return}var De=new Event("paste");De.clipboardData=we.clipboardData,H.dispatchEvent(De)}),Ke(t.lineSpace,"selectstart",function(we){_o(t,we)||Ue(we)}),Ke(H,"compositionstart",function(){var we=L.getCursor("from");P.composing&&P.composing.range.clear(),P.composing={start:we,range:L.markText(we,L.getCursor("to"),{className:"CodeMirror-composing"})}}),Ke(H,"compositionend",function(){P.composing&&(P.poll(),P.composing.range.clear(),P.composing=null)})},ia.prototype.createField=function(t){this.wrapper=Uu(),this.textarea=this.wrapper.firstChild},ia.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},ia.prototype.prepareSelection=function(){var t=this.cm,y=t.display,P=t.doc,L=sn(t);if(t.options.moveInputWithCursor){var H=an(t,P.sel.primary().head,"div"),le=y.wrapper.getBoundingClientRect(),we=y.lineDiv.getBoundingClientRect();L.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,H.top+we.top-le.top)),L.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,H.left+we.left-le.left))}return L},ia.prototype.showSelection=function(t){var y=this.cm,P=y.display;u(P.cursorDiv,t.cursors),u(P.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},ia.prototype.reset=function(t){if(this.contextMenuPending||this.composing)return;var y=this.cm;if(y.somethingSelected()){this.prevInput="";var P=y.getSelection();this.textarea.value=P,y.state.focused&&X(this.textarea),w&&m>=9&&(this.hasSelection=P)}else t||(this.prevInput=this.textarea.value="",w&&m>=9&&(this.hasSelection=null))},ia.prototype.getField=function(){return this.textarea},ia.prototype.supportsTouch=function(){return!1},ia.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!r||I()!=this.textarea))try{this.textarea.focus()}catch(t){}},ia.prototype.blur=function(){this.textarea.blur()},ia.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ia.prototype.receivedFocus=function(){this.slowPoll()},ia.prototype.slowPoll=function(){var t=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},ia.prototype.fastPoll=function(){var t=!1,y=this;y.pollingFast=!0;function P(){var L=y.poll();!L&&!t?(t=!0,y.polling.set(60,P)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,P)},ia.prototype.poll=function(){var t=this,y=this.cm,P=this.textarea,L=this.prevInput;if(this.contextMenuPending||!y.state.focused||At(P)&&!L&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var H=P.value;if(H==L&&!y.somethingSelected())return!1;if(w&&m>=9&&this.hasSelection===H||c&&/[\uf700-\uf7ff]/.test(H))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var le=H.charCodeAt(0);if(le==8203&&!L&&(L="\u200B"),le==8666)return this.reset(),this.cm.execCommand("undo")}for(var we=0,De=Math.min(L.length,H.length);we<De&&L.charCodeAt(we)==H.charCodeAt(we);)++we;return ya(y,function(){du(y,H.slice(we),L.length-we,null,t.composing?"*compose":null),H.length>1e3||H.indexOf(`
`)>-1?P.value=t.prevInput="":t.prevInput=H,t.composing&&(t.composing.range.clear(),t.composing.range=y.markText(t.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ia.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ia.prototype.onKeyPress=function(){w&&m>=9&&(this.hasSelection=null),this.fastPoll()},ia.prototype.onContextMenu=function(t){var y=this,P=y.cm,L=P.display,H=y.textarea;y.contextMenuPending&&y.contextMenuPending();var le=On(P,t),we=L.scroller.scrollTop;if(!le||e)return;var De=P.options.resetSelectionOnContextMenu;De&&P.doc.sel.contains(le)==-1&&ki(P,Na)(P.doc,$t(le),ue);var Pe=H.style.cssText,Qe=y.wrapper.style.cssText,gt=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",H.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(t.clientY-gt.top-5)+"px; left: "+(t.clientX-gt.left-5)+`px;
z-index: 1000; background: `+(w?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var wt;d&&(wt=window.scrollY),L.input.focus(),d&&window.scrollTo(null,wt),L.input.reset(),P.somethingSelected()||(H.value=y.prevInput=" "),y.contextMenuPending=Nt,L.selForContextMenu=P.doc.sel,clearTimeout(L.detectingSelectAll);function Qt(){if(H.selectionStart!=null){var yn=P.somethingSelected(),Mn="\u200B"+(yn?H.value:"");H.value="\u21DA",H.value=Mn,y.prevInput=yn?"":"\u200B",H.selectionStart=1,H.selectionEnd=Mn.length,L.selForContextMenu=P.doc.sel}}function Nt(){if(y.contextMenuPending!=Nt)return;if(y.contextMenuPending=!1,y.wrapper.style.cssText=Qe,H.style.cssText=Pe,w&&m<9&&L.scrollbars.setScrollTop(L.scroller.scrollTop=we),H.selectionStart!=null){(!w||w&&m<9)&&Qt();var yn=0,Mn=function(){L.selForContextMenu==P.doc.sel&&H.selectionStart==0&&H.selectionEnd>0&&y.prevInput=="\u200B"?ki(P,Ti)(P):yn++<10?L.detectingSelectAll=setTimeout(Mn,500):(L.selForContextMenu=null,L.input.reset())};L.detectingSelectAll=setTimeout(Mn,200)}}if(w&&m>=9&&Qt(),B){it(t);var on=function(){St(window,"mouseup",on),setTimeout(Nt,20)};Ke(window,"mouseup",on)}else setTimeout(Nt,50)},ia.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},ia.prototype.setUneditable=function(){},ia.prototype.needsContentAttribute=!1;function Rl(t,y){if(y=y?K(y):{},y.value=t.value,!y.tabindex&&t.tabIndex&&(y.tabindex=t.tabIndex),!y.placeholder&&t.placeholder&&(y.placeholder=t.placeholder),y.autofocus==null){var P=I();y.autofocus=P==t||t.getAttribute("autofocus")!=null&&P==document.body}function L(){t.value=De.getValue()}var H;if(t.form&&(Ke(t.form,"submit",L),!y.leaveSubmitMethodAlone)){var le=t.form;H=le.submit;try{var we=le.submit=function(){L(),le.submit=H,le.submit(),le.submit=we}}catch(Pe){}}y.finishInit=function(Pe){Pe.save=L,Pe.getTextArea=function(){return t},Pe.toTextArea=function(){Pe.toTextArea=isNaN,L(),t.parentNode.removeChild(Pe.getWrapperElement()),t.style.display="",t.form&&(St(t.form,"submit",L),!y.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=H))}},t.style.display="none";var De=ma(function(Pe){return t.parentNode.insertBefore(Pe,t.nextSibling)},y);return De}function Fs(t){t.off=St,t.on=Ke,t.wheelEventPixels=Ss,t.Doc=Bo,t.splitLines=Bt,t.countColumn=V,t.findColumn=_e,t.isWordChar=Te,t.Pass=ne,t.signal=ct,t.Line=Ua,t.changeEnd=Cn,t.scrollbarModel=Xi,t.Pos=Le,t.cmpPos=Fe,t.modes=Ot,t.mimeModes=Ct,t.resolveMode=Et,t.getMode=Lt,t.modeExtensions=Ht,t.extendMode=un,t.copyState=gn,t.startState=wr,t.innerMode=Ar,t.commands=wl,t.keyMap=Ps,t.keyName=ru,t.isModifierKey=bu,t.lookupKey=rl,t.normalizeKeyMap=Xu,t.StringStream=cr,t.SharedTextMarker=tl,t.TextMarker=ns,t.LineWidget=Ko,t.e_preventDefault=Ue,t.e_stopPropagation=Ne,t.e_stop=it,t.addClass=k,t.contains=D,t.rmClass=g,t.keyNames=Gs}tc(ma),ku(ma);var ju="iter insert remove copy getEditor constructor".split(" ");for(var Il in Bo.prototype)Bo.prototype.hasOwnProperty(Il)&&Q(ju,Il)<0&&(ma.prototype[Il]=function(t){return function(){return t.apply(this.doc,arguments)}}(Bo.prototype[Il]));return $e(Bo),ma.inputStyles={textarea:ia,contenteditable:ea},ma.defineMode=function(t){!ma.defaults.mode&&t!="null"&&(ma.defaults.mode=t),jt.apply(this,arguments)},ma.defineMIME=Vt,ma.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),ma.defineMIME("text/plain","null"),ma.defineExtension=function(t,y){ma.prototype[t]=y},ma.defineDocExtension=function(t,y){Bo.prototype[t]=y},ma.fromTextArea=Rl,Fs(ma),ma.version="5.58.2",ma})},W6BS:function(Ge,fe){Ge.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(Ge,fe){Ge.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(Ge,fe,R){Ge.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(Ge,fe,R){"use strict";var se=R("rePB"),G=R("Ff2n"),M=R("VTBJ"),v=R("1OyB"),b=R("vuIU"),C=R("JX7q"),w=R("Ji7U"),m=R("LK+K"),d=R("q1tI"),i=R("TSYQ"),n=R.n(i),e=R("sboe"),a=R("OZM5"),s=function(B){var E=B.prefixCls,g=B.level,h=B.isStart,u=B.isEnd;if(!g)return null;for(var S="".concat(E,"-indent-unit"),O=[],T=0;T<g;T+=1){var D;O.push(d.createElement("span",{key:T,className:n()(S,(D={},Object(se.a)(D,"".concat(S,"-start"),h[T+1]),Object(se.a)(D,"".concat(S,"-end"),u[T+1]),Object(se.a)(D,"".concat(S,"-end-first-level"),!T&&u[0]),D))}))}return d.createElement("span",{"aria-hidden":"true",className:"".concat(E,"-indent")},O)},o=s,f=R("815F"),l="open",r="close",c="---",A=function(_){Object(w.a)(E,_);var B=Object(m.a)(E);function E(){var g;return Object(v.a)(this,E),g=B.apply(this,arguments),g.state={dragNodeHighlight:!1},g.onSelectorClick=function(h){var u=g.props.context.onNodeClick;u(h,Object(f.b)(g.props)),g.isSelectable()?g.onSelect(h):g.onCheck(h)},g.onSelectorDoubleClick=function(h){var u=g.props.context.onNodeDoubleClick;u(h,Object(f.b)(g.props))},g.onSelect=function(h){if(g.isDisabled())return;var u=g.props.context.onNodeSelect;h.preventDefault(),u(h,Object(f.b)(g.props))},g.onCheck=function(h){if(g.isDisabled())return;var u=g.props,S=u.disableCheckbox,O=u.checked,T=g.props.context.onNodeCheck;if(!g.isCheckable()||S)return;h.preventDefault();var D=!O;T(h,Object(f.b)(g.props),D)},g.onMouseEnter=function(h){var u=g.props.context.onNodeMouseEnter;u(h,Object(f.b)(g.props))},g.onMouseLeave=function(h){var u=g.props.context.onNodeMouseLeave;u(h,Object(f.b)(g.props))},g.onContextMenu=function(h){var u=g.props.context.onNodeContextMenu;u(h,Object(f.b)(g.props))},g.onDragStart=function(h){var u=g.props.context.onNodeDragStart;h.stopPropagation(),g.setState({dragNodeHighlight:!0}),u(h,Object(C.a)(g));try{h.dataTransfer.setData("text/plain","")}catch(S){}},g.onDragEnter=function(h){var u=g.props.context.onNodeDragEnter;h.preventDefault(),h.stopPropagation(),u(h,Object(C.a)(g))},g.onDragOver=function(h){var u=g.props.context.onNodeDragOver;h.preventDefault(),h.stopPropagation(),u(h,Object(C.a)(g))},g.onDragLeave=function(h){var u=g.props.context.onNodeDragLeave;h.stopPropagation(),u(h,Object(C.a)(g))},g.onDragEnd=function(h){var u=g.props.context.onNodeDragEnd;h.stopPropagation(),g.setState({dragNodeHighlight:!1}),u(h,Object(C.a)(g))},g.onDrop=function(h){var u=g.props.context.onNodeDrop;h.preventDefault(),h.stopPropagation(),g.setState({dragNodeHighlight:!1}),u(h,Object(C.a)(g))},g.onExpand=function(h){var u=g.props.context.onNodeExpand;u(h,Object(f.b)(g.props))},g.setSelectHandle=function(h){g.selectHandle=h},g.getNodeState=function(){var h=g.props.expanded;return g.isLeaf()?null:h?l:r},g.hasChildren=function(){var h=g.props.eventKey,u=g.props.context.keyEntities,S=u[h]||{},O=S.children;return!!(O||[]).length},g.isLeaf=function(){var h=g.props,u=h.isLeaf,S=h.loaded,O=g.props.context.loadData,T=g.hasChildren();return u===!1?!1:u||!O&&!T||O&&S&&!T},g.isDisabled=function(){var h=g.props.disabled,u=g.props.context.disabled;return!!(u||h)},g.isCheckable=function(){var h=g.props.checkable,u=g.props.context.checkable;return!u||h===!1?!1:u},g.syncLoadData=function(h){var u=h.expanded,S=h.loading,O=h.loaded,T=g.props.context,D=T.loadData,I=T.onNodeLoad;if(S)return;D&&u&&!g.isLeaf()&&(!g.hasChildren()&&!O&&I(Object(f.b)(g.props)))},g.renderSwitcher=function(){var h=g.props,u=h.expanded,S=h.switcherIcon,O=g.props.context,T=O.prefixCls,D=O.switcherIcon,I=S||D;if(g.isLeaf())return d.createElement("span",{className:n()("".concat(T,"-switcher"),"".concat(T,"-switcher-noop"))},typeof I=="function"?I(Object(M.a)(Object(M.a)({},g.props),{},{isLeaf:!0})):I);var k=n()("".concat(T,"-switcher"),"".concat(T,"-switcher_").concat(u?l:r));return d.createElement("span",{onClick:g.onExpand,className:k},typeof I=="function"?I(Object(M.a)(Object(M.a)({},g.props),{},{isLeaf:!1})):I)},g.renderCheckbox=function(){var h=g.props,u=h.checked,S=h.halfChecked,O=h.disableCheckbox,T=g.props.context.prefixCls,D=g.isDisabled(),I=g.isCheckable();if(!I)return null;var k=typeof I!="boolean"?I:null;return d.createElement("span",{className:n()("".concat(T,"-checkbox"),u&&"".concat(T,"-checkbox-checked"),!u&&S&&"".concat(T,"-checkbox-indeterminate"),(D||O)&&"".concat(T,"-checkbox-disabled")),onClick:g.onCheck},k)},g.renderIcon=function(){var h=g.props.loading,u=g.props.context.prefixCls;return d.createElement("span",{className:n()("".concat(u,"-iconEle"),"".concat(u,"-icon__").concat(g.getNodeState()||"docu"),h&&"".concat(u,"-icon_loading"))})},g.renderSelector=function(){var h=g.state.dragNodeHighlight,u=g.props,S=u.title,O=u.selected,T=u.icon,D=u.loading,I=u.data,k=g.props.context,F=k.prefixCls,X=k.showIcon,U=k.icon,K=k.draggable,V=k.loadData,N=k.titleRender,Q=g.isDisabled(),J="".concat(F,"-node-content-wrapper"),ne;if(X){var ue=T||U;ne=ue?d.createElement("span",{className:n()("".concat(F,"-iconEle"),"".concat(F,"-icon__customize"))},typeof ue=="function"?ue(g.props):ue):g.renderIcon()}else V&&D&&(ne=g.renderIcon());var be;typeof S=="function"?be=S(I):N?be=N(I):be=S;var de=d.createElement("span",{className:"".concat(F,"-title")},be);return d.createElement("span",{ref:g.setSelectHandle,title:typeof S=="string"?S:"",className:n()("".concat(J),"".concat(J,"-").concat(g.getNodeState()||"normal"),!Q&&(O||h)&&"".concat(F,"-node-selected"),!Q&&K&&"draggable"),draggable:!Q&&K||void 0,"aria-grabbed":!Q&&K||void 0,onMouseEnter:g.onMouseEnter,onMouseLeave:g.onMouseLeave,onContextMenu:g.onContextMenu,onClick:g.onSelectorClick,onDoubleClick:g.onSelectorDoubleClick,onDragStart:K?g.onDragStart:void 0},ne,de)},g}return Object(b.a)(E,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var h=this.props.selectable,u=this.props.context.selectable;return typeof h=="boolean"?h:u}},{key:"render",value:function(){var h,u=this.props,S=u.eventKey,O=u.className,T=u.style,D=u.dragOver,I=u.dragOverGapTop,k=u.dragOverGapBottom,F=u.isLeaf,X=u.isStart,U=u.isEnd,K=u.expanded,V=u.selected,N=u.checked,Q=u.halfChecked,J=u.loading,ne=u.domRef,ue=u.active,be=u.onMouseMove,de=Object(G.a)(u,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),_e=this.props.context,me=_e.prefixCls,Ee=_e.filterTreeNode,ge=_e.draggable,Ae=_e.keyEntities,ae=this.isDisabled(),ve=Object(a.f)(de),oe=Ae[S]||{},ie=oe.level,Te=U[U.length-1];return d.createElement("div",Object.assign({ref:ne,className:n()(O,"".concat(me,"-treenode"),(h={},Object(se.a)(h,"".concat(me,"-treenode-disabled"),ae),Object(se.a)(h,"".concat(me,"-treenode-switcher-").concat(K?"open":"close"),!F),Object(se.a)(h,"".concat(me,"-treenode-checkbox-checked"),N),Object(se.a)(h,"".concat(me,"-treenode-checkbox-indeterminate"),Q),Object(se.a)(h,"".concat(me,"-treenode-selected"),V),Object(se.a)(h,"".concat(me,"-treenode-loading"),J),Object(se.a)(h,"".concat(me,"-treenode-active"),ue),Object(se.a)(h,"".concat(me,"-treenode-leaf-last"),Te),Object(se.a)(h,"drag-over",!ae&&D),Object(se.a)(h,"drag-over-gap-top",!ae&&I),Object(se.a)(h,"drag-over-gap-bottom",!ae&&k),Object(se.a)(h,"filter-node",Ee&&Ee(Object(f.b)(this.props))),h)),style:T,onDragEnter:ge?this.onDragEnter:void 0,onDragOver:ge?this.onDragOver:void 0,onDragLeave:ge?this.onDragLeave:void 0,onDrop:ge?this.onDrop:void 0,onDragEnd:ge?this.onDragEnd:void 0,onMouseMove:be},ve),d.createElement(o,{prefixCls:me,level:ie,isStart:X,isEnd:U}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),E}(d.Component),p=function(B){return d.createElement(e.a.Consumer,null,function(E){return d.createElement(A,Object.assign({},B,{context:E}))})};p.displayName="TreeNode",p.defaultProps={title:c},p.isTreeNode=1;var x=fe.a=p},WdTA:function(Ge,fe,R){Ge.exports=R.p+"static/studnetqun.598eeb43.png"},XFxt:function(Ge,fe,R){Ge.exports={"image-preview-container":"image-preview-container___1L8o9","image-preview":"image-preview___3YjNO","button-group":"button-group___3y9R5","preview-wrp-group":"preview-wrp-group___19bWd"}},Xmg4:function(Ge,fe,R){var se=R("bYtY"),G=R("LPTA"),M=G.devicePixelRatio,v=R("K2GJ"),b=R("3C/r");function C(){return!1}function w(i,n,e){var a=se.createCanvas(),s=n.getWidth(),o=n.getHeight(),f=a.style;return f&&(f.position="absolute",f.left=0,f.top=0,f.width=s+"px",f.height=o+"px",a.setAttribute("data-zr-dom-id",i)),a.width=s*e,a.height=o*e,a}var m=function(i,n,e){var a;e=e||M,typeof i=="string"?a=w(i,n,e):se.isObject(i)&&(a=i,i=a.id),this.id=i,this.dom=a;var s=a.style;s&&(a.onselectstart=C,s["-webkit-user-select"]="none",s["user-select"]="none",s["-webkit-touch-callout"]="none",s["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",s.padding=0,s.margin=0,s["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=n,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=e};m.prototype={constructor:m,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var i=this.dpr;this.domBack=w("back-"+this.id,this.painter,i),this.ctxBack=this.domBack.getContext("2d"),i!==1&&this.ctxBack.scale(i,i)},resize:function(i,n){var e=this.dpr,a=this.dom,s=a.style,o=this.domBack;s&&(s.width=i+"px",s.height=n+"px"),a.width=i*e,a.height=n*e,o&&(o.width=i*e,o.height=n*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(i,n){var e=this.dom,a=this.ctx,s=e.width,o=e.height,n=n||this.clearColor,f=this.motionBlur&&!i,l=this.lastFrameAlpha,r=this.dpr;if(f&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,s/r,o/r)),a.clearRect(0,0,s,o),n&&n!=="transparent"){var c;n.colorStops?(c=n.__canvasGradient||v.getGradient(a,n,{x:0,y:0,width:s,height:o}),n.__canvasGradient=c):n.image&&(c=b.prototype.getCanvasPattern.call(n,a)),a.save(),a.fillStyle=c||n,a.fillRect(0,0,s,o),a.restore()}if(f){var A=this.domBack;a.save(),a.globalAlpha=l,a.drawImage(A,0,0,s,o),a.restore()}}};var d=m;Ge.exports=d},Xnb7:function(Ge,fe,R){var se=R("1RvN"),G=new se(50);function M(w){if(typeof w=="string"){var m=G.get(w);return m&&m.image}else return w}function v(w,m,d,i,n){if(w)if(typeof w=="string"){if(m&&m.__zrImageSrc===w||!d)return m;var e=G.get(w),a={hostEl:d,cb:i,cbPayload:n};return e?(m=e.image,!C(m)&&e.pending.push(a)):(m=new Image,m.onload=m.onerror=b,G.put(w,m.__cachedImgObj={image:m,pending:[a]}),m.src=m.__zrImageSrc=w),m}else return w;else return m}function b(){var w=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var m=0;m<w.pending.length;m++){var d=w.pending[m],i=d.cb;i&&i(this,d.cbPayload),d.hostEl.dirty()}w.pending.length=0}function C(w){return w&&w.width&&w.height}fe.findExistImage=M,fe.createOrUpdateImage=v,fe.isImageReady=C},Xsq0:function(Ge,fe,R){Ge.exports=R.p+"static/mainbanner.0a951716.jpg"},XzQ7:function(Ge,fe,R){Ge.exports={flex_box_center:"flex_box_center___N67ls",flex_space_between:"flex_space_between___2XYCO",flex_box_vertical_center:"flex_box_vertical_center___1LsqB",flex_box_center_end:"flex_box_center_end___3WDUW",flex_box_column:"flex_box_column___MIvMP",bg:"bg___1FRP8",wrap:"wrap___3ESp_",content:"content___2BtE3",wrapTabs:"wrapTabs___1HFCe",intro:"intro___3Wt0Q",introTitle:"introTitle___3vQWN"}},Y1PL:function(Ge,fe,R){"use strict";R.r(fe),R.d(fe,"ResizableTextArea",function(){return Q});var se=R("wx14"),G=R("1OyB"),M=R("vuIU"),v=R("Ji7U"),b=R("LK+K"),C=R("q1tI"),w=R("VTBJ"),m=R("rePB"),d=R("Zm9Q"),i=R("Kwbf"),n=R("c+Xe"),e=R("m+aA"),a=R("bdgK"),s=new Map;function o(ue){ue.forEach(function(be){var de,_e=be.target;(de=s.get(_e))===null||de===void 0||de.forEach(function(me){return me(_e)})})}var f=new a.default(o),l=null,r=null;function c(ue,be){s.has(ue)||(s.set(ue,new Set),f.observe(ue)),s.get(ue).add(be)}function A(ue,be){s.has(ue)&&(s.get(ue).delete(be),s.get(ue).size||(f.unobserve(ue),s.delete(ue)))}var p=function(ue){Object(v.a)(de,ue);var be=Object(b.a)(de);function de(){return Object(G.a)(this,de),be.apply(this,arguments)}return Object(M.a)(de,[{key:"render",value:function(){return this.props.children}}]),de}(C.Component),x=C.createContext(null);function _(ue){var be=ue.children,de=ue.onBatchResize,_e=C.useRef(0),me=C.useRef([]),Ee=C.useContext(x),ge=C.useCallback(function(Ae,ae,ve){_e.current+=1;var oe=_e.current;me.current.push({size:Ae,element:ae,data:ve}),Promise.resolve().then(function(){oe===_e.current&&(de==null||de(me.current),me.current=[])}),Ee==null||Ee(Ae,ae,ve)},[de,Ee]);return C.createElement(x.Provider,{value:ge},be)}function B(ue){var be=ue.children,de=ue.disabled,_e=C.useRef(null),me=C.useRef(null),Ee=C.useContext(x),ge=C.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ae=C.isValidElement(be)&&Object(n.c)(be),ae=Ae?be.ref:null,ve=C.useMemo(function(){return Object(n.a)(ae,_e)},[ae,_e]),oe=C.useRef(ue);oe.current=ue;var ie=C.useCallback(function(Te){var Re=oe.current,Me=Re.onResize,re=Re.data,j=Te.getBoundingClientRect(),W=j.width,he=j.height,te=Te.offsetWidth,ce=Te.offsetHeight,Ie=Math.floor(W),ze=Math.floor(he);if(ge.current.width!==Ie||ge.current.height!==ze||ge.current.offsetWidth!==te||ge.current.offsetHeight!==ce){var _t={width:Ie,height:ze,offsetWidth:te,offsetHeight:ce};ge.current=_t;var He=te===Math.round(W)?W:te,Ke=ce===Math.round(he)?he:ce,ht=Object(w.a)(Object(w.a)({},_t),{},{offsetWidth:He,offsetHeight:Ke});Ee==null||Ee(ht,Te,re),Me&&Promise.resolve().then(function(){Me(ht,Te)})}},[]);return C.useEffect(function(){var Te=Object(e.a)(_e.current)||Object(e.a)(me.current);return Te&&!de&&c(Te,ie),function(){return A(Te,ie)}},[_e.current,de]),C.createElement(p,{ref:me},Ae?C.cloneElement(be,{ref:ve}):be)}var E="rc-observer-key";function g(ue){var be=ue.children,de=Object(d.a)(be);return de.map(function(_e,me){var Ee=(_e==null?void 0:_e.key)||"".concat(E,"-").concat(me);return C.createElement(B,Object(se.a)({},ue,{key:Ee}),_e)})}g.Collection=_;var h=g,u=R("bT9E"),S=R("TSYQ"),O=R.n(S),T=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,D=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],I={},k;function F(ue){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,de=ue.getAttribute("id")||ue.getAttribute("data-reactid")||ue.getAttribute("name");if(be&&I[de])return I[de];var _e=window.getComputedStyle(ue),me=_e.getPropertyValue("box-sizing")||_e.getPropertyValue("-moz-box-sizing")||_e.getPropertyValue("-webkit-box-sizing"),Ee=parseFloat(_e.getPropertyValue("padding-bottom"))+parseFloat(_e.getPropertyValue("padding-top")),ge=parseFloat(_e.getPropertyValue("border-bottom-width"))+parseFloat(_e.getPropertyValue("border-top-width")),Ae=D.map(function(ve){return"".concat(ve,":").concat(_e.getPropertyValue(ve))}).join(";"),ae={sizingStyle:Ae,paddingSize:Ee,borderSize:ge,boxSizing:me};return be&&de&&(I[de]=ae),ae}function X(ue){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,_e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;k||(k=document.createElement("textarea"),k.setAttribute("tab-index","-1"),k.setAttribute("aria-hidden","true"),document.body.appendChild(k)),ue.getAttribute("wrap")?k.setAttribute("wrap",ue.getAttribute("wrap")):k.removeAttribute("wrap");var me=F(ue,be),Ee=me.paddingSize,ge=me.borderSize,Ae=me.boxSizing,ae=me.sizingStyle;k.setAttribute("style","".concat(ae,";").concat(T)),k.value=ue.value||ue.placeholder||"";var ve=Number.MIN_SAFE_INTEGER,oe=Number.MAX_SAFE_INTEGER,ie=k.scrollHeight,Te;if(Ae==="border-box"?ie+=ge:Ae==="content-box"&&(ie-=Ee),de!==null||_e!==null){k.value=" ";var Re=k.scrollHeight-Ee;de!==null&&(ve=Re*de,Ae==="border-box"&&(ve=ve+Ee+ge),ie=Math.max(ve,ie)),_e!==null&&(oe=Re*_e,Ae==="border-box"&&(oe=oe+Ee+ge),Te=ie>oe?"":"hidden",ie=Math.min(oe,ie))}return{height:ie,minHeight:ve,maxHeight:oe,overflowY:Te,resize:"none"}}var U=R("Gytx"),K=R.n(U),V;(function(ue){ue[ue.NONE=0]="NONE",ue[ue.RESIZING=1]="RESIZING",ue[ue.RESIZED=2]="RESIZED"})(V||(V={}));var N=function(ue){Object(v.a)(de,ue);var be=Object(b.a)(de);function de(_e){var me;return Object(G.a)(this,de),me=be.call(this,_e),me.nextFrameActionId=void 0,me.resizeFrameId=void 0,me.textArea=void 0,me.saveTextArea=function(Ee){me.textArea=Ee},me.handleResize=function(Ee){var ge=me.state.resizeStatus,Ae=me.props,ae=Ae.autoSize,ve=Ae.onResize;if(ge!==V.NONE)return;typeof ve=="function"&&ve(Ee),ae&&me.resizeOnNextFrame()},me.resizeOnNextFrame=function(){cancelAnimationFrame(me.nextFrameActionId),me.nextFrameActionId=requestAnimationFrame(me.resizeTextarea)},me.resizeTextarea=function(){var Ee=me.props.autoSize;if(!Ee||!me.textArea)return;var ge=Ee.minRows,Ae=Ee.maxRows,ae=X(me.textArea,!1,ge,Ae);me.setState({textareaStyles:ae,resizeStatus:V.RESIZING},function(){cancelAnimationFrame(me.resizeFrameId),me.resizeFrameId=requestAnimationFrame(function(){me.setState({resizeStatus:V.RESIZED},function(){me.resizeFrameId=requestAnimationFrame(function(){me.setState({resizeStatus:V.NONE}),me.fixFirefoxAutoScroll()})})})})},me.renderTextArea=function(){var Ee=me.props,ge=Ee.prefixCls,Ae=ge===void 0?"rc-textarea":ge,ae=Ee.autoSize,ve=Ee.onResize,oe=Ee.className,ie=Ee.disabled,Te=me.state,Re=Te.textareaStyles,Me=Te.resizeStatus,re=Object(u.a)(me.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),j=O()(Ae,oe,Object(m.a)({},"".concat(Ae,"-disabled"),ie));"value"in re&&(re.value=re.value||"");var W=Object(w.a)(Object(w.a)(Object(w.a)({},me.props.style),Re),Me===V.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return C.createElement(h,{onResize:me.handleResize,disabled:!(ae||ve)},C.createElement("textarea",Object(se.a)({},re,{className:j,style:W,ref:me.saveTextArea})))},me.state={textareaStyles:{},resizeStatus:V.NONE},me}return Object(M.a)(de,[{key:"componentDidUpdate",value:function(me){(me.value!==this.props.value||!K()(me.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 me=this.textArea.selectionStart,Ee=this.textArea.selectionEnd;this.textArea.setSelectionRange(me,Ee)}}catch(ge){}}},{key:"render",value:function(){return this.renderTextArea()}}]),de}(C.Component),Q=N,J=function(ue){Object(v.a)(de,ue);var be=Object(b.a)(de);function de(_e){var me;Object(G.a)(this,de),me=be.call(this,_e),me.resizableTextArea=void 0,me.focus=function(){me.resizableTextArea.textArea.focus()},me.saveTextArea=function(ge){me.resizableTextArea=ge},me.handleChange=function(ge){var Ae=me.props.onChange;me.setValue(ge.target.value,function(){me.resizableTextArea.resizeTextarea()}),Ae&&Ae(ge)},me.handleKeyDown=function(ge){var Ae=me.props,ae=Ae.onPressEnter,ve=Ae.onKeyDown;ge.keyCode===13&&ae&&ae(ge),ve&&ve(ge)};var Ee=typeof _e.value=="undefined"||_e.value===null?_e.defaultValue:_e.value;return me.state={value:Ee},me}return Object(M.a)(de,[{key:"setValue",value:function(me,Ee){"value"in this.props||this.setState({value:me},Ee)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return C.createElement(Q,Object(se.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(me){return"value"in me?{value:me.value}:null}}]),de}(C.Component),ne=fe.default=J},YH21:function(Ge,fe,R){var se=R("H6uX");fe.Dispatcher=se;var G=R("ItGF"),M=R("Ze12"),v=M.isCanvasEl,b=M.transformCoordWithViewport,C=typeof window!="undefined"&&!!window.addEventListener,w=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,m=[];function d(r,c,A,p){return A=A||{},p||!G.canvasSupported?i(r,c,A):G.browser.firefox&&c.layerX!=null&&c.layerX!==c.offsetX?(A.zrX=c.layerX,A.zrY=c.layerY):c.offsetX!=null?(A.zrX=c.offsetX,A.zrY=c.offsetY):i(r,c,A),A}function i(r,c,A){if(G.domSupported&&r.getBoundingClientRect){var p=c.clientX,x=c.clientY;if(v(r)){var _=r.getBoundingClientRect();A.zrX=p-_.left,A.zrY=x-_.top;return}else if(b(m,r,p,x)){A.zrX=m[0],A.zrY=m[1];return}}A.zrX=A.zrY=0}function n(r){return r||window.event}function e(r,c,A){if(c=n(c),c.zrX!=null)return c;var p=c.type,x=p&&p.indexOf("touch")>=0;if(!x)d(r,c,c,A),c.zrDelta=c.wheelDelta?c.wheelDelta/120:-(c.detail||0)/3;else{var _=p!=="touchend"?c.targetTouches[0]:c.changedTouches[0];_&&d(r,_,c,A)}var B=c.button;return c.which==null&&B!==void 0&&w.test(c.type)&&(c.which=B&1?1:B&2?3:B&4?2:0),c}function a(r,c,A,p){C?r.addEventListener(c,A,p):r.attachEvent("on"+c,A)}function s(r,c,A,p){C?r.removeEventListener(c,A,p):r.detachEvent("on"+c,A)}var o=C?function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0}:function(r){r.returnValue=!1,r.cancelBubble=!0};function f(r){return r.which===2||r.which===3}function l(r){return r.which>1}fe.clientToLocal=d,fe.getNativeEvent=n,fe.normalizeEvent=e,fe.addEventListener=a,fe.removeEventListener=s,fe.stop=o,fe.isMiddleOrRightButtonOnMouseUpDown=f,fe.notLeftMouse=l},"Ye+n":function(Ge,fe,R){Ge.exports={advertisementModal:"advertisementModal___2ZrRs",bodyHeight:"bodyHeight___3x6vP"}},YgsL:function(Ge,fe,R){var se=R("QBsz"),G=se.distance;function M(b,C,w,m,d,i,n){var e=(w-b)*.5,a=(m-C)*.5;return(2*(C-w)+e+a)*n+(-3*(C-w)-2*e-a)*i+e*d+C}function v(b,C){for(var w=b.length,m=[],d=0,i=1;i<w;i++)d+=G(b[i-1],b[i]);var n=d/2;n=n<w?w:n;for(var i=0;i<n;i++){var e=i/(n-1)*(C?w:w-1),a=Math.floor(e),s=e-a,o,f=b[a%w],l,r;C?(o=b[(a-1+w)%w],l=b[(a+1)%w],r=b[(a+2)%w]):(o=b[a===0?a:a-1],l=b[a>w-2?w-1:a+1],r=b[a>w-3?w-1:a+2]);var c=s*s,A=s*c;m.push([M(o[0],f[0],l[0],r[0],s,c,A),M(o[1],f[1],l[1],r[1],s,c,A)])}return m}Ge.exports=v},ZW9T:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return h});var se=R("k1fw"),G=R("oBTY"),M=R("9og8"),v=R("miYZ"),b=R("tsqr"),C=R("rAM+"),w=R("tJVT"),m=R("PpiC"),d=R("WmNS"),i=R.n(d),n=R("q1tI"),e=R.n(n),a=R("bdgK");function s(u,S,O,T,D){var I=S.getWordUntilPosition(O),k={startLineNumber:O.lineNumber,endLineNumber:O.lineNumber,startColumn:I.startColumn,endColumn:I.endColumn},F=T.map(function(X){return{label:X,kind:u.languages.CompletionItemKind.Keyword,insertText:X,insertTextRules:u.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:k}});return D.map(function(X){F.push(Object(se.a)(Object(se.a)({},X),{},{range:k}))}),F}var o=function(u){var S={label:"ifelse",kind:u.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`),insertTextRules:u.languages.CompletionItemInsertTextRule.InsertAsSnippet},O=["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","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];u.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(k,F){var X=s(u,k,F,O,[S]);return{suggestions:X}}});var T=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];u.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(k,F){var X=[{label:"print",kind:u.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
`),insertTextRules:u.languages.CompletionItemInsertTextRule.InsertAsSnippet}],U=s(u,k,F,T,X);return{suggestions:U}}});var D=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];u.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(k,F){var X=[S,{label:"main",kind:u.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
`),insertTextRules:u.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:u.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
`),insertTextRules:u.languages.CompletionItemInsertTextRule.InsertAsSnippet}],U=s(u,k,F,D,X);return{suggestions:U}}})},f="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",l=R("fjLI"),r=R("LvDl"),c=R("+ua5");function A(u){return/^\d+$/.test(u)?"".concat(u,"px"):u}function p(){}var x=!1,_={"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",Scala:"scale"};function B(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],S=u;if(Array.isArray(u)){for(var O=0;O<u.length;O++){var T=_[u[O]];if(T)return T}return S[0]}return _[S]||S}var E=null,g=fe.b=function(u){var S=u.width,O=S===void 0?"100%":S,T=u.height,D=T===void 0?"100%":T,I=u.value,k=u.language,F=k===void 0?"javascript":k,X=u.style,U=X===void 0?{}:X,K=u.options,V=K===void 0?{}:K,N=u.overrideServices,Q=N===void 0?{}:N,J=u.theme,ne=J===void 0?"vs-dark":J,ue=u.onEditBlur,be=u.onSave,de=u.autoHeight,_e=de===void 0?!1:de,me=u.forbidCopy,Ee=me===void 0?!1:me,ge=u.onChange,Ae=ge===void 0?p:ge,ae=u.editorDidMount,ve=ae===void 0?p:ae,oe=u.onFocus,ie=oe===void 0?p:oe,Te=u.onBreakPoint,Re=Te===void 0?p:Te,Me=u.breakPointValue,re=Me===void 0?[]:Me,j=u.filename,W=j===void 0?"educoder.txt":j,he=u.errorLine,te=u.errorContent,ce=te===void 0?"":te,Ie=u.highlightLine,ze=u.openBreakPoint,_t=ze===void 0?!1:ze,He=Object(m.a)(u,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint"]),Ke=Object(n.useRef)(),ht=Object(n.useRef)({}),St=Object(n.useRef)(),ct=Object(n.useRef)(),lt=Object(n.useRef)([]),rt=Object(n.useRef)(!1),Ze=Object(n.useRef)(),$e=Object(n.useState)(!1),Ue=Object(w.a)($e,2),Ne=Ue[0],We=Ue[1];function it(){var Lt;return Ke.current&&(Lt=new a.default(function(Ht){var un=Object(C.a)(Ht),gn;try{for(un.s();!(gn=un.n()).done;){var Ar=gn.value;(Ar.target.offsetHeight>0||Ar.target.offsetWidth>0)&&ht.current.instance.layout()}}catch(wr){un.e(wr)}finally{un.f()}}),Lt.observe(Ke.current)),Lt}function yt(){b.b.warn({content:decodeURIComponent(f),key:"monaco-editor-tip"})}var vt=function(){var Ht=ht.current.instance;if(I!=null&&Ht&&Ne){var un=Ht.getModel();un&&I!==un.getValue()&&(x=!0,un.setValue(I),Ht.layout(),x=!1)}};Object(n.useEffect)(function(){try{var Lt,Ht=ht.current.instance;ct.current&&clearTimeout(ct.current),ct.current=setTimeout(function(){vt()},500),Ht==null||((Lt=Ht.updateOptions)===null||Lt===void 0)||Lt.call(Ht,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(I.split(/\r\n|\r|\n/g).length))+3,5)})}catch(un){debugger}},[I,Ne,ht.current]),Object(n.useEffect)(function(){try{if(he&&ht.current&&ht.current.instance){var Lt=ht.current.instance;Lt.changeViewZones(function(un){var gn=document.createElement("div");gn.style.padding="10px 20px",gn.style.width="calc(100% - 20px)",gn.className="my-error-line-wrp",gn.innerHTML=ce,un.addZone({afterLineNumber:he||11,heightInLines:3,domNode:gn})});var Ht={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}};Lt.addOverlayWidget(Ht),Lt.revealPositionInCenter({lineNumber:20,column:1})}}catch(un){debugger}},[he,ht.current,Ne]),Object(n.useEffect)(function(){var Lt;if((Lt=ht.current)!==null&&Lt!==void 0&&Lt.instance&&Ne&&_t){var Ht=ht.current.instance,un=Ht.getModel();if(!un)return;var gn=function(){var Fe=[],nt=[],xt=un.getAllDecorations(),Wt=Object(C.a)(xt),Xt;try{for(Wt.s();!(Xt=Wt.n()).done;){var pe=Xt.value;if(pe.options.className==="highlighted-line"){var z;Fe.push(pe==null||((z=pe.range)===null||z===void 0)?void 0:z.startLineNumber),nt.push(pe==null?void 0:pe.id)}}}catch(ye){Wt.e(ye)}finally{Wt.f()}un.deltaDecorations(nt,[]);var Z=un.getLineCount();!!Ie&&Ie<=Z&&(Ht.deltaDecorations([],[{range:new E.Range(Ie,1,Ie,un.getLineMaxColumn(Ie)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ht.revealLineInCenter(Ie))};gn();var Ar=function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,nt=[],xt=[],Wt=un.getAllDecorations(),Xt=Object(C.a)(Wt),pe;try{for(Xt.s();!(pe=Xt.n()).done;){var z=pe.value;if(z.options.linesDecorationsClassName==="breakpoints"){var Z;nt.push(z==null||((Z=z.range)===null||Z===void 0)?void 0:Z.startLineNumber),xt.push(z==null?void 0:z.id)}}}catch(ye){Xt.e(ye)}finally{Xt.f()}if(Fe)return{lines:nt,ids:xt};Re(nt)},wr=function(){var Le=Object(M.a)(i.a.mark(function Fe(nt){var xt;return i.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return xt={range:new E.Range(nt,1,nt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},Xt.next=3,un.deltaDecorations([],[xt]);case 3:Ar();case 4:case"end":return Xt.stop()}},Fe)}));return function(nt){return Le.apply(this,arguments)}}(),cr=function(){var Le=Object(M.a)(i.a.mark(function Fe(nt){var xt,Wt,Xt,pe,z;return i.a.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:xt=[],Wt=Ht.getLineDecorations(nt),Xt=Object(C.a)(Wt);try{for(Xt.s();!(pe=Xt.n()).done;)z=pe.value,z.options.linesDecorationsClassName==="breakpoints"&&xt.push(z.id)}catch(xe){Xt.e(xe)}finally{Xt.f()}return ye.next=6,un.deltaDecorations(xt,[]);case 6:Ar();case 7:case"end":return ye.stop()}},Fe)}));return function(nt){return Le.apply(this,arguments)}}(),Rn=function(Fe){var nt=Ht.getLineDecorations(Fe),xt=Object(C.a)(nt),Wt;try{for(xt.s();!(Wt=xt.n()).done;){var Xt=Wt.value;if(Xt.options.linesDecorationsClassName==="breakpoints")return!0}}catch(pe){xt.e(pe)}finally{xt.f()}return!1};if(!Object(r.isEqual)(re,Ar(!0).lines)){un.deltaDecorations(Ar(!0).ids,[]);var Jr=re.map(function(Le){return{range:new E.Range(Le,1,Le,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});un.deltaDecorations([],Jr)}var si=Ht.onDidChangeModelContent(function(Le){var Fe=Ht.getPosition();if(Fe){var nt=Fe.lineNumber;un.getLineContent(nt).trim()===""?cr(nt):Rn(nt)&&(cr(nt),wr(nt))}}),li=Ht.onMouseDown(function(Le){var Fe,nt,xt;if(Le.target.detail&&(Fe=Le.target)!==null&&Fe!==void 0&&(nt=Fe.element)!==null&&nt!==void 0&&(xt=nt.className)!==null&&xt!==void 0&&xt.includes("line-numbers")){var Wt=Le.target.position.lineNumber;if(un.getLineContent(Wt).trim()==="")return;Rn(Wt)?cr(Wt):wr(Wt)}}),kr=function(Fe){var nt={range:new E.Range(Fe,1,Fe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};lt.current=Ht.deltaDecorations(lt.current,[nt])},hi=function(){lt.current=Ht.deltaDecorations(lt.current,[])},Ui=Ht.onMouseMove(function(Le){var Fe,nt,xt;if(hi(),Le.target.detail&&(Fe=Le.target)!==null&&Fe!==void 0&&(nt=Fe.element)!==null&&nt!==void 0&&(xt=nt.className)!==null&&xt!==void 0&&xt.includes("line-numbers")){var Wt=Le.target.position.lineNumber;if(un.getLineContent(Wt).trim()==="")return;kr(Wt)}}),Zi=Ht.onMouseLeave(function(){hi()});return function(){si.dispose(),li.dispose(),Ui.dispose(),Zi.dispose()}}},[ht.current,Ne,re,Ie,_t]);function Mt(){var Lt=ht.current.instance;if(Lt){var Ht=Lt.getSelection(),un=ht.current.pastePos||{},gn=new E.Range(un.startLineNumber||Ht.endLineNumber,un.startColumn||Ht.endColumn,un.endLineNumber||Ht.endLineNumber,un.endColumn||Ht.endColumn);setTimeout(function(){Lt.executeEdits("",[{range:gn,text:""}])},300)}}function Tt(Lt){(window.navigator.platform.match("Mac")?Lt.metaKey:Lt.ctrlKey)&&Lt.keyCode==83&&(Lt.preventDefault(),be())}var Rt=function(){if(_e&&ht.current.instance){var Ht=ht.current.instance.getContentHeight();Vt(Ht<D?D:Ht)}else Vt(D)};function kt(Lt){var Ht=document.createEvent("MouseEvents");Ht.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Lt.dispatchEvent(Ht)}var Ut=function(Ht){var un=Ht.keyCode,gn=Ht.ctrlKey,Ar=Ht.metaKey,wr=Ht.target,cr=Ht.type;return(cr==="paste"||(un===67||un===86)&&(Ar||gn))&&wr.nodeName==="TEXTAREA"&&(yt(),Ht.preventDefault()),!1};function Bt(Lt,Ht){var un=window.URL||window.webkitURL||window,gn=new Blob([Ht]),Ar=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ar.href=un.createObjectURL(gn),Ar.download=Lt,kt(Ar)}Object(n.useEffect)(function(){Rt()},[Rt]),Object(n.useEffect)(function(){Ke.current&&!Ne&&R.e(27).then(R.t.bind(null,"M/lh",7)).then(function(Lt){try{E=Lt,ht.current.instance=E.editor.create(Ke.current,{value:I,language:B(F),theme:ne,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Q);var Ht=ht.current.instance,un=l.c._menuItems,gn=Object(G.a)(un).find(function(wr){return wr[0]._debugName=="EditorContext"});if(ve(Ht,E),setTimeout(function(){Rt(),ht.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){Bt(W||"educoder.txt",Ht.getValue())}}),Ht.getDomNode().addEventListener("input",function(){St.current.autoFormat&&Ht.getAction("editor.action.formatDocument").run()})},500),ht.current.subscription=Ht.onDidChangeModelContent(function(wr){debugger;rt.current?clearTimeout(Ze.current):(Rt(),Ae(Ht.getValue(),wr)),Ze.current=setTimeout(function(){rt.current=!1},500)}),window.Monaco||o(E,B(F)),Ee&&(Ke.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Ut),window.removeEventListener("paste",Ut),window.addEventListener("keydown",Ut),window.addEventListener("paste",Ut)),window.Monaco=E,ue&&Ht.onDidBlurEditorWidget(function(){ue(Ht.getValue())}),ie&&Ht.onDidFocusEditorText(function(){ie(Ht.getValue())}),Ee)try{window.addEventListener("paste",Mt)}catch(wr){}var Ar=it();return We(!0),function(){var wr=ht.current.instance;wr.dispose();var cr=wr.getModel();cr&&cr.dispose(),ht.current.subscription&&ht.current.subscription.dispose(),Ee&&window.removeEventListener("paste",Mt),Ar.unobserve(Ke.current)}}catch(wr){debugger}})},[]),Object(n.useEffect)(function(){var Lt=ht.current.instance;if(Lt&&Ne)return document.addEventListener("keydown",Tt,!1),function(){document.removeEventListener("keydown",Tt)}},[be,Ne]),Object(n.useEffect)(function(){var Lt=ht.current.instance;if(Lt&&Ne){var Ht=B(F);E.editor.setModelLanguage(Lt.getModel(),Ht)}},[F,Ne]),Object(n.useEffect)(function(){var Lt=ht.current.instance;Lt&&Ne&&E.editor.setTheme(ne)},[ne,Ne]),Object(n.useEffect)(function(){var Lt=ht.current.instance;St.current=V,Lt&&Ne&&(Lt.updateOptions(Object(se.a)({},V)),setTimeout(function(){Lt.getModel().updateOptions(Object(se.a)({},V))},200))},[JSON.stringify(V),Ne]),Object(n.useEffect)(function(){var Lt=ht.current.instance;Lt&&Ne&&Lt.layout()},[O,D,Ne]);var At=Object(n.useState)(A(O)),bt=Object(w.a)(At,2),je=bt[0],qe=bt[1],Ot=Object(n.useState)(A(D)),Ct=Object(w.a)(Ot,2),jt=Ct[0],Vt=Ct[1],Et=Object(se.a)(Object(se.a)({},U),{},{width:je,height:jt});return e.a.createElement("div",{className:"my-monaco-editor",ref:Ke,style:Et})};function h(u){var S=u.width,O=S===void 0?"100%":S,T=u.height,D=T===void 0?"100%":T,I=u.original,k=u.modified,F=u.language,X=u.options,U=X===void 0?{}:X,K=Object(n.useRef)(),V=Object(n.useState)(null),N=Object(w.a)(V,2),Q=N[0],J=N[1];function ne(_e){var me;return K.current&&(me=new a.default(function(Ee){var ge=Object(C.a)(Ee),Ae;try{for(ge.s();!(Ae=ge.n()).done;){var ae=Ae.value;(ae.target.offsetHeight>0||ae.target.offsetWidth>0)&&_e.layout()}}catch(ve){ge.e(ve)}finally{ge.f()}}),me.observe(K.current)),me}Object(n.useEffect)(function(){return K.current&&R.e(27).then(R.t.bind(null,"M/lh",7)).then(function(_e){E=_e;var me=E.editor.createDiffEditor(K.current,Object(se.a)(Object(se.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},U),{},{wordWrap:!0}));J(me);var Ee=ne(me);return function(){me.dispose();var ge=me.getModel();ge&&ge.dispose(),Ee.unobserve(K.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(n.useEffect)(function(){Q&&Q.setModel({original:E.editor.createModel(I,F),modified:E.editor.createModel(k,F)})},[I,k,F,Q]);var ue=A(O),be=A(D),de={width:ue,height:be};return e.a.createElement("div",{className:"my-diff-editor",ref:K,style:de})}},Ze12:function(Ge,fe,R){var se=R("ItGF"),G=R("hOwI"),M=G.buildTransformer,v="___zrEVENTSAVED",b=[];function C(n,e,a,s,o){return w(b,e,s,o,!0)&&w(n,a,b[0],b[1])}function w(n,e,a,s,o){if(e.getBoundingClientRect&&se.domSupported&&!i(e)){var f=e[v]||(e[v]={}),l=m(e,f),r=d(l,f,o);if(r)return r(n,a,s),!0}return!1}function m(n,e){var a=e.markers;if(a)return a;a=e.markers=[];for(var s=["left","right"],o=["top","bottom"],f=0;f<4;f++){var l=document.createElement("div"),r=l.style,c=f%2,A=(f>>1)%2;r.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",s[c]+":0",o[A]+":0",s[1-c]+":auto",o[1-A]+":auto",""].join("!important;"),n.appendChild(l),a.push(l)}return a}function d(n,e,a){for(var s=a?"invTrans":"trans",o=e[s],f=e.srcCoords,l=!0,r=[],c=[],A=0;A<4;A++){var p=n[A].getBoundingClientRect(),x=2*A,_=p.left,B=p.top;r.push(_,B),l=l&&f&&_===f[x]&&B===f[x+1],c.push(n[A].offsetLeft,n[A].offsetTop)}return l&&o?o:(e.srcCoords=r,e[s]=a?M(c,r):M(r,c))}function i(n){return n.nodeName.toUpperCase()==="CANVAS"}fe.transformLocalCoord=C,fe.transformCoordWithViewport=w,fe.isCanvasEl=i},ZpRC:function(Ge,fe,R){"use strict";function se(n){return typeof n=="object"&&n!=null&&n.nodeType===1}function G(n,e){return(!e||n!=="hidden")&&n!=="visible"&&n!=="clip"}function M(n,e){if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){var a=getComputedStyle(n,null);return G(a.overflowY,e)||G(a.overflowX,e)||function(s){var o=function(f){if(!f.ownerDocument||!f.ownerDocument.defaultView)return null;try{return f.ownerDocument.defaultView.frameElement}catch(l){return null}}(s);return!!o&&(o.clientHeight<s.scrollHeight||o.clientWidth<s.scrollWidth)}(n)}return!1}function v(n,e,a,s,o,f,l,r){return f<n&&l>e||f>n&&l<e?0:f<=n&&r<=a||l>=e&&r>=a?f-n-s:l>e&&r<a||f<n&&r>a?l-e+o:0}var b=function(n,e){var a=window,s=e.scrollMode,o=e.block,f=e.inline,l=e.boundary,r=e.skipOverflowHiddenElements,c=typeof l=="function"?l:function(Re){return Re!==l};if(!se(n))throw new TypeError("Invalid target");for(var A=document.scrollingElement||document.documentElement,p=[],x=n;se(x)&&c(x);){if((x=x.parentElement)===A){p.push(x);break}x!=null&&x===document.body&&M(x)&&!M(document.documentElement)||x!=null&&M(x,r)&&p.push(x)}for(var _=a.visualViewport?a.visualViewport.width:innerWidth,B=a.visualViewport?a.visualViewport.height:innerHeight,E=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,h=n.getBoundingClientRect(),u=h.height,S=h.width,O=h.top,T=h.right,D=h.bottom,I=h.left,k=o==="start"||o==="nearest"?O:o==="end"?D:O+u/2,F=f==="center"?I+S/2:f==="end"?T:I,X=[],U=0;U<p.length;U++){var K=p[U],V=K.getBoundingClientRect(),N=V.height,Q=V.width,J=V.top,ne=V.right,ue=V.bottom,be=V.left;if(s==="if-needed"&&O>=0&&I>=0&&D<=B&&T<=_&&O>=J&&D<=ue&&I>=be&&T<=ne)return X;var de=getComputedStyle(K),_e=parseInt(de.borderLeftWidth,10),me=parseInt(de.borderTopWidth,10),Ee=parseInt(de.borderRightWidth,10),ge=parseInt(de.borderBottomWidth,10),Ae=0,ae=0,ve="offsetWidth"in K?K.offsetWidth-K.clientWidth-_e-Ee:0,oe="offsetHeight"in K?K.offsetHeight-K.clientHeight-me-ge:0;if(A===K)Ae=o==="start"?k:o==="end"?k-B:o==="nearest"?v(g,g+B,B,me,ge,g+k,g+k+u,u):k-B/2,ae=f==="start"?F:f==="center"?F-_/2:f==="end"?F-_:v(E,E+_,_,_e,Ee,E+F,E+F+S,S),Ae=Math.max(0,Ae+g),ae=Math.max(0,ae+E);else{Ae=o==="start"?k-J-me:o==="end"?k-ue+ge+oe:o==="nearest"?v(J,ue,N,me,ge+oe,k,k+u,u):k-(J+N/2)+oe/2,ae=f==="start"?F-be-_e:f==="center"?F-(be+Q/2)+ve/2:f==="end"?F-ne+Ee+ve:v(be,ne,Q,_e,Ee+ve,F,F+S,S);var ie=K.scrollLeft,Te=K.scrollTop;k+=Te-(Ae=Math.max(0,Math.min(Te+Ae,K.scrollHeight-N+oe))),F+=ie-(ae=Math.max(0,Math.min(ie+ae,K.scrollWidth-Q+ve)))}X.push({el:K,top:Ae,left:ae})}return X};function C(n){return n===Object(n)&&Object.keys(n).length!==0}function w(n,e){e===void 0&&(e="auto");var a="scrollBehavior"in document.body.style;n.forEach(function(s){var o=s.el,f=s.top,l=s.left;o.scroll&&a?o.scroll({top:f,left:l,behavior:e}):(o.scrollTop=f,o.scrollLeft=l)})}function m(n){return n===!1?{block:"end",inline:"nearest"}:C(n)?n:{block:"start",inline:"nearest"}}function d(n,e){var a=!n.ownerDocument.documentElement.contains(n);if(C(e)&&typeof e.behavior=="function")return e.behavior(a?[]:b(n,e));if(a)return;var s=m(e);return w(b(n,s),s.behavior)}var i=fe.a=d},Zss7:function(Ge,fe,R){var se;(function(G){var M=/^\s+/,v=/\s+$/,b=0,C=G.round,w=G.min,m=G.max,d=G.random;function i(ge,Ae){if(ge=ge||"",Ae=Ae||{},ge instanceof i)return ge;if(!(this instanceof i))return new i(ge,Ae);var ae=n(ge);this._originalInput=ge,this._r=ae.r,this._g=ae.g,this._b=ae.b,this._a=ae.a,this._roundA=C(100*this._a)/100,this._format=Ae.format||ae.format,this._gradientType=Ae.gradientType,this._r<1&&(this._r=C(this._r)),this._g<1&&(this._g=C(this._g)),this._b<1&&(this._b=C(this._b)),this._ok=ae.ok,this._tc_id=b++}i.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 ge=this.toRgb();return(ge.r*299+ge.g*587+ge.b*114)/1e3},getLuminance:function(){var ge=this.toRgb(),Ae,ae,ve,oe,ie,Te;return Ae=ge.r/255,ae=ge.g/255,ve=ge.b/255,Ae<=.03928?oe=Ae/12.92:oe=G.pow((Ae+.055)/1.055,2.4),ae<=.03928?ie=ae/12.92:ie=G.pow((ae+.055)/1.055,2.4),ve<=.03928?Te=ve/12.92:Te=G.pow((ve+.055)/1.055,2.4),.2126*oe+.7152*ie+.0722*Te},setAlpha:function(ge){return this._a=X(ge),this._roundA=C(100*this._a)/100,this},toHsv:function(){var ge=o(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,v:ge.v,a:this._a}},toHsvString:function(){var ge=o(this._r,this._g,this._b),Ae=C(ge.h*360),ae=C(ge.s*100),ve=C(ge.v*100);return this._a==1?"hsv("+Ae+", "+ae+"%, "+ve+"%)":"hsva("+Ae+", "+ae+"%, "+ve+"%, "+this._roundA+")"},toHsl:function(){var ge=a(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,l:ge.l,a:this._a}},toHslString:function(){var ge=a(this._r,this._g,this._b),Ae=C(ge.h*360),ae=C(ge.s*100),ve=C(ge.l*100);return this._a==1?"hsl("+Ae+", "+ae+"%, "+ve+"%)":"hsla("+Ae+", "+ae+"%, "+ve+"%, "+this._roundA+")"},toHex:function(ge){return l(this._r,this._g,this._b,ge)},toHexString:function(ge){return"#"+this.toHex(ge)},toHex8:function(ge){return r(this._r,this._g,this._b,this._a,ge)},toHex8String:function(ge){return"#"+this.toHex8(ge)},toRgb:function(){return{r:C(this._r),g:C(this._g),b:C(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+C(this._r)+", "+C(this._g)+", "+C(this._b)+")":"rgba("+C(this._r)+", "+C(this._g)+", "+C(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:C(U(this._r,255)*100)+"%",g:C(U(this._g,255)*100)+"%",b:C(U(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+C(U(this._r,255)*100)+"%, "+C(U(this._g,255)*100)+"%, "+C(U(this._b,255)*100)+"%)":"rgba("+C(U(this._r,255)*100)+"%, "+C(U(this._g,255)*100)+"%, "+C(U(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:k[l(this._r,this._g,this._b,!0)]||!1},toFilter:function(ge){var Ae="#"+c(this._r,this._g,this._b,this._a),ae=Ae,ve=this._gradientType?"GradientType = 1, ":"";if(ge){var oe=i(ge);ae="#"+c(oe._r,oe._g,oe._b,oe._a)}return"progid:DXImageTransform.Microsoft.gradient("+ve+"startColorstr="+Ae+",endColorstr="+ae+")"},toString:function(ge){var Ae=!!ge;ge=ge||this._format;var ae=!1,ve=this._a<1&&this._a>=0,oe=!Ae&&ve&&(ge==="hex"||ge==="hex6"||ge==="hex3"||ge==="hex4"||ge==="hex8"||ge==="name");return oe?ge==="name"&&this._a===0?this.toName():this.toRgbString():(ge==="rgb"&&(ae=this.toRgbString()),ge==="prgb"&&(ae=this.toPercentageRgbString()),(ge==="hex"||ge==="hex6")&&(ae=this.toHexString()),ge==="hex3"&&(ae=this.toHexString(!0)),ge==="hex4"&&(ae=this.toHex8String(!0)),ge==="hex8"&&(ae=this.toHex8String()),ge==="name"&&(ae=this.toName()),ge==="hsl"&&(ae=this.toHslString()),ge==="hsv"&&(ae=this.toHsvString()),ae||this.toHexString())},clone:function(){return i(this.toString())},_applyModification:function(ge,Ae){var ae=ge.apply(null,[this].concat([].slice.call(Ae)));return this._r=ae._r,this._g=ae._g,this._b=ae._b,this.setAlpha(ae._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(B,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(p,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(ge,Ae){return ge.apply(null,[this].concat([].slice.call(Ae)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(h,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(u,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},i.fromRatio=function(ge,Ae){if(typeof ge=="object"){var ae={};for(var ve in ge)ge.hasOwnProperty(ve)&&(ve==="a"?ae[ve]=ge[ve]:ae[ve]=ne(ge[ve]));ge=ae}return i(ge,Ae)};function n(ge){var Ae={r:0,g:0,b:0},ae=1,ve=null,oe=null,ie=null,Te=!1,Re=!1;return typeof ge=="string"&&(ge=me(ge)),typeof ge=="object"&&(_e(ge.r)&&_e(ge.g)&&_e(ge.b)?(Ae=e(ge.r,ge.g,ge.b),Te=!0,Re=String(ge.r).substr(-1)==="%"?"prgb":"rgb"):_e(ge.h)&&_e(ge.s)&&_e(ge.v)?(ve=ne(ge.s),oe=ne(ge.v),Ae=f(ge.h,ve,oe),Te=!0,Re="hsv"):_e(ge.h)&&_e(ge.s)&&_e(ge.l)&&(ve=ne(ge.s),ie=ne(ge.l),Ae=s(ge.h,ve,ie),Te=!0,Re="hsl"),ge.hasOwnProperty("a")&&(ae=ge.a)),ae=X(ae),{ok:Te,format:ge.format||Re,r:w(255,m(Ae.r,0)),g:w(255,m(Ae.g,0)),b:w(255,m(Ae.b,0)),a:ae}}function e(ge,Ae,ae){return{r:U(ge,255)*255,g:U(Ae,255)*255,b:U(ae,255)*255}}function a(ge,Ae,ae){ge=U(ge,255),Ae=U(Ae,255),ae=U(ae,255);var ve=m(ge,Ae,ae),oe=w(ge,Ae,ae),ie,Te,Re=(ve+oe)/2;if(ve==oe)ie=Te=0;else{var Me=ve-oe;Te=Re>.5?Me/(2-ve-oe):Me/(ve+oe);switch(ve){case ge:ie=(Ae-ae)/Me+(Ae<ae?6:0);break;case Ae:ie=(ae-ge)/Me+2;break;case ae:ie=(ge-Ae)/Me+4;break}ie/=6}return{h:ie,s:Te,l:Re}}function s(ge,Ae,ae){var ve,oe,ie;ge=U(ge,360),Ae=U(Ae,100),ae=U(ae,100);function Te(re,j,W){return W<0&&(W+=1),W>1&&(W-=1),W<1/6?re+(j-re)*6*W:W<1/2?j:W<2/3?re+(j-re)*(2/3-W)*6:re}if(Ae===0)ve=oe=ie=ae;else{var Re=ae<.5?ae*(1+Ae):ae+Ae-ae*Ae,Me=2*ae-Re;ve=Te(Me,Re,ge+1/3),oe=Te(Me,Re,ge),ie=Te(Me,Re,ge-1/3)}return{r:ve*255,g:oe*255,b:ie*255}}function o(ge,Ae,ae){ge=U(ge,255),Ae=U(Ae,255),ae=U(ae,255);var ve=m(ge,Ae,ae),oe=w(ge,Ae,ae),ie,Te,Re=ve,Me=ve-oe;if(Te=ve===0?0:Me/ve,ve==oe)ie=0;else{switch(ve){case ge:ie=(Ae-ae)/Me+(Ae<ae?6:0);break;case Ae:ie=(ae-ge)/Me+2;break;case ae:ie=(ge-Ae)/Me+4;break}ie/=6}return{h:ie,s:Te,v:Re}}function f(ge,Ae,ae){ge=U(ge,360)*6,Ae=U(Ae,100),ae=U(ae,100);var ve=G.floor(ge),oe=ge-ve,ie=ae*(1-Ae),Te=ae*(1-oe*Ae),Re=ae*(1-(1-oe)*Ae),Me=ve%6,re=[ae,Te,ie,ie,Re,ae][Me],j=[Re,ae,ae,Te,ie,ie][Me],W=[ie,ie,Re,ae,ae,Te][Me];return{r:re*255,g:j*255,b:W*255}}function l(ge,Ae,ae,ve){var oe=[J(C(ge).toString(16)),J(C(Ae).toString(16)),J(C(ae).toString(16))];return ve&&oe[0].charAt(0)==oe[0].charAt(1)&&oe[1].charAt(0)==oe[1].charAt(1)&&oe[2].charAt(0)==oe[2].charAt(1)?oe[0].charAt(0)+oe[1].charAt(0)+oe[2].charAt(0):oe.join("")}function r(ge,Ae,ae,ve,oe){var ie=[J(C(ge).toString(16)),J(C(Ae).toString(16)),J(C(ae).toString(16)),J(ue(ve))];return oe&&ie[0].charAt(0)==ie[0].charAt(1)&&ie[1].charAt(0)==ie[1].charAt(1)&&ie[2].charAt(0)==ie[2].charAt(1)&&ie[3].charAt(0)==ie[3].charAt(1)?ie[0].charAt(0)+ie[1].charAt(0)+ie[2].charAt(0)+ie[3].charAt(0):ie.join("")}function c(ge,Ae,ae,ve){var oe=[J(ue(ve)),J(C(ge).toString(16)),J(C(Ae).toString(16)),J(C(ae).toString(16))];return oe.join("")}i.equals=function(ge,Ae){return!ge||!Ae?!1:i(ge).toRgbString()==i(Ae).toRgbString()},i.random=function(){return i.fromRatio({r:d(),g:d(),b:d()})};function A(ge,Ae){Ae=Ae===0?0:Ae||10;var ae=i(ge).toHsl();return ae.s-=Ae/100,ae.s=K(ae.s),i(ae)}function p(ge,Ae){Ae=Ae===0?0:Ae||10;var ae=i(ge).toHsl();return ae.s+=Ae/100,ae.s=K(ae.s),i(ae)}function x(ge){return i(ge).desaturate(100)}function _(ge,Ae){Ae=Ae===0?0:Ae||10;var ae=i(ge).toHsl();return ae.l+=Ae/100,ae.l=K(ae.l),i(ae)}function B(ge,Ae){Ae=Ae===0?0:Ae||10;var ae=i(ge).toRgb();return ae.r=m(0,w(255,ae.r-C(255*-(Ae/100)))),ae.g=m(0,w(255,ae.g-C(255*-(Ae/100)))),ae.b=m(0,w(255,ae.b-C(255*-(Ae/100)))),i(ae)}function E(ge,Ae){Ae=Ae===0?0:Ae||10;var ae=i(ge).toHsl();return ae.l-=Ae/100,ae.l=K(ae.l),i(ae)}function g(ge,Ae){var ae=i(ge).toHsl(),ve=(ae.h+Ae)%360;return ae.h=ve<0?360+ve:ve,i(ae)}function h(ge){var Ae=i(ge).toHsl();return Ae.h=(Ae.h+180)%360,i(Ae)}function u(ge){var Ae=i(ge).toHsl(),ae=Ae.h;return[i(ge),i({h:(ae+120)%360,s:Ae.s,l:Ae.l}),i({h:(ae+240)%360,s:Ae.s,l:Ae.l})]}function S(ge){var Ae=i(ge).toHsl(),ae=Ae.h;return[i(ge),i({h:(ae+90)%360,s:Ae.s,l:Ae.l}),i({h:(ae+180)%360,s:Ae.s,l:Ae.l}),i({h:(ae+270)%360,s:Ae.s,l:Ae.l})]}function O(ge){var Ae=i(ge).toHsl(),ae=Ae.h;return[i(ge),i({h:(ae+72)%360,s:Ae.s,l:Ae.l}),i({h:(ae+216)%360,s:Ae.s,l:Ae.l})]}function T(ge,Ae,ae){Ae=Ae||6,ae=ae||30;var ve=i(ge).toHsl(),oe=360/ae,ie=[i(ge)];for(ve.h=(ve.h-(oe*Ae>>1)+720)%360;--Ae;)ve.h=(ve.h+oe)%360,ie.push(i(ve));return ie}function D(ge,Ae){Ae=Ae||6;for(var ae=i(ge).toHsv(),ve=ae.h,oe=ae.s,ie=ae.v,Te=[],Re=1/Ae;Ae--;)Te.push(i({h:ve,s:oe,v:ie})),ie=(ie+Re)%1;return Te}i.mix=function(ge,Ae,ae){ae=ae===0?0:ae||50;var ve=i(ge).toRgb(),oe=i(Ae).toRgb(),ie=ae/100,Te={r:(oe.r-ve.r)*ie+ve.r,g:(oe.g-ve.g)*ie+ve.g,b:(oe.b-ve.b)*ie+ve.b,a:(oe.a-ve.a)*ie+ve.a};return i(Te)},i.readability=function(ge,Ae){var ae=i(ge),ve=i(Ae);return(G.max(ae.getLuminance(),ve.getLuminance())+.05)/(G.min(ae.getLuminance(),ve.getLuminance())+.05)},i.isReadable=function(ge,Ae,ae){var ve=i.readability(ge,Ae),oe,ie;ie=!1,oe=Ee(ae);switch(oe.level+oe.size){case"AAsmall":case"AAAlarge":ie=ve>=4.5;break;case"AAlarge":ie=ve>=3;break;case"AAAsmall":ie=ve>=7;break}return ie},i.mostReadable=function(ge,Ae,ae){var ve=null,oe=0,ie,Te,Re,Me;ae=ae||{},Te=ae.includeFallbackColors,Re=ae.level,Me=ae.size;for(var re=0;re<Ae.length;re++)ie=i.readability(ge,Ae[re]),ie>oe&&(oe=ie,ve=i(Ae[re]));return i.isReadable(ge,ve,{level:Re,size:Me})||!Te?ve:(ae.includeFallbackColors=!1,i.mostReadable(ge,["#fff","#000"],ae))};var I=i.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"},k=i.hexNames=F(I);function F(ge){var Ae={};for(var ae in ge)ge.hasOwnProperty(ae)&&(Ae[ge[ae]]=ae);return Ae}function X(ge){return ge=parseFloat(ge),(isNaN(ge)||ge<0||ge>1)&&(ge=1),ge}function U(ge,Ae){N(ge)&&(ge="100%");var ae=Q(ge);return ge=w(Ae,m(0,parseFloat(ge))),ae&&(ge=parseInt(ge*Ae,10)/100),G.abs(ge-Ae)<1e-6?1:ge%Ae/parseFloat(Ae)}function K(ge){return w(1,m(0,ge))}function V(ge){return parseInt(ge,16)}function N(ge){return typeof ge=="string"&&ge.indexOf(".")!=-1&&parseFloat(ge)===1}function Q(ge){return typeof ge=="string"&&ge.indexOf("%")!=-1}function J(ge){return ge.length==1?"0"+ge:""+ge}function ne(ge){return ge<=1&&(ge=ge*100+"%"),ge}function ue(ge){return G.round(parseFloat(ge)*255).toString(16)}function be(ge){return V(ge)/255}var de=function(){var ge="[-\\+]?\\d+%?",Ae="[-\\+]?\\d*\\.\\d+%?",ae="(?:"+Ae+")|(?:"+ge+")",ve="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?",oe="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?";return{CSS_UNIT:new RegExp(ae),rgb:new RegExp("rgb"+ve),rgba:new RegExp("rgba"+oe),hsl:new RegExp("hsl"+ve),hsla:new RegExp("hsla"+oe),hsv:new RegExp("hsv"+ve),hsva:new RegExp("hsva"+oe),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 _e(ge){return!!de.CSS_UNIT.exec(ge)}function me(ge){ge=ge.replace(M,"").replace(v,"").toLowerCase();var Ae=!1;if(I[ge])ge=I[ge],Ae=!0;else if(ge=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ae;return(ae=de.rgb.exec(ge))?{r:ae[1],g:ae[2],b:ae[3]}:(ae=de.rgba.exec(ge))?{r:ae[1],g:ae[2],b:ae[3],a:ae[4]}:(ae=de.hsl.exec(ge))?{h:ae[1],s:ae[2],l:ae[3]}:(ae=de.hsla.exec(ge))?{h:ae[1],s:ae[2],l:ae[3],a:ae[4]}:(ae=de.hsv.exec(ge))?{h:ae[1],s:ae[2],v:ae[3]}:(ae=de.hsva.exec(ge))?{h:ae[1],s:ae[2],v:ae[3],a:ae[4]}:(ae=de.hex8.exec(ge))?{r:V(ae[1]),g:V(ae[2]),b:V(ae[3]),a:be(ae[4]),format:Ae?"name":"hex8"}:(ae=de.hex6.exec(ge))?{r:V(ae[1]),g:V(ae[2]),b:V(ae[3]),format:Ae?"name":"hex"}:(ae=de.hex4.exec(ge))?{r:V(ae[1]+""+ae[1]),g:V(ae[2]+""+ae[2]),b:V(ae[3]+""+ae[3]),a:be(ae[4]+""+ae[4]),format:Ae?"name":"hex8"}:(ae=de.hex3.exec(ge))?{r:V(ae[1]+""+ae[1]),g:V(ae[2]+""+ae[2]),b:V(ae[3]+""+ae[3]),format:Ae?"name":"hex"}:!1}function Ee(ge){var Ae,ae;return ge=ge||{level:"AA",size:"small"},Ae=(ge.level||"AA").toUpperCase(),ae=(ge.size||"small").toLowerCase(),Ae!=="AA"&&Ae!=="AAA"&&(Ae="AA"),ae!=="small"&&ae!=="large"&&(ae="small"),{level:Ae,size:ae}}Ge.exports?Ge.exports=i:!(se=function(){return i}.call(fe,R,fe,Ge),se!==void 0&&(Ge.exports=se))})(Math)},aKvl:function(Ge,fe,R){var se=R("Sj9i"),G=se.quadraticProjectPoint;function M(v,b,C,w,m,d,i,n,e){if(i===0)return!1;var a=i;if(e>b+a&&e>w+a&&e>d+a||e<b-a&&e<w-a&&e<d-a||n>v+a&&n>C+a&&n>m+a||n<v-a&&n<C-a&&n<m-a)return!1;var s=G(v,b,C,w,m,d,n,e,null);return s<=a/2}fe.containStroke=M},aX58:function(Ge,fe,R){var se=R("3gBT"),G=R("ItGF"),M=R("bYtY"),v=R("0s+r"),b=R("r6Bn"),C=R("7SHv"),w=R("MKOG"),m=R("zarK");/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var d=!G.canvasSupported,i={canvas:C},n={},e="4.3.1";function a(c,A){var p=new r(se(),c,A);return n[p.id]=p,p}function s(c){if(c)c.dispose();else{for(var A in n)n.hasOwnProperty(A)&&n[A].dispose();n={}}return this}function o(c){return n[c]}function f(c,A){i[c]=A}function l(c){delete n[c]}var r=function(c,A,p){p=p||{},this.dom=A,this.id=c;var x=this,_=new b,B=p.renderer;if(d){if(!i.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");B="vml"}else(!B||!i[B])&&(B="canvas");var E=new i[B](A,_,p,c);this.storage=_,this.painter=E;var g=!G.node&&!G.worker?new m(E.getViewportRoot(),E.root):null;this.handler=new v(_,E,g,E.root),this.animation=new w({stage:{update:M.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var h=_.delFromStorage,u=_.addToStorage;_.delFromStorage=function(S){h.call(_,S),S&&S.removeSelfFromZr(x)},_.addToStorage=function(S){u.call(_,S),S.addSelfToZr(x)}};r.prototype={constructor:r,getId:function(){return this.id},add:function(c){this.storage.addRoot(c),this._needsRefresh=!0},remove:function(c){this.storage.delRoot(c),this._needsRefresh=!0},configLayer:function(c,A){this.painter.configLayer&&this.painter.configLayer(c,A),this._needsRefresh=!0},setBackgroundColor:function(c){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(c),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var c;this._needsRefresh&&(c=!0,this.refreshImmediately()),this._needsRefreshHover&&(c=!0,this.refreshHoverImmediately()),c&&this.trigger("rendered")},addHover:function(c,A){if(this.painter.addHover){var p=this.painter.addHover(c,A);return this.refreshHover(),p}},removeHover:function(c){this.painter.removeHover&&(this.painter.removeHover(c),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(c){c=c||{},this.painter.resize(c.width,c.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(c,A){return this.painter.pathToImage(c,A)},setCursorStyle:function(c){this.handler.setCursorStyle(c)},findHover:function(c,A){return this.handler.findHover(c,A)},on:function(c,A,p){this.handler.on(c,A,p)},off:function(c,A){this.handler.off(c,A)},trigger:function(c,A){this.handler.trigger(c,A)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,l(this.id)}},fe.version=e,fe.init=a,fe.dispose=s,fe.getInstance=o,fe.registerPainter=f},bT9E:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return G});var se=R("VTBJ");function G(M,v){var b=Object(se.a)({},M);return Array.isArray(v)&&v.forEach(function(C){delete b[C]}),b}},bYtY:function(Ge,fe){var R={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},se={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},G=Object.prototype.toString,M=Array.prototype,v=M.forEach,b=M.filter,C=M.slice,w=M.map,m=M.reduce,d={};function i(ae,ve){ae==="createCanvas"&&(l=null),d[ae]=ve}function n(ae){if(ae==null||typeof ae!="object")return ae;var ve=ae,oe=G.call(ae);if(oe==="[object Array]"){if(!_e(ae)){ve=[];for(var ie=0,Te=ae.length;ie<Te;ie++)ve[ie]=n(ae[ie])}}else if(se[oe]){if(!_e(ae)){var Re=ae.constructor;if(ae.constructor.from)ve=Re.from(ae);else{ve=new Re(ae.length);for(var ie=0,Te=ae.length;ie<Te;ie++)ve[ie]=n(ae[ie])}}}else if(!R[oe]&&!_e(ae)&&!X(ae)){ve={};for(var Me in ae)ae.hasOwnProperty(Me)&&(ve[Me]=n(ae[Me]))}return ve}function e(ae,ve,oe){if(!I(ve)||!I(ae))return oe?n(ve):ae;for(var ie in ve)if(ve.hasOwnProperty(ie)){var Te=ae[ie],Re=ve[ie];I(Re)&&I(Te)&&!O(Re)&&!O(Te)&&!X(Re)&&!X(Te)&&!k(Re)&&!k(Te)&&!_e(Re)&&!_e(Te)?e(Te,Re,oe):(oe||!(ie in ae))&&(ae[ie]=n(ve[ie],!0))}return ae}function a(ae,ve){for(var oe=ae[0],ie=1,Te=ae.length;ie<Te;ie++)oe=e(oe,ae[ie],ve);return oe}function s(ae,ve){for(var oe in ve)ve.hasOwnProperty(oe)&&(ae[oe]=ve[oe]);return ae}function o(ae,ve,oe){for(var ie in ve)ve.hasOwnProperty(ie)&&(oe?ve[ie]!=null:ae[ie]==null)&&(ae[ie]=ve[ie]);return ae}var f=function(){return d.createCanvas()};d.createCanvas=function(){return document.createElement("canvas")};var l;function r(){return l||(l=f().getContext("2d")),l}function c(ae,ve){if(ae){if(ae.indexOf)return ae.indexOf(ve);for(var oe=0,ie=ae.length;oe<ie;oe++)if(ae[oe]===ve)return oe}return-1}function A(ae,ve){var oe=ae.prototype;function ie(){}ie.prototype=ve.prototype,ae.prototype=new ie;for(var Te in oe)oe.hasOwnProperty(Te)&&(ae.prototype[Te]=oe[Te]);ae.prototype.constructor=ae,ae.superClass=ve}function p(ae,ve,oe){ae="prototype"in ae?ae.prototype:ae,ve="prototype"in ve?ve.prototype:ve,o(ae,ve,oe)}function x(ae){return ae?typeof ae=="string"?!1:typeof ae.length=="number":void 0}function _(ae,ve,oe){if(!(ae&&ve))return;if(ae.forEach&&ae.forEach===v)ae.forEach(ve,oe);else if(ae.length===+ae.length)for(var ie=0,Te=ae.length;ie<Te;ie++)ve.call(oe,ae[ie],ie,ae);else for(var Re in ae)ae.hasOwnProperty(Re)&&ve.call(oe,ae[Re],Re,ae)}function B(ae,ve,oe){if(!(ae&&ve))return;if(ae.map&&ae.map===w)return ae.map(ve,oe);for(var ie=[],Te=0,Re=ae.length;Te<Re;Te++)ie.push(ve.call(oe,ae[Te],Te,ae));return ie}function E(ae,ve,oe,ie){if(!(ae&&ve))return;if(ae.reduce&&ae.reduce===m)return ae.reduce(ve,oe,ie);for(var Te=0,Re=ae.length;Te<Re;Te++)oe=ve.call(ie,oe,ae[Te],Te,ae);return oe}function g(ae,ve,oe){if(!(ae&&ve))return;if(ae.filter&&ae.filter===b)return ae.filter(ve,oe);for(var ie=[],Te=0,Re=ae.length;Te<Re;Te++)ve.call(oe,ae[Te],Te,ae)&&ie.push(ae[Te]);return ie}function h(ae,ve,oe){if(!(ae&&ve))return;for(var ie=0,Te=ae.length;ie<Te;ie++)if(ve.call(oe,ae[ie],ie,ae))return ae[ie]}function u(ae,ve){var oe=C.call(arguments,2);return function(){return ae.apply(ve,oe.concat(C.call(arguments)))}}function S(ae){var ve=C.call(arguments,1);return function(){return ae.apply(this,ve.concat(C.call(arguments)))}}function O(ae){return G.call(ae)==="[object Array]"}function T(ae){return typeof ae=="function"}function D(ae){return G.call(ae)==="[object String]"}function I(ae){var ve=typeof ae;return ve==="function"||!!ae&&ve==="object"}function k(ae){return!!R[G.call(ae)]}function F(ae){return!!se[G.call(ae)]}function X(ae){return typeof ae=="object"&&typeof ae.nodeType=="number"&&typeof ae.ownerDocument=="object"}function U(ae){return ae!==ae}function K(ae){for(var ve=0,oe=arguments.length;ve<oe;ve++)if(arguments[ve]!=null)return arguments[ve]}function V(ae,ve){return ae!=null?ae:ve}function N(ae,ve,oe){return ae!=null?ae:ve!=null?ve:oe}function Q(){return Function.call.apply(C,arguments)}function J(ae){if(typeof ae=="number")return[ae,ae,ae,ae];var ve=ae.length;return ve===2?[ae[0],ae[1],ae[0],ae[1]]:ve===3?[ae[0],ae[1],ae[2],ae[1]]:ae}function ne(ae,ve){if(!ae)throw new Error(ve)}function ue(ae){return ae==null?null:typeof ae.trim=="function"?ae.trim():ae.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var be="__ec_primitive__";function de(ae){ae[be]=!0}function _e(ae){return ae[be]}function me(ae){var ve=O(ae);this.data={};var oe=this;ae instanceof me?ae.each(ie):ae&&_(ae,ie);function ie(Te,Re){ve?oe.set(Te,Re):oe.set(Re,Te)}}me.prototype={constructor:me,get:function(ae){return this.data.hasOwnProperty(ae)?this.data[ae]:null},set:function(ae,ve){return this.data[ae]=ve},each:function(ae,ve){ve!==void 0&&(ae=u(ae,ve));for(var oe in this.data)this.data.hasOwnProperty(oe)&&ae(this.data[oe],oe)},removeKey:function(ae){delete this.data[ae]}};function Ee(ae){return new me(ae)}function ge(ae,ve){for(var oe=new ae.constructor(ae.length+ve.length),ie=0;ie<ae.length;ie++)oe[ie]=ae[ie];var Te=ae.length;for(ie=0;ie<ve.length;ie++)oe[ie+Te]=ve[ie];return oe}function Ae(){}fe.$override=i,fe.clone=n,fe.merge=e,fe.mergeAll=a,fe.extend=s,fe.defaults=o,fe.createCanvas=f,fe.getContext=r,fe.indexOf=c,fe.inherits=A,fe.mixin=p,fe.isArrayLike=x,fe.each=_,fe.map=B,fe.reduce=E,fe.filter=g,fe.find=h,fe.bind=u,fe.curry=S,fe.isArray=O,fe.isFunction=T,fe.isString=D,fe.isObject=I,fe.isBuiltInObject=k,fe.isTypedArray=F,fe.isDom=X,fe.eqNaN=U,fe.retrieve=K,fe.retrieve2=V,fe.retrieve3=N,fe.slice=Q,fe.normalizeCssArray=J,fe.assert=ne,fe.trim=ue,fe.setAsPrimitive=de,fe.isPrimitive=_e,fe.createHashMap=Ee,fe.concatArray=ge,fe.noop=Ae},biw7:function(Ge,fe,R){"use strict";var se=R("q1tI"),G=R.n(se),M=se.createContext(null);fe.a=M},c5Ni:function(Ge,fe,R){},cCSd:function(Ge,fe,R){Ge.exports={flex_box_center:"flex_box_center___3Q6yG",flex_space_between:"flex_space_between___S_CUk",flex_box_vertical_center:"flex_box_vertical_center___2Gdbl",flex_box_center_end:"flex_box_center_end___1xrL5",flex_box_column:"flex_box_column___16e2L",wrp:"wrp___3ZwBI",drawer:"drawer___1PTh9",menu:"menu___DFNiI",actived:"actived___1sNU9",actived2:"actived2___2BWt2",listItem:"listItem___1ylrh",info:"info___F7JZE",title:"title___2kNmP",titleLeft:"titleLeft___1h-DH",titleRight:"titleRight___hT8FM",search:"search___1KEgc",description:"description___31f06",menuCourse:"menuCourse___3RVET"}},cRFk:function(Ge,fe,R){Ge.exports=R.p+"static/RepositoryNoneData.828085a8.png"},chpo:function(Ge,fe,R){"use strict";Object.defineProperty(fe,"__esModule",{value:!0}),fe.default=void 0;var se=1,G=function(){return"".concat(se++)};fe.default=G},crp1:function(Ge,fe,R){"use strict";R.d(fe,"b",function(){return qe}),R.d(fe,"a",function(){return Vt});var se={},G=function(Le,Fe,nt,xt,Wt){var Xt=se[Fe]||(se[Fe]=URL.createObjectURL(new Blob([Le],{type:"text/javascript"}))),pe=new Worker(Xt);return pe.onerror=function(z){return Wt(z.error,null)},pe.onmessage=function(z){return Wt(null,z.data)},pe.postMessage(nt,xt),pe},M=Uint8Array,v=Uint16Array,b=Uint32Array,C=new M([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),w=new M([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),m=new M([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),d=function(Le,Fe){for(var nt=new v(31),xt=0;xt<31;++xt)nt[xt]=Fe+=1<<Le[xt-1];for(var Wt=new b(nt[30]),xt=1;xt<30;++xt)for(var Xt=nt[xt];Xt<nt[xt+1];++Xt)Wt[Xt]=Xt-nt[xt]<<5|xt;return[nt,Wt]},i=d(C,2),n=i[0],e=i[1];n[28]=258,e[258]=28;for(var a=d(w,0),s=a[0],o=a[1],f=new v(32768),l=0;l<32768;++l){var r=(l&43690)>>>1|(l&21845)<<1;r=(r&52428)>>>2|(r&13107)<<2,r=(r&61680)>>>4|(r&3855)<<4,f[l]=((r&65280)>>>8|(r&255)<<8)>>>1}for(var c=function(Le,Fe,nt){for(var xt=Le.length,Wt=0,Xt=new v(Fe);Wt<xt;++Wt)++Xt[Le[Wt]-1];var pe=new v(Fe);for(Wt=0;Wt<Fe;++Wt)pe[Wt]=pe[Wt-1]+Xt[Wt-1]<<1;var z;if(nt){z=new v(1<<Fe);var Z=15-Fe;for(Wt=0;Wt<xt;++Wt)if(Le[Wt])for(var ye=Wt<<4|Le[Wt],xe=Fe-Le[Wt],Ce=pe[Le[Wt]-1]++<<xe,ft=Ce|(1<<xe)-1;Ce<=ft;++Ce)z[f[Ce]>>>Z]=ye}else for(z=new v(xt),Wt=0;Wt<xt;++Wt)z[Wt]=f[pe[Le[Wt]-1]++]>>>15-Le[Wt];return z},A=new M(288),l=0;l<144;++l)A[l]=8;for(var l=144;l<256;++l)A[l]=9;for(var l=256;l<280;++l)A[l]=7;for(var l=280;l<288;++l)A[l]=8;for(var p=new M(32),l=0;l<32;++l)p[l]=5;var x=c(A,9,0),_=c(A,9,1),B=c(p,5,0),E=c(p,5,1),g=function(Le){for(var Fe=Le[0],nt=1;nt<Le.length;++nt)Le[nt]>Fe&&(Fe=Le[nt]);return Fe},h=function(Le,Fe,nt){var xt=Fe/8>>0;return(Le[xt]|Le[xt+1]<<8)>>>(Fe&7)&nt},u=function(Le,Fe){var nt=Fe/8>>0;return(Le[nt]|Le[nt+1]<<8|Le[nt+2]<<16)>>>(Fe&7)},S=function(Le){return(Le/8>>0)+(Le&7&&1)},O=function(Le,Fe,nt){(Fe==null||Fe<0)&&(Fe=0),(nt==null||nt>Le.length)&&(nt=Le.length);var xt=new(Le instanceof v?v:Le instanceof b?b:M)(nt-Fe);return xt.set(Le.subarray(Fe,nt)),xt},T=function(Le,Fe,nt){var xt=Le.length,Wt=!Fe||nt,Xt=!nt||nt.i;nt||(nt={}),Fe||(Fe=new M(xt*3));var pe=function(Zr){var _i=Fe.length;if(Zr>_i){var Xr=new M(Math.max(_i*2,Zr));Xr.set(Fe),Fe=Xr}},z=nt.f||0,Z=nt.p||0,ye=nt.b||0,xe=nt.l,Ce=nt.d,ft=nt.m,zt=nt.n,ln=xt*8;do{if(!xe){nt.f=z=h(Le,Z,1);var mn=h(Le,Z+1,3);if(Z+=3,mn)if(mn==1)xe=_,Ce=E,ft=9,zt=5;else if(mn==2){var nr=h(Le,Z,31)+257,Sr=h(Le,Z+10,15)+4,ii=nr+h(Le,Z+5,31)+1;Z+=14;for(var Dr=new M(ii),ti=new M(19),Tr=0;Tr<Sr;++Tr)ti[m[Tr]]=h(Le,Z+Tr*3,7);Z+=Sr*3;var vi=g(ti),fi=(1<<vi)-1;if(!Xt&&Z+ii*(vi+7)>ln)break;for(var Oi=c(ti,vi,1),Tr=0;Tr<ii;){var wi=Oi[h(Le,Z,fi)];Z+=wi&15;var Jt=wi>>>4;if(Jt<16)Dr[Tr++]=Jt;else{var Fi=0,Hi=0;for(Jt==16?(Hi=3+h(Le,Z,3),Z+=2,Fi=Dr[Tr-1]):Jt==17?(Hi=3+h(Le,Z,7),Z+=3):Jt==18&&(Hi=11+h(Le,Z,127),Z+=7);Hi--;)Dr[Tr++]=Fi}}var Ii=Dr.subarray(0,nr),Vr=Dr.subarray(nr);ft=g(Ii),zt=g(Vr),xe=c(Ii,ft,1),Ce=c(Vr,zt,1)}else throw"invalid block type";else{var Jt=S(Z)+4,Zn=Le[Jt-4]|Le[Jt-3]<<8,Un=Jt+Zn;if(Un>xt){if(Xt)throw"unexpected EOF";break}Wt&&pe(ye+Zn),Fe.set(Le.subarray(Jt,Un),ye),nt.b=ye+=Zn,nt.p=Z=Un*8;continue}if(Z>ln)throw"unexpected EOF"}Wt&&pe(ye+131072);for(var zi=(1<<ft)-1,Gi=(1<<zt)-1,Di=ft+zt+18;Xt||Z+Di<ln;){var Fi=xe[u(Le,Z)&zi],sa=Fi>>>4;if(Z+=Fi&15,Z>ln)throw"unexpected EOF";if(!Fi)throw"invalid length/literal";if(sa<256)Fe[ye++]=sa;else if(sa==256){xe=null;break}else{var da=sa-254;if(sa>264){var Tr=sa-257,Mi=C[Tr];da=h(Le,Z,(1<<Mi)-1)+n[Tr],Z+=Mi}var Wr=Ce[u(Le,Z)&Gi],hr=Wr>>>4;if(!Wr)throw"invalid distance";Z+=Wr&15;var Vr=s[hr];if(hr>3){var Mi=w[hr];Vr+=u(Le,Z)&(1<<Mi)-1,Z+=Mi}if(Z>ln)throw"unexpected EOF";Wt&&pe(ye+131072);for(var zr=ye+da;ye<zr;ye+=4)Fe[ye]=Fe[ye-Vr],Fe[ye+1]=Fe[ye+1-Vr],Fe[ye+2]=Fe[ye+2-Vr],Fe[ye+3]=Fe[ye+3-Vr];ye=zr}}nt.l=xe,nt.p=Z,nt.b=ye,xe&&(z=1,nt.m=ft,nt.d=Ce,nt.n=zt)}while(!z);return ye==Fe.length?Fe:O(Fe,0,ye)},D=function(Le,Fe,nt){nt<<=Fe&7;var xt=Fe/8>>0;Le[xt]|=nt,Le[xt+1]|=nt>>>8},I=function(Le,Fe,nt){nt<<=Fe&7;var xt=Fe/8>>0;Le[xt]|=nt,Le[xt+1]|=nt>>>8,Le[xt+2]|=nt>>>16},k=function(Le,Fe){for(var nt=[],xt=0;xt<Le.length;++xt)Le[xt]&&nt.push({s:xt,f:Le[xt]});var Wt=nt.length,Xt=nt.slice();if(!Wt)return[new M(0),0];if(Wt==1){var pe=new M(nt[0].s+1);return pe[nt[0].s]=1,[pe,1]}nt.sort(function(ii,Dr){return ii.f-Dr.f}),nt.push({s:-1,f:25001});var z=nt[0],Z=nt[1],ye=0,xe=1,Ce=2;for(nt[0]={s:-1,f:z.f+Z.f,l:z,r:Z};xe!=Wt-1;)z=nt[nt[ye].f<nt[Ce].f?ye++:Ce++],Z=nt[ye!=xe&&nt[ye].f<nt[Ce].f?ye++:Ce++],nt[xe++]={s:-1,f:z.f+Z.f,l:z,r:Z};for(var ft=Xt[0].s,xt=1;xt<Wt;++xt)Xt[xt].s>ft&&(ft=Xt[xt].s);var zt=new v(ft+1),ln=F(nt[xe-1],zt,0);if(ln>Fe){var xt=0,mn=0,Jt=ln-Fe,Zn=1<<Jt;for(Xt.sort(function(Dr,ti){return zt[ti.s]-zt[Dr.s]||Dr.f-ti.f});xt<Wt;++xt){var Un=Xt[xt].s;if(zt[Un]>Fe)mn+=Zn-(1<<ln-zt[Un]),zt[Un]=Fe;else break}for(mn>>>=Jt;mn>0;){var nr=Xt[xt].s;zt[nr]<Fe?mn-=1<<Fe-zt[nr]++-1:++xt}for(;xt>=0&&mn;--xt){var Sr=Xt[xt].s;zt[Sr]==Fe&&(--zt[Sr],++mn)}ln=Fe}return[new M(zt),ln]},F=function(Le,Fe,nt){return Le.s==-1?Math.max(F(Le.l,Fe,nt+1),F(Le.r,Fe,nt+1)):Fe[Le.s]=nt},X=function(Le){for(var Fe=Le.length;Fe&&!Le[--Fe];);for(var nt=new v(++Fe),xt=0,Wt=Le[0],Xt=1,pe=function(Z){nt[xt++]=Z},z=1;z<=Fe;++z)if(Le[z]==Wt&&z!=Fe)++Xt;else{if(!Wt&&Xt>2){for(;Xt>138;Xt-=138)pe(32754);Xt>2&&(pe(Xt>10?Xt-11<<5|28690:Xt-3<<5|12305),Xt=0)}else if(Xt>3){for(pe(Wt),--Xt;Xt>6;Xt-=6)pe(8304);Xt>2&&(pe(Xt-3<<5|8208),Xt=0)}for(;Xt--;)pe(Wt);Xt=1,Wt=Le[z]}return[nt.subarray(0,xt),Fe]},U=function(Le,Fe){for(var nt=0,xt=0;xt<Fe.length;++xt)nt+=Le[xt]*Fe[xt];return nt},K=function(Le,Fe,nt){var xt=nt.length,Wt=S(Fe+2);Le[Wt]=xt&255,Le[Wt+1]=xt>>>8,Le[Wt+2]=Le[Wt]^255,Le[Wt+3]=Le[Wt+1]^255;for(var Xt=0;Xt<xt;++Xt)Le[Wt+Xt+4]=nt[Xt];return(Wt+4+xt)*8},V=function(Le,Fe,nt,xt,Wt,Xt,pe,z,Z,ye,xe){D(Fe,xe++,nt),++Wt[256];for(var Ce=k(Wt,15),ft=Ce[0],zt=Ce[1],ln=k(Xt,15),mn=ln[0],Jt=ln[1],Zn=X(ft),Un=Zn[0],nr=Zn[1],Sr=X(mn),ii=Sr[0],Dr=Sr[1],ti=new v(19),Tr=0;Tr<Un.length;++Tr)ti[Un[Tr]&31]++;for(var Tr=0;Tr<ii.length;++Tr)ti[ii[Tr]&31]++;for(var vi=k(ti,7),fi=vi[0],Oi=vi[1],wi=19;wi>4&&!fi[m[wi-1]];--wi);var Fi=ye+5<<3,Hi=U(Wt,A)+U(Xt,p)+pe,Ii=U(Wt,ft)+U(Xt,mn)+pe+14+3*wi+U(ti,fi)+(2*ti[16]+3*ti[17]+7*ti[18]);if(Fi<=Hi&&Fi<=Ii)return K(Fe,xe,Le.subarray(Z,Z+ye));var Vr,zi,Gi,Di;if(D(Fe,xe,1+(Ii<Hi)),xe+=2,Ii<Hi){Vr=c(ft,zt,0),zi=ft,Gi=c(mn,Jt,0),Di=mn;var sa=c(fi,Oi,0);D(Fe,xe,nr-257),D(Fe,xe+5,Dr-1),D(Fe,xe+10,wi-4),xe+=14;for(var Tr=0;Tr<wi;++Tr)D(Fe,xe+3*Tr,fi[m[Tr]]);xe+=3*wi;for(var da=[Un,ii],Mi=0;Mi<2;++Mi)for(var Wr=da[Mi],Tr=0;Tr<Wr.length;++Tr){var hr=Wr[Tr]&31;D(Fe,xe,sa[hr]),xe+=fi[hr],hr>15&&(D(Fe,xe,Wr[Tr]>>>5&127),xe+=Wr[Tr]>>>12)}}else Vr=x,zi=A,Gi=B,Di=p;for(var Tr=0;Tr<z;++Tr)if(xt[Tr]>255){var hr=xt[Tr]>>>18&31;I(Fe,xe,Vr[hr+257]),xe+=zi[hr+257],hr>7&&(D(Fe,xe,xt[Tr]>>>23&31),xe+=C[hr]);var zr=xt[Tr]&31;I(Fe,xe,Gi[zr]),xe+=Di[zr],zr>3&&(I(Fe,xe,xt[Tr]>>>5&8191),xe+=w[zr])}else I(Fe,xe,Vr[xt[Tr]]),xe+=zi[xt[Tr]];return I(Fe,xe,Vr[256]),xe+zi[256]},N=new b([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Q=new M(0),J=function(Le,Fe,nt,xt,Wt,Xt){var pe=Le.length,z=new M(xt+pe+5*(1+Math.floor(pe/7e3))+Wt),Z=z.subarray(xt,z.length-Wt),ye=0;if(!Fe||pe<8)for(var xe=0;xe<=pe;xe+=65535){var Ce=xe+65535;Ce<pe?ye=K(Z,ye,Le.subarray(xe,Ce)):(Z[xe]=Xt,ye=K(Z,ye,Le.subarray(xe,pe)))}else{for(var ft=N[Fe-1],zt=ft>>>13,ln=ft&8191,mn=(1<<nt)-1,Jt=new v(32768),Zn=new v(mn+1),Un=Math.ceil(nt/3),nr=2*Un,Sr=function(Ci){return(Le[Ci]^Le[Ci+1]<<Un^Le[Ci+2]<<nr)&mn},ii=new b(25e3),Dr=new v(288),ti=new v(32),Tr=0,vi=0,xe=0,fi=0,Oi=0,wi=0;xe<pe;++xe){var Fi=Sr(xe),Hi=xe&32767,Ii=Zn[Fi];if(Jt[Hi]=Ii,Zn[Fi]=Hi,Oi<=xe){var Vr=pe-xe;if((Tr>7e3||fi>24576)&&Vr>423){ye=V(Le,Z,0,ii,Dr,ti,vi,fi,wi,xe-wi,ye),fi=Tr=vi=0,wi=xe;for(var zi=0;zi<286;++zi)Dr[zi]=0;for(var zi=0;zi<30;++zi)ti[zi]=0}var Gi=2,Di=0,sa=ln,da=Hi-Ii&32767;if(Vr>2&&Fi==Sr(xe-da))for(var Mi=Math.min(zt,Vr)-1,Wr=Math.min(32767,xe),hr=Math.min(258,Vr);da<=Wr&&--sa&&Hi!=Ii;){if(Le[xe+Gi]==Le[xe+Gi-da]){for(var zr=0;zr<hr&&Le[xe+zr]==Le[xe+zr-da];++zr);if(zr>Gi){if(Gi=zr,Di=da,zr>Mi)break;for(var Zr=Math.min(da,zr-2),_i=0,zi=0;zi<Zr;++zi){var Xr=xe-da+zi+32768&32767,ja=Jt[Xr],Ni=Xr-ja+32768&32767;Ni>_i&&(_i=Ni,Ii=Xr)}}}Hi=Ii,Ii=Jt[Hi],da+=Hi-Ii+32768&32767}if(Di){ii[fi++]=268435456|e[Gi]<<18|o[Di];var va=e[Gi]&31,vo=o[Di]&31;vi+=C[va]+w[vo],++Dr[257+va],++ti[vo],Oi=xe+Gi,++Tr}else ii[fi++]=Le[xe],++Dr[Le[xe]]}}ye=V(Le,Z,Xt,ii,Dr,ti,vi,fi,wi,xe-wi,ye),Xt||(ye=K(Z,ye,Q))}return O(z,0,xt+S(ye)+Wt)},ne=function(){for(var Le=new b(256),Fe=0;Fe<256;++Fe){for(var nt=Fe,xt=9;--xt;)nt=(nt&1&&3988292384)^nt>>>1;Le[Fe]=nt}return Le}(),ue=function(){var Le=4294967295;return{p:function(Fe){for(var nt=Le,xt=0;xt<Fe.length;++xt)nt=ne[nt&255^Fe[xt]]^nt>>>8;Le=nt},d:function(){return Le^4294967295}}},be=function(){var Le=1,Fe=0;return{p:function(nt){for(var xt=Le,Wt=Fe,Xt=nt.length,pe=0;pe!=Xt;){for(var z=Math.min(pe+5552,Xt);pe<z;++pe)xt+=nt[pe],Wt+=xt;xt%=65521,Wt%=65521}Le=xt,Fe=Wt},d:function(){return(Le>>>8<<16|(Fe&255)<<8|Fe>>>8)+((Le&255)<<23)*2}}},de=function(Le,Fe,nt,xt,Wt){return J(Le,Fe.level==null?6:Fe.level,Fe.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(Le.length)))*1.5):12+Fe.mem,nt,xt,!Wt)},_e=function(Le,Fe){var nt={};for(var xt in Le)nt[xt]=Le[xt];for(var xt in Fe)nt[xt]=Fe[xt];return nt},me=function(Le,Fe,nt){for(var xt=Le(),Wt=Le.toString(),Xt=Wt.slice(Wt.indexOf("[")+1,Wt.lastIndexOf("]")).replace(/ /g,"").split(","),pe=0;pe<xt.length;++pe){var z=xt[pe],Z=Xt[pe];if(typeof z=="function"){Fe+=";"+Z+"=";var ye=z.toString();if(z.prototype)if(ye.indexOf("[native code]")!=-1){var xe=ye.indexOf(" ",8)+1;Fe+=ye.slice(xe,ye.indexOf("(",xe))}else{Fe+=ye;for(var Ce in z.prototype)Fe+=";"+Z+".prototype."+Ce+"="+z.prototype[Ce].toString()}else Fe+=ye}else nt[Z]=z}return[Fe,nt]},Ee=[],ge=function(Le){var Fe=[];for(var nt in Le)(Le[nt]instanceof M||Le[nt]instanceof v||Le[nt]instanceof b)&&Fe.push((Le[nt]=new Le[nt].constructor(Le[nt])).buffer);return Fe},Ae=function(Le,Fe,nt,xt){var Wt;if(!Ee[nt]){for(var Xt="",pe={},z=Le.length-1,Z=0;Z<z;++Z)Wt=me(Le[Z],Xt,pe),Xt=Wt[0],pe=Wt[1];Ee[nt]=me(Le[z],Xt,pe)}var ye=_e({},Ee[nt][1]);return G(Ee[nt][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+Fe.toString()+"}",nt,ye,ge(ye),xt)},ae=function(){return[M,v,b,C,w,m,n,s,_,E,f,c,g,h,u,S,O,T,it,Me,re]},ve=function(){return[M,v,b,C,w,m,e,o,x,A,B,p,f,N,Q,c,D,I,k,F,X,U,K,V,S,O,J,de,$e,Me]},oe=function(){return[ze,Ke,Ie,ue,ne]},ie=function(){return[_t,He]},Te=function(){return[ht,Ie,be]},Re=function(){return[St]},Me=function(Le){return postMessage(Le,[Le.buffer])},re=function(Le){return Le&&Le.size&&new M(Le.size)},j=function(Le,Fe,nt,xt,Wt,Xt){var pe=Ae(nt,xt,Wt,function(z,Z){pe.terminate(),Xt(z,Z)});return Fe.consume||(Le=new M(Le)),pe.postMessage([Le,Fe],[Le.buffer]),function(){pe.terminate()}},W=function(Le){return Le.ondata=function(Fe,nt){return postMessage([Fe,nt],[Fe.buffer])},function(Fe){return Le.push(Fe.data[0],Fe.data[1])}},he=function(Le,Fe,nt,xt,Wt){var Xt,pe=Ae(Le,xt,Wt,function(z,Z){z?(pe.terminate(),Fe.ondata.call(Fe,z)):(Z[1]&&pe.terminate(),Fe.ondata.call(Fe,z,Z[0],Z[1]))});pe.postMessage(nt),Fe.push=function(z,Z){if(Xt)throw"stream finished";if(!Fe.ondata)throw"no stream handler";pe.postMessage([z,Xt=Z],[z.buffer])},Fe.terminate=function(){pe.terminate()}},te=function(Le,Fe){return Le[Fe]|Le[Fe+1]<<8},ce=function(Le,Fe){return(Le[Fe]|Le[Fe+1]<<8|Le[Fe+2]<<16)+(Le[Fe+3]<<23)*2},Ie=function(Le,Fe,nt){for(;nt;++Fe)Le[Fe]=nt,nt>>>=8},ze=function(Le,Fe){var nt=Fe.filename;if(Le[0]=31,Le[1]=139,Le[2]=8,Le[8]=Fe.level<2?4:Fe.level==9?2:0,Le[9]=3,Fe.mtime!=0&&Ie(Le,4,Math.floor(new Date(Fe.mtime||Date.now())/1e3)),nt){Le[3]=8;for(var xt=0;xt<=nt.length;++xt)Le[xt+10]=nt.charCodeAt(xt)}},_t=function(Le){if(Le[0]!=31||Le[1]!=139||Le[2]!=8)throw"invalid gzip data";var Fe=Le[3],nt=10;Fe&4&&(nt+=Le[10]|(Le[11]<<8)+2);for(var xt=(Fe>>3&1)+(Fe>>4&1);xt>0;xt-=!Le[nt++]);return nt+(Fe&2)},He=function(Le){var Fe=Le.length;return(Le[Fe-4]|Le[Fe-3]<<8|Le[Fe-2]<<16)+2*(Le[Fe-1]<<23)},Ke=function(Le){return 10+(Le.filename&&Le.filename.length+1||0)},ht=function(Le,Fe){var nt=Fe.level,xt=nt==0?0:nt<6?1:nt==9?3:2;Le[0]=120,Le[1]=xt<<6|(xt?32-2*xt:1)},St=function(Le){if((Le[0]&15)!=8||Le[0]>>>4>7||(Le[0]<<8|Le[1])%31)throw"invalid zlib data";if(Le[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function ct(Le,Fe){return!Fe&&typeof Le=="function"&&(Fe=Le,Le={}),this.ondata=Fe,Le}var lt=function(){function Le(Fe,nt){!nt&&typeof Fe=="function"&&(nt=Fe,Fe={}),this.ondata=nt,this.o=Fe||{}}return Le.prototype.p=function(Fe,nt){this.ondata(de(Fe,this.o,0,0,!nt),nt)},Le.prototype.push=function(Fe,nt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=nt,this.p(Fe,nt||!1)},Le}(),rt=function(){function Le(Fe,nt){he([ve,function(){return[W,lt]}],this,ct.call(this,Fe,nt),function(xt){var Wt=new lt(xt.data);onmessage=W(Wt)},6)}return Le}();function Ze(Le,Fe,nt){if(nt||(nt=Fe,Fe={}),typeof nt!="function")throw"no callback";return j(Le,Fe,[ve],function(xt){return Me($e(xt.data[0],xt.data[1]))},0,nt)}function $e(Le,Fe){return Fe===void 0&&(Fe={}),de(Le,Fe,0,0)}var Ue=function(){function Le(Fe){this.s={},this.p=new M(0),this.ondata=Fe}return Le.prototype.e=function(Fe){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var nt=this.p.length,xt=new M(nt+Fe.length);xt.set(this.p),xt.set(Fe,nt),this.p=xt},Le.prototype.c=function(Fe){this.d=this.s.i=Fe||!1;var nt=this.s.b,xt=T(this.p,this.o,this.s);this.ondata(O(xt,nt,this.s.b),this.d),this.o=O(xt,this.s.b-32768),this.s.b=this.o.length,this.p=O(this.p,this.s.p/8>>0),this.s.p&=7},Le.prototype.push=function(Fe,nt){this.e(Fe),this.c(nt)},Le}(),Ne=function(){function Le(Fe){this.ondata=Fe,he([ae,function(){return[W,Ue]}],this,0,function(){var nt=new Ue;onmessage=W(nt)},7)}return Le}();function We(Le,Fe,nt){if(nt||(nt=Fe,Fe={}),typeof nt!="function")throw"no callback";return j(Le,Fe,[ae],function(xt){return Me(it(xt.data[0],re(xt.data[1])))},1,nt)}function it(Le,Fe){return T(Le,Fe)}var yt=function(){function Le(Fe,nt){this.c=ue(),this.l=0,this.v=1,lt.call(this,Fe,nt)}return Le.prototype.push=function(Fe,nt){lt.prototype.push.call(this,Fe,nt)},Le.prototype.p=function(Fe,nt){this.c.p(Fe),this.l+=Fe.length;var xt=de(Fe,this.o,this.v&&Ke(this.o),nt&&8,!nt);this.v&&(ze(xt,this.o),this.v=0),nt&&(Ie(xt,xt.length-8,this.c.d()),Ie(xt,xt.length-4,this.l)),this.ondata(xt,nt)},Le}(),vt=function(){function Le(Fe,nt){he([ve,oe,function(){return[W,lt,yt]}],this,ct.call(this,Fe,nt),function(xt){var Wt=new yt(xt.data);onmessage=W(Wt)},8)}return Le}();function Mt(Le,Fe,nt){if(nt||(nt=Fe,Fe={}),typeof nt!="function")throw"no callback";return j(Le,Fe,[ve,oe,function(){return[Tt]}],function(xt){return Me(Tt(xt.data[0],xt.data[1]))},2,nt)}function Tt(Le,Fe){Fe===void 0&&(Fe={});var nt=ue(),xt=Le.length;nt.p(Le);var Wt=de(Le,Fe,Ke(Fe),8),Xt=Wt.length;return ze(Wt,Fe),Ie(Wt,Xt-8,nt.d()),Ie(Wt,Xt-4,xt),Wt}var Rt=function(){function Le(Fe){this.v=1,Ue.call(this,Fe)}return Le.prototype.push=function(Fe,nt){if(Ue.prototype.e.call(this,Fe),this.v){var xt=_t(this.p);if(xt>=this.p.length&&!nt)return;this.p=this.p.subarray(xt),this.v=0}if(nt){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Ue.prototype.c.call(this,nt)},Le}(),kt=function(){function Le(Fe){this.ondata=Fe,he([ae,ie,function(){return[W,Ue,Rt]}],this,0,function(){var nt=new Rt;onmessage=W(nt)},9)}return Le}();function Ut(Le,Fe,nt){if(nt||(nt=Fe,Fe={}),typeof nt!="function")throw"no callback";return j(Le,Fe,[ae,ie,function(){return[Bt]}],function(xt){return Me(Bt(xt.data[0]))},3,nt)}function Bt(Le,Fe){return T(Le.subarray(_t(Le),-8),Fe||new M(He(Le)))}var At=function(){function Le(Fe,nt){this.c=be(),this.v=1,lt.call(this,Fe,nt)}return Le.prototype.push=function(Fe,nt){lt.prototype.push.call(this,Fe,nt)},Le.prototype.p=function(Fe,nt){this.c.p(Fe);var xt=de(Fe,this.o,this.v&&2,nt&&4,!nt);this.v&&(ht(xt,this.o),this.v=0),nt&&Ie(xt,xt.length-4,this.c.d()),this.ondata(xt,nt)},Le}(),bt=function(){function Le(Fe,nt){he([ve,Te,function(){return[W,lt,At]}],this,ct.call(this,Fe,nt),function(xt){var Wt=new At(xt.data);onmessage=W(Wt)},10)}return Le}();function je(Le,Fe,nt){if(nt||(nt=Fe,Fe={}),typeof nt!="function")throw"no callback";return j(Le,Fe,[ve,Te,function(){return[qe]}],function(xt){return Me(qe(xt.data[0],xt.data[1]))},4,nt)}function qe(Le,Fe){Fe===void 0&&(Fe={});var nt=be();nt.p(Le);var xt=de(Le,Fe,2,4);return ht(xt,Fe),Ie(xt,xt.length-4,nt.d()),xt}var Ot=function(){function Le(Fe){this.v=1,Ue.call(this,Fe)}return Le.prototype.push=function(Fe,nt){if(Ue.prototype.e.call(this,Fe),this.v){if(this.p.length<2&&!nt)return;this.p=this.p.subarray(2),this.v=0}if(nt){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Ue.prototype.c.call(this,nt)},Le}(),Ct=function(){function Le(Fe){this.ondata=Fe,he([ae,Re,function(){return[W,Ue,Ot]}],this,0,function(){var nt=new Ot;onmessage=W(nt)},11)}return Le}();function jt(Le,Fe,nt){if(nt||(nt=Fe,Fe={}),typeof nt!="function")throw"no callback";return j(Le,Fe,[ae,Re,function(){return[Vt]}],function(xt){return Me(Vt(xt.data[0],re(xt.data[1])))},5,nt)}function Vt(Le,Fe){return T((St(Le),Le.subarray(2,-4)),Fe)}var Et=function(){function Le(Fe){this.G=Rt,this.I=Ue,this.Z=Ot,this.ondata=Fe}return Le.prototype.push=function(Fe,nt){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(Fe,nt);else{if(this.p&&this.p.length){var xt=new M(this.p.length+Fe.length);xt.set(this.p),xt.set(Fe,this.p.length)}else this.p=Fe;if(this.p.length>2){var Wt=this,Xt=function(){Wt.ondata.apply(Wt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(Xt):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(Xt):new this.Z(Xt),this.s.push(this.p,nt),this.p=null}}},Le}(),Lt=function(){function Le(Fe){this.G=kt,this.I=Ne,this.Z=Ct,this.ondata=Fe}return Le.prototype.push=function(Fe,nt){Et.prototype.push.call(this,Fe,nt)},Le}();function Ht(Le,Fe,nt){if(nt||(nt=Fe,Fe={}),typeof nt!="function")throw"no callback";return Le[0]==31&&Le[1]==139&&Le[2]==8?Ut(Le,Fe,nt):(Le[0]&15)!=8||Le[0]>>4>7||(Le[0]<<8|Le[1])%31?We(Le,Fe,nt):jt(Le,Fe,nt)}function un(Le,Fe){return Le[0]==31&&Le[1]==139&&Le[2]==8?Bt(Le,Fe):(Le[0]&15)!=8||Le[0]>>4>7||(Le[0]<<8|Le[1])%31?it(Le,Fe):Vt(Le,Fe)}var gn=function(Le,Fe,nt,xt){for(var Wt in Le){var Xt=Le[Wt],pe=Fe+Wt;Xt instanceof M?nt[pe]=[Xt,xt]:Array.isArray(Xt)?nt[pe]=[Xt[0],_e(xt,Xt[1])]:gn(Xt,pe+"/",nt,xt)}};function Ar(Le,Fe){var nt=Le.length;if(!Fe&&typeof TextEncoder!="undefined")return new TextEncoder().encode(Le);for(var xt=new M(Le.length+(Le.length>>>1)),Wt=0,Xt=function(ye){xt[Wt++]=ye},pe=0;pe<nt;++pe){if(Wt+5>xt.length){var z=new M(Wt+8+(nt-pe<<1));z.set(xt),xt=z}var Z=Le.charCodeAt(pe);Z<128||Fe?Xt(Z):Z<2048?(Xt(192|Z>>>6),Xt(128|Z&63)):Z>55295&&Z<57344?(Z=65536+(Z&1023<<10)|Le.charCodeAt(++pe)&1023,Xt(240|Z>>>18),Xt(128|Z>>>12&63),Xt(128|Z>>>6&63),Xt(128|Z&63)):(Xt(224|Z>>>12),Xt(128|Z>>>6&63),Xt(128|Z&63))}return O(xt,0,Wt)}function wr(Le,Fe){var nt="";if(!Fe&&typeof TextDecoder!="undefined")return new TextDecoder().decode(Le);for(var xt=0;xt<Le.length;){var Wt=Le[xt++];Wt<128||Fe?nt+=String.fromCharCode(Wt):Wt<224?nt+=String.fromCharCode((Wt&31)<<6|Le[xt++]&63):Wt<240?nt+=String.fromCharCode((Wt&15)<<12|(Le[xt++]&63)<<6|Le[xt++]&63):(Wt=((Wt&15)<<18|(Le[xt++]&63)<<12|(Le[xt++]&63)<<6|Le[xt++]&63)-65536,nt+=String.fromCharCode(55296|Wt>>10,56320|Wt&1023))}return nt}var cr=function(Le,Fe){return Fe+30+te(Le,Fe+26)+te(Le,Fe+28)},Rn=function(Le,Fe,nt){var xt=te(Le,Fe+28),Wt=wr(Le.subarray(Fe+46,Fe+46+xt),!(te(Le,Fe+8)&2048)),Xt=Fe+46+xt,pe=nt?Jr(Le,Xt):[ce(Le,Fe+20),ce(Le,Fe+24),ce(Le,Fe+42)],z=pe[0],Z=pe[1],ye=pe[2];return[te(Le,Fe+10),z,Z,Wt,Xt+te(Le,Fe+30)+te(Le,Fe+32),ye]},Jr=function(Le,Fe){for(;te(Le,Fe)!=1;Fe+=4+te(Le,Fe+2));return[ce(Le,Fe+12),ce(Le,Fe+4),ce(Le,Fe+20)]},si=function(Le,Fe,nt,xt,Wt,Xt,pe,z,Z,ye){var xe=Xt.length,Ce=xt.length;Ie(Le,Fe,Z!=null?33639248:67324752),Fe+=4,Z!=null&&(Le[Fe]=20,Fe+=2),Le[Fe]=20,Fe+=2,Le[Fe++]=ye==8&&(z.level==1?6:z.level<6?4:z.level==9?2:0),Le[Fe++]=pe&&8,Le[Fe]=ye,Fe+=2;var ft=new Date(z.mtime||Date.now()),zt=ft.getFullYear()-1980;if(zt<0||zt>119)throw"date not in range 1980-2099";Ie(Le,Fe,(zt<<24)*2|ft.getMonth()+1<<21|ft.getDate()<<16|ft.getHours()<<11|ft.getMinutes()<<5|ft.getSeconds()>>>1),Fe+=4,Ie(Le,Fe,nt),Ie(Le,Fe+4,Ce),Ie(Le,Fe+8,Wt),Ie(Le,Fe+12,xe),Fe+=16,Z!=null&&(Ie(Le,Fe+=10,Z),Fe+=4),Le.set(Xt,Fe),Fe+=xe,Z==null&&Le.set(xt,Fe)},li=function(Le,Fe,nt,xt,Wt){Ie(Le,Fe,101010256),Ie(Le,Fe+8,nt),Ie(Le,Fe+10,nt),Ie(Le,Fe+12,xt),Ie(Le,Fe+16,Wt)};function kr(Le,Fe,nt){if(nt||(nt=Fe,Fe={}),typeof nt!="function")throw"no callback";var xt={};gn(Le,"",xt,Fe);var Wt=Object.keys(xt),Xt=Wt.length,pe=0,z=0,Z=Xt,ye=new Array(Xt),xe=[],Ce=function(){for(var mn=0;mn<xe.length;++mn)xe[mn]()},ft=function(){var mn=new M(z+22),Jt=pe,Zn=z-pe;z=0;for(var Un=0;Un<Z;++Un){var nr=ye[Un];try{si(mn,z,nr.c,nr.d,nr.m,nr.n,nr.u,nr.p,null,nr.t),si(mn,pe,nr.c,nr.d,nr.m,nr.n,nr.u,nr.p,z,nr.t),pe+=46+nr.n.length,z+=30+nr.n.length+nr.d.length}catch(Sr){return nt(Sr,null)}}li(mn,pe,ye.length,Zn,Jt),nt(null,mn)};Xt||ft();for(var zt=function(mn){var Jt=Wt[mn],Zn=xt[Jt],Un=Zn[0],nr=Zn[1],Sr=ue(),ii=Un.length;Sr.p(Un);var Dr=Ar(Jt),ti=Dr.length,Tr=nr.level==0?0:8,vi=function(fi,Oi){if(fi)Ce(),nt(fi,null);else{var wi=Oi.length;ye[mn]={t:Tr,d:Oi,m:ii,c:Sr.d(),u:Jt.length!=wi,n:Dr,p:nr},pe+=30+ti+wi,z+=76+2*ti+wi,--Xt||ft()}};if(Dr.length>65535&&vi("filename too long",null),!Tr)vi(null,Un);else if(ii<16e4)try{vi(null,$e(Un,nr))}catch(fi){vi(fi,null)}else xe.push(Ze(Un,nr,vi))},ln=0;ln<Z;++ln)zt(ln);return Ce}function hi(Le,Fe){Fe===void 0&&(Fe={});var nt={},xt=[];gn(Le,"",nt,Fe);var Wt=0,Xt=0;for(var pe in nt){var z=nt[pe],Z=z[0],ye=z[1],xe=ye.level==0?0:8,Ce=Ar(pe),ft=Ce.length;if(Ce.length>65535)throw"filename too long";var zt=xe?$e(Z,ye):Z,ln=zt.length,mn=ue();mn.p(Z),xt.push({t:xe,d:zt,m:Z.length,c:mn.d(),u:pe.length!=ft,n:Ce,o:Wt,p:ye}),Wt+=30+ft+ln,Xt+=76+2*ft+ln}for(var Jt=new M(Xt+22),Zn=Wt,Un=Xt-Wt,nr=0;nr<xt.length;++nr){var Sr=xt[nr];si(Jt,Sr.o,Sr.c,Sr.d,Sr.m,Sr.n,Sr.u,Sr.p,null,Sr.t),si(Jt,Wt,Sr.c,Sr.d,Sr.m,Sr.n,Sr.u,Sr.p,Sr.o,Sr.t),Wt+=46+Sr.n.length}return li(Jt,Wt,xt.length,Un,Zn),Jt}function Ui(Le,Fe){if(typeof Fe!="function")throw"no callback";for(var nt=[],xt=function(){for(var ft=0;ft<nt.length;++ft)nt[ft]()},Wt={},Xt=Le.length-22;ce(Le,Xt)!=101010256;--Xt)if(!Xt||Le.length-Xt>65558){Fe("invalid zip file",null);return}var pe=te(Le,Xt+8);pe||Fe(null,{});var z=pe,Z=ce(Le,Xt+16),ye=Z==4294967295;if(ye){if(Xt=ce(Le,Xt-12),ce(Le,Xt)!=101075792)throw"invalid zip file";z=pe=ce(Le,Xt+32),Z=ce(Le,Xt+48)}for(var xe=function(ft){var zt=Rn(Le,Z,ye),ln=zt[0],mn=zt[1],Jt=zt[2],Zn=zt[3],Un=zt[4],nr=zt[5],Sr=cr(Le,nr);Z=Un;var ii=function(ti,Tr){ti?(xt(),Fe(ti,null)):(Wt[Zn]=Tr,--pe||Fe(null,Wt))};if(!ln)ii(null,O(Le,Sr,Sr+mn));else if(ln==8){var Dr=Le.subarray(Sr,Sr+mn);if(mn<32e4)try{ii(null,it(Dr,new M(Jt)))}catch(ti){ii(ti,null)}else nt.push(We(Dr,{size:Jt},ii))}else ii("unknown compression type "+ln,null)},Ce=0;Ce<z;++Ce)xe(Ce);return xt}function Zi(Le){for(var Fe={},nt=Le.length-22;ce(Le,nt)!=101010256;--nt)if(!nt||Le.length-nt>65558)throw"invalid zip file";var xt=te(Le,nt+8);if(!xt)return{};var Wt=ce(Le,nt+16),Xt=Wt==4294967295;if(Xt){if(nt=ce(Le,nt-12),ce(Le,nt)!=101075792)throw"invalid zip file";xt=ce(Le,nt+32),Wt=ce(Le,nt+48)}for(var pe=0;pe<xt;++pe){var z=Rn(Le,Wt,Xt),Z=z[0],ye=z[1],xe=z[2],Ce=z[3],ft=z[4],zt=z[5],ln=cr(Le,zt);if(Wt=ft,!Z)Fe[Ce]=O(Le,ln,ln+ye);else if(Z==8)Fe[Ce]=it(Le.subarray(ln,ln+ye),new M(xe));else throw"unknown compression type "+Z}return Fe}},csWT:function(Ge,fe,R){Ge.exports=R.p+"static/choose.4ad1045f.svg"},dMvE:function(Ge,fe){var R={linear:function(G){return G},quadraticIn:function(G){return G*G},quadraticOut:function(G){return G*(2-G)},quadraticInOut:function(G){return(G*=2)<1?.5*G*G:-.5*(--G*(G-2)-1)},cubicIn:function(G){return G*G*G},cubicOut:function(G){return--G*G*G+1},cubicInOut:function(G){return(G*=2)<1?.5*G*G*G:.5*((G-=2)*G*G+2)},quarticIn:function(G){return G*G*G*G},quarticOut:function(G){return 1- --G*G*G*G},quarticInOut:function(G){return(G*=2)<1?.5*G*G*G*G:-.5*((G-=2)*G*G*G-2)},quinticIn:function(G){return G*G*G*G*G},quinticOut:function(G){return--G*G*G*G*G+1},quinticInOut:function(G){return(G*=2)<1?.5*G*G*G*G*G:.5*((G-=2)*G*G*G*G+2)},sinusoidalIn:function(G){return 1-Math.cos(G*Math.PI/2)},sinusoidalOut:function(G){return Math.sin(G*Math.PI/2)},sinusoidalInOut:function(G){return .5*(1-Math.cos(Math.PI*G))},exponentialIn:function(G){return G===0?0:Math.pow(1024,G-1)},exponentialOut:function(G){return G===1?1:1-Math.pow(2,-10*G)},exponentialInOut:function(G){return G===0?0:G===1?1:(G*=2)<1?.5*Math.pow(1024,G-1):.5*(-Math.pow(2,-10*(G-1))+2)},circularIn:function(G){return 1-Math.sqrt(1-G*G)},circularOut:function(G){return Math.sqrt(1- --G*G)},circularInOut:function(G){return(G*=2)<1?-.5*(Math.sqrt(1-G*G)-1):.5*(Math.sqrt(1-(G-=2)*G)+1)},elasticIn:function(G){var M,v=.1,b=.4;return G===0?0:G===1?1:(!v||v<1?(v=1,M=b/4):M=b*Math.asin(1/v)/(2*Math.PI),-(v*Math.pow(2,10*(G-=1))*Math.sin((G-M)*(2*Math.PI)/b)))},elasticOut:function(G){var M,v=.1,b=.4;return G===0?0:G===1?1:(!v||v<1?(v=1,M=b/4):M=b*Math.asin(1/v)/(2*Math.PI),v*Math.pow(2,-10*G)*Math.sin((G-M)*(2*Math.PI)/b)+1)},elasticInOut:function(G){var M,v=.1,b=.4;return G===0?0:G===1?1:(!v||v<1?(v=1,M=b/4):M=b*Math.asin(1/v)/(2*Math.PI),(G*=2)<1?-.5*(v*Math.pow(2,10*(G-=1))*Math.sin((G-M)*(2*Math.PI)/b)):v*Math.pow(2,-10*(G-=1))*Math.sin((G-M)*(2*Math.PI)/b)*.5+1)},backIn:function(G){var M=1.70158;return G*G*((M+1)*G-M)},backOut:function(G){var M=1.70158;return--G*G*((M+1)*G+M)+1},backInOut:function(G){var M=1.70158*1.525;return(G*=2)<1?.5*(G*G*((M+1)*G-M)):.5*((G-=2)*G*((M+1)*G+M)+2)},bounceIn:function(G){return 1-R.bounceOut(1-G)},bounceOut:function(G){return G<1/2.75?7.5625*G*G:G<2/2.75?7.5625*(G-=1.5/2.75)*G+.75:G<2.5/2.75?7.5625*(G-=2.25/2.75)*G+.9375:7.5625*(G-=2.625/2.75)*G+.984375},bounceInOut:function(G){return G<.5?R.bounceIn(G*2)*.5:R.bounceOut(G*2-1)*.5+.5}},se=R;Ge.exports=se},dejd:function(Ge,fe,R){},djh8:function(Ge,fe,R){Ge.exports=R.p+"static/qrCode.42927872.png"},dmUQ:function(Ge,fe,R){"use strict";var se=R("Ff2n"),G=R("rePB"),M=R("1OyB"),v=R("vuIU"),b=R("Ji7U"),C=R("md7G"),w=R("foSv"),m=R("q1tI"),d=R.n(m),i=R("TSYQ"),n=R.n(i),e=R("4IlW");function a(u,S){var O=Object.keys(u);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(u);S&&(T=T.filter(function(D){return Object.getOwnPropertyDescriptor(u,D).enumerable})),O.push.apply(O,T)}return O}function s(u){for(var S=1;S<arguments.length;S++){var O=arguments[S]!=null?arguments[S]:{};S%2?a(Object(O),!0).forEach(function(T){Object(G.a)(u,T,O[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(O)):a(Object(O)).forEach(function(T){Object.defineProperty(u,T,Object.getOwnPropertyDescriptor(O,T))})}return u}function o(u){var S=f();return function(){var T=Object(w.a)(u),D;if(S){var I=Object(w.a)(this).constructor;D=Reflect.construct(T,arguments,I)}else D=T.apply(this,arguments);return Object(C.a)(this,D)}}function f(){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(u){return!1}}function l(){}function r(u){u.preventDefault()}var c=function(S){return S.replace(/[^\w.-]+/g,"")},A=200,p=600,x=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,_=function(S){return S!=null},B=function(S,O){return O===S||typeof O=="number"&&typeof S=="number"&&isNaN(O)&&isNaN(S)},E=function(u){Object(b.a)(O,u);var S=o(O);function O(T){var D;Object(M.a)(this,O),D=S.call(this,T),D.onKeyDown=function(F){var X=D.props,U=X.onKeyDown,K=X.onPressEnter;if(F.keyCode===e.a.UP){var V=D.getRatio(F);D.up(F,V,null),D.stop()}else if(F.keyCode===e.a.DOWN){var N=D.getRatio(F);D.down(F,N,null),D.stop()}else F.keyCode===e.a.ENTER&&K&&K(F);if(D.recordCursorPosition(),D.lastKeyCode=F.keyCode,U){for(var Q=arguments.length,J=new Array(Q>1?Q-1:0),ne=1;ne<Q;ne++)J[ne-1]=arguments[ne];U.apply(void 0,[F].concat(J))}},D.onKeyUp=function(F){var X=D.props.onKeyUp;if(D.stop(),D.recordCursorPosition(),X){for(var U=arguments.length,K=new Array(U>1?U-1:0),V=1;V<U;V++)K[V-1]=arguments[V];X.apply(void 0,[F].concat(K))}},D.onChange=function(F){var X=D.props.onChange;D.state.focused&&(D.inputting=!0),D.rawInput=D.props.parser(D.getValueFromEvent(F)),D.setState({inputValue:D.rawInput}),X(D.toNumber(D.rawInput))},D.onMouseUp=function(){var F=D.props.onMouseUp;D.recordCursorPosition(),F&&F.apply(void 0,arguments)},D.onFocus=function(){var F;D.setState({focused:!0}),(F=D.props).onFocus.apply(F,arguments)},D.onBlur=function(){var F=D.props.onBlur;D.inputting=!1,D.setState({focused:!1});var X=D.getCurrentValidValue(D.state.inputValue),U=D.setValue(X,l);if(F){var K=D.input.value,V=D.getInputDisplayValue({focus:!1,value:U});D.input.value=V&&Number(V),F.apply(void 0,arguments),D.input.value=K}},D.getRatio=function(F){var X=1;return F.metaKey||F.ctrlKey?X=.1:F.shiftKey&&(X=10),X},D.getFullNum=function(F){return isNaN(F)?F:/e/i.test(String(F))?Number(F).toFixed(18).replace(/\.?0+$/,""):F},D.getPrecision=function(F){if(_(D.props.precision))return D.props.precision;var X=String(F);if(X.indexOf("e-")>=0)return parseInt(X.slice(X.indexOf("e-")+2),10);var U=0;return X.indexOf(".")>=0&&(U=X.length-X.indexOf(".")-1),U},D.getInputDisplayValue=function(F){var X=F||D.state,U=X.focused,K=X.inputValue,V=X.value,N;U?N=K:N=D.toPrecisionAsStep(V),N==null&&(N="");var Q=D.formatWrapper(N);return _(D.props.decimalSeparator)&&(Q=Q.toString().replace(".",D.props.decimalSeparator)),Q},D.recordCursorPosition=function(){try{D.cursorStart=D.input.selectionStart,D.cursorEnd=D.input.selectionEnd,D.currentValue=D.input.value,D.cursorBefore=D.input.value.substring(0,D.cursorStart),D.cursorAfter=D.input.value.substring(D.cursorEnd)}catch(F){}},D.restoreByAfter=function(F){if(F===void 0)return!1;var X=D.input.value,U=X.lastIndexOf(F);if(U===-1)return!1;var K=D.cursorBefore.length;return D.lastKeyCode===e.a.DELETE&&D.cursorBefore.charAt(K-1)===F[0]?(D.fixCaret(K,K),!0):U+F.length===X.length?(D.fixCaret(U,U),!0):!1},D.partRestoreByAfter=function(F){return F===void 0?!1:Array.prototype.some.call(F,function(X,U){var K=F.substring(U);return D.restoreByAfter(K)})},D.isNotCompleteNumber=function(F){return isNaN(F)||F===""||F===null||F&&F.toString().indexOf(".")===F.toString().length-1},D.stop=function(){D.autoStepTimer&&clearTimeout(D.autoStepTimer)},D.down=function(F,X,U){D.pressingUpOrDown=!0,D.step("down",F,X,U)},D.up=function(F,X,U){D.pressingUpOrDown=!0,D.step("up",F,X,U)},D.saveInput=function(F){D.input=F};var I=T.value;I===void 0&&(I=T.defaultValue),D.state={focused:T.autoFocus};var k=D.getValidValue(D.toNumber(I));return D.state=s(s({},D.state),{},{inputValue:D.toPrecisionAsStep(k),value:k}),D}return Object(v.a)(O,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(D){var I=this.props,k=I.value,F=I.onChange,X=I.max,U=I.min,K=this.state.focused;if(D){if(!B(D.value,k)||!B(D.max,X)||!B(D.min,U)){var V=K?k:this.getValidValue(k),N;this.pressingUpOrDown?N=V:this.inputting?N=this.rawInput:N=this.toPrecisionAsStep(V),this.setState({value:V,inputValue:N})}var Q="value"in this.props?k:this.state.value;"max"in this.props&&D.max!==X&&typeof Q=="number"&&Q>X&&F&&F(X),"min"in this.props&&D.min!==U&&typeof Q=="number"&&Q<U&&F&&F(U)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var J=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===e.a.BACKSPACE?J=this.cursorStart-1:this.lastKeyCode===e.a.DELETE&&(J=this.cursorStart):J=this.input.value.length,this.fixCaret(J,J)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case e.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case e.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(ne){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(D){var I=D;return I===""?I="":this.isNotCompleteNumber(parseFloat(I))?I=this.state.value:I=this.getValidValue(I),this.toNumber(I)}},{key:"getValueFromEvent",value:function(D){var I=D.target.value.trim().replace(/。/g,".");return _(this.props.decimalSeparator)&&(I=I.replace(this.props.decimalSeparator,".")),I}},{key:"getValidValue",value:function(D){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,F=parseFloat(D);return isNaN(F)?D:(F<I&&(F=I),F>k&&(F=k),F)}},{key:"setValue",value:function(D,I){var k=this.props.precision,F=this.isNotCompleteNumber(parseFloat(D))?null:parseFloat(D),X=this.state.value,U=X===void 0?null:X,K=this.state.inputValue,V=K===void 0?null:K,N=typeof F=="number"?F.toFixed(k):"".concat(F),Q=F!==U||N!=="".concat(V);return"value"in this.props?(V=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:V},I)):this.setState({value:F,inputValue:this.toPrecisionAsStep(D)},I),Q&&this.props.onChange(F),F}},{key:"getMaxPrecision",value:function(D){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,k=this.props,F=k.precision,X=k.step;if(_(F))return F;var U=this.getPrecision(I),K=this.getPrecision(X),V=this.getPrecision(D);return D?Math.max(V,U+K):U+K}},{key:"getPrecisionFactor",value:function(D){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,k=this.getMaxPrecision(D,I);return Math.pow(10,k)}},{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(D){return this.props.formatter?this.props.formatter(D):D}},{key:"toPrecisionAsStep",value:function(D){if(this.isNotCompleteNumber(D)||D==="")return D;var I=Math.abs(this.getMaxPrecision(D));return isNaN(I)?D.toString():Number(D).toFixed(I)}},{key:"toNumber",value:function(D){var I=this.props.precision,k=this.state.focused,F=D&&D.length>16&&k;return this.isNotCompleteNumber(D)||F?D:_(I)?Math.round(D*Math.pow(10,I))/Math.pow(10,I):Number(D)}},{key:"upStep",value:function(D,I){var k=this.props.step,F=this.getPrecisionFactor(D,I),X=Math.abs(this.getMaxPrecision(D,I)),U=((F*D+F*k*I)/F).toFixed(X);return this.toNumber(U)}},{key:"downStep",value:function(D,I){var k=this.props.step,F=this.getPrecisionFactor(D,I),X=Math.abs(this.getMaxPrecision(D,I)),U=((F*D-F*k*I)/F).toFixed(X);return this.toNumber(U)}},{key:"step",value:function(D,I){var k=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,X=arguments.length>3?arguments[3]:void 0;this.stop(),I&&(I.persist(),I.preventDefault());var U=this.props;if(U.disabled)return;var K=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(K))return;var V=this["".concat(D,"Step")](K,F),N=V>U.max||V<U.min;if(V>U.max?V=U.max:V<U.min&&(V=U.min),this.setValue(V,null),this.setState({focused:!0},function(){k.pressingUpOrDown=!1}),N)return;this.autoStepTimer=setTimeout(function(){k[D](I,F,!0)},X?A:p)}},{key:"fixCaret",value:function(D,I){if(D===void 0||I===void 0||!this.input||!this.input.value)return;try{var k=this.input.selectionStart,F=this.input.selectionEnd;(D!==k||I!==F)&&this.input.setSelectionRange(D,I)}catch(X){}}},{key:"render",value:function(){var D,I=this.props,k=I.prefixCls,F=I.disabled,X=I.readOnly,U=I.useTouch,K=I.autoComplete,V=I.upHandler,N=I.downHandler,Q=I.className,J=I.max,ne=I.min,ue=I.style,be=I.title,de=I.onMouseEnter,_e=I.onMouseLeave,me=I.onMouseOver,Ee=I.onMouseOut,ge=I.required,Ae=I.onClick,ae=I.tabIndex,ve=I.type,oe=I.placeholder,ie=I.id,Te=I.inputMode,Re=I.pattern,Me=I.step,re=I.maxLength,j=I.autoFocus,W=I.name,he=I.onPaste,te=I.onInput,ce=Object(se.a)(I,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),Ie=this.state,ze=Ie.value,_t=Ie.focused,He=n()(k,(D={},Object(G.a)(D,Q,!!Q),Object(G.a)(D,"".concat(k,"-disabled"),F),Object(G.a)(D,"".concat(k,"-focused"),_t),D)),Ke={};Object.keys(ce).forEach(function(it){(it.substr(0,5)==="data-"||it.substr(0,5)==="aria-"||it==="role")&&(Ke[it]=ce[it])});var ht=!X&&!F,St=this.getInputDisplayValue(null),ct=(ze||ze===0)&&(isNaN(ze)||Number(ze)>=J),lt=(ze||ze===0)&&(isNaN(ze)||Number(ze)<=ne),rt=ct||F||X,Ze=lt||F||X,$e=n()("".concat(k,"-handler"),"".concat(k,"-handler-up"),Object(G.a)({},"".concat(k,"-handler-up-disabled"),rt)),Ue=n()("".concat(k,"-handler"),"".concat(k,"-handler-down"),Object(G.a)({},"".concat(k,"-handler-down-disabled"),Ze)),Ne=U?{onTouchStart:rt?l:this.up,onTouchEnd:this.stop}:{onMouseDown:rt?l:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},We=U?{onTouchStart:Ze?l:this.down,onTouchEnd:this.stop}:{onMouseDown:Ze?l:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return d.a.createElement("div",{className:He,style:ue,title:be,onMouseEnter:de,onMouseLeave:_e,onMouseOver:me,onMouseOut:Ee,onFocus:function(){return null},onBlur:function(){return null}},d.a.createElement("div",{className:"".concat(k,"-handler-wrap")},d.a.createElement("span",Object.assign({unselectable:"on"},Ne,{role:"button","aria-label":"Increase Value","aria-disabled":rt,className:$e}),V||d.a.createElement("span",{unselectable:"on",className:"".concat(k,"-handler-up-inner"),onClick:r})),d.a.createElement("span",Object.assign({unselectable:"on"},We,{role:"button","aria-label":"Decrease Value","aria-disabled":Ze,className:Ue}),N||d.a.createElement("span",{unselectable:"on",className:"".concat(k,"-handler-down-inner"),onClick:r}))),d.a.createElement("div",{className:"".concat(k,"-input-wrap")},d.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":ne,"aria-valuemax":J,"aria-valuenow":ze,required:ge,type:ve,placeholder:oe,onPaste:he,onClick:Ae,onMouseUp:this.onMouseUp,className:"".concat(k,"-input"),tabIndex:ae,autoComplete:K,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ht?this.onKeyDown:l,onKeyUp:ht?this.onKeyUp:l,autoFocus:j,maxLength:re,readOnly:X,disabled:F,max:J,min:ne,step:Me,name:W,title:be,id:ie,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(St),pattern:Re,inputMode:Te,onInput:te},Ke))))}}]),O}(d.a.Component);E.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:x,min:-x,step:1,style:{},onChange:l,onKeyDown:l,onPressEnter:l,onFocus:l,onBlur:l,parser:c,required:!1,autoComplete:"off"};var g=E,h=fe.a=g},dqUG:function(Ge,fe,R){var se=R("Gev7"),G=R("bYtY"),M=R("6GrX"),v=R("pzxd"),b=R("gut8"),C=b.ContextCachedBy,w=function(d){se.call(this,d)};w.prototype={constructor:w,type:"text",brush:function(d,i){var n=this.style;this.__dirty&&v.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var e=n.text;if(e!=null&&(e+=""),!v.needDrawText(e,n)){d.__attrCachedBy=C.NONE;return}this.setTransform(d),v.renderText(this,d,e,n,null,i),this.restoreTransform(d)},getBoundingRect:function(){var d=this.style;if(this.__dirty&&v.normalizeTextStyle(d,!0),!this._rect){var i=d.text;i!=null?i+="":i="";var n=M.getBoundingRect(d.text+"",d.font,d.textAlign,d.textVerticalAlign,d.textPadding,d.textLineHeight,d.rich);if(n.x+=d.x||0,n.y+=d.y||0,v.getStroke(d.textStroke,d.textStrokeWidth)){var e=d.textStrokeWidth;n.x-=e/2,n.y-=e/2,n.width+=e,n.height+=e}this._rect=n}return this._rect}},G.inherits(w,se);var m=w;Ge.exports=m},dwhp:function(Ge,fe,R){},fAei:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return A.a});var se=R("rePB"),G=R("VTBJ"),M=R("KQm4"),v=R("1OyB"),b=R("vuIU"),C=R("Ji7U"),w=R("LK+K"),m=R("q1tI"),d=R("4IlW"),i=R("Kwbf"),n=R("TSYQ"),e=R.n(n),a=R("sboe"),s=R("OZM5"),o=R("815F"),f=R("ODXe"),l=R("Ff2n"),r=R("+nKL"),c=R("8XRh"),A=R("WaYH"),p=function(ne,ue){var be=ne.className,de=ne.style,_e=ne.motion,me=ne.motionNodes,Ee=ne.motionType,ge=ne.onMotionStart,Ae=ne.onMotionEnd,ae=ne.active,ve=ne.treeNodeRequiredProps,oe=Object(l.a)(ne,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),ie=m.useState(!0),Te=Object(f.a)(ie,2),Re=Te[0],Me=Te[1],re=m.useContext(a.a),j=re.prefixCls,W=m.useRef(!1),he=function(){W.current||Ae(),W.current=!0};return Object(m.useEffect)(function(){me&&Ee==="hide"&&Re&&Me(!1)},[me]),Object(m.useEffect)(function(){return me&&ge(),function(){me&&he()}},[]),me?m.createElement(c.default,Object.assign({ref:ue,visible:Re},_e,{motionAppear:Ee==="show",onAppearEnd:he,onLeaveEnd:he}),function(te,ce){var Ie=te.className,ze=te.style;return m.createElement("div",{ref:ce,className:e()("".concat(j,"-treenode-motion"),Ie),style:ze},me.map(function(_t){var He=_t.data,Ke=He.key,ht=Object(l.a)(He,["key"]),St=_t.isStart,ct=_t.isEnd;delete ht.children;var lt=Object(o.f)(Ke,ve);return m.createElement(A.a,Object.assign({},ht,lt,{active:ae,data:_t.data,key:Ke,isStart:St,isEnd:ct}))}))}):m.createElement(A.a,Object.assign({domRef:ue,className:be,style:de},oe,{active:ae}))};p.displayName="MotionTreeNode";var x=m.forwardRef(p),_=x;function B(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ue=J.length,be=ne.length;if(Math.abs(ue-be)!==1)return{add:!1,key:null};function de(_e,me){var Ee=new Map;_e.forEach(function(Ae){Ee.set(Ae,!0)});var ge=me.filter(function(Ae){return!Ee.has(Ae)});return ge.length===1?ge[0]:null}return ue<be?{add:!0,key:de(J,ne)}:{add:!1,key:de(ne,J)}}function E(J,ne,ue){var be=J.findIndex(function(Ee){var ge=Ee.data;return ge.key===ue}),de=J[be+1],_e=ne.findIndex(function(Ee){var ge=Ee.data;return ge.key===ue});if(de){var me=ne.findIndex(function(Ee){var ge=Ee.data;return ge.key===de.data.key});return ne.slice(_e+1,me)}return ne.slice(_e+1)}var g={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},h=function(){},u="RC_TREE_MOTION_".concat(Math.random()),S={key:u},O={key:u,level:0,index:0,pos:"0",node:S},T={parent:null,children:[],pos:O.pos,data:S,isStart:[],isEnd:[]};function D(J,ne,ue,be){return ne===!1||!ue?J:J.slice(0,Math.ceil(ue/be)+1)}function I(J){var ne=J.data.key,ue=J.pos;return Object(o.e)(ne,ue)}function k(J){for(var ne=String(J.data.key),ue=J;ue.parent;)ue=ue.parent,ne="".concat(ue.data.key," > ").concat(ne);return ne}var F=function(ne,ue){var be=ne.prefixCls,de=ne.data,_e=ne.selectable,me=ne.checkable,Ee=ne.expandedKeys,ge=ne.selectedKeys,Ae=ne.checkedKeys,ae=ne.loadedKeys,ve=ne.loadingKeys,oe=ne.halfCheckedKeys,ie=ne.keyEntities,Te=ne.disabled,Re=ne.dragging,Me=ne.dragOverNodeKey,re=ne.dropPosition,j=ne.motion,W=ne.height,he=ne.itemHeight,te=ne.virtual,ce=ne.focusable,Ie=ne.activeItem,ze=ne.focused,_t=ne.tabIndex,He=ne.onKeyDown,Ke=ne.onFocus,ht=ne.onBlur,St=ne.onActiveChange,ct=ne.onListChangeStart,lt=ne.onListChangeEnd,rt=Object(l.a)(ne,["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"]),Ze=m.useRef(null);m.useImperativeHandle(ue,function(){return{scrollTo:function(un){Ze.current.scrollTo(un)}}});var $e=m.useState(Ee),Ue=Object(f.a)($e,2),Ne=Ue[0],We=Ue[1],it=m.useState(de),yt=Object(f.a)(it,2),vt=yt[0],Mt=yt[1],Tt=m.useState(de),Rt=Object(f.a)(Tt,2),kt=Rt[0],Ut=Rt[1],Bt=m.useState([]),At=Object(f.a)(Bt,2),bt=At[0],je=At[1],qe=m.useState(null),Ot=Object(f.a)(qe,2),Ct=Ot[0],jt=Ot[1];function Vt(){Mt(de),Ut(de),je([]),jt(null),lt()}m.useEffect(function(){We(Ee);var Ht=B(Ne,Ee);if(Ht.key!==null)if(Ht.add){var un=vt.findIndex(function(Jr){var si=Jr.data.key;return si===Ht.key}),gn=D(E(vt,de,Ht.key),te,W,he),Ar=vt.slice();Ar.splice(un+1,0,T),Ut(Ar),je(gn),jt("show")}else{var wr=de.findIndex(function(Jr){var si=Jr.data.key;return si===Ht.key}),cr=D(E(de,vt,Ht.key),te,W,he),Rn=de.slice();Rn.splice(wr+1,0,T),Ut(Rn),je(cr),jt("hide")}else vt!==de&&(Mt(de),Ut(de))},[Ee,de]),m.useEffect(function(){Re||Vt()},[Re]);var Et=j?kt:de,Lt={expandedKeys:Ee,selectedKeys:ge,loadedKeys:ae,loadingKeys:ve,checkedKeys:Ae,halfCheckedKeys:oe,dragOverNodeKey:Me,dropPosition:re,keyEntities:ie};return m.createElement(m.Fragment,null,ze&&Ie&&m.createElement("span",{style:g,"aria-live":"assertive"},k(Ie)),m.createElement("div",{role:"tree"},m.createElement("input",{style:g,disabled:ce===!1||Te,tabIndex:ce!==!1?_t:null,onKeyDown:He,onFocus:Ke,onBlur:ht,value:"",onChange:h})),m.createElement(r.a,Object.assign({},rt,{data:Et,itemKey:I,height:W,fullHeight:!1,virtual:te,itemHeight:he,prefixCls:"".concat(be,"-list"),ref:Ze}),function(Ht){var un=Ht.pos,gn=Ht.data,Ar=gn.key,wr=Object(l.a)(gn,["key"]),cr=Ht.isStart,Rn=Ht.isEnd,Jr=Object(o.e)(Ar,un);delete wr.children;var si=Object(o.f)(Jr,Lt);return m.createElement(_,Object.assign({},wr,si,{active:Ie&&Ar===Ie.data.key,pos:un,data:Ht.data,isStart:cr,isEnd:Rn,motion:j,motionNodes:Ar===u?bt:null,motionType:Ct,onMotionStart:ct,onMotionEnd:Vt,treeNodeRequiredProps:Lt,onMouseMove:function(){St(null)}}))}))},X=m.forwardRef(F);X.displayName="NodeList";var U=X,K=R("NvD2"),V=function(J){Object(C.a)(ue,J);var ne=Object(w.a)(ue);function ue(){var be;return Object(v.a)(this,ue),be=ne.apply(this,arguments),be.destroyed=!1,be.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},be.listRef=m.createRef(),be.onNodeDragStart=function(de,_e){var me=be.state,Ee=me.expandedKeys,ge=me.keyEntities,Ae=be.props.onDragStart,ae=_e.props.eventKey;be.dragNode=_e;var ve=Object(s.b)(Ee,ae);be.setState({dragging:!0,dragNodesKeys:Object(s.g)(ae,ge)}),be.setExpandedKeys(ve),Ae&&Ae({event:de,node:Object(o.b)(_e.props)})},be.onNodeDragEnter=function(de,_e){var me=be.state,Ee=me.expandedKeys,ge=me.keyEntities,Ae=me.dragNodesKeys,ae=be.props.onDragEnter,ve=_e.props,oe=ve.pos,ie=ve.eventKey;if(!be.dragNode||Ae.indexOf(ie)!==-1)return;var Te=Object(s.c)(de,_e);if(be.dragNode.props.eventKey===ie&&Te===0){be.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){be.setState({dragOverNodeKey:ie,dropPosition:Te}),be.delayedDragEnterLogic||(be.delayedDragEnterLogic={}),Object.keys(be.delayedDragEnterLogic).forEach(function(Re){clearTimeout(be.delayedDragEnterLogic[Re])}),be.delayedDragEnterLogic[oe]=window.setTimeout(function(){if(!be.state.dragging)return;var Re=Object(M.a)(Ee),Me=ge[ie];Me&&(Me.children||[]).length&&(Re=Object(s.a)(Ee,ie)),"expandedKeys"in be.props||be.setExpandedKeys(Re),ae&&ae({event:de,node:Object(o.b)(_e.props),expandedKeys:Re})},400)},0)},be.onNodeDragOver=function(de,_e){var me=be.state.dragNodesKeys,Ee=be.props.onDragOver,ge=_e.props.eventKey;if(me.indexOf(ge)!==-1)return;if(be.dragNode&&ge===be.state.dragOverNodeKey){var Ae=Object(s.c)(de,_e);if(Ae===be.state.dropPosition)return;be.setState({dropPosition:Ae})}Ee&&Ee({event:de,node:Object(o.b)(_e.props)})},be.onNodeDragLeave=function(de,_e){var me=be.props.onDragLeave;be.setState({dragOverNodeKey:""}),me&&me({event:de,node:Object(o.b)(_e.props)})},be.onNodeDragEnd=function(de,_e){var me=be.props.onDragEnd;be.setState({dragOverNodeKey:""}),be.cleanDragState(),me&&me({event:de,node:Object(o.b)(_e.props)}),be.dragNode=null},be.onNodeDrop=function(de,_e){var me=be.state,Ee=me.dragNodesKeys,ge=Ee===void 0?[]:Ee,Ae=me.dropPosition,ae=be.props.onDrop,ve=_e.props,oe=ve.eventKey,ie=ve.pos;if(be.setState({dragOverNodeKey:""}),be.cleanDragState(),ge.indexOf(oe)!==-1){Object(i.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Te=Object(s.k)(ie),Re={event:de,node:Object(o.b)(_e.props),dragNode:be.dragNode?Object(o.b)(be.dragNode.props):null,dragNodesKeys:ge.slice(),dropPosition:Ae+Number(Te[Te.length-1]),dropToGap:!1};Ae!==0&&(Re.dropToGap=!0),ae&&ae(Re),be.dragNode=null},be.cleanDragState=function(){var de=be.state.dragging;de&&be.setState({dragging:!1})},be.onNodeClick=function(de,_e){var me=be.props.onClick;me&&me(de,_e)},be.onNodeDoubleClick=function(de,_e){var me=be.props.onDoubleClick;me&&me(de,_e)},be.onNodeSelect=function(de,_e){var me=be.state.selectedKeys,Ee=be.state.keyEntities,ge=be.props,Ae=ge.onSelect,ae=ge.multiple,ve=_e.selected,oe=_e.key,ie=!ve;ie?ae?me=Object(s.a)(me,oe):me=[oe]:me=Object(s.b)(me,oe);var Te=me.map(function(Re){var Me=Ee[Re];return Me?Me.node:null}).filter(function(Re){return Re});be.setUncontrolledState({selectedKeys:me}),Ae&&Ae(me,{event:"select",selected:ie,node:_e,selectedNodes:Te,nativeEvent:de.nativeEvent})},be.onNodeCheck=function(de,_e,me){var Ee=be.state,ge=Ee.keyEntities,Ae=Ee.checkedKeys,ae=Ee.halfCheckedKeys,ve=be.props,oe=ve.checkStrictly,ie=ve.onCheck,Te=_e.key,Re,Me={event:"check",node:_e,checked:me,nativeEvent:de.nativeEvent};if(oe){var re=me?Object(s.a)(Ae,Te):Object(s.b)(Ae,Te),j=Object(s.b)(ae,Te);Re={checked:re,halfChecked:j},Me.checkedNodes=re.map(function(ze){return ge[ze]}).filter(function(ze){return ze}).map(function(ze){return ze.node}),be.setUncontrolledState({checkedKeys:re})}else{var W=Object(K.a)([].concat(Object(M.a)(Ae),[Te]),!0,ge),he=W.checkedKeys,te=W.halfCheckedKeys;if(!me){var ce=new Set(he);ce.delete(Te);var Ie=Object(K.a)(Array.from(ce),{checked:!1,halfCheckedKeys:te},ge);he=Ie.checkedKeys,te=Ie.halfCheckedKeys}Re=he,Me.checkedNodes=[],Me.checkedNodesPositions=[],Me.halfCheckedKeys=te,he.forEach(function(ze){var _t=ge[ze];if(!_t)return;var He=_t.node,Ke=_t.pos;Me.checkedNodes.push(He),Me.checkedNodesPositions.push({node:He,pos:Ke})}),be.setUncontrolledState({checkedKeys:he},!1,{halfCheckedKeys:te})}ie&&ie(Re,Me)},be.onNodeLoad=function(de){return new Promise(function(_e){be.setState(function(me){var Ee=me.loadedKeys,ge=Ee===void 0?[]:Ee,Ae=me.loadingKeys,ae=Ae===void 0?[]:Ae,ve=be.props,oe=ve.loadData,ie=ve.onLoad,Te=de.key;if(!oe||ge.indexOf(Te)!==-1||ae.indexOf(Te)!==-1)return{};var Re=oe(de);return Re.then(function(){var Me=be.state,re=Me.loadedKeys,j=Me.loadingKeys,W=Object(s.a)(re,Te),he=Object(s.b)(j,Te);ie&&ie(W,{event:"load",node:de}),be.setUncontrolledState({loadedKeys:W}),be.setState({loadingKeys:he}),_e()}),{loadingKeys:Object(s.a)(ae,Te)}})})},be.onNodeMouseEnter=function(de,_e){var me=be.props.onMouseEnter;me&&me({event:de,node:_e})},be.onNodeMouseLeave=function(de,_e){var me=be.props.onMouseLeave;me&&me({event:de,node:_e})},be.onNodeContextMenu=function(de,_e){var me=be.props.onRightClick;me&&(de.preventDefault(),me({event:de,node:_e}))},be.onFocus=function(){var de=be.props.onFocus;be.setState({focused:!0}),de&&de.apply(void 0,arguments)},be.onBlur=function(){var de=be.props.onBlur;be.setState({focused:!1}),be.onActiveChange(null),de&&de.apply(void 0,arguments)},be.getTreeNodeRequiredProps=function(){var de=be.state,_e=de.expandedKeys,me=de.selectedKeys,Ee=de.loadedKeys,ge=de.loadingKeys,Ae=de.checkedKeys,ae=de.halfCheckedKeys,ve=de.dragOverNodeKey,oe=de.dropPosition,ie=de.keyEntities;return{expandedKeys:_e||[],selectedKeys:me||[],loadedKeys:Ee||[],loadingKeys:ge||[],checkedKeys:Ae||[],halfCheckedKeys:ae||[],dragOverNodeKey:ve,dropPosition:oe,keyEntities:ie}},be.setExpandedKeys=function(de){var _e=be.state.treeData,me=Object(o.d)(_e,de);be.setUncontrolledState({expandedKeys:de,flattenNodes:me},!0)},be.onNodeExpand=function(de,_e){var me=be.state.expandedKeys,Ee=be.state.listChanging,ge=be.props,Ae=ge.onExpand,ae=ge.loadData,ve=_e.key,oe=_e.expanded;if(Ee)return;var ie=me.indexOf(ve),Te=!oe;if(Object(i.a)(oe&&ie!==-1||!oe&&ie===-1,"Expand state not sync with index check"),Te?me=Object(s.a)(me,ve):me=Object(s.b)(me,ve),be.setExpandedKeys(me),Ae&&Ae(me,{node:_e,expanded:Te,nativeEvent:de.nativeEvent}),Te&&ae){var Re=be.onNodeLoad(_e);Re&&Re.then(function(){var Me=Object(o.d)(be.state.treeData,me);be.setUncontrolledState({flattenNodes:Me})})}},be.onListChangeStart=function(){be.setUncontrolledState({listChanging:!0})},be.onListChangeEnd=function(){setTimeout(function(){be.setUncontrolledState({listChanging:!1})})},be.onActiveChange=function(de){var _e=be.state.activeKey,me=be.props.onActiveChange;if(_e===de)return;be.setState({activeKey:de}),de!==null&&be.scrollTo({key:de}),me&&me(de)},be.getActiveItem=function(){var de=be.state,_e=de.activeKey,me=de.flattenNodes;return _e===null?null:me.find(function(Ee){var ge=Ee.data.key;return ge===_e})||null},be.offsetActiveKey=function(de){var _e=be.state,me=_e.flattenNodes,Ee=_e.activeKey,ge=me.findIndex(function(ve){var oe=ve.data.key;return oe===Ee});ge===-1&&de<0&&(ge=me.length),ge=(ge+de+me.length)%me.length;var Ae=me[ge];if(Ae){var ae=Ae.data.key;be.onActiveChange(ae)}else be.onActiveChange(null)},be.onKeyDown=function(de){var _e=be.state,me=_e.activeKey,Ee=_e.expandedKeys,ge=_e.checkedKeys,Ae=be.props,ae=Ae.onKeyDown,ve=Ae.checkable,oe=Ae.selectable;switch(de.which){case d.a.UP:{be.offsetActiveKey(-1),de.preventDefault();break}case d.a.DOWN:{be.offsetActiveKey(1),de.preventDefault();break}}var ie=be.getActiveItem();if(ie&&ie.data){var Te=be.getTreeNodeRequiredProps(),Re=ie.data.isLeaf===!1||!!(ie.data.children||[]).length,Me=Object(o.b)(Object(G.a)(Object(G.a)({},Object(o.f)(me,Te)),{},{data:ie.data,active:!0}));switch(de.which){case d.a.LEFT:{Re&&Ee.includes(me)?be.onNodeExpand({},Me):ie.parent&&be.onActiveChange(ie.parent.data.key),de.preventDefault();break}case d.a.RIGHT:{Re&&!Ee.includes(me)?be.onNodeExpand({},Me):ie.children&&ie.children.length&&be.onActiveChange(ie.children[0].data.key),de.preventDefault();break}case d.a.ENTER:case d.a.SPACE:{ve&&!Me.disabled&&Me.checkable!==!1&&!Me.disableCheckbox?be.onNodeCheck({},Me,!ge.includes(me)):!ve&&oe&&!Me.disabled&&Me.selectable!==!1&&be.onNodeSelect({},Me);break}}}ae&&ae(de)},be.setUncontrolledState=function(de){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(be.destroyed)return;var Ee=!1,ge=!0,Ae={};Object.keys(de).forEach(function(ae){if(ae in be.props){ge=!1;return}Ee=!0,Ae[ae]=de[ae]}),Ee&&(!_e||ge)&&be.setState(Object(G.a)(Object(G.a)({},Ae),me))},be.scrollTo=function(de){be.listRef.current.scrollTo(de)},be}return Object(b.a)(ue,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var de,_e=this.state,me=_e.focused,Ee=_e.flattenNodes,ge=_e.keyEntities,Ae=_e.dragging,ae=_e.activeKey,ve=this.props,oe=ve.prefixCls,ie=ve.className,Te=ve.style,Re=ve.showLine,Me=ve.focusable,re=ve.tabIndex,j=re===void 0?0:re,W=ve.selectable,he=ve.showIcon,te=ve.icon,ce=ve.switcherIcon,Ie=ve.draggable,ze=ve.checkable,_t=ve.checkStrictly,He=ve.disabled,Ke=ve.motion,ht=ve.loadData,St=ve.filterTreeNode,ct=ve.height,lt=ve.itemHeight,rt=ve.virtual,Ze=ve.titleRender,$e=ve.onContextMenu,Ue=Object(s.f)(this.props);return m.createElement(a.a.Provider,{value:{prefixCls:oe,selectable:W,showIcon:he,icon:te,switcherIcon:ce,draggable:Ie,checkable:ze,checkStrictly:_t,disabled:He,keyEntities:ge,loadData:ht,filterTreeNode:St,titleRender:Ze,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}},m.createElement("div",{className:e()(oe,ie,(de={},Object(se.a)(de,"".concat(oe,"-show-line"),Re),Object(se.a)(de,"".concat(oe,"-focused"),me),Object(se.a)(de,"".concat(oe,"-active-focused"),ae!==null),de))},m.createElement(U,Object.assign({ref:this.listRef,prefixCls:oe,style:Te,data:Ee,disabled:He,selectable:W,checkable:!!ze,motion:Ke,dragging:Ae,height:ct,itemHeight:lt,virtual:rt,focusable:Me,focused:me,tabIndex:j,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:$e},this.getTreeNodeRequiredProps(),Ue))))}}],[{key:"getDerivedStateFromProps",value:function(de,_e){var me=_e.prevProps,Ee={prevProps:de};function ge(te){return!me&&te in de||me&&me[te]!==de[te]}var Ae;if(ge("treeData")?Ae=de.treeData:ge("children")&&(Object(i.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ae=Object(o.c)(de.children)),Ae){Ee.treeData=Ae;var ae=Object(o.a)(Ae);Ee.keyEntities=Object(G.a)(Object(se.a)({},u,O),ae.keyEntities)}var ve=Ee.keyEntities||_e.keyEntities;if(ge("expandedKeys")||me&&ge("autoExpandParent"))Ee.expandedKeys=de.autoExpandParent||!me&&de.defaultExpandParent?Object(s.e)(de.expandedKeys,ve):de.expandedKeys;else if(!me&&de.defaultExpandAll){var oe=Object(G.a)({},ve);delete oe[u],Ee.expandedKeys=Object.keys(oe).map(function(te){return oe[te].key})}else!me&&de.defaultExpandedKeys&&(Ee.expandedKeys=de.autoExpandParent||de.defaultExpandParent?Object(s.e)(de.defaultExpandedKeys,ve):de.defaultExpandedKeys);if(Ee.expandedKeys||delete Ee.expandedKeys,Ae||Ee.expandedKeys){var ie=Object(o.d)(Ae||_e.treeData,Ee.expandedKeys||_e.expandedKeys);Ee.flattenNodes=ie}if(de.selectable&&(ge("selectedKeys")?Ee.selectedKeys=Object(s.d)(de.selectedKeys,de):!me&&de.defaultSelectedKeys&&(Ee.selectedKeys=Object(s.d)(de.defaultSelectedKeys,de))),de.checkable){var Te;if(ge("checkedKeys")?Te=Object(s.j)(de.checkedKeys)||{}:!me&&de.defaultCheckedKeys?Te=Object(s.j)(de.defaultCheckedKeys)||{}:Ae&&(Te=Object(s.j)(de.checkedKeys)||{checkedKeys:_e.checkedKeys,halfCheckedKeys:_e.halfCheckedKeys}),Te){var Re=Te,Me=Re.checkedKeys,re=Me===void 0?[]:Me,j=Re.halfCheckedKeys,W=j===void 0?[]:j;if(!de.checkStrictly){var he=Object(K.a)(re,!0,ve);re=he.checkedKeys,W=he.halfCheckedKeys}Ee.checkedKeys=re,Ee.halfCheckedKeys=W}}return ge("loadedKeys")&&(Ee.loadedKeys=de.loadedKeys),Ee}}]),ue}(m.Component);V.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:[]},V.TreeNode=A.a;var N=V,Q=fe.b=N},fW2E:function(Ge,fe){var R={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function se(G,M,v){return R.hasOwnProperty(M)?v*=G.dpr:v}Ge.exports=se},fXAG:function(Ge,fe,R){"use strict";R.d(fe,"j",function(){return se}),R.d(fe,"i",function(){return G}),R.d(fe,"k",function(){return M}),R.d(fe,"eb",function(){return v}),R.d(fe,"o",function(){return b}),R.d(fe,"S",function(){return C}),R.d(fe,"fb",function(){return w}),R.d(fe,"u",function(){return m}),R.d(fe,"v",function(){return d}),R.d(fe,"cb",function(){return i}),R.d(fe,"A",function(){return n}),R.d(fe,"m",function(){return e}),R.d(fe,"Y",function(){return a}),R.d(fe,"s",function(){return s}),R.d(fe,"N",function(){return o}),R.d(fe,"bb",function(){return f}),R.d(fe,"db",function(){return l}),R.d(fe,"l",function(){return r}),R.d(fe,"Q",function(){return c}),R.d(fe,"ab",function(){return A}),R.d(fe,"x",function(){return p}),R.d(fe,"z",function(){return x}),R.d(fe,"X",function(){return _}),R.d(fe,"b",function(){return B}),R.d(fe,"H",function(){return E}),R.d(fe,"a",function(){return g}),R.d(fe,"c",function(){return u}),R.d(fe,"P",function(){return S}),R.d(fe,"g",function(){return O}),R.d(fe,"t",function(){return T}),R.d(fe,"Z",function(){return D}),R.d(fe,"y",function(){return I}),R.d(fe,"B",function(){return k}),R.d(fe,"f",function(){return F}),R.d(fe,"e",function(){return X}),R.d(fe,"W",function(){return U}),R.d(fe,"h",function(){return K}),R.d(fe,"d",function(){return V}),R.d(fe,"R",function(){return Q}),R.d(fe,"n",function(){return J}),R.d(fe,"F",function(){return ne}),R.d(fe,"I",function(){return ue}),R.d(fe,"D",function(){return be}),R.d(fe,"E",function(){return de}),R.d(fe,"C",function(){return _e}),R.d(fe,"G",function(){return me}),R.d(fe,"U",function(){return Ee}),R.d(fe,"q",function(){return ge}),R.d(fe,"r",function(){return Ae}),R.d(fe,"V",function(){return ae}),R.d(fe,"T",function(){return ve}),R.d(fe,"p",function(){return oe}),R.d(fe,"M",function(){return ie}),R.d(fe,"L",function(){return Te}),R.d(fe,"J",function(){return Re}),R.d(fe,"K",function(){return Me}),R.d(fe,"O",function(){return re}),R.d(fe,"w",function(){return j});var se="FETCH_TASK_START",G="FETCH_TASK_FAILURE",M="FETCH_TASK_SUCCESS",v="UPDATE_TASK_DATA",b="HIDE_EVALUATE_RESULT",C="SHOW_EVALUATE_RESULT",w="UPDATE_TIMESTRAP",m="MOVE_X",d="MOVE_Y",i="TRIGGER_RIGHT_PANEL_MASK ",n="SET_ACTIVE_INDEX",e="GET_TASK_LIST",a="SHOW_TASK_LIST",s="HIDE_TASK_LIST",o="SET_TASK_STAR",f="TRIGGER_ENLARGE_UNITY3D ",l="TRIGGER_TAB_FIXED ",r="GET_DISCUSSES",c="SHOW_DISCUSSES_LOADING",A="TOP_OR_DOWN_DISCUSS",p="PLUS_DISCUSS",x="SET_ACTION_TYPE",_="SHOW_REWARD_DIALOG",B="CANCEL_REWARD_DIALOG",E="SET_REWARD",g="ACTIVE_DISCUSS_INDEX",h="CREATE_DISCUSS",u="DISABLE_DISCUSS",S="SHOW_ANSWER_LOADING",O="FETCH_ANSWER_INFO",T="HIGH_TIP_MODAL",D="SHOW_TIP_MODAL",I="SELECT_UNLOCK_ANSWER",k="SET_CHOOSE_ANSWERS",F="EVAL_CHOOSE_START",X="EVAL_CHOOSE_END",U="SHOW_REP_loading",K="FETCH_REP_CONTENT",V="EDIT_REP_CONTENT",N="SET_REP_PATH",Q="SHOW_EVALUATE_LOADING",J="HIDE_EVALUATE_LOADING",ne="SET_EVALUATE_MESSAGE",ue="SET_SHOW_DIR",be="SET_EDITOR_SETTING",de="SET_EDITOR_THEME",_e="SET_EDITOR_FONTSIZE",me="SET_REPOS",Ee="SHOW_PATH_LIST",ge="HIDE_PATH_LIST",Ae="HIDE_PICTURE_VIEW",ae="SHOW_PICTURE_VIEW",ve="SHOW_NOTICE",oe="HIDE_NOTICE",ie="SET_TAB_INDEX",Te="SET_SSH_TABS",Re="SET_SSH_CONFIGDATA",Me="SET_SSH_CONFIGDATAARR",re="SET_VNC_LOADING ",j="ON_TAB_TO_SPACE "},fcSX:function(Ge,fe,R){"use strict";var se=R("Ff2n"),G=R("1OyB"),M=R("vuIU"),v=R("Ji7U"),b=R("md7G"),C=R("foSv"),w=R("1W/9"),m=R("q1tI"),d=R("rePB"),i=R("JX7q"),n=R("TSYQ"),e=R.n(n),a=R("qx4F"),s=R("4IlW");function o(F){return Array.isArray(F)?F:[F]}var f={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},l=Object.keys(f).filter(function(F){if(typeof document=="undefined")return!1;var X=document.getElementsByTagName("html")[0];return F in(X?X.style:{})})[0],r=f[l];function c(F,X,U,K){F.addEventListener?F.addEventListener(X,U,K):F.attachEvent&&F.attachEvent("on".concat(X),U)}function A(F,X,U,K){F.removeEventListener?F.removeEventListener(X,U,K):F.attachEvent&&F.detachEvent("on".concat(X),U)}function p(F,X){var U=typeof F=="function"?F(X):F;return Array.isArray(U)?U.length===2?U:[U[0],U[1]]:[U]}var x=function(X){return!isNaN(parseFloat(X))&&isFinite(X)},_=!(typeof window!="undefined"&&window.document&&window.document.createElement),B=function F(X,U,K,V){if(!U||U===document||U instanceof Document)return!1;if(U===X.parentNode)return!0;var N=Math.max(Math.abs(K),Math.abs(V))===Math.abs(V),Q=Math.max(Math.abs(K),Math.abs(V))===Math.abs(K),J=U.scrollHeight-U.clientHeight,ne=U.scrollWidth-U.clientWidth,ue=document.defaultView.getComputedStyle(U),be=ue.overflowY==="auto"||ue.overflowY==="scroll",de=ue.overflowX==="auto"||ue.overflowX==="scroll",_e=J&&be,me=ne&&de;return N&&(!_e||_e&&(U.scrollTop>=J&&V<0||U.scrollTop<=0&&V>0))||Q&&(!me||me&&(U.scrollLeft>=ne&&K<0||U.scrollLeft<=0&&K>0))?F(X,U.parentNode,K,V):!1};function E(F){var X=g();return function(){var K=Object(C.a)(F),V;if(X){var N=Object(C.a)(this).constructor;V=Reflect.construct(K,arguments,N)}else V=K.apply(this,arguments);return Object(b.a)(this,V)}}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(F){return!1}}var h={},u=function(F){Object(v.a)(U,F);var X=E(U);function U(K){var V;return Object(G.a)(this,U),V=X.call(this,K),V.domFocus=function(){V.dom&&V.dom.focus()},V.removeStartHandler=function(N){if(N.touches.length>1)return;V.startPos={x:N.touches[0].clientX,y:N.touches[0].clientY}},V.removeMoveHandler=function(N){if(N.changedTouches.length>1)return;var Q=N.currentTarget,J=N.changedTouches[0].clientX-V.startPos.x,ne=N.changedTouches[0].clientY-V.startPos.y;(Q===V.maskDom||Q===V.handlerDom||Q===V.contentDom&&B(Q,N.target,J,ne))&&N.cancelable&&N.preventDefault()},V.transitionEnd=function(N){var Q=N.target;A(Q,r,V.transitionEnd),Q.style.transition=""},V.onKeyDown=function(N){if(N.keyCode===s.a.ESC){var Q=V.props.onClose;N.stopPropagation(),Q&&Q(N)}},V.onWrapperTransitionEnd=function(N){var Q=V.props,J=Q.open,ne=Q.afterVisibleChange;N.target===V.contentWrapper&&N.propertyName.match(/transform$/)&&(V.dom.style.transition="",!J&&V.getCurrentDrawerSome()&&(document.body.style.overflowX="",V.maskDom&&(V.maskDom.style.left="",V.maskDom.style.width="")),ne&&ne(!!J))},V.openLevelTransition=function(){var N=V.props,Q=N.open,J=N.width,ne=N.height,ue=V.getHorizontalBoolAndPlacementName(),be=ue.isHorizontal,de=ue.placementName,_e=V.contentDom?V.contentDom.getBoundingClientRect()[be?"width":"height"]:0,me=(be?J:ne)||_e;V.setLevelAndScrolling(Q,de,me)},V.setLevelTransform=function(N,Q,J,ne){var ue=V.props,be=ue.placement,de=ue.levelMove,_e=ue.duration,me=ue.ease,Ee=ue.showMask;V.levelDom.forEach(function(ge){ge.style.transition="transform ".concat(_e," ").concat(me),c(ge,r,V.transitionEnd);var Ae=N?J:0;if(de){var ae=p(de,{target:ge,open:N});Ae=N?ae[0]:ae[1]||0}var ve=typeof Ae=="number"?"".concat(Ae,"px"):Ae,oe=be==="left"||be==="top"?ve:"-".concat(ve);oe=Ee&&be==="right"&&ne?"calc(".concat(oe," + ").concat(ne,"px)"):oe,ge.style.transform=Ae?"".concat(Q,"(").concat(oe,")"):""})},V.setLevelAndScrolling=function(N,Q,J){var ne=V.props.onChange;if(!_){var ue=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(a.a)(!0):0;V.setLevelTransform(N,Q,J,ue),V.toggleScrollingToDrawerAndBody(ue)}ne&&ne(N)},V.toggleScrollingToDrawerAndBody=function(N){var Q=V.props,J=Q.getOpenCount,ne=Q.getContainer,ue=Q.showMask,be=Q.open,de=ne&&ne(),_e=J&&J();if(de&&de.parentNode===document.body&&ue){var me=["touchstart"],Ee=[document.body,V.maskDom,V.handlerDom,V.contentDom];be&&document.body.style.overflow!=="hidden"?(N&&V.addScrollingEffect(N),_e===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",Ee.forEach(function(ge,Ae){if(!ge)return;c(ge,me[Ae]||"touchmove",Ae?V.removeMoveHandler:V.removeStartHandler,V.passive)})):V.getCurrentDrawerSome()&&(_e||(document.body.style.overflow=""),document.body.style.touchAction="",N&&V.remScrollingEffect(N),Ee.forEach(function(ge,Ae){if(!ge)return;A(ge,me[Ae]||"touchmove",Ae?V.removeMoveHandler:V.removeStartHandler,V.passive)}))}},V.addScrollingEffect=function(N){var Q=V.props,J=Q.placement,ne=Q.duration,ue=Q.ease,be=Q.getOpenCount,de=Q.switchScrollingEffect,_e=be&&be();_e===1&&de();var me="width ".concat(ne," ").concat(ue),Ee="transform ".concat(ne," ").concat(ue);V.dom.style.transition="none";switch(J){case"right":V.dom.style.transform="translateX(-".concat(N,"px)");break;case"top":case"bottom":V.dom.style.width="calc(100% - ".concat(N,"px)"),V.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(V.timeout),V.timeout=setTimeout(function(){V.dom&&(V.dom.style.transition="".concat(Ee,",").concat(me),V.dom.style.width="",V.dom.style.transform="")})},V.remScrollingEffect=function(N){var Q=V.props,J=Q.placement,ne=Q.duration,ue=Q.ease,be=Q.getOpenCount,de=Q.switchScrollingEffect,_e=be&&be();_e||de(!0),l&&(document.body.style.overflowX="hidden"),V.dom.style.transition="none";var me,Ee="width ".concat(ne," ").concat(ue),ge="transform ".concat(ne," ").concat(ue);switch(J){case"left":{V.dom.style.width="100%",Ee="width 0s ".concat(ue," ").concat(ne);break}case"right":{V.dom.style.transform="translateX(".concat(N,"px)"),V.dom.style.width="100%",Ee="width 0s ".concat(ue," ").concat(ne),V.maskDom&&(V.maskDom.style.left="-".concat(N,"px"),V.maskDom.style.width="calc(100% + ".concat(N,"px)"));break}case"top":case"bottom":{V.dom.style.width="calc(100% + ".concat(N,"px)"),V.dom.style.height="100%",V.dom.style.transform="translateZ(0)",me="height 0s ".concat(ue," ").concat(ne);break}default:break}clearTimeout(V.timeout),V.timeout=setTimeout(function(){V.dom&&(V.dom.style.transition="".concat(ge,",").concat(me?"".concat(me,","):"").concat(Ee),V.dom.style.transform="",V.dom.style.width="",V.dom.style.height="")})},V.getCurrentDrawerSome=function(){return!Object.keys(h).some(function(N){return h[N]})},V.getLevelDom=function(N){var Q=N.level,J=N.getContainer;if(_)return;var ne=J&&J(),ue=ne?ne.parentNode:null;if(V.levelDom=[],Q==="all"){var be=ue?Array.prototype.slice.call(ue.children):[];be.forEach(function(de){de.nodeName!=="SCRIPT"&&de.nodeName!=="STYLE"&&de.nodeName!=="LINK"&&de!==ne&&V.levelDom.push(de)})}else Q&&o(Q).forEach(function(de){document.querySelectorAll(de).forEach(function(_e){V.levelDom.push(_e)})})},V.getHorizontalBoolAndPlacementName=function(){var N=V.props.placement,Q=N==="left"||N==="right",J="translate".concat(Q?"X":"Y");return{isHorizontal:Q,placementName:J}},V.state={_self:Object(i.a)(V)},V}return Object(M.a)(U,[{key:"componentDidMount",value:function(){var V=this;if(!_){var N=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return N=!0,null}}))}catch(be){}this.passive=N?{passive:!1}:!1}var Q=this.props,J=Q.open,ne=Q.getContainer,ue=ne&&ne();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),J&&(ue&&ue.parentNode===document.body&&(h[this.drawerId]=J),this.openLevelTransition(),this.forceUpdate(function(){V.domFocus()}))}},{key:"componentDidUpdate",value:function(V){var N=this.props,Q=N.open,J=N.getContainer,ne=J&&J();Q!==V.open&&(Q&&this.domFocus(),ne&&ne.parentNode===document.body&&(h[this.drawerId]=!!Q),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var V=this.props,N=V.getOpenCount,Q=V.open,J=V.switchScrollingEffect,ne=typeof N=="function"&&N();delete h[this.drawerId],Q&&(this.setLevelTransform(!1),document.body.style.touchAction=""),ne||(document.body.style.overflow="",J(!0))}},{key:"render",value:function(){var V,N=this,Q=this.props,J=Q.className,ne=Q.children,ue=Q.style,be=Q.width,de=Q.height,_e=Q.defaultOpen,me=Q.open,Ee=Q.prefixCls,ge=Q.placement,Ae=Q.level,ae=Q.levelMove,ve=Q.ease,oe=Q.duration,ie=Q.getContainer,Te=Q.handler,Re=Q.onChange,Me=Q.afterVisibleChange,re=Q.showMask,j=Q.maskClosable,W=Q.maskStyle,he=Q.onClose,te=Q.onHandleClick,ce=Q.keyboard,Ie=Q.getOpenCount,ze=Q.switchScrollingEffect,_t=Object(se.a)(Q,["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"]),He=this.dom?me:!1,Ke=e()(Ee,(V={},Object(d.a)(V,"".concat(Ee,"-").concat(ge),!0),Object(d.a)(V,"".concat(Ee,"-open"),He),Object(d.a)(V,J||"",!!J),Object(d.a)(V,"no-mask",!re),V)),ht=this.getHorizontalBoolAndPlacementName(),St=ht.placementName,ct=ge==="left"||ge==="top"?"-100%":"100%",lt=He?"":"".concat(St,"(").concat(ct,")"),rt=Te&&m.cloneElement(Te,{onClick:function($e){Te.props.onClick&&Te.props.onClick(),te&&te($e)},ref:function($e){N.handlerDom=$e}});return m.createElement("div",Object.assign({},_t,{tabIndex:-1,className:Ke,style:ue,ref:function($e){N.dom=$e},onKeyDown:He&&ce?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),re&&m.createElement("div",{className:"".concat(Ee,"-mask"),onClick:j?he:void 0,style:W,ref:function($e){N.maskDom=$e}}),m.createElement("div",{className:"".concat(Ee,"-content-wrapper"),style:{transform:lt,msTransform:lt,width:x(be)?"".concat(be,"px"):be,height:x(de)?"".concat(de,"px"):de},ref:function($e){N.contentWrapper=$e}},m.createElement("div",{className:"".concat(Ee,"-content"),ref:function($e){N.contentDom=$e},onTouchStart:He&&re?this.removeStartHandler:void 0,onTouchMove:He&&re?this.removeMoveHandler:void 0},ne),rt))}}],[{key:"getDerivedStateFromProps",value:function(V,N){var Q=N.prevProps,J=N._self,ne={prevProps:V};if(Q!==void 0){var ue=V.placement,be=V.level;ue!==Q.placement&&(J.contentDom=null),be!==Q.level&&J.getLevelDom(V)}return ne}}]),U}(m.Component);u.defaultProps={switchScrollingEffect:function(){}};var S=u;function O(F){var X=T();return function(){var K=Object(C.a)(F),V;if(X){var N=Object(C.a)(this).constructor;V=Reflect.construct(K,arguments,N)}else V=K.apply(this,arguments);return Object(b.a)(this,V)}}function T(){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(F){return!1}}var D=function(F){Object(v.a)(U,F);var X=O(U);function U(K){var V;Object(G.a)(this,U),V=X.call(this,K),V.onHandleClick=function(Q){var J=V.props,ne=J.onHandleClick,ue=J.open;if(ne&&ne(Q),typeof ue=="undefined"){var be=V.state.open;V.setState({open:!be})}},V.onClose=function(Q){var J=V.props,ne=J.onClose,ue=J.open;ne&&ne(Q),typeof ue=="undefined"&&V.setState({open:!1})};var N=typeof K.open!="undefined"?K.open:!!K.defaultOpen;return V.state={open:N},"onMaskClick"in K&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),V}return Object(M.a)(U,[{key:"render",value:function(){var V=this,N=this.props,Q=N.defaultOpen,J=N.getContainer,ne=N.wrapperClassName,ue=N.forceRender,be=N.handler,de=Object(se.a)(N,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),_e=this.state.open;if(!J)return m.createElement("div",{className:ne,ref:function(ge){V.dom=ge}},m.createElement(S,Object.assign({},de,{open:_e,handler:be,getContainer:function(){return V.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var me=!!be||ue;return m.createElement(w.a,{visible:_e,forceRender:me,getContainer:J,wrapperClassName:ne},function(Ee){var ge=Ee.visible,Ae=Ee.afterClose,ae=Object(se.a)(Ee,["visible","afterClose"]);return m.createElement(S,Object.assign({},de,ae,{open:ge!==void 0?ge:_e,afterVisibleChange:Ae!==void 0?Ae:de.afterVisibleChange,handler:be,onClose:V.onClose,onHandleClick:V.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(V,N){var Q=N.prevProps,J={prevProps:V};return typeof Q!="undefined"&&V.open!==Q.open&&(J.open=V.open),J}}]),U}(m.Component);D.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:m.createElement("div",{className:"drawer-handle"},m.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var I=D,k=fe.a=I},fjLI:function(Ge,fe,R){"use strict";R.d(fe,"e",function(){return i}),R.d(fe,"a",function(){return n}),R.d(fe,"c",function(){return e}),R.d(fe,"d",function(){return s}),R.d(fe,"b",function(){return o});var se=R("8HAY"),G=R("Cg/j"),M=R("T8No"),v=R("nnTU"),b=R("MI8n"),C=function(){var f=function(l,r){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,A){c.__proto__=A}||function(c,A){for(var p in A)A.hasOwnProperty(p)&&(c[p]=A[p])},f(l,r)};return function(l,r){f(l,r);function c(){this.constructor=l}l.prototype=r===null?Object.create(r):(c.prototype=r.prototype,new c)}}(),w=function(f,l,r,c){var A=arguments.length,p=A<3?l:c===null?c=Object.getOwnPropertyDescriptor(l,r):c,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(f,l,r,c);else for(var _=f.length-1;_>=0;_--)(x=f[_])&&(p=(A<3?x(p):A>3?x(l,r,p):x(l,r))||p);return A>3&&p&&Object.defineProperty(l,r,p),p},m=function(f,l){return function(r,c){l(r,c,f)}},d=function(){for(var f=0,l=0,r=arguments.length;l<r;l++)f+=arguments[l].length;for(var c=Array(f),A=0,l=0;l<r;l++)for(var p=arguments[l],x=0,_=p.length;x<_;x++,A++)c[A]=p[x];return c};function i(f){return f.command!==void 0}var n=Object(G.c)("menuService"),e=new(function(){function f(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new b.a,this.onDidChangeMenu=this._onDidChangeMenu.event}return f.prototype.addCommand=function(l){var r=this;return this._commands.set(l.id,l),this._onDidChangeMenu.fire(0),{dispose:function(){r._commands.delete(l.id)&&r._onDidChangeMenu.fire(0)}}},f.prototype.getCommand=function(l){return this._commands.get(l)},f.prototype.getCommands=function(){var l=new Map;return this._commands.forEach(function(r,c){return l.set(c,r)}),l},f.prototype.appendMenuItem=function(l,r){var c=this,A=this._menuItems.get(l);return A?A.push(r):(A=[r],this._menuItems.set(l,A)),this._onDidChangeMenu.fire(l),{dispose:function(){var p=A.indexOf(r);p>=0&&(A.splice(p,1),c._onDidChangeMenu.fire(l))}}},f.prototype.getMenuItems=function(l){var r=(this._menuItems.get(l)||[]).slice(0);return l===0&&this._appendImplicitItems(r),r},f.prototype._appendImplicitItems=function(l){for(var r=new Set,c=l.filter(function(E){return i(E)}),A=0,p=c;A<p.length;A++){var x=p[A],_=x.command,B=x.alt;r.add(_.id),B&&r.add(B.id)}this._commands.forEach(function(E,g){r.has(g)||l.push({command:E})})},f}()),a=function(f){C(l,f);function l(r,c,A){var p=f.call(this,r,c)||this;return p._commandService=A,p}return l.prototype.run=function(){for(var r,c=[],A=0;A<arguments.length;A++)c[A]=arguments[A];return(r=this._commandService).executeCommand.apply(r,d([this.id],c))},l=w([m(2,v.b)],l),l}(se.a),s=function(f){C(l,f);function l(r){var c=this;return typeof r.title=="string"?c=f.call(this,"",r.title,"submenu")||this:c=f.call(this,"",r.title.value,"submenu")||this,c.item=r,c}return l}(se.a),o=function(f){C(l,f);function l(r,c,A,p,x){var _=this;return typeof r.title=="string"?_=f.call(this,r.id,r.title,x)||this:_=f.call(this,r.id,r.title.value,x)||this,_._cssClass=void 0,_._enabled=!r.precondition||p.contextMatchesRules(r.precondition),_._checked=Boolean(r.toggled&&p.contextMatchesRules(r.toggled)),_._options=A||{},_.item=r,_.alt=c?new l(c,void 0,_._options,p,x):void 0,_}return l.prototype.dispose=function(){this.alt&&this.alt.dispose(),f.prototype.dispose.call(this)},l.prototype.run=function(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];var A=[];return this._options.arg&&(A=d(A,[this._options.arg])),this._options.shouldForwardArgs&&(A=d(A,r)),f.prototype.run.apply(this,A)},l=w([m(3,M.c),m(4,v.b)],l),l}(a)},fyJ8:function(Ge,fe,R){"use strict";var se=R("rePB"),G=R("VTBJ"),M=R("Ff2n"),v=R("U8pU"),b=R("q1tI"),C=R.n(b),w=R("TSYQ"),m=R.n(w),d=R("c+Xe"),i=R("sR1s");function n(f){return f&&Object(v.a)(f)==="object"&&!Array.isArray(f)&&!b.isValidElement(f)}function e(f){return typeof f=="string"?!0:Object(d.c)(f)}function a(f,l){var r,c=f.prefixCls,A=f.className,p=f.record,x=f.index,_=f.dataIndex,B=f.render,E=f.children,g=f.component,h=g===void 0?"td":g,u=f.colSpan,S=f.rowSpan,O=f.fixLeft,T=f.fixRight,D=f.firstFixLeft,I=f.lastFixLeft,k=f.firstFixRight,F=f.lastFixRight,X=f.appendNode,U=f.additionalProps,K=U===void 0?{}:U,V=f.ellipsis,N=f.align,Q=f.rowType,J=f.isSticky,ne="".concat(c,"-cell"),ue,be;if(E)be=E;else{var de=Object(i.b)(p,_);if(be=de,B){var _e=B(de,p,x);n(_e)?(be=_e.children,ue=_e.props):be=_e}}Object(v.a)(be)==="object"&&!Array.isArray(be)&&!b.isValidElement(be)&&(be=null),V&&(I||k)&&(be=b.createElement("span",{className:"".concat(ne,"-content")},be));var me=ue||{},Ee=me.colSpan,ge=me.rowSpan,Ae=me.style,ae=me.className,ve=Object(M.a)(me,["colSpan","rowSpan","style","className"]),oe=Ee!==void 0?Ee:u,ie=ge!==void 0?ge:S;if(oe===0||ie===0)return null;var Te={},Re=typeof O=="number",Me=typeof T=="number";Re&&(Te.position="sticky",Te.left=O),Me&&(Te.position="sticky",Te.right=T);var re={};N&&(re.textAlign=N);var j,W=V===!0?{showTitle:!0}:V;W&&(W.showTitle||Q==="header")&&(typeof be=="string"||typeof be=="number"?j=be.toString():b.isValidElement(be)&&typeof be.props.children=="string"&&(j=be.props.children));var he=Object(G.a)(Object(G.a)(Object(G.a)({title:j},ve),K),{},{colSpan:oe&&oe!==1?oe:null,rowSpan:ie&&ie!==1?ie:null,className:m()(ne,A,(r={},Object(se.a)(r,"".concat(ne,"-fix-left"),Re),Object(se.a)(r,"".concat(ne,"-fix-left-first"),D),Object(se.a)(r,"".concat(ne,"-fix-left-last"),I),Object(se.a)(r,"".concat(ne,"-fix-right"),Me),Object(se.a)(r,"".concat(ne,"-fix-right-first"),k),Object(se.a)(r,"".concat(ne,"-fix-right-last"),F),Object(se.a)(r,"".concat(ne,"-ellipsis"),V),Object(se.a)(r,"".concat(ne,"-with-append"),X),Object(se.a)(r,"".concat(ne,"-fix-sticky"),(Re||Me)&&J),r),K.className,ae),style:Object(G.a)(Object(G.a)(Object(G.a)(Object(G.a)({},K.style),re),Te),Ae),ref:e(h)?l:null});return b.createElement(h,Object.assign({},he),X,be)}var s=b.forwardRef(a);s.displayName="Cell";var o=b.memo(s,function(f,l){return l.shouldCellUpdate?!l.shouldCellUpdate(l.record,f.record):!1});fe.a=o},gut8:function(Ge,fe){var R={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},se=9;fe.ContextCachedBy=R,fe.WILL_BE_RESTORED=se},"h/US":function(Ge,fe,R){"use strict";var se=R("DZo9"),G=R("8z0m"),M=R("+L6B"),v=R("2/Rp"),b=R("tJVT"),C=R("q1tI"),w=R.n(C),m=R("z7Xi"),d=R("jN4g"),i=R("m3rI"),n=R("w8Aa"),e=R.n(n),a=function(o){var f=o.value,l=o.onChange,r=o.getFileProgress,c=Object(C.useState)(!1),A=Object(b.a)(c,2),p=A[0],x=A[1],_=w.a.createElement(v.a,{loading:p,icon:w.a.createElement(m.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),B=function(){return w.a.createElement("div",{className:e.a.img},w.a.createElement("img",{src:i.a.API_SERVER+"/api/attachments/"+f,alt:"avatar",style:{width:288}}),w.a.createElement("div",null,w.a.createElement(d.a,{onClick:function(){return l("")},style:{fontSize:"16px",color:"red"}})))},E=function(h){if(r&&r(h),h.file.status==="uploading"){x(!0);return}if(h.file.status==="done"){var u,S;x(!1),l(h==null||((u=h.file)===null||u===void 0||((S=u.response)===null||S===void 0))?void 0:S.id)}};return w.a.createElement(w.a.Fragment,null,f?B():w.a.createElement("div",null,w.a.createElement(G.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(i.a.API_SERVER,"/api/attachments.json"),onChange:E,accept:"image/*"},_),w.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"),w.a.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))};fe.a=a},h78n:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return D});var se=R("q1tI"),G=R.n(se),M=R("TSYQ"),v=R.n(M),b={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},C=function(F){var X=F.map(function(){return Object(se.useRef)()}),U=Object(se.useRef)();return Object(se.useEffect)(function(){var K=Date.now(),V=!1;Object.keys(X).forEach(function(N){var Q=X[N].current;if(!Q)return;V=!0;var J=Q.style;J.transitionDuration=".3s, .3s, .3s, .06s",U.current&&K-U.current<100&&(J.transitionDuration="0s, 0s")}),V&&(U.current=Date.now())}),[X]};function w(){return w=Object.assign||function(k){for(var F=1;F<arguments.length;F++){var X=arguments[F];for(var U in X)Object.prototype.hasOwnProperty.call(X,U)&&(k[U]=X[U])}return k},w.apply(this,arguments)}function m(k,F){return a(k)||e(k,F)||i(k,F)||d()}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(k,F){if(!k)return;if(typeof k=="string")return n(k,F);var X=Object.prototype.toString.call(k).slice(8,-1);if(X==="Object"&&k.constructor&&(X=k.constructor.name),X==="Map"||X==="Set")return Array.from(k);if(X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return n(k,F)}function n(k,F){(F==null||F>k.length)&&(F=k.length);for(var X=0,U=new Array(F);X<F;X++)U[X]=k[X];return U}function e(k,F){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(k)))return;var X=[],U=!0,K=!1,V=void 0;try{for(var N=k[Symbol.iterator](),Q;!(U=(Q=N.next()).done)&&!(X.push(Q.value),F&&X.length===F);U=!0);}catch(J){K=!0,V=J}finally{try{!U&&N.return!=null&&N.return()}finally{if(K)throw V}}return X}function a(k){if(Array.isArray(k))return k}function s(k,F){if(k==null)return{};var X=o(k,F),U,K;if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(k);for(K=0;K<V.length;K++){if(U=V[K],F.indexOf(U)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(k,U))continue;X[U]=k[U]}}return X}function o(k,F){if(k==null)return{};var X={},U=Object.keys(k),K,V;for(V=0;V<U.length;V++){if(K=U[V],F.indexOf(K)>=0)continue;X[K]=k[K]}return X}var f=function(F){var X=F.className,U=F.percent,K=F.prefixCls,V=F.strokeColor,N=F.strokeLinecap,Q=F.strokeWidth,J=F.style,ne=F.trailColor,ue=F.trailWidth,be=F.transition,de=s(F,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete de.gapPosition;var _e=Array.isArray(U)?U:[U],me=Array.isArray(V)?V:[V],Ee=C(_e),ge=m(Ee,1),Ae=ge[0],ae=Q/2,ve=100-Q/2,oe="M ".concat(N==="round"?ae:0,",").concat(ae,`
L `).concat(N==="round"?ve:100,",").concat(ae),ie="0 0 100 ".concat(Q),Te=0;return G.a.createElement("svg",w({className:v()("".concat(K,"-line"),X),viewBox:ie,preserveAspectRatio:"none",style:J},de),G.a.createElement("path",{className:"".concat(K,"-line-trail"),d:oe,strokeLinecap:N,stroke:ne,strokeWidth:ue||Q,fillOpacity:"0"}),_e.map(function(Re,Me){var re={strokeDasharray:"".concat(Re,"px, 100px"),strokeDashoffset:"-".concat(Te,"px"),transition:be||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},j=me[Me]||me[me.length-1];return Te+=Re,G.a.createElement("path",{key:Me,className:"".concat(K,"-line-path"),d:oe,strokeLinecap:N,stroke:j,strokeWidth:Q,fillOpacity:"0",ref:Ae[Me],style:re})}))};f.defaultProps=b;var l=f;function r(){return r=Object.assign||function(k){for(var F=1;F<arguments.length;F++){var X=arguments[F];for(var U in X)Object.prototype.hasOwnProperty.call(X,U)&&(k[U]=X[U])}return k},r.apply(this,arguments)}function c(k,F){return B(k)||_(k,F)||p(k,F)||A()}function A(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(k,F){if(!k)return;if(typeof k=="string")return x(k,F);var X=Object.prototype.toString.call(k).slice(8,-1);if(X==="Object"&&k.constructor&&(X=k.constructor.name),X==="Map"||X==="Set")return Array.from(k);if(X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return x(k,F)}function x(k,F){(F==null||F>k.length)&&(F=k.length);for(var X=0,U=new Array(F);X<F;X++)U[X]=k[X];return U}function _(k,F){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(k)))return;var X=[],U=!0,K=!1,V=void 0;try{for(var N=k[Symbol.iterator](),Q;!(U=(Q=N.next()).done)&&!(X.push(Q.value),F&&X.length===F);U=!0);}catch(J){K=!0,V=J}finally{try{!U&&N.return!=null&&N.return()}finally{if(K)throw V}}return X}function B(k){if(Array.isArray(k))return k}function E(k,F){if(k==null)return{};var X=g(k,F),U,K;if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(k);for(K=0;K<V.length;K++){if(U=V[K],F.indexOf(U)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(k,U))continue;X[U]=k[U]}}return X}function g(k,F){if(k==null)return{};var X={},U=Object.keys(k),K,V;for(V=0;V<U.length;V++){if(K=U[V],F.indexOf(K)>=0)continue;X[K]=k[K]}return X}var h=0;function u(k){return+k.replace("%","")}function S(k){return Array.isArray(k)?k:[k]}function O(k,F,X,U){var K=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,V=arguments.length>5?arguments[5]:void 0,N=50-U/2,Q=0,J=-N,ne=0,ue=-2*N;switch(V){case"left":Q=-N,J=0,ne=2*N,ue=0;break;case"right":Q=N,J=0,ne=-2*N,ue=0;break;case"bottom":J=N,ue=2*N;break;default:}var be="M 50,50 m ".concat(Q,",").concat(J,`
a `).concat(N,",").concat(N," 0 1 1 ").concat(ne,",").concat(-ue,`
a `).concat(N,",").concat(N," 0 1 1 ").concat(-ne,",").concat(ue),de=Math.PI*2*N,_e={stroke:X,strokeDasharray:"".concat(F/100*(de-K),"px ").concat(de,"px"),strokeDashoffset:"-".concat(K/2+k/100*(de-K),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:be,pathStyle:_e}}var T=function(F){var X=F.prefixCls,U=F.strokeWidth,K=F.trailWidth,V=F.gapDegree,N=F.gapPosition,Q=F.trailColor,J=F.strokeLinecap,ne=F.style,ue=F.className,be=F.strokeColor,de=F.percent,_e=E(F,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),me=Object(se.useMemo)(function(){return h+=1,h},[]),Ee=O(0,100,Q,U,V,N),ge=Ee.pathString,Ae=Ee.pathStyle,ae=S(de),ve=S(be),oe=ve.find(function(re){return Object.prototype.toString.call(re)==="[object Object]"}),ie=C(ae),Te=c(ie,1),Re=Te[0],Me=function(){var j=0;return ae.map(function(W,he){var te=ve[he]||ve[ve.length-1],ce=Object.prototype.toString.call(te)==="[object Object]"?"url(#".concat(X,"-gradient-").concat(me,")"):"",Ie=O(j,W,te,U,V,N);return j+=W,G.a.createElement("path",{key:he,className:"".concat(X,"-circle-path"),d:Ie.pathString,stroke:ce,strokeLinecap:J,strokeWidth:U,opacity:W===0?0:1,fillOpacity:"0",style:Ie.pathStyle,ref:Re[he]})})};return G.a.createElement("svg",r({className:v()("".concat(X,"-circle"),ue),viewBox:"0 0 100 100",style:ne},_e),oe&&G.a.createElement("defs",null,G.a.createElement("linearGradient",{id:"".concat(X,"-gradient-").concat(me),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(oe).sort(function(re,j){return u(re)-u(j)}).map(function(re,j){return G.a.createElement("stop",{key:j,offset:re,stopColor:oe[re]})}))),G.a.createElement("path",{className:"".concat(X,"-circle-trail"),d:ge,stroke:Q,strokeLinecap:J,strokeWidth:K||U,fillOpacity:"0",style:Ae}),Me().reverse())};T.defaultProps=b;var D=T,I={Line:l,Circle:D}},h7HQ:function(Ge,fe,R){var se=R("y+Vt"),G=R("T6xi"),M=se.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(v,b){G.buildPath(v,b,!0)}});Ge.exports=M},hOwI:function(Ge,fe){var R=Math.log(2);function se(M,v,b,C,w,m){var d=C+"-"+w,i=M.length;if(m.hasOwnProperty(d))return m[d];if(v===1){var n=Math.round(Math.log((1<<i)-1&~w)/R);return M[b][n]}for(var e=C|1<<b,a=b+1;C&1<<a;)a++;for(var s=0,o=0,f=0;o<i;o++){var l=1<<o;l&w||(s+=(f%2?-1:1)*M[b][o]*se(M,v-1,a,e,w|l,m),f++)}return m[d]=s,s}function G(M,v){var b=[[M[0],M[1],1,0,0,0,-v[0]*M[0],-v[0]*M[1]],[0,0,0,M[0],M[1],1,-v[1]*M[0],-v[1]*M[1]],[M[2],M[3],1,0,0,0,-v[2]*M[2],-v[2]*M[3]],[0,0,0,M[2],M[3],1,-v[3]*M[2],-v[3]*M[3]],[M[4],M[5],1,0,0,0,-v[4]*M[4],-v[4]*M[5]],[0,0,0,M[4],M[5],1,-v[5]*M[4],-v[5]*M[5]],[M[6],M[7],1,0,0,0,-v[6]*M[6],-v[6]*M[7]],[0,0,0,M[6],M[7],1,-v[7]*M[6],-v[7]*M[7]]],C={},w=se(b,8,0,0,0,C);if(w===0)return;for(var m=[],d=0;d<8;d++)for(var i=0;i<8;i++)m[i]==null&&(m[i]=0),m[i]+=((d+i)%2?-1:1)*se(b,7,d===0?1:0,1<<d,1<<i,C)/w*v[d];return function(n,e,a){var s=e*m[6]+a*m[7]+1;n[0]=(e*m[0]+a*m[1]+m[2])/s,n[1]=(e*m[3]+a*m[4]+m[5])/s}}fe.buildTransformer=G},hW8S:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return v}),R.d(fe,"c",function(){return b}),R.d(fe,"b",function(){return C});var se=R("VTBJ"),G=R("Ff2n"),M=R("Kwbf"),v="RC_TABLE_INTERNAL_COL_DEFINE";function b(w){var m=w.expandable,d=Object(G.a)(w,["expandable"]);return"expandable"in w?Object(se.a)(Object(se.a)({},d),m):d}function C(w){return Object.keys(w).reduce(function(m,d){return(d.substr(0,5)==="data-"||d.substr(0,5)==="aria-")&&(m[d]=w[d]),m},{})}},hX1E:function(Ge,fe){var R=Math.PI*2;function se(G){return G%=R,G<0&&(G+=R),G}fe.normalizeRadian=se},ho57:function(Ge,fe){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAO9JREFUOBFj3H//P8ePj//a/jMyRDH8/y/uZcDCyAAEoZP//QfRxAHG54yMDIv+izHUsYANY/hfyECCdkxL/kv+/89QzviKkYGFgZEhGpdhEvwMDJNiwQ6Gm5G3+D/Di49wLgoDaGgc0///QIdSDfyXZKKaWVCDiDLwxUeQN4kLZBZ8LgSGCcP2i/8Zlh6HqIq2/A9MCPh0MAAjBQ94+YmBYf5hhAJkNkIUlUWUl1G14OeNGog/fIiRHQ1DYkIJvxomRgbG5/iVkCLL+BxoIMMiUrTgUwsqtVlkWZnqHv/+Bypj44BZXxKfBtxyiCoAAHADSWb7p5YAAAAAAElFTkSuQmCC"},hydK:function(Ge,fe){var R="http://www.w3.org/2000/svg";function se(G){return document.createElementNS(R,G)}fe.createElement=se},hyiK:function(Ge,fe){function R(se,G,M,v,b,C){if(C>G&&C>v||C<G&&C<v)return 0;if(v===G)return 0;var w=v<G?1:-1,m=(C-G)/(v-G);(m===1||m===0)&&(w=v<G?.5:-.5);var d=m*(M-se)+se;return d===b?Infinity:d>b?w:0}Ge.exports=R},iXp4:function(Ge,fe,R){var se=R("ItGF"),G=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function M(v){return se.browser.ie&&se.browser.version>=11?function(){var b=this.__clipPaths,C=this.style,w;if(b)for(var m=0;m<b.length;m++){var d=b[m],i=d&&d.shape,n=d&&d.type;if(i&&(n==="sector"&&i.startAngle===i.endAngle||n==="rect"&&(!i.width||!i.height))){for(var e=0;e<G.length;e++)G[e][2]=C[G[e][0]],C[G[e][0]]=G[e][1];w=!0;break}}if(v.apply(this,arguments),w)for(var e=0;e<G.length;e++)C[G[e][0]]=G[e][2]}:v}Ge.exports=M},j5sG:function(Ge,fe,R){"use strict";Object.defineProperty(fe,"__esModule",{value:!0}),fe.createSensor=void 0;var se=G(R("NohK"));function G(v){return v&&v.__esModule?v:{default:v}}var M=function(b){var C=void 0,w=[],m=(0,se.default)(function(){w.forEach(function(a){a(b)})}),d=function(){var s=new ResizeObserver(m);return s.observe(b),m(),s},i=function(s){C||(C=d()),w.indexOf(s)===-1&&w.push(s)},n=function(){C.disconnect(),w=[],C=void 0},e=function(s){var o=w.indexOf(s);o!==-1&&w.splice(o,1),w.length===0&&C&&n()};return{element:b,bind:i,destroy:n,unbind:e}};fe.createSensor=M},jTL6:function(Ge,fe,R){var se=R("y+Vt"),G=se.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(M,v){var b=v.cx,C=v.cy,w=Math.max(v.r,0),m=v.startAngle,d=v.endAngle,i=v.clockwise,n=Math.cos(m),e=Math.sin(m);M.moveTo(n*w+b,e*w+C),M.arc(b,C,w,m,d,!i)}});Ge.exports=G},jZGp:function(Ge,fe,R){"use strict";var se=R("ozfa"),G=R("MJZm"),M=R("14J3"),v=R("BMrR"),b=R("+L6B"),C=R("2/Rp"),w=R("jCWc"),m=R("kPKH"),d=R("5Dmo"),i=R("3S7+"),n=R("miYZ"),e=R("tsqr"),a=R("9og8"),s=R("2qtc"),o=R("kLXV"),f=R("oBTY"),l=R("tJVT"),r=R("PpiC"),c=R("OaEy"),A=R("2fM7"),p=R("WmNS"),x=R.n(p),_=R("q1tI"),B=R.n(_),E=R("Ty5D"),g=R("9kvl"),h=R("Fvcw"),u=R("Mgx3"),S=R("1vsH"),O=R("qdXH"),T=R("V0Rq"),D=R("HBuW"),I=R("Dols"),k=R.n(I),F=R("LvDl"),X=R.n(F),U=R("8Skl"),K=R("UESt"),V=R("NLgs"),N=R("m3rI"),Q=A.a.Option,J=function(ue){var be=ue.pathsDetail,de=ue.globalSetting,_e=ue.user,me=ue.loading,Ee=ue.visibleType,ge=ue.updateSort,Ae=ue.dispatch,ae=Object(r.a)(ue,["pathsDetail","globalSetting","user","loading","visibleType","updateSort","dispatch"]),ve=Object(_.useState)([]),oe=Object(l.a)(ve,2),ie=oe[0],Te=oe[1],Re=Object(_.useState)([]),Me=Object(l.a)(Re,2),re=Me[0],j=Me[1],W=Object(E.i)(),he=Object(_.useState)([]),te=Object(l.a)(he,2),ce=te[0],Ie=te[1],ze=Object(_.useState)({}),_t=Object(l.a)(ze,2),He=_t[0],Ke=_t[1];Object(_.useEffect)(function(){if(ae.data&&!Object(F.isEqual)(ae.data,ce)){re=[];var Mt=JSON.parse(JSON.stringify(ae.data));Ue(Mt,0),Ie(Object(f.a)(Mt)),Ee!="All"?Te(Object(f.a)(re)):Te([])}},[JSON.stringify(ae.data),Ee]),Object(_.useEffect)(function(){var Mt,Tt,Rt;if((Mt=be.detail)!==null&&Mt!==void 0&&Mt.has_start){var kt,Ut,Bt=(kt=be.detail)===null||kt===void 0||((Ut=kt.courses)===null||Ut===void 0)?void 0:Ut.findIndex(function(Vt){var Et;return parseInt((Et=Vt.course_status)===null||Et===void 0?void 0:Et.status)===1});Rt=Bt>-1?Bt:0}else{var At,bt,je,qe,Ot,Ct=(At=be.detail)===null||At===void 0||((bt=At.courses)===null||bt===void 0||((je=bt.map(function(Vt){var Et;return parseInt((Et=Vt.course_status)===null||Et===void 0?void 0:Et.status)}))===null||je===void 0))?void 0:je.lastIndexOf(2);Rt=Ct>-1?Ct:0,Ct=(qe=be.detail)===null||qe===void 0||((Ot=qe.courses)===null||Ot===void 0)?void 0:Ot.findIndex(function(Vt){var Et;return parseInt((Et=Vt.course_status)===null||Et===void 0?void 0:Et.status)===0}),Rt=Ct>-1?Ct:Rt}if((Tt=be.detail)!==null&&Tt!==void 0&&Tt.courses){var jt;Ke(((jt=be.detail)===null||jt===void 0?void 0:jt.courses[Rt])||{})}},[be.detail]);var ht=function(Tt,Rt){o.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(){}})},St=function(Tt){o.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 Rt=Object(a.a)(x.a.mark(function Ut(){return x.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:case"end":return At.stop()}},Ut)}));function kt(){return Rt.apply(this,arguments)}return kt}()})},ct=function(){var Mt=Object(a.a)(x.a.mark(function Tt(Rt,kt){var Ut;return x.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:if(Ae({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!kt){At.next=7;break}return At.next=4,Object(D.C)({id:Rt});case 4:At.t0=At.sent,At.next=10;break;case 7:return At.next=9,Object(D.D)({id:Rt});case 9:At.t0=At.sent;case 10:if(Ut=At.t0,Ae({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Ut!=null&&Ut.game_identifier||Ut!=null&&Ut.identifier)){At.next=15;break}return Object(S.O)(kt?"/tasks/".concat(Ut==null?void 0:Ut.identifier,"/jupyter"):"/tasks/".concat(Ut.game_identifier,"?subject_id=").concat(W.pathId||"")),At.abrupt("return");case 15:(Ut==null?void 0:Ut.status)===-3?Object(S.o)():(Ut==null?void 0:Ut.status)===2?lt(Ut==null?void 0:Ut.message):(Ut==null?void 0:Ut.status)===3&&rt(Ut==null?void 0:Ut.message);case 16:case"end":return At.stop()}},Tt)}));return function(Rt,kt){return Mt.apply(this,arguments)}}(),lt=function Mt(Tt){var Rt;Tt=(Rt=Tt)!==null&&Rt!==void 0&&Rt.includes(".json")?Tt:"".concat(Tt,".json"),o.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:B.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var kt=Object(a.a)(x.a.mark(function Bt(){var At,bt;return x.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,Object(T.S)({url:Tt});case 2:if(At=qe.sent,At){qe.next=5;break}return qe.abrupt("return");case 5:return e.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),qe.next=8,Object(D.D)({id:At.shixun_identifier});case 8:if(bt=qe.sent,!(bt!=null&&bt.game_identifier)){qe.next=12;break}return Object(S.O)("/tasks/".concat(bt.game_identifier)),qe.abrupt("return");case 12:(bt==null?void 0:bt.status)===2?Mt(bt==null?void 0:bt.message):(bt==null?void 0:bt.status)===3&&rt(bt==null?void 0:bt.message);case 13:case"end":return qe.stop()}},Bt)}));function Ut(){return kt.apply(this,arguments)}return Ut}()})},rt=function(Tt){o.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:B.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Tt,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Ze=function(Tt){console.log("onDragEnter:",Tt)},$e=function(){var Mt=Object(a.a)(x.a.mark(function Tt(Rt){var kt,Ut,Bt,At,bt,je,qe,Ot,Ct;return x.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(console.log("onDrop:",Rt),kt=Rt.node.props.eventKey,Ut=Rt.dragNode.props.eventKey,Bt=Rt.node.props.pos.split("-"),At=Rt.dropPosition-Number(Bt[Bt.length-1]),!(Bt.length>2&&!Rt.node.dragOverGapBottom&&!Rt.node.dragOverGapTop)){Vt.next=7;break}return Vt.abrupt("return",!1);case 7:if(!(Rt.node.dragOver&&Rt.dragNodesKeys.length>1)){Vt.next=9;break}return Vt.abrupt("return",!1);case 9:if(!(Bt.length>2&&Rt.dragNodesKeys.length>1)){Vt.next=11;break}return Vt.abrupt("return",!1);case 11:return bt=function Et(Lt,Ht,un){for(var gn=0;gn<Lt.length;gn++){if(Lt[gn].key===Ht)return un(Lt[gn],gn,Lt);Lt[gn].children&&Et(Lt[gn].children,Ht,un)}},je=Object(f.a)(ce),bt(je,Ut,function(Et,Lt,Ht){Ht.splice(Lt,1),qe=Et}),Rt.dropToGap?(Rt.node.props.children||[]).length>0&&Rt.node.props.expanded&&At===1?bt(je,kt,function(Et){Et.children=Et.children||[],Et.children.unshift(qe)}):(bt(je,kt,function(Et,Lt,Ht){Ot=Ht,Ct=Lt}),At===-1?Ot.splice(Ct,0,qe):Ot.splice(Ct+1,0,qe)):bt(je,kt,function(Et){Et.children=Et.children||[],Et.children.unshift(qe)}),Vt.next=17,ge({stage_id:ae.stage_id,list:je});case 17:Ue(je,0,0,!0),console.log("data:",je),Ie(Object(f.a)(je)),Te([].concat(Object(f.a)(ie),[Rt.node.key]));case 21:case"end":return Vt.stop()}},Tt)}));return function(Rt){return Mt.apply(this,arguments)}}(),Ue=function Mt(Tt,Rt,kt,Ut){Rt=Rt||0,Tt.map(function(Bt,At){try{var bt;return Bt.key2=Rt+1+"-"+(At+1),Bt.key3=ae.index+1+"-"+(At+1),Bt.title="",Ut||(Bt.key=Rt+1+"-"+(At+1)),Rt?Bt.index=kt+"-"+(At+1):Bt.index=Bt.key3,(bt=Bt.children)!==null&&bt!==void 0&&bt.length&&(re.push(Bt.key2),Mt(Bt.children,Bt.key2,Bt.index,Ut)),Bt}catch(je){}})},Ne=function(Tt){var Rt=Tt.learning_status,kt=Tt.name,Ut=(Rt==null?void 0:Rt[0])==="can"&&(Rt==null?void 0:Rt[1])==="try";return Ut?B.a.createElement("div",{className:k.a.learn},B.a.createElement("span",{className:k.a.name},kt),B.a.createElement("span",{className:k.a.sign},"\u514D\u8D39\u8BD5\u5B66")):kt},We=function(Tt){if(Ee!=="All")return;ie.includes(Tt)?Te(ie.filter(function(Rt){return Rt!=Tt})):Te(ie.concat(Tt))},it=function(){var Mt=Object(a.a)(x.a.mark(function Tt(Rt){return x.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(Object(V.e)(Ae,!0)){Ut.next=2;break}return Ut.abrupt("return");case 2:if(!(Rt!=null&&Rt.need_authorize)){Ut.next=5;break}return Object(V.a)(!1),Ut.abrupt("return");case 5:if(!(He!=null&&He.course_id)){Ut.next=8;break}return Ut.next=8,Object(u.L)({id:He==null?void 0:He.course_id});case 8:ct(Rt.identifier,Rt.is_jupyter||Rt.is_jupyter_lab);case 9:case"end":return Ut.stop()}},Tt)}));return function(Rt){return Mt.apply(this,arguments)}}(),yt=function(){var Mt=Object(a.a)(x.a.mark(function Tt(Rt){var kt,Ut,Bt,At,bt,je;return x.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:if(Object(V.e)(Ae)){Ot.next=2;break}return Ot.abrupt("return");case 2:if(!(!((kt=_e.userInfo)!==null&&kt!==void 0&&kt.admin)&&!((Ut=_e.userInfo)!==null&&Ut!==void 0&&Ut.business)&&!Rt.can_view&&Rt.item_type!=="Attachment")){Ot.next=4;break}return Ot.abrupt("return",o.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:B.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:Rt.link&&Object(O.n)({is_f:1,id:Rt.id,point:0,total:0}),bt=ae!=null&&ae.course_id?"course_id=".concat(ae==null?void 0:ae.course_id):"subject_id=".concat(W.pathId||ae.subject_id),je=Rt==null||((Bt=Rt.name)===null||Bt===void 0)?void 0:Bt.substr(Rt==null||((At=Rt.name)===null||At===void 0)?void 0:At.lastIndexOf(".")),je.toUpperCase()===".ZIP"?Object(S.t)(Rt.name,N.a.API_SERVER+Rt.url):Object(S.O)(Rt.link||"/video/".concat(Rt.id,"?").concat(bt));case 8:case"end":return Ot.stop()}},Tt)}));return function(Rt){return Mt.apply(this,arguments)}}(),vt=function(Tt){var Rt;return Tt.item_type==="Shixun"?Tt.is_all_choice?Rt=B.a.createElement(i.a,{title:"\u9009\u62E9\u9898"},B.a.createElement("i",{className:"iconfont icon-xuanzeti3 c-lake-blue font20"})):Rt=B.a.createElement(i.a,{title:"\u5B9E\u8BAD\u9898"},B.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"})):Tt.item_type==="VideoItem"?Rt=B.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"}):Tt.item_type==="StageCatalog"?Rt=B.a.createElement("i",{className:"iconfont icon-kongbai c-brilliant-blue font20"}):Rt=B.a.createElement("i",{className:"iconfont icon-kejian1 c-cyan-blue font20"}),Rt;Tt.item_type==="Shixun"||Tt.item_type==="StageCatalog"};return B.a.createElement(B.a.Fragment,null,B.a.createElement(G.a,{className:k.a.tree,disabled:ae.disabled,expandedKeys:Object(f.a)(ie),draggable:!0,onDragEnter:Ze,onDrop:$e,onExpand:We,blockNode:!0,titleRender:function(Tt){var Rt,kt,Ut,Bt,At=Tt;if(At.item_type!==Ee&&Ee!=="All")return null;var bt=Tt.index.slice(0,1)==="1",je=(Tt==null||((Rt=Tt.learning_status)===null||Rt===void 0)?void 0:Rt[0])==="can";return B.a.createElement(v.a,{align:"middle",className:"font14",onClick:function(){return We(At.key)}},B.a.createElement(m.a,{flex:"30px"},vt(Tt)),B.a.createElement(m.a,{flex:"1",className:"c-grey-333"},ae.cust_seq&&B.a.createElement("span",{className:"mr10"},Tt.index),Tt.item_type!=="Attachment"&&Ne(Tt),Tt.item_type==="Attachment"&&B.a.createElement("a",{target:"_blank",onClick:Object(a.a)(x.a.mark(function qe(){var Ot;return x.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:if(Object(V.e)(Ae)){jt.next=2;break}return jt.abrupt("return");case 2:if(!(He!=null&&He.course_id)){jt.next=6;break}return jt.next=5,Object(u.L)({id:He==null?void 0:He.course_id});case 5:Ot=jt.sent;case 6:jt.t0=Tt.item_type,jt.next=jt.t0==="Attachment"?9:jt.t0==="VideoItem"?11:jt.t0==="Shixun"?13:15;break;case 9:return yt(At),jt.abrupt("break",15);case 11:return yt(Tt),jt.abrupt("break",15);case 13:return it(Tt),jt.abrupt("break",15);case 15:case"end":return jt.stop()}},qe)}))},Tt.name),Tt.item_type==="Shixun"&&Tt.is_unity_3d&&B.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"),!!((kt=Tt.schools)!==null&&kt!==void 0&&kt.length)&&B.a.createElement(i.a,{title:"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},B.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 ml10 c-orange",style:{transform:"translateY(1px)",display:"inline-block"}})),Tt.item_type==="Shixun"&&!!(Tt!=null&&Tt.finished_challenges_count)&&B.a.createElement(i.a,{title:"\u5B8C\u6210\u5EA6:".concat(Math.round((Tt==null?void 0:Tt.finished_challenges_count)/(Tt==null?void 0:Tt.challenges_count)*100),"%")},B.a.createElement("i",{className:"iconfont icon-a-wanchengdu100 ml10 ".concat((Tt==null?void 0:Tt.finished_challenges_count)-(Tt==null?void 0:Tt.challenges_count)===0?"c-light-green":"c-grey-333"),style:{transform:"translateY(1px)",display:"inline-block"}}))),!ae.disabled&&B.a.createElement("aside",{style:{color:"#0152d9",fontSize:"14px",marginRight:"20px"}},"\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u9879\u76EE\u663E\u793A\u987A\u5E8F"),B.a.createElement(m.a,{className:"tr"},(At.item_type==="VideoItem"||(At==null?void 0:At.item_type)==="Attachment")&&!ae.disabled&&B.a.createElement(i.a,{title:"\u7F16\u8F91"},B.a.createElement("span",{onClick:function(){ae.editVidoItem(At)},style:{color:"#ccc",marginRight:"10px"}},B.a.createElement(h.a,null))),!ae.disabled&&B.a.createElement(B.a.Fragment,null,B.a.createElement(i.a,{title:"\u5220\u9664"},B.a.createElement("span",{onClick:function(){ae.deleteStages({id:At.stage_item_id,stage_id:ae.stage_id})},className:"iconfont icon-shanchu c-grey-c"}))),ae.showVideoPlay&&ae.disabled&&At.item_type==="VideoItem"&&je&&B.a.createElement("aside",null,B.a.createElement(C.a,{type:"primary",onClick:Object(a.a)(x.a.mark(function qe(){return x.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:yt(At);case 1:case"end":return Ct.stop()}},qe)}))},At.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((Ut=_e.userInfo)===null||Ut===void 0?void 0:Ut.admin)||At.allow_visit||At.to_be_built||At.shixun_status!=="\u6682\u672A\u516C\u5F00"&&At.shixun_status!=="\u5DF2\u5220\u9664")&&ae.disabled&&At.item_type==="Shixun"&&je&&B.a.createElement("aside",null,B.a.createElement(C.a,{className:"ml10",type:"primary",onClick:Object(a.a)(x.a.mark(function qe(){return x.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(Object(V.e)(Ae)){Ct.next=2;break}return Ct.abrupt("return");case 2:if(!(He!=null&&He.course_id)){Ct.next=5;break}return Ct.next=5,Object(u.L)({id:He==null?void 0:He.course_id});case 5:window.open("/shixuns/".concat(At.identifier,"/challenges"));case 6:case"end":return Ct.stop()}},qe)}))},"\u67E5\u770B\u8BE6\u60C5"),At.shixun_status!=="\u6682\u672A\u516C\u5F00"&&B.a.createElement(C.a,{className:"ml10",type:"primary",onClick:Object(a.a)(x.a.mark(function qe(){return x.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:it(At);case 1:case"end":return Ct.stop()}},qe)}))},At!=null&&At.need_authorize?"\u9700\u6388\u6743":Tt!=null&&Tt.finished_challenges_count?(Tt==null?void 0:Tt.finished_challenges_count)-(Tt==null?void 0:Tt.challenges_count)===0?"\u518D\u6B21\u5B9E\u6218":"\u7EE7\u7EED\u5B9E\u6218":"\u5F00\u59CB\u5B9E\u6218")),ae.disabled&&!At.allow_visit&&!At.to_be_built&&At.shixun_status==="\u6682\u672A\u516C\u5F00"&&B.a.createElement("span",{className:k.a.color204},"\u6682\u672A\u516C\u5F00"),!At.allow_visit&&!At.to_be_built&&At.shixun_status==="\u5DF2\u5220\u9664"&&B.a.createElement("span",{className:k.a.color204},"\u5DF2\u5220\u9664"),ae.disabled&&At.item_type==="Shixun"&&!!At.challenges_count&&B.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",At.challenges_count),Ee==="All"&&!!((Bt=Tt.children)!==null&&Bt!==void 0&&Bt.length)&&B.a.createElement("span",{className:"ml10"},ie.includes(Tt.key)?B.a.createElement(U.a,null):B.a.createElement(K.a,null))))},treeData:ce}))};fe.a=Object(g.a)(function(ne){var ue=ne.pathsDetail,be=ne.loading,de=ne.user,_e=ne.globalSetting;return{pathsDetail:ue,globalSetting:_e,user:de,loading:be.effects}})(J)},ji0R:function(Ge,fe,R){Ge.exports=R.p+"static/douyu.3e6df9ee.jpg"},juDX:function(Ge,fe,R){R("P47w");var se=R("aX58"),G=se.registerPainter,M=R("3CBa");G("svg",M)},k3GJ:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return $s});var se=R("rePB"),G=R("ODXe"),M=R("Ff2n"),v=R("VTBJ"),b=R("q1tI"),C=R("TSYQ"),w=R.n(C),m=R("Zm9Q"),d=R("6cGi"),i=R("KQm4"),n=R("xEkU"),e=R.n(n),a=R("t23M");function s(ut){var Ve=Object(b.useRef)(),Ye=Object(b.useRef)(!1);function Je(){for(var Be=arguments.length,Xe=new Array(Be),Oe=0;Oe<Be;Oe++)Xe[Oe]=arguments[Oe];Ye.current||(e.a.cancel(Ve.current),Ve.current=e()(function(){ut.apply(void 0,Xe)}))}return Object(b.useEffect)(function(){return function(){Ye.current=!0,e.a.cancel(Ve.current)}},[]),Je}function o(ut){var Ve=Object(b.useRef)([]),Ye=Object(b.useState)({}),Je=Object(G.a)(Ye,2),Be=Je[1],Xe=Object(b.useRef)(typeof ut=="function"?ut():ut),Oe=s(function(){var tt=Xe.current;Ve.current.forEach(function(st){tt=st(tt)}),Ve.current=[],Xe.current=tt,Be({})});function at(tt){Ve.current.push(tt),Oe()}return[Xe.current,at]}var f=R("4IlW");function l(ut,Ve){var Ye,Je=ut.prefixCls,Be=ut.id,Xe=ut.active,Oe=ut.rtl,at=ut.tab,tt=at.key,st=at.tab,ot=at.disabled,dt=at.closeIcon,It=ut.tabBarGutter,Gt=ut.tabPosition,Dt=ut.closable,tn=ut.renderWrapper,cn=ut.removeAriaLabel,Bn=ut.editable,Yt=ut.onClick,en=ut.onRemove,bn=ut.onFocus,Dn="".concat(Je,"-tab");b.useEffect(function(){return en},[]);var rn={};Gt==="top"||Gt==="bottom"?rn[Oe?"marginLeft":"marginRight"]=It:rn.marginBottom=It;var En=Bn&&Dt!==!1&&!ot;function Ln(fn){if(ot)return;Yt(fn)}function Vn(fn){fn.preventDefault(),fn.stopPropagation(),Bn.onEdit("remove",{key:tt,event:fn})}var an=b.createElement("div",{key:tt,ref:Ve,className:w()(Dn,(Ye={},Object(se.a)(Ye,"".concat(Dn,"-with-remove"),En),Object(se.a)(Ye,"".concat(Dn,"-active"),Xe),Object(se.a)(Ye,"".concat(Dn,"-disabled"),ot),Ye)),style:rn,onClick:Ln},b.createElement("div",{role:"tab","aria-selected":Xe,id:Be&&"".concat(Be,"-tab-").concat(tt),className:"".concat(Dn,"-btn"),"aria-controls":Be&&"".concat(Be,"-panel-").concat(tt),"aria-disabled":ot,tabIndex:ot?null:0,onClick:function(An){An.stopPropagation(),Ln(An)},onKeyDown:function(An){[f.a.SPACE,f.a.ENTER].includes(An.which)&&(An.preventDefault(),Ln(An))},onFocus:bn},st),En&&b.createElement("button",{type:"button","aria-label":cn||"remove",tabIndex:0,className:"".concat(Dn,"-remove"),onClick:function(An){An.stopPropagation(),Vn(An)}},dt||Bn.removeIcon||"\xD7"));return tn&&(an=tn(an)),an}var r=b.forwardRef(l),c={width:0,height:0,left:0,top:0};function A(ut,Ve,Ye){return Object(b.useMemo)(function(){for(var Je,Be=new Map,Xe=Ve.get((Je=ut[0])===null||Je===void 0?void 0:Je.key)||c,Oe=Xe.left+Xe.width,at=0;at<ut.length;at+=1){var tt=ut[at].key,st=Ve.get(tt);if(!st){var ot;st=Ve.get((ot=ut[at-1])===null||ot===void 0?void 0:ot.key)||c}var dt=Be.get(tt)||Object(v.a)({},st);dt.right=Oe-dt.left-dt.width,Be.set(tt,dt)}return Be},[ut.map(function(Je){return Je.key}).join("_"),Ve,Ye])}var p={width:0,height:0,left:0,top:0,right:0};function x(ut,Ve,Ye,Je,Be){var Xe=Be.tabs,Oe=Be.tabPosition,at=Be.rtl,tt,st,ot;["top","bottom"].includes(Oe)?(tt="width",st=at?"right":"left",ot=Math.abs(Ve.left)):(tt="height",st="top",ot=-Ve.top);var dt=Ve[tt],It=Ye[tt],Gt=Je[tt],Dt=dt;return It+Gt>dt&&(Dt=dt-Gt),Object(b.useMemo)(function(){if(!Xe.length)return[0,0];for(var tn=Xe.length,cn=tn,Bn=0;Bn<tn;Bn+=1){var Yt=ut.get(Xe[Bn].key)||p;if(Yt[st]+Yt[tt]>ot+Dt){cn=Bn-1;break}}for(var en=0,bn=tn-1;bn>=0;bn-=1){var Dn=ut.get(Xe[bn].key)||p;if(Dn[st]<ot){en=bn+1;break}}return[en,cn]},[ut,ot,Dt,Oe,Xe.map(function(tn){return tn.key}).join("_"),at])}var _=R("wx14"),B=R("1OyB"),E=R("vuIU"),g=R("JX7q"),h=R("Ji7U"),u=R("LK+K"),S=R("I8Z2"),O=R("bT9E"),T=R("2GS6"),D=R("Gytx"),I=R.n(D),k=R("U8pU"),F=/iPhone/i,X=/iPod/i,U=/iPad/i,K=/\bAndroid(?:.+)Mobile\b/i,V=/Android/i,N=/\bAndroid(?:.+)SD4930UR\b/i,Q=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,J=/Windows Phone/i,ne=/\bWindows(?:.+)ARM\b/i,ue=/BlackBerry/i,be=/BB10/i,de=/Opera Mini/i,_e=/\b(CriOS|Chrome)(?:.+)Mobile/i,me=/Mobile(?:.+)Firefox\b/i;function Ee(ut,Ve){return ut.test(Ve)}function ge(ut){var Ve=ut||(typeof navigator!="undefined"?navigator.userAgent:""),Ye=(Ve||"").split("[FBAN");if(typeof Ye[1]!="undefined"){var Je=Ye,Be=Object(G.a)(Je,1);Ve=Be[0]}if(Ye=Ve.split("Twitter"),typeof Ye[1]!="undefined"){var Xe=Ye,Oe=Object(G.a)(Xe,1);Ve=Oe[0]}var at={apple:{phone:Ee(F,Ve)&&!Ee(J,Ve),ipod:Ee(X,Ve),tablet:!Ee(F,Ve)&&Ee(U,Ve)&&!Ee(J,Ve),device:(Ee(F,Ve)||Ee(X,Ve)||Ee(U,Ve))&&!Ee(J,Ve)},amazon:{phone:Ee(N,Ve),tablet:!Ee(N,Ve)&&Ee(Q,Ve),device:Ee(N,Ve)||Ee(Q,Ve)},android:{phone:!Ee(J,Ve)&&Ee(N,Ve)||!Ee(J,Ve)&&Ee(K,Ve),tablet:!Ee(J,Ve)&&!Ee(N,Ve)&&!Ee(K,Ve)&&(Ee(Q,Ve)||Ee(V,Ve)),device:!Ee(J,Ve)&&(Ee(N,Ve)||Ee(Q,Ve)||Ee(K,Ve)||Ee(V,Ve))||Ee(/\bokhttp\b/i,Ve)},windows:{phone:Ee(J,Ve),tablet:Ee(ne,Ve),device:Ee(J,Ve)||Ee(ne,Ve)},other:{blackberry:Ee(ue,Ve),blackberry10:Ee(be,Ve),opera:Ee(de,Ve),firefox:Ee(me,Ve),chrome:Ee(_e,Ve),device:Ee(ue,Ve)||Ee(be,Ve)||Ee(de,Ve)||Ee(me,Ve)||Ee(_e,Ve)},any:null,phone:null,tablet:null};return at.any=at.apple.device||at.android.device||at.windows.device||at.other.device,at.phone=at.apple.phone||at.android.phone||at.windows.phone,at.tablet=at.apple.tablet||at.android.tablet||at.windows.tablet,at}var Ae=Object(v.a)(Object(v.a)({},ge()),{},{isMobile:ge}),ae=Ae;function ve(){}function oe(ut,Ve,Ye){var Je=Ve||"";return ut.key||"".concat(Je,"item_").concat(Ye)}function ie(ut){return"".concat(ut,"-menu-")}function Te(ut,Ve){var Ye=-1;b.Children.forEach(ut,function(Je){Ye+=1,Je&&Je.type&&Je.type.isMenuItemGroup?b.Children.forEach(Je.props.children,function(Be){Ye+=1,Ve(Be,Ye)}):Ve(Je,Ye)})}function Re(ut,Ve,Ye){if(!ut||Ye.find)return;b.Children.forEach(ut,function(Je){if(Je){var Be=Je.type;if(!Be||!(Be.isSubMenu||Be.isMenuItem||Be.isMenuItemGroup))return;Ve.indexOf(Je.key)!==-1?Ye.find=!0:Je.props.children&&Re(Je.props.children,Ve,Ye)}})}var Me=["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"],re=function(Ve){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Je=Ve&&typeof Ve.getBoundingClientRect=="function"&&Ve.getBoundingClientRect().width;if(Je){if(Ye){var Be=getComputedStyle(Ve),Xe=Be.marginLeft,Oe=Be.marginRight;Je+=+Xe.replace("px","")+ +Oe.replace("px","")}Je=+Je.toFixed(6)}return Je||0},j=function(Ve,Ye,Je){Ve&&Object(k.a)(Ve.style)==="object"&&(Ve.style[Ye]=Je)},W=function(){return ae.any},he=R("bdgK"),te=R("i8i4"),ce=R.n(te),Ie=R("wgJM"),ze=R("l4aY"),_t=R("m+aA"),He=R("c+Xe"),Ke=R("zT1h"),ht=R("QC+M");function St(ut,Ve,Ye){return Ye?ut[0]===Ve[0]:ut[0]===Ve[0]&&ut[1]===Ve[1]}function ct(ut,Ve,Ye){var Je=ut[Ve]||{};return Object(v.a)(Object(v.a)({},Je),Ye)}function lt(ut,Ve,Ye,Je){for(var Be=Ye.points,Xe=Object.keys(ut),Oe=0;Oe<Xe.length;Oe+=1){var at=Xe[Oe];if(St(ut[at].points,Be,Je))return"".concat(Ve,"-placement-").concat(at)}return""}var rt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ut=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ut)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ut==null?void 0:ut.substr(0,4)))},Ze=R("MNnm");function $e(ut,Ve){var Ye={};return Ye[ut.toLowerCase()]=Ve.toLowerCase(),Ye["Webkit".concat(ut)]="webkit".concat(Ve),Ye["Moz".concat(ut)]="moz".concat(Ve),Ye["ms".concat(ut)]="MS".concat(Ve),Ye["O".concat(ut)]="o".concat(Ve.toLowerCase()),Ye}function Ue(ut,Ve){var Ye={animationend:$e("Animation","AnimationEnd"),transitionend:$e("Transition","TransitionEnd")};return ut&&("AnimationEvent"in Ve||delete Ye.animationend.animation,"TransitionEvent"in Ve||delete Ye.transitionend.transition),Ye}var Ne=Ue(Object(Ze.a)(),typeof window!="undefined"?window:{}),We={};if(Object(Ze.a)()){var it=document.createElement("div");We=it.style}var yt={};function vt(ut){if(yt[ut])return yt[ut];var Ve=Ne[ut];if(Ve)for(var Ye=Object.keys(Ve),Je=Ye.length,Be=0;Be<Je;Be+=1){var Xe=Ye[Be];if(Object.prototype.hasOwnProperty.call(Ve,Xe)&&Xe in We)return yt[ut]=Ve[Xe],yt[ut]}return""}var Mt=vt("animationend"),Tt=vt("transitionend"),Rt=!!(Mt&&Tt),kt=Mt||"animationend",Ut=Tt||"transitionend";function Bt(ut,Ve){if(!ut)return null;if(Object(k.a)(ut)==="object"){var Ye=Ve.replace(/-\w/g,function(Je){return Je[1].toUpperCase()});return ut[Ye]}return"".concat(ut,"-").concat(Ve)}var At="none",bt="appear",je="enter",qe="leave",Ot="none",Ct="prepare",jt="start",Vt="active",Et="end";function Lt(ut){var Ve=Object(b.useRef)(!1),Ye=Object(b.useState)(ut),Je=Object(G.a)(Ye,2),Be=Je[0],Xe=Je[1];function Oe(at){Ve.current||Xe(at)}return Object(b.useEffect)(function(){return function(){Ve.current=!0}},[]),[Be,Oe]}var Ht=Object(Ze.a)()?b.useLayoutEffect:b.useEffect,un=Ht,gn=function(){var ut=b.useRef(null);function Ve(){Ie.a.cancel(ut.current)}function Ye(Je){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Ve();var Xe=Object(Ie.a)(function(){Be<=1?Je({isCanceled:function(){return Xe!==ut.current}}):Ye(Je,Be-1)});ut.current=Xe}return b.useEffect(function(){return function(){Ve()}},[]),[Ye,Ve]},Ar=[Ct,jt,Vt,Et],wr=!1,cr=!0;function Rn(ut){return ut===Vt||ut===Et}var Jr=function(ut,Ve){var Ye=b.useState(Ot),Je=Object(G.a)(Ye,2),Be=Je[0],Xe=Je[1],Oe=gn(),at=Object(G.a)(Oe,2),tt=at[0],st=at[1];function ot(){Xe(Ct)}return un(function(){if(Be!==Ot&&Be!==Et){var dt=Ar.indexOf(Be),It=Ar[dt+1],Gt=Ve(Be);Gt===wr?Xe(It):tt(function(Dt){function tn(){if(Dt.isCanceled())return;Xe(It)}Gt===!0?tn():Promise.resolve(Gt).then(tn)})}},[ut,Be]),b.useEffect(function(){return function(){st()}},[]),[ot,Be]},si=function(ut){var Ve=Object(b.useRef)(),Ye=Object(b.useRef)(ut);Ye.current=ut;var Je=b.useCallback(function(Oe){Ye.current(Oe)},[]);function Be(Oe){Oe&&(Oe.removeEventListener(Ut,Je),Oe.removeEventListener(kt,Je))}function Xe(Oe){Ve.current&&Ve.current!==Oe&&Be(Ve.current),Oe&&Oe!==Ve.current&&(Oe.addEventListener(Ut,Je),Oe.addEventListener(kt,Je),Ve.current=Oe)}return b.useEffect(function(){return function(){Be(Ve.current)}},[]),[Xe,Be]};function li(ut,Ve,Ye,Je){var Be=Je.motionEnter,Xe=Be===void 0?!0:Be,Oe=Je.motionAppear,at=Oe===void 0?!0:Oe,tt=Je.motionLeave,st=tt===void 0?!0:tt,ot=Je.motionDeadline,dt=Je.motionLeaveImmediately,It=Je.onAppearPrepare,Gt=Je.onEnterPrepare,Dt=Je.onLeavePrepare,tn=Je.onAppearStart,cn=Je.onEnterStart,Bn=Je.onLeaveStart,Yt=Je.onAppearActive,en=Je.onEnterActive,bn=Je.onLeaveActive,Dn=Je.onAppearEnd,rn=Je.onEnterEnd,En=Je.onLeaveEnd,Ln=Je.onVisibleChanged,Vn=Lt(),an=Object(G.a)(Vn,2),fn=an[0],An=an[1],wn=Lt(At),er=Object(G.a)(wn,2),dn=er[0],Fn=er[1],Ir=Lt(null),dr=Object(G.a)(Ir,2),Br=dr[0],sr=dr[1],Nr=Object(b.useRef)(!1),Qn=Object(b.useRef)(null),Fr=Object(b.useRef)(!1),ei=Object(b.useRef)(null);function Kr(){var Yn=Ye();return Yn||ei.current}var yr=Object(b.useRef)(!1);function On(Yn){var _n=Kr();if(Yn&&!Yn.deadline&&Yn.target!==_n)return;var mr;dn===bt&&yr.current?mr=Dn==null?void 0:Dn(_n,Yn):dn===je&&yr.current?mr=rn==null?void 0:rn(_n,Yn):dn===qe&&yr.current&&(mr=En==null?void 0:En(_n,Yn)),mr!==!1&&!Fr.current&&(Fn(At),sr(null))}var rr=si(On),Pr=Object(G.a)(rr,1),jn=Pr[0],$n=b.useMemo(function(){var Yn,_n,mr;switch(dn){case"appear":return Yn={},Object(se.a)(Yn,Ct,It),Object(se.a)(Yn,jt,tn),Object(se.a)(Yn,Vt,Yt),Yn;case"enter":return _n={},Object(se.a)(_n,Ct,Gt),Object(se.a)(_n,jt,cn),Object(se.a)(_n,Vt,en),_n;case"leave":return mr={},Object(se.a)(mr,Ct,Dt),Object(se.a)(mr,jt,Bn),Object(se.a)(mr,Vt,bn),mr;default:return{}}},[dn]),ir=Jr(dn,function(Yn){if(Yn===Ct){var _n=$n[Ct];return _n?_n(Kr()):wr}if(pn in $n){var mr;sr(((mr=$n[pn])===null||mr===void 0?void 0:mr.call($n,Kr(),null))||null)}return pn===Vt&&(jn(Kr()),ot>0&&(clearTimeout(Qn.current),Qn.current=setTimeout(function(){On({deadline:!0})},ot))),cr}),Jn=Object(G.a)(ir,2),Wn=Jn[0],pn=Jn[1],sn=Rn(pn);yr.current=sn,un(function(){An(Ve);var Yn=Nr.current;if(Nr.current=!0,!ut)return;var _n;!Yn&&Ve&&at&&(_n=bt),Yn&&Ve&&Xe&&(_n=je),(Yn&&!Ve&&st||!Yn&&dt&&!Ve&&st)&&(_n=qe),_n&&(Fn(_n),Wn())},[Ve]),Object(b.useEffect)(function(){(dn===bt&&!at||dn===je&&!Xe||dn===qe&&!st)&&Fn(At)},[at,Xe,st]),Object(b.useEffect)(function(){return function(){clearTimeout(Qn.current),Fr.current=!0}},[]),Object(b.useEffect)(function(){fn!==void 0&&dn===At&&(Ln==null||Ln(fn))},[fn,dn]);var zn=Br;return $n[Ct]&&pn===jt&&(zn=Object(v.a)({transition:"none"},zn)),[dn,pn,zn,fn!=null?fn:Ve]}var kr=function(ut){Object(h.a)(Ye,ut);var Ve=Object(u.a)(Ye);function Ye(){return Object(B.a)(this,Ye),Ve.apply(this,arguments)}return Object(E.a)(Ye,[{key:"render",value:function(){return this.props.children}}]),Ye}(b.Component),hi=kr;function Ui(ut){var Ve=ut;Object(k.a)(ut)==="object"&&(Ve=ut.transitionSupport);function Ye(Be){return!!(Be.motionName&&Ve)}var Je=b.forwardRef(function(Be,Xe){var Oe=Be.visible,at=Oe===void 0?!0:Oe,tt=Be.removeOnLeave,st=tt===void 0?!0:tt,ot=Be.forceRender,dt=Be.children,It=Be.motionName,Gt=Be.leavedClassName,Dt=Be.eventProps,tn=Ye(Be),cn=Object(b.useRef)(),Bn=Object(b.useRef)();function Yt(){try{return Object(_t.a)(cn.current||Bn.current)}catch(Fn){return null}}var en=li(tn,at,Yt,Be),bn=Object(G.a)(en,4),Dn=bn[0],rn=bn[1],En=bn[2],Ln=bn[3],Vn=b.useRef(Ln);Ln&&(Vn.current=!0);var an=Object(b.useRef)(Xe);an.current=Xe;var fn=b.useCallback(function(Fn){cn.current=Fn,Object(He.b)(an.current,Fn)},[]),An,wn=Object(v.a)(Object(v.a)({},Dt),{},{visible:at});if(!dt)An=null;else if(Dn===At||!Ye(Be))Ln?An=dt(Object(v.a)({},wn),fn):!st&&Vn.current?An=dt(Object(v.a)(Object(v.a)({},wn),{},{className:Gt}),fn):ot?An=dt(Object(v.a)(Object(v.a)({},wn),{},{style:{display:"none"}}),fn):An=null;else{var er,dn;rn===Ct?dn="prepare":Rn(rn)?dn="active":rn===jt&&(dn="start"),An=dt(Object(v.a)(Object(v.a)({},wn),{},{className:w()(Bt(It,Dn),(er={},Object(se.a)(er,Bt(It,"".concat(Dn,"-").concat(dn)),dn),Object(se.a)(er,It,typeof It=="string"),er)),style:En}),fn)}return b.createElement(hi,{ref:Bn},An)});return Je.displayName="CSSMotion",Je}var Zi=Ui(Rt),Le="add",Fe="keep",nt="remove",xt="removed";function Wt(ut){var Ve;return ut&&Object(k.a)(ut)==="object"&&"key"in ut?Ve=ut:Ve={key:ut},Object(v.a)(Object(v.a)({},Ve),{},{key:String(Ve.key)})}function Xt(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ut.map(Wt)}function pe(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ye=[],Je=0,Be=Ve.length,Xe=Xt(ut),Oe=Xt(Ve);Xe.forEach(function(st){for(var ot=!1,dt=Je;dt<Be;dt+=1){var It=Oe[dt];if(It.key===st.key){Je<dt&&(Ye=Ye.concat(Oe.slice(Je,dt).map(function(Gt){return Object(v.a)(Object(v.a)({},Gt),{},{status:Le})})),Je=dt),Ye.push(Object(v.a)(Object(v.a)({},It),{},{status:Fe})),Je+=1,ot=!0;break}}ot||Ye.push(Object(v.a)(Object(v.a)({},st),{},{status:nt}))}),Je<Be&&(Ye=Ye.concat(Oe.slice(Je).map(function(st){return Object(v.a)(Object(v.a)({},st),{},{status:Le})})));var at={};Ye.forEach(function(st){var ot=st.key;at[ot]=(at[ot]||0)+1});var tt=Object.keys(at).filter(function(st){return at[st]>1});return tt.forEach(function(st){Ye=Ye.filter(function(ot){var dt=ot.key,It=ot.status;return dt!==st||It!==nt}),Ye.forEach(function(ot){ot.key===st&&(ot.status=Fe)})}),Ye}var z=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Z(ut){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zi,Ye=function(Je){Object(h.a)(Xe,Je);var Be=Object(u.a)(Xe);function Xe(){var Oe;return Object(B.a)(this,Xe),Oe=Be.apply(this,arguments),Oe.state={keyEntities:[]},Oe.removeKey=function(at){Oe.setState(function(tt){var st=tt.keyEntities;return{keyEntities:st.map(function(ot){return ot.key!==at?ot:Object(v.a)(Object(v.a)({},ot),{},{status:xt})})}})},Oe}return Object(E.a)(Xe,[{key:"render",value:function(){var at=this,tt=this.state.keyEntities,st=this.props,ot=st.component,dt=st.children,It=st.onVisibleChanged,Gt=Object(M.a)(st,["component","children","onVisibleChanged"]),Dt=ot||b.Fragment,tn={};return z.forEach(function(cn){tn[cn]=Gt[cn],delete Gt[cn]}),delete Gt.keys,b.createElement(Dt,Gt,tt.map(function(cn){var Bn=cn.status,Yt=Object(M.a)(cn,["status"]),en=Bn===Le||Bn===Fe;return b.createElement(Ve,Object(_.a)({},tn,{key:Yt.key,visible:en,eventProps:Yt,onVisibleChanged:function(Dn){It==null||It(Dn,{key:Yt.key}),Dn||at.removeKey(Yt.key)}}),dt)}))}}],[{key:"getDerivedStateFromProps",value:function(at,tt){var st=at.keys,ot=tt.keyEntities,dt=Xt(st),It=pe(ot,dt);return{keyEntities:It.filter(function(Gt){var Dt=ot.find(function(tn){var cn=tn.key;return Gt.key===cn});return!(Dt&&Dt.status===xt&&Gt.status===nt)})}}}]),Xe}(b.Component);return Ye.defaultProps={component:"div"},Ye}var ye=Z(Rt),xe=Zi;function Ce(ut){var Ve=ut.prefixCls,Ye=ut.motion,Je=ut.animation,Be=ut.transitionName;return Ye||(Je?{motionName:"".concat(Ve,"-").concat(Je)}:Be?{motionName:Be}:null)}function ft(ut){var Ve=ut.prefixCls,Ye=ut.visible,Je=ut.zIndex,Be=ut.mask,Xe=ut.maskMotion,Oe=ut.maskAnimation,at=ut.maskTransitionName;if(!Be)return null;var tt={};return(Xe||at||Oe)&&(tt=Object(v.a)({motionAppear:!0},Ce({motion:Xe,prefixCls:Ve,transitionName:at,animation:Oe}))),b.createElement(xe,Object(_.a)({},tt,{visible:Ye,removeOnLeave:!0}),function(st){var ot=st.className;return b.createElement("div",{style:{zIndex:Je},className:w()("".concat(Ve,"-mask"),ot)})})}var zt=R("9mu1"),ln=R("o0o1"),mn=R.n(ln),Jt=R("HaE+"),Zn=["measure","align",null,"motion"],Un=function(ut,Ve){var Ye=Object(b.useState)(null),Je=Object(G.a)(Ye,2),Be=Je[0],Xe=Je[1],Oe=Object(b.useRef)(),at=Object(b.useRef)(!1);function tt(dt){at.current||Xe(dt)}function st(){Ie.a.cancel(Oe.current)}function ot(dt){st(),Oe.current=Object(Ie.a)(function(){tt(function(It){switch(Be){case"align":return"motion";case"motion":return"stable";default:}return It}),dt==null||dt()})}return Object(b.useEffect)(function(){tt("measure")},[ut]),Object(b.useEffect)(function(){switch(Be){case"measure":Ve();break;default:}Be&&(Oe.current=Object(Ie.a)(Object(Jt.a)(mn.a.mark(function dt(){var It,Gt;return mn.a.wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:It=Zn.indexOf(Be),Gt=Zn[It+1],Gt&&It!==-1&&tt(Gt);case 3:case"end":return tn.stop()}},dt)}))))},[Be]),Object(b.useEffect)(function(){return function(){at.current=!0,st()}},[]),[Be,ot]},nr=function(ut){var Ve=b.useState({width:0,height:0}),Ye=Object(G.a)(Ve,2),Je=Ye[0],Be=Ye[1];function Xe(at){Be({width:at.offsetWidth,height:at.offsetHeight})}var Oe=b.useMemo(function(){var at={};if(ut){var tt=Je.width,st=Je.height;ut.indexOf("height")!==-1&&st?at.height=st:ut.indexOf("minHeight")!==-1&&st&&(at.minHeight=st),ut.indexOf("width")!==-1&&tt?at.width=tt:ut.indexOf("minWidth")!==-1&&tt&&(at.minWidth=tt)}return at},[ut,Je]);return[Oe,Xe]},Sr=b.forwardRef(function(ut,Ve){var Ye=ut.visible,Je=ut.prefixCls,Be=ut.className,Xe=ut.style,Oe=ut.children,at=ut.zIndex,tt=ut.stretch,st=ut.destroyPopupOnHide,ot=ut.forceRender,dt=ut.align,It=ut.point,Gt=ut.getRootDomNode,Dt=ut.getClassNameFromAlign,tn=ut.onAlign,cn=ut.onMouseEnter,Bn=ut.onMouseLeave,Yt=ut.onMouseDown,en=ut.onTouchStart,bn=Object(b.useRef)(),Dn=Object(b.useRef)(),rn=Object(b.useState)(),En=Object(G.a)(rn,2),Ln=En[0],Vn=En[1],an=nr(tt),fn=Object(G.a)(an,2),An=fn[0],wn=fn[1];function er(){tt&&wn(Gt())}var dn=Un(Ye,er),Fn=Object(G.a)(dn,2),Ir=Fn[0],dr=Fn[1],Br=Object(b.useRef)();function sr(){return It||Gt}function Nr(){var rr;(rr=bn.current)===null||rr===void 0||rr.forceAlign()}function Qn(rr,Pr){var jn=Dt(Pr);Ln!==jn&&Vn(jn),Ir==="align"&&(Ln!==jn?Promise.resolve().then(function(){Nr()}):dr(function(){var $n;($n=Br.current)===null||$n===void 0||$n.call(Br)}),tn==null||tn(rr,Pr))}var Fr=Object(v.a)({},Ce(ut));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(rr){var Pr=Fr[rr];Fr[rr]=function(jn,$n){return dr(),Pr==null?void 0:Pr(jn,$n)}});function ei(){return new Promise(function(rr){Br.current=rr})}b.useEffect(function(){!Fr.motionName&&Ir==="motion"&&dr()},[Fr.motionName,Ir]),b.useImperativeHandle(Ve,function(){return{forceAlign:Nr,getElement:function(){return Dn.current}}});var Kr=Object(v.a)(Object(v.a)({},An),{},{zIndex:at,opacity:Ir==="motion"||Ir==="stable"||!Ye?void 0:0,pointerEvents:Ir==="stable"?void 0:"none"},Xe),yr=!0;(dt==null?void 0:dt.points)&&(Ir==="align"||Ir==="stable")&&(yr=!1);var On=Oe;return b.Children.count(Oe)>1&&(On=b.createElement("div",{className:"".concat(Je,"-content")},Oe)),b.createElement(xe,Object(_.a)({visible:Ye,ref:Dn,leavedClassName:"".concat(Je,"-hidden")},Fr,{onAppearPrepare:ei,onEnterPrepare:ei,removeOnLeave:st,forceRender:ot}),function(rr,Pr){var jn=rr.className,$n=rr.style,ir=w()(Je,Be,Ln,jn);return b.createElement(zt.a,{target:sr(),key:"popup",ref:bn,monitorWindowResize:!0,disabled:yr,align:dt,onAlign:Qn},b.createElement("div",{ref:Pr,className:ir,onMouseEnter:cn,onMouseLeave:Bn,onMouseDownCapture:Yt,onTouchStartCapture:en,style:Object(v.a)(Object(v.a)({},$n),Kr)},On))})});Sr.displayName="PopupInner";var ii=Sr,Dr=b.forwardRef(function(ut,Ve){var Ye=ut.prefixCls,Je=ut.visible,Be=ut.zIndex,Xe=ut.children,Oe=ut.mobile;Oe=Oe===void 0?{}:Oe;var at=Oe.popupClassName,tt=Oe.popupStyle,st=Oe.popupMotion,ot=st===void 0?{}:st,dt=Oe.popupRender,It=b.useRef();b.useImperativeHandle(Ve,function(){return{forceAlign:function(){},getElement:function(){return It.current}}});var Gt=Object(v.a)({zIndex:Be},tt),Dt=Xe;return b.Children.count(Xe)>1&&(Dt=b.createElement("div",{className:"".concat(Ye,"-content")},Xe)),dt&&(Dt=dt(Dt)),b.createElement(xe,Object(_.a)({visible:Je,ref:It,removeOnLeave:!0},ot),function(tn,cn){var Bn=tn.className,Yt=tn.style,en=w()(Ye,at,Bn);return b.createElement("div",{ref:cn,className:en,style:Object(v.a)(Object(v.a)({},Yt),Gt)},Dt)})});Dr.displayName="MobilePopupInner";var ti=Dr,Tr=["visible","mobile"],vi=b.forwardRef(function(ut,Ve){var Ye=ut.visible,Je=ut.mobile,Be=Object(M.a)(ut,Tr),Xe=Object(b.useState)(Ye),Oe=Object(G.a)(Xe,2),at=Oe[0],tt=Oe[1],st=Object(b.useState)(!1),ot=Object(G.a)(st,2),dt=ot[0],It=ot[1],Gt=Object(v.a)(Object(v.a)({},Be),{},{visible:at});Object(b.useEffect)(function(){tt(Ye),Ye&&Je&&It(rt())},[Ye,Je]);var Dt=dt?b.createElement(ti,Object(_.a)({},Gt,{mobile:Je,ref:Ve})):b.createElement(ii,Object(_.a)({},Gt,{ref:Ve}));return b.createElement("div",null,b.createElement(ft,Gt),Dt)});vi.displayName="Popup";var fi=vi,Oi=b.createContext(null),wi=Oi;function Fi(){}function Hi(){return""}function Ii(ut){return ut?ut.ownerDocument:window.document}var Vr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function zi(ut){var Ve=function(Ye){Object(h.a)(Be,Ye);var Je=Object(u.a)(Be);function Be(Xe){var Oe;Object(B.a)(this,Be),Oe=Je.call(this,Xe),Oe.popupRef=b.createRef(),Oe.triggerRef=b.createRef(),Oe.attachId=void 0,Oe.clickOutsideHandler=void 0,Oe.touchOutsideHandler=void 0,Oe.contextMenuOutsideHandler1=void 0,Oe.contextMenuOutsideHandler2=void 0,Oe.mouseDownTimeout=void 0,Oe.focusTime=void 0,Oe.preClickTime=void 0,Oe.preTouchTime=void 0,Oe.delayTimer=void 0,Oe.hasPopupMouseDown=void 0,Oe.onMouseEnter=function(tt){var st=Oe.props.mouseEnterDelay;Oe.fireEvents("onMouseEnter",tt),Oe.delaySetPopupVisible(!0,st,st?null:tt)},Oe.onMouseMove=function(tt){Oe.fireEvents("onMouseMove",tt),Oe.setPoint(tt)},Oe.onMouseLeave=function(tt){Oe.fireEvents("onMouseLeave",tt),Oe.delaySetPopupVisible(!1,Oe.props.mouseLeaveDelay)},Oe.onPopupMouseEnter=function(){Oe.clearDelayTimer()},Oe.onPopupMouseLeave=function(tt){var st;if(tt.relatedTarget&&!tt.relatedTarget.setTimeout&&Object(ze.a)((st=Oe.popupRef.current)===null||st===void 0?void 0:st.getElement(),tt.relatedTarget))return;Oe.delaySetPopupVisible(!1,Oe.props.mouseLeaveDelay)},Oe.onFocus=function(tt){Oe.fireEvents("onFocus",tt),Oe.clearDelayTimer(),Oe.isFocusToShow()&&(Oe.focusTime=Date.now(),Oe.delaySetPopupVisible(!0,Oe.props.focusDelay))},Oe.onMouseDown=function(tt){Oe.fireEvents("onMouseDown",tt),Oe.preClickTime=Date.now()},Oe.onTouchStart=function(tt){Oe.fireEvents("onTouchStart",tt),Oe.preTouchTime=Date.now()},Oe.onBlur=function(tt){Oe.fireEvents("onBlur",tt),Oe.clearDelayTimer(),Oe.isBlurToHide()&&Oe.delaySetPopupVisible(!1,Oe.props.blurDelay)},Oe.onContextMenu=function(tt){tt.preventDefault(),Oe.fireEvents("onContextMenu",tt),Oe.setPopupVisible(!0,tt)},Oe.onContextMenuClose=function(){Oe.isContextMenuToShow()&&Oe.close()},Oe.onClick=function(tt){if(Oe.fireEvents("onClick",tt),Oe.focusTime){var st;if(Oe.preClickTime&&Oe.preTouchTime?st=Math.min(Oe.preClickTime,Oe.preTouchTime):Oe.preClickTime?st=Oe.preClickTime:Oe.preTouchTime&&(st=Oe.preTouchTime),Math.abs(st-Oe.focusTime)<20)return;Oe.focusTime=0}Oe.preClickTime=0,Oe.preTouchTime=0,Oe.isClickToShow()&&(Oe.isClickToHide()||Oe.isBlurToHide())&&tt&&tt.preventDefault&&tt.preventDefault();var ot=!Oe.state.popupVisible;(Oe.isClickToHide()&&!ot||ot&&Oe.isClickToShow())&&Oe.setPopupVisible(!Oe.state.popupVisible,tt)},Oe.onPopupMouseDown=function(){if(Oe.hasPopupMouseDown=!0,clearTimeout(Oe.mouseDownTimeout),Oe.mouseDownTimeout=window.setTimeout(function(){Oe.hasPopupMouseDown=!1},0),Oe.context){var tt;(tt=Oe.context).onPopupMouseDown.apply(tt,arguments)}},Oe.onDocumentClick=function(tt){if(Oe.props.mask&&!Oe.props.maskClosable)return;var st=tt.target,ot=Oe.getRootDomNode(),dt=Oe.getPopupDomNode();(!Object(ze.a)(ot,st)||Oe.isContextMenuOnly())&&!Object(ze.a)(dt,st)&&!Oe.hasPopupMouseDown&&Oe.close()},Oe.getRootDomNode=function(){var tt=Oe.props.getTriggerDOMNode;if(tt)return tt(Oe.triggerRef.current);try{var st=Object(_t.a)(Oe.triggerRef.current);if(st)return st}catch(ot){}return ce.a.findDOMNode(Object(g.a)(Oe))},Oe.getPopupClassNameFromAlign=function(tt){var st=[],ot=Oe.props,dt=ot.popupPlacement,It=ot.builtinPlacements,Gt=ot.prefixCls,Dt=ot.alignPoint,tn=ot.getPopupClassNameFromAlign;return dt&&It&&st.push(lt(It,Gt,tt,Dt)),tn&&st.push(tn(tt)),st.join(" ")},Oe.getComponent=function(){var tt=Oe.props,st=tt.prefixCls,ot=tt.destroyPopupOnHide,dt=tt.popupClassName,It=tt.onPopupAlign,Gt=tt.popupMotion,Dt=tt.popupAnimation,tn=tt.popupTransitionName,cn=tt.popupStyle,Bn=tt.mask,Yt=tt.maskAnimation,en=tt.maskTransitionName,bn=tt.maskMotion,Dn=tt.zIndex,rn=tt.popup,En=tt.stretch,Ln=tt.alignPoint,Vn=tt.mobile,an=tt.forceRender,fn=Oe.state,An=fn.popupVisible,wn=fn.point,er=Oe.getPopupAlign(),dn={};return Oe.isMouseEnterToShow()&&(dn.onMouseEnter=Oe.onPopupMouseEnter),Oe.isMouseLeaveToHide()&&(dn.onMouseLeave=Oe.onPopupMouseLeave),dn.onMouseDown=Oe.onPopupMouseDown,dn.onTouchStart=Oe.onPopupMouseDown,b.createElement(fi,Object(_.a)({prefixCls:st,destroyPopupOnHide:ot,visible:An,point:Ln&&wn,className:dt,align:er,onAlign:It,animation:Dt,getClassNameFromAlign:Oe.getPopupClassNameFromAlign},dn,{stretch:En,getRootDomNode:Oe.getRootDomNode,style:cn,mask:Bn,zIndex:Dn,transitionName:tn,maskAnimation:Yt,maskTransitionName:en,maskMotion:bn,ref:Oe.popupRef,motion:Gt,mobile:Vn,forceRender:an}),typeof rn=="function"?rn():rn)},Oe.attachParent=function(tt){Ie.a.cancel(Oe.attachId);var st=Oe.props,ot=st.getPopupContainer,dt=st.getDocument,It=Oe.getRootDomNode(),Gt;ot?(It||ot.length===0)&&(Gt=ot(It)):Gt=dt(Oe.getRootDomNode()).body,Gt?Gt.appendChild(tt):Oe.attachId=Object(Ie.a)(function(){Oe.attachParent(tt)})},Oe.getContainer=function(){var tt=Oe.props.getDocument,st=tt(Oe.getRootDomNode()).createElement("div");return st.style.position="absolute",st.style.top="0",st.style.left="0",st.style.width="100%",Oe.attachParent(st),st},Oe.setPoint=function(tt){var st=Oe.props.alignPoint;if(!st||!tt)return;Oe.setState({point:{pageX:tt.pageX,pageY:tt.pageY}})},Oe.handlePortalUpdate=function(){Oe.state.prevPopupVisible!==Oe.state.popupVisible&&Oe.props.afterPopupVisibleChange(Oe.state.popupVisible)},Oe.triggerContextValue={onPopupMouseDown:Oe.onPopupMouseDown};var at;return"popupVisible"in Xe?at=!!Xe.popupVisible:at=!!Xe.defaultPopupVisible,Oe.state={prevPopupVisible:at,popupVisible:at},Vr.forEach(function(tt){Oe["fire".concat(tt)]=function(st){Oe.fireEvents(tt,st)}}),Oe}return Object(E.a)(Be,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Oe=this.props,at=this.state;if(at.popupVisible){var tt;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(tt=Oe.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ke.a)(tt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(tt=tt||Oe.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ke.a)(tt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(tt=tt||Oe.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ke.a)(tt,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ke.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ie.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Oe;return((Oe=this.popupRef.current)===null||Oe===void 0?void 0:Oe.getElement())||null}},{key:"getPopupAlign",value:function(){var Oe=this.props,at=Oe.popupPlacement,tt=Oe.popupAlign,st=Oe.builtinPlacements;return at&&st?ct(st,at,tt):tt}},{key:"setPopupVisible",value:function(Oe,at){var tt=this.props.alignPoint,st=this.state.popupVisible;this.clearDelayTimer(),st!==Oe&&("popupVisible"in this.props||this.setState({popupVisible:Oe,prevPopupVisible:st}),this.props.onPopupVisibleChange(Oe)),tt&&at&&Oe&&this.setPoint(at)}},{key:"delaySetPopupVisible",value:function(Oe,at,tt){var st=this,ot=at*1e3;if(this.clearDelayTimer(),ot){var dt=tt?{pageX:tt.pageX,pageY:tt.pageY}:null;this.delayTimer=window.setTimeout(function(){st.setPopupVisible(Oe,dt),st.clearDelayTimer()},ot)}else this.setPopupVisible(Oe,tt)}},{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(Oe){var at=this.props.children.props,tt=this.props;return at[Oe]&&tt[Oe]?this["fire".concat(Oe)]:at[Oe]||tt[Oe]}},{key:"isClickToShow",value:function(){var Oe=this.props,at=Oe.action,tt=Oe.showAction;return at.indexOf("click")!==-1||tt.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Oe=this.props.action;return Oe==="contextMenu"||Oe.length===1&&Oe[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Oe=this.props,at=Oe.action,tt=Oe.showAction;return at.indexOf("contextMenu")!==-1||tt.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Oe=this.props,at=Oe.action,tt=Oe.hideAction;return at.indexOf("click")!==-1||tt.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Oe=this.props,at=Oe.action,tt=Oe.showAction;return at.indexOf("hover")!==-1||tt.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Oe=this.props,at=Oe.action,tt=Oe.hideAction;return at.indexOf("hover")!==-1||tt.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Oe=this.props,at=Oe.action,tt=Oe.showAction;return at.indexOf("focus")!==-1||tt.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Oe=this.props,at=Oe.action,tt=Oe.hideAction;return at.indexOf("focus")!==-1||tt.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Oe;(Oe=this.popupRef.current)===null||Oe===void 0||Oe.forceAlign()}}},{key:"fireEvents",value:function(Oe,at){var tt=this.props.children.props[Oe];tt&&tt(at);var st=this.props[Oe];st&&st(at)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Oe=this.state.popupVisible,at=this.props,tt=at.children,st=at.forceRender,ot=at.alignPoint,dt=at.className,It=at.autoDestroy,Gt=b.Children.only(tt),Dt={key:"trigger"};this.isContextMenuToShow()?Dt.onContextMenu=this.onContextMenu:Dt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Dt.onClick=this.onClick,Dt.onMouseDown=this.onMouseDown,Dt.onTouchStart=this.onTouchStart):(Dt.onClick=this.createTwoChains("onClick"),Dt.onMouseDown=this.createTwoChains("onMouseDown"),Dt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Dt.onMouseEnter=this.onMouseEnter,ot&&(Dt.onMouseMove=this.onMouseMove)):Dt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Dt.onMouseLeave=this.onMouseLeave:Dt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Dt.onFocus=this.onFocus,Dt.onBlur=this.onBlur):(Dt.onFocus=this.createTwoChains("onFocus"),Dt.onBlur=this.createTwoChains("onBlur"));var tn=w()(Gt&&Gt.props&&Gt.props.className,dt);tn&&(Dt.className=tn);var cn=Object(v.a)({},Dt);Object(He.c)(Gt)&&(cn.ref=Object(He.a)(this.triggerRef,Gt.ref));var Bn=b.cloneElement(Gt,cn),Yt;return(Oe||this.popupRef.current||st)&&(Yt=b.createElement(ut,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Oe&&It&&(Yt=null),b.createElement(wi.Provider,{value:this.triggerContextValue},Bn,Yt)}}],[{key:"getDerivedStateFromProps",value:function(Oe,at){var tt=Oe.popupVisible,st={};return tt!==void 0&&at.popupVisible!==tt&&(st.popupVisible=tt,st.prevPopupVisible=at.popupVisible),st}}]),Be}(b.Component);return Ve.contextType=wi,Ve.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Hi,getDocument:Ii,onPopupVisibleChange:Fi,afterPopupVisibleChange:Fi,onPopupAlign:Fi,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Ve}var Gi=zi(ht.a),Di={adjustX:1,adjustY:1},sa={topLeft:{points:["bl","tl"],overflow:Di,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Di,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Di,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Di,offset:[4,0]}},da={topLeft:{points:["bl","tl"],overflow:Di,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Di,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Di,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Di,offset:[4,0]}},Mi=sa,Wr=0,hr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},zr=function(Ve,Ye,Je){var Be=ie(Ye),Xe=Ve.getState();Ve.setState({defaultActiveFirst:Object(v.a)(Object(v.a)({},Xe.defaultActiveFirst),{},Object(se.a)({},Be,Je))})},Zr=function(ut){Object(h.a)(Ye,ut);var Ve=Object(u.a)(Ye);function Ye(Je){var Be;Object(B.a)(this,Ye),Be=Ve.call(this,Je),Be.onDestroy=function(ot){Be.props.onDestroy(ot)},Be.onKeyDown=function(ot){var dt=ot.keyCode,It=Be.menuInstance,Gt=Be.props.store,Dt=Be.getVisible();if(dt===f.a.ENTER)return Be.onTitleClick(ot),zr(Gt,Be.props.eventKey,!0),!0;if(dt===f.a.RIGHT)return Dt?It.onKeyDown(ot):(Be.triggerOpenChange(!0),zr(Gt,Be.props.eventKey,!0)),!0;if(dt===f.a.LEFT){var tn;if(Dt)tn=It.onKeyDown(ot);else return;return tn||(Be.triggerOpenChange(!1),tn=!0),tn}return Dt&&(dt===f.a.UP||dt===f.a.DOWN)?It.onKeyDown(ot):void 0},Be.onOpenChange=function(ot){Be.props.onOpenChange(ot)},Be.onPopupVisibleChange=function(ot){Be.triggerOpenChange(ot,ot?"mouseenter":"mouseleave")},Be.onMouseEnter=function(ot){var dt=Be.props,It=dt.eventKey,Gt=dt.onMouseEnter,Dt=dt.store;zr(Dt,Be.props.eventKey,!1),Gt({key:It,domEvent:ot})},Be.onMouseLeave=function(ot){var dt=Be.props,It=dt.parentMenu,Gt=dt.eventKey,Dt=dt.onMouseLeave;It.subMenuInstance=Object(g.a)(Be),Dt({key:Gt,domEvent:ot})},Be.onTitleMouseEnter=function(ot){var dt=Be.props,It=dt.eventKey,Gt=dt.onItemHover,Dt=dt.onTitleMouseEnter;Gt({key:It,hover:!0}),Dt({key:It,domEvent:ot})},Be.onTitleMouseLeave=function(ot){var dt=Be.props,It=dt.parentMenu,Gt=dt.eventKey,Dt=dt.onItemHover,tn=dt.onTitleMouseLeave;It.subMenuInstance=Object(g.a)(Be),Dt({key:Gt,hover:!1}),tn({key:Gt,domEvent:ot})},Be.onTitleClick=function(ot){var dt=Object(g.a)(Be),It=dt.props;if(It.onTitleClick({key:It.eventKey,domEvent:ot}),It.triggerSubMenuAction==="hover")return;Be.triggerOpenChange(!Be.getVisible(),"click"),zr(It.store,Be.props.eventKey,!1)},Be.onSubMenuClick=function(ot){typeof Be.props.onClick=="function"&&Be.props.onClick(Be.addKeyPath(ot))},Be.onSelect=function(ot){Be.props.onSelect(ot)},Be.onDeselect=function(ot){Be.props.onDeselect(ot)},Be.getPrefixCls=function(){return"".concat(Be.props.rootPrefixCls,"-submenu")},Be.getActiveClassName=function(){return"".concat(Be.getPrefixCls(),"-active")},Be.getDisabledClassName=function(){return"".concat(Be.getPrefixCls(),"-disabled")},Be.getSelectedClassName=function(){return"".concat(Be.getPrefixCls(),"-selected")},Be.getOpenClassName=function(){return"".concat(Be.props.rootPrefixCls,"-submenu-open")},Be.getVisible=function(){return Be.state.isOpen},Be.getMode=function(){return Be.state.mode},Be.saveMenuInstance=function(ot){Be.menuInstance=ot},Be.addKeyPath=function(ot){return Object(v.a)(Object(v.a)({},ot),{},{keyPath:(ot.keyPath||[]).concat(Be.props.eventKey)})},Be.triggerOpenChange=function(ot,dt){var It=Be.props.eventKey,Gt=function(){Be.onOpenChange({key:It,item:Object(g.a)(Be),trigger:dt,open:ot})};dt==="mouseenter"?Be.mouseenterTimeout=setTimeout(function(){Gt()},0):Gt()},Be.isChildrenSelected=function(){var ot={find:!1};return Re(Be.props.children,Be.props.selectedKeys,ot),ot.find},Be.isInlineMode=function(){return Be.getMode()==="inline"},Be.adjustWidth=function(){if(!Be.subMenuTitle||!Be.menuInstance)return;var ot=te.findDOMNode(Be.menuInstance);if(ot.offsetWidth>=Be.subMenuTitle.offsetWidth)return;ot.style.minWidth="".concat(Be.subMenuTitle.offsetWidth,"px")},Be.saveSubMenuTitle=function(ot){Be.subMenuTitle=ot},Be.getBaseProps=function(){var ot=Object(g.a)(Be),dt=ot.props,It=Be.getMode();return{mode:It==="horizontal"?"vertical":It,visible:Be.getVisible(),level:dt.level+1,inlineIndent:dt.inlineIndent,focusable:!1,onClick:Be.onSubMenuClick,onSelect:Be.onSelect,onDeselect:Be.onDeselect,onDestroy:Be.onDestroy,selectedKeys:dt.selectedKeys,eventKey:"".concat(dt.eventKey,"-menu-"),openKeys:dt.openKeys,motion:dt.motion,onOpenChange:Be.onOpenChange,subMenuOpenDelay:dt.subMenuOpenDelay,parentMenu:Object(g.a)(Be),subMenuCloseDelay:dt.subMenuCloseDelay,forceSubMenuRender:dt.forceSubMenuRender,triggerSubMenuAction:dt.triggerSubMenuAction,builtinPlacements:dt.builtinPlacements,defaultActiveFirst:dt.store.getState().defaultActiveFirst[ie(dt.eventKey)],multiple:dt.multiple,prefixCls:dt.rootPrefixCls,id:Be.internalMenuId,manualRef:Be.saveMenuInstance,itemIcon:dt.itemIcon,expandIcon:dt.expandIcon,direction:dt.direction}},Be.getMotion=function(ot,dt){var It=Object(g.a)(Be),Gt=It.haveRendered,Dt=Be.props,tn=Dt.motion,cn=Dt.rootPrefixCls,Bn=Object(v.a)(Object(v.a)({},tn),{},{leavedClassName:"".concat(cn,"-hidden"),removeOnLeave:!1,motionAppear:Gt||!dt||ot!=="inline"});return Bn};var Xe=Je.store,Oe=Je.eventKey,at=Xe.getState(),tt=at.defaultActiveFirst;Be.isRootMenu=!1;var st=!1;return tt&&(st=tt[Oe]),zr(Xe,Oe,st),Be.state={mode:Je.mode,isOpen:Je.isOpen},Be}return Object(E.a)(Ye,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Be=this,Xe=this.props,Oe=Xe.mode,at=Xe.parentMenu,tt=Xe.manualRef,st=Xe.isOpen,ot=function(){Be.setState({mode:Oe,isOpen:st})},dt=st!==this.state.isOpen,It=Oe!==this.state.mode;if((It||dt)&&(Ie.a.cancel(this.updateStateRaf),It?this.updateStateRaf=Object(Ie.a)(ot):ot()),tt&&tt(this),Oe!=="horizontal"||!(at==null?void 0:at.isRootMenu)||!st)return;this.minWidthTimeout=setTimeout(function(){return Be.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Be=this.props,Xe=Be.onDestroy,Oe=Be.eventKey;Xe&&Xe(Oe),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Ie.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Be,Xe){var Oe=this.getBaseProps();return b.createElement(Jo,Object(_.a)({},Oe,{id:this.internalMenuId,className:Be,style:Xe}),this.props.children)}},{key:"renderChildren",value:function(){var Be=this,Xe=this.getBaseProps(),Oe=Xe.mode,at=Xe.visible,tt=Xe.forceSubMenuRender,st=Xe.direction,ot=this.getMotion(Oe,at);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||at||tt,!this.haveOpened)return b.createElement("div",null);var dt=w()("".concat(Xe.prefixCls,"-sub"),Object(se.a)({},"".concat(Xe.prefixCls,"-rtl"),st==="rtl"));return this.isInlineMode()?b.createElement(xe,Object(_.a)({visible:Xe.visible,forceRender:tt},ot),function(It){var Gt=It.className,Dt=It.style,tn=w()(dt,Gt);return Be.renderPopupMenu(tn,Dt)}):this.renderPopupMenu(dt)}},{key:"render",value:function(){var Be,Xe,Oe,at=Object(v.a)({},this.props),tt=this.getVisible(),st=this.getPrefixCls(),ot=this.isInlineMode(),dt=this.getMode(),It=w()(st,"".concat(st,"-").concat(dt),(Be={},Object(se.a)(Be,at.className,!!at.className),Object(se.a)(Be,this.getOpenClassName(),tt),Object(se.a)(Be,this.getActiveClassName(),at.active||tt&&!ot),Object(se.a)(Be,this.getDisabledClassName(),at.disabled),Object(se.a)(Be,this.getSelectedClassName(),this.isChildrenSelected()),Be));this.internalMenuId||(at.eventKey?this.internalMenuId="".concat(at.eventKey,"$Menu"):(Wr+=1,this.internalMenuId="$__$".concat(Wr,"$Menu")));var Gt={},Dt={},tn={};at.disabled||(Gt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Dt={onClick:this.onTitleClick},tn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var cn={},Bn=at.direction,Yt=Bn==="rtl";ot&&(Yt?cn.paddingRight=at.inlineIndent*at.level:cn.paddingLeft=at.inlineIndent*at.level);var en={};this.getVisible()&&(en={"aria-owns":this.internalMenuId});var bn=null;dt!=="horizontal"&&(bn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(bn=b.createElement(this.props.expandIcon,Object(v.a)({},this.props))));var Dn=b.createElement("div",Object(_.a)({ref:this.saveSubMenuTitle,style:cn,className:"".concat(st,"-title"),role:"button"},tn,Dt,{"aria-expanded":tt},en,{"aria-haspopup":"true",title:typeof at.title=="string"?at.title:void 0}),at.title,bn||b.createElement("i",{className:"".concat(st,"-arrow")})),rn=this.renderChildren(),En=((Xe=at.parentMenu)===null||Xe===void 0?void 0:Xe.isRootMenu)?at.parentMenu.props.getPopupContainer:function(sr){return sr.parentNode},Ln=hr[dt],Vn=at.popupOffset?{offset:at.popupOffset}:{},an=w()((Oe={},Object(se.a)(Oe,at.popupClassName,at.popupClassName&&!ot),Object(se.a)(Oe,"".concat(st,"-rtl"),Yt),Oe)),fn=at.disabled,An=at.triggerSubMenuAction,wn=at.subMenuOpenDelay,er=at.forceSubMenuRender,dn=at.subMenuCloseDelay,Fn=at.builtinPlacements;Me.forEach(function(sr){return delete at[sr]}),delete at.onClick;var Ir=Yt?Object(v.a)(Object(v.a)({},da),Fn):Object(v.a)(Object(v.a)({},sa),Fn);delete at.direction;var dr=this.getBaseProps(),Br=ot?null:this.getMotion(dr.mode,dr.visible);return b.createElement("li",Object(_.a)({},at,Gt,{className:It,role:"menuitem"}),b.createElement(Gi,{prefixCls:st,popupClassName:w()("".concat(st,"-popup"),an),getPopupContainer:En,builtinPlacements:Ir,popupPlacement:Ln,popupVisible:ot?!1:tt,popupAlign:Vn,popup:ot?null:rn,action:fn||ot?[]:[An],mouseEnterDelay:wn,mouseLeaveDelay:dn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:er,popupMotion:Br},Dn),ot?rn:null)}}]),Ye}(b.Component);Zr.defaultProps={onMouseEnter:ve,onMouseLeave:ve,onTitleMouseEnter:ve,onTitleMouseLeave:ve,onTitleClick:ve,manualRef:ve,mode:"vertical",title:""};var _i=Object(S.b)(function(ut,Ve){var Ye=ut.openKeys,Je=ut.activeKey,Be=ut.selectedKeys,Xe=Ve.eventKey,Oe=Ve.subMenuKey;return{isOpen:Ye.indexOf(Xe)>-1,active:Je[Oe]===Xe,selectedKeys:Be}})(Zr);_i.isSubMenu=!0;var Xr=_i,ja="menuitem-overflowed",Ni=.5,va=function(ut){Object(h.a)(Ye,ut);var Ve=Object(u.a)(Ye);function Ye(){var Je;return Object(B.a)(this,Ye),Je=Ve.apply(this,arguments),Je.resizeObserver=null,Je.mutationObserver=null,Je.originalTotalWidth=0,Je.overflowedItems=[],Je.menuItemSizes=[],Je.cancelFrameId=null,Je.state={lastVisibleIndex:void 0},Je.childRef=b.createRef(),Je.getMenuItemNodes=function(){var Be=Je.props.prefixCls,Xe=Je.childRef.current;return Xe?[].slice.call(Xe.children).filter(function(Oe){return Oe.className.split(" ").indexOf("".concat(Be,"-overflowed-submenu"))<0}):[]},Je.getOverflowedSubMenuItem=function(Be,Xe,Oe){var at=Je.props,tt=at.overflowedIndicator,st=at.level,ot=at.mode,dt=at.prefixCls,It=at.theme;if(st!==1||ot!=="horizontal")return null;var Gt=Je.props.children[0],Dt=Gt.props,tn=Dt.children,cn=Dt.title,Bn=Dt.style,Yt=Object(M.a)(Dt,["children","title","style"]),en=Object(v.a)({},Bn),bn="".concat(Be,"-overflowed-indicator"),Dn="".concat(Be,"-overflowed-indicator");Xe.length===0&&Oe!==!0?en=Object(v.a)(Object(v.a)({},en),{},{display:"none"}):Oe&&(en=Object(v.a)(Object(v.a)({},en),{},{visibility:"hidden",position:"absolute"}),bn="".concat(bn,"-placeholder"),Dn="".concat(Dn,"-placeholder"));var rn=It?"".concat(dt,"-").concat(It):"",En={};return Me.forEach(function(Ln){Yt[Ln]!==void 0&&(En[Ln]=Yt[Ln])}),b.createElement(Xr,Object(_.a)({title:tt,className:"".concat(dt,"-overflowed-submenu"),popupClassName:rn},En,{key:bn,eventKey:Dn,disabled:!1,style:en}),Xe)},Je.setChildrenWidthAndResize=function(){if(Je.props.mode!=="horizontal")return;var Be=Je.childRef.current;if(!Be)return;var Xe=Be.children;if(!Xe||Xe.length===0)return;var Oe=Be.children[Xe.length-1];j(Oe,"display","inline-block");var at=Je.getMenuItemNodes(),tt=at.filter(function(st){return st.className.split(" ").indexOf(ja)>=0});tt.forEach(function(st){j(st,"display","inline-block")}),Je.menuItemSizes=at.map(function(st){return re(st,!0)}),tt.forEach(function(st){j(st,"display","none")}),Je.overflowedIndicatorWidth=re(Be.children[Be.children.length-1],!0),Je.originalTotalWidth=Je.menuItemSizes.reduce(function(st,ot){return st+ot},0),Je.handleResize(),j(Oe,"display","none")},Je.handleResize=function(){if(Je.props.mode!=="horizontal")return;var Be=Je.childRef.current;if(!Be)return;var Xe=re(Be);Je.overflowedItems=[];var Oe=0,at;Je.originalTotalWidth>Xe+Ni&&(at=-1,Je.menuItemSizes.forEach(function(tt){Oe+=tt,Oe+Je.overflowedIndicatorWidth<=Xe&&(at+=1)})),Je.setState({lastVisibleIndex:at})},Je}return Object(E.a)(Ye,[{key:"componentDidMount",value:function(){var Be=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Xe=this.childRef.current;if(!Xe)return;this.resizeObserver=new he.default(function(Oe){Oe.forEach(function(){var at=Be.cancelFrameId;cancelAnimationFrame(at),Be.cancelFrameId=requestAnimationFrame(Be.setChildrenWidthAndResize)})}),[].slice.call(Xe.children).concat(Xe).forEach(function(Oe){Be.resizeObserver.observe(Oe)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Be.resizeObserver.disconnect(),[].slice.call(Xe.children).concat(Xe).forEach(function(Oe){Be.resizeObserver.observe(Oe)}),Be.setChildrenWidthAndResize()}),this.mutationObserver.observe(Xe,{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(Be){var Xe=this,Oe=this.state.lastVisibleIndex;return(Be||[]).reduce(function(at,tt,st){var ot=tt;if(Xe.props.mode==="horizontal"){var dt=Xe.getOverflowedSubMenuItem(tt.props.eventKey,[]);Oe!==void 0&&Xe.props.className.indexOf("".concat(Xe.props.prefixCls,"-root"))!==-1&&(st>Oe&&(ot=b.cloneElement(tt,{style:{display:"none"},eventKey:"".concat(tt.props.eventKey,"-hidden"),className:"".concat(ja)})),st===Oe+1&&(Xe.overflowedItems=Be.slice(Oe+1).map(function(Gt){return b.cloneElement(Gt,{key:Gt.props.eventKey,mode:"vertical-left"})}),dt=Xe.getOverflowedSubMenuItem(tt.props.eventKey,Xe.overflowedItems)));var It=[].concat(Object(i.a)(at),[dt,ot]);return st===Be.length-1&&It.push(Xe.getOverflowedSubMenuItem(tt.props.eventKey,[],!0)),It}return[].concat(Object(i.a)(at),[ot])},[])}},{key:"render",value:function(){var Be=this.props,Xe=Be.visible,Oe=Be.prefixCls,at=Be.overflowedIndicator,tt=Be.mode,st=Be.level,ot=Be.tag,dt=Be.children,It=Be.theme,Gt=Object(M.a)(Be,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Dt=ot;return b.createElement(Dt,Object(_.a)({ref:this.childRef},Gt),this.renderChildren(dt))}}]),Ye}(b.Component);va.defaultProps={tag:"div",className:""};var vo=va;function Wo(ut){return ut.length?ut.every(function(Ve){return!!Ve.props.disabled}):!0}function Ci(ut,Ve,Ye){var Je=ut.getState();ut.setState({activeKey:Object(v.a)(Object(v.a)({},Je.activeKey),{},Object(se.a)({},Ve,Ye))})}function Ro(ut){return ut.eventKey||"0-menu-"}function ha(ut,Ve){var Ye=Ve,Je=ut.children,Be=ut.eventKey;if(Ye){var Xe;if(Te(Je,function(Oe,at){Oe&&Oe.props&&!Oe.props.disabled&&Ye===oe(Oe,Be,at)&&(Xe=!0)}),Xe)return Ye}return Ye=null,ut.defaultActiveFirst&&Te(Je,function(Oe,at){!Ye&&Oe&&!Oe.props.disabled&&(Ye=oe(Oe,Be,at))}),Ye}function os(ut){if(!ut)return;var Ve=this.instanceArray.indexOf(ut);Ve!==-1?this.instanceArray[Ve]=ut:this.instanceArray.push(ut)}var eo=function(ut){Object(h.a)(Ye,ut);var Ve=Object(u.a)(Ye);function Ye(Je){var Be;return Object(B.a)(this,Ye),Be=Ve.call(this,Je),Be.onKeyDown=function(Xe,Oe){var at=Xe.keyCode,tt;if(Be.getFlatInstanceArray().forEach(function(ot){ot&&ot.props.active&&ot.onKeyDown&&(tt=ot.onKeyDown(Xe))}),tt)return 1;var st=null;return(at===f.a.UP||at===f.a.DOWN)&&(st=Be.step(at===f.a.UP?-1:1)),st?(Xe.preventDefault(),Ci(Be.props.store,Ro(Be.props),st.props.eventKey),typeof Oe=="function"&&Oe(st),1):void 0},Be.onItemHover=function(Xe){var Oe=Xe.key,at=Xe.hover;Ci(Be.props.store,Ro(Be.props),at?Oe:null)},Be.onDeselect=function(Xe){Be.props.onDeselect(Xe)},Be.onSelect=function(Xe){Be.props.onSelect(Xe)},Be.onClick=function(Xe){Be.props.onClick(Xe)},Be.onOpenChange=function(Xe){Be.props.onOpenChange(Xe)},Be.onDestroy=function(Xe){Be.props.onDestroy(Xe)},Be.getFlatInstanceArray=function(){return Be.instanceArray},Be.step=function(Xe){var Oe=Be.getFlatInstanceArray(),at=Be.props.store.getState().activeKey[Ro(Be.props)],tt=Oe.length;if(!tt)return null;Xe<0&&(Oe=Oe.concat().reverse());var st=-1;if(Oe.every(function(Gt,Dt){return Gt&&Gt.props.eventKey===at?(st=Dt,!1):!0}),!Be.props.defaultActiveFirst&&st!==-1&&Wo(Oe.slice(st,tt-1)))return;var ot=(st+1)%tt,dt=ot;do{var It=Oe[dt];if(!It||It.props.disabled)dt=(dt+1)%tt;else return It}while(dt!==ot);return null},Be.renderCommonMenuItem=function(Xe,Oe,at){var tt=Be.props.store.getState(),st=Object(g.a)(Be),ot=st.props,dt=oe(Xe,ot.eventKey,Oe),It=Xe.props;if(!It||typeof Xe.type=="string")return Xe;var Gt=dt===tt.activeKey,Dt=Object(v.a)(Object(v.a)({mode:It.mode||ot.mode,level:ot.level,inlineIndent:ot.inlineIndent,renderMenuItem:Be.renderMenuItem,rootPrefixCls:ot.prefixCls,index:Oe,parentMenu:ot.parentMenu,manualRef:It.disabled?void 0:Object(T.a)(Xe.ref,os.bind(Object(g.a)(Be))),eventKey:dt,active:!It.disabled&&Gt,multiple:ot.multiple,onClick:function(cn){(It.onClick||ve)(cn),Be.onClick(cn)},onItemHover:Be.onItemHover,motion:ot.motion,subMenuOpenDelay:ot.subMenuOpenDelay,subMenuCloseDelay:ot.subMenuCloseDelay,forceSubMenuRender:ot.forceSubMenuRender,onOpenChange:Be.onOpenChange,onDeselect:Be.onDeselect,onSelect:Be.onSelect,builtinPlacements:ot.builtinPlacements,itemIcon:It.itemIcon||Be.props.itemIcon,expandIcon:It.expandIcon||Be.props.expandIcon},at),{},{direction:ot.direction});return(ot.mode==="inline"||W())&&(Dt.triggerSubMenuAction="click"),b.cloneElement(Xe,Object(v.a)(Object(v.a)({},Dt),{},{key:dt||Oe}))},Be.renderMenuItem=function(Xe,Oe,at){if(!Xe)return null;var tt=Be.props.store.getState(),st={openKeys:tt.openKeys,selectedKeys:tt.selectedKeys,triggerSubMenuAction:Be.props.triggerSubMenuAction,subMenuKey:at};return Be.renderCommonMenuItem(Xe,Oe,st)},Je.store.setState({activeKey:Object(v.a)(Object(v.a)({},Je.store.getState().activeKey),{},Object(se.a)({},Je.eventKey,ha(Je,Je.activeKey)))}),Be.instanceArray=[],Be}return Object(E.a)(Ye,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Be){return this.props.visible||Be.visible||this.props.className!==Be.className||!I()(this.props.style,Be.style)}},{key:"componentDidUpdate",value:function(Be){var Xe=this.props,Oe="activeKey"in Xe?Xe.activeKey:Xe.store.getState().activeKey[Ro(Xe)],at=ha(Xe,Oe);if(at!==Oe)Ci(Xe.store,Ro(Xe),at);else if("activeKey"in Be){var tt=ha(Be,Be.activeKey);at!==tt&&Ci(Xe.store,Ro(Xe),at)}}},{key:"render",value:function(){var Be=this,Xe=Object(_.a)({},this.props);this.instanceArray=[];var Oe=w()(Xe.prefixCls,Xe.className,"".concat(Xe.prefixCls,"-").concat(Xe.mode)),at={className:Oe,role:Xe.role||"menu"};Xe.id&&(at.id=Xe.id),Xe.focusable&&(at.tabIndex=0,at.onKeyDown=this.onKeyDown);var tt=Xe.prefixCls,st=Xe.eventKey,ot=Xe.visible,dt=Xe.level,It=Xe.mode,Gt=Xe.overflowedIndicator,Dt=Xe.theme;return Me.forEach(function(tn){return delete Xe[tn]}),delete Xe.onClick,b.createElement(vo,Object(_.a)({},Xe,{prefixCls:tt,mode:It,tag:"ul",level:dt,theme:Dt,visible:ot,overflowedIndicator:Gt},at),Object(m.a)(Xe.children).map(function(tn,cn){return Be.renderMenuItem(tn,cn,st||"0-menu-")}))}}]),Ye}(b.Component);eo.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ve};var ss=Object(S.b)()(eo),Jo=ss,Ua=R("Kwbf");function Zo(ut,Ve,Ye){var Je=ut.prefixCls,Be=ut.motion,Xe=ut.defaultMotions,Oe=Xe===void 0?{}:Xe,at=ut.openAnimation,tt=ut.openTransitionName,st=Ve.switchingModeFromInline;if(Be)return Be;if(Object(k.a)(at)==="object"&&at)Object(Ua.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof at=="string")return{motionName:"".concat(Je,"-open-").concat(at)};if(tt)return{motionName:tt};var ot=Oe[Ye];return ot||(st?null:Oe.other)}var ps=function(ut){Object(h.a)(Ye,ut);var Ve=Object(u.a)(Ye);function Ye(Je){var Be;Object(B.a)(this,Ye),Be=Ve.call(this,Je),Be.onSelect=function(at){var tt=Object(g.a)(Be),st=tt.props;if(st.selectable){var ot=Be.store.getState(),dt=ot.selectedKeys,It=at.key;st.multiple?dt=dt.concat([It]):dt=[It],"selectedKeys"in st||Be.store.setState({selectedKeys:dt}),st.onSelect(Object(v.a)(Object(v.a)({},at),{},{selectedKeys:dt}))}},Be.onClick=function(at){var tt=Be.getRealMenuMode(),st=Object(g.a)(Be),ot=st.store,dt=st.props.onOpenChange;tt!=="inline"&&!("openKeys"in Be.props)&&(ot.setState({openKeys:[]}),dt([])),Be.props.onClick(at)},Be.onKeyDown=function(at,tt){Be.innerMenu.getWrappedInstance().onKeyDown(at,tt)},Be.onOpenChange=function(at){var tt=Object(g.a)(Be),st=tt.props,ot=Be.store.getState().openKeys.concat(),dt=!1,It=function(Dt){var tn=!1;if(Dt.open)tn=ot.indexOf(Dt.key)===-1,tn&&ot.push(Dt.key);else{var cn=ot.indexOf(Dt.key);tn=cn!==-1,tn&&ot.splice(cn,1)}dt=dt||tn};Array.isArray(at)?at.forEach(It):It(at),dt&&("openKeys"in Be.props||Be.store.setState({openKeys:ot}),st.onOpenChange(ot))},Be.onDeselect=function(at){var tt=Object(g.a)(Be),st=tt.props;if(st.selectable){var ot=Be.store.getState().selectedKeys.concat(),dt=at.key,It=ot.indexOf(dt);It!==-1&&ot.splice(It,1),"selectedKeys"in st||Be.store.setState({selectedKeys:ot}),st.onDeselect(Object(v.a)(Object(v.a)({},at),{},{selectedKeys:ot}))}},Be.onMouseEnter=function(at){Be.restoreModeVerticalFromInline();var tt=Be.props.onMouseEnter;tt&&tt(at)},Be.onTransitionEnd=function(at){var tt=at.propertyName==="width"&&at.target===at.currentTarget,st=at.target.className,ot=Object.prototype.toString.call(st)==="[object SVGAnimatedString]"?st.animVal:st,dt=at.propertyName==="font-size"&&ot.indexOf("anticon")>=0;(tt||dt)&&Be.restoreModeVerticalFromInline()},Be.setInnerMenu=function(at){Be.innerMenu=at},Be.isRootMenu=!0;var Xe=Je.defaultSelectedKeys,Oe=Je.defaultOpenKeys;return"selectedKeys"in Je&&(Xe=Je.selectedKeys||[]),"openKeys"in Je&&(Oe=Je.openKeys||[]),Be.store=Object(S.c)({selectedKeys:Xe,openKeys:Oe,activeKey:{"0-menu-":ha(Je,Je.activeKey)}}),Be.state={switchingModeFromInline:!1,prevProps:Je,inlineOpenKeys:[],store:Be.store},Be}return Object(E.a)(Ye,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Be){var Xe=this.props,Oe=Xe.siderCollapsed,at=Xe.inlineCollapsed,tt=Xe.onOpenChange;(!Be.inlineCollapsed&&at||!Be.siderCollapsed&&Oe)&&tt([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Be=this.props.collapsedWidth,Xe=this.store,Oe=this.prevOpenKeys,at=this.getInlineCollapsed()&&(Be===0||Be==="0"||Be==="0px");at?(this.prevOpenKeys=Xe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Oe&&(this.store.setState({openKeys:Oe}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Be=this.props.mode,Xe=this.state.switchingModeFromInline,Oe=this.getInlineCollapsed();return Xe&&Oe?"inline":Oe?"vertical":Be}},{key:"getInlineCollapsed",value:function(){var Be=this.props,Xe=Be.inlineCollapsed,Oe=Be.siderCollapsed;return Oe!==void 0?Oe:Xe}},{key:"restoreModeVerticalFromInline",value:function(){var Be=this.state.switchingModeFromInline;Be&&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 Be=Object(v.a)({},Object(O.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Xe=this.getRealMenuMode();return Be.className+=" ".concat(Be.prefixCls,"-root"),Be.direction==="rtl"&&(Be.className+=" ".concat(Be.prefixCls,"-rtl")),Be=Object(v.a)(Object(v.a)({},Be),{},{mode:Xe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Zo(this.props,this.state,Xe)}),delete Be.openAnimation,delete Be.openTransitionName,b.createElement(S.a,{store:this.store},b.createElement(Jo,Object(_.a)({},Be,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Be,Xe){var Oe=Xe.prevProps,at=Xe.store,tt=at.getState(),st={},ot={prevProps:Be};return Oe.mode==="inline"&&Be.mode!=="inline"&&(ot.switchingModeFromInline=!0),"openKeys"in Be?st.openKeys=Be.openKeys||[]:((Be.inlineCollapsed&&!Oe.inlineCollapsed||Be.siderCollapsed&&!Oe.siderCollapsed)&&(ot.switchingModeFromInline=!0,ot.inlineOpenKeys=tt.openKeys,st.openKeys=[]),(!Be.inlineCollapsed&&Oe.inlineCollapsed||!Be.siderCollapsed&&Oe.siderCollapsed)&&(st.openKeys=Xe.inlineOpenKeys,ot.inlineOpenKeys=[])),Object.keys(st).length&&at.setState(st),ot}}]),Ye}(b.Component);ps.defaultProps={selectable:!0,onClick:ve,onSelect:ve,onOpenChange:ve,onDeselect:ve,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:b.createElement("span",null,"\xB7\xB7\xB7")};var kn=ps,Cr=function(ut){Object(h.a)(Ye,ut);var Ve=Object(u.a)(Ye);function Ye(){var Je;return Object(B.a)(this,Ye),Je=Ve.apply(this,arguments),Je.onKeyDown=function(Be){var Xe=Be.keyCode;return Xe===f.a.ENTER?(Je.onClick(Be),!0):void 0},Je.onMouseLeave=function(Be){var Xe=Je.props,Oe=Xe.eventKey,at=Xe.onItemHover,tt=Xe.onMouseLeave;at({key:Oe,hover:!1}),tt({key:Oe,domEvent:Be})},Je.onMouseEnter=function(Be){var Xe=Je.props,Oe=Xe.eventKey,at=Xe.onItemHover,tt=Xe.onMouseEnter;at({key:Oe,hover:!0}),tt({key:Oe,domEvent:Be})},Je.onClick=function(Be){var Xe=Je.props,Oe=Xe.eventKey,at=Xe.multiple,tt=Xe.onClick,st=Xe.onSelect,ot=Xe.onDeselect,dt=Xe.isSelected,It={key:Oe,keyPath:[Oe],item:Object(g.a)(Je),domEvent:Be};tt(It),at?dt?ot(It):st(It):dt||st(It)},Je.saveNode=function(Be){Je.node=Be},Je}return Object(E.a)(Ye,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Be=this.props;Be.onDestroy&&Be.onDestroy(Be.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 Be,Xe=Object(v.a)({},this.props),Oe=w()(this.getPrefixCls(),Xe.className,(Be={},Object(se.a)(Be,this.getActiveClassName(),!Xe.disabled&&Xe.active),Object(se.a)(Be,this.getSelectedClassName(),Xe.isSelected),Object(se.a)(Be,this.getDisabledClassName(),Xe.disabled),Be)),at=Object(v.a)(Object(v.a)({},Xe.attribute),{},{title:typeof Xe.title=="string"?Xe.title:void 0,className:Oe,role:Xe.role||"menuitem","aria-disabled":Xe.disabled});Xe.role==="option"?at=Object(v.a)(Object(v.a)({},at),{},{role:"option","aria-selected":Xe.isSelected}):(Xe.role===null||Xe.role==="none")&&(at.role="none");var tt={onClick:Xe.disabled?null:this.onClick,onMouseLeave:Xe.disabled?null:this.onMouseLeave,onMouseEnter:Xe.disabled?null:this.onMouseEnter},st=Object(v.a)({},Xe.style);Xe.mode==="inline"&&(Xe.direction==="rtl"?st.paddingRight=Xe.inlineIndent*Xe.level:st.paddingLeft=Xe.inlineIndent*Xe.level),Me.forEach(function(dt){return delete Xe[dt]}),delete Xe.direction;var ot=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ot=b.createElement(this.props.itemIcon,this.props)),b.createElement("li",Object(_.a)({},Object(O.a)(Xe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),at,tt,{style:st,ref:this.saveNode}),Xe.children,ot)}}]),Ye}(b.Component);Cr.isMenuItem=!0,Cr.defaultProps={onSelect:ve,onMouseEnter:ve,onMouseLeave:ve,manualRef:ve};var gr=Object(S.b)(function(ut,Ve){var Ye=ut.activeKey,Je=ut.selectedKeys,Be=Ve.eventKey,Xe=Ve.subMenuKey;return{active:Ye[Xe]===Be,isSelected:Array.isArray(Je)?Je.indexOf(Be)!==-1:Je===Be}})(Cr),Gr=gr,Ai=function(ut){Object(h.a)(Ye,ut);var Ve=Object(u.a)(Ye);function Ye(){var Je;return Object(B.a)(this,Ye),Je=Ve.apply(this,arguments),Je.renderInnerMenuItem=function(Be){var Xe=Je.props,Oe=Xe.renderMenuItem,at=Xe.index;return Oe(Be,at,Je.props.subMenuKey)},Je}return Object(E.a)(Ye,[{key:"render",value:function(){var Be=Object(_.a)({},this.props),Xe=Be.className,Oe=Xe===void 0?"":Xe,at=Be.rootPrefixCls,tt="".concat(at,"-item-group-title"),st="".concat(at,"-item-group-list"),ot=Be.title,dt=Be.children;return Me.forEach(function(It){return delete Be[It]}),delete Be.direction,b.createElement("li",Object(_.a)({},Be,{onClick:function(Gt){return Gt.stopPropagation()},className:"".concat(Oe," ").concat(at,"-item-group")}),b.createElement("div",{className:tt,title:typeof ot=="string"?ot:void 0},ot),b.createElement("ul",{className:st},b.Children.map(dt,this.renderInnerMenuItem)))}}]),Ye}(b.Component);Ai.isMenuItemGroup=!0,Ai.defaultProps={disabled:!0};var Si=Ai,oi=function(Ve){var Ye=Ve.className,Je=Ve.rootPrefixCls,Be=Ve.style;return b.createElement("li",{className:"".concat(Ye," ").concat(Je,"-item-divider"),style:Be})};oi.defaultProps={disabled:!0,className:"",style:{}};var fa=oi,Ha=kn,ni=R("eDIo");function zo(ut,Ve){var Ye=ut.prefixCls,Je=ut.editable,Be=ut.locale,Xe=ut.style;return!Je||Je.showAdd===!1?null:b.createElement("button",{ref:Ve,type:"button",className:"".concat(Ye,"-nav-add"),style:Xe,"aria-label":(Be==null?void 0:Be.addAriaLabel)||"Add tab",onClick:function(at){Je.onEdit("add",{event:at})}},Je.addIcon||"+")}var pi=b.forwardRef(zo);function Sa(ut,Ve){var Ye=ut.prefixCls,Je=ut.id,Be=ut.tabs,Xe=ut.locale,Oe=ut.mobile,at=ut.moreIcon,tt=at===void 0?"More":at,st=ut.moreTransitionName,ot=ut.style,dt=ut.className,It=ut.editable,Gt=ut.tabBarGutter,Dt=ut.rtl,tn=ut.onTabClick,cn=Object(b.useState)(!1),Bn=Object(G.a)(cn,2),Yt=Bn[0],en=Bn[1],bn=Object(b.useState)(null),Dn=Object(G.a)(bn,2),rn=Dn[0],En=Dn[1],Ln="".concat(Je,"-more-popup"),Vn="".concat(Ye,"-dropdown"),an=rn!==null?"".concat(Ln,"-").concat(rn):null,fn=Xe==null?void 0:Xe.dropdownAriaLabel,An=b.createElement(Ha,{onClick:function(Br){var sr=Br.key,Nr=Br.domEvent;tn(sr,Nr),en(!1)},id:Ln,tabIndex:-1,role:"listbox","aria-activedescendant":an,selectedKeys:[rn],"aria-label":fn!==void 0?fn:"expanded dropdown"},Be.map(function(dr){return b.createElement(Gr,{key:dr.key,id:"".concat(Ln,"-").concat(dr.key),role:"option","aria-controls":Je&&"".concat(Je,"-panel-").concat(dr.key),disabled:dr.disabled},dr.tab)}));function wn(dr){for(var Br=Be.filter(function(ei){return!ei.disabled}),sr=Br.findIndex(function(ei){return ei.key===rn})||0,Nr=Br.length,Qn=0;Qn<Nr;Qn+=1){sr=(sr+dr+Nr)%Nr;var Fr=Br[sr];if(!Fr.disabled){En(Fr.key);return}}}function er(dr){var Br=dr.which;if(!Yt){[f.a.DOWN,f.a.SPACE,f.a.ENTER].includes(Br)&&(en(!0),dr.preventDefault());return}switch(Br){case f.a.UP:wn(-1),dr.preventDefault();break;case f.a.DOWN:wn(1),dr.preventDefault();break;case f.a.ESC:en(!1);break;case f.a.SPACE:case f.a.ENTER:rn!==null&&tn(rn,dr);break}}Object(b.useEffect)(function(){var dr=document.getElementById(an);dr&&dr.scrollIntoView&&dr.scrollIntoView(!1)},[rn]),Object(b.useEffect)(function(){Yt||En(null)},[Yt]);var dn=Object(se.a)({},Dt?"marginLeft":"marginRight",Gt);Be.length||(dn.visibility="hidden",dn.order=1);var Fn=w()(Object(se.a)({},"".concat(Vn,"-rtl"),Dt)),Ir=Oe?null:b.createElement(ni.a,{prefixCls:Vn,overlay:An,trigger:["hover"],visible:Yt,transitionName:st,onVisibleChange:en,overlayClassName:Fn,mouseEnterDelay:.1,mouseLeaveDelay:.1},b.createElement("button",{type:"button",className:"".concat(Ye,"-nav-more"),style:dn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Ln,id:"".concat(Je,"-more"),"aria-expanded":Yt,onKeyDown:er},tt));return b.createElement("div",{className:w()("".concat(Ye,"-nav-operations"),dt),style:ot,ref:Ve},Ir,b.createElement(pi,{prefixCls:Ye,locale:Xe,editable:It}))}var uo=b.forwardRef(Sa),Ga=Object(b.createContext)(null),gi=.1,ai=.01,ui=20,to=Math.pow(.995,ui);function ls(){var ut=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ut)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ut.substr(0,4)))}function us(ut,Ve){var Ye=Object(b.useState)(),Je=Object(G.a)(Ye,2),Be=Je[0],Xe=Je[1],Oe=Object(b.useState)(0),at=Object(G.a)(Oe,2),tt=at[0],st=at[1],ot=Object(b.useState)(0),dt=Object(G.a)(ot,2),It=dt[0],Gt=dt[1],Dt=Object(b.useState)(),tn=Object(G.a)(Dt,2),cn=tn[0],Bn=tn[1],Yt=Object(b.useRef)();function en(fn){var An=fn.touches[0],wn=An.screenX,er=An.screenY;Xe({x:wn,y:er}),window.clearInterval(Yt.current)}function bn(fn){if(!Be)return;fn.preventDefault();var An=fn.touches[0],wn=An.screenX,er=An.screenY;Xe({x:wn,y:er});var dn=wn-Be.x,Fn=er-Be.y;Ve(dn,Fn);var Ir=Date.now();st(Ir),Gt(Ir-tt),Bn({x:dn,y:Fn})}function Dn(){if(!Be)return;if(Xe(null),Bn(null),cn){var fn=cn.x/It,An=cn.y/It,wn=Math.abs(fn),er=Math.abs(An);if(Math.max(wn,er)<gi)return;var dn=fn,Fn=An;Yt.current=window.setInterval(function(){if(Math.abs(dn)<ai&&Math.abs(Fn)<ai){window.clearInterval(Yt.current);return}dn*=to,Fn*=to,Ve(dn*ui,Fn*ui)},ui)}}var rn=Object(b.useRef)(0),En=Object(b.useRef)(!1),Ln=Object(b.useRef)();function Vn(fn){var An=fn.deltaX,wn=fn.deltaY,er=0,dn=Math.abs(An),Fn=Math.abs(wn);dn===Fn?er=Ln.current==="x"?An:wn:dn>Fn?(er=An,Ln.current="x"):(er=wn,Ln.current="y");var Ir=Date.now();Ir-rn.current>100&&(En.current=!1),(Ve(-er,-er)||En.current)&&(fn.preventDefault(),En.current=!0),rn.current=Ir}var an=Object(b.useRef)(null);an.current={onTouchStart:en,onTouchMove:bn,onTouchEnd:Dn,onWheel:Vn},b.useEffect(function(){function fn(dn){an.current.onTouchStart(dn)}function An(dn){an.current.onTouchMove(dn)}function wn(dn){an.current.onTouchEnd(dn)}function er(dn){an.current.onWheel(dn)}return document.addEventListener("touchmove",An,{passive:!1}),document.addEventListener("touchend",wn,{passive:!1}),ut.current.addEventListener("touchstart",fn,{passive:!1}),ut.current.addEventListener("wheel",er),function(){document.removeEventListener("touchmove",An),document.removeEventListener("touchend",wn)}},[])}function Is(){var ut=Object(b.useRef)(new Map);function Ve(Je){return ut.current.has(Je)||ut.current.set(Je,b.createRef()),ut.current.get(Je)}function Ye(Je){ut.current.delete(Je)}return[Ve,Ye]}function ws(ut,Ve){var Ye=b.useRef(ut),Je=b.useState({}),Be=Object(G.a)(Je,2),Xe=Be[1];function Oe(at){var tt=typeof at=="function"?at(Ye.current):at;tt!==Ye.current&&Ve(tt,Ye.current),Ye.current=tt,Xe({})}return[Ye.current,Oe]}var js=function(Ve){var Ye=Ve.position,Je=Ve.prefixCls,Be=Ve.extra;if(!Be)return null;var Xe,Oe=Be;return Ye==="right"&&(Xe=Oe.right||!Oe.left&&Oe||null),Ye==="left"&&(Xe=Oe.left||null),Xe?b.createElement("div",{className:"".concat(Je,"-extra-content")},Xe):null};function Zs(ut,Ve){var Ye,Je=b.useContext(Ga),Be=Je.prefixCls,Xe=Je.tabs,Oe=ut.className,at=ut.style,tt=ut.id,st=ut.animated,ot=ut.activeKey,dt=ut.rtl,It=ut.extra,Gt=ut.editable,Dt=ut.locale,tn=ut.tabPosition,cn=ut.tabBarGutter,Bn=ut.children,Yt=ut.onTabClick,en=ut.onTabScroll,bn=Object(b.useRef)(),Dn=Object(b.useRef)(),rn=Object(b.useRef)(),En=Object(b.useRef)(),Ln=Is(),Vn=Object(G.a)(Ln,2),an=Vn[0],fn=Vn[1],An=tn==="top"||tn==="bottom",wn=ws(0,function(ci,Ur){An&&en&&en({direction:ci>Ur?"left":"right"})}),er=Object(G.a)(wn,2),dn=er[0],Fn=er[1],Ir=ws(0,function(ci,Ur){!An&&en&&en({direction:ci>Ur?"top":"bottom"})}),dr=Object(G.a)(Ir,2),Br=dr[0],sr=dr[1],Nr=Object(b.useState)(0),Qn=Object(G.a)(Nr,2),Fr=Qn[0],ei=Qn[1],Kr=Object(b.useState)(0),yr=Object(G.a)(Kr,2),On=yr[0],rr=yr[1],Pr=Object(b.useState)(0),jn=Object(G.a)(Pr,2),$n=jn[0],ir=jn[1],Jn=Object(b.useState)(0),Wn=Object(G.a)(Jn,2),pn=Wn[0],sn=Wn[1],zn=Object(b.useState)(null),Yn=Object(G.a)(zn,2),_n=Yn[0],mr=Yn[1],Qr=Object(b.useState)(null),Vi=Object(G.a)(Qr,2),Ri=Vi[0],ri=Vi[1],ga=Object(b.useState)(0),na=Object(G.a)(ga,2),Ki=na[0],no=na[1],ro=Object(b.useState)(0),Da=Object(G.a)(ro,2),Io=Da[0],Mo=Da[1],io=o(new Map),Ia=Object(G.a)(io,2),ka=Ia[0],So=Ia[1],co=A(Xe,ka,Fr),ho="".concat(Be,"-nav-operations-hidden"),Qa=0,Ma=0;An?dt?(Qa=0,Ma=Math.max(0,Fr-_n)):(Qa=Math.min(0,_n-Fr),Ma=0):(Qa=Math.min(0,Ri-On),Ma=0);function Va(ci){return ci<Qa?[Qa,!1]:ci>Ma?[Ma,!1]:[ci,!0]}var Ka=Object(b.useRef)(),go=Object(b.useState)(),Fa=Object(G.a)(go,2),yo=Fa[0],Xi=Fa[1];function ao(){Xi(Date.now())}function Lo(){window.clearTimeout(Ka.current)}us(bn,function(ci,Ur){var ua=!1;function xi(To,Za){To(function(Eo){var oo=Va(Eo+Za),hn=Object(G.a)(oo,2),Uo=hn[0],Ss=hn[1];return ua=Ss,Uo})}if(An){if(_n>=Fr)return ua;xi(Fn,ci)}else{if(Ri>=On)return ua;xi(sr,Ur)}return Lo(),ao(),ua}),Object(b.useEffect)(function(){return Lo(),yo&&(Ka.current=window.setTimeout(function(){Xi(0)},100)),Lo},[yo]);function Wa(){var ci=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ot,Ur=co.get(ci);if(!Ur)return;if(An){var ua=dn;dt?Ur.right<dn?ua=Ur.right:Ur.right+Ur.width>dn+_n&&(ua=Ur.right+Ur.width-_n):Ur.left<-dn?ua=-Ur.left:Ur.left+Ur.width>-dn+_n&&(ua=-(Ur.left+Ur.width-_n)),sr(0),Fn(Va(ua)[0])}else{var xi=Br;Ur.top<-Br?xi=-Ur.top:Ur.top+Ur.height>-Br+Ri&&(xi=-(Ur.top+Ur.height-Ri)),Fn(0),sr(Va(xi)[0])}}var Ta=x(co,{width:_n,height:Ri,left:dn,top:Br},{width:$n,height:pn},{width:Ki,height:Io},Object(v.a)(Object(v.a)({},ut),{},{tabs:Xe})),fo=Object(G.a)(Ta,2),$o=fo[0],qo=fo[1],Go=Xe.map(function(ci){var Ur=ci.key;return b.createElement(r,{id:tt,prefixCls:Be,key:Ur,rtl:dt,tab:ci,closable:ci.closable,editable:Gt,active:Ur===ot,tabPosition:tn,tabBarGutter:cn,renderWrapper:Bn,removeAriaLabel:Dt==null?void 0:Dt.removeAriaLabel,ref:an(Ur),onClick:function(xi){Yt(Ur,xi)},onRemove:function(){fn(Ur)},onFocus:function(){Wa(Ur),ao(),dt||(bn.current.scrollLeft=0),bn.current.scrollTop=0}})}),Xa=s(function(){var ci,Ur,ua,xi,To,Za,Eo,oo,hn,Uo=((ci=bn.current)===null||ci===void 0?void 0:ci.offsetWidth)||0,Ss=((Ur=bn.current)===null||Ur===void 0?void 0:Ur.offsetHeight)||0,gs=((ua=En.current)===null||ua===void 0?void 0:ua.offsetWidth)||0,$i=((xi=En.current)===null||xi===void 0?void 0:xi.offsetHeight)||0,Sn=((To=rn.current)===null||To===void 0?void 0:To.offsetWidth)||0,Ft=((Za=rn.current)===null||Za===void 0?void 0:Za.offsetHeight)||0;mr(Uo),ri(Ss),no(gs),Mo($i);var $t=(((Eo=Dn.current)===null||Eo===void 0?void 0:Eo.offsetWidth)||0)-gs,Cn=(((oo=Dn.current)===null||oo===void 0?void 0:oo.offsetHeight)||0)-$i;ei($t),rr(Cn);var Zt=(hn=rn.current)===null||hn===void 0?void 0:hn.className.includes(ho);ir($t-(Zt?0:Sn)),sn(Cn-(Zt?0:Ft)),So(function(){var qn=new Map;return Xe.forEach(function(or){var fr=or.key,$r=an(fr).current;$r&&qn.set(fr,{width:$r.offsetWidth,height:$r.offsetHeight,left:$r.offsetLeft,top:$r.offsetTop})}),qn})}),es=Xe.slice(0,$o),ya=Xe.slice(qo+1),ki=[].concat(Object(i.a)(es),Object(i.a)(ya)),la=Object(b.useState)(),ji=Object(G.a)(la,2),Ya=ji[0],bo=ji[1],La=co.get(ot),Vo=Object(b.useRef)();function Po(){e.a.cancel(Vo.current)}Object(b.useEffect)(function(){var ci={};return La&&(An?(dt?ci.right=La.right:ci.left=La.left,ci.width=La.width):(ci.top=La.top,ci.height=La.height)),Po(),Vo.current=e()(function(){bo(ci)}),Po},[La,An,dt]),Object(b.useEffect)(function(){Wa()},[ot,La,co,An]),Object(b.useEffect)(function(){Xa()},[dt,cn,ot,Xe.map(function(ci){return ci.key}).join("_")]);var Xo=!!ki.length,Ba="".concat(Be,"-nav-wrap"),In,Ja,vs,ts;return An?dt?(Ja=dn>0,In=dn+_n<Fr):(In=dn<0,Ja=-dn+_n<Fr):(vs=Br<0,ts=-Br+Ri<On),b.createElement("div",{ref:Ve,role:"tablist",className:w()("".concat(Be,"-nav"),Oe),style:at,onKeyDown:function(){ao()}},b.createElement(js,{position:"left",extra:It,prefixCls:Be}),b.createElement(a.a,{onResize:Xa},b.createElement("div",{className:w()(Ba,(Ye={},Object(se.a)(Ye,"".concat(Ba,"-ping-left"),In),Object(se.a)(Ye,"".concat(Ba,"-ping-right"),Ja),Object(se.a)(Ye,"".concat(Ba,"-ping-top"),vs),Object(se.a)(Ye,"".concat(Ba,"-ping-bottom"),ts),Ye)),ref:bn},b.createElement(a.a,{onResize:Xa},b.createElement("div",{ref:Dn,className:"".concat(Be,"-nav-list"),style:{transform:"translate(".concat(dn,"px, ").concat(Br,"px)"),transition:yo?"none":void 0}},Go,b.createElement(pi,{ref:En,prefixCls:Be,locale:Dt,editable:Gt,style:{visibility:Xo?"hidden":null}}),b.createElement("div",{className:w()("".concat(Be,"-ink-bar"),Object(se.a)({},"".concat(Be,"-ink-bar-animated"),st.inkBar)),style:Ya}))))),b.createElement(uo,Object.assign({},ut,{ref:rn,prefixCls:Be,tabs:ki,className:!Xo&&ho})),b.createElement(js,{position:"right",extra:It,prefixCls:Be}))}var cs=b.forwardRef(Zs);function dl(ut){var Ve=ut.id,Ye=ut.activeKey,Je=ut.animated,Be=ut.tabPosition,Xe=ut.rtl,Oe=ut.destroyInactiveTabPane,at=b.useContext(Ga),tt=at.prefixCls,st=at.tabs,ot=Je.tabPane,dt=st.findIndex(function(It){return It.key===Ye});return b.createElement("div",{className:w()("".concat(tt,"-content-holder"))},b.createElement("div",{className:w()("".concat(tt,"-content"),"".concat(tt,"-content-").concat(Be),Object(se.a)({},"".concat(tt,"-content-animated"),ot)),style:dt&&ot?Object(se.a)({},Xe?"marginRight":"marginLeft","-".concat(dt,"00%")):null},st.map(function(It){return b.cloneElement(It.node,{key:It.key,prefixCls:tt,tabKey:It.key,id:Ve,animated:ot,active:It.key===Ye,destroyInactiveTabPane:Oe})})))}function $s(ut){var Ve=ut.prefixCls,Ye=ut.forceRender,Je=ut.className,Be=ut.style,Xe=ut.id,Oe=ut.active,at=ut.animated,tt=ut.destroyInactiveTabPane,st=ut.tabKey,ot=ut.children,dt=b.useState(Ye),It=Object(G.a)(dt,2),Gt=It[0],Dt=It[1];b.useEffect(function(){Oe?Dt(!0):tt&&Dt(!1)},[Oe,tt]);var tn={};return Oe||(at?(tn.visibility="hidden",tn.height=0,tn.overflowY="hidden"):tn.display="none"),b.createElement("div",{id:Xe&&"".concat(Xe,"-panel-").concat(st),role:"tabpanel",tabIndex:Oe?0:-1,"aria-labelledby":Xe&&"".concat(Xe,"-tab-").concat(st),"aria-hidden":!Oe,style:Object(v.a)(Object(v.a)({},tn),Be),className:w()("".concat(Ve,"-tabpane"),Oe&&"".concat(Ve,"-tabpane-active"),Je)},(Oe||Gt||Ye)&&ot)}var wo=0;function ms(ut){return Object(m.a)(ut).map(function(Ve){if(b.isValidElement(Ve)){var Ye=Ve.key!==void 0?String(Ve.key):void 0;return Object(v.a)(Object(v.a)({key:Ye},Ve.props),{},{node:Ve})}return null}).filter(function(Ve){return Ve})}function Qi(ut,Ve){var Ye,Je=ut.id,Be=ut.prefixCls,Xe=Be===void 0?"rc-tabs":Be,Oe=ut.className,at=ut.children,tt=ut.direction,st=ut.activeKey,ot=ut.defaultActiveKey,dt=ut.editable,It=ut.animated,Gt=ut.tabPosition,Dt=Gt===void 0?"top":Gt,tn=ut.tabBarGutter,cn=ut.tabBarStyle,Bn=ut.tabBarExtraContent,Yt=ut.locale,en=ut.moreIcon,bn=ut.moreTransitionName,Dn=ut.destroyInactiveTabPane,rn=ut.renderTabBar,En=ut.onChange,Ln=ut.onTabClick,Vn=ut.onTabScroll,an=Object(M.a)(ut,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),fn=ms(at),An=tt==="rtl",wn;It===!1?wn={inkBar:!1,tabPane:!1}:wn=Object(v.a)({inkBar:!0,tabPane:!1},It!==!0?It:null);var er=Object(b.useState)(!1),dn=Object(G.a)(er,2),Fn=dn[0],Ir=dn[1];Object(b.useEffect)(function(){Ir(ls())},[]);var dr=Object(d.a)(function(){var pn;return(pn=fn[0])===null||pn===void 0?void 0:pn.key},{value:st,defaultValue:ot}),Br=Object(G.a)(dr,2),sr=Br[0],Nr=Br[1],Qn=Object(b.useState)(function(){return fn.findIndex(function(pn){return pn.key===sr})}),Fr=Object(G.a)(Qn,2),ei=Fr[0],Kr=Fr[1];Object(b.useEffect)(function(){var pn=fn.findIndex(function(zn){return zn.key===sr});if(pn===-1){var sn;pn=Math.max(0,Math.min(ei,fn.length-1)),Nr((sn=fn[pn])===null||sn===void 0?void 0:sn.key)}Kr(pn)},[fn.map(function(pn){return pn.key}).join("_"),sr,ei]);var yr=Object(d.a)(null,{value:Je}),On=Object(G.a)(yr,2),rr=On[0],Pr=On[1],jn=Dt;Fn&&!["left","right"].includes(Dt)&&(jn="top"),Object(b.useEffect)(function(){Je||(Pr("rc-tabs-".concat(wo)),wo+=1)},[]);function $n(pn,sn){Ln==null||Ln(pn,sn),Nr(pn),En==null||En(pn)}var ir={id:rr,activeKey:sr,animated:wn,tabPosition:jn,rtl:An,mobile:Fn},Jn,Wn=Object(v.a)(Object(v.a)({},ir),{},{editable:dt,locale:Yt,moreIcon:en,moreTransitionName:bn,tabBarGutter:tn,onTabClick:$n,onTabScroll:Vn,extra:Bn,style:cn,panes:at});return rn?Jn=rn(Wn,cs):Jn=b.createElement(cs,Object.assign({},Wn)),b.createElement(Ga.Provider,{value:{tabs:fn,prefixCls:Xe}},b.createElement("div",Object.assign({ref:Ve,id:Je,className:w()(Xe,"".concat(Xe,"-").concat(jn),(Ye={},Object(se.a)(Ye,"".concat(Xe,"-mobile"),Fn),Object(se.a)(Ye,"".concat(Xe,"-editable"),dt),Object(se.a)(Ye,"".concat(Xe,"-rtl"),An),Ye),Oe)},an),Jn,b.createElement(dl,Object.assign({destroyInactiveTabPane:Dn},ir,{animated:wn}))))}var _s=b.forwardRef(Qi);_s.TabPane=$s;var _o=_s,Hs=fe.b=_o},"kNP/":function(Ge,fe,R){Ge.exports={wrap:"wrap___2juS_",title:"title___2CLX2",radioWrap:"radioWrap___1FMiJ",checkboxWrap:"checkboxWrap___dPm6N",radio:"radio___2vIMS",colorFF0000:"colorFF0000___2Bu8m",pagination:"pagination___2bx8C",createMkdir:"createMkdir___2Zwt9",tree:"tree___2NdBt"}},kPWJ:function(Ge,fe,R){Ge.exports=R.p+"static/question.cb52bef9.gif"},kPYp:function(Ge,fe){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5vrgW8LTELJRwgA6bTSHcaBckot/yWGX2YZtv5untT0dJ7SpOZrAX9mLTeIYarAIIQEYLrZTQNNFj7A8rx6/GrPfDncPmdihV6Y9nkA+Ot4nrIXaDSGElH6KfjdzpBSpVo8ttVU8Xitx/7hw/imWmYD4wXy6Iqjje9mOGYj/uX0bjYf/5nsaLcpY9fqDZ5hNTD8/wi+27bB+CzfOVcqSiq0BMPdRpiBUNANmHNvJUQo1ZFls0lTuXupnOw+0UVamMsCz+eHCuf3MWgUjZ3w76kUZQeW8j4iOnadXmCUNQI3xvsIbl7bX70MEdKpFLutcCA7iz/BxvfrfY2hNVXDb2v2s/TkU/Lf8SZXrtOcUxFfF8P1AiNVSYj0aihUGOoCu/vFFVpQlpmQX1iflQg3dMxxR1OaVHERfUIglXFKf6AIIbs97SnUq7I5VFZ+skiOt+NwSVIHpAu4wwgLBAZ04COkUGoytusEAhUGi9APyO+UTlWVfyPkrt0/kQ8y4FcI3NQF6zYnNAEn1VKtQuAJg1XiPRPOnnggFmwmicTIC/VqOa5wCiFHhCFGGGAtnkNUBGyaLVGKJXvvZXe8ZlpS/UP5DAh8cgPt8nTP8n+LZbS7vIHpdH2WzcBzUZp1njCTgB/HacYNQxS1sluFF4zwmgpHEpa09ckOleGkuUaEa70sRmrU4fgGG7L8VBOPnCiThgvXaU5ByE14rAGcwxA/vsxha3lJPF4ylv0mpCVKYBCGRRFXm5BvedlMcEEVgyY0hSHP+nn8XZiin1G6gu+At3watfC0l8MWIk5GBs+0UhxZbvSyuM545Gvn+ijYsIU9GvKkyeLVIOBUypIwKSbSyt94RUxHCeIgMNRFEauaDBt6fSrdkS+p0MnisUpgGtIlH7rc9nOU8pQyPmF4XGBY5v2G6RRvtp7irkFjeGf7bYTuyXfYVpUhi8gtLOCaoJA1KKPaL2aVHXjM+XievFm6Ti+JlE0GrupIDMqRps+4z6vh+f3DqHcF8MyZVSbdhl9lKCm8gBVBPn+pNq43qHBSlTujgNeDkJUo3+3Iw9BYF3F3i7K5eonUd9hLqhm2lz/IG8OaYADflgjPndMBGHkcqD3B4mMn+Gc2iaszbSOpZtDbFBdN4uFgINOJMAqOjGxLW77bJ/BHJDU7kcfXjOEeEa7s9NzdM65WeNK0sC5dQGjSrPDgB+1zVNiRqmbh7wO2dQWnm2tv0+C8Zq7rfxkbjOEC3AsQmtSyYnc9q8cW8kMDSYHB7saqHGs+xvLgQ36272VJ9Zajh92ukwtH8JCXxxWajvFSC1sjZYEPC0W4pT3RG3jj0xQ/qF8qe86ymVRTbLg2KOQxLBdkvkdWeLoR7qyaL6fOWqMqI+9jZvYAHsEyKP7eVtj//HPBn5bU7CP9uN4oi4GvSFdGcRhhgybYvHuunByzXqd4IZtEmNi2BzZSklrPQ/vKpK43gOJvEzWvZDZrvYCb1ZIDhBZeyE3xt01ZrDRwc5zqhCiyPNtaxZwD63tmRe37jbhZs/1i5iQKSGpIYeZs+7HcKYYZwPfb50bwSK2l/LNOtabzuUet0TGB4VdGmJD5f0qFiro6Ko7cL65OnDVcxjA+zwDFmY9H/TY62/OYuFbzQphthXIRzus8U4kLy10DhGfemi8u3zOuUv9K4Km4gLaF14kIbty7SF75XOAzE0rW6iwxPBxHOFiUt0Plx77HvSjXZiLntI0o/3iJrO+bXZWSCibh8QsjlMRnE06IZYWjiEgb+CLo6RQrm1t4oKbs3E4dnNSh/fLYkvCZHNtRmppDysOAh6oyOHQ/0+i1Ot6HZzyPS1TjunvcRFzVI/gZjn6rKPORzHNps+ro4A6F5aaef+1oXFSl9EFmqvIEkBunBstea5i9Z778T99AgnFr1dWTp0S4sO1u7ETj1LCItiLvEu1RQn6ya7H8Q5/tJnWEzecFz+PSDPtxKWIdMMJFvkNEDHq4iuU1dVSySWrPZXvkeh2SHfEi8EfGQBTRWFdLecLw0IEyaTnXmovX6ng1PC3CeNeuifCZCeP+5OxRXKEXGp95hrgouAjsGBZ+KxHLTCOvd+0YVUrXMUMVB0j70z4cRty0b7H8R19BKqnUGQY20kZnXU1511rm+R5LFa7J2KmOQpJ7lsijfbU7brVOwOcfRSiNIxaqjbBaLeNc5HeAf5DlNQ1fAPyQxoY6yv0vA/xxq3QEAcvFMCumR2eG476vRsKCPQvY0blNbp9y8Xr9YxvyhBFGZS4YRSFzCot4YvvtnVhAT4hN0mDsDSz1PRaoUuCYgcLWAO4IYbXAdzLNTGgtmz5exNxzneMs80n1i7P4TpDLOokY5KiWKlXAYhG+1iXyPw/8FTokO7tT5H8p4CfVlBbyFassFeE6IKvTJRqt5QVfWLVzoXzUE3bOcZpgjYGZmfTgmpBt0UkW71vJe70CNVO9QZbLBl7J3xufCY7tZJq29UPrufdIAYtNG1j9XEqzyq7mwyw+eIiXO2tJ5zrbebfoqKIxVPr5zNB03AOoVd6KWpkbJJwDubXPkf9lgz9powaNdUw1HveqMrUz8Erc6W0OI9bvW8T+Lhy9+003alDcyPd8pVKIu0uHU2O6medaPmP5oZ/KJ+d03DT1i6cy2eSzzE8wTV0P4agS7DeWH+1aJC+VPKhTRXlUNMOkhEhb2d58jLsPHuYNnusqmrXvM2i2DisazeKgkFsRCp1dFRpUWGYifolQDnzv/wV8p5XYfP5CPMpRLu0GzlGrrB9g+Gltbdwc9Dhyzke3HyEqzmKgn2CDSCxWuShzmk86XcvrErDR+vxGsqhNnESbwHiFDJYGvi4+3w8KmEK6Q/azqjzWYLjP8efipBb6eSwQj6XtnbVJQNTEzqiVjZ7PlpYWjuWCbR2ImFYKwkamGMstWf3jBivXVW91+lHIG4W5zKxpJbu9w+0r+CPW6NBcjxcVLo8Lbl/TjvCMmFjRPVNwix/Q0kDiAuc6xy6qoAqHULaKpVGlZ9WzLQtwysLbrR5vZaco1SDO0a6ixzbFgLUcUdhllE+d5OpSiIXhpq0IDnShHrMkSClsM5YluxbJh7HHVWXCaka2BpQb4Vsxo2pr192C084uzq5y2mk7GEaIk4SFi1xHlUmDroC/Z5V79iyUlztrOw58l45OVbMsFbLudEUPbGeFDsnJjsFvYzt9Bf9cbKe0Ui8DnlYY1z2sXcETzfSavdMKB0OI4/7C42EtD5tcLhef+w1c0U0DcpYcXXUauYOus8Mdns1W2eIpy3Y18FGXrjipZmzAMLIoM4ZZQqwmdh7Oaltv3E0id1lMlR1hRJnk8PK+H0mqu7DmHBDB4vw6HtneQ8N06YNalIp4HmF6X8EfV6ljRfk5EmNxJvIdn09ksdYIs7oV2d7h7uGrhUOEzP14ibzoNgXmC3wjQx3dbwZdwM6YcbHpNJFDKjxr4dHOunv3rcY9rANNC7dbR4WFkbhIP7ddFxSxTK3Cr0nzgFMz2+05Su37saTsWJRVS5VnuHnnAnmtp8vPnKne+1NY4jlZwtDfWpob6ijzhQ098fyLVmn/bJ97PMPtQJ5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},kSUc:function(Ge,fe,R){},"kaH+":function(Ge,fe,R){"use strict";var se=R("+L6B"),G=R("2/Rp"),M=R("tJVT"),v=R("q1tI"),b=R.n(v),C=R("XFxt"),w=R.n(C),m=R("dhSg"),d=R("rLCj"),i=R("dF/Y"),n=R("4i/N");fe.a=function(){var e=Object(v.useState)(""),a=Object(M.a)(e,2),s=a[0],o=a[1],f=Object(v.useState)(0),l=Object(M.a)(f,2),r=l[0],c=l[1],A=Object(v.useRef)("");Object(v.useEffect)(function(){var B=m.a.subscribe("preview-image",function(E){o(E),document.body.style.overflow="hidden"});return B},[]),Object(v.useEffect)(function(){return document.addEventListener("keydown",p),function(){document.removeEventListener("keydown",p)}},[]),Object(v.useEffect)(function(){A.current=s},[s]);function p(B){B.keyCode==27&&A.current&&x()}function x(){document.body.style.overflow="auto",o("")}function _(){c(r+90)}return b.a.createElement(v.Fragment,null,s?b.a.createElement("div",{className:w.a["image-preview-container"]},b.a.createElement("div",{className:w.a["button-group"]},b.a.createElement(G.a,{onClick:_},"\u65CB\u8F6C",b.a.createElement(d.a,null)),b.a.createElement(G.a,{href:s},"\u4E0B\u8F7D",b.a.createElement(i.a,null)),b.a.createElement(G.a,{onClick:x},"\u5173\u95ED",b.a.createElement(n.a,null))),b.a.createElement("div",{className:w.a["preview-wrp-group"]},b.a.createElement("img",{className:w.a["image-preview"],src:s,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(r,"deg)")}}))):null)}},kwm0:function(Ge,fe,R){Ge.exports={modal:"modal___1jX7c",uploadWrap:"uploadWrap___3-sVK",upload:"upload___2LemY",uploadLink:"uploadLink___j9Fsx",fileProgress:"fileProgress___11p3K",fileCancel:"fileCancel___3Mx9l",videoName:"videoName___2a-ZN",contentItem:"contentItem___1gUuj","tagsList-content":"tagsList-content___3Yj4d"}},l2Kq:function(Ge,fe,R){Ge.exports=R.p+"static/match_ad.24dc22fd.jpg"},lZu9:function(Ge,fe,R){(function(se){se(R("VrN/"),R("1eCo"),R("8EBN"))})(function(se){"use strict";se.defineMode("markdown",function(G,M){var v=se.getMode(G,"text/html"),b=v.name=="null";function C(U){if(se.findModeByName){var K=se.findModeByName(U);K&&(U=K.mime||K.mimes[0])}var V=se.getMode(G,U);return V.name=="null"?null:V}M.highlightFormatting===void 0&&(M.highlightFormatting=!1),M.maxBlockquoteDepth===void 0&&(M.maxBlockquoteDepth=0),M.taskLists===void 0&&(M.taskLists=!1),M.strikethrough===void 0&&(M.strikethrough=!1),M.emoji===void 0&&(M.emoji=!1),M.fencedCodeBlockHighlighting===void 0&&(M.fencedCodeBlockHighlighting=!0),M.fencedCodeBlockDefaultMode===void 0&&(M.fencedCodeBlockDefaultMode="text/plain"),M.xml===void 0&&(M.xml=!0),M.tokenTypeOverrides===void 0&&(M.tokenTypeOverrides={});var w={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var m in w)w.hasOwnProperty(m)&&M.tokenTypeOverrides[m]&&(w[m]=M.tokenTypeOverrides[m]);var d=/^([*\-_])(?:\s*\1){2,}\s*$/,i=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,n=/^\[(x| )\](?=\s)/i,e=M.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,a=/^ {0,3}(?:\={1,}|-{2,})\s*$/,s=/^[^#!\[\]*_\\<>` "'(~:]+/,o=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,l=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,r=" ";function c(U,K,V){return K.f=K.inline=V,V(U,K)}function A(U,K,V){return K.f=K.block=V,V(U,K)}function p(U){return!U||!/\S/.test(U.string)}function x(U){if(U.linkTitle=!1,U.linkHref=!1,U.linkText=!1,U.em=!1,U.strong=!1,U.strikethrough=!1,U.quote=0,U.indentedCode=!1,U.f==B){var K=b;if(!K){var V=se.innerMode(v,U.htmlState);K=V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText}K&&(U.f=u,U.block=_,U.htmlState=null)}return U.trailingSpace=0,U.trailingSpaceNewLine=!1,U.prevLine=U.thisLine,U.thisLine={stream:null},null}function _(U,K){var V=U.column()===K.indentation,N=p(K.prevLine.stream),Q=K.indentedCode,J=K.prevLine.hr,ne=K.list!==!1,ue=(K.listStack[K.listStack.length-1]||0)+3;K.indentedCode=!1;var be=K.indentation;if(K.indentationDiff===null&&(K.indentationDiff=K.indentation,ne)){for(K.list=null;be<K.listStack[K.listStack.length-1];)K.listStack.pop(),K.listStack.length?K.indentation=K.listStack[K.listStack.length-1]:K.list=!1;K.list!==!1&&(K.indentationDiff=be-K.listStack[K.listStack.length-1])}var de=!N&&!J&&!K.prevLine.header&&(!ne||!Q)&&!K.prevLine.fencedCodeEnd,_e=(K.list===!1||J||N)&&K.indentation<=ue&&U.match(d),me=null;if(K.indentationDiff>=4&&(Q||K.prevLine.fencedCodeEnd||K.prevLine.header||N))return U.skipToEnd(),K.indentedCode=!0,w.code;if(U.eatSpace())return null;if(V&&K.indentation<=ue&&(me=U.match(e))&&me[1].length<=6)return K.quote=0,K.header=me[1].length,K.thisLine.header=!0,M.highlightFormatting&&(K.formatting="header"),K.f=K.inline,g(K);if(K.indentation<=ue&&U.eat(">"))return K.quote=V?1:K.quote+1,M.highlightFormatting&&(K.formatting="quote"),U.eatSpace(),g(K);if(!_e&&!K.setext&&V&&K.indentation<=ue&&(me=U.match(i))){var Ee=me[1]?"ol":"ul";return K.indentation=be+U.current().length,K.list=!0,K.quote=0,K.listStack.push(K.indentation),K.em=!1,K.strong=!1,K.code=!1,K.strikethrough=!1,M.taskLists&&U.match(n,!1)&&(K.taskList=!0),K.f=K.inline,M.highlightFormatting&&(K.formatting=["list","list-"+Ee]),g(K)}else{if(V&&K.indentation<=ue&&(me=U.match(o,!0)))return K.quote=0,K.fencedEndRE=new RegExp(me[1]+"+ *$"),K.localMode=M.fencedCodeBlockHighlighting&&C(me[2]||M.fencedCodeBlockDefaultMode),K.localMode&&(K.localState=se.startState(K.localMode)),K.f=K.block=E,M.highlightFormatting&&(K.formatting="code-block"),K.code=-1,g(K);if(K.setext||(!de||!ne)&&!K.quote&&K.list===!1&&!K.code&&!_e&&!f.test(U.string)&&(me=U.lookAhead(1))&&(me=me.match(a)))return K.setext?(K.header=K.setext,K.setext=0,U.skipToEnd(),M.highlightFormatting&&(K.formatting="header")):(K.header=me[0].charAt(0)=="="?1:2,K.setext=K.header),K.thisLine.header=!0,K.f=K.inline,g(K);if(_e)return U.skipToEnd(),K.hr=!0,K.thisLine.hr=!0,w.hr;if(U.peek()==="[")return c(U,K,I)}return c(U,K,K.inline)}function B(U,K){var V=v.token(U,K.htmlState);if(!b){var N=se.innerMode(v,K.htmlState);(N.mode.name=="xml"&&N.state.tagStart===null&&!N.state.context&&N.state.tokenize.isInText||K.md_inside&&U.current().indexOf(">")>-1)&&(K.f=u,K.block=_,K.htmlState=null)}return V}function E(U,K){var V=K.listStack[K.listStack.length-1]||0,N=K.indentation<V,Q=V+3;if(K.fencedEndRE&&K.indentation<=Q&&(N||U.match(K.fencedEndRE))){M.highlightFormatting&&(K.formatting="code-block");var J;return N||(J=g(K)),K.localMode=K.localState=null,K.block=_,K.f=u,K.fencedEndRE=null,K.code=0,K.thisLine.fencedCodeEnd=!0,N?A(U,K,K.block):J}else return K.localMode?K.localMode.token(U,K.localState):(U.skipToEnd(),w.code)}function g(U){var K=[];if(U.formatting){K.push(w.formatting),typeof U.formatting=="string"&&(U.formatting=[U.formatting]);for(var V=0;V<U.formatting.length;V++)K.push(w.formatting+"-"+U.formatting[V]),U.formatting[V]==="header"&&K.push(w.formatting+"-"+U.formatting[V]+"-"+U.header),U.formatting[V]==="quote"&&(!M.maxBlockquoteDepth||M.maxBlockquoteDepth>=U.quote?K.push(w.formatting+"-"+U.formatting[V]+"-"+U.quote):K.push("error"))}if(U.taskOpen)return K.push("meta"),K.length?K.join(" "):null;if(U.taskClosed)return K.push("property"),K.length?K.join(" "):null;if(U.linkHref?K.push(w.linkHref,"url"):(U.strong&&K.push(w.strong),U.em&&K.push(w.em),U.strikethrough&&K.push(w.strikethrough),U.emoji&&K.push(w.emoji),U.linkText&&K.push(w.linkText),U.code&&K.push(w.code),U.image&&K.push(w.image),U.imageAltText&&K.push(w.imageAltText,"link"),U.imageMarker&&K.push(w.imageMarker)),U.header&&K.push(w.header,w.header+"-"+U.header),U.quote&&(K.push(w.quote),!M.maxBlockquoteDepth||M.maxBlockquoteDepth>=U.quote?K.push(w.quote+"-"+U.quote):K.push(w.quote+"-"+M.maxBlockquoteDepth)),U.list!==!1){var N=(U.listStack.length-1)%3;N?N===1?K.push(w.list2):K.push(w.list3):K.push(w.list1)}return U.trailingSpaceNewLine?K.push("trailing-space-new-line"):U.trailingSpace&&K.push("trailing-space-"+(U.trailingSpace%2?"a":"b")),K.length?K.join(" "):null}function h(U,K){return U.match(s,!0)?g(K):void 0}function u(U,K){var V=K.text(U,K);if(typeof V!="undefined")return V;if(K.list)return K.list=null,g(K);if(K.taskList){var N=U.match(n,!0)[1]===" ";return N?K.taskOpen=!0:K.taskClosed=!0,M.highlightFormatting&&(K.formatting="task"),K.taskList=!1,g(K)}if(K.taskOpen=!1,K.taskClosed=!1,K.header&&U.match(/^#+$/,!0))return M.highlightFormatting&&(K.formatting="header"),g(K);var Q=U.next();if(K.linkTitle){K.linkTitle=!1;var J=Q;Q==="("&&(J=")"),J=(J+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ne="^\\s*(?:[^"+J+"\\\\]+|\\\\\\\\|\\\\.)"+J;if(U.match(new RegExp(ne),!0))return w.linkHref}if(Q==="`"){var ue=K.formatting;M.highlightFormatting&&(K.formatting="code"),U.eatWhile("`");var be=U.current().length;if(K.code==0&&(!K.quote||be==1))return K.code=be,g(K);if(be==K.code){var de=g(K);return K.code=0,de}else return K.formatting=ue,g(K)}else if(K.code)return g(K);if(Q==="\\"&&(U.next(),M.highlightFormatting)){var _e=g(K),me=w.formatting+"-escape";return _e?_e+" "+me:me}if(Q==="!"&&U.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return K.imageMarker=!0,K.image=!0,M.highlightFormatting&&(K.formatting="image"),g(K);if(Q==="["&&K.imageMarker&&U.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return K.imageMarker=!1,K.imageAltText=!0,M.highlightFormatting&&(K.formatting="image"),g(K);if(Q==="]"&&K.imageAltText){M.highlightFormatting&&(K.formatting="image");var _e=g(K);return K.imageAltText=!1,K.image=!1,K.inline=K.f=O,_e}if(Q==="["&&!K.image)return K.linkText&&U.match(/^.*?\]/)||(K.linkText=!0,M.highlightFormatting&&(K.formatting="link")),g(K);if(Q==="]"&&K.linkText){M.highlightFormatting&&(K.formatting="link");var _e=g(K);return K.linkText=!1,K.inline=K.f=U.match(/\(.*?\)| ?\[.*?\]/,!1)?O:u,_e}if(Q==="<"&&U.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=S,M.highlightFormatting&&(K.formatting="link");var _e=g(K);return _e?_e+=" ":_e="",_e+w.linkInline}if(Q==="<"&&U.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=S,M.highlightFormatting&&(K.formatting="link");var _e=g(K);return _e?_e+=" ":_e="",_e+w.linkEmail}if(M.xml&&Q==="<"&&U.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ee=U.string.indexOf(">",U.pos);if(Ee!=-1){var ge=U.string.substring(U.start,Ee);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ge)&&(K.md_inside=!0)}return U.backUp(1),K.htmlState=se.startState(v),A(U,K,B)}if(M.xml&&Q==="<"&&U.match(/^\/\w*?>/))return K.md_inside=!1,"tag";if(Q==="*"||Q==="_"){for(var Ae=1,ae=U.pos==1?" ":U.string.charAt(U.pos-2);Ae<3&&U.eat(Q);)Ae++;var ve=U.peek()||" ",oe=!/\s/.test(ve)&&(!l.test(ve)||/\s/.test(ae)||l.test(ae)),ie=!/\s/.test(ae)&&(!l.test(ae)||/\s/.test(ve)||l.test(ve)),Te=null,Re=null;if(Ae%2&&(!K.em&&oe&&(Q==="*"||!ie||l.test(ae))?Te=!0:K.em==Q&&ie&&(Q==="*"||!oe||l.test(ve))&&(Te=!1)),Ae>1&&(!K.strong&&oe&&(Q==="*"||!ie||l.test(ae))?Re=!0:K.strong==Q&&ie&&(Q==="*"||!oe||l.test(ve))&&(Re=!1)),Re!=null||Te!=null){M.highlightFormatting&&(K.formatting=Te==null?"strong":Re==null?"em":"strong em"),Te===!0&&(K.em=Q),Re===!0&&(K.strong=Q);var de=g(K);return Te===!1&&(K.em=!1),Re===!1&&(K.strong=!1),de}}else if(Q===" "&&(U.eat("*")||U.eat("_"))){if(U.peek()===" ")return g(K);U.backUp(1)}if(M.strikethrough){if(Q==="~"&&U.eatWhile(Q)){if(K.strikethrough){M.highlightFormatting&&(K.formatting="strikethrough");var de=g(K);return K.strikethrough=!1,de}else if(U.match(/^[^\s]/,!1))return K.strikethrough=!0,M.highlightFormatting&&(K.formatting="strikethrough"),g(K)}else if(Q===" "&&U.match(/^~~/,!0)){if(U.peek()===" ")return g(K);U.backUp(2)}}if(M.emoji&&Q===":"&&U.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){K.emoji=!0,M.highlightFormatting&&(K.formatting="emoji");var Me=g(K);return K.emoji=!1,Me}return Q===" "&&(U.match(/^ +$/,!1)?K.trailingSpace++:K.trailingSpace&&(K.trailingSpaceNewLine=!0)),g(K)}function S(U,K){var V=U.next();if(V===">"){K.f=K.inline=u,M.highlightFormatting&&(K.formatting="link");var N=g(K);return N?N+=" ":N="",N+w.linkInline}return U.match(/^[^>]+/,!0),w.linkInline}function O(U,K){if(U.eatSpace())return null;var V=U.next();return V==="("||V==="["?(K.f=K.inline=D(V==="("?")":"]"),M.highlightFormatting&&(K.formatting="link-string"),K.linkHref=!0,g(K)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function D(U){return function(K,V){var N=K.next();if(N===U){V.f=V.inline=u,M.highlightFormatting&&(V.formatting="link-string");var Q=g(V);return V.linkHref=!1,Q}return K.match(T[U]),V.linkHref=!0,g(V)}}function I(U,K){return U.match(/^([^\]\\]|\\.)*\]:/,!1)?(K.f=k,U.next(),M.highlightFormatting&&(K.formatting="link"),K.linkText=!0,g(K)):c(U,K,u)}function k(U,K){if(U.match(/^\]:/,!0)){K.f=K.inline=F,M.highlightFormatting&&(K.formatting="link");var V=g(K);return K.linkText=!1,V}return U.match(/^([^\]\\]|\\.)+/,!0),w.linkText}function F(U,K){return U.eatSpace()?null:(U.match(/^[^\s]+/,!0),U.peek()===void 0?K.linkTitle=!0:U.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),K.f=K.inline=u,w.linkHref+" url")}var X={startState:function(){return{f:_,prevLine:{stream:null},thisLine:{stream:null},block:_,htmlState:null,indentation:0,inline:u,text:h,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(U){return{f:U.f,prevLine:U.prevLine,thisLine:U.thisLine,block:U.block,htmlState:U.htmlState&&se.copyState(v,U.htmlState),indentation:U.indentation,localMode:U.localMode,localState:U.localMode?se.copyState(U.localMode,U.localState):null,inline:U.inline,text:U.text,formatting:!1,linkText:U.linkText,linkTitle:U.linkTitle,linkHref:U.linkHref,code:U.code,em:U.em,strong:U.strong,strikethrough:U.strikethrough,emoji:U.emoji,header:U.header,setext:U.setext,hr:U.hr,taskList:U.taskList,list:U.list,listStack:U.listStack.slice(0),quote:U.quote,indentedCode:U.indentedCode,trailingSpace:U.trailingSpace,trailingSpaceNewLine:U.trailingSpaceNewLine,md_inside:U.md_inside,fencedEndRE:U.fencedEndRE}},token:function(U,K){if(K.formatting=!1,U!=K.thisLine.stream){if(K.header=0,K.hr=!1,U.match(/^\s*$/,!0))return x(K),null;if(K.prevLine=K.thisLine,K.thisLine={stream:U},K.taskList=!1,K.trailingSpace=0,K.trailingSpaceNewLine=!1,!K.localState&&(K.f=K.block,K.f!=B)){var V=U.match(/^\s*/,!0)[0].replace(/\t/g,r).length;if(K.indentation=V,K.indentationDiff=null,V>0)return null}}return K.f(U,K)},innerMode:function(U){return U.block==B?{state:U.htmlState,mode:v}:U.localState?{state:U.localState,mode:U.localMode}:{state:U,mode:X}},indent:function(U,K,V){return U.block==B&&v.indent?v.indent(U.htmlState,K,V):U.localState&&U.localMode.indent?U.localMode.indent(U.localState,K,V):se.Pass},blankLine:x,getType:g,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return X},"xml"),se.defineMIME("text/markdown","markdown"),se.defineMIME("text/x-markdown","markdown")})},loD1:function(Ge,fe){function R(se,G,M,v,b,C,w){if(b===0)return!1;var m=b,d=0,i=se;if(w>G+m&&w>v+m||w<G-m&&w<v-m||C>se+m&&C>M+m||C<se-m&&C<M-m)return!1;if(se!==M)d=(G-v)/(se-M),i=(se*v-M*G)/(se-M);else return Math.abs(C-se)<=m/2;var n=d*C-w+i,e=n*n/(d*d+1);return e<=m/2*m/2}fe.containStroke=R},lseA:function(Ge,fe,R){Ge.exports={"sort-list-panel":"sort-list-panel___3v1zo","sort-list-tip":"sort-list-tip___ZU19v","ant-drawer-content":"ant-drawer-content___1OfCe","dragging-li":"dragging-li___BZnL9","task-list-container":"task-list-container___1s_AZ",imgradius:"imgradius___1FGzg",directionItemWrap:"directionItemWrap___3LaaO",groupActionWrap:"groupActionWrap___swDtd",bottomdiv:"bottomdiv___1t3po",ml3:"ml3___hQDDB"}},lzim:function(Ge,fe,R){"use strict";var se=R("E7E6"),G=R.n(se);R.d(fe,"A",function(){return G.a});var M=R("/GNS"),v=R.n(M);R.d(fe,"z",function(){return v.a});var b=R("FOrL"),C=R.n(b);R.d(fe,"t",function(){return C.a});var w=R("HpTS"),m=R.n(w);R.d(fe,"B",function(){return m.a});var d=R("tWlo"),i=R.n(d);R.d(fe,"b",function(){return i.a});var n=R("7ZXX"),e=R.n(n);R.d(fe,"n",function(){return e.a});var a=R("GABl"),s=R.n(a);R.d(fe,"g",function(){return s.a});var o=R("onxn"),f=R.n(o);R.d(fe,"p",function(){return f.a});var l=R("nKGa"),r=R.n(l);R.d(fe,"o",function(){return r.a});var c=R("4qgm"),A=R.n(c);R.d(fe,"D",function(){return A.a});var p=R("JeFH"),x=R.n(p);R.d(fe,"c",function(){return x.a});var _=R("ji0R"),B=R.n(_);R.d(fe,"k",function(){return B.a});var E=R("W6BS"),g=R.n(E);R.d(fe,"E",function(){return g.a});var h=R("kPYp"),u=R.n(h);R.d(fe,"F",function(){return u.a});var S=R("nukY"),O=R.n(S),T=R("4u4S"),D=R.n(T),I=R("yslc"),k=R.n(I),F=R("l2Kq"),X=R.n(F),U=R("RMFE"),K=R.n(U);R.d(fe,"q",function(){return K.a});var V=R("TGq3"),N=R.n(V);R.d(fe,"r",function(){return N.a});var Q=R("SMhR"),J=R.n(Q);R.d(fe,"C",function(){return J.a});var ne=R("8/bI"),ue=R.n(ne);R.d(fe,"l",function(){return ue.a});var be=R("JWDV"),de=R.n(be);R.d(fe,"e",function(){return de.a});var _e=R("Xsq0"),me=R.n(_e);R.d(fe,"s",function(){return me.a});var Ee=R("Ohmc"),ge=R.n(Ee);R.d(fe,"d",function(){return ge.a});var Ae=R("csWT"),ae=R.n(Ae);R.d(fe,"f",function(){return ae.a});var ve=R("7v3h"),oe=R.n(ve);R.d(fe,"m",function(){return oe.a});var ie=R("cRFk"),Te=R.n(ie);R.d(fe,"y",function(){return Te.a});var Re=R("kPWJ"),Me=R.n(Re);R.d(fe,"x",function(){return Me.a});var re=R("qgvg"),j=R.n(re);R.d(fe,"u",function(){return j.a});var W=R("FPkq"),he=R.n(W);R.d(fe,"w",function(){return he.a});var te=R("A/g1"),ce=R.n(te);R.d(fe,"h",function(){return ce.a});var Ie=R("Nmxd"),ze=R.n(Ie);R.d(fe,"i",function(){return ze.a});var _t=R("5D2P"),He=R.n(_t);R.d(fe,"j",function(){return He.a});var Ke=R("djh8"),ht=R.n(Ke);R.d(fe,"v",function(){return ht.a});var St=R("Jq4h"),ct=R.n(St);R.d(fe,"a",function(){return ct.a})},"m/50":function(Ge,fe,R){Ge.exports=R.p+"static/sc.7f773df2.svg"},mFDi:function(Ge,fe,R){var se=R("QBsz"),G=R("Fofx"),M=se.applyTransform,v=Math.min,b=Math.max;function C(m,d,i,n){i<0&&(m=m+i,i=-i),n<0&&(d=d+n,n=-n),this.x=m,this.y=d,this.width=i,this.height=n}C.prototype={constructor:C,union:function(m){var d=v(m.x,this.x),i=v(m.y,this.y);this.width=b(m.x+m.width,this.x+this.width)-d,this.height=b(m.y+m.height,this.y+this.height)-i,this.x=d,this.y=i},applyTransform:function(){var m=[],d=[],i=[],n=[];return function(e){if(!e)return;m[0]=i[0]=this.x,m[1]=n[1]=this.y,d[0]=n[0]=this.x+this.width,d[1]=i[1]=this.y+this.height,M(m,m,e),M(d,d,e),M(i,i,e),M(n,n,e),this.x=v(m[0],d[0],i[0],n[0]),this.y=v(m[1],d[1],i[1],n[1]);var a=b(m[0],d[0],i[0],n[0]),s=b(m[1],d[1],i[1],n[1]);this.width=a-this.x,this.height=s-this.y}}(),calculateTransform:function(m){var d=this,i=m.width/d.width,n=m.height/d.height,e=G.create();return G.translate(e,e,[-d.x,-d.y]),G.scale(e,e,[i,n]),G.translate(e,e,[m.x,m.y]),e},intersect:function(m){if(!m)return!1;m instanceof C||(m=C.create(m));var d=this,i=d.x,n=d.x+d.width,e=d.y,a=d.y+d.height,s=m.x,o=m.x+m.width,f=m.y,l=m.y+m.height;return!(n<s||o<i||a<f||l<e)},contain:function(m,d){var i=this;return m>=i.x&&m<=i.x+i.width&&d>=i.y&&d<=i.y+i.height},clone:function(){return new C(this.x,this.y,this.width,this.height)},copy:function(m){this.x=m.x,this.y=m.y,this.width=m.width,this.height=m.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},C.create=function(m){return new C(m.x,m.y,m.width,m.height)};var w=C;Ge.exports=w},mLcG:function(Ge,fe){var R=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(se){setTimeout(se,16)};Ge.exports=R},mOS8:function(Ge,fe,R){Ge.exports=R.p+"static/403Qrcode.6c17b6f4.png"},n1HI:function(Ge,fe,R){var se=R("hX1E"),G=se.normalizeRadian,M=Math.PI*2;function v(b,C,w,m,d,i,n,e,a){if(n===0)return!1;var s=n;e-=b,a-=C;var o=Math.sqrt(e*e+a*a);if(o-s>w||o+s<w)return!1;if(Math.abs(m-d)%M<1e-4)return!0;if(i){var f=m;m=G(d),d=G(f)}else m=G(m),d=G(d);m>d&&(d+=M);var l=Math.atan2(a,e);return l<0&&(l+=M),l>=m&&l<=d||l+M>=m&&l+M<=d}fe.containStroke=v},n6Mw:function(Ge,fe,R){var se=R("SrGk"),G=R("bYtY"),M=R("Fofx");function v(C,w){se.call(this,C,w,"clipPath","__clippath_in_use__")}G.inherits(v,se),v.prototype.update=function(C){var w=this.getSvgElement(C);w&&this.updateDom(w,C.__clipPaths,!1);var m=this.getTextSvgElement(C);m&&this.updateDom(m,C.__clipPaths,!0),this.markUsed(C)},v.prototype.updateDom=function(C,w,m){if(w&&w.length>0){var d=this.getDefs(!0),i=w[0],n,e,a=m?"_textDom":"_dom";i[a]?(e=i[a].getAttribute("id"),n=i[a],d.contains(n)||d.appendChild(n)):(e="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",e),d.appendChild(n),i[a]=n);var s=this.getSvgProxy(i);if(i.transform&&i.parent.invTransform&&!m){var o=Array.prototype.slice.call(i.transform);M.mul(i.transform,i.parent.invTransform,i.transform),s.brush(i),i.transform=o}else s.brush(i);var f=this.getSvgElement(i);n.innerHTML="",n.appendChild(f.cloneNode()),C.setAttribute("clip-path","url(#"+e+")"),w.length>1&&this.updateDom(n,w.slice(1),m)}else C&&C.setAttribute("clip-path","none")},v.prototype.markUsed=function(C){var w=this;C.__clipPaths&&G.each(C.__clipPaths,function(m){m._dom&&se.prototype.markUsed.call(w,m._dom),m._textDom&&se.prototype.markUsed.call(w,m._textDom)})};var b=v;Ge.exports=b},n6Qo:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return m});var se=R("q1tI"),G=R("biw7"),M=R("fyJ8");function v(d){var i=d.className,n=d.index,e=d.children,a=d.colSpan,s=d.rowSpan,o=se.useContext(G.a),f=o.prefixCls,l=o.fixedInfoList,r=l[n];return se.createElement(M.a,Object.assign({className:i,index:n,component:"td",prefixCls:f,record:null,dataIndex:null,render:function(){return{children:e,props:{colSpan:a,rowSpan:s}}}},r))}function b(d){return se.createElement("tr",Object.assign({},d))}function C(d){var i=d.children,n=se.useContext(G.a),e=n.prefixCls;return se.createElement("tfoot",{className:"".concat(e,"-summary")},i)}var w=fe.b=C,m={Cell:v,Row:b}},nCxF:function(Ge,fe,R){var se=R("QBsz"),G=se.min,M=se.max,v=se.scale,b=se.distance,C=se.add,w=se.clone,m=se.sub;function d(i,n,e,a){var s=[],o=[],f=[],l=[],r,c,A,p;if(a){A=[Infinity,Infinity],p=[-Infinity,-Infinity];for(var x=0,_=i.length;x<_;x++)G(A,A,i[x]),M(p,p,i[x]);G(A,A,a[0]),M(p,p,a[1])}for(var x=0,_=i.length;x<_;x++){var B=i[x];if(e)r=i[x?x-1:_-1],c=i[(x+1)%_];else if(x===0||x===_-1){s.push(w(i[x]));continue}else r=i[x-1],c=i[x+1];m(o,c,r),v(o,o,n);var E=b(B,r),g=b(B,c),h=E+g;h!==0&&(E/=h,g/=h),v(f,o,-E),v(l,o,g);var u=C([],B,f),S=C([],B,l);a&&(M(u,u,A),G(u,u,p),M(S,S,A),G(S,S,p)),s.push(u),s.push(S)}return e&&s.push(s.shift()),s}Ge.exports=d},nKGa:function(Ge,fe,R){Ge.exports=R.p+"static/export_exercise-template.f7655c19.png"},nPnh:function(Ge,fe){var R=Math.round;function se(v,b,C){if(!b)return;var w=b.x1,m=b.x2,d=b.y1,i=b.y2;v.x1=w,v.x2=m,v.y1=d,v.y2=i;var n=C&&C.lineWidth;if(!n)return;R(w*2)===R(m*2)&&(v.x1=v.x2=M(w,n,!0)),R(d*2)===R(i*2)&&(v.y1=v.y2=M(d,n,!0))}function G(v,b,C){if(!b)return;var w=b.x,m=b.y,d=b.width,i=b.height;v.x=w,v.y=m,v.width=d,v.height=i;var n=C&&C.lineWidth;if(!n)return;v.x=M(w,n,!0),v.y=M(m,n,!0),v.width=Math.max(M(w+d,n,!1)-v.x,d===0?0:1),v.height=Math.max(M(m+i,n,!1)-v.y,i===0?0:1)}function M(v,b,C){if(!b)return v;var w=R(v*2);return(w+R(b))%2===0?w/2:(w+(C?1:-1))/2}fe.subPixelOptimizeLine=se,fe.subPixelOptimizeRect=G,fe.subPixelOptimize=M},ni6a:function(Ge,fe,R){var se=R("pzxd"),G=R("mFDi"),M=R("gut8"),v=M.WILL_BE_RESTORED,b=new G,C=function(){};C.prototype={constructor:C,drawRectText:function(m,d){var i=this.style;d=i.textRect||d,this.__dirty&&se.normalizeTextStyle(i,!0);var n=i.text;if(n!=null&&(n+=""),!se.needDrawText(n,i))return;m.save();var e=this.transform;i.transformText?this.setTransform(m):e&&(b.copy(d),b.applyTransform(e),d=b),se.renderText(this,m,n,i,d,v),m.restore()}};var w=C;Ge.exports=w},nnTU:function(Ge,fe,R){"use strict";R.d(fe,"b",function(){return m}),R.d(fe,"a",function(){return d});var se=R("pmY6"),G=R("746U"),M=R("Cg/j"),v=R("MI8n"),b=R("24hK"),C=R("QDVR"),w=function(){for(var i=0,n=0,e=arguments.length;n<e;n++)i+=arguments[n].length;for(var a=Array(i),s=0,n=0;n<e;n++)for(var o=arguments[n],f=0,l=o.length;f<l;f++,s++)a[s]=o[f];return a},m=Object(M.c)("commandService"),d=new(function(){function i(){this._commands=new Map,this._onDidRegisterCommand=new v.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return i.prototype.registerCommand=function(n,e){var a=this;if(!n)throw new Error("invalid command");if(typeof n=="string"){if(!e)throw new Error("invalid command");return this.registerCommand({id:n,handler:e})}if(n.description){for(var s=[],o=0,f=n.description.args;o<f.length;o++){var l=f[o];s.push(l.constraint)}var r=n.handler;n.handler=function(_){for(var B=[],E=1;E<arguments.length;E++)B[E-1]=arguments[E];return Object(G.m)(B,s),r.apply(void 0,w([_],B))}}var c=n.id,A=this._commands.get(c);A||(A=new b.a,this._commands.set(c,A));var p=A.unshift(n),x=Object(se.h)(function(){p();var _=a._commands.get(c);(_==null?void 0:_.isEmpty())&&a._commands.delete(c)});return this._onDidRegisterCommand.fire(c),x},i.prototype.registerCommandAlias=function(n,e){return d.registerCommand(n,function(a){for(var s,o=[],f=1;f<arguments.length;f++)o[f-1]=arguments[f];return(s=a.get(m)).executeCommand.apply(s,w([e],o))})},i.prototype.getCommand=function(n){var e=this._commands.get(n);return!e||e.isEmpty()?void 0:e.iterator().next().value},i.prototype.getCommands=function(){for(var n=new Map,e=0,a=Object(C.d)(this._commands);e<a.length;e++){var s=a[e],o=this.getCommand(s);o&&n.set(s,o)}return n},i}())},nukY:function(Ge,fe){Ge.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(Ge,fe){Ge.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(Ge,fe,R){(function(se){se(R("VrN/"))})(function(se){"use strict";var G=se.Pos;function M(l,r){return l.line-r.line||l.ch-r.ch}var v="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",b=v+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",C=new RegExp("<(/?)(["+v+"]["+b+"]*)","g");function w(l,r,c,A){this.line=r,this.ch=c,this.cm=l,this.text=l.getLine(r),this.min=A?Math.max(A.from,l.firstLine()):l.firstLine(),this.max=A?Math.min(A.to-1,l.lastLine()):l.lastLine()}function m(l,r){var c=l.cm.getTokenTypeAt(G(l.line,r));return c&&/\btag\b/.test(c)}function d(l){return l.line>=l.max?void 0:(l.ch=0,l.text=l.cm.getLine(++l.line),!0)}function i(l){return l.line<=l.min?void 0:(l.text=l.cm.getLine(--l.line),l.ch=l.text.length,!0)}function n(l){for(;;){var r=l.text.indexOf(">",l.ch);if(r==-1){if(d(l))continue;return}if(!m(l,r+1)){l.ch=r+1;continue}var c=l.text.lastIndexOf("/",r),A=c>-1&&!/\S/.test(l.text.slice(c+1,r));return l.ch=r+1,A?"selfClose":"regular"}}function e(l){for(;;){var r=l.ch?l.text.lastIndexOf("<",l.ch-1):-1;if(r==-1){if(i(l))continue;return}if(!m(l,r+1)){l.ch=r;continue}C.lastIndex=r,l.ch=r;var c=C.exec(l.text);if(c&&c.index==r)return c}}function a(l){for(;;){C.lastIndex=l.ch;var r=C.exec(l.text);if(!r){if(d(l))continue;return}if(!m(l,r.index+1)){l.ch=r.index+1;continue}return l.ch=r.index+r[0].length,r}}function s(l){for(;;){var r=l.ch?l.text.lastIndexOf(">",l.ch-1):-1;if(r==-1){if(i(l))continue;return}if(!m(l,r+1)){l.ch=r;continue}var c=l.text.lastIndexOf("/",r),A=c>-1&&!/\S/.test(l.text.slice(c+1,r));return l.ch=r+1,A?"selfClose":"regular"}}function o(l,r){for(var c=[];;){var A=a(l),p,x=l.line,_=l.ch-(A?A[0].length:0);if(!A||!(p=n(l)))return;if(p=="selfClose")continue;if(A[1]){for(var B=c.length-1;B>=0;--B)if(c[B]==A[2]){c.length=B;break}if(B<0&&(!r||r==A[2]))return{tag:A[2],from:G(x,_),to:G(l.line,l.ch)}}else c.push(A[2])}}function f(l,r){for(var c=[];;){var A=s(l);if(!A)return;if(A=="selfClose"){e(l);continue}var p=l.line,x=l.ch,_=e(l);if(!_)return;if(_[1])c.push(_[2]);else{for(var B=c.length-1;B>=0;--B)if(c[B]==_[2]){c.length=B;break}if(B<0&&(!r||r==_[2]))return{tag:_[2],from:G(l.line,l.ch),to:G(p,x)}}}}se.registerHelper("fold","xml",function(l,r){for(var c=new w(l,r.line,0);;){var A=a(c);if(!A||c.line!=r.line)return;var p=n(c);if(!p)return;if(!A[1]&&p!="selfClose"){var x=G(c.line,c.ch),_=o(c,A[2]);return _&&M(_.from,x)>0?{from:x,to:_.from}:null}}}),se.findMatchingTag=function(l,r,c){var A=new w(l,r.line,r.ch,c);if(A.text.indexOf(">")==-1&&A.text.indexOf("<")==-1)return;var p=n(A),x=p&&G(A.line,A.ch),_=p&&e(A);if(!p||!_||M(A,r)>0)return;var B={from:G(A.line,A.ch),to:x,tag:_[2]};return p=="selfClose"?{open:B,close:null,at:"open"}:_[1]?{open:f(A,_[2]),close:B,at:"close"}:(A=new w(l,x.line,x.ch,c),{open:B,close:o(A,_[2]),at:"open"})},se.findEnclosingTag=function(l,r,c,A){for(var p=new w(l,r.line,r.ch,c);;){var x=f(p,A);if(!x)break;var _=new w(l,r.line,r.ch,c),B=o(_,x.tag);if(B)return{open:x,close:B}}},se.scanForClosingTag=function(l,r,c,A){var p=new w(l,r.line,r.ch,A?{from:0,to:A}:null);return o(p,c)}})},p5ED:function(Ge,fe,R){"use strict";var se=R("+L6B"),G=R("2/Rp"),M=R("5Dmo"),v=R("3S7+"),b=R("k1fw"),C=R("9og8"),w=R("tJVT"),m=R("WmNS"),d=R.n(m),i=R("q1tI"),n=R.n(i),e=R("vHTk"),a=R.n(e),s=R("yEEn"),o=R("ZW9T"),f=R("1vsH"),l=R("V0Rq"),r=R("m3rI");fe.a=function(c){var A,p,x,_,B,E,g=c.editOffice,h=g===void 0?"view":g,u=c.name,S=c.data,O=c.theme,T=c.type,D=c.filename,I=c.monacoEditor,k=c.className,F=c.style,X=c.close,U=c.onClose,K=c.hasMask,V=c.disabledDownload,N=c.onImgDimensions,Q=c.otherData,J=Object(i.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),ne=Object(w.a)(J,2),ue=ne[0],be=ne[1],de=Object(i.useState)(""),_e=Object(w.a)(de,2),me=_e[0],Ee=_e[1],ge=Object(i.useState)(),Ae=Object(w.a)(ge,2),ae=Ae[0],ve=Ae[1],oe=window.ENV==="build"?"/react/build":"",ie=location.host.startsWith("localhost")?r.a.PROXY_SERVER:r.a.API_SERVER,Te,Re=1024*1024,Me=10*Re,re=Object(i.useRef)();(A=S)!==null&&A!==void 0&&A.startsWith("/api")&&T!=="txt"&&(S=r.a.API_SERVER+S),T==="office"&&(Te=Object(f.P)(S).filesize,Te>Me&&(T="other")),D&&(I.filename=D),Object(i.useEffect)(function(){var te,ce,Ie=(te=document.cookie)===null||te===void 0||((ce=te.replace(/\s/g,""))===null||ce===void 0)?void 0:ce.split(";");Ie==null||Ie.map(function(ze){var _t=ze.split("=");_t[0]==="_educoder_session"&&Ee(_t[1])})},[]),Object(i.useEffect)(function(){T==="office"&&j()},[T,S]);var j=function(){var te=Object(C.a)(d.a.mark(function ce(){var Ie,ze,_t;return d.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return console.log("data:",S),Ie=S,S.startsWith("http")||(Ie=location.origin+Ie),ze=new URL(Ie).pathname.split("/").pop(),Ke.next=6,Object(l.U)({attachment_id:ze});case 6:_t=Ke.sent,ve(_t);case 8:case"end":return Ke.stop()}},ce)}));return function(){return te.apply(this,arguments)}}(),W=function(){if(S.startsWith("http")||S.startsWith("blob:")){he();return}Object(f.x)(D||"educoder",S,D)},he=function(){Object(f.v)(D||"educoder",decodeURIComponent(S))};return n.a.createElement("div",{style:Object(b.a)({},F||{}),className:"".concat(K&&a.a.bgBlack," ").concat(T?a.a.wrp:"hide")},X&&n.a.createElement("div",{className:a.a.close,ref:re},!!N&&n.a.createElement(v.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return re.current}},n.a.createElement("span",{onClick:function(){U(),N()}},n.a.createElement("i",{className:"icon-yulanpizhu"}))),!V&&n.a.createElement(v.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return re.current}},n.a.createElement("span",{onClick:he},n.a.createElement("i",{className:"icon-quxiaozhiding"}))),n.a.createElement(v.a,{title:"\u5173\u95ED",getPopupContainer:function(){return re.current}},n.a.createElement("span",{className:"",onClick:U},n.a.createElement("i",{className:"icon-guanbi1"})))),n.a.createElement("div",{className:"".concat(a.a[k]," ").concat(k," ").concat(a.a.monaco," ").concat(T==="txt"?"show":"hide")},T==="txt"&&n.a.createElement(o.b,I)),T==="audio"&&n.a.createElement("audio",{src:"".concat(((p=S)===null||p===void 0?void 0:p.indexOf("http://"))>-1||((x=S)===null||x===void 0?void 0:x.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(S),autoPlay:!0}),T==="video"&&n.a.createElement(n.a.Fragment,null,((_=S)===null||_===void 0?void 0:_.indexOf("http"))>-1?n.a.createElement("video",{controls:!0,src:"".concat(S),autoPlay:!0}):n.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(S),autoPlay:!0})),T==="office"&&ae&&n.a.createElement("iframe",{src:"".concat(oe,"/office.html?key=").concat(ae.key,"&url=").concat(ie+ae.url,"&callbackUrl=").concat(ie+ae.callbackUrl,"&fileType=").concat(ae.fileType,"&title=").concat(ae.title,"&model=").concat(h,"&officeServer=").concat(r.a.OFFICE_SERVER,"&disabledDownload=").concat(!!V)}),(T==="xlsx"||T==="doc"||T==="pptx"||T==="docx")&&n.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(Q.key,"&url=").concat(r.a.API_SERVER+Q.url,"&callbackUrl=").concat(r.a.API_SERVER+Q.callbackUrl,"&fileType=").concat(Q.fileType,"&title=").concat(Q.title,"&model=").concat(Q.model)}),T==="html"&&n.a.createElement("iframe",{src:S+"&disposition=inline"}),T==="pdf"&&n.a.createElement("embed",{className:a.a.embed,src:S}),T==="image"&&n.a.createElement("img",{src:"".concat(((B=S)===null||B===void 0?void 0:B.indexOf("http://"))>-1||((E=S)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(S)}),T==="other"&&n.a.createElement("div",null,n.a.createElement(G.a,{type:"primary",size:"large",onClick:W},n.a.createElement(s.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),T==="download"&&n.a.createElement(G.a,{type:"primary",size:"large",onClick:W},n.a.createElement(s.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Ge,fe,R){},pmY6:function(Ge,fe,R){"use strict";R.d(fe,"g",function(){return b}),R.d(fe,"f",function(){return C}),R.d(fe,"e",function(){return w}),R.d(fe,"h",function(){return m}),R.d(fe,"b",function(){return d}),R.d(fe,"a",function(){return i}),R.d(fe,"d",function(){return n}),R.d(fe,"c",function(){return e});var se=!1,G="__is_disposable_tracked__";function M(a){if(!se)return;if(a&&a!==i.None)try{a[G]=!0}catch(s){}}function v(a){if(!se)return a;var s=new Error("Potentially leaked disposable").stack;return setTimeout(function(){a[G]||console.log(s)},3e3),a}function b(a){return typeof a.dispose=="function"&&a.dispose.length===0}function C(a){return Array.isArray(a)?(a.forEach(function(s){s&&(M(s),s.dispose())}),[]):a?(M(a),a.dispose(),a):void 0}function w(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return a.forEach(M),v({dispose:function(){return C(a)}})}function m(a){var s=v({dispose:function(){M(s),a()}});return s}var d=function(){function a(){this._toDispose=new Set,this._isDisposed=!1}return a.prototype.dispose=function(){if(this._isDisposed)return;M(this),this._isDisposed=!0,this.clear()},a.prototype.clear=function(){this._toDispose.forEach(function(s){return s.dispose()}),this._toDispose.clear()},a.prototype.add=function(s){if(!s)return s;if(s===this)throw new Error("Cannot register a disposable on itself!");return M(s),this._isDisposed?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(s),s},a}(),i=function(){function a(){this._store=new d,v(this)}return a.prototype.dispose=function(){M(this),this._store.dispose()},a.prototype._register=function(s){if(s===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(s)},a.None=Object.freeze({dispose:function(){}}),a}(),n=function(){function a(){this._isDisposed=!1,v(this)}return Object.defineProperty(a.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(s){if(this._isDisposed||s===this._value)return;this._value&&this._value.dispose(),s&&M(s),this._value=s},enumerable:!0,configurable:!0}),a.prototype.clear=function(){this.value=void 0},a.prototype.dispose=function(){this._isDisposed=!0,M(this),this._value&&this._value.dispose(),this._value=void 0},a}(),e=function(){function a(s){this.object=s}return a.prototype.dispose=function(){},a}()},ppsT:function(Ge,fe,R){(function(se){var G,G;!function(M){if(!0)window.OSS=M(),Ge.exports=M();else var v}(function(){var M;return function(){function v(b,C,w){function m(n,e){if(!C[n]){if(!b[n]){var a=typeof G=="function"&&G;if(!e&&a)return G(n,!0);if(d)return d(n,!0);var s=new Error("Cannot find module '"+n+"'");throw s.code="MODULE_NOT_FOUND",s}var o=C[n]={exports:{}};b[n][0].call(o.exports,function(f){return m(b[n][1][f]||f)},o,o.exports,v,b,C,w)}return C[n].exports}for(var d=typeof G=="function"&&G,i=0;i<w.length;i++)m(w[i]);return m}return v}()({1:[function(v,b,C){"use strict";var w=v("./browser/client");w.Buffer=v("buffer").Buffer,w.co=v("co"),w.urllib=v("../shims/xhr"),w.version=v("./browser/version").version,b.exports=w},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(v,b,C){(function(w,m){"use strict";function d(N){return N&&N.__esModule?N:{default:N}}function i(N,Q){return N[Q]||N[Q.toLowerCase()]}function n(N,Q){var J=u.parse(N);if(!J.protocol){var ne=Q?"https://":"http://";J=u.parse(ne+N)}if(J.protocol!=="http:"&&J.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return J}function e(N,Q,J){var ne=J?"https://":"http://",ue=Q?"-internal.aliyuncs.com":".aliyuncs.com";return N.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(ue=".aliyuncs.com"),u.parse(ne+N+ue)}function a(){return document&&document.location&&document.location.protocol==="https:"}function s(N,Q){if(!(this instanceof s))return new s(N,Q);N&&N.inited?this.options=N:this.options=s.initOptions(N),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=D,this.agent=this.options.agent||K),this.ctx=Q,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var o=v("babel-runtime/regenerator"),f=d(o),l=v("babel-runtime/core-js/object/keys"),r=d(l),c=v("debug")("ali-oss"),A=v("./../../shims/crypto/crypto.js"),p=v("path"),x=v("copy-to"),_=v("mime"),B=v("xml2js"),E=v("humanize-ms"),g=v("agentkeepalive"),h=v("merge-descriptors"),u=v("url"),S=v("is-type-of"),O=v("platform"),T=v("utility"),D=v("urllib"),I=v("./version"),k=v("dateformat"),F=v("bowser"),X=v("../common/signUtils"),U=v("../common/utils"),K=new g;b.exports=s,s.initOptions=function(N){if(!N||!N.accessKeyId||!N.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var Q=a(),J={region:"oss-cn-hangzhou",internal:!1,secure:Q,bucket:null,endpoint:null,cname:!1};if((0,r.default)(N).forEach(function(ne){N[ne]!==void 0&&(J[ne]=N[ne])}),J.accessKeyId=J.accessKeyId.trim(),J.accessKeySecret=J.accessKeySecret.trim(),J.timeout&&(J.timeout=E(J.timeout)),J.endpoint)J.endpoint=n(J.endpoint,J.secure);else{if(!J.region)throw new Error("require options.endpoint or options.region");J.endpoint=e(J.region,J.internal,J.secure)}return J.inited=!0,J};var V=s.prototype;h(V,v("./object")),h(V,v("./managed_upload")),h(V,v("../common/multipart")),h(V,v("../common/thunkpool.js")),s.Wrapper=v("./wrapper"),V.signature=function(N){return c("authorization stringToSign: %s",N),X.computeSignature(this.options.accessKeySecret,N)},V.authorization=function(N,Q,J,ne){var ue=X.buildCanonicalString(N.toUpperCase(),Q,{headers:ne,parameters:J});return X.authorization(this.options.accessKeyId,this.options.accessKeySecret,ue)},V.createRequest=function(N){var Q={"x-oss-date":k(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(Q["x-oss-security-token"]=this.options.stsToken),x(N.headers).to(Q),i(Q,"Content-Type")||(N.mime===_.default_type&&(N.mime=""),N.mime&&N.mime.indexOf("/")>0?Q["Content-Type"]=N.mime:Q["Content-Type"]=_.getType(N.mime||p.extname(N.object||""))||"application/octet-stream"),N.content&&(Q["Content-Md5"]=A.createHash("md5").update(new m(N.content,"utf8")).digest("base64"),Q["Content-Length"]||(Q["Content-Length"]=N.content.length));var J=this._getResource(N);Q.authorization=this.authorization(N.method,J,N.subres,Q);var ne=this._getReqUrl(N);c("request %s %s, with headers %j, !!stream: %s",N.method,ne,Q,!!N.stream);var ue=N.timeout||this.options.timeout;return{url:ne,params:{agent:this.agent,method:N.method,content:N.content,stream:N.stream,headers:Q,timeout:ue,writeStream:N.writeStream,customResponse:N.customResponse,ctx:N.ctx||this.ctx}}},V.request=f.default.mark(function N(Q){var J,ne,ue,be;return f.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return J=this.createRequest(Q),ne=void 0,ue=void 0,de.prev=3,de.next=6,this.urllib.request(J.url,J.params);case 6:ne=de.sent,c("response %s %s, got %s, headers: %j",Q.method,J.url,ne.status,ne.headers),de.next=13;break;case 10:de.prev=10,de.t0=de.catch(3),ue=de.t0;case 13:if(be=void 0,!ne||!Q.successStatuses||Q.successStatuses.indexOf(ne.status)!==-1){de.next=26;break}return de.next=17,this.requestError(ne);case 17:if(be=de.sent,be.code!=="RequestTimeTooSkewed"){de.next=23;break}return this.options.amendTimeSkewed=+new Date(be.serverTime)-new Date,de.next=22,this.request(Q);case 22:return de.abrupt("return",de.sent);case 23:be.params=Q,de.next=30;break;case 26:if(!ue){de.next=30;break}return de.next=29,this.requestError(ue);case 29:be=de.sent;case 30:if(!be){de.next=32;break}throw be;case 32:if(!Q.xmlResponse){de.next=36;break}return de.next=35,this.parseXML(ne.data);case 35:ne.data=de.sent;case 36:return de.abrupt("return",ne);case 37:case"end":return de.stop()}},N,this,[[3,10]])}),V._getResource=function(N){var Q="/";return N.bucket&&(Q+=N.bucket+"/"),N.object&&(Q+=N.object),Q},V._isIP=function(N){return U._isIP(N)},V._escape=function(N){return T.encodeURIComponent(N).replace(/%2F/g,"/")},V._getReqUrl=function(N){var Q={};x(this.options.endpoint).to(Q);var J=this._isIP(Q.hostname),ne=this.options.cname;!N.bucket||ne||J||(Q.host=N.bucket+"."+Q.host);var ue="/";N.bucket&&J&&(ue+=N.bucket+"/"),N.object&&(ue+=this._escape(N.object).replace(/\+/g,"%2B")),Q.pathname=ue;var be={};if(N.query&&h(be,N.query),N.subres){var de={};S.string(N.subres)?de[N.subres]="":S.array(N.subres)?N.subres.forEach(function(_e){de[_e]=""}):de=N.subres,h(be,de)}return Q.query=be,u.format(Q)},V._getUserAgent=function(){var N=w&&w.browser?"js":"nodejs",Q="aliyun-sdk-"+N+"/"+I.version,J=O.description;return!J&&w&&(J="Node.js "+w.version.slice(1)+" on "+w.platform+" "+w.arch),this._checkUserAgent(Q+" "+J)},V._checkUserAgent=function(N){return N.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},V.checkBrowserAndVersion=function(N,Q){return F.name===N&&F.version.split(".")[0]===Q},V.parseXML=function(N){return function(Q){m.isBuffer(N)&&(N=N.toString()),B.parseString(N,{explicitRoot:!1,explicitArray:!1},Q)}},V.requestError=f.default.mark(function N(Q){var J,ne,ue,be;return f.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(J=null,Q.data&&Q.data.length){de.next=5;break}Q.status===-1||Q.status===-2?(J=new Error(Q.message),J.name=Q.name,J.status=Q.status,J.code=Q.name):(Q.status===404?(J=new Error("Object not exists"),J.name="NoSuchKeyError",J.status=404,J.code="NoSuchKey"):Q.status===412?(J=new Error("Pre condition failed"),J.name="PreconditionFailedError",J.status=412,J.code="PreconditionFailed"):(J=new Error("Unknow error, status: "+Q.status),J.name="UnknowError",J.status=Q.status),J.requestId=Q.headers["x-oss-request-id"],J.host=""),de.next=30;break;case 5:return ne=String(Q.data),c("request response error data: %s",ne),ue=void 0,de.prev=8,de.next=11,this.parseXML(ne)||{};case 11:ue=de.sent,de.next=21;break;case 14:return de.prev=14,de.t0=de.catch(8),c(ne),de.t0.message+=`
raw xml: `+ne,de.t0.status=Q.status,de.t0.requestId=Q.headers["x-oss-request-id"],de.abrupt("return",de.t0);case 21:be=ue.Message||"unknow request error, status: "+Q.status,ue.Condition&&(be+=" (condition: "+ue.Condition+")"),J=new Error(be),J.name=ue.Code?ue.Code+"Error":"UnknowError",J.status=Q.status,J.code=ue.Code,J.requestId=ue.RequestId,J.hostId=ue.HostId,J.serverTime=ue.ServerTime;case 30:return c("generate error %j",J),de.abrupt("return",J);case 32:case"end":return de.stop()}},N,this,[[8,14]])})}).call(this,v("_process"),v("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(v,b,C){(function(w){"use strict";function m(x){return x&&x.__esModule?x:{default:x}}function d(x,_){if(!(this instanceof d))return new d(x,_);p.call(this,_),this.file=x,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var i=v("babel-runtime/core-js/array/from"),n=m(i),e=v("babel-runtime/regenerator"),a=m(e),s=v("is-type-of"),o=v("util"),f=v("path"),l=v("mime"),r=v("copy-to"),c=C;c.multipartUpload=a.default.mark(function x(_,B,E){var g,h,u,S,O,T,D,I,k;return a.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(this.resetCancelFlag(),E=E||{},!E.checkpoint||!E.checkpoint.uploadId){F.next=6;break}return F.next=5,this._resumeMultipart(E.checkpoint,E);case 5:return F.abrupt("return",F.sent);case 6:return g=102400,E.mime||(s.file(B)?E.mime=l.getType(f.extname(B.name)):s.blob(B)?E.mime=B.type:E.mime=l.getType(f.extname(B))),E.headers=E.headers||{},this._convertMetaToHeaders(E.meta,E.headers),F.next=12,this._getFileSize(B);case 12:if(!((h=F.sent)<g)){F.next=25;break}return u=this._createStream(B,0,h),E.contentLength=h,F.next=18,this.putStream(_,u,E);case 18:if(S=F.sent,!E||!E.progress){F.next=22;break}return F.next=22,E.progress(1);case 22:return O={res:S.res,bucket:this.options.bucket,name:_,etag:S.res.headers.etag},(E.headers&&E.headers["x-oss-callback"]||E.callback)&&(O.data=S.data),F.abrupt("return",O);case 25:if(!(E.partSize&&E.partSize<g)){F.next=27;break}throw new Error("partSize must not be smaller than "+g);case 27:return F.next=29,this.initMultipartUpload(_,E);case 29:if(T=F.sent,D=T.uploadId,I=this._getPartSize(h,E.partSize),k={file:B,name:_,fileSize:h,partSize:I,uploadId:D,doneParts:[]},!E||!E.progress){F.next=36;break}return F.next=36,E.progress(0,k,T.res);case 36:return F.next=38,this._resumeMultipart(k,E);case 38:return F.abrupt("return",F.sent);case 39:case"end":return F.stop()}},x,this)}),c._resumeMultipart=a.default.mark(function x(_,B){var E,g,h,u,S,O,T,D,I,k,F,X,U,K,V,N,Q,J,ne,ue,be;return a.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(!this.isCancel()){de.next=2;break}throw this._makeCancelEvent();case 2:if(E=_.file,g=_.fileSize,h=_.partSize,u=_.uploadId,S=_.doneParts,O=_.name,T=[],S.length>0&&r(S).to(T),D=this._divideParts(g,h),I=D.length,k=!1,F=a.default.mark(function _e(me,Ee){var ge,Ae,ae;return a.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(me.isCancel()){ve.next=21;break}return ve.prev=1,ge=D[Ee-1],Ae={stream:me._createStream(E,ge.start,ge.end),size:ge.end-ge.start},ve.next=6,me._uploadPart(O,u,Ee,Ae);case 6:if(ae=ve.sent,me.isCancel()||k){ve.next=13;break}if(_.doneParts.push({number:Ee,etag:ae.res.headers.etag}),T.push({number:Ee,etag:ae.res.headers.etag}),!B||!B.progress){ve.next=13;break}return ve.next=13,B.progress(S.length/I,_,ae.res);case 13:ve.next=21;break;case 15:if(ve.prev=15,ve.t0=ve.catch(1),me.isCancel()){ve.next=21;break}throw me.cancel(),ve.t0.partNum=Ee,ve.t0;case 21:case"end":return ve.stop()}},_e,this,[[1,15]])}),X=(0,n.default)(new Array(I),function(_e,me){return me+1}),U=T.map(function(_e){return _e.number}),K=X.filter(function(_e){return U.indexOf(_e)<0}),V=5,N=B.parallel||V,!this.checkBrowserAndVersion("Internet Explorer","10")&&N!==1){de.next=26;break}Q=0;case 16:if(!(Q<K.length)){de.next=24;break}if(!this.isCancel()){de.next=19;break}throw this._makeCancelEvent();case 19:return de.next=21,F(this,K[Q]);case 21:Q++,de.next=16;break;case 24:de.next=40;break;case 26:for(J=[],ne=0;ne<K.length;ne++)J.push(F(this,K[ne]));return de.next=30,this._thunkPool(J,N);case 30:if(ue=de.sent,k=!0,!(ue&&ue.length>0)){de.next=37;break}throw this.resetCancelFlag(),be=ue[0],be.message="Failed to upload some parts with error: "+be.toString()+" part_num: "+be.partNum,be;case 37:if(!this.isCancel()){de.next=40;break}throw J=null,this._makeCancelEvent();case 40:return de.next=42,this.completeMultipartUpload(O,u,T,B);case 42:return de.abrupt("return",de.sent);case 43:case"end":return de.stop()}},x,this)}),s.file=function(x){return typeof File!="undefined"&&x instanceof File},s.blob=function(x){return typeof Blob!="undefined"&&x instanceof Blob},c._getFileSize=a.default.mark(function x(_){var B;return a.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(!s.buffer(_)){E.next=4;break}return E.abrupt("return",_.length);case 4:if(!s.blob(_)&&!s.file(_)){E.next=6;break}return E.abrupt("return",_.size);case 6:if(!s.string(_)){E.next=11;break}return E.next=9,this._statFile(_);case 9:return B=E.sent,E.abrupt("return",B.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return E.stop()}},x,this)});var A=v("stream"),p=A.Readable;o.inherits(d,p),d.prototype.readFileAndPush=function(x){if(this.fileBuffer)for(var _=!0;_&&this.fileBuffer&&this.start<this.fileBuffer.length;){var B=this.start,E=B+x;E=E>this.fileBuffer.length?this.fileBuffer.length:E,this.start=E,_=this.push(this.fileBuffer.slice(B,E))}},d.prototype._read=function(x){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);x=x||16384;var _=this;this.reader.onload=function(B){_.fileBuffer=new w(new Uint8Array(B.target.result)),_.file=null,_.readFileAndPush(x)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(x)},c._createStream=function(x,_,B){if(s.blob(x)||s.file(x))return new d(x.slice(_,B));throw new Error("_createStream requires File/String.")},c._getPartSize=function(x,_){return _?Math.max(Math.ceil(x/1e4),_):1048576},c._divideParts=function(x,_){for(var B=Math.ceil(x/_),E=[],g=0;g<B;g++){var h=_*g,u=Math.min(h+_,x);E.push({start:h,end:u})}return E},c._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,v("buffer").Buffer)},{"babel-runtime/core-js/array/from":16,"babel-runtime/regenerator":33,buffer:38,"copy-to":43,"is-type-of":165,mime:242,path:170,stream:195,util:207}],4:[function(v,b,C){"use strict";function w(_){return _&&_.__esModule?_:{default:_}}var m=v("babel-runtime/core-js/object/keys"),d=w(m),i=v("babel-runtime/regenerator"),n=w(i),e=v("debug")("ali-oss:object"),a=v("utility"),s=v("fs"),o=v("is-type-of"),f=v("url"),l=v("copy-to"),r=v("path"),c=v("mime"),A=v("../common/callback"),p=v("../common/signUtils"),x=C;x.append=n.default.mark(function _(B,E,g){var h;return n.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return g=g||{},g.position===void 0&&(g.position="0"),g.subres={append:"",position:g.position},g.method="POST",u.next=6,this.put(B,E,g);case 6:return h=u.sent,h.nextAppendPosition=h.res.headers["x-oss-next-append-position"],u.abrupt("return",h);case 9:case"end":return u.stop()}},_,this)}),x.put=n.default.mark(function _(B,E,g){var h,u,S,O,T,D;return n.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(h=void 0,g=g||{},!o.buffer(E)){I.next=6;break}h=E,I.next=18;break;case 6:if(!o.blob(E)&&!o.file(E)){I.next=17;break}return g.mime||(o.file(E)?g.mime=c.getType(r.extname(E.name)):g.mime=E.type),u=this._createStream(E,0,E.size),I.next=11,this._getFileSize(E);case 11:return g.contentLength=I.sent,I.next=14,this.putStream(B,u,g);case 14:return I.abrupt("return",I.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return g.headers=g.headers||{},this._convertMetaToHeaders(g.meta,g.headers),S=g.method||"PUT",O=this._objectRequestParams(S,B,g),A.encodeCallback(O,g),O.mime=g.mime,O.content=h,O.successStatuses=[200],I.next=28,this.request(O);case 28:return T=I.sent,D={name:B,url:this._objectUrl(B),res:T.res},O.headers&&O.headers["x-oss-callback"]&&(D.data=JSON.parse(T.data.toString())),I.abrupt("return",D);case 32:case"end":return I.stop()}},_,this)}),x.putStream=n.default.mark(function _(B,E,g){var h,u,S,O;return n.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return g=g||{},g.headers=g.headers||{},g.contentLength?g.headers["Content-Length"]=g.contentLength:g.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(g.meta,g.headers),h=g.method||"PUT",u=this._objectRequestParams(h,B,g),A.encodeCallback(u,g),u.mime=g.mime,u.stream=E,u.successStatuses=[200],T.next=12,this.request(u);case 12:return S=T.sent,O={name:B,url:this._objectUrl(B),res:S.res},u.headers&&u.headers["x-oss-callback"]&&(O.data=JSON.parse(S.data.toString())),T.abrupt("return",O);case 16:case"end":return T.stop()}},_,this)}),x.head=n.default.mark(function _(B,E){var g,h,u;return n.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return g=this._objectRequestParams("HEAD",B,E),g.successStatuses=[200,304],S.next=4,this.request(g);case 4:return h=S.sent,u={meta:null,res:h.res,status:h.status},h.status===200&&(0,d.default)(h.headers).forEach(function(O){O.indexOf("x-oss-meta-")===0&&(u.meta||(u.meta={}),u.meta[O.substring(11)]=h.headers[O])}),S.abrupt("return",u);case 8:case"end":return S.stop()}},_,this)}),x.get=n.default.mark(function _(B,E,g){var h,u,S,O;return n.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return h=null,u=!1,o.writableStream(E)?h=E:o.string(E)?(h=s.createWriteStream(E),u=!0):g=E,g=g||{},g.process&&(g.subres=g.subres||{},g.subres["x-oss-process"]=g.process),S=void 0,T.prev=6,O=this._objectRequestParams("GET",B,g),O.writeStream=h,O.successStatuses=[200,206,304],T.next=12,this.request(O);case 12:S=T.sent,u&&h.destroy(),T.next=24;break;case 16:if(T.prev=16,T.t0=T.catch(6),!u){T.next=23;break}return h.destroy(),e("get error: %s, delete the exists file %s",T.t0,E),T.next=23,this._deleteFileSafe(E);case 23:throw T.t0;case 24:return T.abrupt("return",{res:S.res,content:S.data});case 25:case"end":return T.stop()}},_,this,[[6,16]])}),x.getStream=n.default.mark(function _(B,E){var g,h;return n.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return E=E||{},g=this._objectRequestParams("GET",B,E),g.customResponse=!0,g.successStatuses=[200,206,304],u.next=6,this.request(g);case 6:return h=u.sent,u.abrupt("return",{stream:h.res,res:{status:h.status,headers:h.headers}});case 8:case"end":return u.stop()}},_,this)}),x.delete=n.default.mark(function _(B,E){var g,h;return n.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return g=this._objectRequestParams("DELETE",B,E),g.successStatuses=[204],u.next=4,this.request(g);case 4:return h=u.sent,u.abrupt("return",{res:h.res});case 6:case"end":return u.stop()}},_,this)}),x.deleteMulti=n.default.mark(function _(B,E){var g,h,u,S,O,T;return n.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:for(E=E||{},g=`<?xml version="1.0" encoding="UTF-8"?>
<Delete>
`,E.quiet?g+=` <Quiet>true</Quiet>
`:g+=` <Quiet>false</Quiet>
`,h=0;h<B.length;h++)g+=" <Object><Key>"+a.escape(this._objectName(B[h]))+`</Key></Object>
`;return g+="</Delete>",e("delete multi objects: %s",g),E.subres="delete",u=this._objectRequestParams("POST","",E),u.mime="xml",u.content=g,u.xmlResponse=!0,u.successStatuses=[200],D.next=14,this.request(u);case 14:return S=D.sent,O=S.data,T=O&&O.Deleted||null,T&&(Array.isArray(T)||(T=[T]),T=T.map(function(I){return I.Key})),D.abrupt("return",{res:S.res,deleted:T});case 19:case"end":return D.stop()}},_,this)}),x.copy=n.default.mark(function _(B,E,g){var h,u,S;return n.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return g=g||{},g.headers=g.headers||{},(0,d.default)(g.headers).forEach(function(T){g.headers["x-oss-copy-source-"+T.toLowerCase()]=g.headers[T]}),g.meta&&(g.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(g.meta,g.headers),E=E[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(E):"/"+encodeURIComponent(E.slice(1)),g.headers["x-oss-copy-source"]=E,h=this._objectRequestParams("PUT",B,g),h.xmlResponse=!0,h.successStatuses=[200,304],O.next=12,this.request(h);case 12:return u=O.sent,S=u.data,S&&(S={etag:S.ETag,lastModified:S.LastModified}),O.abrupt("return",{data:S,res:u.res});case 16:case"end":return O.stop()}},_,this)}),x.putMeta=n.default.mark(function _(B,E,g){return n.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,this.copy(B,B,{meta:E||{},timeout:g&&g.timeout,ctx:g&&g.ctx});case 2:return h.abrupt("return",h.sent);case 3:case"end":return h.stop()}},_,this)}),x.list=n.default.mark(function _(B,E){var g,h,u,S,O;return n.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return g=this._objectRequestParams("GET","",E),g.query=B,g.xmlResponse=!0,g.successStatuses=[200],T.next=6,this.request(g);case 6:return h=T.sent,u=h.data.Contents,S=this,u&&(Array.isArray(u)||(u=[u]),u=u.map(function(D){return{name:D.Key,url:S._objectUrl(D.Key),lastModified:D.LastModified,etag:D.ETag,type:D.Type,size:Number(D.Size),storageClass:D.StorageClass,owner:{id:D.Owner.ID,displayName:D.Owner.DisplayName}}})),O=h.data.CommonPrefixes||null,O&&(Array.isArray(O)||(O=[O]),O=O.map(function(D){return D.Prefix})),T.abrupt("return",{res:h.res,objects:u,prefixes:O,nextMarker:h.data.NextMarker||null,isTruncated:h.data.IsTruncated==="true"});case 13:case"end":return T.stop()}},_,this)}),x.putACL=n.default.mark(function _(B,E,g){var h,u;return n.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return g=g||{},g.subres="acl",g.headers=g.headers||{},g.headers["x-oss-object-acl"]=E,B=this._objectName(B),h=this._objectRequestParams("PUT",B,g),h.successStatuses=[200],S.next=9,this.request(h);case 9:return u=S.sent,S.abrupt("return",{res:u.res});case 11:case"end":return S.stop()}},_,this)}),x.getACL=n.default.mark(function _(B,E){var g,h;return n.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return E=E||{},E.subres="acl",B=this._objectName(B),g=this._objectRequestParams("GET",B,E),g.successStatuses=[200],g.xmlResponse=!0,u.next=8,this.request(g);case 8:return h=u.sent,u.abrupt("return",{acl:h.data.AccessControlList.Grant,owner:{id:h.data.Owner.ID,displayName:h.data.Owner.DisplayName},res:h.res});case 10:case"end":return u.stop()}},_,this)}),x.restore=n.default.mark(function _(B,E){var g,h;return n.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return E=E||{},E.subres="restore",g=this._objectRequestParams("POST",B,E),g.successStatuses=[202],u.next=6,this.request(g);case 6:return h=u.sent,u.abrupt("return",{res:h.res});case 8:case"end":return u.stop()}},_,this)}),x.signatureUrl=function(_,B){B=B||{},_=this._objectName(_),B.method=B.method||"GET";var E=a.timestamp()+(B.expires||1800),g={bucket:this.options.bucket,object:_},h=this._getResource(g);this.options.stsToken&&(B["security-token"]=this.options.stsToken);var u=p._signatureForURL(this.options.accessKeySecret,B,h,E),S=f.parse(this._getReqUrl(g));return S.query={OSSAccessKeyId:this.options.accessKeyId,Expires:E,Signature:u.Signature},l(u.subResource).to(S.query),S.format()},x.getObjectUrl=function(_,B){return B?B[B.length-1]!=="/"&&(B+="/"):B=this.options.endpoint.format(),B+this._escape(this._objectName(_))},x._objectUrl=function(_){return this._getReqUrl({bucket:this.options.bucket,object:_})},x.generateObjectUrl=function(_,B){if(B)B[B.length-1]!=="/"&&(B+="/");else{B=this.options.endpoint.format();var E=f.parse(B),g=this.options.bucket;E.hostname=g+"."+E.hostname,E.host=g+"."+E.host,B=E.format()}return B+this._escape(this._objectName(_))},x._objectRequestParams=function(_,B,E){if(!this.options.bucket)throw new Error("Please create a bucket first");E=E||{},B=this._objectName(B);var g={object:B,bucket:this.options.bucket,method:_,subres:E&&E.subres,timeout:E&&E.timeout,ctx:E&&E.ctx};return E.headers&&(g.headers={},l(E.headers).to(g.headers)),g},x._objectName=function(_){return _.replace(/^\/+/,"")},x._statFile=function(_){return function(B){s.stat(_,B)}},x._convertMetaToHeaders=function(_,B){_&&(0,d.default)(_).forEach(function(E){B["x-oss-meta-"+E]=_[E]})},x._deleteFileSafe=function(_){return function(B){s.exists(_,function(E){E?s.unlink(_,function(g){g&&e("unlink %j error: %s",_,g),B()}):B()})}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(v,b,C){"use strict";C.version="5.3.1"},{}],6:[function(v,b,C){"use strict";function w(r){return r&&r.__esModule?r:{default:r}}function m(r){return r&&typeof r.next=="function"&&typeof r.throw=="function"}function d(r){if(!r)return!1;var c=r.constructor;return!!c&&(c.name==="GeneratorFunction"||c.displayName==="GeneratorFunction"||m(c.prototype)||m(r.prototype))}function i(r,c){var A=new r(c),p=(0,o.default)(A),x=(0,o.default)((0,a.default)(A));p.concat(x).forEach(function(_){d(A[_])?this[_]=f.wrap(A[_]).bind(A):this[_]=A[_]},this)}function n(r){if(!(this instanceof n))return new n(r);i.call(this,l,r)}var e=v("babel-runtime/core-js/object/get-prototype-of"),a=w(e),s=v("babel-runtime/core-js/object/keys"),o=w(s),f=v("co"),l=v("./client");b.exports=n,n.STS=function r(c){if(!(this instanceof r))return new r(c);i.call(this,l.STS,c)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(v,b,C){(function(w){"use strict";function m(a){return a&&a.__esModule?a:{default:a}}var d=v("babel-runtime/core-js/object/keys"),i=m(d),n=v("babel-runtime/core-js/json/stringify"),e=m(n);C.encodeCallback=function(a,s){if(a.headers=a.headers||{},!Object.prototype.hasOwnProperty.call(a.headers,"x-oss-callback")&&s.callback){var o={callbackUrl:encodeURI(s.callback.url),callbackBody:s.callback.body};s.callback.host&&(o.callbackHost=s.callback.host),s.callback.contentType&&(o.callbackBodyType=s.callback.contentType);var f=new w((0,e.default)(o)).toString("base64");if(a.headers["x-oss-callback"]=f,s.callback.customValue){var l={};(0,i.default)(s.callback.customValue).forEach(function(r){l["x:"+r]=s.callback.customValue[r]}),a.headers["x-oss-callback-var"]=new w((0,e.default)(l)).toString("base64")}}}}).call(this,v("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(v,b,C){"use strict";var w=v("babel-runtime/regenerator"),m=function(e){return e&&e.__esModule?e:{default:e}}(w),d=v("copy-to"),i=v("./callback"),n=C;n.listUploads=m.default.mark(function e(a,s){var o,f,l,r;return m.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=s||{},o={},d(s).to(o),o.subres="uploads",f=this._objectRequestParams("GET","",o),f.query=a,f.xmlResponse=!0,f.successStatuses=[200],c.next=10,this.request(f);case 10:return l=c.sent,r=l.data.Upload||[],Array.isArray(r)||(r=[r]),r=r.map(function(A){return{name:A.Key,uploadId:A.UploadId,initiated:A.Initiated}}),c.abrupt("return",{res:l.res,uploads:r,bucket:l.data.Bucket,nextKeyMarker:l.data.NextKeyMarker,nextUploadIdMarker:l.data.NextUploadIdMarker,isTruncated:l.data.IsTruncated==="true"});case 15:case"end":return c.stop()}},e,this)}),n.listParts=m.default.mark(function e(a,s,o,f){var l,r,c;return m.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return f=f||{},l={},d(f).to(l),l.subres={uploadId:s},r=this._objectRequestParams("GET",a,l),r.query=o,r.xmlResponse=!0,r.successStatuses=[200],A.next=10,this.request(r);case 10:return c=A.sent,A.abrupt("return",{res:c.res,uploadId:c.data.UploadId,bucket:c.data.Bucket,name:c.data.Key,partNumberMarker:c.data.PartNumberMarker,nextPartNumberMarker:c.data.NextPartNumberMarker,maxParts:c.data.MaxParts,isTruncated:c.data.IsTruncated,parts:c.data.Part||[]});case 12:case"end":return A.stop()}},e,this)}),n.abortMultipartUpload=m.default.mark(function e(a,s,o){var f,l,r;return m.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.cancel(),o=o||{},f={},d(o).to(f),f.subres={uploadId:s},l=this._objectRequestParams("DELETE",a,f),l.successStatuses=[204],c.next=9,this.request(l);case 9:return r=c.sent,c.abrupt("return",{res:r.res});case 11:case"end":return c.stop()}},e,this)}),n.initMultipartUpload=m.default.mark(function e(a,s){var o,f,l;return m.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return s=s||{},o={},d(s).to(o),o.headers=o.headers||{},this._convertMetaToHeaders(s.meta,o.headers),o.subres="uploads",f=this._objectRequestParams("POST",a,o),f.mime=s.mime,f.xmlResponse=!0,f.successStatuses=[200],r.next=12,this.request(f);case 12:return l=r.sent,r.abrupt("return",{res:l.res,bucket:l.data.Bucket,name:l.data.Key,uploadId:l.data.UploadId});case 14:case"end":return r.stop()}},e,this)}),n.uploadPart=m.default.mark(function e(a,s,o,f,l,r,c){var A;return m.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return A={stream:this._createStream(f,l,r),size:r-l},p.next=3,this._uploadPart(a,s,o,A,c);case 3:return p.abrupt("return",p.sent);case 4:case"end":return p.stop()}},e,this)}),n.completeMultipartUpload=m.default.mark(function e(a,s,o,f){var l,r,c,A,p,x,_,B;return m.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:for(l=o.concat().sort(function(g,h){return g.number-h.number}).filter(function(g,h,u){return!h||g.number!==u[h-1].number}),r=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,c=0;c<l.length;c++)A=l[c],r+=`<Part>
`,r+="<PartNumber>"+A.number+`</PartNumber>
`,r+="<ETag>"+A.etag+`</ETag>
`,r+=`</Part>
`;return r+="</CompleteMultipartUpload>",f=f||{},p={},d(f).to(p),p.subres={uploadId:s},x=this._objectRequestParams("POST",a,p),i.encodeCallback(x,p),x.mime="xml",x.content=r,x.headers&&x.headers["x-oss-callback"]||(x.xmlResponse=!0),x.successStatuses=[200],E.next=16,this.request(x);case 16:return _=E.sent,B={res:_.res,bucket:x.bucket,name:a,etag:_.res.headers.etag},x.headers&&x.headers["x-oss-callback"]&&(B.data=JSON.parse(_.data.toString())),E.abrupt("return",B);case 20:case"end":return E.stop()}},e,this)}),n._uploadPart=m.default.mark(function e(a,s,o,f,l){var r,c,A;return m.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return l=l||{},r={},d(l).to(r),r.headers={"Content-Length":f.size},r.subres={partNumber:o,uploadId:s},c=this._objectRequestParams("PUT",a,r),c.mime=r.mime,c.stream=f.stream,c.successStatuses=[200],p.next=11,this.request(c);case 11:return A=p.sent,f.stream=null,c.stream=null,p.abrupt("return",{name:a,etag:A.res.headers.etag,res:A.res});case 15:case"end":return p.stop()}},e,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(v,b,C){(function(w){"use strict";function m(o){return o&&o.__esModule?o:{default:o}}var d=v("babel-runtime/core-js/json/stringify"),i=m(d),n=v("babel-runtime/core-js/object/keys"),e=m(n),a=v("./../../shims/crypto/crypto.js"),s=v("is-type-of");C.buildCanonicalizedResource=function(o,f){var l=""+o,r="?";if(s.string(f)&&f.trim()!=="")l+=r+f;else if(s.array(f))f.sort(),l+=r+f.join("&");else if(f){var c=function(p,x){return p[0]>x[0]?1:p[0]<x[0]?-1:0},A=function(p){l+=r+p,f[p]&&(l+="="+f[p]),r="&"};(0,e.default)(f).sort(c).forEach(A)}return l},C.buildCanonicalString=function(o,f,l,r){l=l||{};var c=l.headers||{},A=[],p={},x=[o.toUpperCase(),c["Content-Md5"]||"",c["Content-Type"]||c["Content-Type".toLowerCase()],r||c["x-oss-date"]];return(0,e.default)(c).forEach(function(_){var B=_.toLowerCase();B.indexOf("x-oss-")===0&&(p[B]=String(c[_]).trim())}),(0,e.default)(p).sort().forEach(function(_){A.push(_+":"+p[_])}),x=x.concat(A),x.push(this.buildCanonicalizedResource(f,l.parameters)),x.join(`
`)},C.computeSignature=function(o,f){return a.createHmac("sha1",o).update(new w(f,"utf8")).digest("base64")},C.authorization=function(o,f,l){return"OSS "+o+":"+this.computeSignature(f,l)},C._signatureForURL=function(o,f,l,r){var c={},A={};if(f.process&&(A["x-oss-process"]=f.process),f.response&&(0,e.default)(f.response).forEach(function(B){var E="response-"+B.toLowerCase();A[E]=f.response[B]}),(0,e.default)(f).forEach(function(B){var E=B.toLowerCase(),g=f[B];E.indexOf("x-oss-")===0?c[E]=g:E.indexOf("content-md5")===0||E.indexOf("content-type")===0?c[B]=g:E!=="expires"&&E!=="response"&&E!=="process"&&E!=="method"&&(A[E]=g)}),Object.prototype.hasOwnProperty.call(f,"security-token")&&(A["security-token"]=f["security-token"]),Object.prototype.hasOwnProperty.call(f,"callback")){var p={callbackUrl:encodeURI(f.callback.url),callbackBody:f.callback.body};if(f.callback.host&&(p.callbackHost=f.callback.host),f.callback.contentType&&(p.callbackBodyType=f.callback.contentType),A.callback=new w((0,i.default)(p)).toString("base64"),f.callback.customValue){var x={};(0,e.default)(f.callback.customValue).forEach(function(B){x["x:"+B]=f.callback.customValue[B]}),A["callback-var"]=new w((0,i.default)(x)).toString("base64")}}var _=this.buildCanonicalString(f.method,l,{headers:c,parameters:A},r.toString());return{Signature:this.computeSignature(o,_),subResource:A}}}).call(this,v("buffer").Buffer)},{"./../../shims/crypto/crypto.js":237,"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38,"is-type-of":165}],10:[function(v,b,C){"use strict";var w=v("babel-runtime/regenerator"),m=function(a){return a&&a.__esModule?a:{default:a}}(w),d=v("co"),i=v("co-priority-queue"),n=v("any-promise"),e=C;e._thunkPool=function(a,s){function o(A,p){++r===A.length&&p(c)}function f(A,p){function x(){var u;return m.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:u=void 0;case 1:if(l.isCancel()){S.next=9;break}return S.next=4,E.next();case 4:return u=S.sent,S.next=7,u();case 7:S.next=1;break;case 9:g+=1,g===A&&(E.fns=[],E.buffer=[],p(c));case 11:case"end":return S.stop()}},B,this)}function _(u){console.error(u.stack)}for(var B=m.default.mark(x),E=new i,g=0,h=0;h<A;h++)d(x).catch(_);return function(u,S){return function(O){E.push(m.default.mark(function T(){return m.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.prev=0,D.t0=O,D.next=4,u;case 4:D.t1=D.sent,(0,D.t0)(null,D.t1),D.next=11;break;case 8:D.prev=8,D.t2=D.catch(0),O(D.t2);case 11:case"end":return D.stop()}},T,this,[[0,8]])}),S)}}}var l=this,r=0,c=[];return new n(function(A){function p(g){return m.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,B(a[g]);case 2:o(a,A);case 3:case"end":return h.stop()}},_,this)}function x(g){c.push(g),o(a,A)}for(var _=m.default.mark(p),B=new f(s,A),E=0;E<a.length;E++)d(p(E)).catch(x)})},e.cancel=function(){this.options.cancelFlag=!0},e.isCancel=function(){return this.options.cancelFlag},e.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(v,b,C){"use strict";C._isIP=function(w){var m=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,d=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return m.test(w)||d.test(w)}},{}],12:[function(v,b,C){function w(){}b.exports=w,b.exports.HttpsAgent=w},{}],13:[function(v,b,C){b.exports=v("./register")().Promise},{"./register":15}],14:[function(v,b,C){"use strict";var w=null;b.exports=function(m,d){return function(i,n){i=i||null,n=n||{};var e=n.global!==!1;if(w===null&&e&&(w=m["@@any-promise/REGISTRATION"]||null),w!==null&&i!==null&&w.implementation!==i)throw new Error('any-promise already defined as "'+w.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return w===null&&(w=i!==null&&n.Promise!==void 0?{Promise:n.Promise,implementation:i}:d(i),e&&(m["@@any-promise/REGISTRATION"]=w)),w}}},{}],15:[function(v,b,C){"use strict";function w(){if(window.Promise===void 0)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}b.exports=v("./loader")(window,w)},{"./loader":14}],16:[function(v,b,C){b.exports={default:v("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(v,b,C){b.exports={default:v("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(v,b,C){b.exports={default:v("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(v,b,C){b.exports={default:v("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(v,b,C){b.exports={default:v("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(v,b,C){b.exports={default:v("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(v,b,C){b.exports={default:v("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(v,b,C){b.exports={default:v("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(v,b,C){b.exports={default:v("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(v,b,C){b.exports={default:v("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(v,b,C){b.exports={default:v("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(v,b,C){b.exports={default:v("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(v,b,C){b.exports={default:v("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(v,b,C){b.exports={default:v("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(v,b,C){"use strict";C.__esModule=!0,C.default=function(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(v,b,C){"use strict";C.__esModule=!0;var w=v("../core-js/object/define-property"),m=function(d){return d&&d.__esModule?d:{default:d}}(w);C.default=function(){function d(i,n){for(var e=0;e<n.length;e++){var a=n[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),(0,m.default)(i,a.key,a)}}return function(i,n,e){return n&&d(i.prototype,n),e&&d(i,e),i}}()},{"../core-js/object/define-property":20}],32:[function(v,b,C){"use strict";function w(a){return a&&a.__esModule?a:{default:a}}C.__esModule=!0;var m=v("../core-js/symbol/iterator"),d=w(m),i=v("../core-js/symbol"),n=w(i),e=typeof n.default=="function"&&typeof d.default=="symbol"?function(a){return typeof a}:function(a){return a&&typeof n.default=="function"&&a.constructor===n.default&&a!==n.default.prototype?"symbol":typeof a};C.default=typeof n.default=="function"&&e(d.default)==="symbol"?function(a){return a===void 0?"undefined":e(a)}:function(a){return a&&typeof n.default=="function"&&a.constructor===n.default&&a!==n.default.prototype?"symbol":a===void 0?"undefined":e(a)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(v,b,C){b.exports=v("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(v,b,C){"use strict";function w(A){var p=A.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=A.indexOf("=");return x===-1&&(x=p),[x,x===p?0:4-x%4]}function m(A){var p=w(A),x=p[0],_=p[1];return 3*(x+_)/4-_}function d(A,p,x){return 3*(p+x)/4-x}function i(A){for(var p,x=w(A),_=x[0],B=x[1],E=new f(d(A,_,B)),g=0,h=B>0?_-4:_,u=0;u<h;u+=4)p=o[A.charCodeAt(u)]<<18|o[A.charCodeAt(u+1)]<<12|o[A.charCodeAt(u+2)]<<6|o[A.charCodeAt(u+3)],E[g++]=p>>16&255,E[g++]=p>>8&255,E[g++]=255&p;return B===2&&(p=o[A.charCodeAt(u)]<<2|o[A.charCodeAt(u+1)]>>4,E[g++]=255&p),B===1&&(p=o[A.charCodeAt(u)]<<10|o[A.charCodeAt(u+1)]<<4|o[A.charCodeAt(u+2)]>>2,E[g++]=p>>8&255,E[g++]=255&p),E}function n(A){return s[A>>18&63]+s[A>>12&63]+s[A>>6&63]+s[63&A]}function e(A,p,x){for(var _,B=[],E=p;E<x;E+=3)_=(A[E]<<16&16711680)+(A[E+1]<<8&65280)+(255&A[E+2]),B.push(n(_));return B.join("")}function a(A){for(var p,x=A.length,_=x%3,B=[],E=0,g=x-_;E<g;E+=16383)B.push(e(A,E,E+16383>g?g:E+16383));return _===1?(p=A[x-1],B.push(s[p>>2]+s[p<<4&63]+"==")):_===2&&(p=(A[x-2]<<8)+A[x-1],B.push(s[p>>10]+s[p>>4&63]+s[p<<2&63]+"=")),B.join("")}C.byteLength=m,C.toByteArray=i,C.fromByteArray=a;for(var s=[],o=[],f=typeof Uint8Array!="undefined"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,c=l.length;r<c;++r)s[r]=l[r],o[l.charCodeAt(r)]=r;o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],35:[function(v,b,C){!function(w,m,d){b!==void 0&&b.exports?b.exports=d():typeof M=="function"&&M.amd?M("bowser",d):w.bowser=d()}(this,0,function(){function w(o){function f(N){var Q=o.match(N);return Q&&Q.length>1&&Q[1]||""}function l(N){var Q=o.match(N);return Q&&Q.length>1&&Q[2]||""}var r,c=f(/(ipod|iphone|ipad)/i).toLowerCase(),A=/like android/i.test(o),p=!A&&/android/i.test(o),x=/nexus\s*[0-6]\s*/i.test(o),_=!x&&/nexus\s*[0-9]+/i.test(o),B=/CrOS/.test(o),E=/silk/i.test(o),g=/sailfish/i.test(o),h=/tizen/i.test(o),u=/(web|hpw)os/i.test(o),S=/windows phone/i.test(o),O=(/SamsungBrowser/i.test(o),!S&&/windows/i.test(o)),T=!c&&!E&&/macintosh/i.test(o),D=!p&&!g&&!h&&!u&&/linux/i.test(o),I=l(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),k=f(/version\/(\d+(\.\d+)?)/i),F=/tablet/i.test(o)&&!/tablet pc/i.test(o),X=!F&&/[^-]mobi/i.test(o),U=/xbox/i.test(o);/opera/i.test(o)?r={name:"Opera",opera:a,version:k||f(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(o)?r={name:"Opera",opera:a,version:f(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||k}:/SamsungBrowser/i.test(o)?r={name:"Samsung Internet for Android",samsungBrowser:a,version:k||f(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(o)?r={name:"Opera Coast",coast:a,version:k||f(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(o)?r={name:"Yandex Browser",yandexbrowser:a,version:k||f(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(o)?r={name:"UC Browser",ucbrowser:a,version:f(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(o)?r={name:"Maxthon",maxthon:a,version:f(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(o)?r={name:"Epiphany",epiphany:a,version:f(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(o)?r={name:"Puffin",puffin:a,version:f(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(o)?r={name:"Sleipnir",sleipnir:a,version:f(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(o)?r={name:"K-Meleon",kMeleon:a,version:f(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:S?(r={name:"Windows Phone",osname:"Windows Phone",windowsphone:a},I?(r.msedge=a,r.version=I):(r.msie=a,r.version=f(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(o)?r={name:"Internet Explorer",msie:a,version:f(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:B?r={name:"Chrome",osname:"Chrome OS",chromeos:a,chromeBook:a,chrome:a,version:f(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(o)?r={name:"Microsoft Edge",msedge:a,version:I}:/vivaldi/i.test(o)?r={name:"Vivaldi",vivaldi:a,version:f(/vivaldi\/(\d+(\.\d+)?)/i)||k}:g?r={name:"Sailfish",osname:"Sailfish OS",sailfish:a,version:f(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(o)?r={name:"SeaMonkey",seamonkey:a,version:f(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(o)?(r={name:"Firefox",firefox:a,version:f(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(o)&&(r.firefoxos=a,r.osname="Firefox OS")):E?r={name:"Amazon Silk",silk:a,version:f(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(o)?r={name:"PhantomJS",phantom:a,version:f(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(o)?r={name:"SlimerJS",slimer:a,version:f(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(o)||/rim\stablet/i.test(o)?r={name:"BlackBerry",osname:"BlackBerry OS",blackberry:a,version:k||f(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:u?(r={name:"WebOS",osname:"WebOS",webos:a,version:k||f(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(o)&&(r.touchpad=a)):/bada/i.test(o)?r={name:"Bada",osname:"Bada",bada:a,version:f(/dolfin\/(\d+(\.\d+)?)/i)}:h?r={name:"Tizen",osname:"Tizen",tizen:a,version:f(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||k}:/qupzilla/i.test(o)?r={name:"QupZilla",qupzilla:a,version:f(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||k}:/chromium/i.test(o)?r={name:"Chromium",chromium:a,version:f(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||k}:/chrome|crios|crmo/i.test(o)?r={name:"Chrome",chrome:a,version:f(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:p?r={name:"Android",version:k}:/safari|applewebkit/i.test(o)?(r={name:"Safari",safari:a},k&&(r.version=k)):c?(r={name:c=="iphone"?"iPhone":c=="ipad"?"iPad":"iPod"},k&&(r.version=k)):r=/googlebot/i.test(o)?{name:"Googlebot",googlebot:a,version:f(/googlebot\/(\d+(\.\d+))/i)||k}:{name:f(/^(.*)\/(.*) /),version:l(/^(.*)\/(.*) /)},!r.msedge&&/(apple)?webkit/i.test(o)?(/(apple)?webkit\/537\.36/i.test(o)?(r.name=r.name||"Blink",r.blink=a):(r.name=r.name||"Webkit",r.webkit=a),!r.version&&k&&(r.version=k)):!r.opera&&/gecko\//i.test(o)&&(r.name=r.name||"Gecko",r.gecko=a,r.version=r.version||f(/gecko\/(\d+(\.\d+)?)/i)),r.windowsphone||!p&&!r.silk?!r.windowsphone&&c?(r[c]=a,r.ios=a,r.osname="iOS"):T?(r.mac=a,r.osname="macOS"):U?(r.xbox=a,r.osname="Xbox"):O?(r.windows=a,r.osname="Windows"):D&&(r.linux=a,r.osname="Linux"):(r.android=a,r.osname="Android");var K="";r.windows?K=function(N){switch(N){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(f(/Windows ((NT|XP)( \d\d?.\d)?)/i)):r.windowsphone?K=f(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):r.mac?(K=f(/Mac OS X (\d+([_\.\s]\d+)*)/i),K=K.replace(/[_\s]/g,".")):c?(K=f(/os (\d+([_\s]\d+)*) like mac os x/i),K=K.replace(/[_\s]/g,".")):p?K=f(/android[ \/-](\d+(\.\d+)*)/i):r.webos?K=f(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):r.blackberry?K=f(/rim\stablet\sos\s(\d+(\.\d+)*)/i):r.bada?K=f(/bada\/(\d+(\.\d+)*)/i):r.tizen&&(K=f(/tizen[\/\s](\d+(\.\d+)*)/i)),K&&(r.osversion=K);var V=!r.windows&&K.split(".")[0];return F||_||c=="ipad"||p&&(V==3||V>=4&&!X)||r.silk?r.tablet=a:(X||c=="iphone"||c=="ipod"||p||x||r.blackberry||r.webos||r.bada)&&(r.mobile=a),r.msedge||r.msie&&r.version>=10||r.yandexbrowser&&r.version>=15||r.vivaldi&&r.version>=1||r.chrome&&r.version>=20||r.samsungBrowser&&r.version>=4||r.firefox&&r.version>=20||r.safari&&r.version>=6||r.opera&&r.version>=10||r.ios&&r.osversion&&r.osversion.split(".")[0]>=6||r.blackberry&&r.version>=10.1||r.chromium&&r.version>=20?r.a=a:r.msie&&r.version<10||r.chrome&&r.version<20||r.firefox&&r.version<20||r.safari&&r.version<6||r.opera&&r.version<10||r.ios&&r.osversion&&r.osversion.split(".")[0]<6||r.chromium&&r.version<20?r.c=a:r.x=a,r}function m(o){return o.split(".").length}function d(o,f){var l,r=[];if(Array.prototype.map)return Array.prototype.map.call(o,f);for(l=0;l<o.length;l++)r.push(f(o[l]));return r}function i(o){for(var f=Math.max(m(o[0]),m(o[1])),l=d(o,function(r){var c=f-m(r);return r+=new Array(c+1).join(".0"),d(r.split("."),function(A){return new Array(20-A.length).join("0")+A}).reverse()});--f>=0;){if(l[0][f]>l[1][f])return 1;if(l[0][f]!==l[1][f])return-1;if(f===0)return 0}}function n(o,f,l){var r=s;typeof f=="string"&&(l=f,f=void 0),f===void 0&&(f=!1),l&&(r=w(l));var c=""+r.version;for(var A in o)if(o.hasOwnProperty(A)&&r[A]){if(typeof o[A]!="string")throw new Error("Browser version in the minVersion map should be a string: "+A+": "+String(o));return i([c,o[A]])<0}return f}function e(o,f,l){return!n(o,f,l)}var a=!0,s=w(typeof navigator!="undefined"&&navigator.userAgent||"");return s.test=function(o){for(var f=0;f<o.length;++f){var l=o[f];if(typeof l=="string"&&l in s)return!0}return!1},s.isUnsupportedBrowser=n,s.compareVersions=i,s.check=e,s._detect=w,s.detect=w,s})},{}],36:[function(v,b,C){},{}],37:[function(v,b,C){function w(s){if(s&&!e(s))throw new Error("Unknown encoding: "+s)}function m(s){return s.toString(this.encoding)}function d(s){this.charReceived=s.length%2,this.charLength=this.charReceived?2:0}function i(s){this.charReceived=s.length%3,this.charLength=this.charReceived?3:0}var n=v("buffer").Buffer,e=n.isEncoding||function(s){switch(s&&s.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},a=C.StringDecoder=function(s){switch(this.encoding=(s||"utf8").toLowerCase().replace(/[-_]/,""),w(s),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=d;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=i;break;default:return void(this.write=m)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};a.prototype.write=function(s){for(var o="";this.charLength;){var f=s.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:s.length;if(s.copy(this.charBuffer,this.charReceived,0,f),this.charReceived+=f,this.charReceived<this.charLength)return"";s=s.slice(f,s.length),o=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var r=o.charCodeAt(o.length-1);if(!(r>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,s.length===0)return o;break}this.charLength+=this.surrogateSize,o=""}this.detectIncompleteChar(s);var l=s.length;this.charLength&&(s.copy(this.charBuffer,0,s.length-this.charReceived,l),l-=this.charReceived),o+=s.toString(this.encoding,0,l);var l=o.length-1,r=o.charCodeAt(l);if(r>=55296&&r<=56319){var c=this.surrogateSize;return this.charLength+=c,this.charReceived+=c,this.charBuffer.copy(this.charBuffer,c,0,c),s.copy(this.charBuffer,0,0,c),o.substring(0,l)}return o},a.prototype.detectIncompleteChar=function(s){for(var o=s.length>=3?3:s.length;o>0;o--){var f=s[s.length-o];if(o==1&&f>>5==6){this.charLength=2;break}if(o<=2&&f>>4==14){this.charLength=3;break}if(o<=3&&f>>3==30){this.charLength=4;break}}this.charReceived=o},a.prototype.end=function(s){var o="";if(s&&s.length&&(o=this.write(s)),this.charReceived){var f=this.charReceived,l=this.charBuffer,r=this.encoding;o+=l.slice(0,f).toString(r)}return o}},{buffer:38}],38:[function(v,b,C){(function(w){"use strict";function m(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(j,W){if(m()<W)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(j=new Uint8Array(W),j.__proto__=i.prototype):(j===null&&(j=new i(W)),j.length=W),j}function i(j,W,he){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(j,W,he);if(typeof j=="number"){if(typeof W=="string")throw new Error("If encoding is specified then the first argument must be a string");return s(this,j)}return n(this,j,W,he)}function n(j,W,he,te){if(typeof W=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&W instanceof ArrayBuffer?l(j,W,he,te):typeof W=="string"?o(j,W,he):r(j,W)}function e(j){if(typeof j!="number")throw new TypeError('"size" argument must be a number');if(j<0)throw new RangeError('"size" argument must not be negative')}function a(j,W,he,te){return e(W),W<=0?d(j,W):he!==void 0?typeof te=="string"?d(j,W).fill(he,te):d(j,W).fill(he):d(j,W)}function s(j,W){if(e(W),j=d(j,W<0?0:0|c(W)),!i.TYPED_ARRAY_SUPPORT)for(var he=0;he<W;++he)j[he]=0;return j}function o(j,W,he){if(typeof he=="string"&&he!==""||(he="utf8"),!i.isEncoding(he))throw new TypeError('"encoding" must be a valid string encoding');var te=0|p(W,he);j=d(j,te);var ce=j.write(W,he);return ce!==te&&(j=j.slice(0,ce)),j}function f(j,W){var he=W.length<0?0:0|c(W.length);j=d(j,he);for(var te=0;te<he;te+=1)j[te]=255&W[te];return j}function l(j,W,he,te){if(W.byteLength,he<0||W.byteLength<he)throw new RangeError("'offset' is out of bounds");if(W.byteLength<he+(te||0))throw new RangeError("'length' is out of bounds");return W=he===void 0&&te===void 0?new Uint8Array(W):te===void 0?new Uint8Array(W,he):new Uint8Array(W,he,te),i.TYPED_ARRAY_SUPPORT?(j=W,j.__proto__=i.prototype):j=f(j,W),j}function r(j,W){if(i.isBuffer(W)){var he=0|c(W.length);return j=d(j,he),j.length===0||W.copy(j,0,0,he),j}if(W){if(typeof ArrayBuffer!="undefined"&&W.buffer instanceof ArrayBuffer||"length"in W)return typeof W.length!="number"||oe(W.length)?d(j,0):f(j,W);if(W.type==="Buffer"&&Re(W.data))return f(j,W.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(j){if(j>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return 0|j}function A(j){return+j!=j&&(j=0),i.alloc(+j)}function p(j,W){if(i.isBuffer(j))return j.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(j)||j instanceof ArrayBuffer))return j.byteLength;typeof j!="string"&&(j=""+j);var he=j.length;if(he===0)return 0;for(var te=!1;;)switch(W){case"ascii":case"latin1":case"binary":return he;case"utf8":case"utf-8":case void 0:return Ee(j).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*he;case"hex":return he>>>1;case"base64":return ae(j).length;default:if(te)return Ee(j).length;W=(""+W).toLowerCase(),te=!0}}function x(j,W,he){var te=!1;if((W===void 0||W<0)&&(W=0),W>this.length)return"";if((he===void 0||he>this.length)&&(he=this.length),he<=0)return"";if(he>>>=0,W>>>=0,he<=W)return"";for(j||(j="utf8");;)switch(j){case"hex":return U(this,W,he);case"utf8":case"utf-8":return I(this,W,he);case"ascii":return F(this,W,he);case"latin1":case"binary":return X(this,W,he);case"base64":return D(this,W,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,W,he);default:if(te)throw new TypeError("Unknown encoding: "+j);j=(j+"").toLowerCase(),te=!0}}function _(j,W,he){var te=j[W];j[W]=j[he],j[he]=te}function B(j,W,he,te,ce){if(j.length===0)return-1;if(typeof he=="string"?(te=he,he=0):he>2147483647?he=2147483647:he<-2147483648&&(he=-2147483648),he=+he,isNaN(he)&&(he=ce?0:j.length-1),he<0&&(he=j.length+he),he>=j.length){if(ce)return-1;he=j.length-1}else if(he<0){if(!ce)return-1;he=0}if(typeof W=="string"&&(W=i.from(W,te)),i.isBuffer(W))return W.length===0?-1:E(j,W,he,te,ce);if(typeof W=="number")return W&=255,i.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ce?Uint8Array.prototype.indexOf.call(j,W,he):Uint8Array.prototype.lastIndexOf.call(j,W,he):E(j,[W],he,te,ce);throw new TypeError("val must be string, number or Buffer")}function E(j,W,he,te,ce){function Ie(lt,rt){return ze===1?lt[rt]:lt.readUInt16BE(rt*ze)}var ze=1,_t=j.length,He=W.length;if(te!==void 0&&((te=String(te).toLowerCase())==="ucs2"||te==="ucs-2"||te==="utf16le"||te==="utf-16le")){if(j.length<2||W.length<2)return-1;ze=2,_t/=2,He/=2,he/=2}var Ke;if(ce){var ht=-1;for(Ke=he;Ke<_t;Ke++)if(Ie(j,Ke)===Ie(W,ht===-1?0:Ke-ht)){if(ht===-1&&(ht=Ke),Ke-ht+1===He)return ht*ze}else ht!==-1&&(Ke-=Ke-ht),ht=-1}else for(he+He>_t&&(he=_t-He),Ke=he;Ke>=0;Ke--){for(var St=!0,ct=0;ct<He;ct++)if(Ie(j,Ke+ct)!==Ie(W,ct)){St=!1;break}if(St)return Ke}return-1}function g(j,W,he,te){he=Number(he)||0;var ce=j.length-he;te?(te=Number(te))>ce&&(te=ce):te=ce;var Ie=W.length;if(Ie%2!=0)throw new TypeError("Invalid hex string");te>Ie/2&&(te=Ie/2);for(var ze=0;ze<te;++ze){var _t=parseInt(W.substr(2*ze,2),16);if(isNaN(_t))return ze;j[he+ze]=_t}return ze}function h(j,W,he,te){return ve(Ee(W,j.length-he),j,he,te)}function u(j,W,he,te){return ve(ge(W),j,he,te)}function S(j,W,he,te){return u(j,W,he,te)}function O(j,W,he,te){return ve(ae(W),j,he,te)}function T(j,W,he,te){return ve(Ae(W,j.length-he),j,he,te)}function D(j,W,he){return W===0&&he===j.length?ie.fromByteArray(j):ie.fromByteArray(j.slice(W,he))}function I(j,W,he){he=Math.min(j.length,he);for(var te=[],ce=W;ce<he;){var Ie=j[ce],ze=null,_t=Ie>239?4:Ie>223?3:Ie>191?2:1;if(ce+_t<=he){var He,Ke,ht,St;switch(_t){case 1:Ie<128&&(ze=Ie);break;case 2:He=j[ce+1],(192&He)==128&&(St=(31&Ie)<<6|63&He)>127&&(ze=St);break;case 3:He=j[ce+1],Ke=j[ce+2],(192&He)==128&&(192&Ke)==128&&(St=(15&Ie)<<12|(63&He)<<6|63&Ke)>2047&&(St<55296||St>57343)&&(ze=St);break;case 4:He=j[ce+1],Ke=j[ce+2],ht=j[ce+3],(192&He)==128&&(192&Ke)==128&&(192&ht)==128&&(St=(15&Ie)<<18|(63&He)<<12|(63&Ke)<<6|63&ht)>65535&&St<1114112&&(ze=St)}}ze===null?(ze=65533,_t=1):ze>65535&&(ze-=65536,te.push(ze>>>10&1023|55296),ze=56320|1023&ze),te.push(ze),ce+=_t}return k(te)}function k(j){var W=j.length;if(W<=Me)return String.fromCharCode.apply(String,j);for(var he="",te=0;te<W;)he+=String.fromCharCode.apply(String,j.slice(te,te+=Me));return he}function F(j,W,he){var te="";he=Math.min(j.length,he);for(var ce=W;ce<he;++ce)te+=String.fromCharCode(127&j[ce]);return te}function X(j,W,he){var te="";he=Math.min(j.length,he);for(var ce=W;ce<he;++ce)te+=String.fromCharCode(j[ce]);return te}function U(j,W,he){var te=j.length;(!W||W<0)&&(W=0),(!he||he<0||he>te)&&(he=te);for(var ce="",Ie=W;Ie<he;++Ie)ce+=me(j[Ie]);return ce}function K(j,W,he){for(var te=j.slice(W,he),ce="",Ie=0;Ie<te.length;Ie+=2)ce+=String.fromCharCode(te[Ie]+256*te[Ie+1]);return ce}function V(j,W,he){if(j%1!=0||j<0)throw new RangeError("offset is not uint");if(j+W>he)throw new RangeError("Trying to access beyond buffer length")}function N(j,W,he,te,ce,Ie){if(!i.isBuffer(j))throw new TypeError('"buffer" argument must be a Buffer instance');if(W>ce||W<Ie)throw new RangeError('"value" argument is out of bounds');if(he+te>j.length)throw new RangeError("Index out of range")}function Q(j,W,he,te){W<0&&(W=65535+W+1);for(var ce=0,Ie=Math.min(j.length-he,2);ce<Ie;++ce)j[he+ce]=(W&255<<8*(te?ce:1-ce))>>>8*(te?ce:1-ce)}function J(j,W,he,te){W<0&&(W=4294967295+W+1);for(var ce=0,Ie=Math.min(j.length-he,4);ce<Ie;++ce)j[he+ce]=W>>>8*(te?ce:3-ce)&255}function ne(j,W,he,te,ce,Ie){if(he+te>j.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("Index out of range")}function ue(j,W,he,te,ce){return ce||ne(j,W,he,4,34028234663852886e22,-34028234663852886e22),Te.write(j,W,he,te,23,4),he+4}function be(j,W,he,te,ce){return ce||ne(j,W,he,8,17976931348623157e292,-17976931348623157e292),Te.write(j,W,he,te,52,8),he+8}function de(j){if(j=_e(j).replace(re,""),j.length<2)return"";for(;j.length%4!=0;)j+="=";return j}function _e(j){return j.trim?j.trim():j.replace(/^\s+|\s+$/g,"")}function me(j){return j<16?"0"+j.toString(16):j.toString(16)}function Ee(j,W){W=W||1/0;for(var he,te=j.length,ce=null,Ie=[],ze=0;ze<te;++ze){if((he=j.charCodeAt(ze))>55295&&he<57344){if(!ce){if(he>56319){(W-=3)>-1&&Ie.push(239,191,189);continue}if(ze+1===te){(W-=3)>-1&&Ie.push(239,191,189);continue}ce=he;continue}if(he<56320){(W-=3)>-1&&Ie.push(239,191,189),ce=he;continue}he=65536+(ce-55296<<10|he-56320)}else ce&&(W-=3)>-1&&Ie.push(239,191,189);if(ce=null,he<128){if((W-=1)<0)break;Ie.push(he)}else if(he<2048){if((W-=2)<0)break;Ie.push(he>>6|192,63&he|128)}else if(he<65536){if((W-=3)<0)break;Ie.push(he>>12|224,he>>6&63|128,63&he|128)}else{if(!(he<1114112))throw new Error("Invalid code point");if((W-=4)<0)break;Ie.push(he>>18|240,he>>12&63|128,he>>6&63|128,63&he|128)}}return Ie}function ge(j){for(var W=[],he=0;he<j.length;++he)W.push(255&j.charCodeAt(he));return W}function Ae(j,W){for(var he,te,ce,Ie=[],ze=0;ze<j.length&&!((W-=2)<0);++ze)he=j.charCodeAt(ze),te=he>>8,ce=he%256,Ie.push(ce),Ie.push(te);return Ie}function ae(j){return ie.toByteArray(de(j))}function ve(j,W,he,te){for(var ce=0;ce<te&&!(ce+he>=W.length||ce>=j.length);++ce)W[ce+he]=j[ce];return ce}function oe(j){return j!==j}var ie=v("base64-js"),Te=v("ieee754"),Re=v("isarray");C.Buffer=i,C.SlowBuffer=A,C.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=w.TYPED_ARRAY_SUPPORT!==void 0?w.TYPED_ARRAY_SUPPORT:function(){try{var j=new Uint8Array(1);return j.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},j.foo()===42&&typeof j.subarray=="function"&&j.subarray(1,1).byteLength===0}catch(W){return!1}}(),C.kMaxLength=m(),i.poolSize=8192,i._augment=function(j){return j.__proto__=i.prototype,j},i.from=function(j,W,he){return n(null,j,W,he)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(j,W,he){return a(null,j,W,he)},i.allocUnsafe=function(j){return s(null,j)},i.allocUnsafeSlow=function(j){return s(null,j)},i.isBuffer=function(j){return!(j==null||!j._isBuffer)},i.compare=function(j,W){if(!i.isBuffer(j)||!i.isBuffer(W))throw new TypeError("Arguments must be Buffers");if(j===W)return 0;for(var he=j.length,te=W.length,ce=0,Ie=Math.min(he,te);ce<Ie;++ce)if(j[ce]!==W[ce]){he=j[ce],te=W[ce];break}return he<te?-1:te<he?1:0},i.isEncoding=function(j){switch(String(j).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(j,W){if(!Re(j))throw new TypeError('"list" argument must be an Array of Buffers');if(j.length===0)return i.alloc(0);var he;if(W===void 0)for(W=0,he=0;he<j.length;++he)W+=j[he].length;var te=i.allocUnsafe(W),ce=0;for(he=0;he<j.length;++he){var Ie=j[he];if(!i.isBuffer(Ie))throw new TypeError('"list" argument must be an Array of Buffers');Ie.copy(te,ce),ce+=Ie.length}return te},i.byteLength=p,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var j=this.length;if(j%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var W=0;W<j;W+=2)_(this,W,W+1);return this},i.prototype.swap32=function(){var j=this.length;if(j%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var W=0;W<j;W+=4)_(this,W,W+3),_(this,W+1,W+2);return this},i.prototype.swap64=function(){var j=this.length;if(j%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var W=0;W<j;W+=8)_(this,W,W+7),_(this,W+1,W+6),_(this,W+2,W+5),_(this,W+3,W+4);return this},i.prototype.toString=function(){var j=0|this.length;return j===0?"":arguments.length===0?I(this,0,j):x.apply(this,arguments)},i.prototype.equals=function(j){if(!i.isBuffer(j))throw new TypeError("Argument must be a Buffer");return this===j||i.compare(this,j)===0},i.prototype.inspect=function(){var j="",W=C.INSPECT_MAX_BYTES;return this.length>0&&(j=this.toString("hex",0,W).match(/.{2}/g).join(" "),this.length>W&&(j+=" ... ")),"<Buffer "+j+">"},i.prototype.compare=function(j,W,he,te,ce){if(!i.isBuffer(j))throw new TypeError("Argument must be a Buffer");if(W===void 0&&(W=0),he===void 0&&(he=j?j.length:0),te===void 0&&(te=0),ce===void 0&&(ce=this.length),W<0||he>j.length||te<0||ce>this.length)throw new RangeError("out of range index");if(te>=ce&&W>=he)return 0;if(te>=ce)return-1;if(W>=he)return 1;if(W>>>=0,he>>>=0,te>>>=0,ce>>>=0,this===j)return 0;for(var Ie=ce-te,ze=he-W,_t=Math.min(Ie,ze),He=this.slice(te,ce),Ke=j.slice(W,he),ht=0;ht<_t;++ht)if(He[ht]!==Ke[ht]){Ie=He[ht],ze=Ke[ht];break}return Ie<ze?-1:ze<Ie?1:0},i.prototype.includes=function(j,W,he){return this.indexOf(j,W,he)!==-1},i.prototype.indexOf=function(j,W,he){return B(this,j,W,he,!0)},i.prototype.lastIndexOf=function(j,W,he){return B(this,j,W,he,!1)},i.prototype.write=function(j,W,he,te){if(W===void 0)te="utf8",he=this.length,W=0;else if(he===void 0&&typeof W=="string")te=W,he=this.length,W=0;else{if(!isFinite(W))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");W|=0,isFinite(he)?(he|=0,te===void 0&&(te="utf8")):(te=he,he=void 0)}var ce=this.length-W;if((he===void 0||he>ce)&&(he=ce),j.length>0&&(he<0||W<0)||W>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");for(var Ie=!1;;)switch(te){case"hex":return g(this,j,W,he);case"utf8":case"utf-8":return h(this,j,W,he);case"ascii":return u(this,j,W,he);case"latin1":case"binary":return S(this,j,W,he);case"base64":return O(this,j,W,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,j,W,he);default:if(Ie)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),Ie=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Me=4096;i.prototype.slice=function(j,W){var he=this.length;j=~~j,W=W===void 0?he:~~W,j<0?(j+=he)<0&&(j=0):j>he&&(j=he),W<0?(W+=he)<0&&(W=0):W>he&&(W=he),W<j&&(W=j);var te;if(i.TYPED_ARRAY_SUPPORT)te=this.subarray(j,W),te.__proto__=i.prototype;else{var ce=W-j;te=new i(ce,void 0);for(var Ie=0;Ie<ce;++Ie)te[Ie]=this[Ie+j]}return te},i.prototype.readUIntLE=function(j,W,he){j|=0,W|=0,he||V(j,W,this.length);for(var te=this[j],ce=1,Ie=0;++Ie<W&&(ce*=256);)te+=this[j+Ie]*ce;return te},i.prototype.readUIntBE=function(j,W,he){j|=0,W|=0,he||V(j,W,this.length);for(var te=this[j+--W],ce=1;W>0&&(ce*=256);)te+=this[j+--W]*ce;return te},i.prototype.readUInt8=function(j,W){return W||V(j,1,this.length),this[j]},i.prototype.readUInt16LE=function(j,W){return W||V(j,2,this.length),this[j]|this[j+1]<<8},i.prototype.readUInt16BE=function(j,W){return W||V(j,2,this.length),this[j]<<8|this[j+1]},i.prototype.readUInt32LE=function(j,W){return W||V(j,4,this.length),(this[j]|this[j+1]<<8|this[j+2]<<16)+16777216*this[j+3]},i.prototype.readUInt32BE=function(j,W){return W||V(j,4,this.length),16777216*this[j]+(this[j+1]<<16|this[j+2]<<8|this[j+3])},i.prototype.readIntLE=function(j,W,he){j|=0,W|=0,he||V(j,W,this.length);for(var te=this[j],ce=1,Ie=0;++Ie<W&&(ce*=256);)te+=this[j+Ie]*ce;return ce*=128,te>=ce&&(te-=Math.pow(2,8*W)),te},i.prototype.readIntBE=function(j,W,he){j|=0,W|=0,he||V(j,W,this.length);for(var te=W,ce=1,Ie=this[j+--te];te>0&&(ce*=256);)Ie+=this[j+--te]*ce;return ce*=128,Ie>=ce&&(Ie-=Math.pow(2,8*W)),Ie},i.prototype.readInt8=function(j,W){return W||V(j,1,this.length),128&this[j]?-1*(255-this[j]+1):this[j]},i.prototype.readInt16LE=function(j,W){W||V(j,2,this.length);var he=this[j]|this[j+1]<<8;return 32768&he?4294901760|he:he},i.prototype.readInt16BE=function(j,W){W||V(j,2,this.length);var he=this[j+1]|this[j]<<8;return 32768&he?4294901760|he:he},i.prototype.readInt32LE=function(j,W){return W||V(j,4,this.length),this[j]|this[j+1]<<8|this[j+2]<<16|this[j+3]<<24},i.prototype.readInt32BE=function(j,W){return W||V(j,4,this.length),this[j]<<24|this[j+1]<<16|this[j+2]<<8|this[j+3]},i.prototype.readFloatLE=function(j,W){return W||V(j,4,this.length),Te.read(this,j,!0,23,4)},i.prototype.readFloatBE=function(j,W){return W||V(j,4,this.length),Te.read(this,j,!1,23,4)},i.prototype.readDoubleLE=function(j,W){return W||V(j,8,this.length),Te.read(this,j,!0,52,8)},i.prototype.readDoubleBE=function(j,W){return W||V(j,8,this.length),Te.read(this,j,!1,52,8)},i.prototype.writeUIntLE=function(j,W,he,te){(j=+j,W|=0,he|=0,!te)&&N(this,j,W,he,Math.pow(2,8*he)-1,0);var ce=1,Ie=0;for(this[W]=255&j;++Ie<he&&(ce*=256);)this[W+Ie]=j/ce&255;return W+he},i.prototype.writeUIntBE=function(j,W,he,te){(j=+j,W|=0,he|=0,!te)&&N(this,j,W,he,Math.pow(2,8*he)-1,0);var ce=he-1,Ie=1;for(this[W+ce]=255&j;--ce>=0&&(Ie*=256);)this[W+ce]=j/Ie&255;return W+he},i.prototype.writeUInt8=function(j,W,he){return j=+j,W|=0,he||N(this,j,W,1,255,0),i.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),this[W]=255&j,W+1},i.prototype.writeUInt16LE=function(j,W,he){return j=+j,W|=0,he||N(this,j,W,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[W]=255&j,this[W+1]=j>>>8):Q(this,j,W,!0),W+2},i.prototype.writeUInt16BE=function(j,W,he){return j=+j,W|=0,he||N(this,j,W,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[W]=j>>>8,this[W+1]=255&j):Q(this,j,W,!1),W+2},i.prototype.writeUInt32LE=function(j,W,he){return j=+j,W|=0,he||N(this,j,W,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[W+3]=j>>>24,this[W+2]=j>>>16,this[W+1]=j>>>8,this[W]=255&j):J(this,j,W,!0),W+4},i.prototype.writeUInt32BE=function(j,W,he){return j=+j,W|=0,he||N(this,j,W,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[W]=j>>>24,this[W+1]=j>>>16,this[W+2]=j>>>8,this[W+3]=255&j):J(this,j,W,!1),W+4},i.prototype.writeIntLE=function(j,W,he,te){if(j=+j,W|=0,!te){var ce=Math.pow(2,8*he-1);N(this,j,W,he,ce-1,-ce)}var Ie=0,ze=1,_t=0;for(this[W]=255&j;++Ie<he&&(ze*=256);)j<0&&_t===0&&this[W+Ie-1]!==0&&(_t=1),this[W+Ie]=(j/ze>>0)-_t&255;return W+he},i.prototype.writeIntBE=function(j,W,he,te){if(j=+j,W|=0,!te){var ce=Math.pow(2,8*he-1);N(this,j,W,he,ce-1,-ce)}var Ie=he-1,ze=1,_t=0;for(this[W+Ie]=255&j;--Ie>=0&&(ze*=256);)j<0&&_t===0&&this[W+Ie+1]!==0&&(_t=1),this[W+Ie]=(j/ze>>0)-_t&255;return W+he},i.prototype.writeInt8=function(j,W,he){return j=+j,W|=0,he||N(this,j,W,1,127,-128),i.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),j<0&&(j=255+j+1),this[W]=255&j,W+1},i.prototype.writeInt16LE=function(j,W,he){return j=+j,W|=0,he||N(this,j,W,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[W]=255&j,this[W+1]=j>>>8):Q(this,j,W,!0),W+2},i.prototype.writeInt16BE=function(j,W,he){return j=+j,W|=0,he||N(this,j,W,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[W]=j>>>8,this[W+1]=255&j):Q(this,j,W,!1),W+2},i.prototype.writeInt32LE=function(j,W,he){return j=+j,W|=0,he||N(this,j,W,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[W]=255&j,this[W+1]=j>>>8,this[W+2]=j>>>16,this[W+3]=j>>>24):J(this,j,W,!0),W+4},i.prototype.writeInt32BE=function(j,W,he){return j=+j,W|=0,he||N(this,j,W,4,2147483647,-2147483648),j<0&&(j=4294967295+j+1),i.TYPED_ARRAY_SUPPORT?(this[W]=j>>>24,this[W+1]=j>>>16,this[W+2]=j>>>8,this[W+3]=255&j):J(this,j,W,!1),W+4},i.prototype.writeFloatLE=function(j,W,he){return ue(this,j,W,!0,he)},i.prototype.writeFloatBE=function(j,W,he){return ue(this,j,W,!1,he)},i.prototype.writeDoubleLE=function(j,W,he){return be(this,j,W,!0,he)},i.prototype.writeDoubleBE=function(j,W,he){return be(this,j,W,!1,he)},i.prototype.copy=function(j,W,he,te){if(he||(he=0),te||te===0||(te=this.length),W>=j.length&&(W=j.length),W||(W=0),te>0&&te<he&&(te=he),te===he)return 0;if(j.length===0||this.length===0)return 0;if(W<0)throw new RangeError("targetStart out of bounds");if(he<0||he>=this.length)throw new RangeError("sourceStart out of bounds");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),j.length-W<te-he&&(te=j.length-W+he);var ce,Ie=te-he;if(this===j&&he<W&&W<te)for(ce=Ie-1;ce>=0;--ce)j[ce+W]=this[ce+he];else if(Ie<1e3||!i.TYPED_ARRAY_SUPPORT)for(ce=0;ce<Ie;++ce)j[ce+W]=this[ce+he];else Uint8Array.prototype.set.call(j,this.subarray(he,he+Ie),W);return Ie},i.prototype.fill=function(j,W,he,te){if(typeof j=="string"){if(typeof W=="string"?(te=W,W=0,he=this.length):typeof he=="string"&&(te=he,he=this.length),j.length===1){var ce=j.charCodeAt(0);ce<256&&(j=ce)}if(te!==void 0&&typeof te!="string")throw new TypeError("encoding must be a string");if(typeof te=="string"&&!i.isEncoding(te))throw new TypeError("Unknown encoding: "+te)}else typeof j=="number"&&(j&=255);if(W<0||this.length<W||this.length<he)throw new RangeError("Out of range index");if(he<=W)return this;W>>>=0,he=he===void 0?this.length:he>>>0,j||(j=0);var Ie;if(typeof j=="number")for(Ie=W;Ie<he;++Ie)this[Ie]=j;else{var ze=i.isBuffer(j)?j:Ee(new i(j,te).toString()),_t=ze.length;for(Ie=0;Ie<he-W;++Ie)this[Ie+W]=ze[Ie%_t]}return this};var re=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof se!="undefined"?se:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(v,b,C){b.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],40:[function(v,b,C){"use strict";var w=function(){this.buffer=[],this.fns=[]};w.prototype.push=function(d,i){if(this.fns.length)return this.fns.shift()(null,d);var n={data:d,priority:i},e=m(this.buffer,n,function(a){return a.priority});this.buffer.splice(e,0,n)},w.prototype.next=function(){var d=this;return function(i){if(d.buffer.length)return i(null,d.buffer.pop().data);d.fns.push(i)}};var m=function(d,i,n){i=n(i);for(var e=0,a=d?d.length:e;e<a;){var s=e+a>>>1;n(d[s])<i?e=s+1:a=s}return e};b.exports=w},{}],41:[function(v,b,C){function w(l){var r=this,c=f.call(arguments,1);return new Promise(function(A,p){function x(E){var g;try{g=l.next(E)}catch(h){return p(h)}B(g)}function _(E){var g;try{g=l.throw(E)}catch(h){return p(h)}B(g)}function B(E){if(E.done)return A(E.value);var g=m.call(r,E.value);return g&&e(g)?g.then(x,_):_(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(E.value)+'"'))}if(typeof l=="function"&&(l=l.apply(r,c)),!l||typeof l.next!="function")return A(l);x()})}function m(l){return l&&(e(l)?l:s(l)||a(l)?w.call(this,l):typeof l=="function"?d.call(this,l):Array.isArray(l)?i.call(this,l):o(l)?n.call(this,l):l)}function d(l){var r=this;return new Promise(function(c,A){l.call(r,function(p,x){if(p)return A(p);arguments.length>2&&(x=f.call(arguments,1)),c(x)})})}function i(l){return Promise.all(l.map(m,this))}function n(l){for(var r=new l.constructor,c=Object.keys(l),A=[],p=0;p<c.length;p++){var x=c[p],_=m.call(this,l[x]);_&&e(_)?function(B,E){r[E]=void 0,A.push(B.then(function(g){r[E]=g}))}(_,x):r[x]=l[x]}return Promise.all(A).then(function(){return r})}function e(l){return typeof l.then=="function"}function a(l){return typeof l.next=="function"&&typeof l.throw=="function"}function s(l){var r=l.constructor;return!!r&&(r.name==="GeneratorFunction"||r.displayName==="GeneratorFunction"||a(r.prototype))}function o(l){return Object==l.constructor}var f=Array.prototype.slice;b.exports=w.default=w.co=w,w.wrap=function(l){function r(){return w.call(this,l.apply(this,arguments))}return r.__generatorFunction__=l,r}},{}],42:[function(v,b,C){b.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],43:[function(v,b,C){"use strict";function w(i,n){if(!(this instanceof w))return new w(i,n);this.src=i,this._withAccess=n}function m(i,n){return i[n]===void 0&&i.__lookupGetter__(n)===void 0&&i.__lookupSetter__(n)===void 0}var d=Array.prototype.slice;b.exports=w,w.prototype.withAccess=function(i){return this._withAccess=i!==!1,this},w.prototype.pick=function(i){return Array.isArray(i)||(i=d.call(arguments)),i.length&&(this.keys=i),this},w.prototype.to=function(i){if(i=i||{},!this.src)return i;var n=this.keys||Object.keys(this.src);if(!this._withAccess){for(var e=0;e<n.length;e++)a=n[e],i[a]===void 0&&(i[a]=this.src[a]);return i}for(var e=0;e<n.length;e++){var a=n[e];if(m(i,a)){var s=this.src.__lookupGetter__(a),o=this.src.__lookupSetter__(a);s&&i.__defineGetter__(a,s),o&&i.__defineSetter__(a,o),s||o||(i[a]=this.src[a])}}return i},w.prototype.toCover=function(i){for(var n=this.keys||Object.keys(this.src),e=0;e<n.length;e++){var a=n[e];delete i[a];var s=this.src.__lookupGetter__(a),o=this.src.__lookupSetter__(a);s&&i.__defineGetter__(a,s),o&&i.__defineSetter__(a,o),s||o||(i[a]=this.src[a])}},w.prototype.override=w.prototype.toCover,w.prototype.and=function(i){var n={};return this.to(n),this.src=i,this.to(n),this.src=n,this}},{}],44:[function(v,b,C){v("../../modules/es6.string.iterator"),v("../../modules/es6.array.from"),b.exports=v("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(v,b,C){var w=v("../../modules/_core"),m=w.JSON||(w.JSON={stringify:JSON.stringify});b.exports=function(d){return m.stringify.apply(m,arguments)}},{"../../modules/_core":65}],46:[function(v,b,C){v("../../modules/es6.object.assign"),b.exports=v("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(v,b,C){v("../../modules/es6.object.create");var w=v("../../modules/_core").Object;b.exports=function(m,d){return w.create(m,d)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(v,b,C){v("../../modules/es6.object.define-property");var w=v("../../modules/_core").Object;b.exports=function(m,d,i){return w.defineProperty(m,d,i)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(v,b,C){v("../../modules/es6.object.get-own-property-names");var w=v("../../modules/_core").Object;b.exports=function(m){return w.getOwnPropertyNames(m)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(v,b,C){v("../../modules/es6.object.get-prototype-of"),b.exports=v("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(v,b,C){v("../../modules/es6.object.keys"),b.exports=v("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(v,b,C){v("../modules/es6.object.to-string"),v("../modules/es6.string.iterator"),v("../modules/web.dom.iterable"),v("../modules/es6.promise"),v("../modules/es7.promise.finally"),v("../modules/es7.promise.try"),b.exports=v("../modules/_core").Promise},{"../modules/_core":65,"../modules/es6.object.to-string":142,"../modules/es6.promise":143,"../modules/es6.string.iterator":145,"../modules/es7.promise.finally":147,"../modules/es7.promise.try":148,"../modules/web.dom.iterable":151}],53:[function(v,b,C){v("../modules/web.immediate"),b.exports=v("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(v,b,C){v("../../modules/es6.string.from-code-point"),b.exports=v("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(v,b,C){v("../../modules/es6.function.has-instance"),b.exports=v("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(v,b,C){v("../../modules/es6.symbol"),v("../../modules/es6.object.to-string"),v("../../modules/es7.symbol.async-iterator"),v("../../modules/es7.symbol.observable"),b.exports=v("../../modules/_core").Symbol},{"../../modules/_core":65,"../../modules/es6.object.to-string":142,"../../modules/es6.symbol":146,"../../modules/es7.symbol.async-iterator":149,"../../modules/es7.symbol.observable":150}],57:[function(v,b,C){v("../../modules/es6.string.iterator"),v("../../modules/web.dom.iterable"),b.exports=v("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(v,b,C){b.exports=function(w){if(typeof w!="function")throw TypeError(w+" is not a function!");return w}},{}],59:[function(v,b,C){b.exports=function(){}},{}],60:[function(v,b,C){b.exports=function(w,m,d,i){if(!(w instanceof m)||i!==void 0&&i in w)throw TypeError(d+": incorrect invocation!");return w}},{}],61:[function(v,b,C){var w=v("./_is-object");b.exports=function(m){if(!w(m))throw TypeError(m+" is not an object!");return m}},{"./_is-object":85}],62:[function(v,b,C){var w=v("./_to-iobject"),m=v("./_to-length"),d=v("./_to-absolute-index");b.exports=function(i){return function(n,e,a){var s,o=w(n),f=m(o.length),l=d(a,f);if(i&&e!=e){for(;f>l;)if((s=o[l++])!=s)return!0}else for(;f>l;l++)if((i||l in o)&&o[l]===e)return i||l||0;return!i&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(v,b,C){var w=v("./_cof"),m=v("./_wks")("toStringTag"),d=w(function(){return arguments}())=="Arguments",i=function(n,e){try{return n[e]}catch(a){}};b.exports=function(n){var e,a,s;return n===void 0?"Undefined":n===null?"Null":typeof(a=i(e=Object(n),m))=="string"?a:d?w(e):(s=w(e))=="Object"&&typeof e.callee=="function"?"Arguments":s}},{"./_cof":64,"./_wks":131}],64:[function(v,b,C){var w={}.toString;b.exports=function(m){return w.call(m).slice(8,-1)}},{}],65:[function(v,b,C){var w=b.exports={version:"2.5.7"};typeof __e=="number"&&(__e=w)},{}],66:[function(v,b,C){"use strict";var w=v("./_object-dp"),m=v("./_property-desc");b.exports=function(d,i,n){i in d?w.f(d,i,m(0,n)):d[i]=n}},{"./_object-dp":98,"./_property-desc":111}],67:[function(v,b,C){var w=v("./_a-function");b.exports=function(m,d,i){if(w(m),d===void 0)return m;switch(i){case 1:return function(n){return m.call(d,n)};case 2:return function(n,e){return m.call(d,n,e)};case 3:return function(n,e,a){return m.call(d,n,e,a)}}return function(){return m.apply(d,arguments)}}},{"./_a-function":58}],68:[function(v,b,C){b.exports=function(w){if(w==null)throw TypeError("Can't call method on "+w);return w}},{}],69:[function(v,b,C){b.exports=!v("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(v,b,C){var w=v("./_is-object"),m=v("./_global").document,d=w(m)&&w(m.createElement);b.exports=function(i){return d?m.createElement(i):{}}},{"./_global":76,"./_is-object":85}],71:[function(v,b,C){b.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(v,b,C){var w=v("./_object-keys"),m=v("./_object-gops"),d=v("./_object-pie");b.exports=function(i){var n=w(i),e=m.f;if(e)for(var a,s=e(i),o=d.f,f=0;s.length>f;)o.call(i,a=s[f++])&&n.push(a);return n}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(v,b,C){var w=v("./_global"),m=v("./_core"),d=v("./_ctx"),i=v("./_hide"),n=v("./_has"),e=function(a,s,o){var f,l,r,c=a&e.F,A=a&e.G,p=a&e.S,x=a&e.P,_=a&e.B,B=a&e.W,E=A?m:m[s]||(m[s]={}),g=E.prototype,h=A?w:p?w[s]:(w[s]||{}).prototype;A&&(o=s);for(f in o)(l=!c&&h&&h[f]!==void 0)&&n(E,f)||(r=l?h[f]:o[f],E[f]=A&&typeof h[f]!="function"?o[f]:_&&l?d(r,w):B&&h[f]==r?function(u){var S=function(O,T,D){if(this instanceof u){switch(arguments.length){case 0:return new u;case 1:return new u(O);case 2:return new u(O,T)}return new u(O,T,D)}return u.apply(this,arguments)};return S.prototype=u.prototype,S}(r):x&&typeof r=="function"?d(Function.call,r):r,x&&((E.virtual||(E.virtual={}))[f]=r,a&e.R&&g&&!g[f]&&i(g,f,r)))};e.F=1,e.G=2,e.S=4,e.P=8,e.B=16,e.W=32,e.U=64,e.R=128,b.exports=e},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(v,b,C){b.exports=function(w){try{return!!w()}catch(m){return!0}}},{}],75:[function(v,b,C){var w=v("./_ctx"),m=v("./_iter-call"),d=v("./_is-array-iter"),i=v("./_an-object"),n=v("./_to-length"),e=v("./core.get-iterator-method"),a={},s={},C=b.exports=function(o,f,l,r,c){var A,p,x,_,B=c?function(){return o}:e(o),E=w(l,r,f?2:1),g=0;if(typeof B!="function")throw TypeError(o+" is not iterable!");if(d(B)){for(A=n(o.length);A>g;g++)if((_=f?E(i(p=o[g])[0],p[1]):E(o[g]))===a||_===s)return _}else for(x=B.call(o);!(p=x.next()).done;)if((_=m(x,E,p.value,f))===a||_===s)return _};C.BREAK=a,C.RETURN=s},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(v,b,C){var w=b.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=w)},{}],77:[function(v,b,C){var w={}.hasOwnProperty;b.exports=function(m,d){return w.call(m,d)}},{}],78:[function(v,b,C){var w=v("./_object-dp"),m=v("./_property-desc");b.exports=v("./_descriptors")?function(d,i,n){return w.f(d,i,m(1,n))}:function(d,i,n){return d[i]=n,d}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(v,b,C){var w=v("./_global").document;b.exports=w&&w.documentElement},{"./_global":76}],80:[function(v,b,C){b.exports=!v("./_descriptors")&&!v("./_fails")(function(){return Object.defineProperty(v("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(v,b,C){b.exports=function(w,m,d){var i=d===void 0;switch(m.length){case 0:return i?w():w.call(d);case 1:return i?w(m[0]):w.call(d,m[0]);case 2:return i?w(m[0],m[1]):w.call(d,m[0],m[1]);case 3:return i?w(m[0],m[1],m[2]):w.call(d,m[0],m[1],m[2]);case 4:return i?w(m[0],m[1],m[2],m[3]):w.call(d,m[0],m[1],m[2],m[3])}return w.apply(d,m)}},{}],82:[function(v,b,C){var w=v("./_cof");b.exports=Object("z").propertyIsEnumerable(0)?Object:function(m){return w(m)=="String"?m.split(""):Object(m)}},{"./_cof":64}],83:[function(v,b,C){var w=v("./_iterators"),m=v("./_wks")("iterator"),d=Array.prototype;b.exports=function(i){return i!==void 0&&(w.Array===i||d[m]===i)}},{"./_iterators":91,"./_wks":131}],84:[function(v,b,C){var w=v("./_cof");b.exports=Array.isArray||function(m){return w(m)=="Array"}},{"./_cof":64}],85:[function(v,b,C){b.exports=function(w){return typeof w=="object"?w!==null:typeof w=="function"}},{}],86:[function(v,b,C){var w=v("./_an-object");b.exports=function(m,d,i,n){try{return n?d(w(i)[0],i[1]):d(i)}catch(a){var e=m.return;throw e!==void 0&&w(e.call(m)),a}}},{"./_an-object":61}],87:[function(v,b,C){"use strict";var w=v("./_object-create"),m=v("./_property-desc"),d=v("./_set-to-string-tag"),i={};v("./_hide")(i,v("./_wks")("iterator"),function(){return this}),b.exports=function(n,e,a){n.prototype=w(i,{next:m(1,a)}),d(n,e+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(v,b,C){"use strict";var w=v("./_library"),m=v("./_export"),d=v("./_redefine"),i=v("./_hide"),n=v("./_iterators"),e=v("./_iter-create"),a=v("./_set-to-string-tag"),s=v("./_object-gpo"),o=v("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),l=function(){return this};b.exports=function(r,c,A,p,x,_,B){e(A,c,p);var E,g,h,u=function(U){if(!f&&U in D)return D[U];switch(U){case"keys":case"values":return function(){return new A(this,U)}}return function(){return new A(this,U)}},S=c+" Iterator",O=x=="values",T=!1,D=r.prototype,I=D[o]||D["@@iterator"]||x&&D[x],k=I||u(x),F=x?O?u("entries"):k:void 0,X=c=="Array"&&D.entries||I;if(X&&(h=s(X.call(new r)))!==Object.prototype&&h.next&&(a(h,S,!0),w||typeof h[o]=="function"||i(h,o,l)),O&&I&&I.name!=="values"&&(T=!0,k=function(){return I.call(this)}),w&&!B||!f&&!T&&D[o]||i(D,o,k),n[c]=k,n[S]=l,x)if(E={values:O?k:u("values"),keys:_?k:u("keys"),entries:F},B)for(g in E)g in D||d(D,g,E[g]);else m(m.P+m.F*(f||T),c,E);return E}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(v,b,C){var w=v("./_wks")("iterator"),m=!1;try{var d=[7][w]();d.return=function(){m=!0},Array.from(d,function(){throw 2})}catch(i){}b.exports=function(i,n){if(!n&&!m)return!1;var e=!1;try{var a=[7],s=a[w]();s.next=function(){return{done:e=!0}},a[w]=function(){return s},i(a)}catch(o){}return e}},{"./_wks":131}],90:[function(v,b,C){b.exports=function(w,m){return{value:m,done:!!w}}},{}],91:[function(v,b,C){b.exports={}},{}],92:[function(v,b,C){b.exports=!0},{}],93:[function(v,b,C){var w=v("./_uid")("meta"),m=v("./_is-object"),d=v("./_has"),i=v("./_object-dp").f,n=0,e=Object.isExtensible||function(){return!0},a=!v("./_fails")(function(){return e(Object.preventExtensions({}))}),s=function(c){i(c,w,{value:{i:"O"+ ++n,w:{}}})},o=function(c,A){if(!m(c))return typeof c=="symbol"?c:(typeof c=="string"?"S":"P")+c;if(!d(c,w)){if(!e(c))return"F";if(!A)return"E";s(c)}return c[w].i},f=function(c,A){if(!d(c,w)){if(!e(c))return!0;if(!A)return!1;s(c)}return c[w].w},l=function(c){return a&&r.NEED&&e(c)&&!d(c,w)&&s(c),c},r=b.exports={KEY:w,NEED:!1,fastKey:o,getWeak:f,onFreeze:l}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(v,b,C){var w=v("./_global"),m=v("./_task").set,d=w.MutationObserver||w.WebKitMutationObserver,i=w.process,n=w.Promise,e=v("./_cof")(i)=="process";b.exports=function(){var a,s,o,f=function(){var A,p;for(e&&(A=i.domain)&&A.exit();a;){p=a.fn,a=a.next;try{p()}catch(x){throw a?o():s=void 0,x}}s=void 0,A&&A.enter()};if(e)o=function(){i.nextTick(f)};else if(!d||w.navigator&&w.navigator.standalone)if(n&&n.resolve){var l=n.resolve(void 0);o=function(){l.then(f)}}else o=function(){m.call(w,f)};else{var r=!0,c=document.createTextNode("");new d(f).observe(c,{characterData:!0}),o=function(){c.data=r=!r}}return function(A){var p={fn:A,next:void 0};s&&(s.next=p),a||(a=p,o()),s=p}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(v,b,C){"use strict";function w(d){var i,n;this.promise=new d(function(e,a){if(i!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");i=e,n=a}),this.resolve=m(i),this.reject=m(n)}var m=v("./_a-function");b.exports.f=function(d){return new w(d)}},{"./_a-function":58}],96:[function(v,b,C){"use strict";var w=v("./_object-keys"),m=v("./_object-gops"),d=v("./_object-pie"),i=v("./_to-object"),n=v("./_iobject"),e=Object.assign;b.exports=!e||v("./_fails")(function(){var a={},s={},o=Symbol(),f="abcdefghijklmnopqrst";return a[o]=7,f.split("").forEach(function(l){s[l]=l}),e({},a)[o]!=7||Object.keys(e({},s)).join("")!=f})?function(a,s){for(var o=i(a),f=arguments.length,l=1,r=m.f,c=d.f;f>l;)for(var A,p=n(arguments[l++]),x=r?w(p).concat(r(p)):w(p),_=x.length,B=0;_>B;)c.call(p,A=x[B++])&&(o[A]=p[A]);return o}:e},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(v,b,C){var w=v("./_an-object"),m=v("./_object-dps"),d=v("./_enum-bug-keys"),i=v("./_shared-key")("IE_PROTO"),n=function(){},e=function(){var a,s=v("./_dom-create")("iframe"),o=d.length;for(s.style.display="none",v("./_html").appendChild(s),s.src="javascript:",a=s.contentWindow.document,a.open(),a.write("<script>document.F=Object</script>"),a.close(),e=a.F;o--;)delete e.prototype[d[o]];return e()};b.exports=Object.create||function(a,s){var o;return a!==null?(n.prototype=w(a),o=new n,n.prototype=null,o[i]=a):o=e(),s===void 0?o:m(o,s)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(v,b,C){var w=v("./_an-object"),m=v("./_ie8-dom-define"),d=v("./_to-primitive"),i=Object.defineProperty;C.f=v("./_descriptors")?Object.defineProperty:function(n,e,a){if(w(n),e=d(e,!0),w(a),m)try{return i(n,e,a)}catch(s){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(n[e]=a.value),n}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(v,b,C){var w=v("./_object-dp"),m=v("./_an-object"),d=v("./_object-keys");b.exports=v("./_descriptors")?Object.defineProperties:function(i,n){m(i);for(var e,a=d(n),s=a.length,o=0;s>o;)w.f(i,e=a[o++],n[e]);return i}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(v,b,C){var w=v("./_object-pie"),m=v("./_property-desc"),d=v("./_to-iobject"),i=v("./_to-primitive"),n=v("./_has"),e=v("./_ie8-dom-define"),a=Object.getOwnPropertyDescriptor;C.f=v("./_descriptors")?a:function(s,o){if(s=d(s),o=i(o,!0),e)try{return a(s,o)}catch(f){}if(n(s,o))return m(!w.f.call(s,o),s[o])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(v,b,C){var w=v("./_to-iobject"),m=v("./_object-gopn").f,d={}.toString,i=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],n=function(e){try{return m(e)}catch(a){return i.slice()}};b.exports.f=function(e){return i&&d.call(e)=="[object Window]"?n(e):m(w(e))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(v,b,C){var w=v("./_object-keys-internal"),m=v("./_enum-bug-keys").concat("length","prototype");C.f=Object.getOwnPropertyNames||function(d){return w(d,m)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(v,b,C){C.f=Object.getOwnPropertySymbols},{}],104:[function(v,b,C){var w=v("./_has"),m=v("./_to-object"),d=v("./_shared-key")("IE_PROTO"),i=Object.prototype;b.exports=Object.getPrototypeOf||function(n){return n=m(n),w(n,d)?n[d]:typeof n.constructor=="function"&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?i:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(v,b,C){var w=v("./_has"),m=v("./_to-iobject"),d=v("./_array-includes")(!1),i=v("./_shared-key")("IE_PROTO");b.exports=function(n,e){var a,s=m(n),o=0,f=[];for(a in s)a!=i&&w(s,a)&&f.push(a);for(;e.length>o;)w(s,a=e[o++])&&(~d(f,a)||f.push(a));return f}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(v,b,C){var w=v("./_object-keys-internal"),m=v("./_enum-bug-keys");b.exports=Object.keys||function(d){return w(d,m)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(v,b,C){C.f={}.propertyIsEnumerable},{}],108:[function(v,b,C){var w=v("./_export"),m=v("./_core"),d=v("./_fails");b.exports=function(i,n){var e=(m.Object||{})[i]||Object[i],a={};a[i]=n(e),w(w.S+w.F*d(function(){e(1)}),"Object",a)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(v,b,C){b.exports=function(w){try{return{e:!1,v:w()}}catch(m){return{e:!0,v:m}}}},{}],110:[function(v,b,C){var w=v("./_an-object"),m=v("./_is-object"),d=v("./_new-promise-capability");b.exports=function(i,n){if(w(i),m(n)&&n.constructor===i)return n;var e=d.f(i);return(0,e.resolve)(n),e.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(v,b,C){b.exports=function(w,m){return{enumerable:!(1&w),configurable:!(2&w),writable:!(4&w),value:m}}},{}],112:[function(v,b,C){var w=v("./_hide");b.exports=function(m,d,i){for(var n in d)i&&m[n]?m[n]=d[n]:w(m,n,d[n]);return m}},{"./_hide":78}],113:[function(v,b,C){b.exports=v("./_hide")},{"./_hide":78}],114:[function(v,b,C){"use strict";var w=v("./_global"),m=v("./_core"),d=v("./_object-dp"),i=v("./_descriptors"),n=v("./_wks")("species");b.exports=function(e){var a=typeof m[e]=="function"?m[e]:w[e];i&&a&&!a[n]&&d.f(a,n,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(v,b,C){var w=v("./_object-dp").f,m=v("./_has"),d=v("./_wks")("toStringTag");b.exports=function(i,n,e){i&&!m(i=e?i:i.prototype,d)&&w(i,d,{configurable:!0,value:n})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(v,b,C){var w=v("./_shared")("keys"),m=v("./_uid");b.exports=function(d){return w[d]||(w[d]=m(d))}},{"./_shared":117,"./_uid":127}],117:[function(v,b,C){var w=v("./_core"),m=v("./_global"),d=m["__core-js_shared__"]||(m["__core-js_shared__"]={});(b.exports=function(i,n){return d[i]||(d[i]=n!==void 0?n:{})})("versions",[]).push({version:w.version,mode:v("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(v,b,C){var w=v("./_an-object"),m=v("./_a-function"),d=v("./_wks")("species");b.exports=function(i,n){var e,a=w(i).constructor;return a===void 0||(e=w(a)[d])==null?n:m(e)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(v,b,C){var w=v("./_to-integer"),m=v("./_defined");b.exports=function(d){return function(i,n){var e,a,s=String(m(i)),o=w(n),f=s.length;return o<0||o>=f?d?"":void 0:(e=s.charCodeAt(o),e<55296||e>56319||o+1===f||(a=s.charCodeAt(o+1))<56320||a>57343?d?s.charAt(o):e:d?s.slice(o,o+2):a-56320+(e-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(v,b,C){var w,m,d,i=v("./_ctx"),n=v("./_invoke"),e=v("./_html"),a=v("./_dom-create"),s=v("./_global"),o=s.process,f=s.setImmediate,l=s.clearImmediate,r=s.MessageChannel,c=s.Dispatch,A=0,p={},x=function(){var B=+this;if(p.hasOwnProperty(B)){var E=p[B];delete p[B],E()}},_=function(B){x.call(B.data)};f&&l||(f=function(B){for(var E=[],g=1;arguments.length>g;)E.push(arguments[g++]);return p[++A]=function(){n(typeof B=="function"?B:Function(B),E)},w(A),A},l=function(B){delete p[B]},v("./_cof")(o)=="process"?w=function(B){o.nextTick(i(x,B,1))}:c&&c.now?w=function(B){c.now(i(x,B,1))}:r?(m=new r,d=m.port2,m.port1.onmessage=_,w=i(d.postMessage,d,1)):s.addEventListener&&typeof postMessage=="function"&&!s.importScripts?(w=function(B){s.postMessage(B+"","*")},s.addEventListener("message",_,!1)):w="onreadystatechange"in a("script")?function(B){e.appendChild(a("script")).onreadystatechange=function(){e.removeChild(this),x.call(B)}}:function(B){setTimeout(i(x,B,1),0)}),b.exports={set:f,clear:l}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(v,b,C){var w=v("./_to-integer"),m=Math.max,d=Math.min;b.exports=function(i,n){return i=w(i),i<0?m(i+n,0):d(i,n)}},{"./_to-integer":122}],122:[function(v,b,C){var w=Math.ceil,m=Math.floor;b.exports=function(d){return isNaN(d=+d)?0:(d>0?m:w)(d)}},{}],123:[function(v,b,C){var w=v("./_iobject"),m=v("./_defined");b.exports=function(d){return w(m(d))}},{"./_defined":68,"./_iobject":82}],124:[function(v,b,C){var w=v("./_to-integer"),m=Math.min;b.exports=function(d){return d>0?m(w(d),9007199254740991):0}},{"./_to-integer":122}],125:[function(v,b,C){var w=v("./_defined");b.exports=function(m){return Object(w(m))}},{"./_defined":68}],126:[function(v,b,C){var w=v("./_is-object");b.exports=function(m,d){if(!w(m))return m;var i,n;if(d&&typeof(i=m.toString)=="function"&&!w(n=i.call(m)))return n;if(typeof(i=m.valueOf)=="function"&&!w(n=i.call(m)))return n;if(!d&&typeof(i=m.toString)=="function"&&!w(n=i.call(m)))return n;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(v,b,C){var w=0,m=Math.random();b.exports=function(d){return"Symbol(".concat(d===void 0?"":d,")_",(++w+m).toString(36))}},{}],128:[function(v,b,C){var w=v("./_global"),m=w.navigator;b.exports=m&&m.userAgent||""},{"./_global":76}],129:[function(v,b,C){var w=v("./_global"),m=v("./_core"),d=v("./_library"),i=v("./_wks-ext"),n=v("./_object-dp").f;b.exports=function(e){var a=m.Symbol||(m.Symbol=d?{}:w.Symbol||{});e.charAt(0)=="_"||e in a||n(a,e,{value:i.f(e)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(v,b,C){C.f=v("./_wks")},{"./_wks":131}],131:[function(v,b,C){var w=v("./_shared")("wks"),m=v("./_uid"),d=v("./_global").Symbol,i=typeof d=="function";(b.exports=function(n){return w[n]||(w[n]=i&&d[n]||(i?d:m)("Symbol."+n))}).store=w},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(v,b,C){var w=v("./_classof"),m=v("./_wks")("iterator"),d=v("./_iterators");b.exports=v("./_core").getIteratorMethod=function(i){if(i!=null)return i[m]||i["@@iterator"]||d[w(i)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(v,b,C){"use strict";var w=v("./_ctx"),m=v("./_export"),d=v("./_to-object"),i=v("./_iter-call"),n=v("./_is-array-iter"),e=v("./_to-length"),a=v("./_create-property"),s=v("./core.get-iterator-method");m(m.S+m.F*!v("./_iter-detect")(function(o){Array.from(o)}),"Array",{from:function(o){var f,l,r,c,A=d(o),p=typeof this=="function"?this:Array,x=arguments.length,_=x>1?arguments[1]:void 0,B=_!==void 0,E=0,g=s(A);if(B&&(_=w(_,x>2?arguments[2]:void 0,2)),g==null||p==Array&&n(g))for(f=e(A.length),l=new p(f);f>E;E++)a(l,E,B?_(A[E],E):A[E]);else for(c=g.call(A),l=new p;!(r=c.next()).done;E++)a(l,E,B?i(c,_,[r.value,E],!0):r.value);return l.length=E,l}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(v,b,C){"use strict";var w=v("./_add-to-unscopables"),m=v("./_iter-step"),d=v("./_iterators"),i=v("./_to-iobject");b.exports=v("./_iter-define")(Array,"Array",function(n,e){this._t=i(n),this._i=0,this._k=e},function(){var n=this._t,e=this._k,a=this._i++;return!n||a>=n.length?(this._t=void 0,m(1)):e=="keys"?m(0,a):e=="values"?m(0,n[a]):m(0,[a,n[a]])},"values"),d.Arguments=d.Array,w("keys"),w("values"),w("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(v,b,C){"use strict";var w=v("./_is-object"),m=v("./_object-gpo"),d=v("./_wks")("hasInstance"),i=Function.prototype;d in i||v("./_object-dp").f(i,d,{value:function(n){if(typeof this!="function"||!w(n))return!1;if(!w(this.prototype))return n instanceof this;for(;n=m(n);)if(this.prototype===n)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(v,b,C){var w=v("./_export");w(w.S+w.F,"Object",{assign:v("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(v,b,C){var w=v("./_export");w(w.S,"Object",{create:v("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(v,b,C){var w=v("./_export");w(w.S+w.F*!v("./_descriptors"),"Object",{defineProperty:v("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(v,b,C){v("./_object-sap")("getOwnPropertyNames",function(){return v("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(v,b,C){var w=v("./_to-object"),m=v("./_object-gpo");v("./_object-sap")("getPrototypeOf",function(){return function(d){return m(w(d))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(v,b,C){var w=v("./_to-object"),m=v("./_object-keys");v("./_object-sap")("keys",function(){return function(d){return m(w(d))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(v,b,C){arguments[4][36][0].apply(C,arguments)},{dup:36}],143:[function(v,b,C){"use strict";var w,m,d,i,n=v("./_library"),e=v("./_global"),a=v("./_ctx"),s=v("./_classof"),o=v("./_export"),f=v("./_is-object"),l=v("./_a-function"),r=v("./_an-instance"),c=v("./_for-of"),A=v("./_species-constructor"),p=v("./_task").set,x=v("./_microtask")(),_=v("./_new-promise-capability"),B=v("./_perform"),E=v("./_user-agent"),g=v("./_promise-resolve"),h=e.TypeError,u=e.process,S=u&&u.versions,O=S&&S.v8||"",T=e.Promise,D=s(u)=="process",I=function(){},k=m=_.f,F=!!function(){try{var ne=T.resolve(1),ue=(ne.constructor={})[v("./_wks")("species")]=function(be){be(I,I)};return(D||typeof PromiseRejectionEvent=="function")&&ne.then(I)instanceof ue&&O.indexOf("6.6")!==0&&E.indexOf("Chrome/66")===-1}catch(be){}}(),X=function(ne){var ue;return!(!f(ne)||typeof(ue=ne.then)!="function")&&ue},U=function(ne,ue){if(!ne._n){ne._n=!0;var be=ne._c;x(function(){for(var de=ne._v,_e=ne._s==1,me=0;be.length>me;)!function(Ee){var ge,Ae,ae,ve=_e?Ee.ok:Ee.fail,oe=Ee.resolve,ie=Ee.reject,Te=Ee.domain;try{ve?(_e||(ne._h==2&&N(ne),ne._h=1),ve===!0?ge=de:(Te&&Te.enter(),ge=ve(de),Te&&(Te.exit(),ae=!0)),ge===Ee.promise?ie(h("Promise-chain cycle")):(Ae=X(ge))?Ae.call(ge,oe,ie):oe(ge)):ie(de)}catch(Re){Te&&!ae&&Te.exit(),ie(Re)}}(be[me++]);ne._c=[],ne._n=!1,ue&&!ne._h&&K(ne)})}},K=function(ne){p.call(e,function(){var ue,be,de,_e=ne._v,me=V(ne);if(me&&(ue=B(function(){D?u.emit("unhandledRejection",_e,ne):(be=e.onunhandledrejection)?be({promise:ne,reason:_e}):(de=e.console)&&de.error&&de.error("Unhandled promise rejection",_e)}),ne._h=D||V(ne)?2:1),ne._a=void 0,me&&ue.e)throw ue.v})},V=function(ne){return ne._h!==1&&(ne._a||ne._c).length===0},N=function(ne){p.call(e,function(){var ue;D?u.emit("rejectionHandled",ne):(ue=e.onrejectionhandled)&&ue({promise:ne,reason:ne._v})})},Q=function(ne){var ue=this;ue._d||(ue._d=!0,ue=ue._w||ue,ue._v=ne,ue._s=2,ue._a||(ue._a=ue._c.slice()),U(ue,!0))},J=function(ne){var ue,be=this;if(!be._d){be._d=!0,be=be._w||be;try{if(be===ne)throw h("Promise can't be resolved itself");(ue=X(ne))?x(function(){var de={_w:be,_d:!1};try{ue.call(ne,a(J,de,1),a(Q,de,1))}catch(_e){Q.call(de,_e)}}):(be._v=ne,be._s=1,U(be,!1))}catch(de){Q.call({_w:be,_d:!1},de)}}};F||(T=function(ne){r(this,T,"Promise","_h"),l(ne),w.call(this);try{ne(a(J,this,1),a(Q,this,1))}catch(ue){Q.call(this,ue)}},w=function(ne){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},w.prototype=v("./_redefine-all")(T.prototype,{then:function(ne,ue){var be=k(A(this,T));return be.ok=typeof ne!="function"||ne,be.fail=typeof ue=="function"&&ue,be.domain=D?u.domain:void 0,this._c.push(be),this._a&&this._a.push(be),this._s&&U(this,!1),be.promise},catch:function(ne){return this.then(void 0,ne)}}),d=function(){var ne=new w;this.promise=ne,this.resolve=a(J,ne,1),this.reject=a(Q,ne,1)},_.f=k=function(ne){return ne===T||ne===i?new d(ne):m(ne)}),o(o.G+o.W+o.F*!F,{Promise:T}),v("./_set-to-string-tag")(T,"Promise"),v("./_set-species")("Promise"),i=v("./_core").Promise,o(o.S+o.F*!F,"Promise",{reject:function(ne){var ue=k(this);return(0,ue.reject)(ne),ue.promise}}),o(o.S+o.F*(n||!F),"Promise",{resolve:function(ne){return g(n&&this===i?T:this,ne)}}),o(o.S+o.F*!(F&&v("./_iter-detect")(function(ne){T.all(ne).catch(I)})),"Promise",{all:function(ne){var ue=this,be=k(ue),de=be.resolve,_e=be.reject,me=B(function(){var Ee=[],ge=0,Ae=1;c(ne,!1,function(ae){var ve=ge++,oe=!1;Ee.push(void 0),Ae++,ue.resolve(ae).then(function(ie){oe||(oe=!0,Ee[ve]=ie,--Ae||de(Ee))},_e)}),--Ae||de(Ee)});return me.e&&_e(me.v),be.promise},race:function(ne){var ue=this,be=k(ue),de=be.reject,_e=B(function(){c(ne,!1,function(me){ue.resolve(me).then(be.resolve,de)})});return _e.e&&de(_e.v),be.promise}})},{"./_a-function":58,"./_an-instance":60,"./_classof":63,"./_core":65,"./_ctx":67,"./_export":73,"./_for-of":75,"./_global":76,"./_is-object":85,"./_iter-detect":89,"./_library":92,"./_microtask":94,"./_new-promise-capability":95,"./_perform":109,"./_promise-resolve":110,"./_redefine-all":112,"./_set-species":114,"./_set-to-string-tag":115,"./_species-constructor":118,"./_task":120,"./_user-agent":128,"./_wks":131}],144:[function(v,b,C){var w=v("./_export"),m=v("./_to-absolute-index"),d=String.fromCharCode,i=String.fromCodePoint;w(w.S+w.F*(!!i&&i.length!=1),"String",{fromCodePoint:function(n){for(var e,a=[],s=arguments.length,o=0;s>o;){if(e=+arguments[o++],m(e,1114111)!==e)throw RangeError(e+" is not a valid code point");a.push(e<65536?d(e):d(55296+((e-=65536)>>10),e%1024+56320))}return a.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(v,b,C){"use strict";var w=v("./_string-at")(!0);v("./_iter-define")(String,"String",function(m){this._t=String(m),this._i=0},function(){var m,d=this._t,i=this._i;return i>=d.length?{value:void 0,done:!0}:(m=w(d,i),this._i+=m.length,{value:m,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(v,b,C){"use strict";var w=v("./_global"),m=v("./_has"),d=v("./_descriptors"),i=v("./_export"),n=v("./_redefine"),e=v("./_meta").KEY,a=v("./_fails"),s=v("./_shared"),o=v("./_set-to-string-tag"),f=v("./_uid"),l=v("./_wks"),r=v("./_wks-ext"),c=v("./_wks-define"),A=v("./_enum-keys"),p=v("./_is-array"),x=v("./_an-object"),_=v("./_is-object"),B=v("./_to-iobject"),E=v("./_to-primitive"),g=v("./_property-desc"),h=v("./_object-create"),u=v("./_object-gopn-ext"),S=v("./_object-gopd"),O=v("./_object-dp"),T=v("./_object-keys"),D=S.f,I=O.f,k=u.f,F=w.Symbol,X=w.JSON,U=X&&X.stringify,K=l("_hidden"),V=l("toPrimitive"),N={}.propertyIsEnumerable,Q=s("symbol-registry"),J=s("symbols"),ne=s("op-symbols"),ue=Object.prototype,be=typeof F=="function",de=w.QObject,_e=!de||!de.prototype||!de.prototype.findChild,me=d&&a(function(){return h(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a!=7})?function(he,te,ce){var Ie=D(ue,te);Ie&&delete ue[te],I(he,te,ce),Ie&&he!==ue&&I(ue,te,Ie)}:I,Ee=function(he){var te=J[he]=h(F.prototype);return te._k=he,te},ge=be&&typeof F.iterator=="symbol"?function(he){return typeof he=="symbol"}:function(he){return he instanceof F},Ae=function(he,te,ce){return he===ue&&Ae(ne,te,ce),x(he),te=E(te,!0),x(ce),m(J,te)?(ce.enumerable?(m(he,K)&&he[K][te]&&(he[K][te]=!1),ce=h(ce,{enumerable:g(0,!1)})):(m(he,K)||I(he,K,g(1,{})),he[K][te]=!0),me(he,te,ce)):I(he,te,ce)},ae=function(he,te){x(he);for(var ce,Ie=A(te=B(te)),ze=0,_t=Ie.length;_t>ze;)Ae(he,ce=Ie[ze++],te[ce]);return he},ve=function(he,te){return te===void 0?h(he):ae(h(he),te)},oe=function(he){var te=N.call(this,he=E(he,!0));return!(this===ue&&m(J,he)&&!m(ne,he))&&(!(te||!m(this,he)||!m(J,he)||m(this,K)&&this[K][he])||te)},ie=function(he,te){if(he=B(he),te=E(te,!0),he!==ue||!m(J,te)||m(ne,te)){var ce=D(he,te);return!ce||!m(J,te)||m(he,K)&&he[K][te]||(ce.enumerable=!0),ce}},Te=function(he){for(var te,ce=k(B(he)),Ie=[],ze=0;ce.length>ze;)m(J,te=ce[ze++])||te==K||te==e||Ie.push(te);return Ie},Re=function(he){for(var te,ce=he===ue,Ie=k(ce?ne:B(he)),ze=[],_t=0;Ie.length>_t;)!m(J,te=Ie[_t++])||ce&&!m(ue,te)||ze.push(J[te]);return ze};be||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var he=f(arguments.length>0?arguments[0]:void 0),te=function(ce){this===ue&&te.call(ne,ce),m(this,K)&&m(this[K],he)&&(this[K][he]=!1),me(this,he,g(1,ce))};return d&&_e&&me(ue,he,{configurable:!0,set:te}),Ee(he)},n(F.prototype,"toString",function(){return this._k}),S.f=ie,O.f=Ae,v("./_object-gopn").f=u.f=Te,v("./_object-pie").f=oe,v("./_object-gops").f=Re,d&&!v("./_library")&&n(ue,"propertyIsEnumerable",oe,!0),r.f=function(he){return Ee(l(he))}),i(i.G+i.W+i.F*!be,{Symbol:F});for(var Me="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;Me.length>re;)l(Me[re++]);for(var j=T(l.store),W=0;j.length>W;)c(j[W++]);i(i.S+i.F*!be,"Symbol",{for:function(he){return m(Q,he+="")?Q[he]:Q[he]=F(he)},keyFor:function(he){if(!ge(he))throw TypeError(he+" is not a symbol!");for(var te in Q)if(Q[te]===he)return te},useSetter:function(){_e=!0},useSimple:function(){_e=!1}}),i(i.S+i.F*!be,"Object",{create:ve,defineProperty:Ae,defineProperties:ae,getOwnPropertyDescriptor:ie,getOwnPropertyNames:Te,getOwnPropertySymbols:Re}),X&&i(i.S+i.F*(!be||a(function(){var he=F();return U([he])!="[null]"||U({a:he})!="{}"||U(Object(he))!="{}"})),"JSON",{stringify:function(he){for(var te,ce,Ie=[he],ze=1;arguments.length>ze;)Ie.push(arguments[ze++]);if(ce=te=Ie[1],(_(te)||he!==void 0)&&!ge(he))return p(te)||(te=function(_t,He){if(typeof ce=="function"&&(He=ce.call(this,_t,He)),!ge(He))return He}),Ie[1]=te,U.apply(X,Ie)}}),F.prototype[V]||v("./_hide")(F.prototype,V,F.prototype.valueOf),o(F,"Symbol"),o(Math,"Math",!0),o(w.JSON,"JSON",!0)},{"./_an-object":61,"./_descriptors":69,"./_enum-keys":72,"./_export":73,"./_fails":74,"./_global":76,"./_has":77,"./_hide":78,"./_is-array":84,"./_is-object":85,"./_library":92,"./_meta":93,"./_object-create":97,"./_object-dp":98,"./_object-gopd":100,"./_object-gopn":102,"./_object-gopn-ext":101,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_property-desc":111,"./_redefine":113,"./_set-to-string-tag":115,"./_shared":117,"./_to-iobject":123,"./_to-primitive":126,"./_uid":127,"./_wks":131,"./_wks-define":129,"./_wks-ext":130}],147:[function(v,b,C){"use strict";var w=v("./_export"),m=v("./_core"),d=v("./_global"),i=v("./_species-constructor"),n=v("./_promise-resolve");w(w.P+w.R,"Promise",{finally:function(e){var a=i(this,m.Promise||d.Promise),s=typeof e=="function";return this.then(s?function(o){return n(a,e()).then(function(){return o})}:e,s?function(o){return n(a,e()).then(function(){throw o})}:e)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(v,b,C){"use strict";var w=v("./_export"),m=v("./_new-promise-capability"),d=v("./_perform");w(w.S,"Promise",{try:function(i){var n=m.f(this),e=d(i);return(e.e?n.reject:n.resolve)(e.v),n.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(v,b,C){v("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(v,b,C){v("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(v,b,C){v("./es6.array.iterator");for(var w=v("./_global"),m=v("./_hide"),d=v("./_iterators"),i=v("./_wks")("toStringTag"),n="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),e=0;e<n.length;e++){var a=n[e],s=w[a],o=s&&s.prototype;o&&!o[i]&&m(o,i,a),d[a]=d.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(v,b,C){var w=v("./_export"),m=v("./_task");w(w.G+w.B,{setImmediate:m.set,clearImmediate:m.clear})},{"./_export":73,"./_task":120}],153:[function(v,b,C){(function(w){"use strict";function m(E){return Array.isArray?Array.isArray(E):x(E)==="[object Array]"}function d(E){return typeof E=="boolean"}function i(E){return E===null}function n(E){return E==null}function e(E){return typeof E=="number"}function a(E){return typeof E=="string"}function s(E){return(E===void 0?"undefined":(0,B.default)(E))==="symbol"}function o(E){return E===void 0}function f(E){return x(E)==="[object RegExp]"}function l(E){return(E===void 0?"undefined":(0,B.default)(E))==="object"&&E!==null}function r(E){return x(E)==="[object Date]"}function c(E){return x(E)==="[object Error]"||E instanceof Error}function A(E){return typeof E=="function"}function p(E){return E===null||typeof E=="boolean"||typeof E=="number"||typeof E=="string"||(E===void 0?"undefined":(0,B.default)(E))==="symbol"||E===void 0}function x(E){return Object.prototype.toString.call(E)}var _=v("babel-runtime/helpers/typeof"),B=function(E){return E&&E.__esModule?E:{default:E}}(_);C.isArray=m,C.isBoolean=d,C.isNull=i,C.isNullOrUndefined=n,C.isNumber=e,C.isString=a,C.isSymbol=s,C.isUndefined=o,C.isRegExp=f,C.isObject=l,C.isDate=r,C.isError=c,C.isFunction=A,C.isPrimitive=p,C.isBuffer=w.isBuffer}).call(this,{isBuffer:v("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(v,b,C){"use strict";var w=v("babel-runtime/helpers/typeof"),m=function(d){return d&&d.__esModule?d:{default:d}}(w);!function(d){function i(o,f){for(o=String(o),f=f||2;o.length<f;)o="0"+o;return o}function n(o){var f=new Date(o.getFullYear(),o.getMonth(),o.getDate());f.setDate(f.getDate()-(f.getDay()+6)%7+3);var l=new Date(f.getFullYear(),0,4);l.setDate(l.getDate()-(l.getDay()+6)%7+3);var r=f.getTimezoneOffset()-l.getTimezoneOffset();f.setHours(f.getHours()-r);var c=(f-l)/6048e5;return 1+Math.floor(c)}function e(o){var f=o.getDay();return f===0&&(f=7),f}function a(o){return o===null?"null":o===void 0?"undefined":(o===void 0?"undefined":(0,m.default)(o))!=="object"?o===void 0?"undefined":(0,m.default)(o):Array.isArray(o)?"array":{}.toString.call(o).slice(8,-1).toLowerCase()}var s=function(){var o=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,f=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g;return function(r,c,A,p){if(arguments.length!==1||a(r)!=="string"||/\d/.test(r)||(c=r,r=void 0),r=r||new Date,r instanceof Date||(r=new Date(r)),isNaN(r))throw TypeError("Invalid date");c=String(s.masks[c]||c||s.masks.default);var x=c.slice(0,4);x!=="UTC:"&&x!=="GMT:"||(c=c.slice(4),A=!0,x==="GMT:"&&(p=!0));var _=A?"getUTC":"get",B=r[_+"Date"](),E=r[_+"Day"](),g=r[_+"Month"](),h=r[_+"FullYear"](),u=r[_+"Hours"](),S=r[_+"Minutes"](),O=r[_+"Seconds"](),T=r[_+"Milliseconds"](),D=A?0:r.getTimezoneOffset(),I=n(r),k=e(r),F={d:B,dd:i(B),ddd:s.i18n.dayNames[E],dddd:s.i18n.dayNames[E+7],m:g+1,mm:i(g+1),mmm:s.i18n.monthNames[g],mmmm:s.i18n.monthNames[g+12],yy:String(h).slice(2),yyyy:h,h:u%12||12,hh:i(u%12||12),H:u,HH:i(u),M:S,MM:i(S),s:O,ss:i(O),l:i(T,3),L:i(Math.round(T/10)),t:u<12?"a":"p",tt:u<12?"am":"pm",T:u<12?"A":"P",TT:u<12?"AM":"PM",Z:p?"GMT":A?"UTC":(String(r).match(f)||[""]).pop().replace(l,""),o:(D>0?"-":"+")+i(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4),S:["th","st","nd","rd"][B%10>3?0:(B%100-B%10!=10)*B%10],W:I,N:k};return c.replace(o,function(X){return X in F?F[X]:X.slice(1,X.length-1)})}}();s.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},s.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},typeof M=="function"&&M.amd?M(function(){return s}):(C===void 0?"undefined":(0,m.default)(C))==="object"?b.exports=s:d.dateFormat=s}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(v,b,C){(function(w){function m(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function d(a){var s=this.useColors;if(a[0]=(s?"%c":"")+this.namespace+(s?" %c":" ")+a[0]+(s?"%c ":" ")+"+"+C.humanize(this.diff),s){var o="color: "+this.color;a.splice(1,0,o,"color: inherit");var f=0,l=0;a[0].replace(/%[a-zA-Z%]/g,function(r){r!=="%%"&&(f++,r==="%c"&&(l=f))}),a.splice(l,0,o)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function n(a){try{a==null?C.storage.removeItem("debug"):C.storage.debug=a}catch(s){}}function e(){var a;try{a=C.storage.debug}catch(s){}return!a&&w!==void 0&&"env"in w&&(a=w.env.DEBUG),a}C=b.exports=v("./debug"),C.log=i,C.formatArgs=d,C.save=n,C.load=e,C.useColors=m,C.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(a){}}(),C.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],C.formatters.j=function(a){try{return JSON.stringify(a)}catch(s){return"[UnexpectedJSONParseError]: "+s.message}},C.enable(e())}).call(this,v("_process"))},{"./debug":156,_process:173}],156:[function(v,b,C){function w(s){var o,f=0;for(o in s)f=(f<<5)-f+s.charCodeAt(o),f|=0;return C.colors[Math.abs(f)%C.colors.length]}function m(s){function o(){if(o.enabled){var f=o,l=+new Date,r=l-(a||l);f.diff=r,f.prev=a,f.curr=l,a=l;for(var c=new Array(arguments.length),A=0;A<c.length;A++)c[A]=arguments[A];c[0]=C.coerce(c[0]),typeof c[0]!="string"&&c.unshift("%O");var p=0;c[0]=c[0].replace(/%([a-zA-Z%])/g,function(x,_){if(x==="%%")return x;p++;var B=C.formatters[_];if(typeof B=="function"){var E=c[p];x=B.call(f,E),c.splice(p,1),p--}return x}),C.formatArgs.call(f,c),(o.log||C.log||console.log.bind(console)).apply(f,c)}}return o.namespace=s,o.enabled=C.enabled(s),o.useColors=C.useColors(),o.color=w(s),typeof C.init=="function"&&C.init(o),o}function d(s){C.save(s),C.names=[],C.skips=[];for(var o=(typeof s=="string"?s:"").split(/[\s,]+/),f=o.length,l=0;l<f;l++)o[l]&&(s=o[l].replace(/\*/g,".*?"),s[0]==="-"?C.skips.push(new RegExp("^"+s.substr(1)+"$")):C.names.push(new RegExp("^"+s+"$")))}function i(){C.enable("")}function n(s){var o,f;for(o=0,f=C.skips.length;o<f;o++)if(C.skips[o].test(s))return!1;for(o=0,f=C.names.length;o<f;o++)if(C.names[o].test(s))return!0;return!1}function e(s){return s instanceof Error?s.stack||s.message:s}C=b.exports=m.debug=m.default=m,C.coerce=e,C.disable=i,C.enable=d,C.enabled=n,C.humanize=v("ms"),C.names=[],C.skips=[],C.formatters={};var a},{ms:169}],157:[function(v,b,C){"use strict";function w(d){var i=""+d,n=m.exec(i);if(!n)return i;var e,a="",s=0,o=0;for(s=n.index;s<i.length;s++){switch(i.charCodeAt(s)){case 34:e="&quot;";break;case 38:e="&amp;";break;case 39:e="&#39;";break;case 60:e="&lt;";break;case 62:e="&gt;";break;default:continue}o!==s&&(a+=i.substring(o,s)),o=s+1,a+=e}return o!==s?a+i.substring(o,s):a}var m=/["'&<>]/;b.exports=w},{}],158:[function(v,b,C){function w(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function m(e){return typeof e=="function"}function d(e){return typeof e=="number"}function i(e){return typeof e=="object"&&e!==null}function n(e){return e===void 0}b.exports=w,w.EventEmitter=w,w.prototype._events=void 0,w.prototype._maxListeners=void 0,w.defaultMaxListeners=10,w.prototype.setMaxListeners=function(e){if(!d(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},w.prototype.emit=function(e){var a,s,o,f,l,r;if(this._events||(this._events={}),e==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((a=arguments[1])instanceof Error)throw a;var c=new Error('Uncaught, unspecified "error" event. ('+a+")");throw c.context=a,c}if(s=this._events[e],n(s))return!1;if(m(s))switch(arguments.length){case 1:s.call(this);break;case 2:s.call(this,arguments[1]);break;case 3:s.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),s.apply(this,f)}else if(i(s))for(f=Array.prototype.slice.call(arguments,1),r=s.slice(),o=r.length,l=0;l<o;l++)r[l].apply(this,f);return!0},w.prototype.addListener=function(e,a){var s;if(!m(a))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,m(a.listener)?a.listener:a),this._events[e]?i(this._events[e])?this._events[e].push(a):this._events[e]=[this._events[e],a]:this._events[e]=a,i(this._events[e])&&!this._events[e].warned&&(s=n(this._maxListeners)?w.defaultMaxListeners:this._maxListeners)&&s>0&&this._events[e].length>s&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),typeof console.trace=="function"&&console.trace()),this},w.prototype.on=w.prototype.addListener,w.prototype.once=function(e,a){function s(){this.removeListener(e,s),o||(o=!0,a.apply(this,arguments))}if(!m(a))throw TypeError("listener must be a function");var o=!1;return s.listener=a,this.on(e,s),this},w.prototype.removeListener=function(e,a){var s,o,f,l;if(!m(a))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=this._events[e],f=s.length,o=-1,s===a||m(s.listener)&&s.listener===a)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,a);else if(i(s)){for(l=f;l-- >0;)if(s[l]===a||s[l].listener&&s[l].listener===a){o=l;break}if(o<0)return this;s.length===1?(s.length=0,delete this._events[e]):s.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,a)}return this},w.prototype.removeAllListeners=function(e){var a,s;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this;if(arguments.length===0){for(a in this._events)a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events={},this}if(s=this._events[e],m(s))this.removeListener(e,s);else if(s)for(;s.length;)this.removeListener(e,s[s.length-1]);return delete this._events[e],this},w.prototype.listeners=function(e){return this._events&&this._events[e]?m(this._events[e])?[this._events[e]]:this._events[e].slice():[]},w.prototype.listenerCount=function(e){if(this._events){var a=this._events[e];if(m(a))return 1;if(a)return a.length}return 0},w.listenerCount=function(e,a){return e.listenerCount(a)}},{}],159:[function(v,b,C){var w=v("http"),m=b.exports;for(var d in w)w.hasOwnProperty(d)&&(m[d]=w[d]);m.request=function(i,n){return i||(i={}),i.scheme="https",i.protocol="https:",w.request.call(this,i,n)}},{http:196}],160:[function(v,b,C){"use strict";var w=v("util"),m=v("ms");b.exports=function(d){if(typeof d=="number")return d;var i=m(d);if(i===void 0){var n=new Error(w.format("humanize-ms(%j) result undefined",d));console.warn(n.stack)}return i}},{ms:169,util:207}],161:[function(v,b,C){C.read=function(w,m,d,i,n){var e,a,s=8*n-i-1,o=(1<<s)-1,f=o>>1,l=-7,r=d?n-1:0,c=d?-1:1,A=w[m+r];for(r+=c,e=A&(1<<-l)-1,A>>=-l,l+=s;l>0;e=256*e+w[m+r],r+=c,l-=8);for(a=e&(1<<-l)-1,e>>=-l,l+=i;l>0;a=256*a+w[m+r],r+=c,l-=8);if(e===0)e=1-f;else{if(e===o)return a?NaN:1/0*(A?-1:1);a+=Math.pow(2,i),e-=f}return(A?-1:1)*a*Math.pow(2,e-i)},C.write=function(w,m,d,i,n,e){var a,s,o,f=8*e-n-1,l=(1<<f)-1,r=l>>1,c=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=i?0:e-1,p=i?1:-1,x=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===1/0?(s=isNaN(m)?1:0,a=l):(a=Math.floor(Math.log(m)/Math.LN2),m*(o=Math.pow(2,-a))<1&&(a--,o*=2),m+=a+r>=1?c/o:c*Math.pow(2,1-r),m*o>=2&&(a++,o/=2),a+r>=l?(s=0,a=l):a+r>=1?(s=(m*o-1)*Math.pow(2,n),a+=r):(s=m*Math.pow(2,r-1)*Math.pow(2,n),a=0));n>=8;w[d+A]=255&s,A+=p,s/=256,n-=8);for(a=a<<n|s,f+=n;f>0;w[d+A]=255&a,A+=p,a/=256,f-=8);w[d+A-p]|=128*x}},{}],162:[function(v,b,C){typeof Object.create=="function"?b.exports=function(w,m){w.super_=m,w.prototype=Object.create(m.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}})}:b.exports=function(w,m){w.super_=m;var d=function(){};d.prototype=m.prototype,w.prototype=new d,w.prototype.constructor=w}},{}],163:[function(v,b,C){function w(d){return!!d.constructor&&typeof d.constructor.isBuffer=="function"&&d.constructor.isBuffer(d)}function m(d){return typeof d.readFloatLE=="function"&&typeof d.slice=="function"&&w(d.slice(0,0))}b.exports=function(d){return d!=null&&(w(d)||m(d)||!!d._isBuffer)}},{}],164:[function(v,b,C){!function(w){function m(n){return i.call(n).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function d(n){return typeof n=="function"&&(/^class(\s|\{\}$)/.test(i.call(n))||/^.*classCallCheck\(/.test(m(n)))}var i=Function.prototype.toString;C!==void 0?(b!==void 0&&b.exports&&(C=b.exports=d),C.isClass=d):typeof M=="function"&&M.amd?M([],function(){return d}):w.isClass=d}(this)},{}],165:[function(v,b,C){"use strict";function w(e){var a=e.slice(2);return a=a[0].toLowerCase()+a.slice(1)}var m=v("core-util-is"),d=v("isstream"),i=v("is-class");Object.keys(m).map(function(e){C[w(e)]=m[e]}),C.stream=d,C.readableStream=d.isReadable,C.writableStream=d.isWritable,C.duplexStream=d.isDuplex,C.class=i,C.finite=function(e){return Number.isFinite(e)},C.NaN=function(e){return Number.isNaN(e)},C.generator=function(e){return e&&typeof e.next=="function"&&typeof e.throw=="function"},C.generatorFunction=function(e){return e&&e.constructor&&e.constructor.name==="GeneratorFunction"},C.asyncFunction=function(e){return e&&e.constructor&&e.constructor.name==="AsyncFunction"},C.promise=function(e){return e&&typeof e.then=="function"};var n=Math.pow(2,31);C.int=function(e){return m.isNumber(e)&&e%1==0},C.int32=function(e){return C.int(e)&&e<n&&e>=-n},C.long=function(e){return C.int(e)&&(e>=n||e<-n)},C.Long=function(e){return C.object(e)&&C.number(e.high)&&C.number(e.low)},C.double=function(e){return m.isNumber(e)&&!isNaN(e)&&e%1!=0},C.date=function(e){return e instanceof Date},C.regExp=function(e){return e instanceof RegExp},C.regexp=C.regExp,C.error=function(e){return e instanceof Error},C.array=function(e){return Array.isArray(e)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(v,b,C){var w={}.toString;b.exports=Array.isArray||function(m){return w.call(m)=="[object Array]"}},{}],167:[function(v,b,C){function w(e){return e instanceof n.Stream}function m(e){return w(e)&&typeof e._read=="function"&&typeof e._readableState=="object"}function d(e){return w(e)&&typeof e._write=="function"&&typeof e._writableState=="object"}function i(e){return m(e)&&d(e)}var n=v("stream");b.exports=w,b.exports.isReadable=m,b.exports.isWritable=d,b.exports.isDuplex=i},{stream:195}],168:[function(v,b,C){"use strict";function w(d,i,n){if(!d)throw new TypeError("argument dest is required");if(!i)throw new TypeError("argument src is required");return n===void 0&&(n=!0),Object.getOwnPropertyNames(i).forEach(function(e){if(n||!m.call(d,e)){var a=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(d,e,a)}}),d}b.exports=w;var m=Object.prototype.hasOwnProperty},{}],169:[function(v,b,C){function w(f){if(f=String(f),!(f.length>100)){var l=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(f);if(l){var r=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*o;case"days":case"day":case"d":return r*s;case"hours":case"hour":case"hrs":case"hr":case"h":return r*a;case"minutes":case"minute":case"mins":case"min":case"m":return r*e;case"seconds":case"second":case"secs":case"sec":case"s":return r*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function m(f){return f>=s?Math.round(f/s)+"d":f>=a?Math.round(f/a)+"h":f>=e?Math.round(f/e)+"m":f>=n?Math.round(f/n)+"s":f+"ms"}function d(f){return i(f,s,"day")||i(f,a,"hour")||i(f,e,"minute")||i(f,n,"second")||f+" ms"}function i(f,l,r){if(!(f<l))return f<1.5*l?Math.floor(f/l)+" "+r:Math.ceil(f/l)+" "+r+"s"}var n=1e3,e=60*n,a=60*e,s=24*a,o=365.25*s;b.exports=function(f,l){l=l||{};var r=typeof f;if(r==="string"&&f.length>0)return w(f);if(r==="number"&&isNaN(f)===!1)return l.long?d(f):m(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))}},{}],170:[function(v,b,C){(function(w){function m(e,a){for(var s=0,o=e.length-1;o>=0;o--){var f=e[o];f==="."?e.splice(o,1):f===".."?(e.splice(o,1),s++):s&&(e.splice(o,1),s--)}if(a)for(;s--;s)e.unshift("..");return e}function d(e){typeof e!="string"&&(e+="");var a,s=0,o=-1,f=!0;for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!f){s=a+1;break}}else o===-1&&(f=!1,o=a+1);return o===-1?"":e.slice(s,o)}function i(e,a){if(e.filter)return e.filter(a);for(var s=[],o=0;o<e.length;o++)a(e[o],o,e)&&s.push(e[o]);return s}C.resolve=function(){for(var e="",a=!1,s=arguments.length-1;s>=-1&&!a;s--){var o=s>=0?arguments[s]:w.cwd();if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,a=o.charAt(0)==="/")}return e=m(i(e.split("/"),function(f){return!!f}),!a).join("/"),(a?"/":"")+e||"."},C.normalize=function(e){var a=C.isAbsolute(e),s=n(e,-1)==="/";return e=m(i(e.split("/"),function(o){return!!o}),!a).join("/"),e||a||(e="."),e&&s&&(e+="/"),(a?"/":"")+e},C.isAbsolute=function(e){return e.charAt(0)==="/"},C.join=function(){var e=Array.prototype.slice.call(arguments,0);return C.normalize(i(e,function(a,s){if(typeof a!="string")throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},C.relative=function(e,a){function s(p){for(var x=0;x<p.length&&p[x]==="";x++);for(var _=p.length-1;_>=0&&p[_]==="";_--);return x>_?[]:p.slice(x,_-x+1)}e=C.resolve(e).substr(1),a=C.resolve(a).substr(1);for(var o=s(e.split("/")),f=s(a.split("/")),l=Math.min(o.length,f.length),r=l,c=0;c<l;c++)if(o[c]!==f[c]){r=c;break}for(var A=[],c=r;c<o.length;c++)A.push("..");return A=A.concat(f.slice(r)),A.join("/")},C.sep="/",C.delimiter=":",C.dirname=function(e){if(typeof e!="string"&&(e+=""),e.length===0)return".";for(var a=e.charCodeAt(0),s=a===47,o=-1,f=!0,l=e.length-1;l>=1;--l)if((a=e.charCodeAt(l))===47){if(!f){o=l;break}}else f=!1;return o===-1?s?"/":".":s&&o===1?"/":e.slice(0,o)},C.basename=function(e,a){var s=d(e);return a&&s.substr(-1*a.length)===a&&(s=s.substr(0,s.length-a.length)),s},C.extname=function(e){typeof e!="string"&&(e+="");for(var a=-1,s=0,o=-1,f=!0,l=0,r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(c!==47)o===-1&&(f=!1,o=r+1),c===46?a===-1?a=r:l!==1&&(l=1):a!==-1&&(l=-1);else if(!f){s=r+1;break}}return a===-1||o===-1||l===0||l===1&&a===o-1&&a===s+1?"":e.slice(a,o)};var n="ab".substr(-1)==="b"?function(e,a,s){return e.substr(a,s)}:function(e,a,s){return a<0&&(a=e.length+a),e.substr(a,s)}}).call(this,v("_process"))},{_process:173}],171:[function(v,b,C){(function(w){(function(){"use strict";function m(O){return O=String(O),O.charAt(0).toUpperCase()+O.slice(1)}function d(O,T,D){var I={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return T&&D&&/^Win/i.test(O)&&!/^Windows Phone /i.test(O)&&(I=I[/[\d.]+$/.exec(O)])&&(O="Windows "+I),O=String(O),T&&D&&(O=O.replace(RegExp(T,"i"),D)),O=n(O.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function i(O,T){var D=-1,I=O?O.length:0;if(typeof I=="number"&&I>-1&&I<=B)for(;++D<I;)T(O[D],D,O);else e(O,T)}function n(O){return O=l(O),/^(?:webOS|i(?:OS|P))/.test(O)?O:m(O)}function e(O,T){for(var D in O)h.call(O,D)&&T(O[D],D,O)}function a(O){return O==null?m(O):u.call(O).slice(8,-1)}function s(O,T){var D=O!=null?typeof O[T]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(D)||D=="object"&&!O[T])}function o(O){return String(O).replace(/([ -])(?!$)/g,"$1?")}function f(O,T){var D=null;return i(O,function(I,k){D=T(D,I,k,O)}),D}function l(O){return String(O).replace(/^ +| +$/g,"")}function r(O){function T(he){return f(he,function(te,ce){var Ie=ce.pattern||o(ce);return!te&&(te=RegExp("\\b"+Ie+" *\\d+[.\\w_]*","i").exec(O)||RegExp("\\b"+Ie+" *\\w+-[\\w]*","i").exec(O)||RegExp("\\b"+Ie+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(O))&&((te=String(ce.label&&!RegExp(Ie,"i").test(ce.label)?ce.label:te).split("/"))[1]&&!/[\d.]+/.test(te[0])&&(te[0]+=" "+te[1]),ce=ce.label||ce,te=n(te[0].replace(RegExp(Ie,"i"),ce).replace(RegExp("; *(?:"+ce+"[_-])?","i")," ").replace(RegExp("("+ce+")[-_.]?(\\w)","i"),"$1 $2"))),te})}function D(){return this.description||""}var I=A,k=O&&typeof O=="object"&&a(O)!="String";k&&(I=O,O=null);var F=I.navigator||{},X=F.userAgent||"";O||(O=X);var U,K,V=k?!!F.likeChrome:/\bChrome\b/.test(O)&&!/internal|\n/i.test(u.toString()),N=k?"Object":"ScriptBridgingProxyObject",Q=k?"Object":"Environment",J=k&&I.java?"JavaPackage":a(I.java),ne=k?"Object":"RuntimeObject",ue=/\bJava/.test(J)&&I.java,be=ue&&a(I.environment)==Q,de=ue?"a":"\u4F2A",_e=ue?"b":"\u5C3E",me=I.document||{},Ee=I.operamini||I.opera,ge=E.test(ge=k&&Ee?Ee["[[Class]]"]:a(Ee))?ge:Ee=null,Ae=O,ae=[],ve=null,oe=O==X,ie=oe&&Ee&&typeof Ee.version=="function"&&Ee.version(),Te=function(he){return f(he,function(te,ce){return te||RegExp("\\b"+(ce.pattern||o(ce))+"\\b","i").exec(O)&&(ce.label||ce)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Re=function(he){return f(he,function(te,ce){return te||RegExp("\\b"+(ce.pattern||o(ce))+"\\b","i").exec(O)&&(ce.label||ce)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Me=T([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),re=function(he){return f(he,function(te,ce,Ie){return te||(ce[Me]||ce[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Me)]||RegExp("\\b"+o(Ie)+"(?:\\b|\\w*\\d)","i").exec(O))&&Ie})}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),j=function(he){return f(he,function(te,ce){var Ie=ce.pattern||o(ce);return!te&&(te=RegExp("\\b"+Ie+"(?:/[\\d.]+|[ \\w.]*)","i").exec(O))&&(te=d(te,Ie,ce.label||ce)),te})}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(Te&&(Te=[Te]),re&&!Me&&(Me=T([re])),(U=/\bGoogle TV\b/.exec(Me))&&(Me=U[0]),/\bSimulator\b/i.test(O)&&(Me=(Me?Me+" ":"")+"Simulator"),Re=="Opera Mini"&&/\bOPiOS\b/.test(O)&&ae.push("running in Turbo/Uncompressed mode"),Re=="IE"&&/\blike iPhone OS\b/.test(O)?(U=r(O.replace(/like iPhone OS/,"")),re=U.manufacturer,Me=U.product):/^iP/.test(Me)?(Re||(Re="Safari"),j="iOS"+((U=/ OS ([\d_]+)/i.exec(O))?" "+U[1].replace(/_/g,"."):"")):Re!="Konqueror"||/buntu/i.test(j)?re&&re!="Google"&&(/Chrome/.test(Re)&&!/\bMobile Safari\b/i.test(O)||/\bVita\b/.test(Me))||/\bAndroid\b/.test(j)&&/^Chrome/.test(Re)&&/\bVersion\//i.test(O)?(Re="Android Browser",j=/\bAndroid\b/.test(j)?j:"Android"):Re=="Silk"?(/\bMobi/i.test(O)||(j="Android",ae.unshift("desktop mode")),/Accelerated *= *true/i.test(O)&&ae.unshift("accelerated")):Re=="PaleMoon"&&(U=/\bFirefox\/([\d.]+)\b/.exec(O))?ae.push("identifying as Firefox "+U[1]):Re=="Firefox"&&(U=/\b(Mobile|Tablet|TV)\b/i.exec(O))?(j||(j="Firefox OS"),Me||(Me=U[1])):!Re||(U=!/\bMinefield\b/i.test(O)&&/\b(?:Firefox|Safari)\b/.exec(Re))?(Re&&!Me&&/[\/,]|^[^(]+?\)/.test(O.slice(O.indexOf(U+"/")+8))&&(Re=null),(U=Me||re||j)&&(Me||re||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(j))&&(Re=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(j)?j:U)+" Browser")):Re=="Electron"&&(U=(/\bChrome\/([\d.]+)\b/.exec(O)||0)[1])&&ae.push("Chromium "+U):j="Kubuntu",ie||(ie=function(he){return f(he,function(te,ce){return te||(RegExp(ce+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(O)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",o(Re),"(?:Firefox|Minefield|NetFront)"])),(U=Te=="iCab"&&parseFloat(ie)>3&&"WebKit"||/\bOpera\b/.test(Re)&&(/\bOPR\b/.test(O)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(O)&&!/^(?:Trident|EdgeHTML)$/.test(Te)&&"WebKit"||!Te&&/\bMSIE\b/i.test(O)&&(j=="Mac OS"?"Tasman":"Trident")||Te=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Re)&&"NetFront")&&(Te=[U]),Re=="IE"&&(U=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(O)||0)[1])?(Re+=" Mobile",j="Windows Phone "+(/\+$/.test(U)?U:U+".x"),ae.unshift("desktop mode")):/\bWPDesktop\b/i.test(O)?(Re="IE Mobile",j="Windows Phone 8.x",ae.unshift("desktop mode"),ie||(ie=(/\brv:([\d.]+)/.exec(O)||0)[1])):Re!="IE"&&Te=="Trident"&&(U=/\brv:([\d.]+)/.exec(O))&&(Re&&ae.push("identifying as "+Re+(ie?" "+ie:"")),Re="IE",ie=U[1]),oe){if(s(I,"global"))if(ue&&(U=ue.lang.System,Ae=U.getProperty("os.arch"),j=j||U.getProperty("os.name")+" "+U.getProperty("os.version")),be){try{ie=I.require("ringo/engine").version.join("."),Re="RingoJS"}catch(he){(U=I.system)&&U.global.system==I.system&&(Re="Narwhal",j||(j=U[0].os||null))}Re||(Re="Rhino")}else typeof I.process=="object"&&!I.process.browser&&(U=I.process)&&(typeof U.versions=="object"&&(typeof U.versions.electron=="string"?(ae.push("Node "+U.versions.node),Re="Electron",ie=U.versions.electron):typeof U.versions.nw=="string"&&(ae.push("Chromium "+ie,"Node "+U.versions.node),Re="NW.js",ie=U.versions.nw)),Re||(Re="Node.js",Ae=U.arch,j=U.platform,ie=/[\d.]+/.exec(U.version),ie=ie?ie[0]:null));else a(U=I.runtime)==N?(Re="Adobe AIR",j=U.flash.system.Capabilities.os):a(U=I.phantom)==ne?(Re="PhantomJS",ie=(U=U.version||null)&&U.major+"."+U.minor+"."+U.patch):typeof me.documentMode=="number"&&(U=/\bTrident\/(\d+)/i.exec(O))?(ie=[ie,me.documentMode],(U=+U[1]+4)!=ie[1]&&(ae.push("IE "+ie[1]+" mode"),Te&&(Te[1]=""),ie[1]=U),ie=Re=="IE"?String(ie[1].toFixed(1)):ie[0]):typeof me.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Re)&&(ae.push("masking as "+Re+" "+ie),Re="IE",ie="11.0",Te=["Trident"],j="Windows");j=j&&n(j)}if(ie&&(U=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(ie)||/(?:alpha|beta)(?: ?\d)?/i.exec(O+";"+(oe&&F.appMinorVersion))||/\bMinefield\b/i.test(O)&&"a")&&(ve=/b/i.test(U)?"beta":"alpha",ie=ie.replace(RegExp(U+"\\+?$"),"")+(ve=="beta"?_e:de)+(/\d+\+?/.exec(U)||"")),Re=="Fennec"||Re=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(j))Re="Firefox Mobile";else if(Re=="Maxthon"&&ie)ie=ie.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Me))Me=="Xbox 360"&&(j=null),Me=="Xbox 360"&&/\bIEMobile\b/.test(O)&&ae.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(Re)&&(!Re||Me||/Browser|Mobi/.test(Re))||j!="Windows CE"&&!/Mobi/i.test(O))if(Re=="IE"&&oe)try{I.external===null&&ae.unshift("platform preview")}catch(he){ae.unshift("embedded")}else(/\bBlackBerry\b/.test(Me)||/\bBB10\b/.test(O))&&(U=(RegExp(Me.replace(/ +/g," *")+"/([.\\d]+)","i").exec(O)||0)[1]||ie)?(U=[U,/BB10/.test(O)],j=(U[1]?(Me=null,re="BlackBerry"):"Device Software")+" "+U[0],ie=null):this!=e&&Me!="Wii"&&(oe&&Ee||/Opera/.test(Re)&&/\b(?:MSIE|Firefox)\b/i.test(O)||Re=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(j)||Re=="IE"&&(j&&!/^Win/.test(j)&&ie>5.5||/\bWindows XP\b/.test(j)&&ie>8||ie==8&&!/\bTrident\b/.test(O)))&&!E.test(U=r.call(e,O.replace(E,"")+";"))&&U.name&&(U="ing as "+U.name+((U=U.version)?" "+U:""),E.test(Re)?(/\bIE\b/.test(U)&&j=="Mac OS"&&(j=null),U="identify"+U):(U="mask"+U,Re=ge?n(ge.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(U)&&(j=null),oe||(ie=null)),Te=["Presto"],ae.push(U));else Re+=" Mobile";(U=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(O)||0)[1])&&(U=[parseFloat(U.replace(/\.(\d)$/,".0$1")),U],Re=="Safari"&&U[1].slice(-1)=="+"?(Re="WebKit Nightly",ve="alpha",ie=U[1].slice(0,-1)):ie!=U[1]&&ie!=(U[2]=(/\bSafari\/([\d.]+\+?)/i.exec(O)||0)[1])||(ie=null),U[1]=(/\bChrome\/([\d.]+)/i.exec(O)||0)[1],U[0]==537.36&&U[2]==537.36&&parseFloat(U[1])>=28&&Te=="WebKit"&&(Te=["Blink"]),oe&&(V||U[1])?(Te&&(Te[1]="like Chrome"),U=U[1]||(U=U[0],U<530?1:U<532?2:U<532.05?3:U<533?4:U<534.03?5:U<534.07?6:U<534.1?7:U<534.13?8:U<534.16?9:U<534.24?10:U<534.3?11:U<535.01?12:U<535.02?"13+":U<535.07?15:U<535.11?16:U<535.19?17:U<536.05?18:U<536.1?19:U<537.01?20:U<537.11?"21+":U<537.13?23:U<537.18?24:U<537.24?25:U<537.36?26:Te!="Blink"?"27":"28")):(Te&&(Te[1]="like Safari"),U=U[0],U=U<400?1:U<500?2:U<526?3:U<533?4:U<534?"4+":U<535?5:U<537?6:U<538?7:U<601?8:"8"),Te&&(Te[1]+=" "+(U+=typeof U=="number"?".x":/[.+]/.test(U)?"":"+")),Re=="Safari"&&(!ie||parseInt(ie)>45)&&(ie=U)),Re=="Opera"&&(U=/\bzbov|zvav$/.exec(j))?(Re+=" ",ae.unshift("desktop mode"),U=="zvav"?(Re+="Mini",ie=null):Re+="Mobile",j=j.replace(RegExp(" *"+U+"$"),"")):Re=="Safari"&&/\bChrome\b/.exec(Te&&Te[1])&&(ae.unshift("desktop mode"),Re="Chrome Mobile",ie=null,/\bOS X\b/.test(j)?(re="Apple",j="iOS 4.3+"):j=null),ie&&ie.indexOf(U=/[\d.]+$/.exec(j))==0&&O.indexOf("/"+U+"-")>-1&&(j=l(j.replace(U,""))),Te&&!/\b(?:Avant|Nook)\b/.test(Re)&&(/Browser|Lunascape|Maxthon/.test(Re)||Re!="Safari"&&/^iOS/.test(j)&&/\bSafari\b/.test(Te[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(Re)&&Te[1])&&(U=Te[Te.length-1])&&ae.push(U),ae.length&&(ae=["("+ae.join("; ")+")"]),re&&Me&&Me.indexOf(re)<0&&ae.push("on "+re),Me&&ae.push((/^on /.test(ae[ae.length-1])?"":"on ")+Me),j&&(U=/ ([\d.+]+)$/.exec(j),K=U&&j.charAt(j.length-U[0].length-1)=="/",j={architecture:32,family:U&&!K?j.replace(U[0],""):j,version:U?U[1]:null,toString:function(){var he=this.version;return this.family+(he&&!K?" "+he:"")+(this.architecture==64?" 64-bit":"")}}),(U=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ae))&&!/\bi686\b/i.test(Ae)?(j&&(j.architecture=64,j.family=j.family.replace(RegExp(" *"+U),"")),Re&&(/\bWOW64\b/i.test(O)||oe&&/\w(?:86|32)$/.test(F.cpuClass||F.platform)&&!/\bWin64; x64\b/i.test(O))&&ae.unshift("32-bit")):j&&/^OS X/.test(j.family)&&Re=="Chrome"&&parseFloat(ie)>=39&&(j.architecture=64),O||(O=null);var W={};return W.description=O,W.layout=Te&&Te[0],W.manufacturer=re,W.name=Re,W.prerelease=ve,W.product=Me,W.ua=O,W.version=Re&&ie,W.os=j||{architecture:null,family:null,version:null,toString:function(){return"null"}},W.parse=r,W.toString=D,W.version&&ae.unshift(ie),W.name&&ae.unshift(Re),j&&Re&&(j!=String(j).split(" ")[0]||j!=Re.split(" ")[0]&&!Me)&&ae.push(Me?"("+j+")":"on "+j),ae.length&&(W.description=ae.join(" ")),W}var c={function:!0,object:!0},A=c[typeof window]&&window||this,p=c[typeof C]&&C,x=c[typeof b]&&b&&!b.nodeType&&b,_=p&&x&&typeof w=="object"&&w;!_||_.global!==_&&_.window!==_&&_.self!==_||(A=_);var B=Math.pow(2,53)-1,E=/\bOpera/,g=Object.prototype,h=g.hasOwnProperty,u=g.toString,S=r();typeof M=="function"&&typeof M.amd=="object"&&M.amd?(A.platform=S,M(function(){return S})):p&&x?e(S,function(O,T){p[T]=O}):A.platform=S}).call(this)}).call(this,typeof se!="undefined"?se:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(v,b,C){(function(w){"use strict";function m(d,i,n,e){if(typeof d!="function")throw new TypeError('"callback" argument must be a function');var a,s,o=arguments.length;switch(o){case 0:case 1:return w.nextTick(d);case 2:return w.nextTick(function(){d.call(null,i)});case 3:return w.nextTick(function(){d.call(null,i,n)});case 4:return w.nextTick(function(){d.call(null,i,n,e)});default:for(a=new Array(o-1),s=0;s<a.length;)a[s++]=arguments[s];return w.nextTick(function(){d.apply(null,a)})}}!w.version||w.version.indexOf("v0.")===0||w.version.indexOf("v1.")===0&&w.version.indexOf("v1.8.")!==0?b.exports={nextTick:m}:b.exports=w}).call(this,v("_process"))},{_process:173}],173:[function(v,b,C){function w(){throw new Error("setTimeout has not been defined")}function m(){throw new Error("clearTimeout has not been defined")}function d(x){if(o===setTimeout)return setTimeout(x,0);if((o===w||!o)&&setTimeout)return o=setTimeout,setTimeout(x,0);try{return o(x,0)}catch(_){try{return o.call(null,x,0)}catch(B){return o.call(this,x,0)}}}function i(x){if(f===clearTimeout)return clearTimeout(x);if((f===m||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(x);try{return f(x)}catch(_){try{return f.call(null,x)}catch(B){return f.call(this,x)}}}function n(){A&&r&&(A=!1,r.length?c=r.concat(c):p=-1,c.length&&e())}function e(){if(!A){var x=d(n);A=!0;for(var _=c.length;_;){for(r=c,c=[];++p<_;)r&&r[p].run();p=-1,_=c.length}r=null,A=!1,i(x)}}function a(x,_){this.fun=x,this.array=_}function s(){}var o,f,l=b.exports={};!function(){try{o=typeof setTimeout=="function"?setTimeout:w}catch(x){o=w}try{f=typeof clearTimeout=="function"?clearTimeout:m}catch(x){f=m}}();var r,c=[],A=!1,p=-1;l.nextTick=function(x){var _=new Array(arguments.length-1);if(arguments.length>1)for(var B=1;B<arguments.length;B++)_[B-1]=arguments[B];c.push(new a(x,_)),c.length!==1||A||d(e)},a.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=s,l.addListener=s,l.once=s,l.off=s,l.removeListener=s,l.removeAllListeners=s,l.emit=s,l.prependListener=s,l.prependOnceListener=s,l.listeners=function(x){return[]},l.binding=function(x){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(x){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},{}],174:[function(v,b,C){(function(w){!function(m){function d(J){throw new RangeError(K[J])}function i(J,ne){for(var ue=J.length,be=[];ue--;)be[ue]=ne(J[ue]);return be}function n(J,ne){var ue=J.split("@"),be="";return ue.length>1&&(be=ue[0]+"@",J=ue[1]),J=J.replace(U,"."),be+i(J.split("."),ne).join(".")}function e(J){for(var ne,ue,be=[],de=0,_e=J.length;de<_e;)ne=J.charCodeAt(de++),ne>=55296&&ne<=56319&&de<_e?(ue=J.charCodeAt(de++),(64512&ue)==56320?be.push(((1023&ne)<<10)+(1023&ue)+65536):(be.push(ne),de--)):be.push(ne);return be}function a(J){return i(J,function(ne){var ue="";return ne>65535&&(ne-=65536,ue+=Q(ne>>>10&1023|55296),ne=56320|1023&ne),ue+=Q(ne)}).join("")}function s(J){return J-48<10?J-22:J-65<26?J-65:J-97<26?J-97:h}function o(J,ne){return J+22+75*(J<26)-((ne!=0)<<5)}function f(J,ne,ue){var be=0;for(J=ue?N(J/T):J>>1,J+=N(J/ne);J>V*S>>1;be+=h)J=N(J/V);return N(be+(V+1)*J/(J+O))}function l(J){var ne,ue,be,de,_e,me,Ee,ge,Ae,ae,ve=[],oe=J.length,ie=0,Te=I,Re=D;for(ue=J.lastIndexOf(k),ue<0&&(ue=0),be=0;be<ue;++be)J.charCodeAt(be)>=128&&d("not-basic"),ve.push(J.charCodeAt(be));for(de=ue>0?ue+1:0;de<oe;){for(_e=ie,me=1,Ee=h;de>=oe&&d("invalid-input"),ge=s(J.charCodeAt(de++)),(ge>=h||ge>N((g-ie)/me))&&d("overflow"),ie+=ge*me,Ae=Ee<=Re?u:Ee>=Re+S?S:Ee-Re,!(ge<Ae);Ee+=h)ae=h-Ae,me>N(g/ae)&&d("overflow"),me*=ae;ne=ve.length+1,Re=f(ie-_e,ne,_e==0),N(ie/ne)>g-Te&&d("overflow"),Te+=N(ie/ne),ie%=ne,ve.splice(ie++,0,Te)}return a(ve)}function r(J){var ne,ue,be,de,_e,me,Ee,ge,Ae,ae,ve,oe,ie,Te,Re,Me=[];for(J=e(J),oe=J.length,ne=I,ue=0,_e=D,me=0;me<oe;++me)(ve=J[me])<128&&Me.push(Q(ve));for(be=de=Me.length,de&&Me.push(k);be<oe;){for(Ee=g,me=0;me<oe;++me)(ve=J[me])>=ne&&ve<Ee&&(Ee=ve);for(ie=be+1,Ee-ne>N((g-ue)/ie)&&d("overflow"),ue+=(Ee-ne)*ie,ne=Ee,me=0;me<oe;++me)if(ve=J[me],ve<ne&&++ue>g&&d("overflow"),ve==ne){for(ge=ue,Ae=h;ae=Ae<=_e?u:Ae>=_e+S?S:Ae-_e,!(ge<ae);Ae+=h)Re=ge-ae,Te=h-ae,Me.push(Q(o(ae+Re%Te,0))),ge=N(Re/Te);Me.push(Q(o(ge,0))),_e=f(ue,ie,be==de),ue=0,++be}++ue,++ne}return Me.join("")}function c(J){return n(J,function(ne){return F.test(ne)?l(ne.slice(4).toLowerCase()):ne})}function A(J){return n(J,function(ne){return X.test(ne)?"xn--"+r(ne):ne})}var p=typeof C=="object"&&C&&!C.nodeType&&C,x=typeof b=="object"&&b&&!b.nodeType&&b,_=typeof w=="object"&&w;_.global!==_&&_.window!==_&&_.self!==_||(m=_);var B,E,g=2147483647,h=36,u=1,S=26,O=38,T=700,D=72,I=128,k="-",F=/^xn--/,X=/[^\x20-\x7E]/,U=/[\x2E\u3002\uFF0E\uFF61]/g,K={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},V=h-u,N=Math.floor,Q=String.fromCharCode;if(B={version:"1.4.1",ucs2:{decode:e,encode:a},decode:l,encode:r,toASCII:A,toUnicode:c},typeof M=="function"&&typeof M.amd=="object"&&M.amd)M("punycode",function(){return B});else if(p&&x)if(b.exports==p)x.exports=B;else for(E in B)B.hasOwnProperty(E)&&(p[E]=B[E]);else m.punycode=B}(this)}).call(this,typeof se!="undefined"?se:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(v,b,C){"use strict";function w(d,i){return Object.prototype.hasOwnProperty.call(d,i)}b.exports=function(d,i,n,e){i=i||"&",n=n||"=";var a={};if(typeof d!="string"||d.length===0)return a;var s=/\+/g;d=d.split(i);var o=1e3;e&&typeof e.maxKeys=="number"&&(o=e.maxKeys);var f=d.length;o>0&&f>o&&(f=o);for(var l=0;l<f;++l){var r,c,A,p,x=d[l].replace(s,"%20"),_=x.indexOf(n);_>=0?(r=x.substr(0,_),c=x.substr(_+1)):(r=x,c=""),A=decodeURIComponent(r),p=decodeURIComponent(c),w(a,A)?m(a[A])?a[A].push(p):a[A]=[a[A],p]:a[A]=p}return a};var m=Array.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"}},{}],176:[function(v,b,C){"use strict";function w(n,e){if(n.map)return n.map(e);for(var a=[],s=0;s<n.length;s++)a.push(e(n[s],s));return a}var m=function(n){switch(typeof n){case"string":return n;case"boolean":return n?"true":"false";case"number":return isFinite(n)?n:"";default:return""}};b.exports=function(n,e,a,s){return e=e||"&",a=a||"=",n===null&&(n=void 0),typeof n=="object"?w(i(n),function(o){var f=encodeURIComponent(m(o))+a;return d(n[o])?w(n[o],function(l){return f+encodeURIComponent(m(l))}).join(e):f+encodeURIComponent(m(n[o]))}).join(e):s?encodeURIComponent(m(s))+a+encodeURIComponent(m(n)):""};var d=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"},i=Object.keys||function(n){var e=[];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&e.push(a);return e}},{}],177:[function(v,b,C){"use strict";C.decode=C.parse=v("./decode"),C.encode=C.stringify=v("./encode")},{"./decode":175,"./encode":176}],178:[function(v,b,C){b.exports=v("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(v,b,C){"use strict";function w(A){if(!(this instanceof w))return new w(A);o.call(this,A),f.call(this,A),A&&A.readable===!1&&(this.readable=!1),A&&A.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,A&&A.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",m)}function m(){this.allowHalfOpen||this._writableState.ended||e.nextTick(d,this)}function d(A){A.end()}var i=v("babel-runtime/core-js/object/keys"),n=function(A){return A&&A.__esModule?A:{default:A}}(i),e=v("process-nextick-args"),a=n.default||function(A){var p=[];for(var x in A)p.push(x);return p};b.exports=w;var s=v("core-util-is");s.inherits=v("inherits");var o=v("./_stream_readable"),f=v("./_stream_writable");s.inherits(w,o);for(var l=a(f.prototype),r=0;r<l.length;r++){var c=l[r];w.prototype[c]||(w.prototype[c]=f.prototype[c])}Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(A){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=A,this._writableState.destroyed=A)}}),w.prototype._destroy=function(A,p){this.push(null),this.end(),e.nextTick(p,A)}},{"./_stream_readable":181,"./_stream_writable":183,"babel-runtime/core-js/object/keys":23,"core-util-is":153,inherits:162,"process-nextick-args":172}],180:[function(v,b,C){"use strict";function w(i){if(!(this instanceof w))return new w(i);m.call(this,i)}b.exports=w;var m=v("./_stream_transform"),d=v("core-util-is");d.inherits=v("inherits"),d.inherits(w,m),w.prototype._transform=function(i,n,e){e(null,i)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(v,b,C){(function(w,m){"use strict";function d(oe){return ue.from(oe)}function i(oe){return ue.isBuffer(oe)||oe instanceof be}function n(oe,ie,Te){if(typeof oe.prependListener=="function")return oe.prependListener(ie,Te);oe._events&&oe._events[ie]?Q(oe._events[ie])?oe._events[ie].unshift(Te):oe._events[ie]=[Te,oe._events[ie]]:oe.on(ie,Te)}function e(oe,ie){N=N||v("./_stream_duplex"),oe=oe||{};var Te=ie instanceof N;this.objectMode=!!oe.objectMode,Te&&(this.objectMode=this.objectMode||!!oe.readableObjectMode);var Re=oe.highWaterMark,Me=oe.readableHighWaterMark,re=this.objectMode?16:16384;this.highWaterMark=Re||Re===0?Re:Te&&(Me||Me===0)?Me:re,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new ge,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=oe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,oe.encoding&&(Ee||(Ee=v("string_decoder/").StringDecoder),this.decoder=new Ee(oe.encoding),this.encoding=oe.encoding)}function a(oe){if(N=N||v("./_stream_duplex"),!(this instanceof a))return new a(oe);this._readableState=new e(oe,this),this.readable=!0,oe&&(typeof oe.read=="function"&&(this._read=oe.read),typeof oe.destroy=="function"&&(this._destroy=oe.destroy)),ne.call(this)}function s(oe,ie,Te,Re,Me){var re=oe._readableState;if(ie===null)re.reading=!1,A(oe,re);else{var j;Me||(j=f(re,ie)),j?oe.emit("error",j):re.objectMode||ie&&ie.length>0?(typeof ie=="string"||re.objectMode||(0,K.default)(ie)===ue.prototype||(ie=d(ie)),Re?re.endEmitted?oe.emit("error",new Error("stream.unshift() after end event")):o(oe,re,ie,!0):re.ended?oe.emit("error",new Error("stream.push() after EOF")):(re.reading=!1,re.decoder&&!Te?(ie=re.decoder.write(ie),re.objectMode||ie.length!==0?o(oe,re,ie,!1):_(oe,re)):o(oe,re,ie,!1))):Re||(re.reading=!1)}return l(re)}function o(oe,ie,Te,Re){ie.flowing&&ie.length===0&&!ie.sync?(oe.emit("data",Te),oe.read(0)):(ie.length+=ie.objectMode?1:Te.length,Re?ie.buffer.unshift(Te):ie.buffer.push(Te),ie.needReadable&&p(oe)),_(oe,ie)}function f(oe,ie){var Te;return i(ie)||typeof ie=="string"||ie===void 0||oe.objectMode||(Te=new TypeError("Invalid non-string/buffer chunk")),Te}function l(oe){return!oe.ended&&(oe.needReadable||oe.length<oe.highWaterMark||oe.length===0)}function r(oe){return oe>=ve?oe=ve:(oe--,oe|=oe>>>1,oe|=oe>>>2,oe|=oe>>>4,oe|=oe>>>8,oe|=oe>>>16,oe++),oe}function c(oe,ie){return oe<=0||ie.length===0&&ie.ended?0:ie.objectMode?1:oe!==oe?ie.flowing&&ie.length?ie.buffer.head.data.length:ie.length:(oe>ie.highWaterMark&&(ie.highWaterMark=r(oe)),oe<=ie.length?oe:ie.ended?ie.length:(ie.needReadable=!0,0))}function A(oe,ie){if(!ie.ended){if(ie.decoder){var Te=ie.decoder.end();Te&&Te.length&&(ie.buffer.push(Te),ie.length+=ie.objectMode?1:Te.length)}ie.ended=!0,p(oe)}}function p(oe){var ie=oe._readableState;ie.needReadable=!1,ie.emittedReadable||(me("emitReadable",ie.flowing),ie.emittedReadable=!0,ie.sync?V.nextTick(x,oe):x(oe))}function x(oe){me("emit readable"),oe.emit("readable"),S(oe)}function _(oe,ie){ie.readingMore||(ie.readingMore=!0,V.nextTick(B,oe,ie))}function B(oe,ie){for(var Te=ie.length;!ie.reading&&!ie.flowing&&!ie.ended&&ie.length<ie.highWaterMark&&(me("maybeReadMore read 0"),oe.read(0),Te!==ie.length);)Te=ie.length;ie.readingMore=!1}function E(oe){return function(){var ie=oe._readableState;me("pipeOnDrain",ie.awaitDrain),ie.awaitDrain&&ie.awaitDrain--,ie.awaitDrain===0&&J(oe,"data")&&(ie.flowing=!0,S(oe))}}function g(oe){me("readable nexttick read 0"),oe.read(0)}function h(oe,ie){ie.resumeScheduled||(ie.resumeScheduled=!0,V.nextTick(u,oe,ie))}function u(oe,ie){ie.reading||(me("resume read 0"),oe.read(0)),ie.resumeScheduled=!1,ie.awaitDrain=0,oe.emit("resume"),S(oe),ie.flowing&&!ie.reading&&oe.read(0)}function S(oe){var ie=oe._readableState;for(me("flow",ie.flowing);ie.flowing&&oe.read()!==null;);}function O(oe,ie){if(ie.length===0)return null;var Te;return ie.objectMode?Te=ie.buffer.shift():!oe||oe>=ie.length?(Te=ie.decoder?ie.buffer.join(""):ie.buffer.length===1?ie.buffer.head.data:ie.buffer.concat(ie.length),ie.buffer.clear()):Te=T(oe,ie.buffer,ie.decoder),Te}function T(oe,ie,Te){var Re;return oe<ie.head.data.length?(Re=ie.head.data.slice(0,oe),ie.head.data=ie.head.data.slice(oe)):Re=oe===ie.head.data.length?ie.shift():Te?D(oe,ie):I(oe,ie),Re}function D(oe,ie){var Te=ie.head,Re=1,Me=Te.data;for(oe-=Me.length;Te=Te.next;){var re=Te.data,j=oe>re.length?re.length:oe;if(j===re.length?Me+=re:Me+=re.slice(0,oe),(oe-=j)===0){j===re.length?(++Re,Te.next?ie.head=Te.next:ie.head=ie.tail=null):(ie.head=Te,Te.data=re.slice(j));break}++Re}return ie.length-=Re,Me}function I(oe,ie){var Te=ue.allocUnsafe(oe),Re=ie.head,Me=1;for(Re.data.copy(Te),oe-=Re.data.length;Re=Re.next;){var re=Re.data,j=oe>re.length?re.length:oe;if(re.copy(Te,Te.length-oe,0,j),(oe-=j)===0){j===re.length?(++Me,Re.next?ie.head=Re.next:ie.head=ie.tail=null):(ie.head=Re,Re.data=re.slice(j));break}++Me}return ie.length-=Me,Te}function k(oe){var ie=oe._readableState;if(ie.length>0)throw new Error('"endReadable()" called on non-empty stream');ie.endEmitted||(ie.ended=!0,V.nextTick(F,ie,oe))}function F(oe,ie){oe.endEmitted||oe.length!==0||(oe.endEmitted=!0,ie.readable=!1,ie.emit("end"))}function X(oe,ie){for(var Te=0,Re=oe.length;Te<Re;Te++)if(oe[Te]===ie)return Te;return-1}var U=v("babel-runtime/core-js/object/get-prototype-of"),K=function(oe){return oe&&oe.__esModule?oe:{default:oe}}(U),V=v("process-nextick-args");b.exports=a;var N,Q=v("isarray");a.ReadableState=e;var J=(v("events").EventEmitter,function(oe,ie){return oe.listeners(ie).length}),ne=v("./internal/streams/stream"),ue=v("safe-buffer").Buffer,be=m.Uint8Array||function(){},de=v("core-util-is");de.inherits=v("inherits");var _e=v("util"),me=void 0;me=_e&&_e.debuglog?_e.debuglog("stream"):function(){};var Ee,ge=v("./internal/streams/BufferList"),Ae=v("./internal/streams/destroy");de.inherits(a,ne);var ae=["error","close","destroy","pause","resume"];Object.defineProperty(a.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(oe){this._readableState&&(this._readableState.destroyed=oe)}}),a.prototype.destroy=Ae.destroy,a.prototype._undestroy=Ae.undestroy,a.prototype._destroy=function(oe,ie){this.push(null),ie(oe)},a.prototype.push=function(oe,ie){var Te,Re=this._readableState;return Re.objectMode?Te=!0:typeof oe=="string"&&(ie=ie||Re.defaultEncoding,ie!==Re.encoding&&(oe=ue.from(oe,ie),ie=""),Te=!0),s(this,oe,ie,!1,Te)},a.prototype.unshift=function(oe){return s(this,oe,null,!0,!1)},a.prototype.isPaused=function(){return this._readableState.flowing===!1},a.prototype.setEncoding=function(oe){return Ee||(Ee=v("string_decoder/").StringDecoder),this._readableState.decoder=new Ee(oe),this._readableState.encoding=oe,this};var ve=8388608;a.prototype.read=function(oe){me("read",oe),oe=parseInt(oe,10);var ie=this._readableState,Te=oe;if(oe!==0&&(ie.emittedReadable=!1),oe===0&&ie.needReadable&&(ie.length>=ie.highWaterMark||ie.ended))return me("read: emitReadable",ie.length,ie.ended),ie.length===0&&ie.ended?k(this):p(this),null;if((oe=c(oe,ie))===0&&ie.ended)return ie.length===0&&k(this),null;var Re=ie.needReadable;me("need readable",Re),(ie.length===0||ie.length-oe<ie.highWaterMark)&&(Re=!0,me("length less than watermark",Re)),ie.ended||ie.reading?(Re=!1,me("reading or ended",Re)):Re&&(me("do read"),ie.reading=!0,ie.sync=!0,ie.length===0&&(ie.needReadable=!0),this._read(ie.highWaterMark),ie.sync=!1,ie.reading||(oe=c(Te,ie)));var Me;return Me=oe>0?O(oe,ie):null,Me===null?(ie.needReadable=!0,oe=0):ie.length-=oe,ie.length===0&&(ie.ended||(ie.needReadable=!0),Te!==oe&&ie.ended&&k(this)),Me!==null&&this.emit("data",Me),Me},a.prototype._read=function(oe){this.emit("error",new Error("_read() is not implemented"))},a.prototype.pipe=function(oe,ie){function Te(St,ct){me("onunpipe"),St===ce&&ct&&ct.hasUnpiped===!1&&(ct.hasUnpiped=!0,Me())}function Re(){me("onend"),oe.end()}function Me(){me("cleanup"),oe.removeListener("close",W),oe.removeListener("finish",he),oe.removeListener("drain",He),oe.removeListener("error",j),oe.removeListener("unpipe",Te),ce.removeListener("end",Re),ce.removeListener("end",te),ce.removeListener("data",re),Ke=!0,!Ie.awaitDrain||oe._writableState&&!oe._writableState.needDrain||He()}function re(St){me("ondata"),ht=!1,oe.write(St)!==!1||ht||((Ie.pipesCount===1&&Ie.pipes===oe||Ie.pipesCount>1&&X(Ie.pipes,oe)!==-1)&&!Ke&&(me("false write response, pause",ce._readableState.awaitDrain),ce._readableState.awaitDrain++,ht=!0),ce.pause())}function j(St){me("onerror",St),te(),oe.removeListener("error",j),J(oe,"error")===0&&oe.emit("error",St)}function W(){oe.removeListener("finish",he),te()}function he(){me("onfinish"),oe.removeListener("close",W),te()}function te(){me("unpipe"),ce.unpipe(oe)}var ce=this,Ie=this._readableState;switch(Ie.pipesCount){case 0:Ie.pipes=oe;break;case 1:Ie.pipes=[Ie.pipes,oe];break;default:Ie.pipes.push(oe)}Ie.pipesCount+=1,me("pipe count=%d opts=%j",Ie.pipesCount,ie);var ze=(!ie||ie.end!==!1)&&oe!==w.stdout&&oe!==w.stderr,_t=ze?Re:te;Ie.endEmitted?V.nextTick(_t):ce.once("end",_t),oe.on("unpipe",Te);var He=E(ce);oe.on("drain",He);var Ke=!1,ht=!1;return ce.on("data",re),n(oe,"error",j),oe.once("close",W),oe.once("finish",he),oe.emit("pipe",ce),Ie.flowing||(me("pipe resume"),ce.resume()),oe},a.prototype.unpipe=function(oe){var ie=this._readableState,Te={hasUnpiped:!1};if(ie.pipesCount===0)return this;if(ie.pipesCount===1)return oe&&oe!==ie.pipes?this:(oe||(oe=ie.pipes),ie.pipes=null,ie.pipesCount=0,ie.flowing=!1,oe&&oe.emit("unpipe",this,Te),this);if(!oe){var Re=ie.pipes,Me=ie.pipesCount;ie.pipes=null,ie.pipesCount=0,ie.flowing=!1;for(var re=0;re<Me;re++)Re[re].emit("unpipe",this,Te);return this}var j=X(ie.pipes,oe);return j===-1?this:(ie.pipes.splice(j,1),ie.pipesCount-=1,ie.pipesCount===1&&(ie.pipes=ie.pipes[0]),oe.emit("unpipe",this,Te),this)},a.prototype.on=function(oe,ie){var Te=ne.prototype.on.call(this,oe,ie);if(oe==="data")this._readableState.flowing!==!1&&this.resume();else if(oe==="readable"){var Re=this._readableState;Re.endEmitted||Re.readableListening||(Re.readableListening=Re.needReadable=!0,Re.emittedReadable=!1,Re.reading?Re.length&&p(this):V.nextTick(g,this))}return Te},a.prototype.addListener=a.prototype.on,a.prototype.resume=function(){var oe=this._readableState;return oe.flowing||(me("resume"),oe.flowing=!0,h(this,oe)),this},a.prototype.pause=function(){return me("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(me("pause"),this._readableState.flowing=!1,this.emit("pause")),this},a.prototype.wrap=function(oe){var ie=this,Te=this._readableState,Re=!1;oe.on("end",function(){if(me("wrapped end"),Te.decoder&&!Te.ended){var j=Te.decoder.end();j&&j.length&&ie.push(j)}ie.push(null)}),oe.on("data",function(j){(me("wrapped data"),Te.decoder&&(j=Te.decoder.write(j)),(!Te.objectMode||j!=null)&&(Te.objectMode||j&&j.length))&&(ie.push(j)||(Re=!0,oe.pause()))});for(var Me in oe)this[Me]===void 0&&typeof oe[Me]=="function"&&(this[Me]=function(j){return function(){return oe[j].apply(oe,arguments)}}(Me));for(var re=0;re<ae.length;re++)oe.on(ae[re],this.emit.bind(this,ae[re]));return this._read=function(j){me("wrapped _read",j),Re&&(Re=!1,oe.resume())},this},Object.defineProperty(a.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),a._fromList=O}).call(this,v("_process"),typeof se!="undefined"?se:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/BufferList":184,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/get-prototype-of":22,"core-util-is":153,events:158,inherits:162,isarray:166,"process-nextick-args":172,"safe-buffer":193,"string_decoder/":200,util:36}],182:[function(v,b,C){"use strict";function w(a,s){var o=this._transformState;o.transforming=!1;var f=o.writecb;if(!f)return this.emit("error",new Error("write callback called multiple times"));o.writechunk=null,o.writecb=null,s!=null&&this.push(s),f(a);var l=this._readableState;l.reading=!1,(l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}function m(a){if(!(this instanceof m))return new m(a);n.call(this,a),this._transformState={afterTransform:w.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,a&&(typeof a.transform=="function"&&(this._transform=a.transform),typeof a.flush=="function"&&(this._flush=a.flush)),this.on("prefinish",d)}function d(){var a=this;typeof this._flush=="function"?this._flush(function(s,o){i(a,s,o)}):i(this,null,null)}function i(a,s,o){if(s)return a.emit("error",s);if(o!=null&&a.push(o),a._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(a._transformState.transforming)throw new Error("Calling transform done when still transforming");return a.push(null)}b.exports=m;var n=v("./_stream_duplex"),e=v("core-util-is");e.inherits=v("inherits"),e.inherits(m,n),m.prototype.push=function(a,s){return this._transformState.needTransform=!1,n.prototype.push.call(this,a,s)},m.prototype._transform=function(a,s,o){throw new Error("_transform() is not implemented")},m.prototype._write=function(a,s,o){var f=this._transformState;if(f.writecb=o,f.writechunk=a,f.writeencoding=s,!f.transforming){var l=this._readableState;(f.needTransform||l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}},m.prototype._read=function(a){var s=this._transformState;s.writechunk!==null&&s.writecb&&!s.transforming?(s.transforming=!0,this._transform(s.writechunk,s.writeencoding,s.afterTransform)):s.needTransform=!0},m.prototype._destroy=function(a,s){var o=this;n.prototype._destroy.call(this,a,function(f){s(f),o.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(v,b,C){(function(w,m){"use strict";function d(Ae){return Ae&&Ae.__esModule?Ae:{default:Ae}}function i(Ae){var ae=this;this.next=null,this.entry=null,this.finish=function(){D(ae,Ae)}}function n(Ae){return _e.from(Ae)}function e(Ae){return _e.isBuffer(Ae)||Ae instanceof me}function a(){}function s(Ae,ae){J=J||v("./_stream_duplex"),Ae=Ae||{};var ve=ae instanceof J;this.objectMode=!!Ae.objectMode,ve&&(this.objectMode=this.objectMode||!!Ae.writableObjectMode);var oe=Ae.highWaterMark,ie=Ae.writableHighWaterMark,Te=this.objectMode?16:16384;this.highWaterMark=oe||oe===0?oe:ve&&(ie||ie===0)?ie:Te,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Re=Ae.decodeStrings===!1;this.decodeStrings=!Re,this.defaultEncoding=Ae.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Me){_(ae,Me)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function o(Ae){if(J=J||v("./_stream_duplex"),!(ge.call(o,this)||this instanceof J))return new o(Ae);this._writableState=new s(Ae,this),this.writable=!0,Ae&&(typeof Ae.write=="function"&&(this._write=Ae.write),typeof Ae.writev=="function"&&(this._writev=Ae.writev),typeof Ae.destroy=="function"&&(this._destroy=Ae.destroy),typeof Ae.final=="function"&&(this._final=Ae.final)),de.call(this)}function f(Ae,ae){var ve=new Error("write after end");Ae.emit("error",ve),Q.nextTick(ae,ve)}function l(Ae,ae,ve,oe){var ie=!0,Te=!1;return ve===null?Te=new TypeError("May not write null values to stream"):typeof ve=="string"||ve===void 0||ae.objectMode||(Te=new TypeError("Invalid non-string/buffer chunk")),Te&&(Ae.emit("error",Te),Q.nextTick(oe,Te),ie=!1),ie}function r(Ae,ae,ve){return Ae.objectMode||Ae.decodeStrings===!1||typeof ae!="string"||(ae=_e.from(ae,ve)),ae}function c(Ae,ae,ve,oe,ie,Te){if(!ve){var Re=r(ae,oe,ie);oe!==Re&&(ve=!0,ie="buffer",oe=Re)}var Me=ae.objectMode?1:oe.length;ae.length+=Me;var re=ae.length<ae.highWaterMark;if(re||(ae.needDrain=!0),ae.writing||ae.corked){var j=ae.lastBufferedRequest;ae.lastBufferedRequest={chunk:oe,encoding:ie,isBuf:ve,callback:Te,next:null},j?j.next=ae.lastBufferedRequest:ae.bufferedRequest=ae.lastBufferedRequest,ae.bufferedRequestCount+=1}else A(Ae,ae,!1,Me,oe,ie,Te);return re}function A(Ae,ae,ve,oe,ie,Te,Re){ae.writelen=oe,ae.writecb=Re,ae.writing=!0,ae.sync=!0,ve?Ae._writev(ie,ae.onwrite):Ae._write(ie,Te,ae.onwrite),ae.sync=!1}function p(Ae,ae,ve,oe,ie){--ae.pendingcb,ve?(Q.nextTick(ie,oe),Q.nextTick(O,Ae,ae),Ae._writableState.errorEmitted=!0,Ae.emit("error",oe)):(ie(oe),Ae._writableState.errorEmitted=!0,Ae.emit("error",oe),O(Ae,ae))}function x(Ae){Ae.writing=!1,Ae.writecb=null,Ae.length-=Ae.writelen,Ae.writelen=0}function _(Ae,ae){var ve=Ae._writableState,oe=ve.sync,ie=ve.writecb;if(x(ve),ae)p(Ae,ve,oe,ae,ie);else{var Te=h(ve);Te||ve.corked||ve.bufferProcessing||!ve.bufferedRequest||g(Ae,ve),oe?ne(B,Ae,ve,Te,ie):B(Ae,ve,Te,ie)}}function B(Ae,ae,ve,oe){ve||E(Ae,ae),ae.pendingcb--,oe(),O(Ae,ae)}function E(Ae,ae){ae.length===0&&ae.needDrain&&(ae.needDrain=!1,Ae.emit("drain"))}function g(Ae,ae){ae.bufferProcessing=!0;var ve=ae.bufferedRequest;if(Ae._writev&&ve&&ve.next){var oe=ae.bufferedRequestCount,ie=new Array(oe),Te=ae.corkedRequestsFree;Te.entry=ve;for(var Re=0,Me=!0;ve;)ie[Re]=ve,ve.isBuf||(Me=!1),ve=ve.next,Re+=1;ie.allBuffers=Me,A(Ae,ae,!0,ae.length,ie,"",Te.finish),ae.pendingcb++,ae.lastBufferedRequest=null,Te.next?(ae.corkedRequestsFree=Te.next,Te.next=null):ae.corkedRequestsFree=new i(ae),ae.bufferedRequestCount=0}else{for(;ve;){var re=ve.chunk,j=ve.encoding,W=ve.callback;if(A(Ae,ae,!1,ae.objectMode?1:re.length,re,j,W),ve=ve.next,ae.bufferedRequestCount--,ae.writing)break}ve===null&&(ae.lastBufferedRequest=null)}ae.bufferedRequest=ve,ae.bufferProcessing=!1}function h(Ae){return Ae.ending&&Ae.length===0&&Ae.bufferedRequest===null&&!Ae.finished&&!Ae.writing}function u(Ae,ae){Ae._final(function(ve){ae.pendingcb--,ve&&Ae.emit("error",ve),ae.prefinished=!0,Ae.emit("prefinish"),O(Ae,ae)})}function S(Ae,ae){ae.prefinished||ae.finalCalled||(typeof Ae._final=="function"?(ae.pendingcb++,ae.finalCalled=!0,Q.nextTick(u,Ae,ae)):(ae.prefinished=!0,Ae.emit("prefinish")))}function O(Ae,ae){var ve=h(ae);return ve&&(S(Ae,ae),ae.pendingcb===0&&(ae.finished=!0,Ae.emit("finish"))),ve}function T(Ae,ae,ve){ae.ending=!0,O(Ae,ae),ve&&(ae.finished?Q.nextTick(ve):Ae.once("finish",ve)),ae.ended=!0,Ae.writable=!1}function D(Ae,ae,ve){var oe=Ae.entry;for(Ae.entry=null;oe;){var ie=oe.callback;ae.pendingcb--,ie(ve),oe=oe.next}ae.corkedRequestsFree?ae.corkedRequestsFree.next=Ae:ae.corkedRequestsFree=Ae}var I=v("babel-runtime/core-js/object/define-property"),k=d(I),F=v("babel-runtime/core-js/symbol/has-instance"),X=d(F),U=v("babel-runtime/core-js/symbol"),K=d(U),V=v("babel-runtime/core-js/set-immediate"),N=d(V),Q=v("process-nextick-args");b.exports=o;var J,ne=!w.browser&&["v0.10","v0.9."].indexOf(w.version.slice(0,5))>-1?N.default:Q.nextTick;o.WritableState=s;var ue=v("core-util-is");ue.inherits=v("inherits");var be={deprecate:v("util-deprecate")},de=v("./internal/streams/stream"),_e=v("safe-buffer").Buffer,me=m.Uint8Array||function(){},Ee=v("./internal/streams/destroy");ue.inherits(o,de),s.prototype.getBuffer=function(){for(var Ae=this.bufferedRequest,ae=[];Ae;)ae.push(Ae),Ae=Ae.next;return ae},function(){try{Object.defineProperty(s.prototype,"buffer",{get:be.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ae){}}();var ge;typeof K.default=="function"&&X.default&&typeof Function.prototype[X.default]=="function"?(ge=Function.prototype[X.default],(0,k.default)(o,X.default,{value:function(Ae){return!!ge.call(this,Ae)||this===o&&Ae&&Ae._writableState instanceof s}})):ge=function(Ae){return Ae instanceof this},o.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},o.prototype.write=function(Ae,ae,ve){var oe=this._writableState,ie=!1,Te=!oe.objectMode&&e(Ae);return Te&&!_e.isBuffer(Ae)&&(Ae=n(Ae)),typeof ae=="function"&&(ve=ae,ae=null),Te?ae="buffer":ae||(ae=oe.defaultEncoding),typeof ve!="function"&&(ve=a),oe.ended?f(this,ve):(Te||l(this,oe,Ae,ve))&&(oe.pendingcb++,ie=c(this,oe,Te,Ae,ae,ve)),ie},o.prototype.cork=function(){this._writableState.corked++},o.prototype.uncork=function(){var Ae=this._writableState;Ae.corked&&(Ae.corked--,Ae.writing||Ae.corked||Ae.finished||Ae.bufferProcessing||!Ae.bufferedRequest||g(this,Ae))},o.prototype.setDefaultEncoding=function(Ae){if(typeof Ae=="string"&&(Ae=Ae.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ae+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Ae);return this._writableState.defaultEncoding=Ae,this},Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),o.prototype._write=function(Ae,ae,ve){ve(new Error("_write() is not implemented"))},o.prototype._writev=null,o.prototype.end=function(Ae,ae,ve){var oe=this._writableState;typeof Ae=="function"?(ve=Ae,Ae=null,ae=null):typeof ae=="function"&&(ve=ae,ae=null),Ae!=null&&this.write(Ae,ae),oe.corked&&(oe.corked=1,this.uncork()),oe.ending||oe.finished||T(this,oe,ve)},Object.defineProperty(o.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Ae){this._writableState&&(this._writableState.destroyed=Ae)}}),o.prototype.destroy=Ee.destroy,o.prototype._undestroy=Ee.undestroy,o.prototype._destroy=function(Ae,ae){this.end(),ae(Ae)}}).call(this,v("_process"),typeof se!="undefined"?se:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(v,b,C){"use strict";function w(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function m(n,e,a){n.copy(e,a)}var d=v("safe-buffer").Buffer,i=v("util");b.exports=function(){function n(){w(this,n),this.head=null,this.tail=null,this.length=0}return n.prototype.push=function(e){var a={data:e,next:null};this.length>0?this.tail.next=a:this.head=a,this.tail=a,++this.length},n.prototype.unshift=function(e){var a={data:e,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length},n.prototype.shift=function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},n.prototype.clear=function(){this.head=this.tail=null,this.length=0},n.prototype.join=function(e){if(this.length===0)return"";for(var a=this.head,s=""+a.data;a=a.next;)s+=e+a.data;return s},n.prototype.concat=function(e){if(this.length===0)return d.alloc(0);if(this.length===1)return this.head.data;for(var a=d.allocUnsafe(e>>>0),s=this.head,o=0;s;)m(s.data,a,o),o+=s.data.length,s=s.next;return a},n}(),i&&i.inspect&&i.inspect.custom&&(b.exports.prototype[i.inspect.custom]=function(){var n=i.inspect({length:this.length});return this.constructor.name+" "+n})},{"safe-buffer":193,util:36}],185:[function(v,b,C){"use strict";function w(n,e){var a=this,s=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return s||o?(e?e(n):!n||this._writableState&&this._writableState.errorEmitted||i.nextTick(d,this,n),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(f){!e&&f?(i.nextTick(d,a,f),a._writableState&&(a._writableState.errorEmitted=!0)):e&&e(f)}),this)}function m(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function d(n,e){n.emit("error",e)}var i=v("process-nextick-args");b.exports={destroy:w,undestroy:m}},{"process-nextick-args":172}],186:[function(v,b,C){"use strict";b.exports=v("events").EventEmitter},{events:158}],187:[function(v,b,C){b.exports=v("./readable").PassThrough},{"./readable":188}],188:[function(v,b,C){C=b.exports=v("./lib/_stream_readable.js"),C.Stream=C,C.Readable=C,C.Writable=v("./lib/_stream_writable.js"),C.Duplex=v("./lib/_stream_duplex.js"),C.Transform=v("./lib/_stream_transform.js"),C.PassThrough=v("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":179,"./lib/_stream_passthrough.js":180,"./lib/_stream_readable.js":181,"./lib/_stream_transform.js":182,"./lib/_stream_writable.js":183}],189:[function(v,b,C){b.exports=v("./readable").Transform},{"./readable":188}],190:[function(v,b,C){b.exports=v("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(v,b,C){var w=function(){return this}()||Function("return this")(),m=w.regeneratorRuntime&&Object.getOwnPropertyNames(w).indexOf("regeneratorRuntime")>=0,d=m&&w.regeneratorRuntime;if(w.regeneratorRuntime=void 0,b.exports=v("./runtime"),m)w.regeneratorRuntime=d;else try{delete w.regeneratorRuntime}catch(i){w.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(v,b,C){!function(w){"use strict";function m(N,Q,J,ne){var ue=Q&&Q.prototype instanceof i?Q:i,be=Object.create(ue.prototype),de=new c(ne||[]);return be._invoke=o(N,J,de),be}function d(N,Q,J){try{return{type:"normal",arg:N.call(Q,J)}}catch(ne){return{type:"throw",arg:ne}}}function i(){}function n(){}function e(){}function a(N){["next","throw","return"].forEach(function(Q){N[Q]=function(J){return this._invoke(Q,J)}})}function s(N){function Q(ue,be,de,_e){var me=d(N[ue],N,be);if(me.type!=="throw"){var Ee=me.arg,ge=Ee.value;return ge&&typeof ge=="object"&&B.call(ge,"__await")?Promise.resolve(ge.__await).then(function(Ae){Q("next",Ae,de,_e)},function(Ae){Q("throw",Ae,de,_e)}):Promise.resolve(ge).then(function(Ae){Ee.value=Ae,de(Ee)},_e)}_e(me.arg)}function J(ue,be){function de(){return new Promise(function(_e,me){Q(ue,be,_e,me)})}return ne=ne?ne.then(de,de):de()}var ne;this._invoke=J}function o(N,Q,J){var ne=T;return function(ue,be){if(ne===I)throw new Error("Generator is already running");if(ne===k){if(ue==="throw")throw be;return p()}for(J.method=ue,J.arg=be;;){var de=J.delegate;if(de){var _e=f(de,J);if(_e){if(_e===F)continue;return _e}}if(J.method==="next")J.sent=J._sent=J.arg;else if(J.method==="throw"){if(ne===T)throw ne=k,J.arg;J.dispatchException(J.arg)}else J.method==="return"&&J.abrupt("return",J.arg);ne=I;var me=d(N,Q,J);if(me.type==="normal"){if(ne=J.done?k:D,me.arg===F)continue;return{value:me.arg,done:J.done}}me.type==="throw"&&(ne=k,J.method="throw",J.arg=me.arg)}}}function f(N,Q){var J=N.iterator[Q.method];if(J===x){if(Q.delegate=null,Q.method==="throw"){if(N.iterator.return&&(Q.method="return",Q.arg=x,f(N,Q),Q.method==="throw"))return F;Q.method="throw",Q.arg=new TypeError("The iterator does not provide a 'throw' method")}return F}var ne=d(J,N.iterator,Q.arg);if(ne.type==="throw")return Q.method="throw",Q.arg=ne.arg,Q.delegate=null,F;var ue=ne.arg;return ue?ue.done?(Q[N.resultName]=ue.value,Q.next=N.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=x),Q.delegate=null,F):ue:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,F)}function l(N){var Q={tryLoc:N[0]};1 in N&&(Q.catchLoc=N[1]),2 in N&&(Q.finallyLoc=N[2],Q.afterLoc=N[3]),this.tryEntries.push(Q)}function r(N){var Q=N.completion||{};Q.type="normal",delete Q.arg,N.completion=Q}function c(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(l,this),this.reset(!0)}function A(N){if(N){var Q=N[g];if(Q)return Q.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var J=-1,ne=function ue(){for(;++J<N.length;)if(B.call(N,J))return ue.value=N[J],ue.done=!1,ue;return ue.value=x,ue.done=!0,ue};return ne.next=ne}}return{next:p}}function p(){return{value:x,done:!0}}var x,_=Object.prototype,B=_.hasOwnProperty,E=typeof Symbol=="function"?Symbol:{},g=E.iterator||"@@iterator",h=E.asyncIterator||"@@asyncIterator",u=E.toStringTag||"@@toStringTag",S=typeof b=="object",O=w.regeneratorRuntime;if(O)return void(S&&(b.exports=O));O=w.regeneratorRuntime=S?b.exports:{},O.wrap=m;var T="suspendedStart",D="suspendedYield",I="executing",k="completed",F={},X={};X[g]=function(){return this};var U=Object.getPrototypeOf,K=U&&U(U(A([])));K&&K!==_&&B.call(K,g)&&(X=K);var V=e.prototype=i.prototype=Object.create(X);n.prototype=V.constructor=e,e.constructor=n,e[u]=n.displayName="GeneratorFunction",O.isGeneratorFunction=function(N){var Q=typeof N=="function"&&N.constructor;return!!Q&&(Q===n||(Q.displayName||Q.name)==="GeneratorFunction")},O.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,e):(N.__proto__=e,u in N||(N[u]="GeneratorFunction")),N.prototype=Object.create(V),N},O.awrap=function(N){return{__await:N}},a(s.prototype),s.prototype[h]=function(){return this},O.AsyncIterator=s,O.async=function(N,Q,J,ne){var ue=new s(m(N,Q,J,ne));return O.isGeneratorFunction(Q)?ue:ue.next().then(function(be){return be.done?be.value:ue.next()})},a(V),V[u]="Generator",V[g]=function(){return this},V.toString=function(){return"[object Generator]"},O.keys=function(N){var Q=[];for(var J in N)Q.push(J);return Q.reverse(),function ne(){for(;Q.length;){var ue=Q.pop();if(ue in N)return ne.value=ue,ne.done=!1,ne}return ne.done=!0,ne}},O.values=A,c.prototype={constructor:c,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(r),!N)for(var Q in this)Q.charAt(0)==="t"&&B.call(this,Q)&&!isNaN(+Q.slice(1))&&(this[Q]=x)},stop:function(){this.done=!0;var N=this.tryEntries[0],Q=N.completion;if(Q.type==="throw")throw Q.arg;return this.rval},dispatchException:function(N){function Q(me,Ee){return be.type="throw",be.arg=N,J.next=me,Ee&&(J.method="next",J.arg=x),!!Ee}if(this.done)throw N;for(var J=this,ne=this.tryEntries.length-1;ne>=0;--ne){var ue=this.tryEntries[ne],be=ue.completion;if(ue.tryLoc==="root")return Q("end");if(ue.tryLoc<=this.prev){var de=B.call(ue,"catchLoc"),_e=B.call(ue,"finallyLoc");if(de&&_e){if(this.prev<ue.catchLoc)return Q(ue.catchLoc,!0);if(this.prev<ue.finallyLoc)return Q(ue.finallyLoc)}else if(de){if(this.prev<ue.catchLoc)return Q(ue.catchLoc,!0)}else{if(!_e)throw new Error("try statement without catch or finally");if(this.prev<ue.finallyLoc)return Q(ue.finallyLoc)}}}},abrupt:function(N,Q){for(var J=this.tryEntries.length-1;J>=0;--J){var ne=this.tryEntries[J];if(ne.tryLoc<=this.prev&&B.call(ne,"finallyLoc")&&this.prev<ne.finallyLoc){var ue=ne;break}}ue&&(N==="break"||N==="continue")&&ue.tryLoc<=Q&&Q<=ue.finallyLoc&&(ue=null);var be=ue?ue.completion:{};return be.type=N,be.arg=Q,ue?(this.method="next",this.next=ue.finallyLoc,F):this.complete(be)},complete:function(N,Q){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&Q&&(this.next=Q),F},finish:function(N){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var J=this.tryEntries[Q];if(J.finallyLoc===N)return this.complete(J.completion,J.afterLoc),r(J),F}},catch:function(N){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var J=this.tryEntries[Q];if(J.tryLoc===N){var ne=J.completion;if(ne.type==="throw"){var ue=ne.arg;r(J)}return ue}}throw new Error("illegal catch attempt")},delegateYield:function(N,Q,J){return this.delegate={iterator:A(N),resultName:Q,nextLoc:J},this.method==="next"&&(this.arg=x),F}}}(function(){return this}()||Function("return this")())},{}],193:[function(v,b,C){function w(n,e){for(var a in n)e[a]=n[a]}function m(n,e,a){return i(n,e,a)}var d=v("buffer"),i=d.Buffer;i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?b.exports=d:(w(d,C),C.Buffer=m),w(i,m),m.from=function(n,e,a){if(typeof n=="number")throw new TypeError("Argument must not be a number");return i(n,e,a)},m.alloc=function(n,e,a){if(typeof n!="number")throw new TypeError("Argument must be a number");var s=i(n);return e!==void 0?typeof a=="string"?s.fill(e,a):s.fill(e):s.fill(0),s},m.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return i(n)},m.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return d.SlowBuffer(n)}},{buffer:38}],194:[function(v,b,C){(function(w){"use strict";function m(p){return p&&p.__esModule?p:{default:p}}var d=v("babel-runtime/core-js/string/from-code-point"),i=m(d),n=v("babel-runtime/core-js/json/stringify"),e=m(n),a=v("babel-runtime/helpers/typeof"),s=m(a),o=v("babel-runtime/core-js/object/define-property"),f=m(o),l=v("babel-runtime/core-js/object/keys"),r=m(l),c=v("babel-runtime/core-js/object/create"),A=m(c);!function(p){function x(te,ce){if(!(this instanceof x))return new x(te,ce);var Ie=this;B(Ie),Ie.q=Ie.c="",Ie.bufferCheckPosition=p.MAX_BUFFER_LENGTH,Ie.opt=ce||{},Ie.opt.lowercase=Ie.opt.lowercase||Ie.opt.lowercasetags,Ie.looseCase=Ie.opt.lowercase?"toLowerCase":"toUpperCase",Ie.tags=[],Ie.closed=Ie.closedRoot=Ie.sawRoot=!1,Ie.tag=Ie.error=null,Ie.strict=!!te,Ie.noscript=!(!te&&!Ie.opt.noscript),Ie.state=W.BEGIN,Ie.strictEntities=Ie.opt.strictEntities,Ie.ENTITIES=Ie.strictEntities?(0,A.default)(p.XML_ENTITIES):(0,A.default)(p.ENTITIES),Ie.attribList=[],Ie.opt.xmlns&&(Ie.ns=(0,A.default)(Te)),Ie.trackPosition=Ie.opt.position!==!1,Ie.trackPosition&&(Ie.position=Ie.line=Ie.column=0),I(Ie,"onready")}function _(te){for(var ce=Math.max(p.MAX_BUFFER_LENGTH,10),Ie=0,ze=0,_t=Ee.length;ze<_t;ze++){var He=te[Ee[ze]].length;if(He>ce)switch(Ee[ze]){case"textNode":F(te);break;case"cdata":k(te,"oncdata",te.cdata),te.cdata="";break;case"script":k(te,"onscript",te.script),te.script="";break;default:U(te,"Max buffer length exceeded: "+Ee[ze])}Ie=Math.max(Ie,He)}var Ke=p.MAX_BUFFER_LENGTH-Ie;te.bufferCheckPosition=Ke+te.position}function B(te){for(var ce=0,Ie=Ee.length;ce<Ie;ce++)te[Ee[ce]]=""}function E(te){F(te),te.cdata!==""&&(k(te,"oncdata",te.cdata),te.cdata=""),te.script!==""&&(k(te,"onscript",te.script),te.script="")}function g(te,ce){return new h(te,ce)}function h(te,ce){if(!(this instanceof h))return new h(te,ce);ge.apply(this),this._parser=new x(te,ce),this.writable=!0,this.readable=!0;var Ie=this;this._parser.onend=function(){Ie.emit("end")},this._parser.onerror=function(ze){Ie.emit("error",ze),Ie._parser.error=null},this._decoder=null,Ae.forEach(function(ze){(0,f.default)(Ie,"on"+ze,{get:function(){return Ie._parser["on"+ze]},set:function(_t){if(!_t)return Ie.removeAllListeners(ze),Ie._parser["on"+ze]=_t,_t;Ie.on(ze,_t)},enumerable:!0,configurable:!1})})}function u(te){return te===" "||te===`
`||te==="\r"||te===" "}function S(te){return te==='"'||te==="'"}function O(te){return te===">"||u(te)}function T(te,ce){return te.test(ce)}function D(te,ce){return!T(te,ce)}function I(te,ce,Ie){te[ce]&&te[ce](Ie)}function k(te,ce,Ie){te.textNode&&F(te),I(te,ce,Ie)}function F(te){te.textNode=X(te.opt,te.textNode),te.textNode&&I(te,"ontext",te.textNode),te.textNode=""}function X(te,ce){return te.trim&&(ce=ce.trim()),te.normalize&&(ce=ce.replace(/\s+/g," ")),ce}function U(te,ce){return F(te),te.trackPosition&&(ce+=`
Line: `+te.line+`
Column: `+te.column+`
Char: `+te.c),ce=new Error(ce),te.error=ce,I(te,"onerror",ce),te}function K(te){return te.sawRoot&&!te.closedRoot&&V(te,"Unclosed root tag"),te.state!==W.BEGIN&&te.state!==W.BEGIN_WHITESPACE&&te.state!==W.TEXT&&U(te,"Unexpected end"),F(te),te.c="",te.closed=!0,I(te,"onend"),x.call(te,te.strict,te.opt),te}function V(te,ce){if((te===void 0?"undefined":(0,s.default)(te))!=="object"||!(te instanceof x))throw new Error("bad call to strictFail");te.strict&&U(te,ce)}function N(te){te.strict||(te.tagName=te.tagName[te.looseCase]());var ce=te.tags[te.tags.length-1]||te,Ie=te.tag={name:te.tagName,attributes:{}};te.opt.xmlns&&(Ie.ns=ce.ns),te.attribList.length=0,k(te,"onopentagstart",Ie)}function Q(te,ce){var Ie=te.indexOf(":"),ze=Ie<0?["",te]:te.split(":"),_t=ze[0],He=ze[1];return ce&&te==="xmlns"&&(_t="xmlns",He=""),{prefix:_t,local:He}}function J(te){if(te.strict||(te.attribName=te.attribName[te.looseCase]()),te.attribList.indexOf(te.attribName)!==-1||te.tag.attributes.hasOwnProperty(te.attribName))return void(te.attribName=te.attribValue="");if(te.opt.xmlns){var ce=Q(te.attribName,!0),Ie=ce.prefix,ze=ce.local;if(Ie==="xmlns")if(ze==="xml"&&te.attribValue!==oe)V(te,"xml: prefix must be bound to "+oe+`
Actual: `+te.attribValue);else if(ze==="xmlns"&&te.attribValue!==ie)V(te,"xmlns: prefix must be bound to "+ie+`
Actual: `+te.attribValue);else{var _t=te.tag,He=te.tags[te.tags.length-1]||te;_t.ns===He.ns&&(_t.ns=(0,A.default)(He.ns)),_t.ns[ze]=te.attribValue}te.attribList.push([te.attribName,te.attribValue])}else te.tag.attributes[te.attribName]=te.attribValue,k(te,"onattribute",{name:te.attribName,value:te.attribValue});te.attribName=te.attribValue=""}function ne(te,ce){if(te.opt.xmlns){var Ie=te.tag,ze=Q(te.tagName);Ie.prefix=ze.prefix,Ie.local=ze.local,Ie.uri=Ie.ns[ze.prefix]||"",Ie.prefix&&!Ie.uri&&(V(te,"Unbound namespace prefix: "+(0,e.default)(te.tagName)),Ie.uri=ze.prefix);var _t=te.tags[te.tags.length-1]||te;Ie.ns&&_t.ns!==Ie.ns&&(0,r.default)(Ie.ns).forEach(function(Ne){k(te,"onopennamespace",{prefix:Ne,uri:Ie.ns[Ne]})});for(var He=0,Ke=te.attribList.length;He<Ke;He++){var ht=te.attribList[He],St=ht[0],ct=ht[1],lt=Q(St,!0),rt=lt.prefix,Ze=lt.local,$e=rt===""?"":Ie.ns[rt]||"",Ue={name:St,value:ct,prefix:rt,local:Ze,uri:$e};rt&&rt!=="xmlns"&&!$e&&(V(te,"Unbound namespace prefix: "+(0,e.default)(rt)),Ue.uri=rt),te.tag.attributes[St]=Ue,k(te,"onattribute",Ue)}te.attribList.length=0}te.tag.isSelfClosing=!!ce,te.sawRoot=!0,te.tags.push(te.tag),k(te,"onopentag",te.tag),ce||(te.noscript||te.tagName.toLowerCase()!=="script"?te.state=W.TEXT:te.state=W.SCRIPT,te.tag=null,te.tagName=""),te.attribName=te.attribValue="",te.attribList.length=0}function ue(te){if(!te.tagName)return V(te,"Weird empty close tag."),te.textNode+="</>",void(te.state=W.TEXT);if(te.script){if(te.tagName!=="script")return te.script+="</"+te.tagName+">",te.tagName="",void(te.state=W.SCRIPT);k(te,"onscript",te.script),te.script=""}var ce=te.tags.length,Ie=te.tagName;te.strict||(Ie=Ie[te.looseCase]());for(var ze=Ie;ce--&&!(te.tags[ce].name===ze);)V(te,"Unexpected close tag");if(ce<0)return V(te,"Unmatched closing tag: "+te.tagName),te.textNode+="</"+te.tagName+">",void(te.state=W.TEXT);te.tagName=Ie;for(var _t=te.tags.length;_t-- >ce;){var He=te.tag=te.tags.pop();te.tagName=te.tag.name,k(te,"onclosetag",te.tagName);var Ke={};for(var ht in He.ns)Ke[ht]=He.ns[ht];var St=te.tags[te.tags.length-1]||te;te.opt.xmlns&&He.ns!==St.ns&&(0,r.default)(He.ns).forEach(function(ct){var lt=He.ns[ct];k(te,"onclosenamespace",{prefix:ct,uri:lt})})}ce===0&&(te.closedRoot=!0),te.tagName=te.attribValue=te.attribName="",te.attribList.length=0,te.state=W.TEXT}function be(te){var ce,Ie=te.entity,ze=Ie.toLowerCase(),_t="";return te.ENTITIES[Ie]?te.ENTITIES[Ie]:te.ENTITIES[ze]?te.ENTITIES[ze]:(Ie=ze,Ie.charAt(0)==="#"&&(Ie.charAt(1)==="x"?(Ie=Ie.slice(2),ce=parseInt(Ie,16),_t=ce.toString(16)):(Ie=Ie.slice(1),ce=parseInt(Ie,10),_t=ce.toString(10))),Ie=Ie.replace(/^0+/,""),isNaN(ce)||_t.toLowerCase()!==Ie?(V(te,"Invalid character entity"),"&"+te.entity+";"):(0,i.default)(ce))}function de(te,ce){ce==="<"?(te.state=W.OPEN_WAKA,te.startTagPosition=te.position):u(ce)||(V(te,"Non-whitespace before first tag."),te.textNode=ce,te.state=W.TEXT)}function _e(te,ce){var Ie="";return ce<te.length&&(Ie=te.charAt(ce)),Ie}function me(te){var ce=this;if(this.error)throw this.error;if(ce.closed)return U(ce,"Cannot write after close. Assign an onready handler.");if(te===null)return K(ce);(te===void 0?"undefined":(0,s.default)(te))==="object"&&(te=te.toString());for(var Ie=0,ze="";!(ze=_e(te,Ie++),ce.c=ze,!ze);)switch(ce.trackPosition&&(ce.position++,ze===`
`?(ce.line++,ce.column=0):ce.column++),ce.state){case W.BEGIN:if(ce.state=W.BEGIN_WHITESPACE,ze==="\uFEFF")continue;de(ce,ze);continue;case W.BEGIN_WHITESPACE:de(ce,ze);continue;case W.TEXT:if(ce.sawRoot&&!ce.closedRoot){for(var _t=Ie-1;ze&&ze!=="<"&&ze!=="&";)(ze=_e(te,Ie++))&&ce.trackPosition&&(ce.position++,ze===`
`?(ce.line++,ce.column=0):ce.column++);ce.textNode+=te.substring(_t,Ie-1)}ze!=="<"||ce.sawRoot&&ce.closedRoot&&!ce.strict?(u(ze)||ce.sawRoot&&!ce.closedRoot||V(ce,"Text data outside of root node."),ze==="&"?ce.state=W.TEXT_ENTITY:ce.textNode+=ze):(ce.state=W.OPEN_WAKA,ce.startTagPosition=ce.position);continue;case W.SCRIPT:ze==="<"?ce.state=W.SCRIPT_ENDING:ce.script+=ze;continue;case W.SCRIPT_ENDING:ze==="/"?ce.state=W.CLOSE_TAG:(ce.script+="<"+ze,ce.state=W.SCRIPT);continue;case W.OPEN_WAKA:if(ze==="!")ce.state=W.SGML_DECL,ce.sgmlDecl="";else if(!u(ze))if(T(Re,ze))ce.state=W.OPEN_TAG,ce.tagName=ze;else if(ze==="/")ce.state=W.CLOSE_TAG,ce.tagName="";else if(ze==="?")ce.state=W.PROC_INST,ce.procInstName=ce.procInstBody="";else{if(V(ce,"Unencoded <"),ce.startTagPosition+1<ce.position){var He=ce.position-ce.startTagPosition;ze=new Array(He).join(" ")+ze}ce.textNode+="<"+ze,ce.state=W.TEXT}continue;case W.SGML_DECL:(ce.sgmlDecl+ze).toUpperCase()===ae?(k(ce,"onopencdata"),ce.state=W.CDATA,ce.sgmlDecl="",ce.cdata=""):ce.sgmlDecl+ze==="--"?(ce.state=W.COMMENT,ce.comment="",ce.sgmlDecl=""):(ce.sgmlDecl+ze).toUpperCase()===ve?(ce.state=W.DOCTYPE,(ce.doctype||ce.sawRoot)&&V(ce,"Inappropriately located doctype declaration"),ce.doctype="",ce.sgmlDecl=""):ze===">"?(k(ce,"onsgmldeclaration",ce.sgmlDecl),ce.sgmlDecl="",ce.state=W.TEXT):(S(ze)&&(ce.state=W.SGML_DECL_QUOTED),ce.sgmlDecl+=ze);continue;case W.SGML_DECL_QUOTED:ze===ce.q&&(ce.state=W.SGML_DECL,ce.q=""),ce.sgmlDecl+=ze;continue;case W.DOCTYPE:ze===">"?(ce.state=W.TEXT,k(ce,"ondoctype",ce.doctype),ce.doctype=!0):(ce.doctype+=ze,ze==="["?ce.state=W.DOCTYPE_DTD:S(ze)&&(ce.state=W.DOCTYPE_QUOTED,ce.q=ze));continue;case W.DOCTYPE_QUOTED:ce.doctype+=ze,ze===ce.q&&(ce.q="",ce.state=W.DOCTYPE);continue;case W.DOCTYPE_DTD:ce.doctype+=ze,ze==="]"?ce.state=W.DOCTYPE:S(ze)&&(ce.state=W.DOCTYPE_DTD_QUOTED,ce.q=ze);continue;case W.DOCTYPE_DTD_QUOTED:ce.doctype+=ze,ze===ce.q&&(ce.state=W.DOCTYPE_DTD,ce.q="");continue;case W.COMMENT:ze==="-"?ce.state=W.COMMENT_ENDING:ce.comment+=ze;continue;case W.COMMENT_ENDING:ze==="-"?(ce.state=W.COMMENT_ENDED,ce.comment=X(ce.opt,ce.comment),ce.comment&&k(ce,"oncomment",ce.comment),ce.comment=""):(ce.comment+="-"+ze,ce.state=W.COMMENT);continue;case W.COMMENT_ENDED:ze!==">"?(V(ce,"Malformed comment"),ce.comment+="--"+ze,ce.state=W.COMMENT):ce.state=W.TEXT;continue;case W.CDATA:ze==="]"?ce.state=W.CDATA_ENDING:ce.cdata+=ze;continue;case W.CDATA_ENDING:ze==="]"?ce.state=W.CDATA_ENDING_2:(ce.cdata+="]"+ze,ce.state=W.CDATA);continue;case W.CDATA_ENDING_2:ze===">"?(ce.cdata&&k(ce,"oncdata",ce.cdata),k(ce,"onclosecdata"),ce.cdata="",ce.state=W.TEXT):ze==="]"?ce.cdata+="]":(ce.cdata+="]]"+ze,ce.state=W.CDATA);continue;case W.PROC_INST:ze==="?"?ce.state=W.PROC_INST_ENDING:u(ze)?ce.state=W.PROC_INST_BODY:ce.procInstName+=ze;continue;case W.PROC_INST_BODY:if(!ce.procInstBody&&u(ze))continue;ze==="?"?ce.state=W.PROC_INST_ENDING:ce.procInstBody+=ze;continue;case W.PROC_INST_ENDING:ze===">"?(k(ce,"onprocessinginstruction",{name:ce.procInstName,body:ce.procInstBody}),ce.procInstName=ce.procInstBody="",ce.state=W.TEXT):(ce.procInstBody+="?"+ze,ce.state=W.PROC_INST_BODY);continue;case W.OPEN_TAG:T(Me,ze)?ce.tagName+=ze:(N(ce),ze===">"?ne(ce):ze==="/"?ce.state=W.OPEN_TAG_SLASH:(u(ze)||V(ce,"Invalid character in tag name"),ce.state=W.ATTRIB));continue;case W.OPEN_TAG_SLASH:ze===">"?(ne(ce,!0),ue(ce)):(V(ce,"Forward-slash in opening tag not followed by >"),ce.state=W.ATTRIB);continue;case W.ATTRIB:if(u(ze))continue;ze===">"?ne(ce):ze==="/"?ce.state=W.OPEN_TAG_SLASH:T(Re,ze)?(ce.attribName=ze,ce.attribValue="",ce.state=W.ATTRIB_NAME):V(ce,"Invalid attribute name");continue;case W.ATTRIB_NAME:ze==="="?ce.state=W.ATTRIB_VALUE:ze===">"?(V(ce,"Attribute without value"),ce.attribValue=ce.attribName,J(ce),ne(ce)):u(ze)?ce.state=W.ATTRIB_NAME_SAW_WHITE:T(Me,ze)?ce.attribName+=ze:V(ce,"Invalid attribute name");continue;case W.ATTRIB_NAME_SAW_WHITE:if(ze==="=")ce.state=W.ATTRIB_VALUE;else{if(u(ze))continue;V(ce,"Attribute without value"),ce.tag.attributes[ce.attribName]="",ce.attribValue="",k(ce,"onattribute",{name:ce.attribName,value:""}),ce.attribName="",ze===">"?ne(ce):T(Re,ze)?(ce.attribName=ze,ce.state=W.ATTRIB_NAME):(V(ce,"Invalid attribute name"),ce.state=W.ATTRIB)}continue;case W.ATTRIB_VALUE:if(u(ze))continue;S(ze)?(ce.q=ze,ce.state=W.ATTRIB_VALUE_QUOTED):(V(ce,"Unquoted attribute value"),ce.state=W.ATTRIB_VALUE_UNQUOTED,ce.attribValue=ze);continue;case W.ATTRIB_VALUE_QUOTED:if(ze!==ce.q){ze==="&"?ce.state=W.ATTRIB_VALUE_ENTITY_Q:ce.attribValue+=ze;continue}J(ce),ce.q="",ce.state=W.ATTRIB_VALUE_CLOSED;continue;case W.ATTRIB_VALUE_CLOSED:u(ze)?ce.state=W.ATTRIB:ze===">"?ne(ce):ze==="/"?ce.state=W.OPEN_TAG_SLASH:T(Re,ze)?(V(ce,"No whitespace between attributes"),ce.attribName=ze,ce.attribValue="",ce.state=W.ATTRIB_NAME):V(ce,"Invalid attribute name");continue;case W.ATTRIB_VALUE_UNQUOTED:if(!O(ze)){ze==="&"?ce.state=W.ATTRIB_VALUE_ENTITY_U:ce.attribValue+=ze;continue}J(ce),ze===">"?ne(ce):ce.state=W.ATTRIB;continue;case W.CLOSE_TAG:if(ce.tagName)ze===">"?ue(ce):T(Me,ze)?ce.tagName+=ze:ce.script?(ce.script+="</"+ce.tagName,ce.tagName="",ce.state=W.SCRIPT):(u(ze)||V(ce,"Invalid tagname in closing tag"),ce.state=W.CLOSE_TAG_SAW_WHITE);else{if(u(ze))continue;D(Re,ze)?ce.script?(ce.script+="</"+ze,ce.state=W.SCRIPT):V(ce,"Invalid tagname in closing tag."):ce.tagName=ze}continue;case W.CLOSE_TAG_SAW_WHITE:if(u(ze))continue;ze===">"?ue(ce):V(ce,"Invalid characters in closing tag");continue;case W.TEXT_ENTITY:case W.ATTRIB_VALUE_ENTITY_Q:case W.ATTRIB_VALUE_ENTITY_U:var Ke,ht;switch(ce.state){case W.TEXT_ENTITY:Ke=W.TEXT,ht="textNode";break;case W.ATTRIB_VALUE_ENTITY_Q:Ke=W.ATTRIB_VALUE_QUOTED,ht="attribValue";break;case W.ATTRIB_VALUE_ENTITY_U:Ke=W.ATTRIB_VALUE_UNQUOTED,ht="attribValue"}ze===";"?(ce[ht]+=be(ce),ce.entity="",ce.state=Ke):T(ce.entity.length?j:re,ze)?ce.entity+=ze:(V(ce,"Invalid character in entity name"),ce[ht]+="&"+ce.entity+ze,ce.entity="",ce.state=Ke);continue;default:throw new Error(ce,"Unknown state: "+ce.state)}return ce.position>=ce.bufferCheckPosition&&_(ce),ce}p.parser=function(te,ce){return new x(te,ce)},p.SAXParser=x,p.SAXStream=h,p.createStream=g,p.MAX_BUFFER_LENGTH=65536;var Ee=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];p.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],A.default||(Object.create=function(te){function ce(){}return ce.prototype=te,new ce}),r.default||(Object.keys=function(te){var ce=[];for(var Ie in te)te.hasOwnProperty(Ie)&&ce.push(Ie);return ce}),x.prototype={end:function(){K(this)},write:me,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){E(this)}};var ge;try{ge=v("stream").Stream}catch(te){ge=function(){}}var Ae=p.EVENTS.filter(function(te){return te!=="error"&&te!=="end"});h.prototype=(0,A.default)(ge.prototype,{constructor:{value:h}}),h.prototype.write=function(te){if(typeof w=="function"&&typeof w.isBuffer=="function"&&w.isBuffer(te)){if(!this._decoder){var ce=v("string_decoder").StringDecoder;this._decoder=new ce("utf8")}te=this._decoder.write(te)}return this._parser.write(te.toString()),this.emit("data",te),!0},h.prototype.end=function(te){return te&&te.length&&this.write(te),this._parser.end(),!0},h.prototype.on=function(te,ce){var Ie=this;return Ie._parser["on"+te]||Ae.indexOf(te)===-1||(Ie._parser["on"+te]=function(){var ze=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);ze.splice(0,0,te),Ie.emit.apply(Ie,ze)}),ge.prototype.on.call(Ie,te,ce)};var ae="[CDATA[",ve="DOCTYPE",oe="http://www.w3.org/XML/1998/namespace",ie="http://www.w3.org/2000/xmlns/",Te={xml:oe,xmlns:ie},Re=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Me=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,re=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,W=0;p.STATE={BEGIN:W++,BEGIN_WHITESPACE:W++,TEXT:W++,TEXT_ENTITY:W++,OPEN_WAKA:W++,SGML_DECL:W++,SGML_DECL_QUOTED:W++,DOCTYPE:W++,DOCTYPE_QUOTED:W++,DOCTYPE_DTD:W++,DOCTYPE_DTD_QUOTED:W++,COMMENT_STARTING:W++,COMMENT:W++,COMMENT_ENDING:W++,COMMENT_ENDED:W++,CDATA:W++,CDATA_ENDING:W++,CDATA_ENDING_2:W++,PROC_INST:W++,PROC_INST_BODY:W++,PROC_INST_ENDING:W++,OPEN_TAG:W++,OPEN_TAG_SLASH:W++,ATTRIB:W++,ATTRIB_NAME:W++,ATTRIB_NAME_SAW_WHITE:W++,ATTRIB_VALUE:W++,ATTRIB_VALUE_QUOTED:W++,ATTRIB_VALUE_CLOSED:W++,ATTRIB_VALUE_UNQUOTED:W++,ATTRIB_VALUE_ENTITY_Q:W++,ATTRIB_VALUE_ENTITY_U:W++,CLOSE_TAG:W++,CLOSE_TAG_SAW_WHITE:W++,SCRIPT:W++,SCRIPT_ENDING:W++},p.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},p.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,r.default)(p.ENTITIES).forEach(function(te){var ce=p.ENTITIES[te],Ie=typeof ce=="number"?String.fromCharCode(ce):ce;p.ENTITIES[te]=Ie});for(var he in p.STATE)p.STATE[p.STATE[he]]=he;W=p.STATE,i.default||function(){var te=String.fromCharCode,ce=Math.floor,Ie=function(){var ze,_t,He=[],Ke=-1,ht=arguments.length;if(!ht)return"";for(var St="";++Ke<ht;){var ct=Number(arguments[Ke]);if(!isFinite(ct)||ct<0||ct>1114111||ce(ct)!==ct)throw RangeError("Invalid code point: "+ct);ct<=65535?He.push(ct):(ct-=65536,ze=55296+(ct>>10),_t=ct%1024+56320,He.push(ze,_t)),(Ke+1===ht||He.length>16384)&&(St+=te.apply(null,He),He.length=0)}return St};f.default?Object.defineProperty(String,"fromCodePoint",{value:Ie,configurable:!0,writable:!0}):String.fromCodePoint=Ie}()}(C===void 0?(void 0).sax={}:C)}).call(this,v("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/create":19,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/object/keys":23,"babel-runtime/core-js/string/from-code-point":26,"babel-runtime/helpers/typeof":32,buffer:38,stream:195,string_decoder:37}],195:[function(v,b,C){function w(){m.call(this)}b.exports=w;var m=v("events").EventEmitter;v("inherits")(w,m),w.Readable=v("readable-stream/readable.js"),w.Writable=v("readable-stream/writable.js"),w.Duplex=v("readable-stream/duplex.js"),w.Transform=v("readable-stream/transform.js"),w.PassThrough=v("readable-stream/passthrough.js"),w.Stream=w,w.prototype.pipe=function(d,i){function n(c){d.writable&&d.write(c)===!1&&l.pause&&l.pause()}function e(){l.readable&&l.resume&&l.resume()}function a(){r||(r=!0,d.end())}function s(){r||(r=!0,typeof d.destroy=="function"&&d.destroy())}function o(c){if(f(),m.listenerCount(this,"error")===0)throw c}function f(){l.removeListener("data",n),d.removeListener("drain",e),l.removeListener("end",a),l.removeListener("close",s),l.removeListener("error",o),d.removeListener("error",o),l.removeListener("end",f),l.removeListener("close",f),d.removeListener("close",f)}var l=this;l.on("data",n),d.on("drain",e),d._isStdio||i&&i.end===!1||(l.on("end",a),l.on("close",s));var r=!1;return l.on("error",o),d.on("error",o),l.on("end",f),l.on("close",f),d.on("close",f),d.emit("pipe",l),d}},{events:158,inherits:162,"readable-stream/duplex.js":178,"readable-stream/passthrough.js":187,"readable-stream/readable.js":188,"readable-stream/transform.js":189,"readable-stream/writable.js":190}],196:[function(v,b,C){(function(w){var m=v("./lib/request"),d=v("./lib/response"),i=v("xtend"),n=v("builtin-status-codes"),e=v("url"),a=C;a.request=function(s,o){s=typeof s=="string"?e.parse(s):i(s);var f=w.location.protocol.search(/^https?:$/)===-1?"http:":"",l=s.protocol||f,r=s.hostname||s.host,c=s.port,A=s.path||"/";r&&r.indexOf(":")!==-1&&(r="["+r+"]"),s.url=(r?l+"//"+r:"")+(c?":"+c:"")+A,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var p=new m(s);return o&&p.on("response",o),p},a.get=function(s,o){var f=a.request(s,o);return f.end(),f},a.ClientRequest=m,a.IncomingMessage=d.IncomingMessage,a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.globalAgent=new a.Agent,a.STATUS_CODES=n,a.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof se!="undefined"?se:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(v,b,C){(function(w){"use strict";function m(){if(n!==void 0)return n;if(w.XMLHttpRequest){n=new w.XMLHttpRequest;try{n.open("GET",w.XDomainRequest?"/":"https://example.com")}catch(s){n=null}}else n=null;return n}function d(s){var o=m();if(!o)return!1;try{return o.responseType=s,o.responseType===s}catch(f){}return!1}function i(s){return typeof s=="function"}C.fetch=i(w.fetch)&&i(w.ReadableStream),C.writableStream=i(w.WritableStream),C.abortController=i(w.AbortController),C.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),C.blobConstructor=!0}catch(s){}var n,e=w.ArrayBuffer!==void 0,a=e&&i(w.ArrayBuffer.prototype.slice);C.arraybuffer=C.fetch||e&&d("arraybuffer"),C.msstream=!C.fetch&&a&&d("ms-stream"),C.mozchunkedarraybuffer=!C.fetch&&e&&d("moz-chunked-arraybuffer"),C.overrideMimeType=C.fetch||!!m()&&i(m().overrideMimeType),C.vbArray=i(w.VBArray),n=null}).call(this,typeof se!="undefined"?se:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(v,b,C){(function(w,m,d){"use strict";function i(_,B){return s.fetch&&B?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&_?"arraybuffer":s.vbArray&&_?"text:vbarray":"text"}function n(_){try{var B=_.status;return B!==null&&B!==0}catch(E){return!1}}var e=v("babel-runtime/core-js/object/keys"),a=function(_){return _&&_.__esModule?_:{default:_}}(e),s=v("./capability"),o=v("inherits"),f=v("./response"),l=v("readable-stream"),r=v("to-arraybuffer"),c=f.IncomingMessage,A=f.readyStates,p=b.exports=function(_){var B=this;l.Writable.call(B),B._opts=_,B._body=[],B._headers={},_.auth&&B.setHeader("Authorization","Basic "+new d(_.auth).toString("base64")),(0,a.default)(_.headers).forEach(function(h){B.setHeader(h,_.headers[h])});var E,g=!0;if(_.mode==="disable-fetch"||"requestTimeout"in _&&!s.abortController)g=!1,E=!0;else if(_.mode==="prefer-streaming")E=!1;else if(_.mode==="allow-wrong-content-type")E=!s.overrideMimeType;else{if(_.mode&&_.mode!=="default"&&_.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");E=!0}B._mode=i(E,g),B._fetchTimer=null,B.on("finish",function(){B._onFinish()})};o(p,l.Writable),p.prototype.setHeader=function(_,B){var E=this,g=_.toLowerCase();x.indexOf(g)===-1&&(E._headers[g]={name:_,value:B})},p.prototype.getHeader=function(_){var B=this._headers[_.toLowerCase()];return B?B.value:null},p.prototype.removeHeader=function(_){delete this._headers[_.toLowerCase()]},p.prototype._onFinish=function(){var _=this;if(!_._destroyed){var B=_._opts,E=_._headers,g=null;B.method!=="GET"&&B.method!=="HEAD"&&(g=s.arraybuffer?r(d.concat(_._body)):s.blobConstructor?new m.Blob(_._body.map(function(T){return r(T)}),{type:(E["content-type"]||{}).value||""}):d.concat(_._body).toString());var h=[];if((0,a.default)(E).forEach(function(T){var D=E[T].name,I=E[T].value;Array.isArray(I)?I.forEach(function(k){h.push([D,k])}):h.push([D,I])}),_._mode==="fetch"){var u=null;if(s.abortController){var S=new AbortController;u=S.signal,_._fetchAbortController=S,"requestTimeout"in B&&B.requestTimeout!==0&&(_._fetchTimer=m.setTimeout(function(){_.emit("requestTimeout"),_._fetchAbortController&&_._fetchAbortController.abort()},B.requestTimeout))}m.fetch(_._opts.url,{method:_._opts.method,headers:h,body:g||void 0,mode:"cors",credentials:B.withCredentials?"include":"same-origin",signal:u}).then(function(T){_._fetchResponse=T,_._connect()},function(T){m.clearTimeout(_._fetchTimer),_._destroyed||_.emit("error",T)})}else{var O=_._xhr=new m.XMLHttpRequest;try{O.open(_._opts.method,_._opts.url,!0)}catch(T){return void w.nextTick(function(){_.emit("error",T)})}"responseType"in O&&(O.responseType=_._mode.split(":")[0]),"withCredentials"in O&&(O.withCredentials=!!B.withCredentials),_._mode==="text"&&"overrideMimeType"in O&&O.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in B&&(O.timeout=B.requestTimeout,O.ontimeout=function(){_.emit("requestTimeout")}),h.forEach(function(T){O.setRequestHeader(T[0],T[1])}),_._response=null,O.onreadystatechange=function(){switch(O.readyState){case A.LOADING:case A.DONE:_._onXHRProgress()}},_._mode==="moz-chunked-arraybuffer"&&(O.onprogress=function(){_._onXHRProgress()}),O.onerror=function(){_._destroyed||_.emit("error",new Error("XHR error"))};try{O.send(g)}catch(T){return void w.nextTick(function(){_.emit("error",T)})}}}},p.prototype._onXHRProgress=function(){var _=this;n(_._xhr)&&!_._destroyed&&(_._response||_._connect(),_._response._onXHRProgress())},p.prototype._connect=function(){var _=this;_._destroyed||(_._response=new c(_._xhr,_._fetchResponse,_._mode,_._fetchTimer),_._response.on("error",function(B){_.emit("error",B)}),_.emit("response",_._response))},p.prototype._write=function(_,B,E){this._body.push(_),E()},p.prototype.abort=p.prototype.destroy=function(){var _=this;_._destroyed=!0,m.clearTimeout(_._fetchTimer),_._response&&(_._response._destroyed=!0),_._xhr?_._xhr.abort():_._fetchAbortController&&_._fetchAbortController.abort()},p.prototype.end=function(_,B,E){var g=this;typeof _=="function"&&(E=_,_=void 0),l.Writable.prototype.end.call(g,_,B,E)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var x=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,v("_process"),typeof se!="undefined"?se:typeof self!="undefined"?self:typeof window!="undefined"?window:{},v("buffer").Buffer)},{"./capability":197,"./response":199,_process:173,"babel-runtime/core-js/object/keys":23,buffer:38,inherits:162,"readable-stream":188,"to-arraybuffer":202}],199:[function(v,b,C){(function(w,m,d){"use strict";var i=v("babel-runtime/core-js/promise"),n=function(l){return l&&l.__esModule?l:{default:l}}(i),e=v("./capability"),a=v("inherits"),s=v("readable-stream"),o=C.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},f=C.IncomingMessage=function(l,r,c,A){var p=this;if(s.Readable.call(p),p._mode=c,p.headers={},p.rawHeaders=[],p.trailers={},p.rawTrailers=[],p.on("end",function(){w.nextTick(function(){p.emit("close")})}),c==="fetch"){if(p._fetchResponse=r,p.url=r.url,p.statusCode=r.status,p.statusMessage=r.statusText,r.headers.forEach(function(g,h){p.headers[h.toLowerCase()]=g,p.rawHeaders.push(h,g)}),e.writableStream){var x=new WritableStream({write:function(g){return new n.default(function(h,u){p._destroyed?u():p.push(new d(g))?h():p._resumeFetch=h})},close:function(){m.clearTimeout(A),p._destroyed||p.push(null)},abort:function(g){p._destroyed||p.emit("error",g)}});try{return void r.body.pipeTo(x).catch(function(g){m.clearTimeout(A),p._destroyed||p.emit("error",g)})}catch(g){}}var _=r.body.getReader();!function g(){_.read().then(function(h){if(!p._destroyed){if(h.done)return m.clearTimeout(A),void p.push(null);p.push(new d(h.value)),g()}}).catch(function(h){m.clearTimeout(A),p._destroyed||p.emit("error",h)})}()}else if(p._xhr=l,p._pos=0,p.url=l.responseURL,p.statusCode=l.status,p.statusMessage=l.statusText,l.getAllResponseHeaders().split(/\r?\n/).forEach(function(g){var h=g.match(/^([^:]+):\s*(.*)/);if(h){var u=h[1].toLowerCase();u==="set-cookie"?(p.headers[u]===void 0&&(p.headers[u]=[]),p.headers[u].push(h[2])):p.headers[u]!==void 0?p.headers[u]+=", "+h[2]:p.headers[u]=h[2],p.rawHeaders.push(h[1],h[2])}}),p._charset="x-user-defined",!e.overrideMimeType){var B=p.rawHeaders["mime-type"];if(B){var E=B.match(/;\s*charset=([^;])(;|$)/);E&&(p._charset=E[1].toLowerCase())}p._charset||(p._charset="utf-8")}};a(f,s.Readable),f.prototype._read=function(){var l=this,r=l._resumeFetch;r&&(l._resumeFetch=null,r())},f.prototype._onXHRProgress=function(){var l=this,r=l._xhr,c=null;switch(l._mode){case"text:vbarray":if(r.readyState!==o.DONE)break;try{c=new m.VBArray(r.responseBody).toArray()}catch(B){}if(c!==null){l.push(new d(c));break}case"text":try{c=r.responseText}catch(B){l._mode="text:vbarray";break}if(c.length>l._pos){var A=c.substr(l._pos);if(l._charset==="x-user-defined"){for(var p=new d(A.length),x=0;x<A.length;x++)p[x]=255&A.charCodeAt(x);l.push(p)}else l.push(A,l._charset);l._pos=c.length}break;case"arraybuffer":if(r.readyState!==o.DONE||!r.response)break;c=r.response,l.push(new d(new Uint8Array(c)));break;case"moz-chunked-arraybuffer":if(c=r.response,r.readyState!==o.LOADING||!c)break;l.push(new d(new Uint8Array(c)));break;case"ms-stream":if(c=r.response,r.readyState!==o.LOADING)break;var _=new m.MSStreamReader;_.onprogress=function(){_.result.byteLength>l._pos&&(l.push(new d(new Uint8Array(_.result.slice(l._pos)))),l._pos=_.result.byteLength)},_.onload=function(){l.push(null)},_.readAsArrayBuffer(c)}l._xhr.readyState===o.DONE&&l._mode!=="ms-stream"&&l.push(null)}}).call(this,v("_process"),typeof se!="undefined"?se:typeof self!="undefined"?self:typeof window!="undefined"?window:{},v("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(v,b,C){"use strict";function w(B){if(!B)return"utf8";for(var E;;)switch(B){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return B;default:if(E)return;B=(""+B).toLowerCase(),E=!0}}function m(B){var E=w(B);if(typeof E!="string"&&(x.isEncoding===_||!_(B)))throw new Error("Unknown encoding: "+B);return E||B}function d(B){this.encoding=m(B);var E;switch(this.encoding){case"utf16le":this.text=f,this.end=l,E=4;break;case"utf8":this.fillLast=a,E=4;break;case"base64":this.text=r,this.end=c,E=3;break;default:return this.write=A,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=x.allocUnsafe(E)}function i(B){return B<=127?0:B>>5==6?2:B>>4==14?3:B>>3==30?4:B>>6==2?-1:-2}function n(B,E,g){var h=E.length-1;if(h<g)return 0;var u=i(E[h]);return u>=0?(u>0&&(B.lastNeed=u-1),u):--h<g||u===-2?0:(u=i(E[h]))>=0?(u>0&&(B.lastNeed=u-2),u):--h<g||u===-2?0:(u=i(E[h]),u>=0?(u>0&&(u===2?u=0:B.lastNeed=u-3),u):0)}function e(B,E,g){if((192&E[0])!=128)return B.lastNeed=0,"\u951F\uFFFD";if(B.lastNeed>1&&E.length>1){if((192&E[1])!=128)return B.lastNeed=1,"\u951F\uFFFD";if(B.lastNeed>2&&E.length>2&&(192&E[2])!=128)return B.lastNeed=2,"\u951F\uFFFD"}}function a(B){var E=this.lastTotal-this.lastNeed,g=e(this,B,E);return g!==void 0?g:this.lastNeed<=B.length?(B.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(B.copy(this.lastChar,E,0,B.length),void(this.lastNeed-=B.length))}function s(B,E){var g=n(this,B,E);if(!this.lastNeed)return B.toString("utf8",E);this.lastTotal=g;var h=B.length-(g-this.lastNeed);return B.copy(this.lastChar,0,h),B.toString("utf8",E,h)}function o(B){var E=B&&B.length?this.write(B):"";return this.lastNeed?E+"\u951F\uFFFD":E}function f(B,E){if((B.length-E)%2==0){var g=B.toString("utf16le",E);if(g){var h=g.charCodeAt(g.length-1);if(h>=55296&&h<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=B[B.length-2],this.lastChar[1]=B[B.length-1],g.slice(0,-1)}return g}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=B[B.length-1],B.toString("utf16le",E,B.length-1)}function l(B){var E=B&&B.length?this.write(B):"";if(this.lastNeed){var g=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,g)}return E}function r(B,E){var g=(B.length-E)%3;return g===0?B.toString("base64",E):(this.lastNeed=3-g,this.lastTotal=3,g===1?this.lastChar[0]=B[B.length-1]:(this.lastChar[0]=B[B.length-2],this.lastChar[1]=B[B.length-1]),B.toString("base64",E,B.length-g))}function c(B){var E=B&&B.length?this.write(B):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}function A(B){return B.toString(this.encoding)}function p(B){return B&&B.length?this.write(B):""}var x=v("safe-buffer").Buffer,_=x.isEncoding||function(B){switch((B=""+B)&&B.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};C.StringDecoder=d,d.prototype.write=function(B){if(B.length===0)return"";var E,g;if(this.lastNeed){if((E=this.fillLast(B))===void 0)return"";g=this.lastNeed,this.lastNeed=0}else g=0;return g<B.length?E?E+this.text(B,g):this.text(B,g):E||""},d.prototype.end=o,d.prototype.text=s,d.prototype.fillLast=function(B){if(this.lastNeed<=B.length)return B.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);B.copy(this.lastChar,this.lastTotal-this.lastNeed,0,B.length),this.lastNeed-=B.length}},{"safe-buffer":193}],201:[function(v,b,C){(function(w,m){function d(o,f){this._id=o,this._clearFn=f}var i=v("process/browser.js").nextTick,n=Function.prototype.apply,e=Array.prototype.slice,a={},s=0;C.setTimeout=function(){return new d(n.call(setTimeout,window,arguments),clearTimeout)},C.setInterval=function(){return new d(n.call(setInterval,window,arguments),clearInterval)},C.clearTimeout=C.clearInterval=function(o){o.close()},d.prototype.unref=d.prototype.ref=function(){},d.prototype.close=function(){this._clearFn.call(window,this._id)},C.enroll=function(o,f){clearTimeout(o._idleTimeoutId),o._idleTimeout=f},C.unenroll=function(o){clearTimeout(o._idleTimeoutId),o._idleTimeout=-1},C._unrefActive=C.active=function(o){clearTimeout(o._idleTimeoutId);var f=o._idleTimeout;f>=0&&(o._idleTimeoutId=setTimeout(function(){o._onTimeout&&o._onTimeout()},f))},C.setImmediate=typeof w=="function"?w:function(o){var f=s++,l=!(arguments.length<2)&&e.call(arguments,1);return a[f]=!0,i(function(){a[f]&&(l?o.apply(null,l):o.call(null),C.clearImmediate(f))}),f},C.clearImmediate=typeof m=="function"?m:function(o){delete a[o]}}).call(this,v("timers").setImmediate,v("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(v,b,C){var w=v("buffer").Buffer;b.exports=function(m){if(m instanceof Uint8Array){if(m.byteOffset===0&&m.byteLength===m.buffer.byteLength)return m.buffer;if(typeof m.buffer.slice=="function")return m.buffer.slice(m.byteOffset,m.byteOffset+m.byteLength)}if(w.isBuffer(m)){for(var d=new Uint8Array(m.length),i=m.length,n=0;n<i;n++)d[n]=m[n];return d.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(v,b,C){"use strict";function w(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function m(u,S,O){if(u&&a.isObject(u)&&u instanceof w)return u;var T=new w;return T.parse(u,S,O),T}function d(u){return a.isString(u)&&(u=m(u)),u instanceof w?u.format():w.prototype.format.call(u)}function i(u,S){return m(u,!1,!0).resolve(S)}function n(u,S){return u?m(u,!1,!0).resolveObject(S):S}var e=v("punycode"),a=v("./util");C.parse=m,C.resolve=i,C.resolveObject=n,C.format=d,C.Url=w;var s=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["<",">",'"',"`"," ","\r",`
`," "],r=["{","}","|","\\","^","`"].concat(l),c=["'"].concat(r),A=["%","/","?",";","#"].concat(c),p=["/","?","#"],x=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,B={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},h=v("querystring");w.prototype.parse=function(u,S,O){if(!a.isString(u))throw new TypeError("Parameter 'url' must be a string, not "+typeof u);var T=u.indexOf("?"),D=T!==-1&&T<u.indexOf("#")?"?":"#",I=u.split(D),k=/\\/g;I[0]=I[0].replace(k,"/"),u=I.join(D);var F=u;if(F=F.trim(),!O&&u.split("#").length===1){var X=f.exec(F);if(X)return this.path=F,this.href=F,this.pathname=X[1],X[2]?(this.search=X[2],this.query=S?h.parse(this.search.substr(1)):this.search.substr(1)):S&&(this.search="",this.query={}),this}var U=s.exec(F);if(U){U=U[0];var K=U.toLowerCase();this.protocol=K,F=F.substr(U.length)}if(O||U||F.match(/^\/\/[^@\/]+@[^@\/]+/)){var V=F.substr(0,2)==="//";!V||U&&E[U]||(F=F.substr(2),this.slashes=!0)}if(!E[U]&&(V||U&&!g[U])){for(var N=-1,Q=0;Q<p.length;Q++){var J=F.indexOf(p[Q]);J!==-1&&(N===-1||J<N)&&(N=J)}var ne,ue;ue=N===-1?F.lastIndexOf("@"):F.lastIndexOf("@",N),ue!==-1&&(ne=F.slice(0,ue),F=F.slice(ue+1),this.auth=decodeURIComponent(ne)),N=-1;for(var Q=0;Q<A.length;Q++){var J=F.indexOf(A[Q]);J!==-1&&(N===-1||J<N)&&(N=J)}N===-1&&(N=F.length),this.host=F.slice(0,N),F=F.slice(N),this.parseHost(),this.hostname=this.hostname||"";var be=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!be)for(var de=this.hostname.split(/\./),Q=0,_e=de.length;Q<_e;Q++){var me=de[Q];if(me&&!me.match(x)){for(var Ee="",ge=0,Ae=me.length;ge<Ae;ge++)me.charCodeAt(ge)>127?Ee+="x":Ee+=me[ge];if(!Ee.match(x)){var ae=de.slice(0,Q),ve=de.slice(Q+1),oe=me.match(_);oe&&(ae.push(oe[1]),ve.unshift(oe[2])),ve.length&&(F="/"+ve.join(".")+F),this.hostname=ae.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),be||(this.hostname=e.toASCII(this.hostname));var ie=this.port?":"+this.port:"",Te=this.hostname||"";this.host=Te+ie,this.href+=this.host,be&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),F[0]!=="/"&&(F="/"+F))}if(!B[K])for(var Q=0,_e=c.length;Q<_e;Q++){var Re=c[Q];if(F.indexOf(Re)!==-1){var Me=encodeURIComponent(Re);Me===Re&&(Me=escape(Re)),F=F.split(Re).join(Me)}}var re=F.indexOf("#");re!==-1&&(this.hash=F.substr(re),F=F.slice(0,re));var j=F.indexOf("?");if(j!==-1?(this.search=F.substr(j),this.query=F.substr(j+1),S&&(this.query=h.parse(this.query)),F=F.slice(0,j)):S&&(this.search="",this.query={}),F&&(this.pathname=F),g[K]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ie=this.pathname||"",W=this.search||"";this.path=ie+W}return this.href=this.format(),this},w.prototype.format=function(){var u=this.auth||"";u&&(u=encodeURIComponent(u),u=u.replace(/%3A/i,":"),u+="@");var S=this.protocol||"",O=this.pathname||"",T=this.hash||"",D=!1,I="";this.host?D=u+this.host:this.hostname&&(D=u+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(D+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(I=h.stringify(this.query));var k=this.search||I&&"?"+I||"";return S&&S.substr(-1)!==":"&&(S+=":"),this.slashes||(!S||g[S])&&D!==!1?(D="//"+(D||""),O&&O.charAt(0)!=="/"&&(O="/"+O)):D||(D=""),T&&T.charAt(0)!=="#"&&(T="#"+T),k&&k.charAt(0)!=="?"&&(k="?"+k),O=O.replace(/[?#]/g,function(F){return encodeURIComponent(F)}),k=k.replace("#","%23"),S+D+O+k+T},w.prototype.resolve=function(u){return this.resolveObject(m(u,!1,!0)).format()},w.prototype.resolveObject=function(u){if(a.isString(u)){var S=new w;S.parse(u,!1,!0),u=S}for(var O=new w,T=Object.keys(this),D=0;D<T.length;D++){var I=T[D];O[I]=this[I]}if(O.hash=u.hash,u.href==="")return O.href=O.format(),O;if(u.slashes&&!u.protocol){for(var k=Object.keys(u),F=0;F<k.length;F++){var X=k[F];X!=="protocol"&&(O[X]=u[X])}return g[O.protocol]&&O.hostname&&!O.pathname&&(O.path=O.pathname="/"),O.href=O.format(),O}if(u.protocol&&u.protocol!==O.protocol){if(!g[u.protocol]){for(var U=Object.keys(u),K=0;K<U.length;K++){var V=U[K];O[V]=u[V]}return O.href=O.format(),O}if(O.protocol=u.protocol,u.host||E[u.protocol])O.pathname=u.pathname;else{for(var _e=(u.pathname||"").split("/");_e.length&&!(u.host=_e.shift()););u.host||(u.host=""),u.hostname||(u.hostname=""),_e[0]!==""&&_e.unshift(""),_e.length<2&&_e.unshift(""),O.pathname=_e.join("/")}if(O.search=u.search,O.query=u.query,O.host=u.host||"",O.auth=u.auth,O.hostname=u.hostname||u.host,O.port=u.port,O.pathname||O.search){var N=O.pathname||"",Q=O.search||"";O.path=N+Q}return O.slashes=O.slashes||u.slashes,O.href=O.format(),O}var J=O.pathname&&O.pathname.charAt(0)==="/",ne=u.host||u.pathname&&u.pathname.charAt(0)==="/",ue=ne||J||O.host&&u.pathname,be=ue,de=O.pathname&&O.pathname.split("/")||[],_e=u.pathname&&u.pathname.split("/")||[],me=O.protocol&&!g[O.protocol];if(me&&(O.hostname="",O.port=null,O.host&&(de[0]===""?de[0]=O.host:de.unshift(O.host)),O.host="",u.protocol&&(u.hostname=null,u.port=null,u.host&&(_e[0]===""?_e[0]=u.host:_e.unshift(u.host)),u.host=null),ue=ue&&(_e[0]===""||de[0]==="")),ne)O.host=u.host||u.host===""?u.host:O.host,O.hostname=u.hostname||u.hostname===""?u.hostname:O.hostname,O.search=u.search,O.query=u.query,de=_e;else if(_e.length)de||(de=[]),de.pop(),de=de.concat(_e),O.search=u.search,O.query=u.query;else if(!a.isNullOrUndefined(u.search)){if(me){O.hostname=O.host=de.shift();var Ee=!!(O.host&&O.host.indexOf("@")>0)&&O.host.split("@");Ee&&(O.auth=Ee.shift(),O.host=O.hostname=Ee.shift())}return O.search=u.search,O.query=u.query,a.isNull(O.pathname)&&a.isNull(O.search)||(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.href=O.format(),O}if(!de.length)return O.pathname=null,O.search?O.path="/"+O.search:O.path=null,O.href=O.format(),O;for(var ge=de.slice(-1)[0],Ae=(O.host||u.host||de.length>1)&&(ge==="."||ge==="..")||ge==="",ae=0,ve=de.length;ve>=0;ve--)ge=de[ve],ge==="."?de.splice(ve,1):ge===".."?(de.splice(ve,1),ae++):ae&&(de.splice(ve,1),ae--);if(!ue&&!be)for(;ae--;ae)de.unshift("..");!ue||de[0]===""||de[0]&&de[0].charAt(0)==="/"||de.unshift(""),Ae&&de.join("/").substr(-1)!=="/"&&de.push("");var oe=de[0]===""||de[0]&&de[0].charAt(0)==="/";if(me){O.hostname=O.host=oe?"":de.length?de.shift():"";var Ee=!!(O.host&&O.host.indexOf("@")>0)&&O.host.split("@");Ee&&(O.auth=Ee.shift(),O.host=O.hostname=Ee.shift())}return ue=ue||O.host&&de.length,ue&&!oe&&de.unshift(""),de.length?O.pathname=de.join("/"):(O.pathname=null,O.path=null),a.isNull(O.pathname)&&a.isNull(O.search)||(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.auth=u.auth||O.auth,O.slashes=O.slashes||u.slashes,O.href=O.format(),O},w.prototype.parseHost=function(){var u=this.host,S=o.exec(u);S&&(S=S[0],S!==":"&&(this.port=S.substr(1)),u=u.substr(0,u.length-S.length)),u&&(this.hostname=u)}},{"./util":204,punycode:174,querystring:177}],204:[function(v,b,C){"use strict";b.exports={isString:function(w){return typeof w=="string"},isObject:function(w){return typeof w=="object"&&w!==null},isNull:function(w){return w===null},isNullOrUndefined:function(w){return w==null}}},{}],205:[function(v,b,C){(function(w){function m(i,n){function e(){if(!a){if(d("throwDeprecation"))throw new Error(n);d("traceDeprecation")?console.trace(n):console.warn(n),a=!0}return i.apply(this,arguments)}if(d("noDeprecation"))return i;var a=!1;return e}function d(i){try{if(!w.localStorage)return!1}catch(e){return!1}var n=w.localStorage[i];return n!=null&&String(n).toLowerCase()==="true"}b.exports=m}).call(this,typeof se!="undefined"?se:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(v,b,C){b.exports=function(w){return w&&typeof w=="object"&&typeof w.copy=="function"&&typeof w.fill=="function"&&typeof w.readUInt8=="function"}},{}],207:[function(v,b,C){(function(w,m){function d(Q,J){var ne={seen:[],stylize:n};return arguments.length>=3&&(ne.depth=arguments[2]),arguments.length>=4&&(ne.colors=arguments[3]),A(J)?ne.showHidden=J:J&&C._extend(ne,J),g(ne.showHidden)&&(ne.showHidden=!1),g(ne.depth)&&(ne.depth=2),g(ne.colors)&&(ne.colors=!1),g(ne.customInspect)&&(ne.customInspect=!0),ne.colors&&(ne.stylize=i),a(ne,Q,ne.depth)}function i(Q,J){var ne=d.styles[J];return ne?"["+d.colors[ne][0]+"m"+Q+"["+d.colors[ne][1]+"m":Q}function n(Q,J){return Q}function e(Q){var J={};return Q.forEach(function(ne,ue){J[ne]=!0}),J}function a(Q,J,ne){if(Q.customInspect&&J&&T(J.inspect)&&J.inspect!==C.inspect&&(!J.constructor||J.constructor.prototype!==J)){var ue=J.inspect(ne,Q);return B(ue)||(ue=a(Q,ue,ne)),ue}var be=s(Q,J);if(be)return be;var de=Object.keys(J),_e=e(de);if(Q.showHidden&&(de=Object.getOwnPropertyNames(J)),O(J)&&(de.indexOf("message")>=0||de.indexOf("description")>=0))return o(J);if(de.length===0){if(T(J)){var me=J.name?": "+J.name:"";return Q.stylize("[Function"+me+"]","special")}if(h(J))return Q.stylize(RegExp.prototype.toString.call(J),"regexp");if(S(J))return Q.stylize(Date.prototype.toString.call(J),"date");if(O(J))return o(J)}var Ee="",ge=!1,Ae=["{","}"];if((c(J)&&(ge=!0,Ae=["[","]"]),T(J))&&(Ee=" [Function"+(J.name?": "+J.name:"")+"]"),h(J)&&(Ee=" "+RegExp.prototype.toString.call(J)),S(J)&&(Ee=" "+Date.prototype.toUTCString.call(J)),O(J)&&(Ee=" "+o(J)),de.length===0&&(!ge||J.length==0))return Ae[0]+Ee+Ae[1];if(ne<0)return h(J)?Q.stylize(RegExp.prototype.toString.call(J),"regexp"):Q.stylize("[Object]","special");Q.seen.push(J);var ae;return ae=ge?f(Q,J,ne,_e,de):de.map(function(ve){return l(Q,J,ne,_e,ve,ge)}),Q.seen.pop(),r(ae,Ee,Ae)}function s(Q,J){if(g(J))return Q.stylize("undefined","undefined");if(B(J)){var ne="'"+JSON.stringify(J).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(ne,"string")}return _(J)?Q.stylize(""+J,"number"):A(J)?Q.stylize(""+J,"boolean"):p(J)?Q.stylize("null","null"):void 0}function o(Q){return"["+Error.prototype.toString.call(Q)+"]"}function f(Q,J,ne,ue,be){for(var de=[],_e=0,me=J.length;_e<me;++_e)X(J,String(_e))?de.push(l(Q,J,ne,ue,String(_e),!0)):de.push("");return be.forEach(function(Ee){Ee.match(/^\d+$/)||de.push(l(Q,J,ne,ue,Ee,!0))}),de}function l(Q,J,ne,ue,be,de){var _e,me,Ee;if(Ee=Object.getOwnPropertyDescriptor(J,be)||{value:J[be]},Ee.get?me=Ee.set?Q.stylize("[Getter/Setter]","special"):Q.stylize("[Getter]","special"):Ee.set&&(me=Q.stylize("[Setter]","special")),X(ue,be)||(_e="["+be+"]"),me||(Q.seen.indexOf(Ee.value)<0?(me=p(ne)?a(Q,Ee.value,null):a(Q,Ee.value,ne-1),me.indexOf(`
`)>-1&&(me=de?me.split(`
`).map(function(ge){return" "+ge}).join(`
`).substr(2):`
`+me.split(`
`).map(function(ge){return" "+ge}).join(`
`))):me=Q.stylize("[Circular]","special")),g(_e)){if(de&&be.match(/^\d+$/))return me;_e=JSON.stringify(""+be),_e.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_e=_e.substr(1,_e.length-2),_e=Q.stylize(_e,"name")):(_e=_e.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_e=Q.stylize(_e,"string"))}return _e+": "+me}function r(Q,J,ne){var ue=0;return Q.reduce(function(be,de){return ue++,de.indexOf(`
`)>=0&&ue++,be+de.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?ne[0]+(J===""?"":J+`
`)+" "+Q.join(`,
`)+" "+ne[1]:ne[0]+J+" "+Q.join(", ")+" "+ne[1]}function c(Q){return Array.isArray(Q)}function A(Q){return typeof Q=="boolean"}function p(Q){return Q===null}function x(Q){return Q==null}function _(Q){return typeof Q=="number"}function B(Q){return typeof Q=="string"}function E(Q){return typeof Q=="symbol"}function g(Q){return Q===void 0}function h(Q){return u(Q)&&I(Q)==="[object RegExp]"}function u(Q){return typeof Q=="object"&&Q!==null}function S(Q){return u(Q)&&I(Q)==="[object Date]"}function O(Q){return u(Q)&&(I(Q)==="[object Error]"||Q instanceof Error)}function T(Q){return typeof Q=="function"}function D(Q){return Q===null||typeof Q=="boolean"||typeof Q=="number"||typeof Q=="string"||typeof Q=="symbol"||Q===void 0}function I(Q){return Object.prototype.toString.call(Q)}function k(Q){return Q<10?"0"+Q.toString(10):Q.toString(10)}function F(){var Q=new Date,J=[k(Q.getHours()),k(Q.getMinutes()),k(Q.getSeconds())].join(":");return[Q.getDate(),N[Q.getMonth()],J].join(" ")}function X(Q,J){return Object.prototype.hasOwnProperty.call(Q,J)}var U=/%[sdj%]/g;C.format=function(Q){if(!B(Q)){for(var J=[],ne=0;ne<arguments.length;ne++)J.push(d(arguments[ne]));return J.join(" ")}for(var ne=1,ue=arguments,be=ue.length,de=String(Q).replace(U,function(Ee){if(Ee==="%%")return"%";if(ne>=be)return Ee;switch(Ee){case"%s":return String(ue[ne++]);case"%d":return Number(ue[ne++]);case"%j":try{return JSON.stringify(ue[ne++])}catch(ge){return"[Circular]"}default:return Ee}}),_e=ue[ne];ne<be;_e=ue[++ne])p(_e)||!u(_e)?de+=" "+_e:de+=" "+d(_e);return de},C.deprecate=function(Q,J){function ne(){if(!ue){if(w.throwDeprecation)throw new Error(J);w.traceDeprecation?console.trace(J):console.error(J),ue=!0}return Q.apply(this,arguments)}if(g(m.process))return function(){return C.deprecate(Q,J).apply(this,arguments)};if(w.noDeprecation===!0)return Q;var ue=!1;return ne};var K,V={};C.debuglog=function(Q){if(g(K)&&(K=w.env.NODE_DEBUG||""),Q=Q.toUpperCase(),!V[Q])if(new RegExp("\\b"+Q+"\\b","i").test(K)){var J=w.pid;V[Q]=function(){var ne=C.format.apply(C,arguments);console.error("%s %d: %s",Q,J,ne)}}else V[Q]=function(){};return V[Q]},C.inspect=d,d.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},d.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},C.isArray=c,C.isBoolean=A,C.isNull=p,C.isNullOrUndefined=x,C.isNumber=_,C.isString=B,C.isSymbol=E,C.isUndefined=g,C.isRegExp=h,C.isObject=u,C.isDate=S,C.isError=O,C.isFunction=T,C.isPrimitive=D,C.isBuffer=v("./support/isBuffer");var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];C.log=function(){console.log("%s - %s",F(),C.format.apply(C,arguments))},C.inherits=v("inherits"),C._extend=function(Q,J){if(!J||!u(J))return Q;for(var ne=Object.keys(J),ue=ne.length;ue--;)Q[ne[ue]]=J[ne[ue]];return Q}}).call(this,v("_process"),typeof se!="undefined"?se:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(v,b,C){"use strict";(function(){C.stripBOM=function(w){return w[0]==="\uFEFF"?w.substring(1):w}}).call(void 0)},{}],209:[function(v,b,C){"use strict";function w(e){return e&&e.__esModule?e:{default:e}}var m=v("babel-runtime/helpers/typeof"),d=w(m),i=v("babel-runtime/core-js/object/keys"),n=w(i);(function(){var e,a,s,o,f,l={}.hasOwnProperty;e=v("xmlbuilder"),a=v("./defaults").defaults,o=function(r){return typeof r=="string"&&(r.indexOf("&")>=0||r.indexOf(">")>=0||r.indexOf("<")>=0)},f=function(r){return"<![CDATA["+s(r)+"]]>"},s=function(r){return r.replace("]]>","]]]]><![CDATA[>")},C.Builder=function(){function r(c){var A,p,x;this.options={},p=a[.2];for(A in p)l.call(p,A)&&(x=p[A],this.options[A]=x);for(A in c)l.call(c,A)&&(x=c[A],this.options[A]=x)}return r.prototype.buildObject=function(c){var A,p,x,_,B;return A=this.options.attrkey,p=this.options.charkey,(0,n.default)(c).length===1&&this.options.rootName===a[.2].rootName?(B=(0,n.default)(c)[0],c=c[B]):B=this.options.rootName,x=function(E){return function(g,h){var u,S,O,T,D,I;if((h===void 0?"undefined":(0,d.default)(h))!=="object")E.options.cdata&&o(h)?g.raw(f(h)):g.txt(h);else if(Array.isArray(h)){for(T in h)if(l.call(h,T)){S=h[T];for(D in S)O=S[D],g=x(g.ele(D),O).up()}}else for(D in h)if(l.call(h,D))if(S=h[D],D===A){if((S===void 0?"undefined":(0,d.default)(S))==="object")for(u in S)I=S[u],g=g.att(u,I)}else if(D===p)g=E.options.cdata&&o(S)?g.raw(f(S)):g.txt(S);else if(Array.isArray(S))for(T in S)l.call(S,T)&&(O=S[T],g=typeof O=="string"?E.options.cdata&&o(O)?g.ele(D).raw(f(O)).up():g.ele(D,O).up():x(g.ele(D),O).up());else(S===void 0?"undefined":(0,d.default)(S))==="object"?g=x(g.ele(D),S).up():typeof S=="string"&&E.options.cdata&&o(S)?g=g.ele(D).raw(f(S)).up():(S==null&&(S=""),g=g.ele(D,S.toString()).up());return g}}(this),_=e.create(B,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),x(_,c).end(this.options.renderOpts)},r}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(v,b,C){"use strict";(function(){C.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],211:[function(v,b,C){"use strict";function w(s){return s&&s.__esModule?s:{default:s}}var m=v("babel-runtime/core-js/object/get-own-property-names"),d=w(m),i=v("babel-runtime/core-js/object/keys"),n=w(i),e=v("babel-runtime/helpers/typeof"),a=w(e);(function(){var s,o,f,l,r,c,A,p,x=function(E,g){return function(){return E.apply(g,arguments)}},_=function(E,g){function h(){this.constructor=E}for(var u in g)B.call(g,u)&&(E[u]=g[u]);return h.prototype=g.prototype,E.prototype=new h,E.__super__=g.prototype,E},B={}.hasOwnProperty;A=v("sax"),f=v("events"),s=v("./bom"),c=v("./processors"),p=v("timers").setImmediate,o=v("./defaults").defaults,l=function(E){return(E===void 0?"undefined":(0,a.default)(E))==="object"&&E!=null&&(0,n.default)(E).length===0},r=function(E,g,h){var u,S,O;for(u=0,S=E.length;u<S;u++)O=E[u],g=O(g,h);return g},C.Parser=function(E){function g(h){this.parseString=x(this.parseString,this),this.reset=x(this.reset,this),this.assignOrPush=x(this.assignOrPush,this),this.processAsync=x(this.processAsync,this);var u,S,O;if(!(this instanceof C.Parser))return new C.Parser(h);this.options={},S=o[.2];for(u in S)B.call(S,u)&&(O=S[u],this.options[u]=O);for(u in h)B.call(h,u)&&(O=h[u],this.options[u]=O);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(c.normalize)),this.reset()}return _(g,E),g.prototype.processAsync=function(){var h,u;try{return this.remaining.length<=this.options.chunkSize?(h=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(h),this.saxParser.close()):(h=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(h),p(this.processAsync))}catch(S){if(u=S,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(u)}},g.prototype.assignOrPush=function(h,u,S){return u in h?(h[u]instanceof Array||(h[u]=[h[u]]),h[u].push(S)):this.options.explicitArray?h[u]=[S]:h[u]=S},g.prototype.reset=function(){var h,u,S,O;return this.removeAllListeners(),this.saxParser=A.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(T){return function(D){if(T.saxParser.resume(),!T.saxParser.errThrown)return T.saxParser.errThrown=!0,T.emit("error",D)}}(this),this.saxParser.onend=function(T){return function(){if(!T.saxParser.ended)return T.saxParser.ended=!0,T.emit("end",T.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,O=[],h=this.options.attrkey,u=this.options.charkey,this.saxParser.onopentag=function(T){return function(D){var I,k,F,X,U;if(F={},F[u]="",!T.options.ignoreAttrs){U=D.attributes;for(I in U)B.call(U,I)&&(h in F||T.options.mergeAttrs||(F[h]={}),k=T.options.attrValueProcessors?r(T.options.attrValueProcessors,D.attributes[I],I):D.attributes[I],X=T.options.attrNameProcessors?r(T.options.attrNameProcessors,I):I,T.options.mergeAttrs?T.assignOrPush(F,X,k):F[h][X]=k)}return F["#name"]=T.options.tagNameProcessors?r(T.options.tagNameProcessors,D.name):D.name,T.options.xmlns&&(F[T.options.xmlnskey]={uri:D.uri,local:D.local}),O.push(F)}}(this),this.saxParser.onclosetag=function(T){return function(){var D,I,k,F,X,U,K,V,N,Q;if(U=O.pop(),X=U["#name"],T.options.explicitChildren&&T.options.preserveChildrenOrder||delete U["#name"],U.cdata===!0&&(D=U.cdata,delete U.cdata),N=O[O.length-1],U[u].match(/^\s*$/)&&!D?(I=U[u],delete U[u]):(T.options.trim&&(U[u]=U[u].trim()),T.options.normalize&&(U[u]=U[u].replace(/\s{2,}/g," ").trim()),U[u]=T.options.valueProcessors?r(T.options.valueProcessors,U[u],X):U[u],(0,n.default)(U).length===1&&u in U&&!T.EXPLICIT_CHARKEY&&(U=U[u])),l(U)&&(U=T.options.emptyTag!==""?T.options.emptyTag:I),T.options.validator!=null&&(Q="/"+function(){var J,ne,ue;for(ue=[],J=0,ne=O.length;J<ne;J++)F=O[J],ue.push(F["#name"]);return ue}().concat(X).join("/"),function(){var J;try{U=T.options.validator(Q,N&&N[X],U)}catch(ne){return J=ne,T.emit("error",J)}}()),T.options.explicitChildren&&!T.options.mergeAttrs&&(U===void 0?"undefined":(0,a.default)(U))==="object")if(T.options.preserveChildrenOrder){if(N){N[T.options.childkey]=N[T.options.childkey]||[],K={};for(k in U)B.call(U,k)&&(K[k]=U[k]);N[T.options.childkey].push(K),delete U["#name"],(0,n.default)(U).length===1&&u in U&&!T.EXPLICIT_CHARKEY&&(U=U[u])}}else F={},T.options.attrkey in U&&(F[T.options.attrkey]=U[T.options.attrkey],delete U[T.options.attrkey]),!T.options.charsAsChildren&&T.options.charkey in U&&(F[T.options.charkey]=U[T.options.charkey],delete U[T.options.charkey]),(0,d.default)(U).length>0&&(F[T.options.childkey]=U),U=F;return O.length>0?T.assignOrPush(N,X,U):(T.options.explicitRoot&&(V=U,U={},U[X]=V),T.resultObject=U,T.saxParser.ended=!0,T.emit("end",T.resultObject))}}(this),S=function(T){return function(D){var I,k;if(k=O[O.length-1])return k[u]+=D,T.options.explicitChildren&&T.options.preserveChildrenOrder&&T.options.charsAsChildren&&(T.options.includeWhiteChars||D.replace(/\\n/g,"").trim()!=="")&&(k[T.options.childkey]=k[T.options.childkey]||[],I={"#name":"__text__"},I[u]=D,T.options.normalize&&(I[u]=I[u].replace(/\s{2,}/g," ").trim()),k[T.options.childkey].push(I)),k}}(this),this.saxParser.ontext=S,this.saxParser.oncdata=function(T){return function(D){var I;if(I=S(D))return I.cdata=!0}}()},g.prototype.parseString=function(h,u){var S;u!=null&&typeof u=="function"&&(this.on("end",function(O){return this.reset(),u(null,O)}),this.on("error",function(O){return this.reset(),u(O)}));try{return h=h.toString(),h.trim()===""?(this.emit("end",null),!0):(h=s.stripBOM(h),this.options.async?(this.remaining=h,p(this.processAsync),this.saxParser):this.saxParser.write(h).close())}catch(O){if(S=O,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",S),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw S}},g}(f.EventEmitter),C.parseString=function(E,g,h){var u,S,O;return h!=null?(typeof h=="function"&&(u=h),(g===void 0?"undefined":(0,a.default)(g))==="object"&&(S=g)):(typeof g=="function"&&(u=g),S={}),O=new C.Parser(S),O.parseString(E,u)}}).call(void 0)},{"./bom":208,"./defaults":210,"./processors":212,"babel-runtime/core-js/object/get-own-property-names":21,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,events:158,sax:194,timers:201}],212:[function(v,b,C){"use strict";(function(){var w;w=new RegExp(/(?!xmlns)^.*:/),C.normalize=function(m){return m.toLowerCase()},C.firstCharLowerCase=function(m){return m.charAt(0).toLowerCase()+m.slice(1)},C.stripPrefix=function(m){return m.replace(w,"")},C.parseNumbers=function(m){return isNaN(m)||(m=m%1==0?parseInt(m,10):parseFloat(m)),m},C.parseBooleans=function(m){return/^(?:true|false)$/i.test(m)&&(m=m.toLowerCase()==="true"),m}}).call(void 0)},{}],213:[function(v,b,C){"use strict";(function(){var w,m,d,i,n=function(a,s){function o(){this.constructor=a}for(var f in s)e.call(s,f)&&(a[f]=s[f]);return o.prototype=s.prototype,a.prototype=new o,a.__super__=s.prototype,a},e={}.hasOwnProperty;m=v("./defaults"),w=v("./builder"),d=v("./parser"),i=v("./processors"),C.defaults=m.defaults,C.processors=i,C.ValidationError=function(a){function s(o){this.message=o}return n(s,a),s}(Error),C.Builder=w.Builder,C.Parser=d.Parser,C.parseString=d.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(v,b,C){"use strict";function w(s){return s&&s.__esModule?s:{default:s}}var m=v("babel-runtime/core-js/object/get-prototype-of"),d=w(m),i=v("babel-runtime/helpers/typeof"),n=w(i),e=v("babel-runtime/core-js/object/assign"),a=w(e);(function(){var s,o,f,l,r,c,A=[].slice,p={}.hasOwnProperty;s=function(){var x,_,B,E,g,h;if(h=arguments[0],g=2<=arguments.length?A.call(arguments,1):[],l(a.default))a.default.apply(null,arguments);else for(x=0,B=g.length;x<B;x++)if((E=g[x])!=null)for(_ in E)p.call(E,_)&&(h[_]=E[_]);return h},l=function(x){return!!x&&Object.prototype.toString.call(x)==="[object Function]"},r=function(x){var _;return!!x&&((_=x===void 0?"undefined":(0,n.default)(x))==="function"||_==="object")},o=function(x){return l(Array.isArray)?Array.isArray(x):Object.prototype.toString.call(x)==="[object Array]"},f=function(x){var _;if(o(x))return!x.length;for(_ in x)if(p.call(x,_))return!1;return!0},c=function(x){var _,B;return r(x)&&(B=(0,d.default)(x))&&(_=B.constructor)&&typeof _=="function"&&_ instanceof _&&Function.prototype.toString.call(_)===Function.prototype.toString.call(Object)},b.exports.assign=s,b.exports.isFunction=l,b.exports.isObject=r,b.exports.isArray=o,b.exports.isEmpty=f,b.exports.isPlainObject=c}).call(void 0)},{"babel-runtime/core-js/object/assign":18,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/helpers/typeof":32}],215:[function(v,b,C){"use strict";var w=v("babel-runtime/core-js/object/create"),m=function(d){return d&&d.__esModule?d:{default:d}}(w);(function(){b.exports=function(){function d(i,n,e){if(this.options=i.options,this.stringify=i.stringify,n==null)throw new Error("Missing attribute name of element "+i.name);if(e==null)throw new Error("Missing attribute value for attribute "+n+" of element "+i.name);this.name=this.stringify.attName(n),this.value=this.stringify.attValue(e)}return d.prototype.clone=function(){return(0,m.default)(this)},d.prototype.toString=function(i){return this.options.writer.set(i).attribute(this)},d}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(v,b,C){"use strict";var w=v("babel-runtime/core-js/object/create"),m=function(d){return d&&d.__esModule?d:{default:d}}(w);(function(){var d,i=function(e,a){function s(){this.constructor=e}for(var o in a)n.call(a,o)&&(e[o]=a[o]);return s.prototype=a.prototype,e.prototype=new s,e.__super__=a.prototype,e},n={}.hasOwnProperty;d=v("./XMLNode"),b.exports=function(e){function a(s,o){if(a.__super__.constructor.call(this,s),o==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(o)}return i(a,e),a.prototype.clone=function(){return(0,m.default)(this)},a.prototype.toString=function(s){return this.options.writer.set(s).cdata(this)},a}(d)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(v,b,C){"use strict";var w=v("babel-runtime/core-js/object/create"),m=function(d){return d&&d.__esModule?d:{default:d}}(w);(function(){var d,i=function(e,a){function s(){this.constructor=e}for(var o in a)n.call(a,o)&&(e[o]=a[o]);return s.prototype=a.prototype,e.prototype=new s,e.__super__=a.prototype,e},n={}.hasOwnProperty;d=v("./XMLNode"),b.exports=function(e){function a(s,o){if(a.__super__.constructor.call(this,s),o==null)throw new Error("Missing comment text");this.text=this.stringify.comment(o)}return i(a,e),a.prototype.clone=function(){return(0,m.default)(this)},a.prototype.toString=function(s){return this.options.writer.set(s).comment(this)},a}(d)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(v,b,C){"use strict";(function(){var w,m=function(i,n){function e(){this.constructor=i}for(var a in n)d.call(n,a)&&(i[a]=n[a]);return e.prototype=n.prototype,i.prototype=new e,i.__super__=n.prototype,i},d={}.hasOwnProperty;w=v("./XMLNode"),b.exports=function(i){function n(e,a,s,o,f,l){if(n.__super__.constructor.call(this,e),a==null)throw new Error("Missing DTD element name");if(s==null)throw new Error("Missing DTD attribute name");if(!o)throw new Error("Missing DTD attribute type");if(!f)throw new Error("Missing DTD attribute default");if(f.indexOf("#")!==0&&(f="#"+f),!f.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(l&&!f.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(a),this.attributeName=this.stringify.attName(s),this.attributeType=this.stringify.dtdAttType(o),this.defaultValue=this.stringify.dtdAttDefault(l),this.defaultValueType=f}return m(n,i),n.prototype.toString=function(e){return this.options.writer.set(e).dtdAttList(this)},n}(w)}).call(void 0)},{"./XMLNode":227}],219:[function(v,b,C){"use strict";(function(){var w,m=function(i,n){function e(){this.constructor=i}for(var a in n)d.call(n,a)&&(i[a]=n[a]);return e.prototype=n.prototype,i.prototype=new e,i.__super__=n.prototype,i},d={}.hasOwnProperty;w=v("./XMLNode"),b.exports=function(i){function n(e,a,s){if(n.__super__.constructor.call(this,e),a==null)throw new Error("Missing DTD element name");s||(s="(#PCDATA)"),Array.isArray(s)&&(s="("+s.join(",")+")"),this.name=this.stringify.eleName(a),this.value=this.stringify.dtdElementValue(s)}return m(n,i),n.prototype.toString=function(e){return this.options.writer.set(e).dtdElement(this)},n}(w)}).call(void 0)},{"./XMLNode":227}],220:[function(v,b,C){"use strict";(function(){var w,m,d=function(n,e){function a(){this.constructor=n}for(var s in e)i.call(e,s)&&(n[s]=e[s]);return a.prototype=e.prototype,n.prototype=new a,n.__super__=e.prototype,n},i={}.hasOwnProperty;m=v("./Utility").isObject,w=v("./XMLNode"),b.exports=function(n){function e(a,s,o,f){if(e.__super__.constructor.call(this,a),o==null)throw new Error("Missing entity name");if(f==null)throw new Error("Missing entity value");if(this.pe=!!s,this.name=this.stringify.eleName(o),m(f)){if(!f.pubID&&!f.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(f.pubID&&!f.sysID)throw new Error("System identifier is required for a public external entity");if(f.pubID!=null&&(this.pubID=this.stringify.dtdPubID(f.pubID)),f.sysID!=null&&(this.sysID=this.stringify.dtdSysID(f.sysID)),f.nData!=null&&(this.nData=this.stringify.dtdNData(f.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(f)}return d(e,n),e.prototype.toString=function(a){return this.options.writer.set(a).dtdEntity(this)},e}(w)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(v,b,C){"use strict";(function(){var w,m=function(i,n){function e(){this.constructor=i}for(var a in n)d.call(n,a)&&(i[a]=n[a]);return e.prototype=n.prototype,i.prototype=new e,i.__super__=n.prototype,i},d={}.hasOwnProperty;w=v("./XMLNode"),b.exports=function(i){function n(e,a,s){if(n.__super__.constructor.call(this,e),a==null)throw new Error("Missing notation name");if(!s.pubID&&!s.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(a),s.pubID!=null&&(this.pubID=this.stringify.dtdPubID(s.pubID)),s.sysID!=null&&(this.sysID=this.stringify.dtdSysID(s.sysID))}return m(n,i),n.prototype.toString=function(e){return this.options.writer.set(e).dtdNotation(this)},n}(w)}).call(void 0)},{"./XMLNode":227}],222:[function(v,b,C){"use strict";(function(){var w,m,d=function(n,e){function a(){this.constructor=n}for(var s in e)i.call(e,s)&&(n[s]=e[s]);return a.prototype=e.prototype,n.prototype=new a,n.__super__=e.prototype,n},i={}.hasOwnProperty;m=v("./Utility").isObject,w=v("./XMLNode"),b.exports=function(n){function e(a,s,o,f){var l;e.__super__.constructor.call(this,a),m(s)&&(l=s,s=l.version,o=l.encoding,f=l.standalone),s||(s="1.0"),this.version=this.stringify.xmlVersion(s),o!=null&&(this.encoding=this.stringify.xmlEncoding(o)),f!=null&&(this.standalone=this.stringify.xmlStandalone(f))}return d(e,n),e.prototype.toString=function(a){return this.options.writer.set(a).declaration(this)},e}(w)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(v,b,C){"use strict";(function(){var w,m,d,i,n,e,a=function(o,f){function l(){this.constructor=o}for(var r in f)s.call(f,r)&&(o[r]=f[r]);return l.prototype=f.prototype,o.prototype=new l,o.__super__=f.prototype,o},s={}.hasOwnProperty;e=v("./Utility").isObject,n=v("./XMLNode"),w=v("./XMLDTDAttList"),d=v("./XMLDTDEntity"),m=v("./XMLDTDElement"),i=v("./XMLDTDNotation"),b.exports=function(o){function f(l,r,c){var A,p;f.__super__.constructor.call(this,l),this.documentObject=l,e(r)&&(A=r,r=A.pubID,c=A.sysID),c==null&&(p=[r,c],c=p[0],r=p[1]),r!=null&&(this.pubID=this.stringify.dtdPubID(r)),c!=null&&(this.sysID=this.stringify.dtdSysID(c))}return a(f,o),f.prototype.element=function(l,r){var c;return c=new m(this,l,r),this.children.push(c),this},f.prototype.attList=function(l,r,c,A,p){var x;return x=new w(this,l,r,c,A,p),this.children.push(x),this},f.prototype.entity=function(l,r){var c;return c=new d(this,!1,l,r),this.children.push(c),this},f.prototype.pEntity=function(l,r){var c;return c=new d(this,!0,l,r),this.children.push(c),this},f.prototype.notation=function(l,r){var c;return c=new i(this,l,r),this.children.push(c),this},f.prototype.toString=function(l){return this.options.writer.set(l).docType(this)},f.prototype.ele=function(l,r){return this.element(l,r)},f.prototype.att=function(l,r,c,A,p){return this.attList(l,r,c,A,p)},f.prototype.ent=function(l,r){return this.entity(l,r)},f.prototype.pent=function(l,r){return this.pEntity(l,r)},f.prototype.not=function(l,r){return this.notation(l,r)},f.prototype.up=function(){return this.root()||this.documentObject},f}(n)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(v,b,C){"use strict";(function(){var w,m,d,i,n=function(a,s){function o(){this.constructor=a}for(var f in s)e.call(s,f)&&(a[f]=s[f]);return o.prototype=s.prototype,a.prototype=new o,a.__super__=s.prototype,a},e={}.hasOwnProperty;i=v("./Utility").isPlainObject,w=v("./XMLNode"),d=v("./XMLStringifier"),m=v("./XMLStringWriter"),b.exports=function(a){function s(o){s.__super__.constructor.call(this,null),o||(o={}),o.writer||(o.writer=new m),this.options=o,this.stringify=new d(o),this.isDocument=!0}return n(s,a),s.prototype.end=function(o){var f;return o?i(o)&&(f=o,o=this.options.writer.set(f)):o=this.options.writer,o.document(this)},s.prototype.toString=function(o){return this.options.writer.set(o).document(this)},s}(w)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(v,b,C){"use strict";(function(){var w,m,d,i,n,e,a,s,o,f,l,r,c,A,p,x,_,B,E,g={}.hasOwnProperty;E=v("./Utility"),_=E.isObject,x=E.isFunction,B=E.isPlainObject,f=v("./XMLElement"),m=v("./XMLCData"),d=v("./XMLComment"),r=v("./XMLRaw"),p=v("./XMLText"),l=v("./XMLProcessingInstruction"),s=v("./XMLDeclaration"),o=v("./XMLDocType"),i=v("./XMLDTDAttList"),e=v("./XMLDTDEntity"),n=v("./XMLDTDElement"),a=v("./XMLDTDNotation"),w=v("./XMLAttribute"),A=v("./XMLStringifier"),c=v("./XMLStringWriter"),b.exports=function(){function h(u,S,O){var T;u||(u={}),u.writer?B(u.writer)&&(T=u.writer,u.writer=new c(T)):u.writer=new c(u),this.options=u,this.writer=u.writer,this.stringify=new A(u),this.onDataCallback=S||function(){},this.onEndCallback=O||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return h.prototype.node=function(u,S,O){var T;if(u==null)throw new Error("Missing node name");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node");return this.openCurrent(),u=u.valueOf(),S==null&&(S={}),S=S.valueOf(),_(S)||(T=[S,O],O=T[0],S=T[1]),this.currentNode=new f(this,u,S),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,O!=null&&this.text(O),this},h.prototype.element=function(u,S,O){return this.currentNode&&this.currentNode instanceof o?this.dtdElement.apply(this,arguments):this.node(u,S,O)},h.prototype.attribute=function(u,S){var O,T;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(u!=null&&(u=u.valueOf()),_(u))for(O in u)g.call(u,O)&&(T=u[O],this.attribute(O,T));else x(S)&&(S=S.apply()),this.options.skipNullAttributes&&S==null||(this.currentNode.attributes[u]=new w(this,u,S));return this},h.prototype.text=function(u){var S;return this.openCurrent(),S=new p(this,u),this.onData(this.writer.text(S,this.currentLevel+1)),this},h.prototype.cdata=function(u){var S;return this.openCurrent(),S=new m(this,u),this.onData(this.writer.cdata(S,this.currentLevel+1)),this},h.prototype.comment=function(u){var S;return this.openCurrent(),S=new d(this,u),this.onData(this.writer.comment(S,this.currentLevel+1)),this},h.prototype.raw=function(u){var S;return this.openCurrent(),S=new r(this,u),this.onData(this.writer.raw(S,this.currentLevel+1)),this},h.prototype.instruction=function(u,S){var O,T,D,I,k;if(this.openCurrent(),u!=null&&(u=u.valueOf()),S!=null&&(S=S.valueOf()),Array.isArray(u))for(O=0,I=u.length;O<I;O++)T=u[O],this.instruction(T);else if(_(u))for(T in u)g.call(u,T)&&(D=u[T],this.instruction(T,D));else x(S)&&(S=S.apply()),k=new l(this,u,S),this.onData(this.writer.processingInstruction(k,this.currentLevel+1));return this},h.prototype.declaration=function(u,S,O){var T;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return T=new s(this,u,S,O),this.onData(this.writer.declaration(T,this.currentLevel+1)),this},h.prototype.doctype=function(u,S,O){if(this.openCurrent(),u==null)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new o(this,S,O),this.currentNode.rootNodeName=u,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},h.prototype.dtdElement=function(u,S){var O;return this.openCurrent(),O=new n(this,u,S),this.onData(this.writer.dtdElement(O,this.currentLevel+1)),this},h.prototype.attList=function(u,S,O,T,D){var I;return this.openCurrent(),I=new i(this,u,S,O,T,D),this.onData(this.writer.dtdAttList(I,this.currentLevel+1)),this},h.prototype.entity=function(u,S){var O;return this.openCurrent(),O=new e(this,!1,u,S),this.onData(this.writer.dtdEntity(O,this.currentLevel+1)),this},h.prototype.pEntity=function(u,S){var O;return this.openCurrent(),O=new e(this,!0,u,S),this.onData(this.writer.dtdEntity(O,this.currentLevel+1)),this},h.prototype.notation=function(u,S){var O;return this.openCurrent(),O=new a(this,u,S),this.onData(this.writer.dtdNotation(O,this.currentLevel+1)),this},h.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},h.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},h.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},h.prototype.openNode=function(u){if(!u.isOpen)return!this.root&&this.currentLevel===0&&u instanceof f&&(this.root=u),this.onData(this.writer.openNode(u,this.currentLevel)),u.isOpen=!0},h.prototype.closeNode=function(u){if(!u.isClosed)return this.onData(this.writer.closeNode(u,this.currentLevel)),u.isClosed=!0},h.prototype.onData=function(u){return this.documentStarted=!0,this.onDataCallback(u)},h.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},h.prototype.ele=function(){return this.element.apply(this,arguments)},h.prototype.nod=function(u,S,O){return this.node(u,S,O)},h.prototype.txt=function(u){return this.text(u)},h.prototype.dat=function(u){return this.cdata(u)},h.prototype.com=function(u){return this.comment(u)},h.prototype.ins=function(u,S){return this.instruction(u,S)},h.prototype.dec=function(u,S,O){return this.declaration(u,S,O)},h.prototype.dtd=function(u,S,O){return this.doctype(u,S,O)},h.prototype.e=function(u,S,O){return this.element(u,S,O)},h.prototype.n=function(u,S,O){return this.node(u,S,O)},h.prototype.t=function(u){return this.text(u)},h.prototype.d=function(u){return this.cdata(u)},h.prototype.c=function(u){return this.comment(u)},h.prototype.r=function(u){return this.raw(u)},h.prototype.i=function(u,S){return this.instruction(u,S)},h.prototype.att=function(){return this.currentNode&&this.currentNode instanceof o?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},h.prototype.a=function(){return this.currentNode&&this.currentNode instanceof o?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},h.prototype.ent=function(u,S){return this.entity(u,S)},h.prototype.pent=function(u,S){return this.pEntity(u,S)},h.prototype.not=function(u,S){return this.notation(u,S)},h}()}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLStringWriter":231,"./XMLStringifier":232,"./XMLText":233}],226:[function(v,b,C){"use strict";var w=v("babel-runtime/core-js/object/create"),m=function(d){return d&&d.__esModule?d:{default:d}}(w);(function(){var d,i,n,e,a,s=function(f,l){function r(){this.constructor=f}for(var c in l)o.call(l,c)&&(f[c]=l[c]);return r.prototype=l.prototype,f.prototype=new r,f.__super__=l.prototype,f},o={}.hasOwnProperty;a=v("./Utility"),e=a.isObject,n=a.isFunction,i=v("./XMLNode"),d=v("./XMLAttribute"),b.exports=function(f){function l(r,c,A){if(l.__super__.constructor.call(this,r),c==null)throw new Error("Missing element name");this.name=this.stringify.eleName(c),this.attributes={},A!=null&&this.attribute(A),r.isDocument&&(this.isRoot=!0,this.documentObject=r,r.rootObject=this)}return s(l,f),l.prototype.clone=function(){var r,c,A,p;A=(0,m.default)(this),A.isRoot&&(A.documentObject=null),A.attributes={},p=this.attributes;for(c in p)o.call(p,c)&&(r=p[c],A.attributes[c]=r.clone());return A.children=[],this.children.forEach(function(x){var _;return _=x.clone(),_.parent=A,A.children.push(_)}),A},l.prototype.attribute=function(r,c){var A,p;if(r!=null&&(r=r.valueOf()),e(r))for(A in r)o.call(r,A)&&(p=r[A],this.attribute(A,p));else n(c)&&(c=c.apply()),this.options.skipNullAttributes&&c==null||(this.attributes[r]=new d(this,r,c));return this},l.prototype.removeAttribute=function(r){var c,A,p;if(r==null)throw new Error("Missing attribute name");if(r=r.valueOf(),Array.isArray(r))for(A=0,p=r.length;A<p;A++)c=r[A],delete this.attributes[c];else delete this.attributes[r];return this},l.prototype.toString=function(r){return this.options.writer.set(r).element(this)},l.prototype.att=function(r,c){return this.attribute(r,c)},l.prototype.a=function(r,c){return this.attribute(r,c)},l}(i)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(v,b,C){"use strict";(function(){var w,m,d,i,n,e,a,s,o,f,l,r,c={}.hasOwnProperty;r=v("./Utility"),l=r.isObject,f=r.isFunction,o=r.isEmpty,n=null,w=null,m=null,d=null,i=null,a=null,s=null,e=null,b.exports=function(){function A(p){this.parent=p,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],n||(n=v("./XMLElement"),w=v("./XMLCData"),m=v("./XMLComment"),d=v("./XMLDeclaration"),i=v("./XMLDocType"),a=v("./XMLRaw"),s=v("./XMLText"),e=v("./XMLProcessingInstruction"))}return A.prototype.element=function(p,x,_){var B,E,g,h,u,S,O,T,D,I;if(S=null,x==null&&(x={}),x=x.valueOf(),l(x)||(D=[x,_],_=D[0],x=D[1]),p!=null&&(p=p.valueOf()),Array.isArray(p))for(g=0,O=p.length;g<O;g++)E=p[g],S=this.element(E);else if(f(p))S=this.element(p.apply());else if(l(p)){for(u in p)if(c.call(p,u))if(I=p[u],f(I)&&(I=I.apply()),l(I)&&o(I)&&(I=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&u.indexOf(this.stringify.convertAttKey)===0)S=this.attribute(u.substr(this.stringify.convertAttKey.length),I);else if(!this.options.separateArrayItems&&Array.isArray(I))for(h=0,T=I.length;h<T;h++)E=I[h],B={},B[u]=E,S=this.element(B);else l(I)?(S=this.element(u),S.element(I)):S=this.element(u,I)}else S=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&p.indexOf(this.stringify.convertTextKey)===0?this.text(_):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&p.indexOf(this.stringify.convertCDataKey)===0?this.cdata(_):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&p.indexOf(this.stringify.convertCommentKey)===0?this.comment(_):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&p.indexOf(this.stringify.convertRawKey)===0?this.raw(_):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&p.indexOf(this.stringify.convertPIKey)===0?this.instruction(p.substr(this.stringify.convertPIKey.length),_):this.node(p,x,_);if(S==null)throw new Error("Could not create any elements with: "+p);return S},A.prototype.insertBefore=function(p,x,_){var B,E,g;if(this.isRoot)throw new Error("Cannot insert elements at root level");return E=this.parent.children.indexOf(this),g=this.parent.children.splice(E),B=this.parent.element(p,x,_),Array.prototype.push.apply(this.parent.children,g),B},A.prototype.insertAfter=function(p,x,_){var B,E,g;if(this.isRoot)throw new Error("Cannot insert elements at root level");return E=this.parent.children.indexOf(this),g=this.parent.children.splice(E+1),B=this.parent.element(p,x,_),Array.prototype.push.apply(this.parent.children,g),B},A.prototype.remove=function(){var p;if(this.isRoot)throw new Error("Cannot remove the root element");return p=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[p,p-p+1].concat([])),this.parent},A.prototype.node=function(p,x,_){var B,E;return p!=null&&(p=p.valueOf()),x||(x={}),x=x.valueOf(),l(x)||(E=[x,_],_=E[0],x=E[1]),B=new n(this,p,x),_!=null&&B.text(_),this.children.push(B),B},A.prototype.text=function(p){var x;return x=new s(this,p),this.children.push(x),this},A.prototype.cdata=function(p){var x;return x=new w(this,p),this.children.push(x),this},A.prototype.comment=function(p){var x;return x=new m(this,p),this.children.push(x),this},A.prototype.commentBefore=function(p){var x,_;return x=this.parent.children.indexOf(this),_=this.parent.children.splice(x),this.parent.comment(p),Array.prototype.push.apply(this.parent.children,_),this},A.prototype.commentAfter=function(p){var x,_;return x=this.parent.children.indexOf(this),_=this.parent.children.splice(x+1),this.parent.comment(p),Array.prototype.push.apply(this.parent.children,_),this},A.prototype.raw=function(p){var x;return x=new a(this,p),this.children.push(x),this},A.prototype.instruction=function(p,x){var _,B,E,g,h;if(p!=null&&(p=p.valueOf()),x!=null&&(x=x.valueOf()),Array.isArray(p))for(g=0,h=p.length;g<h;g++)_=p[g],this.instruction(_);else if(l(p))for(_ in p)c.call(p,_)&&(B=p[_],this.instruction(_,B));else f(x)&&(x=x.apply()),E=new e(this,p,x),this.children.push(E);return this},A.prototype.instructionBefore=function(p,x){var _,B;return _=this.parent.children.indexOf(this),B=this.parent.children.splice(_),this.parent.instruction(p,x),Array.prototype.push.apply(this.parent.children,B),this},A.prototype.instructionAfter=function(p,x){var _,B;return _=this.parent.children.indexOf(this),B=this.parent.children.splice(_+1),this.parent.instruction(p,x),Array.prototype.push.apply(this.parent.children,B),this},A.prototype.declaration=function(p,x,_){var B,E;return B=this.document(),E=new d(B,p,x,_),B.children[0]instanceof d?B.children[0]=E:B.children.unshift(E),B.root()||B},A.prototype.doctype=function(p,x){var _,B,E,g,h,u,S,O,T,D;for(B=this.document(),E=new i(B,p,x),T=B.children,g=h=0,S=T.length;h<S;g=++h)if((_=T[g])instanceof i)return B.children[g]=E,E;for(D=B.children,g=u=0,O=D.length;u<O;g=++u)if(_=D[g],_.isRoot)return B.children.splice(g,0,E),E;return B.children.push(E),E},A.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},A.prototype.root=function(){var p;for(p=this;p;){if(p.isDocument)return p.rootObject;if(p.isRoot)return p;p=p.parent}},A.prototype.document=function(){var p;for(p=this;p;){if(p.isDocument)return p;p=p.parent}},A.prototype.end=function(p){return this.document().end(p)},A.prototype.prev=function(){var p;if((p=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[p-1]},A.prototype.next=function(){var p;if((p=this.parent.children.indexOf(this))===-1||p===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[p+1]},A.prototype.importDocument=function(p){var x;return x=p.root().clone(),x.parent=this,x.isRoot=!1,this.children.push(x),this},A.prototype.ele=function(p,x,_){return this.element(p,x,_)},A.prototype.nod=function(p,x,_){return this.node(p,x,_)},A.prototype.txt=function(p){return this.text(p)},A.prototype.dat=function(p){return this.cdata(p)},A.prototype.com=function(p){return this.comment(p)},A.prototype.ins=function(p,x){return this.instruction(p,x)},A.prototype.doc=function(){return this.document()},A.prototype.dec=function(p,x,_){return this.declaration(p,x,_)},A.prototype.dtd=function(p,x){return this.doctype(p,x)},A.prototype.e=function(p,x,_){return this.element(p,x,_)},A.prototype.n=function(p,x,_){return this.node(p,x,_)},A.prototype.t=function(p){return this.text(p)},A.prototype.d=function(p){return this.cdata(p)},A.prototype.c=function(p){return this.comment(p)},A.prototype.r=function(p){return this.raw(p)},A.prototype.i=function(p,x){return this.instruction(p,x)},A.prototype.u=function(){return this.up()},A.prototype.importXMLBuilder=function(p){return this.importDocument(p)},A}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(v,b,C){"use strict";var w=v("babel-runtime/core-js/object/create"),m=function(d){return d&&d.__esModule?d:{default:d}}(w);(function(){var d,i=function(e,a){function s(){this.constructor=e}for(var o in a)n.call(a,o)&&(e[o]=a[o]);return s.prototype=a.prototype,e.prototype=new s,e.__super__=a.prototype,e},n={}.hasOwnProperty;d=v("./XMLNode"),b.exports=function(e){function a(s,o,f){if(a.__super__.constructor.call(this,s),o==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(o),f&&(this.value=this.stringify.insValue(f))}return i(a,e),a.prototype.clone=function(){return(0,m.default)(this)},a.prototype.toString=function(s){return this.options.writer.set(s).processingInstruction(this)},a}(d)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(v,b,C){"use strict";var w=v("babel-runtime/core-js/object/create"),m=function(d){return d&&d.__esModule?d:{default:d}}(w);(function(){var d,i=function(e,a){function s(){this.constructor=e}for(var o in a)n.call(a,o)&&(e[o]=a[o]);return s.prototype=a.prototype,e.prototype=new s,e.__super__=a.prototype,e},n={}.hasOwnProperty;d=v("./XMLNode"),b.exports=function(e){function a(s,o){if(a.__super__.constructor.call(this,s),o==null)throw new Error("Missing raw text");this.value=this.stringify.raw(o)}return i(a,e),a.prototype.clone=function(){return(0,m.default)(this)},a.prototype.toString=function(s){return this.options.writer.set(s).raw(this)},a}(d)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(v,b,C){"use strict";(function(){var w,m,d,i,n,e,a,s,o,f,l,r,c,A=function(x,_){function B(){this.constructor=x}for(var E in _)p.call(_,E)&&(x[E]=_[E]);return B.prototype=_.prototype,x.prototype=new B,x.__super__=_.prototype,x},p={}.hasOwnProperty;a=v("./XMLDeclaration"),s=v("./XMLDocType"),w=v("./XMLCData"),m=v("./XMLComment"),o=v("./XMLElement"),l=v("./XMLRaw"),r=v("./XMLText"),f=v("./XMLProcessingInstruction"),d=v("./XMLDTDAttList"),i=v("./XMLDTDElement"),n=v("./XMLDTDEntity"),e=v("./XMLDTDNotation"),c=v("./XMLWriterBase"),b.exports=function(x){function _(B,E){_.__super__.constructor.call(this,E),this.stream=B}return A(_,x),_.prototype.document=function(B){var E,g,h,u,S,O,T,D;for(O=B.children,g=0,u=O.length;g<u;g++)E=O[g],E.isLastRootNode=!1;for(B.children[B.children.length-1].isLastRootNode=!0,T=B.children,D=[],h=0,S=T.length;h<S;h++)switch(E=T[h],!1){case!(E instanceof a):D.push(this.declaration(E));break;case!(E instanceof s):D.push(this.docType(E));break;case!(E instanceof m):D.push(this.comment(E));break;case!(E instanceof f):D.push(this.processingInstruction(E));break;default:D.push(this.element(E))}return D},_.prototype.attribute=function(B){return this.stream.write(" "+B.name+'="'+B.value+'"')},_.prototype.cdata=function(B,E){return this.stream.write(this.space(E)+"<![CDATA["+B.text+"]]>"+this.endline(B))},_.prototype.comment=function(B,E){return this.stream.write(this.space(E)+"<!-- "+B.text+" -->"+this.endline(B))},_.prototype.declaration=function(B,E){return this.stream.write(this.space(E)),this.stream.write('<?xml version="'+B.version+'"'),B.encoding!=null&&this.stream.write(' encoding="'+B.encoding+'"'),B.standalone!=null&&this.stream.write(' standalone="'+B.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(B))},_.prototype.docType=function(B,E){var g,h,u,S;if(E||(E=0),this.stream.write(this.space(E)),this.stream.write("<!DOCTYPE "+B.root().name),B.pubID&&B.sysID?this.stream.write(' PUBLIC "'+B.pubID+'" "'+B.sysID+'"'):B.sysID&&this.stream.write(' SYSTEM "'+B.sysID+'"'),B.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(B)),S=B.children,h=0,u=S.length;h<u;h++)switch(g=S[h],!1){case!(g instanceof d):this.dtdAttList(g,E+1);break;case!(g instanceof i):this.dtdElement(g,E+1);break;case!(g instanceof n):this.dtdEntity(g,E+1);break;case!(g instanceof e):this.dtdNotation(g,E+1);break;case!(g instanceof w):this.cdata(g,E+1);break;case!(g instanceof m):this.comment(g,E+1);break;case!(g instanceof f):this.processingInstruction(g,E+1);break;default:throw new Error("Unknown DTD node type: "+g.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(B))},_.prototype.element=function(B,E){var g,h,u,S,O,T,D,I;E||(E=0),I=this.space(E),this.stream.write(I+"<"+B.name),T=B.attributes;for(O in T)p.call(T,O)&&(g=T[O],this.attribute(g));if(B.children.length===0||B.children.every(function(k){return k.value===""}))this.allowEmpty?this.stream.write("></"+B.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&B.children.length===1&&B.children[0].value!=null)this.stream.write(">"),this.stream.write(B.children[0].value),this.stream.write("</"+B.name+">");else{for(this.stream.write(">"+this.newline),D=B.children,u=0,S=D.length;u<S;u++)switch(h=D[u],!1){case!(h instanceof w):this.cdata(h,E+1);break;case!(h instanceof m):this.comment(h,E+1);break;case!(h instanceof o):this.element(h,E+1);break;case!(h instanceof l):this.raw(h,E+1);break;case!(h instanceof r):this.text(h,E+1);break;case!(h instanceof f):this.processingInstruction(h,E+1);break;default:throw new Error("Unknown XML node type: "+h.constructor.name)}this.stream.write(I+"</"+B.name+">")}return this.stream.write(this.endline(B))},_.prototype.processingInstruction=function(B,E){return this.stream.write(this.space(E)+"<?"+B.target),B.value&&this.stream.write(" "+B.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(B))},_.prototype.raw=function(B,E){return this.stream.write(this.space(E)+B.value+this.endline(B))},_.prototype.text=function(B,E){return this.stream.write(this.space(E)+B.value+this.endline(B))},_.prototype.dtdAttList=function(B,E){return this.stream.write(this.space(E)+"<!ATTLIST "+B.elementName+" "+B.attributeName+" "+B.attributeType),B.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+B.defaultValueType),B.defaultValue&&this.stream.write(' "'+B.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(B))},_.prototype.dtdElement=function(B,E){return this.stream.write(this.space(E)+"<!ELEMENT "+B.name+" "+B.value),this.stream.write(this.spacebeforeslash+">"+this.endline(B))},_.prototype.dtdEntity=function(B,E){return this.stream.write(this.space(E)+"<!ENTITY"),B.pe&&this.stream.write(" %"),this.stream.write(" "+B.name),B.value?this.stream.write(' "'+B.value+'"'):(B.pubID&&B.sysID?this.stream.write(' PUBLIC "'+B.pubID+'" "'+B.sysID+'"'):B.sysID&&this.stream.write(' SYSTEM "'+B.sysID+'"'),B.nData&&this.stream.write(" NDATA "+B.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(B))},_.prototype.dtdNotation=function(B,E){return this.stream.write(this.space(E)+"<!NOTATION "+B.name),B.pubID&&B.sysID?this.stream.write(' PUBLIC "'+B.pubID+'" "'+B.sysID+'"'):B.pubID?this.stream.write(' PUBLIC "'+B.pubID+'"'):B.sysID&&this.stream.write(' SYSTEM "'+B.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(B))},_.prototype.endline=function(B){return B.isLastRootNode?"":this.newline},_}(c)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],231:[function(v,b,C){"use strict";(function(){var w,m,d,i,n,e,a,s,o,f,l,r,c,A=function(x,_){function B(){this.constructor=x}for(var E in _)p.call(_,E)&&(x[E]=_[E]);return B.prototype=_.prototype,x.prototype=new B,x.__super__=_.prototype,x},p={}.hasOwnProperty;a=v("./XMLDeclaration"),s=v("./XMLDocType"),w=v("./XMLCData"),m=v("./XMLComment"),o=v("./XMLElement"),l=v("./XMLRaw"),r=v("./XMLText"),f=v("./XMLProcessingInstruction"),d=v("./XMLDTDAttList"),i=v("./XMLDTDElement"),n=v("./XMLDTDEntity"),e=v("./XMLDTDNotation"),c=v("./XMLWriterBase"),b.exports=function(x){function _(B){_.__super__.constructor.call(this,B)}return A(_,x),_.prototype.document=function(B){var E,g,h,u,S;for(this.textispresent=!1,u="",S=B.children,g=0,h=S.length;g<h;g++)E=S[g],u+=function(){switch(!1){case!(E instanceof a):return this.declaration(E);case!(E instanceof s):return this.docType(E);case!(E instanceof m):return this.comment(E);case!(E instanceof f):return this.processingInstruction(E);default:return this.element(E,0)}}.call(this);return this.pretty&&u.slice(-this.newline.length)===this.newline&&(u=u.slice(0,-this.newline.length)),u},_.prototype.attribute=function(B){return" "+B.name+'="'+B.value+'"'},_.prototype.cdata=function(B,E){return this.space(E)+"<![CDATA["+B.text+"]]>"+this.newline},_.prototype.comment=function(B,E){return this.space(E)+"<!-- "+B.text+" -->"+this.newline},_.prototype.declaration=function(B,E){var g;return g=this.space(E),g+='<?xml version="'+B.version+'"',B.encoding!=null&&(g+=' encoding="'+B.encoding+'"'),B.standalone!=null&&(g+=' standalone="'+B.standalone+'"'),g+=this.spacebeforeslash+"?>",g+=this.newline},_.prototype.docType=function(B,E){var g,h,u,S,O;if(E||(E=0),S=this.space(E),S+="<!DOCTYPE "+B.root().name,B.pubID&&B.sysID?S+=' PUBLIC "'+B.pubID+'" "'+B.sysID+'"':B.sysID&&(S+=' SYSTEM "'+B.sysID+'"'),B.children.length>0){for(S+=" [",S+=this.newline,O=B.children,h=0,u=O.length;h<u;h++)g=O[h],S+=function(){switch(!1){case!(g instanceof d):return this.dtdAttList(g,E+1);case!(g instanceof i):return this.dtdElement(g,E+1);case!(g instanceof n):return this.dtdEntity(g,E+1);case!(g instanceof e):return this.dtdNotation(g,E+1);case!(g instanceof w):return this.cdata(g,E+1);case!(g instanceof m):return this.comment(g,E+1);case!(g instanceof f):return this.processingInstruction(g,E+1);default:throw new Error("Unknown DTD node type: "+g.constructor.name)}}.call(this);S+="]"}return S+=this.spacebeforeslash+">",S+=this.newline},_.prototype.element=function(B,E){var g,h,u,S,O,T,D,I,k,F,X,U,K;E||(E=0),K=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),U=this.space(E),I="",I+=U+"<"+B.name,k=B.attributes;for(D in k)p.call(k,D)&&(g=k[D],I+=this.attribute(g));if(B.children.length===0||B.children.every(function(V){return V.value===""}))this.allowEmpty?I+="></"+B.name+">"+this.newline:I+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&B.children.length===1&&B.children[0].value!=null)I+=">",I+=B.children[0].value,I+="</"+B.name+">"+this.newline;else{if(this.dontprettytextnodes){for(F=B.children,u=0,O=F.length;u<O;u++)if(h=F[u],h.value!=null){this.textispresent++,K=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,U=this.space(E)),I+=">"+this.newline,X=B.children,S=0,T=X.length;S<T;S++)h=X[S],I+=function(){switch(!1){case!(h instanceof w):return this.cdata(h,E+1);case!(h instanceof m):return this.comment(h,E+1);case!(h instanceof o):return this.element(h,E+1);case!(h instanceof l):return this.raw(h,E+1);case!(h instanceof r):return this.text(h,E+1);case!(h instanceof f):return this.processingInstruction(h,E+1);default:throw new Error("Unknown XML node type: "+h.constructor.name)}}.call(this);K&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),I+=U+"</"+B.name+">"+this.newline}return I},_.prototype.processingInstruction=function(B,E){var g;return g=this.space(E)+"<?"+B.target,B.value&&(g+=" "+B.value),g+=this.spacebeforeslash+"?>"+this.newline},_.prototype.raw=function(B,E){return this.space(E)+B.value+this.newline},_.prototype.text=function(B,E){return this.space(E)+B.value+this.newline},_.prototype.dtdAttList=function(B,E){var g;return g=this.space(E)+"<!ATTLIST "+B.elementName+" "+B.attributeName+" "+B.attributeType,B.defaultValueType!=="#DEFAULT"&&(g+=" "+B.defaultValueType),B.defaultValue&&(g+=' "'+B.defaultValue+'"'),g+=this.spacebeforeslash+">"+this.newline},_.prototype.dtdElement=function(B,E){return this.space(E)+"<!ELEMENT "+B.name+" "+B.value+this.spacebeforeslash+">"+this.newline},_.prototype.dtdEntity=function(B,E){var g;return g=this.space(E)+"<!ENTITY",B.pe&&(g+=" %"),g+=" "+B.name,B.value?g+=' "'+B.value+'"':(B.pubID&&B.sysID?g+=' PUBLIC "'+B.pubID+'" "'+B.sysID+'"':B.sysID&&(g+=' SYSTEM "'+B.sysID+'"'),B.nData&&(g+=" NDATA "+B.nData)),g+=this.spacebeforeslash+">"+this.newline},_.prototype.dtdNotation=function(B,E){var g;return g=this.space(E)+"<!NOTATION "+B.name,B.pubID&&B.sysID?g+=' PUBLIC "'+B.pubID+'" "'+B.sysID+'"':B.pubID?g+=' PUBLIC "'+B.pubID+'"':B.sysID&&(g+=' SYSTEM "'+B.sysID+'"'),g+=this.spacebeforeslash+">"+this.newline},_.prototype.openNode=function(B,E){var g,h,u,S;if(E||(E=0),B instanceof o){u=this.space(E)+"<"+B.name,S=B.attributes;for(h in S)p.call(S,h)&&(g=S[h],u+=this.attribute(g));return u+=(B.children?">":"/>")+this.newline}return u=this.space(E)+"<!DOCTYPE "+B.rootNodeName,B.pubID&&B.sysID?u+=' PUBLIC "'+B.pubID+'" "'+B.sysID+'"':B.sysID&&(u+=' SYSTEM "'+B.sysID+'"'),u+=(B.children?" [":">")+this.newline},_.prototype.closeNode=function(B,E){switch(E||(E=0),!1){case!(B instanceof o):return this.space(E)+"</"+B.name+">"+this.newline;case!(B instanceof s):return this.space(E)+"]>"+this.newline}},_}(c)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],232:[function(v,b,C){"use strict";(function(){var w=function(d,i){return function(){return d.apply(i,arguments)}},m={}.hasOwnProperty;b.exports=function(){function d(i){this.assertLegalChar=w(this.assertLegalChar,this);var n,e,a;i||(i={}),this.noDoubleEncoding=i.noDoubleEncoding,e=i.stringify||{};for(n in e)m.call(e,n)&&(a=e[n],this[n]=a)}return d.prototype.eleName=function(i){return i=""+i||"",this.assertLegalChar(i)},d.prototype.eleText=function(i){return i=""+i||"",this.assertLegalChar(this.elEscape(i))},d.prototype.cdata=function(i){return i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i)},d.prototype.comment=function(i){if(i=""+i||"",i.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+i);return this.assertLegalChar(i)},d.prototype.raw=function(i){return""+i||""},d.prototype.attName=function(i){return i=""+i||""},d.prototype.attValue=function(i){return i=""+i||"",this.attEscape(i)},d.prototype.insTarget=function(i){return""+i||""},d.prototype.insValue=function(i){if(i=""+i||"",i.match(/\?>/))throw new Error("Invalid processing instruction value: "+i);return i},d.prototype.xmlVersion=function(i){if(i=""+i||"",!i.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+i);return i},d.prototype.xmlEncoding=function(i){if(i=""+i||"",!i.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+i);return i},d.prototype.xmlStandalone=function(i){return i?"yes":"no"},d.prototype.dtdPubID=function(i){return""+i||""},d.prototype.dtdSysID=function(i){return""+i||""},d.prototype.dtdElementValue=function(i){return""+i||""},d.prototype.dtdAttType=function(i){return""+i||""},d.prototype.dtdAttDefault=function(i){return i!=null?""+i||"":i},d.prototype.dtdEntityValue=function(i){return""+i||""},d.prototype.dtdNData=function(i){return""+i||""},d.prototype.convertAttKey="@",d.prototype.convertPIKey="?",d.prototype.convertTextKey="#text",d.prototype.convertCDataKey="#cdata",d.prototype.convertCommentKey="#comment",d.prototype.convertRawKey="#raw",d.prototype.assertLegalChar=function(i){var n;if(n=i.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+i+" at index "+n.index);return i},d.prototype.elEscape=function(i){var n;return n=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(n,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},d.prototype.attEscape=function(i){var n;return n=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(n,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},d}()}).call(void 0)},{}],233:[function(v,b,C){"use strict";var w=v("babel-runtime/core-js/object/create"),m=function(d){return d&&d.__esModule?d:{default:d}}(w);(function(){var d,i=function(e,a){function s(){this.constructor=e}for(var o in a)n.call(a,o)&&(e[o]=a[o]);return s.prototype=a.prototype,e.prototype=new s,e.__super__=a.prototype,e},n={}.hasOwnProperty;d=v("./XMLNode"),b.exports=function(e){function a(s,o){if(a.__super__.constructor.call(this,s),o==null)throw new Error("Missing element text");this.value=this.stringify.eleText(o)}return i(a,e),a.prototype.clone=function(){return(0,m.default)(this)},a.prototype.toString=function(s){return this.options.writer.set(s).text(this)},a}(d)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(v,b,C){"use strict";(function(){var w={}.hasOwnProperty;b.exports=function(){function m(d){var i,n,e,a,s,o,f,l,r;d||(d={}),this.pretty=d.pretty||!1,this.allowEmpty=(n=d.allowEmpty)!=null&&n,this.pretty?(this.indent=(e=d.indent)!=null?e:" ",this.newline=(a=d.newline)!=null?a:`
`,this.offset=(s=d.offset)!=null?s:0,this.dontprettytextnodes=(o=d.dontprettytextnodes)!=null?o:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(f=d.spacebeforeslash)!=null?f:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,l=d.writer||{};for(i in l)w.call(l,i)&&(r=l[i],this[i]=r)}return m.prototype.set=function(d){var i,n,e;d||(d={}),"pretty"in d&&(this.pretty=d.pretty),"allowEmpty"in d&&(this.allowEmpty=d.allowEmpty),this.pretty?(this.indent="indent"in d?d.indent:" ",this.newline="newline"in d?d.newline:`
`,this.offset="offset"in d?d.offset:0,this.dontprettytextnodes="dontprettytextnodes"in d?d.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in d?d.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,n=d.writer||{};for(i in n)w.call(n,i)&&(e=n[i],this[i]=e);return this},m.prototype.space=function(d){var i;return this.pretty?(i=(d||0)+this.offset+1,i>0?new Array(i).join(this.indent):""):""},m}()}).call(void 0)},{}],235:[function(v,b,C){"use strict";(function(){var w,m,d,i,n,e,a;a=v("./Utility"),n=a.assign,e=a.isFunction,w=v("./XMLDocument"),m=v("./XMLDocumentCB"),i=v("./XMLStringWriter"),d=v("./XMLStreamWriter"),b.exports.create=function(s,o,f,l){var r,c;if(s==null)throw new Error("Root element needs a name");return l=n({},o,f,l),r=new w(l),c=r.element(s),l.headless||(r.declaration(l),l.pubID==null&&l.sysID==null||r.doctype(l)),c},b.exports.begin=function(s,o,f){var l;return e(s)&&(l=[s,o],o=l[0],f=l[1],s={}),o?new m(s,o,f):new w(s)},b.exports.stringWriter=function(s){return new i(s)},b.exports.streamWriter=function(s,o){return new d(s,o)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(v,b,C){function w(){for(var d={},i=0;i<arguments.length;i++){var n=arguments[i];for(var e in n)m.call(n,e)&&(d[e]=n[e])}return d}b.exports=w;var m=Object.prototype.hasOwnProperty},{}],237:[function(v,b,C){"use strict";function w(l,r,c){i.isBuffer(r)||(r=new i(r)),i.isBuffer(c)||(c=new i(c)),r.length>o?r=l(r):r.length<o&&(r=i.concat([r,f],o));for(var A=new i(o),p=new i(o),x=0;x<o;x++)A[x]=54^r[x],p[x]=92^r[x];var _=l(i.concat([A,c]));return l(i.concat([p,_]))}function m(l,r){l=l||"sha1";var c=s[l],A=[],p=0;return c||d("algorithm:",l,"is not yet supported"),{update:function(x){return i.isBuffer(x)||(x=new i(x)),A.push(x),p+=x.length,this},digest:function(x){var _=i.concat(A),B=r?w(c,r,_):c(_);return A=null,x?B.toString(x):B}}}function d(){var l=[].slice.call(arguments).join(" ");throw new Error([l,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}var i=v("buffer").Buffer,n=v("./sha"),e=v("./sha256"),a=v("./md5"),s={sha1:n,sha256:e,md5:a},o=64,f=new i(o);f.fill(0),C.createHash=function(l){return m(l)},C.createHmac=function(l,r){return m(l,r)},function(l,r){for(var c in l)r(l[c],c)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(l){C[l]=function(){d("sorry,",l,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(v,b,C){"use strict";function w(s,o){if(s.length%n!=0){var f=s.length+(n-s.length%n);s=i.concat([s,e],f)}for(var l=[],r=o?s.readInt32BE:s.readInt32LE,c=0;c<s.length;c+=n)l.push(r.call(s,c));return l}function m(s,o,f){for(var l=new i(o),r=f?l.writeInt32BE:l.writeInt32LE,c=0;c<s.length;c++)r.call(l,s[c],4*c,!0);return l}function d(s,o,f,l){return i.isBuffer(s)||(s=new i(s)),m(o(w(s,l),s.length*a),f,l)}var i=v("buffer").Buffer,n=4,e=new i(n);e.fill(0);var a=8;b.exports={hash:d}},{buffer:38}],239:[function(v,b,C){"use strict";function w(f,l){f[l>>5]|=128<<l%32,f[14+(l+64>>>9<<4)]=l;for(var r=1732584193,c=-271733879,A=-1732584194,p=271733878,x=0;x<f.length;x+=16){var _=r,B=c,E=A,g=p;r=d(r,c,A,p,f[x+0],7,-680876936),p=d(p,r,c,A,f[x+1],12,-389564586),A=d(A,p,r,c,f[x+2],17,606105819),c=d(c,A,p,r,f[x+3],22,-1044525330),r=d(r,c,A,p,f[x+4],7,-176418897),p=d(p,r,c,A,f[x+5],12,1200080426),A=d(A,p,r,c,f[x+6],17,-1473231341),c=d(c,A,p,r,f[x+7],22,-45705983),r=d(r,c,A,p,f[x+8],7,1770035416),p=d(p,r,c,A,f[x+9],12,-1958414417),A=d(A,p,r,c,f[x+10],17,-42063),c=d(c,A,p,r,f[x+11],22,-1990404162),r=d(r,c,A,p,f[x+12],7,1804603682),p=d(p,r,c,A,f[x+13],12,-40341101),A=d(A,p,r,c,f[x+14],17,-1502002290),c=d(c,A,p,r,f[x+15],22,1236535329),r=i(r,c,A,p,f[x+1],5,-165796510),p=i(p,r,c,A,f[x+6],9,-1069501632),A=i(A,p,r,c,f[x+11],14,643717713),c=i(c,A,p,r,f[x+0],20,-373897302),r=i(r,c,A,p,f[x+5],5,-701558691),p=i(p,r,c,A,f[x+10],9,38016083),A=i(A,p,r,c,f[x+15],14,-660478335),c=i(c,A,p,r,f[x+4],20,-405537848),r=i(r,c,A,p,f[x+9],5,568446438),p=i(p,r,c,A,f[x+14],9,-1019803690),A=i(A,p,r,c,f[x+3],14,-187363961),c=i(c,A,p,r,f[x+8],20,1163531501),r=i(r,c,A,p,f[x+13],5,-1444681467),p=i(p,r,c,A,f[x+2],9,-51403784),A=i(A,p,r,c,f[x+7],14,1735328473),c=i(c,A,p,r,f[x+12],20,-1926607734),r=n(r,c,A,p,f[x+5],4,-378558),p=n(p,r,c,A,f[x+8],11,-2022574463),A=n(A,p,r,c,f[x+11],16,1839030562),c=n(c,A,p,r,f[x+14],23,-35309556),r=n(r,c,A,p,f[x+1],4,-1530992060),p=n(p,r,c,A,f[x+4],11,1272893353),A=n(A,p,r,c,f[x+7],16,-155497632),c=n(c,A,p,r,f[x+10],23,-1094730640),r=n(r,c,A,p,f[x+13],4,681279174),p=n(p,r,c,A,f[x+0],11,-358537222),A=n(A,p,r,c,f[x+3],16,-722521979),c=n(c,A,p,r,f[x+6],23,76029189),r=n(r,c,A,p,f[x+9],4,-640364487),p=n(p,r,c,A,f[x+12],11,-421815835),A=n(A,p,r,c,f[x+15],16,530742520),c=n(c,A,p,r,f[x+2],23,-995338651),r=e(r,c,A,p,f[x+0],6,-198630844),p=e(p,r,c,A,f[x+7],10,1126891415),A=e(A,p,r,c,f[x+14],15,-1416354905),c=e(c,A,p,r,f[x+5],21,-57434055),r=e(r,c,A,p,f[x+12],6,1700485571),p=e(p,r,c,A,f[x+3],10,-1894986606),A=e(A,p,r,c,f[x+10],15,-1051523),c=e(c,A,p,r,f[x+1],21,-2054922799),r=e(r,c,A,p,f[x+8],6,1873313359),p=e(p,r,c,A,f[x+15],10,-30611744),A=e(A,p,r,c,f[x+6],15,-1560198380),c=e(c,A,p,r,f[x+13],21,1309151649),r=e(r,c,A,p,f[x+4],6,-145523070),p=e(p,r,c,A,f[x+11],10,-1120210379),A=e(A,p,r,c,f[x+2],15,718787259),c=e(c,A,p,r,f[x+9],21,-343485551),r=a(r,_),c=a(c,B),A=a(A,E),p=a(p,g)}return Array(r,c,A,p)}function m(f,l,r,c,A,p){return a(s(a(a(l,f),a(c,p)),A),r)}function d(f,l,r,c,A,p,x){return m(l&r|~l&c,f,l,A,p,x)}function i(f,l,r,c,A,p,x){return m(l&c|r&~c,f,l,A,p,x)}function n(f,l,r,c,A,p,x){return m(l^r^c,f,l,A,p,x)}function e(f,l,r,c,A,p,x){return m(r^(l|~c),f,l,A,p,x)}function a(f,l){var r=(65535&f)+(65535&l);return(f>>16)+(l>>16)+(r>>16)<<16|65535&r}function s(f,l){return f<<l|f>>>32-l}var o=v("./helpers");b.exports=function(f){return o.hash(f,w,16)}},{"./helpers":238}],240:[function(v,b,C){"use strict";function w(a,s){a[s>>5]|=128<<24-s%32,a[15+(s+64>>9<<4)]=s;for(var o=Array(80),f=1732584193,l=-271733879,r=-1732584194,c=271733878,A=-1009589776,p=0;p<a.length;p+=16){for(var x=f,_=l,B=r,E=c,g=A,h=0;h<80;h++){o[h]=h<16?a[p+h]:n(o[h-3]^o[h-8]^o[h-14]^o[h-16],1);var u=i(i(n(f,5),m(h,l,r,c)),i(i(A,o[h]),d(h)));A=c,c=r,r=n(l,30),l=f,f=u}f=i(f,x),l=i(l,_),r=i(r,B),c=i(c,E),A=i(A,g)}return Array(f,l,r,c,A)}function m(a,s,o,f){return a<20?s&o|~s&f:a<40?s^o^f:a<60?s&o|s&f|o&f:s^o^f}function d(a){return a<20?1518500249:a<40?1859775393:a<60?-1894007588:-899497514}function i(a,s){var o=(65535&a)+(65535&s);return(a>>16)+(s>>16)+(o>>16)<<16|65535&o}function n(a,s){return a<<s|a>>>32-s}var e=v("./helpers");b.exports=function(a){return e.hash(a,w,20,!0)}},{"./helpers":238}],241:[function(v,b,C){"use strict";var w=v("./helpers"),m=function(r,c){var A=(65535&r)+(65535&c);return(r>>16)+(c>>16)+(A>>16)<<16|65535&A},d=function(r,c){return r>>>c|r<<32-c},i=function(r,c){return r>>>c},n=function(r,c,A){return r&c^~r&A},e=function(r,c,A){return r&c^r&A^c&A},a=function(r){return d(r,2)^d(r,13)^d(r,22)},s=function(r){return d(r,6)^d(r,11)^d(r,25)},o=function(r){return d(r,7)^d(r,18)^i(r,3)},f=function(r){return d(r,17)^d(r,19)^i(r,10)},l=function(r,c){var A,p,x,_,B,E,g,h,u,S,O,T,D=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),I=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),k=new Array(64);r[c>>5]|=128<<24-c%32,r[15+(c+64>>9<<4)]=c;for(var u=0;u<r.length;u+=16){A=I[0],p=I[1],x=I[2],_=I[3],B=I[4],E=I[5],g=I[6],h=I[7];for(var S=0;S<64;S++)k[S]=S<16?r[S+u]:m(m(m(f(k[S-2]),k[S-7]),o(k[S-15])),k[S-16]),O=m(m(m(m(h,s(B)),n(B,E,g)),D[S]),k[S]),T=m(a(A),e(A,p,x)),h=g,g=E,E=B,B=m(_,O),_=x,x=p,p=A,A=m(O,T);I[0]=m(A,I[0]),I[1]=m(p,I[1]),I[2]=m(x,I[2]),I[3]=m(_,I[3]),I[4]=m(B,I[4]),I[5]=m(E,I[5]),I[6]=m(g,I[6]),I[7]=m(h,I[7])}return I};b.exports=function(r){return w.hash(r,l,32,!0)}},{"./helpers":238}],242:[function(v,b,C){(function(w){"use strict";function m(l){return l&&l.__esModule?l:{default:l}}var d=v("babel-runtime/core-js/object/create"),i=m(d),n=v("babel-runtime/helpers/classCallCheck"),e=m(n),a=v("babel-runtime/helpers/createClass"),s=m(a),o=v("babel-runtime/helpers/typeof"),f=m(o);!function(l){if((C===void 0?"undefined":(0,f.default)(C))==="object"&&b!==void 0)b.exports=l();else if(typeof M=="function"&&M.amd)M([],l);else{var r;r=typeof window!="undefined"?window:w!==void 0?w:typeof self!="undefined"?self:this,r.mime=l()}}(function(){return function l(r,c,A){function p(B,E){if(!c[B]){if(!r[B]){var g=typeof v=="function"&&v;if(!E&&g)return g(B,!0);if(x)return x(B,!0);var h=new Error("Cannot find module '"+B+"'");throw h.code="MODULE_NOT_FOUND",h}var u=c[B]={exports:{}};r[B][0].call(u.exports,function(S){var O=r[B][1][S];return p(O||S)},u,u.exports,l,r,c,A)}return c[B].exports}for(var x=typeof v=="function"&&v,_=0;_<A.length;_++)p(A[_]);return p}({1:[function(l,r,c){var A=function(){function p(){(0,e.default)(this,p),this._types=(0,i.default)(null),this._extensions=(0,i.default)(null);for(var x=0;x<arguments.length;x++)this.define(arguments[x])}return(0,s.default)(p,[{key:"define",value:function(x,_){for(var B in x){for(var E=x[B],g=0;g<E.length;g++){var h=E[g];if(!_&&h in this._types)throw new Error('Attempt to change mapping for "'+h+'" extension from "'+this._types[h]+'" to "'+B+'". Pass `force=true` to allow this, otherwise remove "'+h+'" from the list of extensions for "'+B+'".');this._types[h]=B}!_&&this._extensions[B]||(this._extensions[B]=E[0])}}},{key:"getType",value:function(x){x=String(x);var _=x.replace(/^.*[\/\\]/,"").toLowerCase(),B=_.replace(/^.*\./,"").toLowerCase(),E=_.length<x.length;return(B.length<_.length-1||!E)&&this._types[B]||null}},{key:"getExtension",value:function(x){return(x=/^\s*([^;\s]*)/.test(x)&&RegExp.$1)&&this._extensions[x.toLowerCase()]||null}}]),p}();r.exports=A},{}],2:[function(l,r,c){var A=l("./Mime");r.exports=new A(l("./types/standard"),l("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(l,r,c){r.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(l,r,c){r.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/xm":["xm"],"font/otf":["otf"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/webp":["webp"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}]},{},[2])(2)})}).call(this,typeof se!="undefined"?se:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"babel-runtime/core-js/object/create":19,"babel-runtime/helpers/classCallCheck":30,"babel-runtime/helpers/createClass":31,"babel-runtime/helpers/typeof":32}],243:[function(v,b,C){"use strict";C.encodeURIComponent=function(w){try{return encodeURIComponent(w)}catch(m){return w}},C.escape=v("escape-html"),C.timestamp=function(w){if(w){var m=w;return typeof m=="string"&&(m=Number(m)),String(w).length===10&&(m*=1e3),new Date(m)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(v,b,C){(function(w,m){"use strict";function d(h){return h&&h.__esModule?h:{default:h}}function i(h,u){return h===void 0?u:h}function n(h,u){return function(S,O,T){if(S)return u(S);h({data:O,status:T.statusCode,headers:T.headers,res:T})}}var e,a=v("babel-runtime/core-js/json/stringify"),s=d(a),o=v("babel-runtime/helpers/typeof"),f=d(o),l=v("util"),r=v("url"),c=v("http"),A=v("https"),p=v("debug")("urllib"),x=v("humanize-ms"),_=0,B=Math.pow(2,31)-10,E=/^https?:\/\//i;C.TIMEOUTS=[x("300s"),x("300s")];var g=["json","text"];C.request=function(h,u,S){return arguments.length===2&&typeof u=="function"&&(S=u,u=null),typeof S=="function"?C.requestWithCallback(h,u,S):(e||(e=v("any-promise")),new e(function(O,T){C.requestWithCallback(h,u,n(O,T))}))},C.requestWithCallback=function(h,u,S){function O(){Me&&(clearTimeout(Me),Me=null)}function T(){re&&(clearTimeout(re),re=null)}function D(lt,rt,Ze){if(T(),!S)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),V,w.pid,me.method,h),void(lt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),V,w.pid,lt.name,lt.message,lt.stack));var $e=S;S=null;var Ue={};if(Ze&&(ce=Ze.statusCode,Ue=Ze.headers),ce===401&&Ue["www-authenticate"]&&(!u.headers||!u.headers.Authorization)&&u.digestAuth){var Ne=Ue["www-authenticate"];if(Ne.indexOf("Digest ")>=0)return p("Request#%d %s: got digest auth header WWW-Authenticate: %s",V,h,Ne),u.headers=u.headers||{},u.headers.Authorization=digestAuthHeader(me.method,me.path,Ne,u.digestAuth),p("Request#%d %s: auth with digest header: %s",V,h,u.headers.Authorization),Ze.headers["set-cookie"]&&(u.headers.Cookie=Ze.headers["set-cookie"].join(";")),C.requestWithCallback(h,u,$e)}var We=Date.now()-J;He&&(He.contentDownload=We),p("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",We,te,ce,me.method,me.host,me.path,he,He);var it={status:ce,statusCode:ce,headers:Ue,size:te,aborted:Ie,rt:We,keepAliveSocket:he,data:rt,requestUrls:u.requestUrls,timing:He,remoteAddress:ze,remotePort:_t};if(lt){var yt="";de&&typeof de.getCurrentStatus=="function"&&(yt=", agent status: "+(0,s.default)(de.getCurrentStatus())),lt.message+=", "+me.method+" "+h+" "+ce+" (connected: "+W+", keepalive socket: "+he+yt+`)
headers: `+(0,s.default)(Ue),lt.data=rt,lt.path=me.path,lt.status=ce,lt.headers=Ue,lt.res=it}$e(lt,rt,u.streaming?Ze:it),u.emitter&&(N.url=h,N.socket=ct&&ct.connection,N.options=me,N.size=Te,u.emitter.emit("response",{requestId:V,error:lt,ctx:u.ctx,req:N,res:it}))}function I(lt){var rt=null;if(u.followRedirect&&statuses.redirect[lt.statusCode]){u._followRedirectCount=(u._followRedirectCount||0)+1;var Ze=lt.headers.location;if(Ze){if(!(u._followRedirectCount>u.maxRedirects)){var $e=u.formatRedirectUrl?u.formatRedirectUrl(h,Ze):r.resolve(h,Ze);p("Request#%d %s: `redirected` from %s to %s",V,me.path,h,$e),T(),u.headers&&u.headers.Host&&E.test(Ze)&&(u.headers.Host=null);var Ue=S;return S=null,C.requestWithCallback($e,u,Ue),{redirect:!0,error:null}}rt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+h),rt.name="MaxRedirectError"}else rt=new Error("Got statusCode "+lt.statusCode+" but cannot resolve next location from headers"),rt.name="FollowRedirectError"}return{redirect:!1,error:rt}}function k(lt,rt,Ze){return Ze(null,rt,lt.headers["content-encoding"])}function F(lt){if(He&&(He.waiting=Date.now()-J),p("Request#%d %s `req response` event emit: status %d, headers: %j",V,h,lt.statusCode,lt.headers),u.streaming){var rt=I(lt);return rt.redirect?void lt.resume():rt.error?(lt.resume(),D(rt.error,null,lt)):D(null,null,lt)}if(lt.on("close",function(){p("Request#%d %s: `res close` event emit, total size %d",V,h,te)}),lt.on("error",function(){p("Request#%d %s: `res error` event emit, total size %d",V,h,te)}),lt.on("aborted",function(){Ie=!0,p("Request#%d %s: `res aborted` event emit, total size %d",V,h,te)}),Ke){var rt=I(lt);return rt.redirect?void lt.resume():rt.error?(lt.resume(),Ke.end(),D(rt.error,null,lt)):(u.consumeWriteStream===!1?lt.on("end",D.bind(null,null,null,lt)):isNode010||isNode012?first([[Ke,"close"],[lt,"aborted"]],function(Ue,Ne,We){p("Request#%d %s: writeStream or res %s event emitted",V,h,We),D(j||null,null,lt)}):Ke.on("close",function(){p("Request#%d %s: writeStream close event emitted",V,h),D(j||null,null,lt)}),lt.pipe(Ke))}var Ze=[];lt.on("data",function($e){p("Request#%d %s: `res data` event emit, size %d",V,h,$e.length),te+=$e.length,Ze.push($e)}),lt.on("end",function(){var $e=m.concat(Ze,te);if(p("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",V,h,te,lt._dumped),j)return D(j,$e,lt);var Ue=I(lt);if(Ue.error)return D(Ue.error,$e,lt);Ue.redirect||k(lt,$e,function(Ne,We,it){if(Ne)return D(Ne,$e,lt);if(!it&&g.indexOf(u.dataType)>=0){try{We=decodeBodyByCharset(We,lt)}catch(vt){return p("decodeBodyByCharset error: %s",vt),D(null,We,lt)}if(u.dataType==="json")if(te===0)We=null;else{var yt=parseJSON(We,_e);yt.error?Ne=yt.error:We=yt.data}}Ie&&p("Request#%d %s: Remote socket was terminated before `response.end()` was called",V,h),D(Ne,We,lt)})})}function X(){p("Response timer ticking, timeout: %d",St),re=setTimeout(function(){re=null;var lt="Response timeout for "+St+"ms";j=new Error(lt),j.name="ResponseTimeoutError",j.requestId=V,p("ResponseTimeout: Request#%d %s %s: %s, connected: %s",V,h,j.name,lt,W),U()},St)}function U(){p("Request#%d %s abort, connected: %s",V,h,W),ct.socket||(j.noSocket=!0,D(j)),ct.abort()}if(!h||typeof h!="string"&&(h===void 0?"undefined":(0,f.default)(h))!=="object"){var K=l.format("expect request url to be a string or a http request options, but got %j",h);throw new Error(K)}arguments.length===2&&typeof u=="function"&&(S=u,u=null),u=u||{},_>=B&&(_=0);var V=++_;u.requestUrls=u.requestUrls||[];var N={requestId:V,url:h,args:u,ctx:u.ctx};u.emitter&&u.emitter.emit("request",N),u.timeout=u.timeout||C.TIMEOUTS,u.maxRedirects=u.maxRedirects||10,u.streaming=u.streaming||u.customResponse;var Q,J=Date.now();typeof h=="string"?(E.test(h)||(h="http://"+h),Q=r.parse(h)):Q=h;var ne=(u.type||u.method||Q.method||"GET").toUpperCase(),ue=Q.port||80,be=c,de=i(u.agent,C.agent),_e=u.fixJSONCtlChars;Q.protocol==="https:"&&(be=A,de=i(u.httpsAgent,C.httpsAgent),Q.port||(ue=443));var me={host:Q.hostname||Q.host||"localhost",path:Q.path||"/",method:ne,port:ue,agent:de,headers:u.headers||{},lookup:u.lookup};Array.isArray(u.timeout)?me.requestTimeout=u.timeout[u.timeout.length-1]:u.timeout!==void 0&&(me.requestTimeout=u.timeout);for(var Ee=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],ge=0;ge<Ee.length;ge++){var Ae=Ee[ge];u.hasOwnProperty(Ae)&&(me[Ae]=u[Ae])}me.rejectUnauthorized!==!1||me.hasOwnProperty("secureOptions")||(me.secureOptions=v("constants").SSL_OP_NO_TLSv1_2);var ae=u.auth||Q.auth;ae&&(me.auth=ae);var ve=u.content||u.data,oe=ne==="GET"||ne==="HEAD"||u.dataAsQueryString;if(!u.content&&ve&&typeof ve!="string"&&!m.isBuffer(ve))if(oe)ve=u.nestedQuerystring?qs.stringify(ve):querystring.stringify(ve);else{var ie=me.headers["Content-Type"]||me.headers["content-type"];ie||(ie=u.contentType==="json"?"application/json":"application/x-www-form-urlencoded",me.headers["Content-Type"]=ie),ve=parseContentType(ie).type==="application/json"?(0,s.default)(ve):u.nestedQuerystring?qs.stringify(ve):querystring.stringify(ve)}oe&&ve&&(me.path+=(Q.query?"&":"?")+ve,ve=null);var Te=0;if(ve){var Re=ve.length;m.isBuffer(ve)||(Re=m.byteLength(ve)),Te=me.headers["Content-Length"]=Re}u.dataType==="json"&&(me.headers.Accept="application/json"),typeof u.beforeRequest=="function"&&u.beforeRequest(me);var Me=null,re=null,j=null,W=!1,he=!1,te=0,ce=-1,Ie=!1,ze="",_t="",He=null;u.timing&&(He={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),me.headers["User-Agent"]||me.headers["user-agent"]||(me.headers["User-Agent"]=navigator.userAgent),u.gzip&&(me.headers["Accept-Encoding"]||me.headers["accept-encoding"]||(me.headers["Accept-Encoding"]="gzip"));var Ke=u.writeStream;p("Request#%d %s %s with headers %j, options.path: %s",V,ne,h,me.headers,me.path),u.requestUrls.push(h);var ht,St;Array.isArray(u.timeout)?(ht=x(u.timeout[0]),St=x(u.timeout[1])):ht=St=x(u.timeout),p("ConnectTimeout: %d, ResponseTimeout: %d",ht,St);var ct;try{ct=be.request(me,F)}catch(lt){return D(lt)}return typeof window=="undefined"?function(){p("Connect timer ticking, timeout: %d",ht),Me=setTimeout(function(){Me=null,ce===-1&&(ce=-2);var lt="Connect timeout for "+ht+"ms",rt="ConnectionTimeoutError";ct.socket||(rt="SocketAssignTimeoutError",lt+=", working sockets is full"),j=new Error(lt),j.name=rt,j.requestId=V,p("ConnectTimeout: Request#%d %s %s: %s, connected: %s",V,h,j.name,lt,W),U()},ht)}():ct.on("requestTimeout",function(){ce===-1&&(ce=-2);var lt="Connect timeout for "+ht+"ms";j=new Error(lt),j.name="ConnectionTimeoutError",j.requestId=V,U()}),He&&ct.on("finish",function(){He.requestSent=Date.now()-J}),ct.once("socket",function(lt){He&&(He.queuing=Date.now()-J),isNode010&&lt.socket&&(lt=lt.socket);var rt=lt.readyState;if(rt==="opening")return lt.once("lookup",function(Ze,$e,Ue){p("Request#%d %s lookup: %s, %s, %s",V,h,Ze,$e,Ue),He&&(He.dnslookup=Date.now()-J),$e&&(ze=$e)}),void lt.once("connect",function(){He&&(He.connected=Date.now()-J),O(),X(),p("Request#%d %s new socket connected",V,h),W=!0,ze||(ze=lt.remoteAddress),_t=lt.remotePort});p("Request#%d %s reuse socket connected, readyState: %s",V,h,rt),W=!0,he=!0,ze||(ze=lt.remoteAddress),_t=lt.remotePort,O(),X()}),ct.on("error",function(lt){lt.name!=="Error"&&lt.name!=="TypeError"||(lt.name=W?"ResponseError":"RequestError"),lt.message+=' (req "error")',p("Request#%d %s `req error` event emit, %s: %s",V,h,lt.name,lt.message),D(j||lt)}),Ke&&Ke.once("error",function(lt){lt.message+=' (writeStream "error")',j=lt,p("Request#%d %s `writeStream error` event emit, %s: %s",V,h,lt.name,lt.message),U()}),u.stream?(u.stream.pipe(ct),u.stream.once("error",function(lt){lt.message+=' (stream "error")',j=lt,p("Request#%d %s `readStream error` event emit, %s: %s",V,h,lt.name,lt.message),U()})):ct.end(ve),ct.requestId=V,ct}}).call(this,v("_process"),v("buffer").Buffer)},{_process:173,"any-promise":13,"babel-runtime/core-js/json/stringify":17,"babel-runtime/helpers/typeof":32,buffer:38,constants:42,debug:155,http:196,https:159,"humanize-ms":160,url:203,util:207}]},{},[1])(1)}),!function(M){function v(C){if(b[C])return b[C].exports;var w=b[C]={i:C,l:!1,exports:{}};return M[C].call(w.exports,w,w.exports,v),w.l=!0,w.exports}var b={};v.m=M,v.c=b,v.d=function(C,w,m){v.o(C,w)||Object.defineProperty(C,w,{configurable:!1,enumerable:!0,get:m})},v.n=function(C){var w=C&&C.__esModule?function(){return C.default}:function(){return C};return v.d(w,"a",w),w},v.o=function(C,w){return Object.prototype.hasOwnProperty.call(C,w)},v.p="",v(v.s=12)}([function(M,v,b){!function(C,w){M.exports=v=w()}(0,function(){var C=C||function(w,m){var d=Object.create||function(){function A(){}return function(p){var x;return A.prototype=p,x=new A,A.prototype=null,x}}(),i={},n=i.lib={},e=n.Base=function(){return{extend:function(A){var p=d(this);return A&&p.mixIn(A),p.hasOwnProperty("init")&&this.init!==p.init||(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var A=this.extend();return A.init.apply(A,arguments),A},init:function(){},mixIn:function(A){for(var p in A)A.hasOwnProperty(p)&&(this[p]=A[p]);A.hasOwnProperty("toString")&&(this.toString=A.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=n.WordArray=e.extend({init:function(A,p){A=this.words=A||[],this.sigBytes=p!=null?p:4*A.length},toString:function(A){return(A||o).stringify(this)},concat:function(A){var p=this.words,x=A.words,_=this.sigBytes,B=A.sigBytes;if(this.clamp(),_%4)for(var E=0;E<B;E++){var g=x[E>>>2]>>>24-E%4*8&255;p[_+E>>>2]|=g<<24-(_+E)%4*8}else for(var E=0;E<B;E+=4)p[_+E>>>2]=x[E>>>2];return this.sigBytes+=B,this},clamp:function(){var A=this.words,p=this.sigBytes;A[p>>>2]&=4294967295<<32-p%4*8,A.length=w.ceil(p/4)},clone:function(){var A=e.clone.call(this);return A.words=this.words.slice(0),A},random:function(A){for(var p,x=[],_=0;_<A;_+=4){var B=function(E){var E=E,g=987654321,h=4294967295;return function(){g=36969*(65535&g)+(g>>16)&h,E=18e3*(65535&E)+(E>>16)&h;var u=(g<<16)+E&h;return u/=4294967296,(u+=.5)*(w.random()>.5?1:-1)}}(4294967296*(p||w.random()));p=987654071*B(),x.push(4294967296*B()|0)}return new a.init(x,A)}}),s=i.enc={},o=s.Hex={stringify:function(A){for(var p=A.words,x=A.sigBytes,_=[],B=0;B<x;B++){var E=p[B>>>2]>>>24-B%4*8&255;_.push((E>>>4).toString(16)),_.push((15&E).toString(16))}return _.join("")},parse:function(A){for(var p=A.length,x=[],_=0;_<p;_+=2)x[_>>>3]|=parseInt(A.substr(_,2),16)<<24-_%8*4;return new a.init(x,p/2)}},f=s.Latin1={stringify:function(A){for(var p=A.words,x=A.sigBytes,_=[],B=0;B<x;B++){var E=p[B>>>2]>>>24-B%4*8&255;_.push(String.fromCharCode(E))}return _.join("")},parse:function(A){for(var p=A.length,x=[],_=0;_<p;_++)x[_>>>2]|=(255&A.charCodeAt(_))<<24-_%4*8;return new a.init(x,p)}},l=s.Utf8={stringify:function(A){try{return decodeURIComponent(escape(f.stringify(A)))}catch(p){throw new Error("Malformed UTF-8 data")}},parse:function(A){return f.parse(unescape(encodeURIComponent(A)))}},r=n.BufferedBlockAlgorithm=e.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(A){typeof A=="string"&&(A=l.parse(A)),this._data.concat(A),this._nDataBytes+=A.sigBytes},_process:function(A){var p=this._data,x=p.words,_=p.sigBytes,B=this.blockSize,E=4*B,g=_/E;g=A?w.ceil(g):w.max((0|g)-this._minBufferSize,0);var h=g*B,u=w.min(4*h,_);if(h){for(var S=0;S<h;S+=B)this._doProcessBlock(x,S);var O=x.splice(0,h);p.sigBytes-=u}return new a.init(O,u)},clone:function(){var A=e.clone.call(this);return A._data=this._data.clone(),A},_minBufferSize:0}),c=(n.Hasher=r.extend({cfg:e.extend(),init:function(A){this.cfg=this.cfg.extend(A),this.reset()},reset:function(){r.reset.call(this),this._doReset()},update:function(A){return this._append(A),this._process(),this},finalize:function(A){return A&&this._append(A),this._doFinalize()},blockSize:16,_createHelper:function(A){return function(p,x){return new A.init(x).finalize(p)}},_createHmacHelper:function(A){return function(p,x){return new c.HMAC.init(A,x).finalize(p)}}}),i.algo={});return i}(Math);return C})},function(M,v,b){"use strict";function C(d,i){if(!(d instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var w=function(){function d(i,n){for(var e=0;e<n.length;e++){var a=n[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,a.key,a)}}return function(i,n,e){return n&&d(i.prototype,n),e&&d(i,e),i}}(),m=function(){function d(){C(this,d)}return w(d,null,[{key:"detectIEVersion",value:function(){for(var i=4,n=document.createElement("div"),e=n.getElementsByTagName("i");n.innerHTML="<!--[if gt IE "+i+"]><i></i><![endif]-->",e[0];)i++;return i>4&&i}},{key:"extend",value:function(i,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&n[e]&&(i[e]=n[e])}},{key:"isArray",value:function(i){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(i){return i=i.toLowerCase(),/.mp4|.flv|.m3u8|.avi|.rm|.rmvb|.mpeg|.mpg|.mov|.wmv|.3gp|.asf|.dat|.dv|.f4v|.gif|.m2t|.m4v|.mj2|.mjpeg|.mpe|.mts|.ogg|.qt|.swf|.ts|.vob|.wmv|.webm/.test(i)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(i)?"audio":/.bmp|.jpg|.jpeg|.png/.test(i)?"img":"other"}},{key:"isImage",value:function(i){return i=i.toLowerCase(),!!/.jpg|.jpeg|.png/.test(i)}},{key:"ISODateString",value:function(i){function n(e){return e<10?"0"+e:e}return i.getUTCFullYear()+"-"+n(i.getUTCMonth()+1)+"-"+n(i.getUTCDate())+"T"+n(i.getUTCHours())+":"+n(i.getUTCMinutes())+":"+n(i.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(i){return!!/^\d+$/.test(i)}}]),d}();v.default=m},function(M,v,b){!function(C,w){M.exports=v=w(b(0))}(0,function(C){return function(w){function m(c,A,p,x,_,B,E){var g=c+(A&p|~A&x)+_+E;return(g<<B|g>>>32-B)+A}function d(c,A,p,x,_,B,E){var g=c+(A&x|p&~x)+_+E;return(g<<B|g>>>32-B)+A}function i(c,A,p,x,_,B,E){var g=c+(A^p^x)+_+E;return(g<<B|g>>>32-B)+A}function n(c,A,p,x,_,B,E){var g=c+(p^(A|~x))+_+E;return(g<<B|g>>>32-B)+A}var e=C,a=e.lib,s=a.WordArray,o=a.Hasher,f=e.algo,l=[];!function(){for(var c=0;c<64;c++)l[c]=4294967296*w.abs(w.sin(c+1))|0}();var r=f.MD5=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(c,A){for(var p=0;p<16;p++){var x=A+p,_=c[x];c[x]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8)}var B=this._hash.words,E=c[A+0],g=c[A+1],h=c[A+2],u=c[A+3],S=c[A+4],O=c[A+5],T=c[A+6],D=c[A+7],I=c[A+8],k=c[A+9],F=c[A+10],X=c[A+11],U=c[A+12],K=c[A+13],V=c[A+14],N=c[A+15],Q=B[0],J=B[1],ne=B[2],ue=B[3];Q=m(Q,J,ne,ue,E,7,l[0]),ue=m(ue,Q,J,ne,g,12,l[1]),ne=m(ne,ue,Q,J,h,17,l[2]),J=m(J,ne,ue,Q,u,22,l[3]),Q=m(Q,J,ne,ue,S,7,l[4]),ue=m(ue,Q,J,ne,O,12,l[5]),ne=m(ne,ue,Q,J,T,17,l[6]),J=m(J,ne,ue,Q,D,22,l[7]),Q=m(Q,J,ne,ue,I,7,l[8]),ue=m(ue,Q,J,ne,k,12,l[9]),ne=m(ne,ue,Q,J,F,17,l[10]),J=m(J,ne,ue,Q,X,22,l[11]),Q=m(Q,J,ne,ue,U,7,l[12]),ue=m(ue,Q,J,ne,K,12,l[13]),ne=m(ne,ue,Q,J,V,17,l[14]),J=m(J,ne,ue,Q,N,22,l[15]),Q=d(Q,J,ne,ue,g,5,l[16]),ue=d(ue,Q,J,ne,T,9,l[17]),ne=d(ne,ue,Q,J,X,14,l[18]),J=d(J,ne,ue,Q,E,20,l[19]),Q=d(Q,J,ne,ue,O,5,l[20]),ue=d(ue,Q,J,ne,F,9,l[21]),ne=d(ne,ue,Q,J,N,14,l[22]),J=d(J,ne,ue,Q,S,20,l[23]),Q=d(Q,J,ne,ue,k,5,l[24]),ue=d(ue,Q,J,ne,V,9,l[25]),ne=d(ne,ue,Q,J,u,14,l[26]),J=d(J,ne,ue,Q,I,20,l[27]),Q=d(Q,J,ne,ue,K,5,l[28]),ue=d(ue,Q,J,ne,h,9,l[29]),ne=d(ne,ue,Q,J,D,14,l[30]),J=d(J,ne,ue,Q,U,20,l[31]),Q=i(Q,J,ne,ue,O,4,l[32]),ue=i(ue,Q,J,ne,I,11,l[33]),ne=i(ne,ue,Q,J,X,16,l[34]),J=i(J,ne,ue,Q,V,23,l[35]),Q=i(Q,J,ne,ue,g,4,l[36]),ue=i(ue,Q,J,ne,S,11,l[37]),ne=i(ne,ue,Q,J,D,16,l[38]),J=i(J,ne,ue,Q,F,23,l[39]),Q=i(Q,J,ne,ue,K,4,l[40]),ue=i(ue,Q,J,ne,E,11,l[41]),ne=i(ne,ue,Q,J,u,16,l[42]),J=i(J,ne,ue,Q,T,23,l[43]),Q=i(Q,J,ne,ue,k,4,l[44]),ue=i(ue,Q,J,ne,U,11,l[45]),ne=i(ne,ue,Q,J,N,16,l[46]),J=i(J,ne,ue,Q,h,23,l[47]),Q=n(Q,J,ne,ue,E,6,l[48]),ue=n(ue,Q,J,ne,D,10,l[49]),ne=n(ne,ue,Q,J,V,15,l[50]),J=n(J,ne,ue,Q,O,21,l[51]),Q=n(Q,J,ne,ue,U,6,l[52]),ue=n(ue,Q,J,ne,u,10,l[53]),ne=n(ne,ue,Q,J,F,15,l[54]),J=n(J,ne,ue,Q,g,21,l[55]),Q=n(Q,J,ne,ue,I,6,l[56]),ue=n(ue,Q,J,ne,N,10,l[57]),ne=n(ne,ue,Q,J,T,15,l[58]),J=n(J,ne,ue,Q,K,21,l[59]),Q=n(Q,J,ne,ue,S,6,l[60]),ue=n(ue,Q,J,ne,X,10,l[61]),ne=n(ne,ue,Q,J,h,15,l[62]),J=n(J,ne,ue,Q,k,21,l[63]),B[0]=B[0]+Q|0,B[1]=B[1]+J|0,B[2]=B[2]+ne|0,B[3]=B[3]+ue|0},_doFinalize:function(){var c=this._data,A=c.words,p=8*this._nDataBytes,x=8*c.sigBytes;A[x>>>5]|=128<<24-x%32;var _=w.floor(p/4294967296),B=p;A[15+(x+64>>>9<<4)]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),A[14+(x+64>>>9<<4)]=16711935&(B<<8|B>>>24)|4278255360&(B<<24|B>>>8),c.sigBytes=4*(A.length+1),this._process();for(var E=this._hash,g=E.words,h=0;h<4;h++){var u=g[h];g[h]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return E},clone:function(){var c=o.clone.call(this);return c._hash=this._hash.clone(),c}});e.MD5=o._createHelper(r),e.HmacMD5=o._createHmacHelper(r)}(Math),C.MD5})},function(M,v,b){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},v.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},v.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(M,v,b){"use strict";function C(r){return r&&r.__esModule?r:{default:r}}function w(r,c){if(!(r instanceof c))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var m=function(){function r(c,A){for(var p=0;p<A.length;p++){var x=A[p];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(c,x.key,x)}}return function(c,A,p){return A&&r(c.prototype,A),p&&r(c,p),c}}(),d=b(5),i=C(d),n=b(25),e=C(n),a=b(6),s=C(a),o=b(7),f=C(o),l=function(){function r(c){w(this,r);var A=f.default.os.name,p=f.default.os.version||"",x=f.default.browser.name,_=f.default.browser.version||"",B=window.location.href,E="";B&&(E=f.default.getHost(B));var g="pc";f.default.os.ipad?g="pad":(f.default.os.iphone||f.default.os.android)&&(g="phone"),this._ri=i.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:s.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:r.getUuid(),os:A,ov:p,et:x,ev:_,uat:navigator.userAgent,app_n:E,tt:g,dm:"h5",ut:""}}return m(r,[{key:"log",value:function(c,A){A&&A.ri?(this._ri=A.ri,delete A.ri):this._ri=i.default.create(),A&&A.ut&&(this.initParam.ut=A.ut,delete A.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=c=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=c;var p=[];if(A)for(var x in A)p.push(x+"="+A[x]);var _=p.join("&");this.initParam.args=encodeURIComponent(_==""?"0":_);var B=[];for(var x in this.initParam)B.push(x+"="+this.initParam[x]);var E=B.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(E):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+E}}],[{key:"getUuid",value:function(){var c=e.default.get("p_h5_upload_u");return c||(c=i.default.create(),e.default.set("p_h5_upload_u",c,730)),c}},{key:"getClientId",value:function(){return e.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(c){return c||(c=i.default.create()),e.default.set("p_h5_upload_clientId",c,730),c}}]),r}();v.default=l},function(M,v,b){"use strict";function C(d,i){if(!(d instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var w=function(){function d(i,n){for(var e=0;e<n.length;e++){var a=n[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,a.key,a)}}return function(i,n,e){return n&&d(i.prototype,n),e&&d(i,e),i}}(),m=function(){function d(){C(this,d)}return w(d,null,[{key:"create",value:function(i,n){var e,a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),s=[];if(n=n||a.length,i)for(e=0;e<i;e++)s[e]=a[0|Math.random()*n];else{var o;for(s[8]=s[13]=s[18]=s[23]="-",s[14]="4",e=0;e<36;e++)s[e]||(o=0|16*Math.random(),s[e]=a[e==19?3&o|8:o])}return s.join("")}}]),d}();v.default=m},function(M,v,b){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var C={version:"1.5.0"};v.default=C},function(M,v,b){"use strict";function C(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var w=function(){function a(s,o){for(var f=0;f<o.length;f++){var l=o[f];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}return function(s,o,f){return o&&a(s.prototype,o),f&&a(s,f),s}}(),m=function(a){var s=navigator.userAgent,o="other";if(a.ios)return"iOS";if(a.android)return"android";if(s.indexOf("Baiduspider")>-1)return"Baiduspider";if(s.indexOf("PlayStation")>-1)return"PS4";var f=navigator.platform=="Win32"||navigator.platform=="Windows"||s.indexOf("Windows")>-1,l=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return l&&(o="macOS"),navigator.platform=="X11"&&!f&&!l&&(o="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(o="Linux"),f?"windows":o},d=function(){var a=navigator.userAgent,s="";return(a.indexOf("Windows NT 5.0")>-1||a.indexOf("Windows 2000")>-1)&&(s="2000"),(a.indexOf("Windows NT 5.1")>-1||a.indexOf("Windows XP")>-1)&&(s="XP"),(a.indexOf("Windows NT 5.2")>-1||a.indexOf("Windows 2003")>-1)&&(s="2003"),(a.indexOf("Windows NT 6.0")>-1||a.indexOf("Windows Vista")>-1)&&(s="Vista"),(a.indexOf("Windows NT 6.1")>-1||a.indexOf("Windows 7")>-1)&&(s="7"),(a.indexOf("Windows NT 6.2")>-1||a.indexOf("Windows 8")>-1)&&(s="8"),(a.indexOf("Windows NT 6.3")>-1||a.indexOf("Windows 8.1")>-1)&&(s="8.1"),(a.indexOf("Windows NT 10")>-1||a.indexOf("Windows 10")>-1)&&(s="10"),s},i=function(a){var s=navigator.userAgent.toLowerCase();return a.chrome?"Chrome":a.firefox?"Firefox":a.safari?"Safari":a.webview?"webview":a.ie?/edge/.test(s)?"Edge":"IE":/baiduspider/.test(s)?"Baiduspider":/ucweb/.test(s)||/UCBrowser/.test(s)?"UC":/opera/.test(s)?"Opera":/ucweb/.test(s)?"UC":/360se/.test(s)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(s)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(s)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(s)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(s)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(s)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(s)?"PS4\u6D4F\u89C8\u5668":void 0},n=function(){var a={},s={},o=navigator.userAgent,f=navigator.platform,l=o.match(/Web[kK]it[\/]{0,1}([\d.]+)/),r=o.match(/(Android);?[\s\/]+([\d.]+)?/),c=!!o.match(/\(Macintosh\; Intel /),A=o.match(/(iPad).*OS\s([\d_]+)/),p=o.match(/(iPod)(.*OS\s([\d_]+))?/),x=!A&&o.match(/(iPhone\sOS)\s([\d_]+)/),_=o.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),B=/Win\d{2}|Windows/.test(f),E=o.match(/Windows Phone ([\d.]+)/),g=_&&o.match(/TouchPad/),h=o.match(/Kindle\/([\d.]+)/),u=o.match(/Silk\/([\d._]+)/),S=o.match(/(BlackBerry).*Version\/([\d.]+)/),O=o.match(/(BB10).*Version\/([\d.]+)/),T=o.match(/(RIM\sTablet\sOS)\s([\d.]+)/),D=o.match(/PlayBook/),I=o.match(/Chrome\/([\d.]+)/)||o.match(/CriOS\/([\d.]+)/),k=o.match(/Firefox\/([\d.]+)/),F=o.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),X=o.match(/MSIE\s([\d.]+)/)||o.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),U=!I&&o.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),K=U||o.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((s.webkit=!!l)&&(s.version=l[1]),r&&(a.android=!0,a.version=r[2]),x&&!p&&(a.ios=a.iphone=!0,a.version=x[2].replace(/_/g,".")),A&&(a.ios=a.ipad=!0,a.version=A[2].replace(/_/g,".")),p&&(a.ios=a.ipod=!0,a.version=p[3]?p[3].replace(/_/g,"."):null),E&&(a.wp=!0,a.version=E[1]),_&&(a.webos=!0,a.version=_[2]),g&&(a.touchpad=!0),S&&(a.blackberry=!0,a.version=S[2]),O&&(a.bb10=!0,a.version=O[2]),T&&(a.rimtabletos=!0,a.version=T[2]),D&&(s.playbook=!0),h&&(a.kindle=!0,a.version=h[1]),u&&(s.silk=!0,s.version=u[1]),!u&&a.android&&o.match(/Kindle Fire/)&&(s.silk=!0),I&&(s.chrome=!0,s.version=I[1]),k&&(s.firefox=!0,s.version=k[1]),F&&(a.firefoxos=!0,a.version=F[1]),X&&(s.ie=!0,s.version=X[1]),K&&(c||a.ios||B||r)&&(s.safari=!0,a.ios||(s.version=K[1])),U&&(s.webview=!0),c){var V=o.match(/[\d]*_[\d]*_[\d]*/);V&&V.length>0&&V[0]&&(a.version=V[0].replace(/_/g,"."))}return a.tablet=!!(A||D||r&&!o.match(/Mobile/)||k&&o.match(/Tablet/)||X&&!o.match(/Phone/)&&o.match(/Touch/)),a.phone=!(a.tablet||a.ipod||!(r||x||_||S||O||I&&o.match(/Android/)||I&&o.match(/CriOS\/([\d.]+)/)||k&&o.match(/Mobile/)||X&&o.match(/Touch/))),a.pc=!a.tablet&&!a.phone,c?a.name="macOS":B?(a.name="windows",a.version=d()):a.name=m(a),s.name=i(s),{os:a,browser:s}}(),e=function(){function a(){C(this,a)}return w(a,null,[{key:"getHost",value:function(s){var o="";if(s===void 0||s==null||s=="")return"";var f=s.indexOf("//"),l=s;f>-1&&(l=s.substring(f+2));var o=l,r=l.split("/");return r&&r.length>0&&(o=r[0]),r=o.split(":"),r&&r.length>0&&(o=r[0]),o}},{key:"os",get:function(){return n.os}},{key:"browser",get:function(){var s=n.browser;return s.name||(s.name=i()),s}}]),a}();v.default=e},function(M,v,b){"use strict";function C(d,i){if(!(d instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var w=function(){function d(i,n){for(var e=0;e<n.length;e++){var a=n[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,a.key,a)}}return function(i,n,e){return n&&d(i.prototype,n),e&&d(i,e),i}}(),m=function(){function d(){C(this,d)}return w(d,null,[{key:"get",value:function(i,n,e,a,s){var o;e=e||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(f){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(f){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(f){}throw new Error("This browser does not support XMLHttpRequest.")}),o=new XMLHttpRequest,o.onreadystatechange=function(){o.readyState===4&&(o.status===200?n(o.responseText):e(o.responseText))};try{a===void 0&&(a=!0),o.open("GET",i,a),s&&(o.withCredentials=!0)}catch(f){return void e(f)}try{o.send()}catch(f){e(f)}}}]),d}();v.default=m},function(M,v,b){"use strict";function C(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var w=function(){function n(e,a){for(var s=0;s<a.length;s++){var o=a[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,a,s){return a&&n(e.prototype,a),s&&n(e,s),e}}(),m=b(27),d=b(30),i=(b(10),function(){function n(){C(this,n)}return w(n,null,[{key:"randomUUID",value:function(){for(var e=[],a="0123456789abcdef",s=0;s<36;s++)e[s]=a.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=a.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}},{key:"aliyunEncodeURI",value:function(e){var a=encodeURIComponent(e);return a=a.replace(/\+/g,"%20").replace(/\*/g,"%2A").replace(/%7E/g,"~").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}},{key:"makeUTF8sort",value:function(e,a,s){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");var o=[];for(var f in e)o.push(f);for(var l=o.sort(),r="",c=l.length,f=0;f<c;f++){var A=n.aliyunEncodeURI(l[f]),p=n.aliyunEncodeURI(e[l[f]]);r==""?r=A+a+p:r+=s+A+a+p}return r}},{key:"makeChangeSiga",value:function(e,a){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");return d.stringify(m("GET&"+n.aliyunEncodeURI("/")+"&"+n.aliyunEncodeURI(n.makeUTF8sort(e,"=","&")),a+"&"))}}]),n}());v.default=i},function(M,v,b){!function(C,w){M.exports=v=w(b(0))}(0,function(C){return C.enc.Utf8})},function(M,v,b){!function(C,w){M.exports=v=w(b(0))}(0,function(C){return C.enc.Hex})},function(M,v,b){M.exports=b(13)},function(M,v,b){"use strict";var C,w,m=(typeof Symbol=="function"&&Symbol.iterator,b(14)),d=function(n){return n&&n.__esModule?n:{default:n}}(m),i={Vod:d.default};C=[],(w=function(){return i}.apply(v,C))!==void 0&&(M.exports=w),window.AliyunUpload=i,Ge.exports=AliyunUpload},function(M,v,b){"use strict";function C(O){return O&&O.__esModule?O:{default:O}}function w(O,T){if(!(O instanceof T))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var m=function(){function O(T,D){for(var I=0;I<D.length;I++){var k=D[I];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(T,k.key,k)}}return function(T,D,I){return D&&O(T.prototype,D),I&&O(T,I),T}}(),d=b(15),i=b(3),n=b(16),e=C(n),a=b(18),s=C(a),o=b(24),f=C(o),l=b(4),r=C(l),c=b(1),A=C(c),p=b(5),x=C(p),_=b(26),B=C(_),E=b(31),g=C(E),h=b(32),u=C(h),S=(b(2),function(){function O(T){w(this,O),this.options=T,this.options.partSize=this.options.partSize||i.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||i.UPLOADDEFAULT.PARALLEL,this.options.region=this.options.region||"cn-shanghai",this.options.cname=this.options.cname||!1,this.options.localCheckpoint=this.options.localCheckpoint||!1,this.options.enableUploadProgress===void 0&&(this.options.enableUploadProgress=!0),this._ossCreditor=new Object,this._state=d.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new r.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=d.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return m(O,[{key:"init",value:function(T,D,I,k){return this._retryCount=0,!(I&&!k||!I&&k)&&!(T&&!D||!T&&D)&&(this._ossCreditor.accessKeyId=T,this._ossCreditor.accessKeySecret=D,this._ossCreditor.securityToken=I,this._ossCreditor.expireTime=k,!0)}},{key:"addFile",value:function(T,D,I,k,F,X){if(!T)return!1;if(T.size==0)try{this.options.onUploadFailed({file:T},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(N){console.log(N)}for(var U=(this.options,0);U<this._uploadList.length;U++)if(this._uploadList[U].file==T)return!1;var K=new Object;if(K.file=T,K._endpoint=D,K._bucket=I,K._object=k,K.state=d.UPLOADSTATE.INIT,K.isImage=A.default.isImage(T.name),!K.isImage&&this.options.enableUploadProgress){var V=this;u.default.getMd5(T,function(N){K.fileHash=N;var Q=V._getCheckoutpoint(K);V.options.localCheckpoint||Q||V._getCheckoutpointFromCloud(K,function(J){if(J.UploadPoint){var ne=JSON.parse(J.UploadPoint);ne.loaded!=1&&(K.checkpoint=ne.checkpoint,K.loaded=ne.loaded,K.videoId=J.VideoId,V._saveCheckoutpoint(K,ne.checkpoint))}},function(J){try{if((J=JSON.parse(J))&&J.Code=="InvalidParameter"&&J.Message.indexOf("UserId")>0){V._invalidUserId=!0;var ne=J.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(ne)}}catch(ue){console.log(ue)}})})}F&&(K.videoInfo=F?JSON.parse(F).Vod:{},K.userData=s.default.encode(F)),K.ri=x.default.create(),this._uploadList.push(K),this._reportLog("20001",K,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(K)}catch(N){console.log(N)}return!0}},{key:"deleteFile",value:function(T){return!!this.cancelFile(T)&&(this._uploadList.splice(T,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(T){if(this.options,T<0||T>=this._uploadList.length)return!1;var D=this._uploadList[T];if(T==this._curIndex&&D.state==d.UPLOADSTATE.UPLOADING){D.state=d.UPLOADSTATE.CANCELED;var I=this._getCheckoutpoint(D);I&&I.checkpoint&&(I=I.checkpoint),I&&this._ossUpload.abort(D),this._removeCheckoutpoint(D),this.nextUpload()}else D.state!=d.UPLOADSTATE.SUCCESS&&(D.state=d.UPLOADSTATE.CANCELED);return this._reportLog("20008",D),!0}},{key:"resumeFile",value:function(T){if(this.options,T<0||T>=this._uploadList.length)return!1;var D=this._uploadList[T];return D.state==d.UPLOADSTATE.CANCELED&&(D.state=d.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(T){return this._getCheckoutpoint({file:T})}},{key:"startUpload",value:function(T){if(this._retryCount=0,this.options,this._state==d.VODSTATE.START||this._state==d.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=d.VODSTATE.END);var D=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(D),this._state=d.VODSTATE.START}},{key:"nextUpload",value:function(){var T=this.options;if(this._state==d.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var D=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(D)}else{this._state=d.VODSTATE.END;try{T.onUploadEnd&&T.onUploadEnd(D)}catch(I){console.log(I)}}}},{key:"clear",value:function(T){for(var D=this.options,I=0,k=0;k<this._uploadList.length;k++)D.uploadList[k].state==d.UPLOADSTATE.SUCCESS&&I++,this._uploadList[k].state==T&&(D.uploadList.splice(k,1),k--);D.onClear&&D.onClear(D.uploadList.length,I)}},{key:"stopUpload",value:function(){if((this._state==d.VODSTATE.START||this._state==d.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var T=this._uploadList[this._curIndex];this._state=d.VODSTATE.STOP,T.state=d.UPLOADSTATE.STOPED,this._changeState(T,d.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(T){var D=this;if(!T)return!1;var I=JSON.parse(s.default.decode(T));return!!(I.AccessKeyId&&I.AccessKeySecret&&I.SecurityToken&&I.Expiration)&&D.resumeUploadWithToken(I.AccessKeyId,I.AccessKeySecret,I.SecurityToken,I.Expiration)}},{key:"resumeUploadWithToken",value:function(T,D,I,k){if(this.options,!(T&&D&&I&&k))return!1;if(this._state!=d.VODSTATE.EXPIRE)return!1;if(this._curIndex==-1)return!1;var F="";return this._uploadList.length>this._curIndex&&(F=this._uploadList[this._curIndex]),F&&(this.init(T,D,I,k),this._state=d.VODSTATE.START,this._ossUpload=null,this._uploadCore(F,F.retry),F.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(T,D,I){if(this._curIndex==-1)return!1;if(this._state!=d.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var k=this._uploadList[this._curIndex];k.object?this._refreshSTSTokenUpload(k,T,D,I):this.setSTSToken(k,T,D,I)}}},{key:"setSTSTokenDirectlyUpload",value:function(T,D,I,k,F){if(!(D&&I&&k&&F))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var X=T;this.init(D,I,k,F),X.endpoint=X._endpoint,X.bucket=X._bucket,X.object=X._object,this._ossUpload=null,this._uploadCore(X,T.retry),T.retry=!1}},{key:"setSTSToken",value:function(T,D,I,k){if(!D||!I||!k)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var F=T.videoInfo,X={accessKeyId:D,securityToken:k,accessKeySecret:I,fileName:T.file.name,title:F.Title,requestId:T.ri,region:this.options.region};F.ImageType&&(X.imageType=F.ImageType),F.ImageExt&&(X.imageExt=F.ImageExt),F.FileSize&&(X.fileSize=F.FileSize),F.Description&&(X.description=F.Description),F.CateId&&(X.cateId=F.CateId),F.Tags&&(X.tags=F.Tags),F.TemplateGroupId&&(X.templateGroupId=F.TemplateGroupId),F.StorageLocation&&(X.storageLocation=F.StorageLocation),F.CoverURL&&(X.coverUrl=F.CoverURL),F.TransCodeMode&&(X.transCodeMode=F.TransCodeMode),F.UserData&&(X.userData=F.UserData);var U=this,K="getUploadAuth";T.videoId?(X.videoId=T.videoId,K="refreshUploadAuth"):T.isImage&&(K="getImageUploadAuth"),B.default[K](X,function(V){T.videoId=V.VideoId?V.VideoId:T.videoId,U.setUploadAuthAndAddress(T,V.UploadAuth,V.UploadAddress),U._state=d.VODSTATE.START},function(V){U._error(T,{name:V.Code,code:V.Code,message:V.Message,requestId:V.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(T,D,I,k){if(!T||!D||!I)return!1;var F=JSON.parse(s.default.decode(D));if(!(F.AccessKeyId&&F.AccessKeySecret&&F.SecurityToken&&F.Expiration))return console.error("uploadauth is invalid"),!1;var X={},U=T;if(I){if(X=JSON.parse(s.default.decode(I)),!X.Endpoint||!X.Bucket||!X.FileName)return console.error("uploadAddress is invalid"),!1}else X.Endpoint=U.endpoint,X.Bucket=U.bucket,X.FileName=U.object;this._ut="vod",this._uploadWay="vod",this.options.region=F.Region||this.options.region,this.init(F.AccessKeyId,F.AccessKeySecret,F.SecurityToken,F.Expiration),U.endpoint=U._endpoint?U._endpoint:X.Endpoint,U.bucket=U._bucket?U._bucket:X.Bucket,U.object=U._object?U._object:X.FileName,U.region=this.options.region,k&&(U.videoId=k),this._ossUpload=null,this._uploadCore(U,T.retry),T.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(T,D,I,k){if(!D||!I||!k)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var F={accessKeyId:D,securityToken:k,accessKeySecret:I,videoId:T.object,requestId:T.ri,region:this.options.region},X=this,U="refreshUploadAuth";T.isImage&&(U="getImageUploadAuth"),B.default[U](F,function(K){X.setUploadAuthAndAddress(T,K.UploadAuth,UploadAddress),X._state=d.VODSTATE.START},function(K){X._error(T,{name:K.Code,code:K.Code,message:K.Message,requestId:K.RequestId})})}},{key:"_upload",value:function(T){var D=arguments.length>1&&arguments[1]!==void 0&&arguments[1],I=this.options;if(T.retry=D,I.onUploadstarted&&!D)try{var k=this._getCheckoutpoint(T);k&&k.state!=d.UPLOADSTATE.UPLOADING&&(T.checkpoint=k,T.videoId=k.videoId),I.onUploadstarted(T)}catch(F){console.log(F)}}},{key:"_uploadCore",value:function(T){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1],!this._ossCreditor.accessKeyId||!this._ossCreditor.accessKeySecret||!this._ossCreditor.securityToken)throw new Error("AccessKeyId\u3001AccessKeySecret\u3001securityToken should not be null");if(T.state=d.UPLOADSTATE.UPLOADING,!this._ossUpload){T.endpoint=T.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var D=this;this._ossUpload=new e.default({bucket:T.bucket,endpoint:T.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(V,N){D._error.call(D,V,N)},oncomplete:function(V,N){D._complete.call(D,V,N)},onprogress:function(V,N,Q){D._progress.call(D,V,N,Q)}})}var I=A.default.getFileType(T.file.name),k=this._getCheckoutpoint(T),F="",X="";k&&k.checkpoint&&(X=k.state,F=k.videoId,k=k.checkpoint),k&&F==T.videoId&&X!=d.UPLOADSTATE.UPLOADING&&(k.file=T.file,T.checkpoint=k,k.uploadId);var U=this._adjustPartSize(T);this._reportLog("20002",T,{ft:I,fs:T.file.size,bu:T.bucket,ok:T.object,vid:T.videoId||"",fn:T.file.name,fw:null,fh:null,ps:U});var K={headers:{"x-oss-notification":T.userData?T.userData:""},partSize:U,parallel:this.options.parallel};this._ossUpload.upload(T,K)}},{key:"_findUploadIndex",value:function(){for(var T=-1,D=0;D<this._uploadList.length;D++)if(this._uploadList[D].state==d.UPLOADSTATE.INIT){T=D;break}return T}},{key:"_error",value:function(T,D){if(D.name=="cancel")try{this.options.onUploadCanceled(T,D)}catch(k){console.log(k)}else{if(D.message.indexOf("InvalidAccessKeyIdError")>0||D.name=="SignatureDoesNotMatchError"||D.code=="SecurityTokenExpired"||D.code=="InvalidSecurityToken.Expired"||D.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=d.VODSTATE.EXPIRE,T.state=d.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(T,D)}catch(k){console.log(k)}}return}if((D.name=="RequestTimeoutError"||D.name=="ConnectionTimeout"||D.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var I=this;return setTimeout(function(){I._uploadCore(T,!0)},1e3*I._retryDuration),void this._retryCount++}D.name=="NoSuchUploadError"&&this._removeCheckoutpoint(T),this._handleError(T,D)}}},{key:"_handleError",value:function(T,D){var I=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],k=d.UPLOADSTATE.FAIlURE;if(T.state!=d.UPLOADSTATE.CANCELED&&(T.state=d.UPLOADSTATE.FAIlURE,this._state=d.VODSTATE.FAILURE,this.options.onUploadFailed&&D&&D.code&&D.message))try{this.options.onUploadFailed(T,D.code,D.message)}catch(X){console.log(X)}if(I&&this._changeState(T,k),this._reportLog("20006",T,{code:D.name,message:D.message,requestId:D.requestId,fs:T.file.size,bu:T.bucket,ok:T.object,fn:T.file.name}),this._reportLog("20004",T,{requestId:D.requestId,fs:T.file.size,bu:T.bucket,ok:T.object,fn:T.file.name}),T.ri=x.default.create(),this._findUploadIndex()!=-1){var F=this;this._state=d.VODSTATE.START,setTimeout(function(){F.nextUpload()},100)}}},{key:"_complete",value:function(T,D){if(T.state=d.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(T)}catch(F){console.log(F)}var I=0;D&&D.res&&D.res.headers&&(I=D.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(T);var k=this;setTimeout(function(){k.nextUpload()},100),this._retryCount=0,this._reportLog("20003",T,{requestId:I})}},{key:"_progress",value:function(T,D,I){if(this.options.onUploadProgress)try{T.loaded=D.loaded,this.options.onUploadProgress(T,D.total,D.loaded)}catch(N){console.log(N)}var k=D.checkpoint,F=0;k&&(T.checkpoint=k,this._saveCheckoutpoint(T,k,d.UPLOADSTATE.UPLOADING),F=k.uploadId),this._retryCount=0;var X=this._getPortNumber(k),U=0;if(I&&I.headers&&(U=I.headers["x-oss-request-id"]),D.loaded!=0&&this._reportLog("20007",T,{pn:X,requestId:U}),D.loaded!=1&&this._reportLog("20005",T,{UploadId:F,pn:X+1,pr:T.retry?1:0,fs:T.file.size,bu:T.bucket,ok:T.object,fn:T.file.name}),!this._invalidUserId&&!T.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var K={file:T.file,checkpoint:D,userId:this.options.userId,videoId:T.videoId,region:this.options.region,fileHash:T.fileHash};try{var V=this;g.default.upload(K,function(){},function(N){if((N=JSON.parse(N))&&N.Code=="InvalidParameter"&&N.Message.indexOf("UserId")>0){V._invalidUserId=!0;var Q=N.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(Q)}})}catch(N){console.log(N)}}}},{key:"_getPortNumber",value:function(T){if(T){var D=T.doneParts;if(D&&D.length>0)return D[D.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(T){var D=this._getCheckoutpointKey(T);f.default.remove(D)}},{key:"_getCheckoutpoint",value:function(T){var D=this._getCheckoutpointKey(T),I=f.default.get(D);if(I)try{return JSON.parse(I)}catch(k){}return""}},{key:"_saveCheckoutpoint",value:function(T,D,I){if(D){var k=this._getCheckoutpointKey(T),F=T.file,X={fileName:F.name,lastModified:F.lastModified,size:F.size,object:T.object,videoId:T.videoId,bucket:T.bucket,endpoint:T.endpoint,checkpoint:D,loaded:T.loaded,state:I};f.default.set(k,JSON.stringify(X))}}},{key:"_changeState",value:function(T,D){var I=this._getCheckoutpoint(T);I&&((this._onbeforeunload=!0)&&(D=d.UPLOADSTATE.STOPED),this._saveCheckoutpoint(T,I.checkpoint,D))}},{key:"_getCheckoutpointKey",value:function(T){return"upload_"+T.file.lastModified+"_"+T.file.name+"_"+T.file.size}},{key:"_getCheckoutpointFromCloud",value:function(T,D,I){var k={userId:this.options.userId,uploadInfoList:[{FileName:T.file.name,FileSize:T.file.size,FileCreateTime:T.file.lastModified,FileHash:T.fileHash}],region:this.options.region};g.default.get(k,function(F){D(F)},I)}},{key:"_reportLog",value:function(T,D,I){I||(I={}),I.ri=D.ri,this._ut&&(I.ut=this._ut),this._log.log(T,I)}},{key:"_initEvent",value:function(){var T=this;window&&(window.onbeforeunload=function(D){if(T._onbeforeunload=!0,T._curIndex!=-1&&T._uploadList.length>T._curIndex){var I=T._uploadList[T._curIndex];T._changeState(I,d.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var T=0;T<this._uploadList.length;T++){var D=this._uploadList[T];D.state!=d.UPLOADSTATE.FAIlURE&&D.state!=d.UPLOADSTATE.STOPED||(D.state=d.UPLOADSTATE.INIT)}this._state=d.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(T){return T.file.size/this.options.partSize>1e4?T.file.size/9999:this.options.partSize}}]),O}());v.default=S},function(M,v,b){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},v.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(M,v,b){"use strict";function C(a){return a&&a.__esModule?a:{default:a}}function w(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var m=function(){function a(s,o){for(var f=0;f<o.length;f++){var l=o[f];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}return function(s,o,f){return o&&a(s.prototype,o),f&&a(s,f),s}}(),d=b(3),i=b(17),n=(C(i),b(1)),e=(C(n),function(){function a(s,o){if(w(this,a),s){this._config=s,this.create(this._config),this._uploadInfo=null,this._callback={};var f=function(){};this._callback.onerror=o.onerror||f,this._callback.oncomplete=o.oncomplete||f,this._callback.onprogress=o.onprogress||f}}return m(a,[{key:"create",value:function(s){if(s.endpoint=s.endpoint||this._config.endpoint,s.bucket=s.bucket||this._config.bucket,!(s.AccessKeyId&&s.AccessKeySecret&&s.endpoint&&s.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var o={accessKeyId:s.AccessKeyId,accessKeySecret:s.AccessKeySecret,stsToken:s.SecurityToken,endpoint:s.endpoint||this._config.endpoint,bucket:s.bucket||this._config.bucket,secure:!0,cname:s.cname};s.timeout&&(o.timeout=s.timeout),this.oss=new OSS.Wrapper(o)}},{key:"abort",value:function(s){if(s.checkpoint){var o=s.checkpoint.uploadId;this.oss.abortMultipartUpload(s.object,o)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(s,o){this._uploadInfo=s;var f=this,l=function(c,A,p){return function(x){f._progress(c,A,p),x()}},r={parallel:o.parallel||this._config.parallel||d.UPLOADDEFAULT.PARALLEL,partSize:o.partSize||this._config.partSize||d.UPLOADDEFAULT.PARTSIZE,progress:l};o.headers&&(r.headers=o.headers),s.checkpoint&&(r.checkpoint=s.checkpoint),s.bucket||(this.oss.options.bucket=s.bucket),s.endpoint||(this.oss.options.endpoint=s.endpoint),this.oss.multipartUpload(s.object,s.file,r).then(function(c,A){f._complete(c)}).catch(function(c){f.oss.cancel&&(f.oss&&f.oss.isCancel()?console.log("oss is cancel as error"):f.oss.cancel()),f._error(c)})}},{key:"header",value:function(s,o,f){this.oss.get(s.object).then(function(l){o(l)}).catch(function(l){f(l)})}},{key:"_progress",value:function(s,o,f){this._callback.onprogress(this._uploadInfo,{loaded:s,total:this._uploadInfo.file.size,checkpoint:o},f)}},{key:"_error",value:function(s){this._callback.onerror(this._uploadInfo,s)}},{key:"_complete",value:function(s){this._callback.oncomplete(this._uploadInfo,s)}}]),a}());v.default=e},function(M,v,b){"use strict";function C(d,i){if(!(d instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var w=function(){function d(i,n){for(var e=0;e<n.length;e++){var a=n[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,a.key,a)}}return function(i,n,e){return n&&d(i.prototype,n),e&&d(i,e),i}}(),m=function(){function d(){C(this,d)}return w(d,null,[{key:"format",value:function(i){if(arguments.length<2)return null;for(var n=arguments[1],e=1;e<arguments.length;e++){var a=new RegExp("\\{"+(e-1)+"\\}","gm");n=n.replace(a,arguments[e+1])}return{code:i,message:n}}},{key:"CODE",get:function(){return{SUCCESS:"Successful",EmptyValue:"InvalidParameter.EmptyValue",STSInvalid:"InvalidParameter.TokenInvalid",ReadFileError:"ReadFileError",FILEDUPLICATION:"FileDuplication",UploadALEADRYSTARTED:"UploadAlearyStarted"}}},{key:"MESSAGE",get:function(){return{SUCCESS:"Successful",EmptyValue:"\u53C2\u6570 {0} \u4E0D\u80FD\u4E3A\u7A7A\u3002",STSInvalid:"STS\u53C2\u6570\u975E\u6CD5\uFF0C accessKeyId\u3001accessKeySecret\u3001secretToken\u3001expireTime\u90FD\u4E0D\u80FD\u4E3A\u7A7A\u3002",ReadFileError:"\u8BFB\u53D6\u6587\u4EF6{0}{1}\u5931\u8D25.",FILEDUPLICATION:"\u6587\u4EF6\u91CD\u590D\u6DFB\u52A0 {0}",UploadALEADRYSTARTED:"\u91CD\u590D\u5F00\u59CB."}}}]),d}();v.default=m},function(M,v,b){"use strict";(function(C){function w(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var m=function(){function i(n,e){for(var a=0;a<e.length;a++){var s=e[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(n,s.key,s)}}return function(n,e,a){return e&&i(n.prototype,e),a&&i(n,a),n}}(),d=function(){function i(){w(this,i)}return m(i,null,[{key:"encode",value:function(n){return new C(n).toString("base64")}},{key:"decode",value:function(n){return new C(n,"base64").toString()}}]),i}();v.default=d}).call(v,b(19).Buffer)},function(M,v,b){"use strict";(function(C){function w(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function m(re,j){if(w()<j)throw new RangeError("Invalid typed array length");return d.TYPED_ARRAY_SUPPORT?(re=new Uint8Array(j),re.__proto__=d.prototype):(re===null&&(re=new d(j)),re.length=j),re}function d(re,j,W){if(!(d.TYPED_ARRAY_SUPPORT||this instanceof d))return new d(re,j,W);if(typeof re=="number"){if(typeof j=="string")throw new Error("If encoding is specified then the first argument must be a string");return a(this,re)}return i(this,re,j,W)}function i(re,j,W,he){if(typeof j=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&j instanceof ArrayBuffer?f(re,j,W,he):typeof j=="string"?s(re,j,W):l(re,j)}function n(re){if(typeof re!="number")throw new TypeError('"size" argument must be a number');if(re<0)throw new RangeError('"size" argument must not be negative')}function e(re,j,W,he){return n(j),j<=0?m(re,j):W!==void 0?typeof he=="string"?m(re,j).fill(W,he):m(re,j).fill(W):m(re,j)}function a(re,j){if(n(j),re=m(re,j<0?0:0|r(j)),!d.TYPED_ARRAY_SUPPORT)for(var W=0;W<j;++W)re[W]=0;return re}function s(re,j,W){if(typeof W=="string"&&W!==""||(W="utf8"),!d.isEncoding(W))throw new TypeError('"encoding" must be a valid string encoding');var he=0|A(j,W);re=m(re,he);var te=re.write(j,W);return te!==he&&(re=re.slice(0,te)),re}function o(re,j){var W=j.length<0?0:0|r(j.length);re=m(re,W);for(var he=0;he<W;he+=1)re[he]=255&j[he];return re}function f(re,j,W,he){if(j.byteLength,W<0||j.byteLength<W)throw new RangeError("'offset' is out of bounds");if(j.byteLength<W+(he||0))throw new RangeError("'length' is out of bounds");return j=W===void 0&&he===void 0?new Uint8Array(j):he===void 0?new Uint8Array(j,W):new Uint8Array(j,W,he),d.TYPED_ARRAY_SUPPORT?(re=j,re.__proto__=d.prototype):re=o(re,j),re}function l(re,j){if(d.isBuffer(j)){var W=0|r(j.length);return re=m(re,W),re.length===0||j.copy(re,0,0,W),re}if(j){if(typeof ArrayBuffer!="undefined"&&j.buffer instanceof ArrayBuffer||"length"in j)return typeof j.length!="number"||ve(j.length)?m(re,0):o(re,j);if(j.type==="Buffer"&&Te(j.data))return o(re,j.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function r(re){if(re>=w())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w().toString(16)+" bytes");return 0|re}function c(re){return+re!=re&&(re=0),d.alloc(+re)}function A(re,j){if(d.isBuffer(re))return re.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(re)||re instanceof ArrayBuffer))return re.byteLength;typeof re!="string"&&(re=""+re);var W=re.length;if(W===0)return 0;for(var he=!1;;)switch(j){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":case void 0:return me(re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*W;case"hex":return W>>>1;case"base64":return Ae(re).length;default:if(he)return me(re).length;j=(""+j).toLowerCase(),he=!0}}function p(re,j,W){var he=!1;if((j===void 0||j<0)&&(j=0),j>this.length)return"";if((W===void 0||W>this.length)&&(W=this.length),W<=0)return"";if(W>>>=0,j>>>=0,W<=j)return"";for(re||(re="utf8");;)switch(re){case"hex":return X(this,j,W);case"utf8":case"utf-8":return D(this,j,W);case"ascii":return k(this,j,W);case"latin1":case"binary":return F(this,j,W);case"base64":return T(this,j,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,j,W);default:if(he)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),he=!0}}function x(re,j,W){var he=re[j];re[j]=re[W],re[W]=he}function _(re,j,W,he,te){if(re.length===0)return-1;if(typeof W=="string"?(he=W,W=0):W>2147483647?W=2147483647:W<-2147483648&&(W=-2147483648),W=+W,isNaN(W)&&(W=te?0:re.length-1),W<0&&(W=re.length+W),W>=re.length){if(te)return-1;W=re.length-1}else if(W<0){if(!te)return-1;W=0}if(typeof j=="string"&&(j=d.from(j,he)),d.isBuffer(j))return j.length===0?-1:B(re,j,W,he,te);if(typeof j=="number")return j&=255,d.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?te?Uint8Array.prototype.indexOf.call(re,j,W):Uint8Array.prototype.lastIndexOf.call(re,j,W):B(re,[j],W,he,te);throw new TypeError("val must be string, number or Buffer")}function B(re,j,W,he,te){function ce(ct,lt){return Ie===1?ct[lt]:ct.readUInt16BE(lt*Ie)}var Ie=1,ze=re.length,_t=j.length;if(he!==void 0&&((he=String(he).toLowerCase())==="ucs2"||he==="ucs-2"||he==="utf16le"||he==="utf-16le")){if(re.length<2||j.length<2)return-1;Ie=2,ze/=2,_t/=2,W/=2}var He;if(te){var Ke=-1;for(He=W;He<ze;He++)if(ce(re,He)===ce(j,Ke===-1?0:He-Ke)){if(Ke===-1&&(Ke=He),He-Ke+1===_t)return Ke*Ie}else Ke!==-1&&(He-=He-Ke),Ke=-1}else for(W+_t>ze&&(W=ze-_t),He=W;He>=0;He--){for(var ht=!0,St=0;St<_t;St++)if(ce(re,He+St)!==ce(j,St)){ht=!1;break}if(ht)return He}return-1}function E(re,j,W,he){W=Number(W)||0;var te=re.length-W;he?(he=Number(he))>te&&(he=te):he=te;var ce=j.length;if(ce%2!=0)throw new TypeError("Invalid hex string");he>ce/2&&(he=ce/2);for(var Ie=0;Ie<he;++Ie){var ze=parseInt(j.substr(2*Ie,2),16);if(isNaN(ze))return Ie;re[W+Ie]=ze}return Ie}function g(re,j,W,he){return ae(me(j,re.length-W),re,W,he)}function h(re,j,W,he){return ae(Ee(j),re,W,he)}function u(re,j,W,he){return h(re,j,W,he)}function S(re,j,W,he){return ae(Ae(j),re,W,he)}function O(re,j,W,he){return ae(ge(j,re.length-W),re,W,he)}function T(re,j,W){return j===0&&W===re.length?oe.fromByteArray(re):oe.fromByteArray(re.slice(j,W))}function D(re,j,W){W=Math.min(re.length,W);for(var he=[],te=j;te<W;){var ce=re[te],Ie=null,ze=ce>239?4:ce>223?3:ce>191?2:1;if(te+ze<=W){var _t,He,Ke,ht;switch(ze){case 1:ce<128&&(Ie=ce);break;case 2:_t=re[te+1],(192&_t)==128&&(ht=(31&ce)<<6|63&_t)>127&&(Ie=ht);break;case 3:_t=re[te+1],He=re[te+2],(192&_t)==128&&(192&He)==128&&(ht=(15&ce)<<12|(63&_t)<<6|63&He)>2047&&(ht<55296||ht>57343)&&(Ie=ht);break;case 4:_t=re[te+1],He=re[te+2],Ke=re[te+3],(192&_t)==128&&(192&He)==128&&(192&Ke)==128&&(ht=(15&ce)<<18|(63&_t)<<12|(63&He)<<6|63&Ke)>65535&&ht<1114112&&(Ie=ht)}}Ie===null?(Ie=65533,ze=1):Ie>65535&&(Ie-=65536,he.push(Ie>>>10&1023|55296),Ie=56320|1023&Ie),he.push(Ie),te+=ze}return I(he)}function I(re){var j=re.length;if(j<=Re)return String.fromCharCode.apply(String,re);for(var W="",he=0;he<j;)W+=String.fromCharCode.apply(String,re.slice(he,he+=Re));return W}function k(re,j,W){var he="";W=Math.min(re.length,W);for(var te=j;te<W;++te)he+=String.fromCharCode(127&re[te]);return he}function F(re,j,W){var he="";W=Math.min(re.length,W);for(var te=j;te<W;++te)he+=String.fromCharCode(re[te]);return he}function X(re,j,W){var he=re.length;(!j||j<0)&&(j=0),(!W||W<0||W>he)&&(W=he);for(var te="",ce=j;ce<W;++ce)te+=_e(re[ce]);return te}function U(re,j,W){for(var he=re.slice(j,W),te="",ce=0;ce<he.length;ce+=2)te+=String.fromCharCode(he[ce]+256*he[ce+1]);return te}function K(re,j,W){if(re%1!=0||re<0)throw new RangeError("offset is not uint");if(re+j>W)throw new RangeError("Trying to access beyond buffer length")}function V(re,j,W,he,te,ce){if(!d.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(j>te||j<ce)throw new RangeError('"value" argument is out of bounds');if(W+he>re.length)throw new RangeError("Index out of range")}function N(re,j,W,he){j<0&&(j=65535+j+1);for(var te=0,ce=Math.min(re.length-W,2);te<ce;++te)re[W+te]=(j&255<<8*(he?te:1-te))>>>8*(he?te:1-te)}function Q(re,j,W,he){j<0&&(j=4294967295+j+1);for(var te=0,ce=Math.min(re.length-W,4);te<ce;++te)re[W+te]=j>>>8*(he?te:3-te)&255}function J(re,j,W,he,te,ce){if(W+he>re.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("Index out of range")}function ne(re,j,W,he,te){return te||J(re,j,W,4,34028234663852886e22,-34028234663852886e22),ie.write(re,j,W,he,23,4),W+4}function ue(re,j,W,he,te){return te||J(re,j,W,8,17976931348623157e292,-17976931348623157e292),ie.write(re,j,W,he,52,8),W+8}function be(re){if(re=de(re).replace(Me,""),re.length<2)return"";for(;re.length%4!=0;)re+="=";return re}function de(re){return re.trim?re.trim():re.replace(/^\s+|\s+$/g,"")}function _e(re){return re<16?"0"+re.toString(16):re.toString(16)}function me(re,j){j=j||1/0;for(var W,he=re.length,te=null,ce=[],Ie=0;Ie<he;++Ie){if((W=re.charCodeAt(Ie))>55295&&W<57344){if(!te){if(W>56319){(j-=3)>-1&&ce.push(239,191,189);continue}if(Ie+1===he){(j-=3)>-1&&ce.push(239,191,189);continue}te=W;continue}if(W<56320){(j-=3)>-1&&ce.push(239,191,189),te=W;continue}W=65536+(te-55296<<10|W-56320)}else te&&(j-=3)>-1&&ce.push(239,191,189);if(te=null,W<128){if((j-=1)<0)break;ce.push(W)}else if(W<2048){if((j-=2)<0)break;ce.push(W>>6|192,63&W|128)}else if(W<65536){if((j-=3)<0)break;ce.push(W>>12|224,W>>6&63|128,63&W|128)}else{if(!(W<1114112))throw new Error("Invalid code point");if((j-=4)<0)break;ce.push(W>>18|240,W>>12&63|128,W>>6&63|128,63&W|128)}}return ce}function Ee(re){for(var j=[],W=0;W<re.length;++W)j.push(255&re.charCodeAt(W));return j}function ge(re,j){for(var W,he,te,ce=[],Ie=0;Ie<re.length&&!((j-=2)<0);++Ie)W=re.charCodeAt(Ie),he=W>>8,te=W%256,ce.push(te),ce.push(he);return ce}function Ae(re){return oe.toByteArray(be(re))}function ae(re,j,W,he){for(var te=0;te<he&&!(te+W>=j.length||te>=re.length);++te)j[te+W]=re[te];return te}function ve(re){return re!==re}/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/var oe=b(21),ie=b(22),Te=b(23);v.Buffer=d,v.SlowBuffer=c,v.INSPECT_MAX_BYTES=50,d.TYPED_ARRAY_SUPPORT=C.TYPED_ARRAY_SUPPORT!==void 0?C.TYPED_ARRAY_SUPPORT:function(){try{var re=new Uint8Array(1);return re.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},re.foo()===42&&typeof re.subarray=="function"&&re.subarray(1,1).byteLength===0}catch(j){return!1}}(),v.kMaxLength=w(),d.poolSize=8192,d._augment=function(re){return re.__proto__=d.prototype,re},d.from=function(re,j,W){return i(null,re,j,W)},d.TYPED_ARRAY_SUPPORT&&(d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0})),d.alloc=function(re,j,W){return e(null,re,j,W)},d.allocUnsafe=function(re){return a(null,re)},d.allocUnsafeSlow=function(re){return a(null,re)},d.isBuffer=function(re){return!(re==null||!re._isBuffer)},d.compare=function(re,j){if(!d.isBuffer(re)||!d.isBuffer(j))throw new TypeError("Arguments must be Buffers");if(re===j)return 0;for(var W=re.length,he=j.length,te=0,ce=Math.min(W,he);te<ce;++te)if(re[te]!==j[te]){W=re[te],he=j[te];break}return W<he?-1:he<W?1:0},d.isEncoding=function(re){switch(String(re).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(re,j){if(!Te(re))throw new TypeError('"list" argument must be an Array of Buffers');if(re.length===0)return d.alloc(0);var W;if(j===void 0)for(j=0,W=0;W<re.length;++W)j+=re[W].length;var he=d.allocUnsafe(j),te=0;for(W=0;W<re.length;++W){var ce=re[W];if(!d.isBuffer(ce))throw new TypeError('"list" argument must be an Array of Buffers');ce.copy(he,te),te+=ce.length}return he},d.byteLength=A,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var re=this.length;if(re%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var j=0;j<re;j+=2)x(this,j,j+1);return this},d.prototype.swap32=function(){var re=this.length;if(re%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var j=0;j<re;j+=4)x(this,j,j+3),x(this,j+1,j+2);return this},d.prototype.swap64=function(){var re=this.length;if(re%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var j=0;j<re;j+=8)x(this,j,j+7),x(this,j+1,j+6),x(this,j+2,j+5),x(this,j+3,j+4);return this},d.prototype.toString=function(){var re=0|this.length;return re===0?"":arguments.length===0?D(this,0,re):p.apply(this,arguments)},d.prototype.equals=function(re){if(!d.isBuffer(re))throw new TypeError("Argument must be a Buffer");return this===re||d.compare(this,re)===0},d.prototype.inspect=function(){var re="",j=v.INSPECT_MAX_BYTES;return this.length>0&&(re=this.toString("hex",0,j).match(/.{2}/g).join(" "),this.length>j&&(re+=" ... ")),"<Buffer "+re+">"},d.prototype.compare=function(re,j,W,he,te){if(!d.isBuffer(re))throw new TypeError("Argument must be a Buffer");if(j===void 0&&(j=0),W===void 0&&(W=re?re.length:0),he===void 0&&(he=0),te===void 0&&(te=this.length),j<0||W>re.length||he<0||te>this.length)throw new RangeError("out of range index");if(he>=te&&j>=W)return 0;if(he>=te)return-1;if(j>=W)return 1;if(j>>>=0,W>>>=0,he>>>=0,te>>>=0,this===re)return 0;for(var ce=te-he,Ie=W-j,ze=Math.min(ce,Ie),_t=this.slice(he,te),He=re.slice(j,W),Ke=0;Ke<ze;++Ke)if(_t[Ke]!==He[Ke]){ce=_t[Ke],Ie=He[Ke];break}return ce<Ie?-1:Ie<ce?1:0},d.prototype.includes=function(re,j,W){return this.indexOf(re,j,W)!==-1},d.prototype.indexOf=function(re,j,W){return _(this,re,j,W,!0)},d.prototype.lastIndexOf=function(re,j,W){return _(this,re,j,W,!1)},d.prototype.write=function(re,j,W,he){if(j===void 0)he="utf8",W=this.length,j=0;else if(W===void 0&&typeof j=="string")he=j,W=this.length,j=0;else{if(!isFinite(j))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");j|=0,isFinite(W)?(W|=0,he===void 0&&(he="utf8")):(he=W,W=void 0)}var te=this.length-j;if((W===void 0||W>te)&&(W=te),re.length>0&&(W<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");he||(he="utf8");for(var ce=!1;;)switch(he){case"hex":return E(this,re,j,W);case"utf8":case"utf-8":return g(this,re,j,W);case"ascii":return h(this,re,j,W);case"latin1":case"binary":return u(this,re,j,W);case"base64":return S(this,re,j,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,re,j,W);default:if(ce)throw new TypeError("Unknown encoding: "+he);he=(""+he).toLowerCase(),ce=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Re=4096;d.prototype.slice=function(re,j){var W=this.length;re=~~re,j=j===void 0?W:~~j,re<0?(re+=W)<0&&(re=0):re>W&&(re=W),j<0?(j+=W)<0&&(j=0):j>W&&(j=W),j<re&&(j=re);var he;if(d.TYPED_ARRAY_SUPPORT)he=this.subarray(re,j),he.__proto__=d.prototype;else{var te=j-re;he=new d(te,void 0);for(var ce=0;ce<te;++ce)he[ce]=this[ce+re]}return he},d.prototype.readUIntLE=function(re,j,W){re|=0,j|=0,W||K(re,j,this.length);for(var he=this[re],te=1,ce=0;++ce<j&&(te*=256);)he+=this[re+ce]*te;return he},d.prototype.readUIntBE=function(re,j,W){re|=0,j|=0,W||K(re,j,this.length);for(var he=this[re+--j],te=1;j>0&&(te*=256);)he+=this[re+--j]*te;return he},d.prototype.readUInt8=function(re,j){return j||K(re,1,this.length),this[re]},d.prototype.readUInt16LE=function(re,j){return j||K(re,2,this.length),this[re]|this[re+1]<<8},d.prototype.readUInt16BE=function(re,j){return j||K(re,2,this.length),this[re]<<8|this[re+1]},d.prototype.readUInt32LE=function(re,j){return j||K(re,4,this.length),(this[re]|this[re+1]<<8|this[re+2]<<16)+16777216*this[re+3]},d.prototype.readUInt32BE=function(re,j){return j||K(re,4,this.length),16777216*this[re]+(this[re+1]<<16|this[re+2]<<8|this[re+3])},d.prototype.readIntLE=function(re,j,W){re|=0,j|=0,W||K(re,j,this.length);for(var he=this[re],te=1,ce=0;++ce<j&&(te*=256);)he+=this[re+ce]*te;return te*=128,he>=te&&(he-=Math.pow(2,8*j)),he},d.prototype.readIntBE=function(re,j,W){re|=0,j|=0,W||K(re,j,this.length);for(var he=j,te=1,ce=this[re+--he];he>0&&(te*=256);)ce+=this[re+--he]*te;return te*=128,ce>=te&&(ce-=Math.pow(2,8*j)),ce},d.prototype.readInt8=function(re,j){return j||K(re,1,this.length),128&this[re]?-1*(255-this[re]+1):this[re]},d.prototype.readInt16LE=function(re,j){j||K(re,2,this.length);var W=this[re]|this[re+1]<<8;return 32768&W?4294901760|W:W},d.prototype.readInt16BE=function(re,j){j||K(re,2,this.length);var W=this[re+1]|this[re]<<8;return 32768&W?4294901760|W:W},d.prototype.readInt32LE=function(re,j){return j||K(re,4,this.length),this[re]|this[re+1]<<8|this[re+2]<<16|this[re+3]<<24},d.prototype.readInt32BE=function(re,j){return j||K(re,4,this.length),this[re]<<24|this[re+1]<<16|this[re+2]<<8|this[re+3]},d.prototype.readFloatLE=function(re,j){return j||K(re,4,this.length),ie.read(this,re,!0,23,4)},d.prototype.readFloatBE=function(re,j){return j||K(re,4,this.length),ie.read(this,re,!1,23,4)},d.prototype.readDoubleLE=function(re,j){return j||K(re,8,this.length),ie.read(this,re,!0,52,8)},d.prototype.readDoubleBE=function(re,j){return j||K(re,8,this.length),ie.read(this,re,!1,52,8)},d.prototype.writeUIntLE=function(re,j,W,he){(re=+re,j|=0,W|=0,!he)&&V(this,re,j,W,Math.pow(2,8*W)-1,0);var te=1,ce=0;for(this[j]=255&re;++ce<W&&(te*=256);)this[j+ce]=re/te&255;return j+W},d.prototype.writeUIntBE=function(re,j,W,he){(re=+re,j|=0,W|=0,!he)&&V(this,re,j,W,Math.pow(2,8*W)-1,0);var te=W-1,ce=1;for(this[j+te]=255&re;--te>=0&&(ce*=256);)this[j+te]=re/ce&255;return j+W},d.prototype.writeUInt8=function(re,j,W){return re=+re,j|=0,W||V(this,re,j,1,255,0),d.TYPED_ARRAY_SUPPORT||(re=Math.floor(re)),this[j]=255&re,j+1},d.prototype.writeUInt16LE=function(re,j,W){return re=+re,j|=0,W||V(this,re,j,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[j]=255&re,this[j+1]=re>>>8):N(this,re,j,!0),j+2},d.prototype.writeUInt16BE=function(re,j,W){return re=+re,j|=0,W||V(this,re,j,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[j]=re>>>8,this[j+1]=255&re):N(this,re,j,!1),j+2},d.prototype.writeUInt32LE=function(re,j,W){return re=+re,j|=0,W||V(this,re,j,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[j+3]=re>>>24,this[j+2]=re>>>16,this[j+1]=re>>>8,this[j]=255&re):Q(this,re,j,!0),j+4},d.prototype.writeUInt32BE=function(re,j,W){return re=+re,j|=0,W||V(this,re,j,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[j]=re>>>24,this[j+1]=re>>>16,this[j+2]=re>>>8,this[j+3]=255&re):Q(this,re,j,!1),j+4},d.prototype.writeIntLE=function(re,j,W,he){if(re=+re,j|=0,!he){var te=Math.pow(2,8*W-1);V(this,re,j,W,te-1,-te)}var ce=0,Ie=1,ze=0;for(this[j]=255&re;++ce<W&&(Ie*=256);)re<0&&ze===0&&this[j+ce-1]!==0&&(ze=1),this[j+ce]=(re/Ie>>0)-ze&255;return j+W},d.prototype.writeIntBE=function(re,j,W,he){if(re=+re,j|=0,!he){var te=Math.pow(2,8*W-1);V(this,re,j,W,te-1,-te)}var ce=W-1,Ie=1,ze=0;for(this[j+ce]=255&re;--ce>=0&&(Ie*=256);)re<0&&ze===0&&this[j+ce+1]!==0&&(ze=1),this[j+ce]=(re/Ie>>0)-ze&255;return j+W},d.prototype.writeInt8=function(re,j,W){return re=+re,j|=0,W||V(this,re,j,1,127,-128),d.TYPED_ARRAY_SUPPORT||(re=Math.floor(re)),re<0&&(re=255+re+1),this[j]=255&re,j+1},d.prototype.writeInt16LE=function(re,j,W){return re=+re,j|=0,W||V(this,re,j,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[j]=255&re,this[j+1]=re>>>8):N(this,re,j,!0),j+2},d.prototype.writeInt16BE=function(re,j,W){return re=+re,j|=0,W||V(this,re,j,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[j]=re>>>8,this[j+1]=255&re):N(this,re,j,!1),j+2},d.prototype.writeInt32LE=function(re,j,W){return re=+re,j|=0,W||V(this,re,j,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[j]=255&re,this[j+1]=re>>>8,this[j+2]=re>>>16,this[j+3]=re>>>24):Q(this,re,j,!0),j+4},d.prototype.writeInt32BE=function(re,j,W){return re=+re,j|=0,W||V(this,re,j,4,2147483647,-2147483648),re<0&&(re=4294967295+re+1),d.TYPED_ARRAY_SUPPORT?(this[j]=re>>>24,this[j+1]=re>>>16,this[j+2]=re>>>8,this[j+3]=255&re):Q(this,re,j,!1),j+4},d.prototype.writeFloatLE=function(re,j,W){return ne(this,re,j,!0,W)},d.prototype.writeFloatBE=function(re,j,W){return ne(this,re,j,!1,W)},d.prototype.writeDoubleLE=function(re,j,W){return ue(this,re,j,!0,W)},d.prototype.writeDoubleBE=function(re,j,W){return ue(this,re,j,!1,W)},d.prototype.copy=function(re,j,W,he){if(W||(W=0),he||he===0||(he=this.length),j>=re.length&&(j=re.length),j||(j=0),he>0&&he<W&&(he=W),he===W)return 0;if(re.length===0||this.length===0)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw new RangeError("sourceStart out of bounds");if(he<0)throw new RangeError("sourceEnd out of bounds");he>this.length&&(he=this.length),re.length-j<he-W&&(he=re.length-j+W);var te,ce=he-W;if(this===re&&W<j&&j<he)for(te=ce-1;te>=0;--te)re[te+j]=this[te+W];else if(ce<1e3||!d.TYPED_ARRAY_SUPPORT)for(te=0;te<ce;++te)re[te+j]=this[te+W];else Uint8Array.prototype.set.call(re,this.subarray(W,W+ce),j);return ce},d.prototype.fill=function(re,j,W,he){if(typeof re=="string"){if(typeof j=="string"?(he=j,j=0,W=this.length):typeof W=="string"&&(he=W,W=this.length),re.length===1){var te=re.charCodeAt(0);te<256&&(re=te)}if(he!==void 0&&typeof he!="string")throw new TypeError("encoding must be a string");if(typeof he=="string"&&!d.isEncoding(he))throw new TypeError("Unknown encoding: "+he)}else typeof re=="number"&&(re&=255);if(j<0||this.length<j||this.length<W)throw new RangeError("Out of range index");if(W<=j)return this;j>>>=0,W=W===void 0?this.length:W>>>0,re||(re=0);var ce;if(typeof re=="number")for(ce=j;ce<W;++ce)this[ce]=re;else{var Ie=d.isBuffer(re)?re:me(new d(re,he).toString()),ze=Ie.length;for(ce=0;ce<W-j;++ce)this[ce+j]=Ie[ce%ze]}return this};var Me=/[^+\/0-9A-Za-z-_]/g}).call(v,b(20))},function(M,v){var b;b=function(){return this}();try{b=b||Function("return this")()||(0,eval)("this")}catch(C){typeof window=="object"&&(b=window)}M.exports=b},function(M,v,b){"use strict";function C(r){var c=r.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return r[c-2]==="="?2:r[c-1]==="="?1:0}function w(r){return 3*r.length/4-C(r)}function m(r){var c,A,p,x,_,B=r.length;x=C(r),_=new s(3*B/4-x),A=x>0?B-4:B;var E=0;for(c=0;c<A;c+=4)p=a[r.charCodeAt(c)]<<18|a[r.charCodeAt(c+1)]<<12|a[r.charCodeAt(c+2)]<<6|a[r.charCodeAt(c+3)],_[E++]=p>>16&255,_[E++]=p>>8&255,_[E++]=255&p;return x===2?(p=a[r.charCodeAt(c)]<<2|a[r.charCodeAt(c+1)]>>4,_[E++]=255&p):x===1&&(p=a[r.charCodeAt(c)]<<10|a[r.charCodeAt(c+1)]<<4|a[r.charCodeAt(c+2)]>>2,_[E++]=p>>8&255,_[E++]=255&p),_}function d(r){return e[r>>18&63]+e[r>>12&63]+e[r>>6&63]+e[63&r]}function i(r,c,A){for(var p,x=[],_=c;_<A;_+=3)p=(r[_]<<16)+(r[_+1]<<8)+r[_+2],x.push(d(p));return x.join("")}function n(r){for(var c,A=r.length,p=A%3,x="",_=[],B=0,E=A-p;B<E;B+=16383)_.push(i(r,B,B+16383>E?E:B+16383));return p===1?(c=r[A-1],x+=e[c>>2],x+=e[c<<4&63],x+="=="):p===2&&(c=(r[A-2]<<8)+r[A-1],x+=e[c>>10],x+=e[c>>4&63],x+=e[c<<2&63],x+="="),_.push(x),_.join("")}v.byteLength=w,v.toByteArray=m,v.fromByteArray=n;for(var e=[],a=[],s=typeof Uint8Array!="undefined"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,l=o.length;f<l;++f)e[f]=o[f],a[o.charCodeAt(f)]=f;a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},function(M,v){v.read=function(b,C,w,m,d){var i,n,e=8*d-m-1,a=(1<<e)-1,s=a>>1,o=-7,f=w?d-1:0,l=w?-1:1,r=b[C+f];for(f+=l,i=r&(1<<-o)-1,r>>=-o,o+=e;o>0;i=256*i+b[C+f],f+=l,o-=8);for(n=i&(1<<-o)-1,i>>=-o,o+=m;o>0;n=256*n+b[C+f],f+=l,o-=8);if(i===0)i=1-s;else{if(i===a)return n?NaN:1/0*(r?-1:1);n+=Math.pow(2,m),i-=s}return(r?-1:1)*n*Math.pow(2,i-m)},v.write=function(b,C,w,m,d,i){var n,e,a,s=8*i-d-1,o=(1<<s)-1,f=o>>1,l=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,r=m?0:i-1,c=m?1:-1,A=C<0||C===0&&1/C<0?1:0;for(C=Math.abs(C),isNaN(C)||C===1/0?(e=isNaN(C)?1:0,n=o):(n=Math.floor(Math.log(C)/Math.LN2),C*(a=Math.pow(2,-n))<1&&(n--,a*=2),C+=n+f>=1?l/a:l*Math.pow(2,1-f),C*a>=2&&(n++,a/=2),n+f>=o?(e=0,n=o):n+f>=1?(e=(C*a-1)*Math.pow(2,d),n+=f):(e=C*Math.pow(2,f-1)*Math.pow(2,d),n=0));d>=8;b[w+r]=255&e,r+=c,e/=256,d-=8);for(n=n<<d|e,s+=d;s>0;b[w+r]=255&n,r+=c,n/=256,s-=8);b[w+r-c]|=128*A}},function(M,v){var b={}.toString;M.exports=Array.isArray||function(C){return b.call(C)=="[object Array]"}},function(M,v,b){"use strict";function C(d,i){if(!(d instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var w=function(){function d(i,n){for(var e=0;e<n.length;e++){var a=n[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,a.key,a)}}return function(i,n,e){return n&&d(i.prototype,n),e&&d(i,e),i}}(),m=function(){function d(){C(this,d)}return w(d,null,[{key:"set",value:function(i,n){try{window.localStorage&&localStorage.setItem(i,n)}catch(e){window[i+"_localStorage"]=n}}},{key:"get",value:function(i){try{if(window.localStorage)return localStorage.getItem(i)}catch(n){return window[i+"_localStorage"]}return""}},{key:"remove",value:function(i){try{window.localStorage&&localStorage.removeItem(i)}catch(n){delete window[i+"_localStorage"]}}}]),d}();v.default=m},function(M,v,b){"use strict";function C(d,i){if(!(d instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var w=function(){function d(i,n){for(var e=0;e<n.length;e++){var a=n[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,a.key,a)}}return function(i,n,e){return n&&d(i.prototype,n),e&&d(i,e),i}}(),m=function(){function d(){C(this,d)}return w(d,null,[{key:"get",value:function(i){for(var n=i+"",e=document.cookie.split(";"),a=0;a<e.length;a++){var s=e[a].trim();if(s.indexOf(n)==0)return unescape(s.substring(n.length+1,s.length))}return""}},{key:"set",value:function(i,n,e){var a=new Date;a.setTime(a.getTime()+24*e*60*60*1e3);var s="expires="+a.toGMTString();document.cookie=i+"="+escape(n)+"; "+s}}]),d}();v.default=m},function(M,v,b){"use strict";function C(s){return s&&s.__esModule?s:{default:s}}function w(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var m=function(){function s(o,f){for(var l=0;l<f.length;l++){var r=f[l];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(o,r.key,r)}}return function(o,f,l){return f&&s(o.prototype,f),l&&s(o,l),o}}(),d=b(8),i=C(d),n=b(9),e=C(n),a=function(){function s(){w(this,s)}return m(s,null,[{key:"refreshUploadAuth",value:function(o,f,l){var r=(e.default.randomUUID(),e.default.randomUUID()),c={AccessKeyId:o.accessKeyId,SecurityToken:o.securityToken,Action:"RefreshUploadVideo",VideoId:o.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:r,RequestId:o.requestId},A=e.default.makeUTF8sort(c,"=","&")+"&Signature="+e.default.aliyunEncodeURI(e.default.makeChangeSiga(c,o.accessKeySecret)),p="https://vod."+o.region+".aliyuncs.com/?"+A;i.default.get(p,function(x){var x=JSON.parse(x);f&&f(x)},function(x){if(l){var _=JSON.parse(x);l(_)}})}},{key:"getUploadAuth",value:function(o,f,l){var r=(e.default.randomUUID(),e.default.randomUUID()),c={AccessKeyId:o.accessKeyId,SecurityToken:o.securityToken,Action:"CreateUploadVideo",Title:o.title,FileName:o.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:r,RequestId:o.requestId};o.fileSize&&(c.FileSize=o.fileSize),o.description&&(c.Description=o.description),o.cateId&&(c.CateId=o.cateId),o.tags&&(c.Tags=o.tags),o.templateGroupId&&(c.TemplateGroupId=o.templateGroupId),o.storageLocation&&(c.StorageLocation=o.storageLocation),o.coverUrl&&(c.CoverURL=o.coverUrl),o.transCodeMode&&(c.TransCodeMode=o.transCodeMode),o.userData&&(c.UserData=JSON.stringify(o.userData));var A=e.default.makeUTF8sort(c,"=","&")+"&Signature="+e.default.aliyunEncodeURI(e.default.makeChangeSiga(c,o.accessKeySecret)),p="https://vod."+o.region+".aliyuncs.com/?"+A;i.default.get(p,function(x){try{x=JSON.parse(x)}catch(_){if(l)return void l({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}f&&f(x)},function(x){if(l){var _={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{_=JSON.parse(x)}catch(B){}l(_)}})}},{key:"getImageUploadAuth",value:function(o,f,l){var r=(e.default.randomUUID(),e.default.randomUUID()),c={AccessKeyId:o.accessKeyId,SecurityToken:o.securityToken,Action:"CreateUploadImage",ImageType:o.imageType?o.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:r,RequestId:o.requestId};o.title&&(c.Title=o.title),o.imageExt&&(c.ImageExt=o.imageExt),o.tags&&(c.Tags=o.tags),o.storageLocation&&(c.StorageLocation=o.storageLocation);var A=e.default.makeUTF8sort(c,"=","&")+"&Signature="+e.default.aliyunEncodeURI(e.default.makeChangeSiga(c,o.accessKeySecret)),p="https://vod."+o.region+".aliyuncs.com/?"+A;i.default.get(p,function(x){x=JSON.parse(x),f&&f(x)},function(x){if(l){var _=JSON.parse(x);l(_)}})}}]),s}();v.default=a},function(M,v,b){!function(C,w,m){M.exports=v=w(b(0),b(28),b(29))}(0,function(C){return C.HmacSHA1})},function(M,v,b){!function(C,w){M.exports=v=w(b(0))}(0,function(C){return function(){var w=C,m=w.lib,d=m.WordArray,i=m.Hasher,n=w.algo,e=[],a=n.SHA1=i.extend({_doReset:function(){this._hash=new d.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(s,o){for(var f=this._hash.words,l=f[0],r=f[1],c=f[2],A=f[3],p=f[4],x=0;x<80;x++){if(x<16)e[x]=0|s[o+x];else{var _=e[x-3]^e[x-8]^e[x-14]^e[x-16];e[x]=_<<1|_>>>31}var B=(l<<5|l>>>27)+p+e[x];B+=x<20?1518500249+(r&c|~r&A):x<40?1859775393+(r^c^A):x<60?(r&c|r&A|c&A)-1894007588:(r^c^A)-899497514,p=A,A=c,c=r<<30|r>>>2,r=l,l=B}f[0]=f[0]+l|0,f[1]=f[1]+r|0,f[2]=f[2]+c|0,f[3]=f[3]+A|0,f[4]=f[4]+p|0},_doFinalize:function(){var s=this._data,o=s.words,f=8*this._nDataBytes,l=8*s.sigBytes;return o[l>>>5]|=128<<24-l%32,o[14+(l+64>>>9<<4)]=Math.floor(f/4294967296),o[15+(l+64>>>9<<4)]=f,s.sigBytes=4*o.length,this._process(),this._hash},clone:function(){var s=i.clone.call(this);return s._hash=this._hash.clone(),s}});w.SHA1=i._createHelper(a),w.HmacSHA1=i._createHmacHelper(a)}(),C.SHA1})},function(M,v,b){!function(C,w){M.exports=v=w(b(0))}(0,function(C){!function(){var w=C,m=w.lib,d=m.Base,i=w.enc,n=i.Utf8,e=w.algo;e.HMAC=d.extend({init:function(a,s){a=this._hasher=new a.init,typeof s=="string"&&(s=n.parse(s));var o=a.blockSize,f=4*o;s.sigBytes>f&&(s=a.finalize(s)),s.clamp();for(var l=this._oKey=s.clone(),r=this._iKey=s.clone(),c=l.words,A=r.words,p=0;p<o;p++)c[p]^=1549556828,A[p]^=909522486;l.sigBytes=r.sigBytes=f,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var s=this._hasher,o=s.finalize(a);return s.reset(),s.finalize(this._oKey.clone().concat(o))}})}()})},function(M,v,b){!function(C,w){M.exports=v=w(b(0))}(0,function(C){return function(){function w(e,a,s){for(var o=[],f=0,l=0;l<a;l++)if(l%4){var r=s[e.charCodeAt(l-1)]<<l%4*2,c=s[e.charCodeAt(l)]>>>6-l%4*2;o[f>>>2]|=(r|c)<<24-f%4*8,f++}return i.create(o,f)}var m=C,d=m.lib,i=d.WordArray,n=m.enc;n.Base64={stringify:function(e){var a=e.words,s=e.sigBytes,o=this._map;e.clamp();for(var f=[],l=0;l<s;l+=3)for(var r=a[l>>>2]>>>24-l%4*8&255,c=a[l+1>>>2]>>>24-(l+1)%4*8&255,A=a[l+2>>>2]>>>24-(l+2)%4*8&255,p=r<<16|c<<8|A,x=0;x<4&&l+.75*x<s;x++)f.push(o.charAt(p>>>6*(3-x)&63));var _=o.charAt(64);if(_)for(;f.length%4;)f.push(_);return f.join("")},parse:function(e){var a=e.length,s=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var f=0;f<s.length;f++)o[s.charCodeAt(f)]=f}var l=s.charAt(64);if(l){var r=e.indexOf(l);r!==-1&&(a=r)}return w(e,a,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),C.enc.Base64})},function(M,v,b){"use strict";function C(E){return E&&E.__esModule?E:{default:E}}function w(E,g){if(!(E instanceof g))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var m=function(){function E(g,h){for(var u=0;u<h.length;u++){var S=h[u];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}return function(g,h,u){return h&&E(g.prototype,h),u&&E(g,u),g}}(),d=b(8),i=C(d),n=b(7),e=C(n),a=b(4),s=C(a),o=b(6),f=C(o),l=b(1),r=C(l),c=b(9),A=C(c),p=b(2),x=b(11),_=b(10),B=function(){function E(){w(this,E)}return m(E,null,[{key:"getAuthInfo",value:function(g,h,u){var S=g+"|f#Ylm&^1TppeRhLg|"+u;return h&&(S=g+"|"+h+"|f#Ylm&^1TppeRhLg|"+u),p(_.parse(S)).toString(x)}},{key:"upload",value:function(g,h,u){var S=r.default.ISODateString(new Date),O=Math.floor(new Date().valueOf()/1e3),T=s.default.getClientId();T=s.default.setClientId(T);var D=E.getAuthInfo(g.userId,T,O),I=A.default.randomUUID(),k={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:e.default.browser.name+(e.default.browser.version||""),AppVersion:f.default.version,AuthTimestamp:O,Timestamp:S,AuthInfo:D,FileName:g.file.name,FileSize:g.file.size,FileCreateTime:g.file.lastModified,FileHash:g.fileHash,UploadId:g.checkpoint.checkpoint.uploadId,PartSize:g.checkpoint.checkpoint.partSize,DonePartsCount:g.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(g.checkpoint),UploadRatio:g.checkpoint.loaded,UserId:g.userId,VideoId:g.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:I};T&&(k.ClientId=T);var F=A.default.makeUTF8sort(k,"=","&")+"&Signature="+A.default.aliyunEncodeURI(A.default.makeChangeSiga(k,g.accessKeySecret)),X="https://vod."+g.region+".aliyuncs.com/?"+F;i.default.get(X,function(U){h&&h()},function(U){U&&(u(U),console.log(U))})}},{key:"get",value:function(g,h,u){var S=r.default.ISODateString(new Date),O=Math.floor(new Date().valueOf()/1e3),T=s.default.getClientId(),D=E.getAuthInfo(g.userId,T,O),I=A.default.randomUUID(),k={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:e.default.browser.name+(e.default.browser.version||""),AppVersion:f.default.version,AuthTimestamp:O,Timestamp:S,AuthInfo:D,UserId:g.userId,UploadInfoList:JSON.stringify(g.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:I};T&&(k.ClientId=T);var F=A.default.makeUTF8sort(k,"=","&")+"&Signature="+A.default.aliyunEncodeURI(A.default.makeChangeSiga(k,g.accessKeySecret)),X="https://vod."+g.region+".aliyuncs.com/?"+F;i.default.get(X,function(U){var K={},V=T;U=U?JSON.parse(U):{},U.UploadProgress&&U.UploadProgress.UploadProgressList&&U.UploadProgress.UploadProgressList.length>0&&(K=U.UploadProgress.UploadProgressList[0],V=K.ClientId),s.default.setClientId(V),h&&h(K)},function(U){U&&(u(U),console.log(U))})}}]),E}();v.default=B},function(M,v,b){"use strict";function C(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var w=function(){function n(e,a){for(var s=0;s<a.length;s++){var o=a[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,a,s){return a&&n(e.prototype,a),s&&n(e,s),e}}(),m=b(2),d=b(33),i=(b(11),function(){function n(){C(this,n)}return w(n,null,[{key:"getMd5",value:function(e,a,s){var o=new FileReader;o.onload=function(r){try{if(r&&r.target){var c=m(d.parse(r.target.result)),A=c.toString();a(A)}}catch(p){console.log(p)}},o.onerror=function(r){console.log(r),errorCallback(r)};var f=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,l=f.call(e,0,1024);o.readAsBinaryString(l)}}]),n}());v.default=i},function(M,v,b){!function(C,w){M.exports=v=w(b(0))}(0,function(C){return C.enc.Latin1})}])}).call(this,R("IyRk"))},pzxd:function(Ge,fe,R){var se=R("bYtY"),G=se.retrieve2,M=se.retrieve3,v=se.each,b=se.normalizeCssArray,C=se.isString,w=se.isObject,m=R("6GrX"),d=R("VpOo"),i=R("Xnb7"),n=R("fW2E"),e=R("gut8"),a=e.ContextCachedBy,s=e.WILL_BE_RESTORED,o=m.DEFAULT_FONT,f={left:1,right:1,center:1},l={top:1,bottom:1,middle:1},r=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],c={},A={};function p(V){return x(V),v(V.rich,x),V}function x(V){if(V){V.font=m.makeFont(V);var N=V.textAlign;N==="middle"&&(N="center"),V.textAlign=N==null||f[N]?N:"left";var Q=V.textVerticalAlign||V.textBaseline;Q==="center"&&(Q="middle"),V.textVerticalAlign=Q==null||l[Q]?Q:"top";var J=V.textPadding;J&&(V.textPadding=b(V.textPadding))}}function _(V,N,Q,J,ne,ue){J.rich?E(V,N,Q,J,ne,ue):B(V,N,Q,J,ne,ue)}function B(V,N,Q,J,ne,ue){"use strict";var be=S(J),de,_e=!1,me=N.__attrCachedBy===a.PLAIN_TEXT;ue!==s?(ue&&(de=ue.style,_e=!be&&me&&de),N.__attrCachedBy=be?a.NONE:a.PLAIN_TEXT):me&&(N.__attrCachedBy=a.NONE);var Ee=J.font||o;(!_e||Ee!==(de.font||o))&&(N.font=Ee);var ge=V.__computedFont;V.__styleFont!==Ee&&(V.__styleFont=Ee,ge=V.__computedFont=N.font);var Ae=J.textPadding,ae=J.textLineHeight,ve=V.__textCotentBlock;(!ve||V.__dirtyText)&&(ve=V.__textCotentBlock=m.parsePlainText(Q,ge,Ae,ae,J.truncate));var oe=ve.outerHeight,ie=ve.lines,Te=ve.lineHeight,Re=D(A,V,J,ne),Me=Re.baseX,re=Re.baseY,j=Re.textAlign||"left",W=Re.textVerticalAlign;h(N,J,ne,Me,re);var he=m.adjustTextY(re,oe,W),te=Me,ce=he;if(be||Ae){var Ie=m.getWidth(Q,ge),ze=Ie;Ae&&(ze+=Ae[1]+Ae[3]);var _t=m.adjustTextX(Me,ze,j);be&&O(V,N,J,_t,he,ze,oe),Ae&&(te=U(Me,j,Ae),ce+=Ae[0])}N.textAlign=j,N.textBaseline="middle",N.globalAlpha=J.opacity||1;for(var He=0;He<r.length;He++){var Ke=r[He],ht=Ke[0],St=Ke[1],ct=J[ht];(!_e||ct!==de[ht])&&(N[St]=n(N,St,ct||Ke[2]))}ce+=Te/2;var lt=J.textStrokeWidth,rt=_e?de.textStrokeWidth:null,Ze=!_e||lt!==rt,$e=!_e||Ze||J.textStroke!==de.textStroke,Ue=k(J.textStroke,lt),Ne=F(J.textFill);if(Ue&&(Ze&&(N.lineWidth=lt),$e&&(N.strokeStyle=Ue)),Ne&&((!_e||J.textFill!==de.textFill)&&(N.fillStyle=Ne)),ie.length===1)Ue&&N.strokeText(ie[0],te,ce),Ne&&N.fillText(ie[0],te,ce);else for(var He=0;He<ie.length;He++)Ue&&N.strokeText(ie[He],te,ce),Ne&&N.fillText(ie[He],te,ce),ce+=Te}function E(V,N,Q,J,ne,ue){ue!==s&&(N.__attrCachedBy=a.NONE);var be=V.__textCotentBlock;(!be||V.__dirtyText)&&(be=V.__textCotentBlock=m.parseRichText(Q,J)),g(V,N,be,J,ne)}function g(V,N,Q,J,ne){var ue=Q.width,be=Q.outerWidth,de=Q.outerHeight,_e=J.textPadding,me=D(A,V,J,ne),Ee=me.baseX,ge=me.baseY,Ae=me.textAlign,ae=me.textVerticalAlign;h(N,J,ne,Ee,ge);var ve=m.adjustTextX(Ee,be,Ae),oe=m.adjustTextY(ge,de,ae),ie=ve,Te=oe;_e&&(ie+=_e[3],Te+=_e[0]);var Re=ie+ue;S(J)&&O(V,N,J,ve,oe,be,de);for(var Me=0;Me<Q.lines.length;Me++){for(var re=Q.lines[Me],j=re.tokens,W=j.length,he=re.lineHeight,te=re.width,ce=0,Ie=ie,ze=Re,_t=W-1,He;ce<W&&(He=j[ce],!He.textAlign||He.textAlign==="left");)u(V,N,He,J,he,Te,Ie,"left"),te-=He.width,Ie+=He.width,ce++;for(;_t>=0&&(He=j[_t],He.textAlign==="right");)u(V,N,He,J,he,Te,ze,"right"),te-=He.width,ze-=He.width,_t--;for(Ie+=(ue-(Ie-ie)-(Re-ze)-te)/2;ce<=_t;)He=j[ce],u(V,N,He,J,he,Te,Ie+He.width/2,"center"),Ie+=He.width,ce++;Te+=he}}function h(V,N,Q,J,ne){if(Q&&N.textRotation){var ue=N.textOrigin;ue==="center"?(J=Q.width/2+Q.x,ne=Q.height/2+Q.y):ue&&(J=ue[0]+Q.x,ne=ue[1]+Q.y),V.translate(J,ne),V.rotate(-N.textRotation),V.translate(-J,-ne)}}function u(V,N,Q,J,ne,ue,be,de){var _e=J.rich[Q.styleName]||{};_e.text=Q.text;var me=Q.textVerticalAlign,Ee=ue+ne/2;me==="top"?Ee=ue+Q.height/2:me==="bottom"&&(Ee=ue+ne-Q.height/2),!Q.isLineHolder&&S(_e)&&O(V,N,_e,de==="right"?be-Q.width:de==="center"?be-Q.width/2:be,Ee-Q.height/2,Q.width,Q.height);var ge=Q.textPadding;ge&&(be=U(be,de,ge),Ee-=Q.height/2-ge[2]-Q.textHeight/2),I(N,"shadowBlur",M(_e.textShadowBlur,J.textShadowBlur,0)),I(N,"shadowColor",_e.textShadowColor||J.textShadowColor||"transparent"),I(N,"shadowOffsetX",M(_e.textShadowOffsetX,J.textShadowOffsetX,0)),I(N,"shadowOffsetY",M(_e.textShadowOffsetY,J.textShadowOffsetY,0)),I(N,"textAlign",de),I(N,"textBaseline","middle"),I(N,"font",Q.font||o);var Ae=k(_e.textStroke||J.textStroke,ve),ae=F(_e.textFill||J.textFill),ve=G(_e.textStrokeWidth,J.textStrokeWidth);Ae&&(I(N,"lineWidth",ve),I(N,"strokeStyle",Ae),N.strokeText(Q.text,be,Ee)),ae&&(I(N,"fillStyle",ae),N.fillText(Q.text,be,Ee))}function S(V){return!!(V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor)}function O(V,N,Q,J,ne,ue,be){var de=Q.textBackgroundColor,_e=Q.textBorderWidth,me=Q.textBorderColor,Ee=C(de);if(I(N,"shadowBlur",Q.textBoxShadowBlur||0),I(N,"shadowColor",Q.textBoxShadowColor||"transparent"),I(N,"shadowOffsetX",Q.textBoxShadowOffsetX||0),I(N,"shadowOffsetY",Q.textBoxShadowOffsetY||0),Ee||_e&&me){N.beginPath();var ge=Q.textBorderRadius;ge?d.buildPath(N,{x:J,y:ne,width:ue,height:be,r:ge}):N.rect(J,ne,ue,be),N.closePath()}if(Ee)if(I(N,"fillStyle",de),Q.fillOpacity!=null){var Ae=N.globalAlpha;N.globalAlpha=Q.fillOpacity*Q.opacity,N.fill(),N.globalAlpha=Ae}else N.fill();else if(w(de)){var ae=de.image;ae=i.createOrUpdateImage(ae,null,V,T,de),ae&&i.isImageReady(ae)&&N.drawImage(ae,J,ne,ue,be)}if(_e&&me)if(I(N,"lineWidth",_e),I(N,"strokeStyle",me),Q.strokeOpacity!=null){var Ae=N.globalAlpha;N.globalAlpha=Q.strokeOpacity*Q.opacity,N.stroke(),N.globalAlpha=Ae}else N.stroke()}function T(V,N){N.image=V}function D(V,N,Q,J){var ne=Q.x||0,ue=Q.y||0,be=Q.textAlign,de=Q.textVerticalAlign;if(J){var _e=Q.textPosition;if(_e instanceof Array)ne=J.x+X(_e[0],J.width),ue=J.y+X(_e[1],J.height);else{var me=N&&N.calculateTextPosition?N.calculateTextPosition(c,Q,J):m.calculateTextPosition(c,Q,J);ne=me.x,ue=me.y,be=be||me.textAlign,de=de||me.textVerticalAlign}var Ee=Q.textOffset;Ee&&(ne+=Ee[0],ue+=Ee[1])}return V=V||{},V.baseX=ne,V.baseY=ue,V.textAlign=be,V.textVerticalAlign=de,V}function I(V,N,Q){return V[N]=n(V,N,Q),V[N]}function k(V,N){return V==null||N<=0||V==="transparent"||V==="none"?null:V.image||V.colorStops?"#000":V}function F(V){return V==null||V==="none"?null:V.image||V.colorStops?"#000":V}function X(V,N){return typeof V=="string"?V.lastIndexOf("%")>=0?parseFloat(V)/100*N:parseFloat(V):V}function U(V,N,Q){return N==="right"?V-Q[1]:N==="center"?V+Q[3]/2-Q[1]/2:V+Q[3]}function K(V,N){return V!=null&&(V||N.textBackgroundColor||N.textBorderWidth&&N.textBorderColor||N.textPadding)}fe.normalizeTextStyle=p,fe.renderText=_,fe.getBoxPosition=D,fe.getStroke=k,fe.getFill=F,fe.parsePercent=X,fe.needDrawText=K},qH13:function(Ge,fe,R){var se=R("ItGF"),G=R("QBsz"),M=G.applyTransform,v=R("mFDi"),b=R("Qe9p"),C=R("6GrX"),w=R("pzxd"),m=R("ni6a"),d=R("Gev7"),i=R("Dagg"),n=R("dqUG"),e=R("y+Vt"),a=R("IMiH"),s=R("QuXc"),o=R("06Qe"),f=a.CMD,l=Math.round,r=Math.sqrt,c=Math.abs,A=Math.cos,p=Math.sin,x=Math.max;if(!se.canvasSupported){var _=",",B="progid:DXImageTransform.Microsoft",E=21600,g=E/2,h=1e5,u=1e3,S=function(Me){Me.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",Me.coordsize=E+","+E,Me.coordorigin="0,0"},O=function(Me){return String(Me).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},T=function(Me,re,j){return"rgb("+[Me,re,j].join(",")+")"},D=function(Me,re){re&&Me&&re.parentNode!==Me&&Me.appendChild(re)},I=function(Me,re){re&&Me&&re.parentNode===Me&&Me.removeChild(re)},k=function(Me,re,j){return(parseFloat(Me)||0)*h+(parseFloat(re)||0)*u+j},F=w.parsePercent,X=function(Me,re,j){var W=b.parse(re);j=+j,isNaN(j)&&(j=1),W&&(Me.color=T(W[0],W[1],W[2]),Me.opacity=j*W[3])},U=function(Me){var re=b.parse(Me);return[T(re[0],re[1],re[2]),re[3]]},K=function(Me,re,j){var W=re.fill;if(W!=null)if(W instanceof s){var he,te=0,ce=[0,0],Ie=0,ze=1,_t=j.getBoundingRect(),He=_t.width,Ke=_t.height;if(W.type==="linear"){he="gradient";var ht=j.transform,St=[W.x*He,W.y*Ke],ct=[W.x2*He,W.y2*Ke];ht&&(M(St,St,ht),M(ct,ct,ht));var lt=ct[0]-St[0],rt=ct[1]-St[1];te=Math.atan2(lt,rt)*180/Math.PI,te<0&&(te+=360),te<1e-6&&(te=0)}else{he="gradientradial";var St=[W.x*He,W.y*Ke],ht=j.transform,Ze=j.scale,$e=He,Ue=Ke;ce=[(St[0]-_t.x)/$e,(St[1]-_t.y)/Ue],ht&&M(St,St,ht),$e/=Ze[0]*E,Ue/=Ze[1]*E;var Ne=x($e,Ue);Ie=2*0/Ne,ze=2*W.r/Ne-Ie}var We=W.colorStops.slice();We.sort(function(bt,je){return bt.offset-je.offset});for(var it=We.length,yt=[],vt=[],Mt=0;Mt<it;Mt++){var Tt=We[Mt],Rt=U(Tt.color);vt.push(Tt.offset*ze+Ie+" "+Rt[0]),(Mt===0||Mt===it-1)&&yt.push(Rt)}if(it>=2){var kt=yt[0][0],Ut=yt[1][0],Bt=yt[0][1]*re.opacity,At=yt[1][1]*re.opacity;Me.type=he,Me.method="none",Me.focus="100%",Me.angle=te,Me.color=kt,Me.color2=Ut,Me.colors=vt.join(","),Me.opacity=At,Me.opacity2=Bt}he==="radial"&&(Me.focusposition=ce.join(","))}else X(Me,W,re.opacity)},V=function(Me,re){re.lineDash&&(Me.dashstyle=re.lineDash.join(" ")),re.stroke!=null&&!(re.stroke instanceof s)&&X(Me,re.stroke,re.opacity)},N=function(Me,re,j,W){var he=re==="fill",te=Me.getElementsByTagName(re)[0];j[re]!=null&&j[re]!=="none"&&(he||!he&&j.lineWidth)?(Me[he?"filled":"stroked"]="true",j[re]instanceof s&&I(Me,te),te||(te=o.createNode(re)),he?K(te,j,W):V(te,j),D(Me,te)):(Me[he?"filled":"stroked"]="false",I(Me,te))},Q=[[],[],[]],J=function(Me,re){var j=f.M,W=f.C,he=f.L,te=f.A,ce=f.Q,Ie=[],ze,_t,He,Ke,ht,St,ct=Me.data,lt=Me.len();for(Ke=0;Ke<lt;){He=ct[Ke++],_t="",ze=0;switch(He){case j:_t=" m ",ze=1,ht=ct[Ke++],St=ct[Ke++],Q[0][0]=ht,Q[0][1]=St;break;case he:_t=" l ",ze=1,ht=ct[Ke++],St=ct[Ke++],Q[0][0]=ht,Q[0][1]=St;break;case ce:case W:_t=" c ",ze=3;var rt=ct[Ke++],Ze=ct[Ke++],$e=ct[Ke++],Ue=ct[Ke++],Ne,We;He===ce?(Ne=$e,We=Ue,$e=($e+2*rt)/3,Ue=(Ue+2*Ze)/3,rt=(ht+2*rt)/3,Ze=(St+2*Ze)/3):(Ne=ct[Ke++],We=ct[Ke++]),Q[0][0]=rt,Q[0][1]=Ze,Q[1][0]=$e,Q[1][1]=Ue,Q[2][0]=Ne,Q[2][1]=We,ht=Ne,St=We;break;case te:var it=0,yt=0,vt=1,Mt=1,Tt=0;re&&(it=re[4],yt=re[5],vt=r(re[0]*re[0]+re[1]*re[1]),Mt=r(re[2]*re[2]+re[3]*re[3]),Tt=Math.atan2(-re[1]/Mt,re[0]/vt));var Rt=ct[Ke++],kt=ct[Ke++],Ut=ct[Ke++],Bt=ct[Ke++],At=ct[Ke++]+Tt,bt=ct[Ke++]+At+Tt;Ke++;var je=ct[Ke++],qe=Rt+A(At)*Ut,Ot=kt+p(At)*Bt,rt=Rt+A(bt)*Ut,Ze=kt+p(bt)*Bt,Ct=je?" wa ":" at ";Math.abs(qe-rt)<1e-4&&(Math.abs(bt-At)>.01?je&&(qe+=270/E):Math.abs(Ot-kt)<1e-4?je&&qe<Rt||!je&&qe>Rt?Ze-=270/E:Ze+=270/E:je&&Ot<kt||!je&&Ot>kt?rt+=270/E:rt-=270/E),Ie.push(Ct,l(((Rt-Ut)*vt+it)*E-g),_,l(((kt-Bt)*Mt+yt)*E-g),_,l(((Rt+Ut)*vt+it)*E-g),_,l(((kt+Bt)*Mt+yt)*E-g),_,l((qe*vt+it)*E-g),_,l((Ot*Mt+yt)*E-g),_,l((rt*vt+it)*E-g),_,l((Ze*Mt+yt)*E-g)),ht=rt,St=Ze;break;case f.R:var jt=Q[0],Vt=Q[1];jt[0]=ct[Ke++],jt[1]=ct[Ke++],Vt[0]=jt[0]+ct[Ke++],Vt[1]=jt[1]+ct[Ke++],re&&(M(jt,jt,re),M(Vt,Vt,re)),jt[0]=l(jt[0]*E-g),Vt[0]=l(Vt[0]*E-g),jt[1]=l(jt[1]*E-g),Vt[1]=l(Vt[1]*E-g),Ie.push(" m ",jt[0],_,jt[1]," l ",Vt[0],_,jt[1]," l ",Vt[0],_,Vt[1]," l ",jt[0],_,Vt[1]);break;case f.Z:Ie.push(" x ")}if(ze>0){Ie.push(_t);for(var Et=0;Et<ze;Et++){var Lt=Q[Et];re&&M(Lt,Lt,re),Ie.push(l(Lt[0]*E-g),_,l(Lt[1]*E-g),Et<ze-1?_:"")}}}return Ie.join("")};e.prototype.brushVML=function(Me){var re=this.style,j=this._vmlEl;j||(j=o.createNode("shape"),S(j),this._vmlEl=j),N(j,"fill",re,this),N(j,"stroke",re,this);var W=this.transform,he=W!=null,te=j.getElementsByTagName("stroke")[0];if(te){var ce=re.lineWidth;if(he&&!re.strokeNoScale){var Ie=W[0]*W[3]-W[1]*W[2];ce*=r(c(Ie))}te.weight=ce+"px"}var ze=this.path||(this.path=new a);this.__dirtyPath&&(ze.beginPath(),ze.subPixelOptimize=!1,this.buildPath(ze,this.shape),ze.toStatic(),this.__dirtyPath=!1),j.path=J(ze,this.transform),j.style.zIndex=k(this.zlevel,this.z,this.z2),D(Me,j),re.text!=null?this.drawRectText(Me,this.getBoundingRect()):this.removeRectText(Me)},e.prototype.onRemove=function(Me){I(Me,this._vmlEl),this.removeRectText(Me)},e.prototype.onAdd=function(Me){D(Me,this._vmlEl),this.appendRectText(Me)};var ne=function(Me){return typeof Me=="object"&&Me.tagName&&Me.tagName.toUpperCase()==="IMG"};i.prototype.brushVML=function(Me){var re=this.style,j=re.image,W,he;if(ne(j)){var te=j.src;if(te===this._imageSrc)W=this._imageWidth,he=this._imageHeight;else{var ce=j.runtimeStyle,Ie=ce.width,ze=ce.height;ce.width="auto",ce.height="auto",W=j.width,he=j.height,ce.width=Ie,ce.height=ze,this._imageSrc=te,this._imageWidth=W,this._imageHeight=he}j=te}else j===this._imageSrc&&(W=this._imageWidth,he=this._imageHeight);if(!j)return;var _t=re.x||0,He=re.y||0,Ke=re.width,ht=re.height,St=re.sWidth,ct=re.sHeight,lt=re.sx||0,rt=re.sy||0,Ze=St&&ct,$e=this._vmlEl;$e||($e=o.doc.createElement("div"),S($e),this._vmlEl=$e);var Ue=$e.style,Ne=!1,We,it=1,yt=1;if(this.transform&&(We=this.transform,it=r(We[0]*We[0]+We[1]*We[1]),yt=r(We[2]*We[2]+We[3]*We[3]),Ne=We[1]||We[2]),Ne){var vt=[_t,He],Mt=[_t+Ke,He],Tt=[_t,He+ht],Rt=[_t+Ke,He+ht];M(vt,vt,We),M(Mt,Mt,We),M(Tt,Tt,We),M(Rt,Rt,We);var kt=x(vt[0],Mt[0],Tt[0],Rt[0]),Ut=x(vt[1],Mt[1],Tt[1],Rt[1]),Bt=[];Bt.push("M11=",We[0]/it,_,"M12=",We[2]/yt,_,"M21=",We[1]/it,_,"M22=",We[3]/yt,_,"Dx=",l(_t*it+We[4]),_,"Dy=",l(He*yt+We[5])),Ue.padding="0 "+l(kt)+"px "+l(Ut)+"px 0",Ue.filter=B+".Matrix("+Bt.join("")+", SizingMethod=clip)"}else We&&(_t=_t*it+We[4],He=He*yt+We[5]),Ue.filter="",Ue.left=l(_t)+"px",Ue.top=l(He)+"px";var At=this._imageEl,bt=this._cropEl;At||(At=o.doc.createElement("div"),this._imageEl=At);var je=At.style;if(Ze){if(W&&he)je.width=l(it*W*Ke/St)+"px",je.height=l(yt*he*ht/ct)+"px";else{var qe=new Image,Ot=this;qe.onload=function(){qe.onload=null,W=qe.width,he=qe.height,je.width=l(it*W*Ke/St)+"px",je.height=l(yt*he*ht/ct)+"px",Ot._imageWidth=W,Ot._imageHeight=he,Ot._imageSrc=j},qe.src=j}bt||(bt=o.doc.createElement("div"),bt.style.overflow="hidden",this._cropEl=bt);var Ct=bt.style;Ct.width=l((Ke+lt*Ke/St)*it),Ct.height=l((ht+rt*ht/ct)*yt),Ct.filter=B+".Matrix(Dx="+-lt*Ke/St*it+",Dy="+-rt*ht/ct*yt+")",bt.parentNode||$e.appendChild(bt),At.parentNode!==bt&&bt.appendChild(At)}else je.width=l(it*Ke)+"px",je.height=l(yt*ht)+"px",$e.appendChild(At),bt&&bt.parentNode&&($e.removeChild(bt),this._cropEl=null);var jt="",Vt=re.opacity;Vt<1&&(jt+=".Alpha(opacity="+l(Vt*100)+") "),jt+=B+".AlphaImageLoader(src="+j+", SizingMethod=scale)",je.filter=jt,$e.style.zIndex=k(this.zlevel,this.z,this.z2),D(Me,$e),re.text!=null&&this.drawRectText(Me,this.getBoundingRect())},i.prototype.onRemove=function(Me){I(Me,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(Me)},i.prototype.onAdd=function(Me){D(Me,this._vmlEl),this.appendRectText(Me)};var ue="normal",be={},de=0,_e=100,me=document.createElement("div"),Ee=function(Me){var re=be[Me];if(!re){de>_e&&(de=0,be={});var j=me.style,W;try{j.font=Me,W=j.fontFamily.split(",")[0]}catch(he){}re={style:j.fontStyle||ue,variant:j.fontVariant||ue,weight:j.fontWeight||ue,size:parseFloat(j.fontSize||12)|0,family:W||"Microsoft YaHei"},be[Me]=re,de++}return re},ge;C.$override("measureText",function(Me,re){var j=o.doc;ge||(ge=j.createElement("div"),ge.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",o.doc.body.appendChild(ge));try{ge.style.font=re}catch(W){}return ge.innerHTML="",ge.appendChild(j.createTextNode(Me)),{width:ge.offsetWidth}});for(var Ae=new v,ae=function(Me,re,j,W){var he=this.style;this.__dirty&&w.normalizeTextStyle(he,!0);var te=he.text;if(te!=null&&(te+=""),!te)return;if(he.rich){var ce=C.parseRichText(te,he);te=[];for(var Ie=0;Ie<ce.lines.length;Ie++){for(var ze=ce.lines[Ie].tokens,_t=[],He=0;He<ze.length;He++)_t.push(ze[He].text);te.push(_t.join(""))}te=te.join(`
`)}var Ke,ht,St=he.textAlign,ct=he.textVerticalAlign,lt=Ee(he.font),rt=lt.style+" "+lt.variant+" "+lt.weight+" "+lt.size+'px "'+lt.family+'"';j=j||C.getBoundingRect(te,rt,St,ct,he.textPadding,he.textLineHeight);var Ze=this.transform;if(Ze&&!W&&(Ae.copy(re),Ae.applyTransform(Ze),re=Ae),W)Ke=re.x,ht=re.y;else{var $e=he.textPosition;if($e instanceof Array)Ke=re.x+F($e[0],re.width),ht=re.y+F($e[1],re.height),St=St||"left";else{var Ue=this.calculateTextPosition?this.calculateTextPosition({},he,re):C.calculateTextPosition({},he,re);Ke=Ue.x,ht=Ue.y,St=St||Ue.textAlign,ct=ct||Ue.textVerticalAlign}}Ke=C.adjustTextX(Ke,j.width,St),ht=C.adjustTextY(ht,j.height,ct),ht+=j.height/2;var Ne=o.createNode,We=this._textVmlEl,it,yt,vt;We?(vt=We.firstChild,it=vt.nextSibling,yt=it.nextSibling):(We=Ne("line"),it=Ne("path"),yt=Ne("textpath"),vt=Ne("skew"),yt.style["v-text-align"]="left",S(We),it.textpathok=!0,yt.on=!0,We.from="0 0",We.to="1000 0.05",D(We,vt),D(We,it),D(We,yt),this._textVmlEl=We);var Mt=[Ke,ht],Tt=We.style;Ze&&W?(M(Mt,Mt,Ze),vt.on=!0,vt.matrix=Ze[0].toFixed(3)+_+Ze[2].toFixed(3)+_+Ze[1].toFixed(3)+_+Ze[3].toFixed(3)+",0,0",vt.offset=(l(Mt[0])||0)+","+(l(Mt[1])||0),vt.origin="0 0",Tt.left="0px",Tt.top="0px"):(vt.on=!1,Tt.left=l(Ke)+"px",Tt.top=l(ht)+"px"),yt.string=O(te);try{yt.style.font=rt}catch(Rt){}N(We,"fill",{fill:he.textFill,opacity:he.opacity},this),N(We,"stroke",{stroke:he.textStroke,opacity:he.opacity,lineDash:he.lineDash||null},this),We.style.zIndex=k(this.zlevel,this.z,this.z2),D(Me,We)},ve=function(Me){I(Me,this._textVmlEl),this._textVmlEl=null},oe=function(Me){D(Me,this._textVmlEl)},ie=[m,d,i,e,n],Te=0;Te<ie.length;Te++){var Re=ie[Te].prototype;Re.drawRectText=ae,Re.removeRectText=ve,Re.appendRectText=oe}n.prototype.brushVML=function(Me){var re=this.style;re.text!=null?this.drawRectText(Me,{x:re.x||0,y:re.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(Me)},n.prototype.onRemove=function(Me){this.removeRectText(Me)},n.prototype.onAdd=function(Me){this.appendRectText(Me)}}},qgvg:function(Ge,fe){Ge.exports="data:image/gif;base64,R0lGODlhFAAQAOZVAD6Q33p6ezZto2VnaW5vcDuCxiYvNysvM1tdXzNij5eXlyg0QTA0OExOUWZnaS8zN19hYzFYf0Oi/Sg1QoeHh2JjZWZoaTdzrTRmljl5tzFZgDBWez6P3Tl4tjl8uzdxqWBiYys/VCUqL39/gHV2dy4yNScyPDJeiEpNTzk8P0CX6jc7PiYuNWlqaywwNDZtojAzNytDWScrLitAVUGb8Xl6eoWFhTp+wDNgjWRmZ4+QkFdZWzo9QIODgyo/Uzh3syg0QCczPmprbTRllW9wcSotMVJUVjZupDuEylBSVUGb8kxPUZGRkTd0rUGc82JkZUKe9j2M1zg7P4iIiEOj/yUpLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6N0U3Nzk1NkY5QkRGMTFFQUIzQzFDQjY5MEVFODZDMDciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6N0U3Nzk1NzA5QkRGMTFFQUIzQzFDQjY5MEVFODZDMDciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo3RTc3OTU2RDlCREYxMUVBQjNDMUNCNjkwRUU4NkMwNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3RTc3OTU2RTlCREYxMUVBQjNDMUNCNjkwRUU4NkMwNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUyAFUALAAAAAAUABAAAAd5gFWCg4RSLoSIiVUPFlNEhAwDCIoyST1TUwGCBwM6AweJPCSYmJpVCAMMgykgFRUtFKSlilVCsreZtAS4sqaJu7yzisDBvhAKyBDEvL6Iy7jNhA7BwoklKA0NRiO30bRFOzakpqiqtItPsTWbA0wWoOcrOUuEMA6TgQAh+QQFMgBVACwAAAAAFAAQAAAHeIBVgoOEISaEiIlVExlUSIQLAgmKIidOVFQAggYCNAIGiTFRmJiaVQkCC4MzHxcXHhKkpYpVN7K3mbQFuLKmibu8s4rAwb4YpBjEvL6IyrjMhB3BwolBGxEROCq30LQsQ1CkpqiqtItNsRybAkpHoOY+PxqEQC+TgQA7"},r6Bn:function(Ge,fe,R){var se=R("bYtY"),G=R("ItGF"),M=R("4fz+"),v=R("BPZU");function b(m,d){return m.zlevel===d.zlevel?m.z===d.z?m.z2-d.z2:m.z-d.z:m.zlevel-d.zlevel}var C=function(){this._roots=[],this._displayList=[],this._displayListLen=0};C.prototype={constructor:C,traverse:function(m,d){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(m,d)},getDisplayList:function(m,d){return d=d||!1,m&&this.updateDisplayList(d),this._displayList},updateDisplayList:function(m){this._displayListLen=0;for(var d=this._roots,i=this._displayList,n=0,e=d.length;n<e;n++)this._updateAndAddDisplayable(d[n],null,m);i.length=this._displayListLen,G.canvasSupported&&v(i,b)},_updateAndAddDisplayable:function(m,d,i){if(m.ignore&&!i)return;m.beforeUpdate(),m.__dirty&&m.update(),m.afterUpdate();var n=m.clipPath;if(n){d?d=d.slice():d=[];for(var e=n,a=m;e;)e.parent=a,e.updateTransform(),d.push(e),a=e,e=e.clipPath}if(m.isGroup){for(var s=m._children,o=0;o<s.length;o++){var f=s[o];m.__dirty&&(f.__dirty=!0),this._updateAndAddDisplayable(f,d,i)}m.__dirty=!1}else m.__clipPaths=d,this._displayList[this._displayListLen++]=m},addRoot:function(m){if(m.__storage===this)return;m instanceof M&&m.addChildrenToStorage(this),this.addToStorage(m),this._roots.push(m)},delRoot:function(m){if(m==null){for(var d=0;d<this._roots.length;d++){var i=this._roots[d];i instanceof M&&i.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(m instanceof Array){for(var d=0,n=m.length;d<n;d++)this.delRoot(m[d]);return}var e=se.indexOf(this._roots,m);e>=0&&(this.delFromStorage(m),this._roots.splice(e,1),m instanceof M&&m.delChildrenFromStorage(this))},addToStorage:function(m){return m&&(m.__storage=this,m.dirty(!1)),this},delFromStorage:function(m){return m&&(m.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:b};var w=C;Ge.exports=w},rA99:function(Ge,fe,R){var se=R("y+Vt"),G=R("QBsz"),M=R("Sj9i"),v=M.quadraticSubdivide,b=M.cubicSubdivide,C=M.quadraticAt,w=M.cubicAt,m=M.quadraticDerivativeAt,d=M.cubicDerivativeAt,i=[];function n(a,s,o){var f=a.cpx2,l=a.cpy2;return f===null||l===null?[(o?d:w)(a.x1,a.cpx1,a.cpx2,a.x2,s),(o?d:w)(a.y1,a.cpy1,a.cpy2,a.y2,s)]:[(o?m:C)(a.x1,a.cpx1,a.x2,s),(o?m:C)(a.y1,a.cpy1,a.y2,s)]}var e=se.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,s){var o=s.x1,f=s.y1,l=s.x2,r=s.y2,c=s.cpx1,A=s.cpy1,p=s.cpx2,x=s.cpy2,_=s.percent;if(_===0)return;a.moveTo(o,f),p==null||x==null?(_<1&&(v(o,c,l,_,i),c=i[1],l=i[2],v(f,A,r,_,i),A=i[1],r=i[2]),a.quadraticCurveTo(c,A,l,r)):(_<1&&(b(o,c,p,l,_,i),c=i[1],p=i[2],l=i[3],b(f,A,x,r,_,i),A=i[1],x=i[2],r=i[3]),a.bezierCurveTo(c,A,p,x,l,r))},pointAt:function(a){return n(this.shape,a,!1)},tangentAt:function(a){var s=n(this.shape,a,!0);return G.normalize(s,s)}});Ge.exports=e},"rAM+":function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return G});var se=R("Qw5x");function G(M,v){var b;if(typeof Symbol=="undefined"||M[Symbol.iterator]==null){if(Array.isArray(M)||(b=Object(se.a)(M))||v&&M&&typeof M.length=="number"){b&&(M=b);var C=0,w=function(){};return{s:w,n:function(){return C>=M.length?{done:!0}:{done:!1,value:M[C++]}},e:function(e){throw e},f:w}}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 m=!0,d=!1,i;return{s:function(){b=M[Symbol.iterator]()},n:function(){var e=b.next();return m=e.done,e},e:function(e){d=!0,i=e},f:function(){try{!m&&b.return!=null&&b.return()}finally{if(d)throw i}}}}},rUJ1:function(Ge,fe){const R=/[&<>"']/,se=/[&<>"']/g,G=/[<>"']|&(?!#?\w+;)/,M=/[<>"']|&(?!#?\w+;)/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},b=E=>v[E];function C(E,g){if(g){if(R.test(E))return E.replace(se,b)}else if(G.test(E))return E.replace(M,b);return E}const w=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(E){return E.replace(w,(g,h)=>(h=h.toLowerCase(),h==="colon"?":":h.charAt(0)==="#"?h.charAt(1)==="x"?String.fromCharCode(parseInt(h.substring(2),16)):String.fromCharCode(+h.substring(1)):""))}const d=/(^|[^\[])\^/g;function i(E,g){E=E.source||E,g=g||"";const h={replace:(u,S)=>(S=S.source||S,S=S.replace(d,"$1"),E=E.replace(u,S),h),getRegex:()=>new RegExp(E,g)};return h}const n=/[^\w:]/g,e=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function a(E,g,h){if(E){let u;try{u=decodeURIComponent(m(h)).replace(n,"").toLowerCase()}catch(S){return null}if(u.indexOf("javascript:")===0||u.indexOf("vbscript:")===0||u.indexOf("data:")===0)return null}g&&!e.test(h)&&(h=r(g,h));try{h=encodeURI(h).replace(/%25/g,"%")}catch(u){return null}return h}const s={},o=/^[^:]+:\/*[^/]*$/,f=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function r(E,g){s[" "+E]||(o.test(E)?s[" "+E]=E+"/":s[" "+E]=x(E,"/",!0)),E=s[" "+E];const h=E.indexOf(":")===-1;return g.substring(0,2)==="//"?h?g:E.replace(f,"$1")+g:g.charAt(0)==="/"?h?g:E.replace(l,"$1")+g:E+g}const c={exec:function(){}};function A(E){let g=1,h,u;for(;g<arguments.length;g++){h=arguments[g];for(u in h)Object.prototype.hasOwnProperty.call(h,u)&&(E[u]=h[u])}return E}function p(E,g){const h=E.replace(/\|/g,(O,T,D)=>{let I=!1,k=T;for(;--k>=0&&D[k]==="\\";)I=!I;return I?"|":" |"}),u=h.split(/ \|/);let S=0;if(u.length>g)u.splice(g);else for(;u.length<g;)u.push("");for(;S<u.length;S++)u[S]=u[S].trim().replace(/\\\|/g,"|");return u}function x(E,g,h){const u=E.length;if(u===0)return"";let S=0;for(;S<u;){const O=E.charAt(u-S-1);if(O===g&&!h)S++;else if(O!==g&&h)S++;else break}return E.substr(0,u-S)}function _(E,g){if(E.indexOf(g[1])===-1)return-1;const h=E.length;let u=0,S=0;for(;S<h;S++)if(E[S]==="\\")S++;else if(E[S]===g[0])u++;else if(E[S]===g[1]&&(u--,u<0))return S;return-1}function B(E){E&&E.sanitize&&!E.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}Ge.exports={escape:C,unescape:m,edit:i,cleanUrl:a,resolveUrl:r,noopTest:c,merge:A,splitCells:p,rtrim:x,findClosingBracket:_,checkSanitizeDeprecation:B}},rmlV:function(Ge,fe,R){var se=R("y+Vt"),G=se.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(M,v){var b=.5522848,C=v.cx,w=v.cy,m=v.rx,d=v.ry,i=m*b,n=d*b;M.moveTo(C-m,w),M.bezierCurveTo(C-m,w-n,C-i,w-d,C,w-d),M.bezierCurveTo(C+i,w-d,C+m,w-n,C+m,w),M.bezierCurveTo(C+m,w+n,C+i,w+d,C,w+d),M.bezierCurveTo(C-i,w+d,C-m,w+n,C-m,w),M.closePath()}});Ge.exports=G},sBCT:function(Ge,fe,R){"use strict";var se=R("DZo9"),G=R("8z0m"),M=R("+L6B"),v=R("2/Rp"),b=R("MXD1"),C=R("CFYs"),w=R("9og8"),m=R("2qtc"),d=R("kLXV"),i=R("miYZ"),n=R("tsqr"),e=R("y8nQ"),a=R("Vl3Y"),s=R("tJVT"),o=R("k1fw"),f=R("oBTY"),l=R("5NDa"),r=R("5rEg"),c=R("WmNS"),A=R.n(c),p=R("q1tI"),x=R.n(p),_=R("Ty5D"),B=R("55Ip"),E=R("9kvl"),g=R("kwm0"),h=R.n(g),u=R("Aky1"),S=R("h/US"),O=R("m3rI"),T=r.a.TextArea,D=1024,I=function(X,U){var K,V=U.payload||{},N=V.uploadInfo,Q=N===void 0?{}:N;switch(U.type){case"addVideo":return{videoList:[].concat(Object(f.a)(X.videoList),[{name:Q.file.name,size:Q.file.size,type:Q.file.type,fileHash:Q.fileHash,state:Q.state,videoId:Q.videoId,loaded:Q.loaded||0,title:""}])};case"removeVideo":return{videoList:X.videoList.filter(function(J){return J.name!==U.payload.name})};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:X.videoList.map(function(J){return J.name===U.payload.uploadInfo.file.name?Object(o.a)(Object(o.a)({},J),{loaded:U.payload.progressPercent,videoId:Q.videoId,fileHash:Q.fileHash}):J})};case"updateTitle":return{videoList:(K=X.videoList)===null||K===void 0?void 0:K.map(function(J){return J.name===U.payload.item.name?Object(o.a)(Object(o.a)({},J),{title:U.payload.title}):J})};default:return{videoList:[]}}},k=function(X){var U,K=X.user,V=X.globalSetting,N=X.loading,Q=X.dispatch,J=X.visible,ne=X.editData,ue=X.onCancel,be=ue===void 0?function(){}:ue,de=X.onOk,_e=de===void 0?function(){}:de,me=Object(_.i)(),Ee=a.a.useForm(),ge=Object(s.a)(Ee,1),Ae=ge[0],ae=Object(p.useReducer)(I,{videoList:[]}),ve=Object(s.a)(ae,2),oe=ve[0],ie=ve[1],Te=Object(p.useState)(!1),Re=Object(s.a)(Te,2),Me=Re[0],re=Re[1],j=Object(p.useRef)(),W=Object(p.useState)(),he=Object(s.a)(W,2),te=he[0],ce=he[1],Ie=Object(p.useState)(!1),ze=Object(s.a)(Ie,2),_t=ze[0],He=ze[1],Ke=Object(p.useState)(!1),ht=Object(s.a)(Ke,2),St=ht[0],ct=ht[1],lt=Object(p.useState)([]),rt=Object(s.a)(lt,2),Ze=rt[0],$e=rt[1],Ue=Object(p.useState)([]),Ne=Object(s.a)(Ue,2),We=Ne[0],it=Ne[1];Object(p.useEffect)(function(){if(!ne)return;He(ne.is_link),ce(ne.link),!ne.is_link&&ie({type:"addVideo",payload:{uploadInfo:{file:{name:ne.file_name},videoId:ne.video_id,loaded:100}}}),Ae.setFieldsValue({name:ne.name,description:ne.description,attachment_id:ne==null?void 0:ne.attachment_id})},[ne]);var yt=function(){var je=document.getElementById("fileUpload");je.value=""},vt=function(je){var qe;He(!1);var Ot=je.target.files[0];if(!Ot){yt();return}var Ct=Ot.name.toLowerCase();if(Ct&&Ct.indexOf(".avi")==-1&&Ct.indexOf(".flv")==-1&&Ct.indexOf(".f4v")==-1&&Ct.indexOf(".m4v")==-1&&Ct.indexOf(".mov")==-1&&Ct.indexOf(".mp4")==-1&&Ct.indexOf(".rmvb")==-1&&Ct.indexOf(".swf")==-1&&Ct.indexOf(".webm")==-1&&Ct.indexOf(".wmv")==-1){n.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),yt();return}if(Ot.size>D*1024*1024){n.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),yt();return}if((qe=oe.videoList)!==null&&qe!==void 0&&qe.find(function(jt){return jt.name===Ot.name})){n.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),yt();return}Tt(Ot)},Mt=function(je,qe){d.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:x.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",qe?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){yt(),ie({type:"removeVideo",payload:{name:je}})}})},Tt=function(je){var qe,Ot='{"Vod":{}}';if(re(!0),j.current){j.current.addFile(je,null,null,null,Ot);return}Object(u.a)((qe=K.userInfo)===null||qe===void 0?void 0:qe.login,{create:!j,addFileSuccess:function(jt){ie({type:"addVideo",payload:{uploadInfo:jt}})},onUploadProgress:function(jt,Vt,Et){var Lt=Math.ceil(Et*100);ie({type:"updateProgress",payload:{uploadInfo:jt,progressPercent:Lt}}),yt()},onUploadFailed:function(jt){n.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(jt){re(!1)},onUploadSucceed:function(jt){re(!1)},onUploadError:function(jt){re(!1)},gotUploader:function(jt){jt.addFile(je,null,null,null,Ot),j.current=jt}})},Rt=function(){var bt=Object(w.a)(A.a.mark(function je(){var qe,Ot,Ct,jt;return A.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Et.next=2,Ae.validateFields();case 2:if(!(!_t&&!((qe=oe.videoList)!==null&&qe!==void 0&&qe.length)||_t&&!te)){Et.next=5;break}return n.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),Et.abrupt("return");case 5:ct(!0),Ct=_t?{link:te}:{video_id:(Ot=oe.videoList)===null||Ot===void 0?void 0:Ot[0].videoId};debugger;return Et.next=10,_e(Object(o.a)(Object(o.a)({},Ct),{name:Ae.getFieldValue("name"),attachment_id:Ae.getFieldValue("attachment_id"),description:Ae.getFieldValue("description")}));case 10:jt=Et.sent,ct(!1),jt.id&&kt();case 13:case"end":return Et.stop()}},je)}));return function(){return bt.apply(this,arguments)}}(),kt=function(){Ae.resetFields(),ie({type:"removeAll"}),ce(null),He(null)},Ut=function(){be(),kt()},Bt={name:"file",multiple:!0,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",action:O.a.API_SERVER+"/api/attachments.json",withCredentials:!0,onRemove:function(je){it([])},onChange:function(je){var qe=je.file.status;if(qe!=="uploading",qe==="removed"&&$e(je.fileList),qe==="done"){var Ot,Ct,jt;$e(je==null||((Ot=je.fileList)===null||Ot===void 0)?void 0:Ot.slice(-1)),ie({type:"addVideo",payload:{uploadInfo:{videoId:je==null||((Ct=je.fileList[0])===null||Ct===void 0||((jt=Ct.response)===null||jt===void 0))?void 0:jt.id,loaded:100,file:Object(o.a)({},je==null?void 0:je.fileList[0])}}}),He(!1),n.b.success("".concat(je.file.name," \u6587\u4EF6\u4E0A\u4F20\u6210\u529F"))}else qe==="error"&&n.b.error("".concat(je.file.name," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"))},beforeUpload:function(je){var qe=je.size/1024/1024<1e3;return qe||n.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),qe}},At=function(){var je,qe,Ot,Ct,jt,Vt,Et,Lt,Ht,un,gn,Ar;return x.a.createElement(x.a.Fragment,null,!_t&&!!((je=oe.videoList)!==null&&je!==void 0&&je.length)&&x.a.createElement("div",{className:h.a.fileProgress},((qe=oe.videoList)===null||qe===void 0||((Ot=qe[0])===null||Ot===void 0)?void 0:Ot.loaded)==100?x.a.createElement("div",{className:"".concat(h.a.videoName," font14")},(Ct=oe.videoList)===null||Ct===void 0||((jt=Ct[0])===null||jt===void 0)?void 0:jt.name):x.a.createElement(C.a,{style:{width:"80%"},percent:(Vt=oe.videoList)===null||Vt===void 0||((Et=Vt[0])===null||Et===void 0)?void 0:Et.loaded,status:((Lt=oe.videoList)===null||Lt===void 0||((Ht=Lt[0])===null||Ht===void 0)?void 0:Ht.loaded)==100?"normal":"active"}),x.a.createElement("div",{className:h.a.fileCancel,onClick:function(){var cr,Rn,Jr,si;return Mt((cr=oe.videoList)===null||cr===void 0||((Rn=cr[0])===null||Rn===void 0)?void 0:Rn.name,((Jr=oe.videoList)===null||Jr===void 0||((si=Jr[0])===null||si===void 0)?void 0:si.loaded)==100)}},((un=oe.videoList)===null||un===void 0||((gn=un[0])===null||gn===void 0)?void 0:gn.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((Ar=oe.videoList)!==null&&Ar!==void 0&&Ar.length)&&x.a.createElement("div",{className:h.a.uploadWrap},x.a.createElement("label",{htmlFor:"fileUpload",style:{marginRight:"30px"}},x.a.createElement(G.a,Bt,x.a.createElement(v.a,{className:h.a.upload,disabled:(We==null?void 0:We.length)>0},x.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"))),x.a.createElement("label",{className:"".concat(h.a.upload," ").concat(h.a.uploadLink),onClick:function(){return He(!0)}},x.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),_t&&x.a.createElement(r.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:te,onChange:function(cr){return ce(cr.target.value)}}))};return x.a.createElement(d.a,{centered:!0,maskClosable:!1,title:ne?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:h.a.modal,visible:J,confirmLoading:St,onOk:Rt,onCancel:Ut},x.a.createElement(a.a,{form:Ae},x.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:vt,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),x.a.createElement(a.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},x.a.createElement(r.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),x.a.createElement(a.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:h.a.contentItem},At()),x.a.createElement(a.a.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},x.a.createElement(S.a,{getFileProgress:function(je){if(je.file.status==="uploading"){ct(!0);return}je.file.status==="done"&&ct(!1)}})),x.a.createElement(a.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},x.a.createElement(T,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),x.a.createElement("div",{className:"c-grey-999"},x.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),x.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",x.a.createElement(B.a,{to:"/users/".concat((U=K.userInfo)===null||U===void 0?void 0:U.login,"/videos/protocol"),target:"_blank",className:h.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),x.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),x.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),x.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"))))};fe.a=Object(E.a)(function(F){var X=F.user,U=F.loading,K=F.globalSetting;return{user:X,globalSetting:K,loading:U}})(k)},sR1s:function(Ge,fe,R){"use strict";R.d(fe,"b",function(){return v}),R.d(fe,"a",function(){return b}),R.d(fe,"c",function(){return C}),R.d(fe,"d",function(){return w});var se=R("U8pU"),G="RC_TABLE_KEY";function M(m){return m==null?[]:Array.isArray(m)?m:[m]}function v(m,d){if(!d&&typeof d!="number")return m;for(var i=M(d),n=m,e=0;e<i.length;e+=1){if(!n)return null;var a=i[e];n=n[a]}return n}function b(m){var d=[],i={};return m.forEach(function(n){for(var e=n||{},a=e.key,s=e.dataIndex,o=a||M(s).join("-")||G;i[o];)o="".concat(o,"_next");i[o]=!0,d.push(o)}),d}function C(){var m={};function d(a,s){s&&Object.keys(s).forEach(function(o){var f=s[o];f&&Object(se.a)(f)==="object"?(a[o]=a[o]||{},d(a[o],f)):a[o]=f})}for(var i=arguments.length,n=new Array(i),e=0;e<i;e++)n[e]=arguments[e];return n.forEach(function(a){d(m,a)}),m}function w(m){return m!=null}},"sW+o":function(Ge,fe,R){var se=R("SrGk"),G=R("bYtY"),M=R("SUKs"),v=R("Qe9p");function b(w,m){se.call(this,w,m,["linearGradient","radialGradient"],"__gradient_in_use__")}G.inherits(b,se),b.prototype.addWithoutUpdate=function(w,m){if(m&&m.style){var d=this;G.each(["fill","stroke"],function(i){if(m.style[i]&&(m.style[i].type==="linear"||m.style[i].type==="radial")){var n=m.style[i],e=d.getDefs(!0),a;n._dom?(a=n._dom,e.contains(n._dom)||d.addDom(a)):a=d.add(n),d.markUsed(m);var s=a.getAttribute("id");w.setAttribute(i,"url(#"+s+")")}})}},b.prototype.add=function(w){var m;if(w.type==="linear")m=this.createElement("linearGradient");else if(w.type==="radial")m=this.createElement("radialGradient");else return M("Illegal gradient type."),null;return w.id=w.id||this.nextId++,m.setAttribute("id","zr"+this._zrId+"-gradient-"+w.id),this.updateDom(w,m),this.addDom(m),m},b.prototype.update=function(w){var m=this;se.prototype.update.call(this,w,function(){var d=w.type,i=w._dom.tagName;d==="linear"&&i==="linearGradient"||d==="radial"&&i==="radialGradient"?m.updateDom(w,w._dom):(m.removeDom(w),m.add(w))})},b.prototype.updateDom=function(w,m){if(w.type==="linear")m.setAttribute("x1",w.x),m.setAttribute("y1",w.y),m.setAttribute("x2",w.x2),m.setAttribute("y2",w.y2);else if(w.type==="radial")m.setAttribute("cx",w.x),m.setAttribute("cy",w.y),m.setAttribute("r",w.r);else{M("Illegal gradient type.");return}w.global?m.setAttribute("gradientUnits","userSpaceOnUse"):m.setAttribute("gradientUnits","objectBoundingBox"),m.innerHTML="";for(var d=w.colorStops,i=0,n=d.length;i<n;++i){var e=this.createElement("stop");e.setAttribute("offset",d[i].offset*100+"%");var a=d[i].color;if(a.indexOf("rgba">-1)){var s=v.parse(a)[3],o=v.toHex(a);e.setAttribute("stop-color","#"+o),e.setAttribute("stop-opacity",s)}else e.setAttribute("stop-color",d[i].color);m.appendChild(e)}w._dom=m},b.prototype.markUsed=function(w){if(w.style){var m=w.style.fill;m&&m._dom&&se.prototype.markUsed.call(this,m._dom),m=w.style.stroke,m&&m._dom&&se.prototype.markUsed.call(this,m._dom)}};var C=b;Ge.exports=C},sboe:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return M});var se=R("q1tI"),G=R.n(se),M=se.createContext(null)},t23M:function(Ge,fe,R){"use strict";var se=R("VTBJ"),G=R("1OyB"),M=R("vuIU"),v=R("Ji7U"),b=R("LK+K"),C=R("q1tI"),w=R.n(C),m=R("m+aA"),d=R("Zm9Q"),i=R("Kwbf"),n=R("c+Xe"),e=R("bdgK"),a="rc-observer-key",s=function(o){Object(v.a)(l,o);var f=Object(b.a)(l);function l(){var r;return Object(G.a)(this,l),r=f.apply(this,arguments),r.resizeObserver=null,r.childNode=null,r.currentElement=null,r.state={width:0,height:0,offsetHeight:0,offsetWidth:0},r.onResize=function(c){var A=r.props.onResize,p=c[0].target,x=p.getBoundingClientRect(),_=x.width,B=x.height,E=p.offsetWidth,g=p.offsetHeight,h=Math.floor(_),u=Math.floor(B);if(r.state.width!==h||r.state.height!==u||r.state.offsetWidth!==E||r.state.offsetHeight!==g){var S={width:h,height:u,offsetWidth:E,offsetHeight:g};r.setState(S),A&&Promise.resolve().then(function(){A(Object(se.a)(Object(se.a)({},S),{},{offsetWidth:E,offsetHeight:g}))})}},r.setChildNode=function(c){r.childNode=c},r}return Object(M.a)(l,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var c=this.props.disabled;if(c){this.destroyObserver();return}var A=Object(m.a)(this.childNode||this),p=A!==this.currentElement;p&&(this.destroyObserver(),this.currentElement=A),!this.resizeObserver&&A&&(this.resizeObserver=new e.default(this.onResize),this.resizeObserver.observe(A))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var c=this.props.children,A=Object(d.a)(c);if(A.length>1)Object(i.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(A.length===0)return Object(i.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var p=A[0];if(C.isValidElement(p)&&Object(n.c)(p)){var x=p.ref;A[0]=C.cloneElement(p,{ref:Object(n.a)(x,this.setChildNode)})}return A.length===1?A[0]:A.map(function(_,B){return!C.isValidElement(_)||"key"in _&&_.key!==null?_:C.cloneElement(_,{key:"".concat(a,"-").concat(B)})})}}]),l}(C.Component);s.displayName="ResizeObserver",fe.a=s},tWlo:function(Ge,fe){Ge.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(Ge,fe,R){"use strict";Object.defineProperty(fe,"__esModule",{value:!0}),fe.ver=fe.clear=fe.bind=void 0;var se=R("P4Qj"),G=function(C,w){var m=(0,se.getSensor)(C);return m.bind(w),function(){m.unbind(w)}};fe.bind=G;var M=function(C){var w=(0,se.getSensor)(C);(0,se.removeSensor)(w)};fe.clear=M;var v="1.0.1";fe.ver=v},uK0f:function(Ge,fe,R){(function(se,G){Ge.exports=G()})(this,function(){"use strict";function se(G,M,v){v=v||{},v.childrenKeyName=v.childrenKeyName||"children";var b=G||[],C=[],w=0;do{var m=b.filter(function(d){return M(d,w)})[0];if(!m)break;C.push(m),b=m[v.childrenKeyName]||[],w+=1}while(b.length>0);return C}return se})},uRQ9:function(Ge,fe,R){Ge.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(Ge,fe,R){typeof window!="undefined"&&function(G,M){Ge.exports=M()}(this,function(){return function(se){var G={};function M(v){if(G[v])return G[v].exports;var b=G[v]={i:v,l:!1,exports:{}};return se[v].call(b.exports,b,b.exports,M),b.l=!0,b.exports}return M.m=se,M.c=G,M.d=function(v,b,C){M.o(v,b)||Object.defineProperty(v,b,{enumerable:!0,get:C})},M.r=function(v){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},M.t=function(v,b){if(b&1&&(v=M(v)),b&8)return v;if(b&4&&typeof v=="object"&&v&&v.__esModule)return v;var C=Object.create(null);if(M.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:v}),b&2&&typeof v!="string")for(var w in v)M.d(C,w,function(m){return v[m]}.bind(null,w));return C},M.n=function(v){var b=v&&v.__esModule?function(){return v.default}:function(){return v};return M.d(b,"a",b),b},M.o=function(v,b){return Object.prototype.hasOwnProperty.call(v,b)},M.p="/dist/",M(M.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(se,G,M){"use strict";var v=Object.prototype.hasOwnProperty,b="~";function C(){}Object.create&&(C.prototype=Object.create(null),new C().__proto__||(b=!1));function w(n,e,a){this.fn=n,this.context=e,this.once=a||!1}function m(n,e,a,s,o){if(typeof a!="function")throw new TypeError("The listener must be a function");var f=new w(a,s||n,o),l=b?b+e:e;return n._events[l]?n._events[l].fn?n._events[l]=[n._events[l],f]:n._events[l].push(f):(n._events[l]=f,n._eventsCount++),n}function d(n,e){--n._eventsCount===0?n._events=new C:delete n._events[e]}function i(){this._events=new C,this._eventsCount=0}i.prototype.eventNames=function(){var e=[],a,s;if(this._eventsCount===0)return e;for(s in a=this._events)v.call(a,s)&&e.push(b?s.slice(1):s);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(a)):e},i.prototype.listeners=function(e){var a=b?b+e:e,s=this._events[a];if(!s)return[];if(s.fn)return[s.fn];for(var o=0,f=s.length,l=new Array(f);o<f;o++)l[o]=s[o].fn;return l},i.prototype.listenerCount=function(e){var a=b?b+e:e,s=this._events[a];return s?s.fn?1:s.length:0},i.prototype.emit=function(e,a,s,o,f,l){var r=b?b+e:e;if(!this._events[r])return!1;var c=this._events[r],A=arguments.length,p,x;if(c.fn){c.once&&this.removeListener(e,c.fn,void 0,!0);switch(A){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,a),!0;case 3:return c.fn.call(c.context,a,s),!0;case 4:return c.fn.call(c.context,a,s,o),!0;case 5:return c.fn.call(c.context,a,s,o,f),!0;case 6:return c.fn.call(c.context,a,s,o,f,l),!0}for(x=1,p=new Array(A-1);x<A;x++)p[x-1]=arguments[x];c.fn.apply(c.context,p)}else{var _=c.length,B;for(x=0;x<_;x++){c[x].once&&this.removeListener(e,c[x].fn,void 0,!0);switch(A){case 1:c[x].fn.call(c[x].context);break;case 2:c[x].fn.call(c[x].context,a);break;case 3:c[x].fn.call(c[x].context,a,s);break;case 4:c[x].fn.call(c[x].context,a,s,o);break;default:if(!p)for(B=1,p=new Array(A-1);B<A;B++)p[B-1]=arguments[B];c[x].fn.apply(c[x].context,p)}}}return!0},i.prototype.on=function(e,a,s){return m(this,e,a,s,!1)},i.prototype.once=function(e,a,s){return m(this,e,a,s,!0)},i.prototype.removeListener=function(e,a,s,o){var f=b?b+e:e;if(!this._events[f])return this;if(!a)return d(this,f),this;var l=this._events[f];if(l.fn)l.fn===a&&(!o||l.once)&&(!s||l.context===s)&&d(this,f);else{for(var r=0,c=[],A=l.length;r<A;r++)(l[r].fn!==a||o&&!l[r].once||s&&l[r].context!==s)&&c.push(l[r]);c.length?this._events[f]=c.length===1?c[0]:c:d(this,f)}return this},i.prototype.removeAllListeners=function(e){var a;return e?(a=b?b+e:e,this._events[a]&&d(this,a)):(this._events=new C,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=b,i.EventEmitter=i,se.exports=i},"./node_modules/url-toolkit/src/url-toolkit.js":function(se,G,M){(function(v){var b=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,C=/^([^\/?#]*)([^]*)$/,w=/(?:\/|^)\.(?=\/)/g,m=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,d={buildAbsoluteURL:function(i,n,e){if(e=e||{},i=i.trim(),n=n.trim(),!n){if(!e.alwaysNormalize)return i;var a=d.parseURL(i);if(!a)throw new Error("Error trying to parse base URL.");return a.path=d.normalizePath(a.path),d.buildURLFromParts(a)}var s=d.parseURL(n);if(!s)throw new Error("Error trying to parse relative URL.");if(s.scheme)return e.alwaysNormalize?(s.path=d.normalizePath(s.path),d.buildURLFromParts(s)):n;var o=d.parseURL(i);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&o.path[0]!=="/"){var f=C.exec(o.path);o.netLoc=f[1],o.path=f[2]}o.netLoc&&!o.path&&(o.path="/");var l={scheme:o.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(l.netLoc=o.netLoc,s.path[0]!=="/"))if(!s.path)l.path=o.path,s.params||(l.params=o.params,s.query||(l.query=o.query));else{var r=o.path,c=r.substring(0,r.lastIndexOf("/")+1)+s.path;l.path=d.normalizePath(c)}return l.path===null&&(l.path=e.alwaysNormalize?d.normalizePath(s.path):s.path),d.buildURLFromParts(l)},parseURL:function(i){var n=b.exec(i);return n?{scheme:n[1]||"",netLoc:n[2]||"",path:n[3]||"",params:n[4]||"",query:n[5]||"",fragment:n[6]||""}:null},normalizePath:function(i){for(i=i.split("").reverse().join("").replace(w,"");i.length!==(i=i.replace(m,"")).length;);return i.split("").reverse().join("")},buildURLFromParts:function(i){return i.scheme+i.netLoc+i.path+i.params+i.query+i.fragment}};se.exports=d})(this)},"./node_modules/webworkify-webpack/index.js":function(se,G,M){function v(e){var a={};function s(f){if(a[f])return a[f].exports;var l=a[f]={i:f,l:!1,exports:{}};return e[f].call(l.exports,l,l.exports,s),l.l=!0,l.exports}s.m=e,s.c=a,s.i=function(f){return f},s.d=function(f,l,r){s.o(f,l)||Object.defineProperty(f,l,{configurable:!1,enumerable:!0,get:r})},s.r=function(f){Object.defineProperty(f,"__esModule",{value:!0})},s.n=function(f){var l=f&&f.__esModule?function(){return f.default}:function(){return f};return s.d(l,"a",l),l},s.o=function(f,l){return Object.prototype.hasOwnProperty.call(f,l)},s.p="/",s.oe=function(f){throw console.error(f),f};var o=s(s.s=ENTRY_MODULE);return o.default||o}var b="[\\.|\\-|\\+|\\w|/|@]+",C="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+b+").*?\\)";function w(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function m(e){return!isNaN(1*e)}function d(e,a,s){var o={};o[s]=[];var f=a.toString(),l=f.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!l)return o;for(var r=l[1],c=new RegExp("(\\\\n|\\W)"+w(r)+C,"g"),A;A=c.exec(f);){if(A[3]==="dll-reference")continue;o[s].push(A[3])}for(c=new RegExp("\\("+w(r)+'\\("(dll-reference\\s('+b+'))"\\)\\)'+C,"g");A=c.exec(f);)e[A[2]]||(o[s].push(A[1]),e[A[2]]=M(A[1]).m),o[A[2]]=o[A[2]]||[],o[A[2]].push(A[4]);for(var p=Object.keys(o),x=0;x<p.length;x++)for(var _=0;_<o[p[x]].length;_++)m(o[p[x]][_])&&(o[p[x]][_]=1*o[p[x]][_]);return o}function i(e){var a=Object.keys(e);return a.reduce(function(s,o){return s||e[o].length>0},!1)}function n(e,a){for(var s={main:[a]},o={main:[]},f={main:{}};i(s);)for(var l=Object.keys(s),r=0;r<l.length;r++){var c=l[r],A=s[c],p=A.pop();if(f[c]=f[c]||{},f[c][p]||!e[c][p])continue;f[c][p]=!0,o[c]=o[c]||[],o[c].push(p);for(var x=d(e,e[c][p],c),_=Object.keys(x),B=0;B<_.length;B++)s[_[B]]=s[_[B]]||[],s[_[B]]=s[_[B]].concat(x[_[B]])}return o}se.exports=function(e,a){a=a||{};var s={main:M.m},o=a.all?{main:Object.keys(s.main)}:n(s,e),f="";Object.keys(o).filter(function(p){return p!=="main"}).forEach(function(p){for(var x=0;o[p][x];)x++;o[p].push(x),s[p][x]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",f=f+"var "+p+" = ("+v.toString().replace("ENTRY_MODULE",JSON.stringify(x))+")({"+o[p].map(function(_){return""+JSON.stringify(_)+": "+s[p][_].toString()}).join(",")+`});
`}),f=f+"new (("+v.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+o.main.map(function(p){return""+JSON.stringify(p)+": "+s.main[p].toString()}).join(",")+"}))(self);";var l=new window.Blob([f],{type:"text/javascript"});if(a.bare)return l;var r=window.URL||window.webkitURL||window.mozURL||window.msURL,c=r.createObjectURL(l),A=new window.Worker(c);return A.objectURL=c,A}},"./src/config.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"hlsDefaultConfig",function(){return B}),M.d(G,"mergeConfig",function(){return g}),M.d(G,"enableStreamingMode",function(){return h});var v=M("./src/controller/abr-controller.ts"),b=M("./src/controller/audio-stream-controller.ts"),C=M("./src/controller/audio-track-controller.ts"),w=M("./src/controller/subtitle-stream-controller.ts"),m=M("./src/controller/subtitle-track-controller.ts"),d=M("./src/controller/buffer-controller.ts"),i=M("./src/controller/timeline-controller.ts"),n=M("./src/controller/cap-level-controller.ts"),e=M("./src/controller/fps-controller.ts"),a=M("./src/controller/eme-controller.ts"),s=M("./src/controller/cmcd-controller.ts"),o=M("./src/utils/xhr-loader.ts"),f=M("./src/utils/fetch-loader.ts"),l=M("./src/utils/cues.ts"),r=M("./src/utils/mediakeys-helper.ts"),c=M("./src/utils/logger.ts");function A(){return A=Object.assign||function(u){for(var S=1;S<arguments.length;S++){var O=arguments[S];for(var T in O)Object.prototype.hasOwnProperty.call(O,T)&&(u[T]=O[T])}return u},A.apply(this,arguments)}function p(u,S){var O=Object.keys(u);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(u);S&&(T=T.filter(function(D){return Object.getOwnPropertyDescriptor(u,D).enumerable})),O.push.apply(O,T)}return O}function x(u){for(var S=1;S<arguments.length;S++){var O=arguments[S]!=null?arguments[S]:{};S%2?p(Object(O),!0).forEach(function(T){_(u,T,O[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(O)):p(Object(O)).forEach(function(T){Object.defineProperty(u,T,Object.getOwnPropertyDescriptor(O,T))})}return u}function _(u,S,O){return S in u?Object.defineProperty(u,S,{value:O,enumerable:!0,configurable:!0,writable:!0}):u[S]=O,u}var B=x(x({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:o.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:v.default,bufferController:d.default,capLevelController:n.default,fpsController:e.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:r.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},E()),{},{subtitleStreamController:w.SubtitleStreamController,subtitleTrackController:m.default,timelineController:i.TimelineController,audioStreamController:b.default,audioTrackController:C.default,emeController:a.default,cmcdController:s.default});function E(){return{cueHandler:l.default,enableCEA708Captions:!0,enableWebVTT:!0,enableIMSC1:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function g(u,S){if((S.liveSyncDurationCount||S.liveMaxLatencyDurationCount)&&(S.liveSyncDuration||S.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(S.liveMaxLatencyDurationCount!==void 0&&(S.liveSyncDurationCount===void 0||S.liveMaxLatencyDurationCount<=S.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(S.liveMaxLatencyDuration!==void 0&&(S.liveSyncDuration===void 0||S.liveMaxLatencyDuration<=S.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return A({},u,S)}function h(u){var S=u.loader;if(S!==f.default&&S!==o.default)c.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),u.progressive=!1;else{var O=Object(f.fetchSupported)();O&&(u.loader=f.default,u.progressive=!0,u.enableSoftwareAES=!0,c.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/polyfills/number.ts"),b=M("./src/utils/ewma-bandwidth-estimator.ts"),C=M("./src/events.ts"),w=M("./src/utils/buffer-helper.ts"),m=M("./src/errors.ts"),d=M("./src/types/loader.ts"),i=M("./src/utils/logger.ts");function n(s,o){for(var f=0;f<o.length;f++){var l=o[f];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}function e(s,o,f){return o&&n(s.prototype,o),f&&n(s,f),s}var a=function(){function s(f){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=f;var l=f.config;this.bwEstimator=new b.default(l.abrEwmaSlowVoD,l.abrEwmaFastVoD,l.abrEwmaDefaultEstimate),this.registerListeners()}var o=s.prototype;return o.registerListeners=function(){var l=this.hls;l.on(C.Events.FRAG_LOADING,this.onFragLoading,this),l.on(C.Events.FRAG_LOADED,this.onFragLoaded,this),l.on(C.Events.FRAG_BUFFERED,this.onFragBuffered,this),l.on(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),l.on(C.Events.ERROR,this.onError,this)},o.unregisterListeners=function(){var l=this.hls;l.off(C.Events.FRAG_LOADING,this.onFragLoading,this),l.off(C.Events.FRAG_LOADED,this.onFragLoaded,this),l.off(C.Events.FRAG_BUFFERED,this.onFragBuffered,this),l.off(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),l.off(C.Events.ERROR,this.onError,this)},o.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},o.onFragLoading=function(l,r){var c=r.frag;if(c.type===d.PlaylistLevelType.MAIN&&!this.timer){var A;this.fragCurrent=c,this.partCurrent=(A=r.part)!=null?A:null,this.timer=self.setInterval(this.onCheck,100)}},o.onLevelLoaded=function(l,r){var c=this.hls.config;r.details.live?this.bwEstimator.update(c.abrEwmaSlowLive,c.abrEwmaFastLive):this.bwEstimator.update(c.abrEwmaSlowVoD,c.abrEwmaFastVoD)},o._abandonRulesCheck=function(){var l=this.fragCurrent,r=this.partCurrent,c=this.hls,A=c.autoLevelEnabled,p=c.config,x=c.media;if(!l||!x)return;var _=r?r.stats:l.stats,B=r?r.duration:l.duration;if(_.aborted){i.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!A||x.paused||!x.playbackRate||!x.readyState)return;var E=performance.now()-_.loading.start,g=Math.abs(x.playbackRate);if(E<=500*B/g)return;var h=c.levels,u=c.minAutoLevel,S=h[l.level],O=_.total||Math.max(_.loaded,Math.round(B*S.maxBitrate/8)),T=Math.max(1,_.bwEstimate?_.bwEstimate/8:_.loaded*1e3/E),D=(O-_.loaded)/T,I=x.currentTime,k=(w.BufferHelper.bufferInfo(x,I,p.maxBufferHole).end-I)/g;if(k>=2*B/g||D<=k)return;var F=Number.POSITIVE_INFINITY,X;for(X=l.level-1;X>u;X--){var U=h[X].maxBitrate;if(F=B*U/(8*.8*T),F<k)break}if(F>=D)return;var K=this.bwEstimator.getEstimate();i.logger.warn("Fragment "+l.sn+(r?" part "+r.index:"")+" of level "+l.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+X+`
Current BW estimate: `+(Object(v.isFiniteNumber)(K)?(K/1024).toFixed(3):"Unknown")+` Kb/s
Estimated load time for current fragment: `+D.toFixed(3)+` s
Estimated load time for the next fragment: `+F.toFixed(3)+` s
Time to underbuffer: `+k.toFixed(3)+" s"),c.nextLoadLevel=X,this.bwEstimator.sample(E,_.loaded),this.clearTimer(),l.loader&&(this.fragCurrent=this.partCurrent=null,l.loader.abort()),c.trigger(C.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:l,part:r,stats:_})},o.onFragLoaded=function(l,r){var c=r.frag,A=r.part;if(c.type===d.PlaylistLevelType.MAIN&&Object(v.isFiniteNumber)(c.sn)){var p=A?A.stats:c.stats,x=A?A.duration:c.duration;if(this.clearTimer(),this.lastLoadedFragLevel=c.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var _=this.hls.levels[c.level],B=(_.loaded?_.loaded.bytes:0)+p.loaded,E=(_.loaded?_.loaded.duration:0)+x;_.loaded={bytes:B,duration:E},_.realBitrate=Math.round(8*B/E)}if(c.bitrateTest){var g={stats:p,frag:c,part:A,id:c.type};this.onFragBuffered(C.Events.FRAG_BUFFERED,g),c.bitrateTest=!1}}},o.onFragBuffered=function(l,r){var c=r.frag,A=r.part,p=A?A.stats:c.stats;if(p.aborted)return;if(c.type!==d.PlaylistLevelType.MAIN||c.sn==="initSegment")return;var x=p.parsing.end-p.loading.start;this.bwEstimator.sample(x,p.loaded),p.bwEstimate=this.bwEstimator.getEstimate(),c.bitrateTest?this.bitrateTestDelay=x/1e3:this.bitrateTestDelay=0},o.onError=function(l,r){switch(r.details){case m.ErrorDetails.FRAG_LOAD_ERROR:case m.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},o.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},o.getNextABRAutoLevel=function(){var l=this.fragCurrent,r=this.partCurrent,c=this.hls,A=c.maxAutoLevel,p=c.config,x=c.minAutoLevel,_=c.media,B=r?r.duration:l?l.duration:0,E=_?_.currentTime:0,g=_&&_.playbackRate!==0?Math.abs(_.playbackRate):1,h=this.bwEstimator?this.bwEstimator.getEstimate():p.abrEwmaDefaultEstimate,u=(w.BufferHelper.bufferInfo(_,E,p.maxBufferHole).end-E)/g,S=this.findBestLevel(h,x,A,u,p.abrBandWidthFactor,p.abrBandWidthUpFactor);if(S>=0)return S;i.logger.trace((u?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var O=B?Math.min(B,p.maxStarvationDelay):p.maxStarvationDelay,T=p.abrBandWidthFactor,D=p.abrBandWidthUpFactor;if(!u){var I=this.bitrateTestDelay;if(I){var k=B?Math.min(B,p.maxLoadingDelay):p.maxLoadingDelay;O=k-I,i.logger.trace("bitrate test took "+Math.round(1e3*I)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*O)+" ms"),T=D=1}}return S=this.findBestLevel(h,x,A,u+O,T,D),Math.max(S,0)},o.findBestLevel=function(l,r,c,A,p,x){for(var _,B=this.fragCurrent,E=this.partCurrent,g=this.lastLoadedFragLevel,h=this.hls.levels,u=h[g],S=!!(u!=null&&(_=u.details)!==null&&_!==void 0&&_.live),O=u==null?void 0:u.codecSet,T=E?E.duration:B?B.duration:0,D=c;D>=r;D--){var I=h[D];if(!I||O&&I.codecSet!==O)continue;var k=I.details,F=(E?k==null?void 0:k.partTarget:k==null?void 0:k.averagetargetduration)||T,X=void 0;D<=g?X=p*l:X=x*l;var U=h[D].maxBitrate,K=U*F/X;if(i.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+D+"/"+Math.round(X)+"/"+U+"/"+F+"/"+A+"/"+K),X>U&&(!K||S&&!this.bitrateTestDelay||K<A))return D}return-1},e(s,[{key:"nextAutoLevel",get:function(){var l=this._nextAutoLevel,r=this.bwEstimator;if(l!==-1&&(!r||!r.canEstimate()))return l;var c=this.getNextABRAutoLevel();return l!==-1&&(c=Math.min(l,c)),c},set:function(l){this._nextAutoLevel=l}}]),s}();G.default=a},"./src/controller/audio-stream-controller.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/polyfills/number.ts"),b=M("./src/controller/base-stream-controller.ts"),C=M("./src/events.ts"),w=M("./src/utils/buffer-helper.ts"),m=M("./src/controller/fragment-tracker.ts"),d=M("./src/types/level.ts"),i=M("./src/types/loader.ts"),n=M("./src/loader/fragment.ts"),e=M("./src/demux/chunk-cache.ts"),a=M("./src/demux/transmuxer-interface.ts"),s=M("./src/types/transmuxer.ts"),o=M("./src/controller/fragment-finders.ts"),f=M("./src/utils/discontinuities.ts"),l=M("./src/errors.ts"),r=M("./src/utils/logger.ts");function c(){return c=Object.assign||function(B){for(var E=1;E<arguments.length;E++){var g=arguments[E];for(var h in g)Object.prototype.hasOwnProperty.call(g,h)&&(B[h]=g[h])}return B},c.apply(this,arguments)}function A(B,E){B.prototype=Object.create(E.prototype),B.prototype.constructor=B,p(B,E)}function p(B,E){return p=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},p(B,E)}var x=100,_=function(B){A(E,B);function E(h,u){var S;return S=B.call(this,h,u,"[audio-stream-controller]")||this,S.videoBuffer=null,S.videoTrackCC=-1,S.waitingVideoCC=-1,S.audioSwitch=!1,S.trackId=-1,S.waitingData=null,S.mainDetails=null,S.bufferFlushed=!1,S._registerListeners(),S}var g=E.prototype;return g.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},g._registerListeners=function(){var u=this.hls;u.on(C.Events.MEDIA_ATTACHED,this.onMediaAttached,this),u.on(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),u.on(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.on(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),u.on(C.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),u.on(C.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),u.on(C.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),u.on(C.Events.ERROR,this.onError,this),u.on(C.Events.BUFFER_RESET,this.onBufferReset,this),u.on(C.Events.BUFFER_CREATED,this.onBufferCreated,this),u.on(C.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),u.on(C.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),u.on(C.Events.FRAG_BUFFERED,this.onFragBuffered,this)},g._unregisterListeners=function(){var u=this.hls;u.off(C.Events.MEDIA_ATTACHED,this.onMediaAttached,this),u.off(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),u.off(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.off(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),u.off(C.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),u.off(C.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),u.off(C.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),u.off(C.Events.ERROR,this.onError,this),u.off(C.Events.BUFFER_RESET,this.onBufferReset,this),u.off(C.Events.BUFFER_CREATED,this.onBufferCreated,this),u.off(C.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),u.off(C.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),u.off(C.Events.FRAG_BUFFERED,this.onFragBuffered,this)},g.onInitPtsFound=function(u,S){var O=S.frag,T=S.id,D=S.initPTS;if(T==="main"){var I=O.cc;this.initPTS[O.cc]=D,this.log("InitPTS for cc: "+I+" found from main: "+D),this.videoTrackCC=I,this.state===b.State.WAITING_INIT_PTS&&this.tick()}},g.startLoad=function(u){if(!this.levels){this.startPosition=u,this.state=b.State.STOPPED;return}var S=this.lastCurrentTime;this.stopLoad(),this.setInterval(x),this.fragLoadError=0,S>0&&u===-1?(this.log("Override startPosition with lastCurrentTime @"+S.toFixed(3)),this.state=b.State.IDLE):(this.loadedmetadata=!1,this.state=b.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=u,this.tick()},g.doTick=function(){switch(this.state){case b.State.IDLE:this.doTickIdle();break;case b.State.WAITING_TRACK:{var u,S=this.levels,O=this.trackId,T=S==null||((u=S[O])===null||u===void 0)?void 0:u.details;if(T){if(this.waitForCdnTuneIn(T))break;this.state=b.State.WAITING_INIT_PTS}break}case b.State.FRAG_LOADING_WAITING_RETRY:{var D,I=performance.now(),k=this.retryDate;(!k||I>=k||(D=this.media)!==null&&D!==void 0&&D.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=b.State.IDLE);break}case b.State.WAITING_INIT_PTS:{var F=this.waitingData;if(F){var X=F.frag,U=F.part,K=F.cache,V=F.complete;if(this.initPTS[X.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=b.State.FRAG_LOADING;var N=K.flush(),Q={frag:X,part:U,payload:N,networkDetails:null};this._handleFragmentLoadProgress(Q),V&&B.prototype._handleFragmentLoadComplete.call(this,Q)}else if(this.videoTrackCC!==this.waitingVideoCC)r.logger.log("Waiting fragment cc ("+X.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var J=this.getLoadPosition(),ne=w.BufferHelper.bufferInfo(this.mediaBuffer,J,this.config.maxBufferHole),ue=Object(o.fragmentWithinToleranceTest)(ne.end,this.config.maxFragLookUpTolerance,X);ue<0&&(r.logger.log("Waiting fragment cc ("+X.cc+") @ "+X.start+" cancelled because another fragment at "+ne.end+" is needed"),this.clearWaitingFragment())}}else this.state=b.State.IDLE}}this.onTickEnd()},g.clearWaitingFragment=function(){var u=this.waitingData;u&&(this.fragmentTracker.removeFragment(u.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=b.State.IDLE)},g.onTickEnd=function(){var u=this.media;if(!u||!u.readyState)return;var S=this.mediaBuffer?this.mediaBuffer:u,O=S.buffered;!this.loadedmetadata&&O.length&&(this.loadedmetadata=!0),this.lastCurrentTime=u.currentTime},g.doTickIdle=function(){var u,S,O=this.hls,T=this.levels,D=this.media,I=this.trackId,k=O.config;if(!T||!T[I])return;if(!D&&(this.startFragRequested||!k.startFragPrefetch))return;var F=T[I],X=F.details;if(!X||X.live&&this.levelLastLoaded!==I||this.waitForCdnTuneIn(X)){this.state=b.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,n.ElementaryStreamTypes.AUDIO,i.PlaylistLevelType.AUDIO));var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,i.PlaylistLevelType.AUDIO);if(U===null)return;var K=U.len,V=this.getMaxBufferLength(),N=this.audioSwitch;if(K>=V&&!N)return;if(!N&&this._streamEnded(U,X)){O.trigger(C.Events.BUFFER_EOS,{type:"audio"}),this.state=b.State.ENDED;return}var Q=X.fragments,J=Q[0].start,ne=U.end;if(N){var ue=this.getLoadPosition();ne=ue,X.PTSKnown&&ue<J&&((U.end>J||U.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),D.currentTime=J+.05))}var be=this.getNextFragment(ne,X);if(!be){this.bufferFlushed=!0;return}((u=be.decryptdata)===null||u===void 0?void 0:u.keyFormat)==="identity"&&!((S=be.decryptdata)!==null&&S!==void 0&&S.key)?this.loadKey(be,X):this.loadFragment(be,X,ne)},g.getMaxBufferLength=function(){var u=B.prototype.getMaxBufferLength.call(this),S=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,i.PlaylistLevelType.MAIN);return S===null?u:Math.max(u,S.len)},g.onMediaDetaching=function(){this.videoBuffer=null,B.prototype.onMediaDetaching.call(this)},g.onAudioTracksUpdated=function(u,S){var O=S.audioTracks;this.resetTransmuxer(),this.levels=O.map(function(T){return new d.Level(T)})},g.onAudioTrackSwitching=function(u,S){var O=!!S.url;this.trackId=S.id;var T=this.fragCurrent;T!=null&&T.loader&&T.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),O?this.setInterval(x):this.resetTransmuxer(),O?(this.audioSwitch=!0,this.state=b.State.IDLE):this.state=b.State.STOPPED,this.tick()},g.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},g.onLevelLoaded=function(u,S){this.mainDetails=S.details},g.onAudioTrackLoaded=function(u,S){var O,T=this.levels,D=S.details,I=S.id;if(!T){this.warn("Audio tracks were reset while loading level "+I);return}this.log("Track "+I+" loaded ["+D.startSN+","+D.endSN+"],duration:"+D.totalduration);var k=T[I],F=0;if(D.live||(O=k.details)!==null&&O!==void 0&&O.live){var X=this.mainDetails;if(D.fragments[0]||(D.deltaUpdateFailed=!0),D.deltaUpdateFailed||!X)return;!k.details&&D.hasProgramDateTime&&X.hasProgramDateTime?(Object(f.alignMediaPlaylistByPDT)(D,X),F=D.fragments[0].start):F=this.alignPlaylists(D,k.details)}k.details=D,this.levelLastLoaded=I,!this.startFragRequested&&(this.mainDetails||!D.live)&&this.setStartPosition(k.details,F),this.state===b.State.WAITING_TRACK&&!this.waitForCdnTuneIn(D)&&(this.state=b.State.IDLE),this.tick()},g._handleFragmentLoadProgress=function(u){var S,O=u.frag,T=u.part,D=u.payload,I=this.config,k=this.trackId,F=this.levels;if(!F){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+O.sn+" of level "+O.level+" will not be buffered");return}var X=F[k];console.assert(X,"Audio track is defined on fragment load progress");var U=X.details;console.assert(U,"Audio track details are defined on fragment load progress");var K=I.defaultAudioCodec||X.audioCodec||"mp4a.40.2",V=this.transmuxer;V||(V=this.transmuxer=new a.default(this.hls,i.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var N=this.initPTS[O.cc],Q=(S=O.initSegment)===null||S===void 0?void 0:S.data;if(N!==void 0){var J=!1,ne=T?T.index:-1,ue=ne!==-1,be=new s.ChunkMetadata(O.level,O.sn,O.stats.chunkCount,D.byteLength,ne,ue);V.push(D,Q,K,"",O,T,U.totalduration,J,be,N)}else{r.logger.log("Unknown video PTS for cc "+O.cc+", waiting for video PTS before demuxing audio frag "+O.sn+" of ["+U.startSN+" ,"+U.endSN+"],track "+k);var de=this.waitingData=this.waitingData||{frag:O,part:T,cache:new e.default,complete:!1},_e=de.cache;_e.push(new Uint8Array(D)),this.waitingVideoCC=this.videoTrackCC,this.state=b.State.WAITING_INIT_PTS}},g._handleFragmentLoadComplete=function(u){if(this.waitingData){this.waitingData.complete=!0;return}B.prototype._handleFragmentLoadComplete.call(this,u)},g.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},g.onBufferCreated=function(u,S){var O=S.tracks.audio;O&&(this.mediaBuffer=O.buffer),S.tracks.video&&(this.videoBuffer=S.tracks.video.buffer)},g.onFragBuffered=function(u,S){var O=S.frag,T=S.part;if(O.type!==i.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(O)){this.warn("Fragment "+O.sn+(T?" p: "+T.index:"")+" of level "+O.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}O.sn!=="initSegment"&&(this.fragPrevious=O,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(C.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(O,T)},g.onError=function(u,S){switch(S.details){case l.ErrorDetails.FRAG_LOAD_ERROR:case l.ErrorDetails.FRAG_LOAD_TIMEOUT:case l.ErrorDetails.KEY_LOAD_ERROR:case l.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(i.PlaylistLevelType.AUDIO,S);break;case l.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case l.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==b.State.ERROR&&this.state!==b.State.STOPPED&&(this.state=S.fatal?b.State.ERROR:b.State.IDLE,this.warn(S.details+" while loading frag, switching to "+this.state+" state"));break;case l.ErrorDetails.BUFFER_FULL_ERROR:if(S.parent==="audio"&&(this.state===b.State.PARSING||this.state===b.State.PARSED)){var O=!0,T=this.getFwdBufferInfo(this.mediaBuffer,i.PlaylistLevelType.AUDIO);T&&T.len>.5&&(O=!this.reduceMaxBufferLength(T.len)),O&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,B.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},g.onBufferFlushed=function(u,S){var O=S.type;O===n.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},g._handleTransmuxComplete=function(u){var S,O="audio",T=this.hls,D=u.remuxResult,I=u.chunkMeta,k=this.getCurrentContext(I);if(!k){this.warn("The loading context changed while buffering fragment "+I.sn+" of level "+I.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(I.level);return}var F=k.frag,X=k.part,U=D.audio,K=D.text,V=D.id3,N=D.initSegment;if(this.fragContextChanged(F))return;if(this.state=b.State.PARSING,this.audioSwitch&&U&&this.completeAudioSwitch(),N!=null&&N.tracks&&(this._bufferInitSegment(N.tracks,F,I),T.trigger(C.Events.FRAG_PARSING_INIT_SEGMENT,{frag:F,id:O,tracks:N.tracks})),U){var Q=U.startPTS,J=U.endPTS,ne=U.startDTS,ue=U.endDTS;X&&(X.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:Q,endPTS:J,startDTS:ne,endDTS:ue}),F.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,Q,J,ne,ue),this.bufferFragmentData(U,F,X,I)}if(V!=null&&(S=V.samples)!==null&&S!==void 0&&S.length){var be=c({frag:F,id:O},V);T.trigger(C.Events.FRAG_PARSING_METADATA,be)}if(K){var de=c({frag:F,id:O},K);T.trigger(C.Events.FRAG_PARSING_USERDATA,de)}},g._bufferInitSegment=function(u,S,O){if(this.state!==b.State.PARSING)return;u.video&&delete u.video;var T=u.audio;if(!T)return;T.levelCodec=T.codec,T.id="audio",this.log("Init audio buffer, container:"+T.container+", codecs[parsed]=["+T.codec+"]"),this.hls.trigger(C.Events.BUFFER_CODECS,u);var D=T.initSegment;if(D!=null&&D.byteLength){var I={type:"audio",frag:S,part:null,chunkMeta:O,parent:S.type,data:D};this.hls.trigger(C.Events.BUFFER_APPENDING,I)}this.tick()},g.loadFragment=function(u,S,O){var T=this.fragmentTracker.getState(u);this.fragCurrent=u,(this.audioSwitch||T===m.FragmentState.NOT_LOADED||T===m.FragmentState.PARTIAL)&&(u.sn==="initSegment"?this._loadInitSegment(u):S.live&&!Object(v.isFiniteNumber)(this.initPTS[u.cc])?(this.log("Waiting for video PTS in continuity counter "+u.cc+" of live stream before loading audio fragment "+u.sn+" of level "+this.trackId),this.state=b.State.WAITING_INIT_PTS):(this.startFragRequested=!0,B.prototype.loadFragment.call(this,u,S,O)))},g.completeAudioSwitch=function(){var u=this.hls,S=this.media,O=this.trackId;S&&(this.log("Switching audio track : flushing all audio"),B.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,u.trigger(C.Events.AUDIO_TRACK_SWITCHED,{id:O})},E}(b.default);G.default=_},"./src/controller/audio-track-controller.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/events.ts"),b=M("./src/errors.ts"),C=M("./src/controller/base-playlist-controller.ts"),w=M("./src/types/loader.ts");function m(a,s){for(var o=0;o<s.length;o++){var f=s[o];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}function d(a,s,o){return s&&m(a.prototype,s),o&&m(a,o),a}function i(a,s){a.prototype=Object.create(s.prototype),a.prototype.constructor=a,n(a,s)}function n(a,s){return n=Object.setPrototypeOf||function(f,l){return f.__proto__=l,f},n(a,s)}var e=function(a){i(s,a);function s(f){var l;return l=a.call(this,f,"[audio-track-controller]")||this,l.tracks=[],l.groupId=null,l.tracksInGroup=[],l.trackId=-1,l.trackName="",l.selectDefaultTrack=!0,l.registerListeners(),l}var o=s.prototype;return o.registerListeners=function(){var l=this.hls;l.on(v.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.on(v.Events.MANIFEST_PARSED,this.onManifestParsed,this),l.on(v.Events.LEVEL_LOADING,this.onLevelLoading,this),l.on(v.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),l.on(v.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),l.on(v.Events.ERROR,this.onError,this)},o.unregisterListeners=function(){var l=this.hls;l.off(v.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.off(v.Events.MANIFEST_PARSED,this.onManifestParsed,this),l.off(v.Events.LEVEL_LOADING,this.onLevelLoading,this),l.off(v.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),l.off(v.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),l.off(v.Events.ERROR,this.onError,this)},o.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,a.prototype.destroy.call(this)},o.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},o.onManifestParsed=function(l,r){this.tracks=r.audioTracks||[]},o.onAudioTrackLoaded=function(l,r){var c=r.id,A=r.details,p=this.tracksInGroup[c];if(!p){this.warn("Invalid audio track id "+c);return}var x=p.details;p.details=r.details,this.log("audioTrack "+c+" loaded ["+A.startSN+"-"+A.endSN+"]"),c===this.trackId&&(this.retryCount=0,this.playlistLoaded(c,r,x))},o.onLevelLoading=function(l,r){this.switchLevel(r.level)},o.onLevelSwitching=function(l,r){this.switchLevel(r.level)},o.switchLevel=function(l){var r=this.hls.levels[l];if(!(r!=null&&r.audioGroupIds))return;var c=r.audioGroupIds[r.urlId];if(this.groupId!==c){this.groupId=c;var A=this.tracks.filter(function(x){return!c||x.groupId===c});this.selectDefaultTrack&&!A.some(function(x){return x.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=A;var p={audioTracks:A};this.log("Updating audio tracks, "+A.length+' track(s) found in "'+c+'" group-id'),this.hls.trigger(v.Events.AUDIO_TRACKS_UPDATED,p),this.selectInitialTrack()}},o.onError=function(l,r){if(a.prototype.onError.call(this,l,r),r.fatal||!r.context)return;r.context.type===w.PlaylistContextType.AUDIO_TRACK&&r.context.id===this.trackId&&r.context.groupId===this.groupId&&this.retryLoadingOrFail(r)},o.setAudioTrack=function(l){var r=this.tracksInGroup;if(l<0||l>=r.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var c=r[this.trackId];this.log("Now switching to audio-track index "+l);var A=r[l],p=A.id,x=A.groupId,_=x===void 0?"":x,B=A.name,E=A.type,g=A.url;if(this.trackId=l,this.trackName=B,this.selectDefaultTrack=!1,this.hls.trigger(v.Events.AUDIO_TRACK_SWITCHING,{id:p,groupId:_,name:B,type:E,url:g}),A.details&&!A.details.live)return;var h=this.switchParams(A.url,c==null?void 0:c.details);this.loadPlaylist(h)},o.selectInitialTrack=function(){var l=this.tracksInGroup;console.assert(l.length,"Initial audio track should be selected when tracks are known");var r=this.trackName,c=this.findTrackId(r)||this.findTrackId();c!==-1?this.setAudioTrack(c):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(v.Events.ERROR,{type:b.ErrorTypes.MEDIA_ERROR,details:b.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},o.findTrackId=function(l){for(var r=this.tracksInGroup,c=0;c<r.length;c++){var A=r[c];if((!this.selectDefaultTrack||A.default)&&(!l||l===A.name))return A.id}return-1},o.loadPlaylist=function(l){var r=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(r)){var c=r.id,A=r.groupId,p=r.url;if(l)try{p=l.addDirectives(p)}catch(x){this.warn("Could not construct new URL with HLS Delivery Directives: "+x)}this.log("loading audio-track playlist for id: "+c),this.clearTimer(),this.hls.trigger(v.Events.AUDIO_TRACK_LOADING,{url:p,id:c,groupId:A,deliveryDirectives:l||null})}},d(s,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(l){this.selectDefaultTrack=!1,this.setAudioTrack(l)}}]),s}(C.default);G.default=e},"./src/controller/base-playlist-controller.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return d});var v=M("./src/polyfills/number.ts"),b=M("./src/types/level.ts"),C=M("./src/controller/level-helper.ts"),w=M("./src/utils/logger.ts"),m=M("./src/errors.ts"),d=function(){function i(e,a){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=w.logger.log.bind(w.logger,a+":"),this.warn=w.logger.warn.bind(w.logger,a+":"),this.hls=e}var n=i.prototype;return n.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},n.onError=function(a,s){s.fatal&&s.type===m.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},n.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},n.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},n.stopLoad=function(){this.canLoad=!1,this.clearTimer()},n.switchParams=function(a,s){var o=s==null?void 0:s.renditionReports;if(o)for(var f=0;f<o.length;f++){var l=o[f],r=""+l.URI;if(r===a.substr(-r.length)){var c=parseInt(l["LAST-MSN"]),A=parseInt(l["LAST-PART"]);if(s&&this.hls.config.lowLatencyMode){var p=Math.min(s.age-s.partTarget,s.targetduration);A!==void 0&&p>s.partTarget&&(A+=1)}if(Object(v.isFiniteNumber)(c))return new b.HlsUrlParameters(c,Object(v.isFiniteNumber)(A)?A:void 0,b.HlsSkip.No)}}},n.loadPlaylist=function(a){},n.shouldLoadTrack=function(a){return this.canLoad&&a&&!!a.url&&(!a.details||a.details.live)},n.playlistLoaded=function(a,s,o){var f=this,l=s.details,r=s.stats,c=r.loading.end?Math.max(0,self.performance.now()-r.loading.end):0;if(l.advancedDateTime=Date.now()-c,l.live||o!=null&&o.live){if(l.reloaded(o),o&&this.log("live playlist "+a+" "+(l.advanced?"REFRESHED "+l.lastPartSn+"-"+l.lastPartIndex:"MISSED")),o&&l.fragments.length>0&&Object(C.mergeDetails)(o,l),!this.canLoad||!l.live)return;var A,p=void 0,x=void 0;if(l.canBlockReload&&l.endSN&&l.advanced){var _=this.hls.config.lowLatencyMode,B=l.lastPartSn,E=l.endSN,g=l.lastPartIndex,h=g!==-1,u=B===E,S=_?0:g;h?(p=u?E+1:B,x=u?S:g+1):p=E+1;var O=l.age,T=O+l.ageHeader,D=Math.min(T-l.partTarget,l.targetduration*1.5);if(D>0){if(o&&D>o.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+o.tuneInGoal+" to: "+D+" with playlist age: "+l.age),D=0;else{var I=Math.floor(D/l.targetduration);if(p+=I,x!==void 0){var k=Math.round(D%l.targetduration/l.partTarget);x+=k}this.log("CDN Tune-in age: "+l.ageHeader+"s last advanced "+O.toFixed(2)+"s goal: "+D+" skip sn "+I+" to part "+x)}l.tuneInGoal=D}if(A=this.getDeliveryDirectives(l,s.deliveryDirectives,p,x),_||!u){this.loadPlaylist(A);return}}else A=this.getDeliveryDirectives(l,s.deliveryDirectives,p,x);var F=Object(C.computeReloadInterval)(l,r);p!==void 0&&l.canBlockReload&&(F-=l.partTarget||1),this.log("reload live playlist "+a+" in "+Math.round(F)+" ms"),this.timer=self.setTimeout(function(){return f.loadPlaylist(A)},F)}else this.clearTimer()},n.getDeliveryDirectives=function(a,s,o,f){var l=Object(b.getSkipValue)(a,o);return s!=null&&s.skip&&a.deltaUpdateFailed&&(o=s.msn,f=s.part,l=b.HlsSkip.No),new b.HlsUrlParameters(o,f,l)},n.retryLoadingOrFail=function(a){var s=this,o=this.hls.config,f=this.retryCount<o.levelLoadingMaxRetry;if(f){var l;if(this.retryCount++,a.details.indexOf("LoadTimeOut")>-1&&(l=a.context)!==null&&l!==void 0&&l.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+a.details+'"'),this.loadPlaylist();else{var r=Math.min(Math.pow(2,this.retryCount)*o.levelLoadingRetryDelay,o.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return s.loadPlaylist()},r),this.warn("retry playlist loading #"+this.retryCount+" in "+r+' ms after "'+a.details+'"')}}else this.warn('cannot recover from error "'+a.details+'"'),this.clearTimer(),a.fatal=!0;return f},i}()},"./src/controller/base-stream-controller.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"State",function(){return E}),M.d(G,"default",function(){return g});var v=M("./src/polyfills/number.ts"),b=M("./src/task-loop.ts"),C=M("./src/controller/fragment-tracker.ts"),w=M("./src/utils/buffer-helper.ts"),m=M("./src/utils/logger.ts"),d=M("./src/events.ts"),i=M("./src/errors.ts"),n=M("./src/types/transmuxer.ts"),e=M("./src/utils/mp4-tools.ts"),a=M("./src/utils/discontinuities.ts"),s=M("./src/controller/fragment-finders.ts"),o=M("./src/controller/level-helper.ts"),f=M("./src/loader/fragment-loader.ts"),l=M("./src/crypt/decrypter.ts"),r=M("./src/utils/time-ranges.ts"),c=M("./src/types/loader.ts");function A(h,u){for(var S=0;S<u.length;S++){var O=u[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(h,O.key,O)}}function p(h,u,S){return u&&A(h.prototype,u),S&&A(h,S),h}function x(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function _(h,u){h.prototype=Object.create(u.prototype),h.prototype.constructor=h,B(h,u)}function B(h,u){return B=Object.setPrototypeOf||function(O,T){return O.__proto__=T,O},B(h,u)}var E={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},g=function(h){_(u,h);function u(O,T,D){var I;return I=h.call(this)||this,I.hls=void 0,I.fragPrevious=null,I.fragCurrent=null,I.fragmentTracker=void 0,I.transmuxer=null,I._state=E.STOPPED,I.media=void 0,I.mediaBuffer=void 0,I.config=void 0,I.bitrateTest=!1,I.lastCurrentTime=0,I.nextLoadPosition=0,I.startPosition=0,I.loadedmetadata=!1,I.fragLoadError=0,I.retryDate=0,I.levels=null,I.fragmentLoader=void 0,I.levelLastLoaded=null,I.startFragRequested=!1,I.decrypter=void 0,I.initPTS=[],I.onvseeking=null,I.onvended=null,I.logPrefix="",I.log=void 0,I.warn=void 0,I.logPrefix=D,I.log=m.logger.log.bind(m.logger,D+":"),I.warn=m.logger.warn.bind(m.logger,D+":"),I.hls=O,I.fragmentLoader=new f.default(O.config),I.fragmentTracker=T,I.config=O.config,I.decrypter=new l.default(O,O.config),O.on(d.Events.KEY_LOADED,I.onKeyLoaded,x(I)),I}var S=u.prototype;return S.doTick=function(){this.onTickEnd()},S.onTickEnd=function(){},S.startLoad=function(T){},S.stopLoad=function(){this.fragmentLoader.abort();var T=this.fragCurrent;T&&this.fragmentTracker.removeFragment(T),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=E.STOPPED},S._streamEnded=function(T,D){var I=this.fragCurrent,k=this.fragmentTracker;if(!D.live&&I&&I.sn===D.endSN&&!T.nextStart){var F=k.getState(I);return F===C.FragmentState.PARTIAL||F===C.FragmentState.OK}return!1},S.onMediaAttached=function(T,D){var I=this.media=this.mediaBuffer=D.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),I.addEventListener("seeking",this.onvseeking),I.addEventListener("ended",this.onvended);var k=this.config;this.levels&&k.autoStartLoad&&this.state===E.STOPPED&&this.startLoad(k.startPosition)},S.onMediaDetaching=function(){var T=this.media;T!=null&&T.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),T&&(T.removeEventListener("seeking",this.onvseeking),T.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},S.onMediaSeeking=function(){var T=this.config,D=this.fragCurrent,I=this.media,k=this.mediaBuffer,F=this.state,X=I?I.currentTime:0,U=w.BufferHelper.bufferInfo(k||I,X,T.maxBufferHole);if(this.log("media seeking to "+(Object(v.isFiniteNumber)(X)?X.toFixed(3):X)+", state: "+F),F===E.ENDED)this.resetLoadingState();else if(D&&!U.len){var K=T.maxFragLookUpTolerance,V=D.start-K,N=D.start+D.duration+K,Q=X>N;(X<V||Q)&&(Q&&D.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),D.loader.abort()),this.resetLoadingState())}I&&(this.lastCurrentTime=X),!this.loadedmetadata&&!U.len&&(this.nextLoadPosition=this.startPosition=X),this.tickImmediate()},S.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},S.onKeyLoaded=function(T,D){if(this.state!==E.KEY_LOADING||D.frag!==this.fragCurrent||!this.levels)return;this.state=E.IDLE;var I=this.levels[D.frag.level].details;I&&this.loadFragment(D.frag,I,D.frag.start)},S.onHandlerDestroying=function(){this.stopLoad(),h.prototype.onHandlerDestroying.call(this)},S.onHandlerDestroyed=function(){this.state=E.STOPPED,this.hls.off(d.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,h.prototype.onHandlerDestroyed.call(this)},S.loadKey=function(T,D){this.log("Loading key for "+T.sn+" of ["+D.startSN+"-"+D.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+T.level),this.state=E.KEY_LOADING,this.fragCurrent=T,this.hls.trigger(d.Events.KEY_LOADING,{frag:T})},S.loadFragment=function(T,D,I){this._loadFragForPlayback(T,D,I)},S._loadFragForPlayback=function(T,D,I){var k=this,F=function(U){if(k.fragContextChanged(T)){k.warn("Fragment "+T.sn+(U.part?" p: "+U.part.index:"")+" of level "+T.level+" was dropped during download."),k.fragmentTracker.removeFragment(T);return}T.stats.chunkCount++,k._handleFragmentLoadProgress(U)};this._doFragLoad(T,D,I,F).then(function(X){if(!X)return;k.fragLoadError=0;var U=k.state;if(k.fragContextChanged(T)){(U===E.FRAG_LOADING||U===E.BACKTRACKING||!k.fragCurrent&&U===E.PARSING)&&(k.fragmentTracker.removeFragment(T),k.state=E.IDLE);return}if("payload"in X&&(k.log("Loaded fragment "+T.sn+" of level "+T.level),k.hls.trigger(d.Events.FRAG_LOADED,X),k.state===E.BACKTRACKING)){k.fragmentTracker.backtrack(T,X),k.resetFragmentLoading(T);return}k._handleFragmentLoadComplete(X)}).catch(function(X){k.warn(X),k.resetFragmentLoading(T)})},S.flushMainBuffer=function(T,D,I){if(I===void 0&&(I=null),!(T-D))return;var k={startOffset:T,endOffset:D,type:I};this.fragLoadError=0,this.hls.trigger(d.Events.BUFFER_FLUSHING,k)},S._loadInitSegment=function(T){var D=this;this._doFragLoad(T).then(function(I){if(!I||D.fragContextChanged(T)||!D.levels)throw new Error("init load aborted");return I}).then(function(I){var k=D.hls,F=I.payload,X=T.decryptdata;if(F&&F.byteLength>0&&X&&X.key&&X.iv&&X.method==="AES-128"){var U=self.performance.now();return D.decrypter.webCryptoDecrypt(new Uint8Array(F),X.key.buffer,X.iv.buffer).then(function(K){var V=self.performance.now();return k.trigger(d.Events.FRAG_DECRYPTED,{frag:T,payload:K,stats:{tstart:U,tdecrypt:V}}),I.payload=K,I})}return I}).then(function(I){var k=D.fragCurrent,F=D.hls,X=D.levels;if(!X)throw new Error("init load aborted, missing levels");var U=X[T.level].details;console.assert(U,"Level details are defined when init segment is loaded");var K=T.stats;D.state=E.IDLE,D.fragLoadError=0,T.data=new Uint8Array(I.payload),K.parsing.start=K.buffering.start=self.performance.now(),K.parsing.end=K.buffering.end=self.performance.now(),I.frag===k&&F.trigger(d.Events.FRAG_BUFFERED,{stats:K,frag:k,part:null,id:T.type}),D.tick()}).catch(function(I){D.warn(I),D.resetFragmentLoading(T)})},S.fragContextChanged=function(T){var D=this.fragCurrent;return!T||!D||T.level!==D.level||T.sn!==D.sn||T.urlId!==D.urlId},S.fragBufferedComplete=function(T,D){var I=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+T.type+" sn: "+T.sn+(D?" part: "+D.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+T.level+" "+r.default.toString(w.BufferHelper.getBuffered(I))),this.state=E.IDLE,this.tick()},S._handleFragmentLoadComplete=function(T){var D=this.transmuxer;if(!D)return;var I=T.frag,k=T.part,F=T.partsLoaded,X=!F||F.length===0||F.some(function(K){return!K}),U=new n.ChunkMetadata(I.level,I.sn,I.stats.chunkCount+1,0,k?k.index:-1,!X);D.flush(U)},S._handleFragmentLoadProgress=function(T){},S._doFragLoad=function(T,D,I,k){var F=this;if(I===void 0&&(I=null),!this.levels)throw new Error("frag load aborted, missing levels");if(I=Math.max(T.start,I||0),this.config.lowLatencyMode&&D){var X=D.partList;if(X&&k){I>T.end&&D.fragmentHint&&(T=D.fragmentHint);var U=this.getNextPart(X,T,I);if(U>-1){var K=X[U];return this.log("Loading part sn: "+T.sn+" p: "+K.index+" cc: "+T.cc+" of playlist ["+D.startSN+"-"+D.endSN+"] parts [0-"+U+"-"+(X.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(I.toFixed(3))),this.nextLoadPosition=K.start+K.duration,this.state=E.FRAG_LOADING,this.hls.trigger(d.Events.FRAG_LOADING,{frag:T,part:X[U],targetBufferTime:I}),this.doFragPartsLoad(T,X,U,k).catch(function(V){return F.handleFragLoadError(V)})}else if(!T.url||this.loadedEndOfParts(X,I))return Promise.resolve(null)}}return this.log("Loading fragment "+T.sn+" cc: "+T.cc+" "+(D?"of ["+D.startSN+"-"+D.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(I.toFixed(3))),Object(v.isFiniteNumber)(T.sn)&&!this.bitrateTest&&(this.nextLoadPosition=T.start+T.duration),this.state=E.FRAG_LOADING,this.hls.trigger(d.Events.FRAG_LOADING,{frag:T,targetBufferTime:I}),this.fragmentLoader.load(T,k).catch(function(V){return F.handleFragLoadError(V)})},S.doFragPartsLoad=function(T,D,I,k){var F=this;return new Promise(function(X,U){var K=[],V=function N(Q){var J=D[Q];F.fragmentLoader.loadPart(T,J,k).then(function(ne){K[J.index]=ne;var ue=ne.part;F.hls.trigger(d.Events.FRAG_LOADED,ne);var be=D[Q+1];if(be&&be.fragment===T)N(Q+1);else return X({frag:T,part:ue,partsLoaded:K})}).catch(U)};V(I)})},S.handleFragLoadError=function(T){var D=T.data;return D&&D.details===i.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(D.frag,D.part):this.hls.trigger(d.Events.ERROR,D),null},S._handleTransmuxerFlush=function(T){var D=this.getCurrentContext(T);if(!D||this.state!==E.PARSING){this.fragCurrent||(this.state=E.IDLE);return}var I=D.frag,k=D.part,F=D.level,X=self.performance.now();I.stats.parsing.end=X,k&&(k.stats.parsing.end=X),this.updateLevelTiming(I,k,F,T.partial)},S.getCurrentContext=function(T){var D=this.levels,I=T.level,k=T.sn,F=T.part;if(!D||!D[I])return this.warn("Levels object was unset while buffering fragment "+k+" of level "+I+". The current chunk will not be buffered."),null;var X=D[I],U=F>-1?Object(o.getPartWith)(X,k,F):null,K=U?U.fragment:Object(o.getFragmentWithSN)(X,k,this.fragCurrent);return K?{frag:K,part:U,level:X}:null},S.bufferFragmentData=function(T,D,I,k){if(!T||this.state!==E.PARSING)return;var F=T.data1,X=T.data2,U=F;if(F&&X&&(U=Object(e.appendUint8Array)(F,X)),!U||!U.length)return;var K={type:T.type,frag:D,part:I,chunkMeta:k,parent:D.type,data:U};this.hls.trigger(d.Events.BUFFER_APPENDING,K),T.dropped&&T.independent&&!I&&this.flushBufferGap(D)},S.flushBufferGap=function(T){var D=this.media;if(!D)return;if(!w.BufferHelper.isBuffered(D,D.currentTime)){this.flushMainBuffer(0,T.start);return}var I=D.currentTime,k=w.BufferHelper.bufferInfo(D,I,0),F=T.duration,X=Math.min(this.config.maxFragLookUpTolerance*2,F*.25),U=Math.max(Math.min(T.start-X,k.end-X),I+X);T.start-U>X&&this.flushMainBuffer(U,T.start)},S.getFwdBufferInfo=function(T,D){var I=this.config,k=this.getLoadPosition();if(!Object(v.isFiniteNumber)(k))return null;var F=w.BufferHelper.bufferInfo(T,k,I.maxBufferHole);if(F.len===0&&F.nextStart!==void 0){var X=this.fragmentTracker.getBufferedFrag(k,D);if(X&&F.nextStart<X.end)return w.BufferHelper.bufferInfo(T,k,Math.max(F.nextStart,I.maxBufferHole))}return F},S.getMaxBufferLength=function(T){var D=this.config,I;return T?I=Math.max(8*D.maxBufferSize/T,D.maxBufferLength):I=D.maxBufferLength,Math.min(I,D.maxMaxBufferLength)},S.reduceMaxBufferLength=function(T){var D=this.config,I=T||D.maxBufferLength;return D.maxMaxBufferLength>=I?(D.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+D.maxMaxBufferLength+"s"),!0):!1},S.getNextFragment=function(T,D){var I,k,F=D.fragments,X=F.length;if(!X)return null;var U=this.config,K=F[0].start,V;if(D.live){var N=U.initialLiveManifestSize;if(X<N)return this.warn("Not enough fragments to start playback (have: "+X+", need: "+N+")"),null;!D.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(V=this.getInitialLiveFragment(D,F),this.startPosition=V?this.hls.liveSyncPosition||V.start:T)}else T<=K&&(V=F[0]);if(!V){var Q=U.lowLatencyMode?D.partEnd:D.fragmentEnd;V=this.getFragmentAtPosition(T,Q,D)}return(I=V)!==null&&I!==void 0&&I.initSegment&&!((k=V)!==null&&k!==void 0&&k.initSegment.data)&&!this.bitrateTest&&(V=V.initSegment),V},S.getNextPart=function(T,D,I){for(var k=-1,F=!1,X=!0,U=0,K=T.length;U<K;U++){var V=T[U];if(X=X&&!V.independent,k>-1&&I<V.start)break;var N=V.loaded;!N&&(F||V.independent||X)&&V.fragment===D&&(k=U),F=N}return k},S.loadedEndOfParts=function(T,D){var I=T[T.length-1];return I&&D>I.start&&I.loaded},S.getInitialLiveFragment=function(T,D){var I=this.fragPrevious,k=null;if(I){if(T.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+I.programDateTime),k=Object(s.findFragmentByPDT)(D,I.endProgramDateTime,this.config.maxFragLookUpTolerance)),!k){var F=I.sn+1;if(F>=T.startSN&&F<=T.endSN){var X=D[F-T.startSN];I.cc===X.cc&&(k=X,this.log("Live playlist, switching playlist, load frag with next SN: "+k.sn))}k||(k=Object(s.findFragWithCC)(D,I.cc),k&&this.log("Live playlist, switching playlist, load frag with same CC: "+k.sn))}}else{var U=this.hls.liveSyncPosition;U!==null&&(k=this.getFragmentAtPosition(U,this.bitrateTest?T.fragmentEnd:T.edge,T))}return k},S.getFragmentAtPosition=function(T,D,I){var k=this.config,F=this.fragPrevious,X=I.fragments,U=I.endSN,K=I.fragmentHint,V=k.maxFragLookUpTolerance,N=!!(k.lowLatencyMode&&I.partList&&K);N&&K&&!this.bitrateTest&&(X=X.concat(K),U=K.sn);var Q;if(T<D){var J=T>D-V?0:V;Q=Object(s.findFragmentByPTS)(F,X,T,J)}else Q=X[X.length-1];if(Q){var ne=Q.sn-I.startSN,ue=F&&Q.level===F.level,be=X[ne+1],de=this.fragmentTracker.getState(Q);if(de===C.FragmentState.BACKTRACKED){Q=null;for(var _e=ne;X[_e]&&this.fragmentTracker.getState(X[_e])===C.FragmentState.BACKTRACKED;)F?Q=X[_e--]:Q=X[--_e];Q||(Q=be)}else F&&Q.sn===F.sn&&!N&&(ue&&(Q.sn<U&&this.fragmentTracker.getState(be)!==C.FragmentState.OK?(this.log("SN "+Q.sn+" just loaded, load next one: "+be.sn),Q=be):Q=null))}return Q},S.synchronizeToLiveEdge=function(T){var D=this.config,I=this.media;if(!I)return;var k=this.hls.liveSyncPosition,F=I.currentTime,X=T.fragments[0].start,U=T.edge,K=F>=X-D.maxFragLookUpTolerance&&F<=U;if(k!==null&&I.duration>k&&(F<k||!K)){var V=D.liveMaxLatencyDuration!==void 0?D.liveMaxLatencyDuration:D.liveMaxLatencyDurationCount*T.targetduration;(!K&&I.readyState<4||F<U-V)&&(this.loadedmetadata||(this.nextLoadPosition=k),I.readyState&&(this.warn("Playback: "+F.toFixed(3)+" is located too far from the end of live sliding playlist: "+U+", reset currentTime to : "+k.toFixed(3)),I.currentTime=k))}},S.alignPlaylists=function(T,D){var I=this.levels,k=this.levelLastLoaded,F=this.fragPrevious,X=k!==null?I[k]:null,U=T.fragments.length;if(!U)return this.warn("No fragments in live playlist"),0;var K=T.fragments[0].start,V=!D,N=T.alignedSliding&&Object(v.isFiniteNumber)(K);if(V||!N&&!K){Object(a.alignStream)(F,X,T);var Q=T.fragments[0].start;return this.log("Live playlist sliding: "+Q.toFixed(2)+" start-sn: "+(D?D.startSN:"na")+"->"+T.startSN+" prev-sn: "+(F?F.sn:"na")+" fragments: "+U),Q}return K},S.waitForCdnTuneIn=function(T){var D=3;return T.live&&T.canBlockReload&&T.tuneInGoal>Math.max(T.partHoldBack,T.partTarget*D)},S.setStartPosition=function(T,D){var I=this.startPosition;if(I<D&&(I=-1),I===-1||this.lastCurrentTime===-1){var k=T.startTimeOffset;Object(v.isFiniteNumber)(k)?(I=D+k,k<0&&(I+=T.totalduration),I=Math.min(Math.max(D,I),D+T.totalduration),this.log("Start time offset "+k+" found in playlist, adjust startPosition to "+I),this.startPosition=I):T.live?I=this.hls.liveSyncPosition||D:this.startPosition=I=0,this.lastCurrentTime=I}this.nextLoadPosition=I},S.getLoadPosition=function(){var T=this.media,D=0;return this.loadedmetadata&&T?D=T.currentTime:this.nextLoadPosition&&(D=this.nextLoadPosition),D},S.handleFragLoadAborted=function(T,D){this.transmuxer&&T.sn!=="initSegment"&&T.stats.aborted&&(this.warn("Fragment "+T.sn+(D?" part"+D.index:"")+" of level "+T.level+" was aborted"),this.resetFragmentLoading(T))},S.resetFragmentLoading=function(T){(!this.fragCurrent||!this.fragContextChanged(T))&&(this.state=E.IDLE)},S.onFragmentOrKeyLoadError=function(T,D){if(D.fatal)return;var I=D.frag;if(!I||I.type!==T)return;var k=this.fragCurrent;console.assert(k&&I.sn===k.sn&&I.level===k.level&&I.urlId===k.urlId,"Frag load error must match current frag to retry");var F=this.config;if(this.fragLoadError+1<=F.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(I.level))return;var X=Math.min(Math.pow(2,this.fragLoadError)*F.fragLoadingRetryDelay,F.fragLoadingMaxRetryTimeout);this.warn("Fragment "+I.sn+" of "+T+" "+I.level+" failed to load, retrying in "+X+"ms"),this.retryDate=self.performance.now()+X,this.fragLoadError++,this.state=E.FRAG_LOADING_WAITING_RETRY}else D.levelRetry?(T===c.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=E.IDLE):(m.logger.error(D.details+" reaches max retry, redispatch as fatal ..."),D.fatal=!0,this.hls.stopLoad(),this.state=E.ERROR)},S.afterBufferFlushed=function(T,D,I){if(!T)return;var k=w.BufferHelper.getBuffered(T);this.fragmentTracker.detectEvictedFragments(D,k,I),this.state===E.ENDED&&this.resetLoadingState()},S.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=E.IDLE},S.resetLiveStartWhenNotLoaded=function(T){if(!this.loadedmetadata){this.startFragRequested=!1;var D=this.levels?this.levels[T].details:null;if(D!=null&&D.live)return this.startPosition=-1,this.setStartPosition(D,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},S.updateLevelTiming=function(T,D,I,k){var F=this,X=I.details;console.assert(!!X,"level.details must be defined");var U=Object.keys(T.elementaryStreams).reduce(function(K,V){var N=T.elementaryStreams[V];if(N){var Q=N.endPTS-N.startPTS;if(Q<=0)return F.warn("Could not parse fragment "+T.sn+" "+V+" duration reliably ("+Q+") resetting transmuxer to fallback to playlist timing"),F.resetTransmuxer(),K||!1;var J=k?0:Object(o.updateFragPTSDTS)(X,T,N.startPTS,N.endPTS,N.startDTS,N.endDTS);return F.hls.trigger(d.Events.LEVEL_PTS_UPDATED,{details:X,level:I,drift:J,type:V,frag:T,start:N.startPTS,end:N.endPTS}),!0}return K},!1);U?(this.state=E.PARSED,this.hls.trigger(d.Events.FRAG_PARSED,{frag:T,part:D})):this.resetLoadingState()},S.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},p(u,[{key:"state",get:function(){return this._state},set:function(T){var D=this._state;D!==T&&(this._state=T,this.log(D+"->"+T))}}]),u}(b.default)},"./src/controller/buffer-controller.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return s});var v=M("./src/polyfills/number.ts"),b=M("./src/events.ts"),C=M("./src/utils/logger.ts"),w=M("./src/errors.ts"),m=M("./src/utils/buffer-helper.ts"),d=M("./src/utils/mediasource-helper.ts"),i=M("./src/loader/fragment.ts"),n=M("./src/controller/buffer-operation-queue.ts"),e=Object(d.getMediaSource)(),a=/([ha]vc.)(?:\.[^.,]+)+/,s=function(){function o(l){var r=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 c=r.hls,A=r.media,p=r.mediaSource;C.logger.log("[buffer-controller]: Media source opened"),A&&(r.updateMediaElementDuration(),c.trigger(b.Events.MEDIA_ATTACHED,{media:A})),p&&p.removeEventListener("sourceopen",r._onMediaSourceOpen),r.checkPendingTracks()},this._onMediaSourceClose=function(){C.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){C.logger.log("[buffer-controller]: Media source ended")},this.hls=l,this._initSourceBuffer(),this.registerListeners()}var f=o.prototype;return f.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},f.destroy=function(){this.unregisterListeners(),this.details=null},f.registerListeners=function(){var r=this.hls;r.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.on(b.Events.BUFFER_RESET,this.onBufferReset,this),r.on(b.Events.BUFFER_APPENDING,this.onBufferAppending,this),r.on(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.on(b.Events.BUFFER_EOS,this.onBufferEos,this),r.on(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),r.on(b.Events.LEVEL_UPDATED,this.onLevelUpdated,this),r.on(b.Events.FRAG_PARSED,this.onFragParsed,this),r.on(b.Events.FRAG_CHANGED,this.onFragChanged,this)},f.unregisterListeners=function(){var r=this.hls;r.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.off(b.Events.BUFFER_RESET,this.onBufferReset,this),r.off(b.Events.BUFFER_APPENDING,this.onBufferAppending,this),r.off(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.off(b.Events.BUFFER_EOS,this.onBufferEos,this),r.off(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),r.off(b.Events.LEVEL_UPDATED,this.onLevelUpdated,this),r.off(b.Events.FRAG_PARSED,this.onFragParsed,this),r.off(b.Events.FRAG_CHANGED,this.onFragChanged,this)},f._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new n.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},f.onManifestParsed=function(r,c){var A=2;(c.audio&&!c.video||!c.altAudio)&&(A=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=A,this.details=null,C.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},f.onMediaAttaching=function(r,c){var A=this.media=c.media;if(A&&e){var p=this.mediaSource=new e;p.addEventListener("sourceopen",this._onMediaSourceOpen),p.addEventListener("sourceended",this._onMediaSourceEnded),p.addEventListener("sourceclose",this._onMediaSourceClose),A.src=self.URL.createObjectURL(p),this._objectUrl=A.src}},f.onMediaDetaching=function(){var r=this.media,c=this.mediaSource,A=this._objectUrl;if(c){if(C.logger.log("[buffer-controller]: media source detaching"),c.readyState==="open")try{c.endOfStream()}catch(p){C.logger.warn("[buffer-controller]: onMediaDetaching: "+p.message+" while calling endOfStream")}this.onBufferReset(),c.removeEventListener("sourceopen",this._onMediaSourceOpen),c.removeEventListener("sourceended",this._onMediaSourceEnded),c.removeEventListener("sourceclose",this._onMediaSourceClose),r&&(A&&self.URL.revokeObjectURL(A),r.src===A?(r.removeAttribute("src"),r.load()):C.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(b.Events.MEDIA_DETACHED,void 0)},f.onBufferReset=function(){var r=this;this.getSourceBufferTypes().forEach(function(c){var A=r.sourceBuffer[c];try{A&&(r.removeBufferListeners(c),r.mediaSource&&r.mediaSource.removeSourceBuffer(A),r.sourceBuffer[c]=void 0)}catch(p){C.logger.warn("[buffer-controller]: Failed to reset the "+c+" buffer",p)}}),this._initSourceBuffer()},f.onBufferCodecs=function(r,c){var A=this,p=this.getSourceBufferTypes().length;if(Object.keys(c).forEach(function(x){if(p){var _=A.tracks[x];if(_&&typeof _.buffer.changeType=="function"){var B=c[x],E=B.codec,g=B.levelCodec,h=B.container,u=(_.levelCodec||_.codec).replace(a,"$1"),S=(g||E).replace(a,"$1");if(u!==S){var O=h+";codecs="+(g||E);A.appendChangeType(x,O)}}}else A.pendingTracks[x]=c[x]}),p)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},f.appendChangeType=function(r,c){var A=this,p=this.operationQueue,x={execute:function(){var B=A.sourceBuffer[r];B&&(C.logger.log("[buffer-controller]: changing "+r+" sourceBuffer type to "+c),B.changeType(c)),p.shiftAndExecuteNext(r)},onStart:function(){},onComplete:function(){},onError:function(B){C.logger.warn("[buffer-controller]: Failed to change "+r+" SourceBuffer type",B)}};p.append(x,r)},f.onBufferAppending=function(r,c){var A=this,p=this.hls,x=this.operationQueue,_=this.tracks,B=c.data,E=c.type,g=c.frag,h=c.part,u=c.chunkMeta,S=u.buffering[E],O=self.performance.now();S.start=O;var T=g.stats.buffering,D=h?h.stats.buffering:null;T.start===0&&(T.start=O),D&&D.start===0&&(D.start=O);var I=_.audio,k=E==="audio"&&u.id===1&&(I==null?void 0:I.container)==="audio/mpeg",F={execute:function(){if(S.executeStart=self.performance.now(),k){var U=A.sourceBuffer[E];if(U){var K=g.start-U.timestampOffset;Math.abs(K)>=.1&&(C.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+g.start+" (delta: "+K+") sn: "+g.sn+")"),U.timestampOffset=g.start)}}A.appendExecutor(B,E)},onStart:function(){},onComplete:function(){var U=self.performance.now();S.executeEnd=S.end=U,T.first===0&&(T.first=U),D&&D.first===0&&(D.first=U);var K=A.sourceBuffer,V={};for(var N in K)V[N]=m.BufferHelper.getBuffered(K[N]);A.appendError=0,A.hls.trigger(b.Events.BUFFER_APPENDED,{type:E,frag:g,part:h,chunkMeta:u,parent:g.type,timeRanges:V})},onError:function(U){C.logger.error("[buffer-controller]: Error encountered while trying to append to the "+E+" SourceBuffer",U);var K={type:w.ErrorTypes.MEDIA_ERROR,parent:g.type,details:w.ErrorDetails.BUFFER_APPEND_ERROR,err:U,fatal:!1};U.code===DOMException.QUOTA_EXCEEDED_ERR?K.details=w.ErrorDetails.BUFFER_FULL_ERROR:(A.appendError++,K.details=w.ErrorDetails.BUFFER_APPEND_ERROR,A.appendError>p.config.appendErrorMaxRetry&&(C.logger.error("[buffer-controller]: Failed "+p.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),K.fatal=!0)),p.trigger(b.Events.ERROR,K)}};x.append(F,E)},f.onBufferFlushing=function(r,c){var A=this,p=this.operationQueue,x=function(B){return{execute:A.removeExecutor.bind(A,B,c.startOffset,c.endOffset),onStart:function(){},onComplete:function(){A.hls.trigger(b.Events.BUFFER_FLUSHED,{type:B})},onError:function(g){C.logger.warn("[buffer-controller]: Failed to remove from "+B+" SourceBuffer",g)}}};c.type?p.append(x(c.type),c.type):this.getSourceBufferTypes().forEach(function(_){p.append(x(_),_)})},f.onFragParsed=function(r,c){var A=this,p=c.frag,x=c.part,_=[],B=x?x.elementaryStreams:p.elementaryStreams;B[i.ElementaryStreamTypes.AUDIOVIDEO]?_.push("audiovideo"):(B[i.ElementaryStreamTypes.AUDIO]&&_.push("audio"),B[i.ElementaryStreamTypes.VIDEO]&&_.push("video"));var E=function(){var h=self.performance.now();p.stats.buffering.end=h,x&&(x.stats.buffering.end=h);var u=x?x.stats:p.stats;A.hls.trigger(b.Events.FRAG_BUFFERED,{frag:p,part:x,stats:u,id:p.type})};_.length===0&&C.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+p.type+" level: "+p.level+" sn: "+p.sn),this.blockBuffers(E,_)},f.onFragChanged=function(r,c){this.flushBackBuffer()},f.onBufferEos=function(r,c){var A=this,p=this.getSourceBufferTypes().reduce(function(x,_){var B=A.sourceBuffer[_];return(!c.type||c.type===_)&&(B&&!B.ended&&(B.ended=!0,C.logger.log("[buffer-controller]: "+_+" sourceBuffer now EOS"))),x&&!!(!B||B.ended)},!0);p&&this.blockBuffers(function(){var x=A.mediaSource;if(!x||x.readyState!=="open")return;x.endOfStream()})},f.onLevelUpdated=function(r,c){var A=c.details;if(!A.fragments.length)return;this.details=A,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},f.flushBackBuffer=function(){var r=this.hls,c=this.details,A=this.media,p=this.sourceBuffer;if(!A||c===null)return;var x=this.getSourceBufferTypes();if(!x.length)return;var _=c.live&&r.config.liveBackBufferLength!==null?r.config.liveBackBufferLength:r.config.backBufferLength;if(!Object(v.isFiniteNumber)(_)||_<0)return;var B=A.currentTime,E=c.levelTargetDuration,g=Math.max(_,E),h=Math.floor(B/E)*E-g;x.forEach(function(u){var S=p[u];if(S){var O=m.BufferHelper.getBuffered(S);O.length>0&&h>O.start(0)&&(r.trigger(b.Events.BACK_BUFFER_REACHED,{bufferEnd:h}),c.live&&r.trigger(b.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:h}),r.trigger(b.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:h,type:u}))}})},f.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var r=this.details,c=this.hls,A=this.media,p=this.mediaSource,x=r.fragments[0].start+r.totalduration,_=A.duration,B=Object(v.isFiniteNumber)(p.duration)?p.duration:0;r.live&&c.config.liveDurationInfinity?(C.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),p.duration=Infinity,this.updateSeekableRange(r)):(x>B&&x>_||!Object(v.isFiniteNumber)(_))&&(C.logger.log("[buffer-controller]: Updating Media Source duration to "+x.toFixed(3)),p.duration=x)},f.updateSeekableRange=function(r){var c=this.mediaSource,A=r.fragments,p=A.length;if(p&&r.live&&c!==null&&c!==void 0&&c.setLiveSeekableRange){var x=Math.max(0,A[0].start),_=Math.max(x,x+r.totalduration);c.setLiveSeekableRange(x,_)}},f.checkPendingTracks=function(){var r=this.bufferCodecEventsExpected,c=this.operationQueue,A=this.pendingTracks,p=Object.keys(A).length;if(p&&!r||p===2){this.createSourceBuffers(A),this.pendingTracks={};var x=this.getSourceBufferTypes();if(x.length===0){this.hls.trigger(b.Events.ERROR,{type:w.ErrorTypes.MEDIA_ERROR,details:w.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}x.forEach(function(_){c.executeNext(_)})}},f.createSourceBuffers=function(r){var c=this.sourceBuffer,A=this.mediaSource;if(!A)throw Error("createSourceBuffers called when mediaSource was null");var p=0;for(var x in r)if(!c[x]){var _=r[x];if(!_)throw Error("source buffer exists for track "+x+", however track does not");var B=_.levelCodec||_.codec,E=_.container+";codecs="+B;C.logger.log("[buffer-controller]: creating sourceBuffer("+E+")");try{var g=c[x]=A.addSourceBuffer(E),h=x;this.addBufferListener(h,"updatestart",this._onSBUpdateStart),this.addBufferListener(h,"updateend",this._onSBUpdateEnd),this.addBufferListener(h,"error",this._onSBUpdateError),this.tracks[x]={buffer:g,codec:B,container:_.container,levelCodec:_.levelCodec,id:_.id},p++}catch(u){C.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+u.message),this.hls.trigger(b.Events.ERROR,{type:w.ErrorTypes.MEDIA_ERROR,details:w.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:u,mimeType:E})}}p&&this.hls.trigger(b.Events.BUFFER_CREATED,{tracks:this.tracks})},f._onSBUpdateStart=function(r){var c=this.operationQueue,A=c.current(r);A.onStart()},f._onSBUpdateEnd=function(r){var c=this.operationQueue,A=c.current(r);A.onComplete(),c.shiftAndExecuteNext(r)},f._onSBUpdateError=function(r,c){C.logger.error("[buffer-controller]: "+r+" SourceBuffer error",c),this.hls.trigger(b.Events.ERROR,{type:w.ErrorTypes.MEDIA_ERROR,details:w.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var A=this.operationQueue.current(r);A&&A.onError(c)},f.removeExecutor=function(r,c,A){var p=this.media,x=this.mediaSource,_=this.operationQueue,B=this.sourceBuffer,E=B[r];if(!p||!x||!E){C.logger.warn("[buffer-controller]: Attempting to remove from the "+r+" SourceBuffer, but it does not exist"),_.shiftAndExecuteNext(r);return}var g=Object(v.isFiniteNumber)(p.duration)?p.duration:Infinity,h=Object(v.isFiniteNumber)(x.duration)?x.duration:Infinity,u=Math.max(0,c),S=Math.min(A,g,h);S>u?(C.logger.log("[buffer-controller]: Removing ["+u+","+S+"] from the "+r+" SourceBuffer"),console.assert(!E.updating,r+" sourceBuffer must not be updating"),E.remove(u,S)):_.shiftAndExecuteNext(r)},f.appendExecutor=function(r,c){var A=this.operationQueue,p=this.sourceBuffer,x=p[c];if(!x){C.logger.warn("[buffer-controller]: Attempting to append to the "+c+" SourceBuffer, but it does not exist"),A.shiftAndExecuteNext(c);return}x.ended=!1,console.assert(!x.updating,c+" sourceBuffer must not be updating"),x.appendBuffer(r)},f.blockBuffers=function(r,c){var A=this;if(c===void 0&&(c=this.getSourceBufferTypes()),!c.length){C.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(r);return}var p=this.operationQueue,x=c.map(function(_){return p.appendBlocker(_)});Promise.all(x).then(function(){r(),c.forEach(function(_){var B=A.sourceBuffer[_];(!B||!B.updating)&&p.shiftAndExecuteNext(_)})})},f.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},f.addBufferListener=function(r,c,A){var p=this.sourceBuffer[r];if(!p)return;var x=A.bind(this,r);this.listeners[r].push({event:c,listener:x}),p.addEventListener(c,x)},f.removeBufferListeners=function(r){var c=this.sourceBuffer[r];if(!c)return;this.listeners[r].forEach(function(A){c.removeEventListener(A.event,A.listener)})},o}()},"./src/controller/buffer-operation-queue.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return b});var v=M("./src/utils/logger.ts"),b=function(){function C(m){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=m}var w=C.prototype;return w.append=function(d,i){var n=this.queues[i];n.push(d),n.length===1&&this.buffers[i]&&this.executeNext(i)},w.insertAbort=function(d,i){var n=this.queues[i];n.unshift(d),this.executeNext(i)},w.appendBlocker=function(d){var i,n=new Promise(function(a){i=a}),e={execute:i,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(e,d),n},w.executeNext=function(d){var i=this.buffers,n=this.queues,e=i[d],a=n[d];if(a.length){var s=a[0];try{s.execute()}catch(o){v.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),s.onError(o),(!e||!e.updating)&&(a.shift(),this.executeNext(d))}}},w.shiftAndExecuteNext=function(d){this.queues[d].shift(),this.executeNext(d)},w.current=function(d){return this.queues[d][0]},C}()},"./src/controller/cap-level-controller.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/events.ts");function b(m,d){for(var i=0;i<d.length;i++){var n=d[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(m,n.key,n)}}function C(m,d,i){return d&&b(m.prototype,d),i&&b(m,i),m}var w=function(){function m(i){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=i,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var d=m.prototype;return d.setStreamController=function(n){this.streamController=n},d.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},d.registerListeners=function(){var n=this.hls;n.on(v.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.on(v.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(v.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(v.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.on(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},d.unregisterListener=function(){var n=this.hls;n.off(v.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.off(v.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.off(v.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(v.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.off(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},d.onFpsDropLevelCapping=function(n,e){m.isLevelAllowed(e.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(e.droppedLevel)},d.onMediaAttaching=function(n,e){this.media=e.media instanceof HTMLVideoElement?e.media:null},d.onManifestParsed=function(n,e){var a=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,a.config.capLevelToPlayerSize&&e.video&&this.startCapping()},d.onBufferCodecs=function(n,e){var a=this.hls;a.config.capLevelToPlayerSize&&e.video&&this.startCapping()},d.onMediaDetaching=function(){this.stopCapping()},d.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var n=this.hls.levels;if(n.length){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(n.length-1),e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},d.getMaxLevel=function(n){var e=this,a=this.hls.levels;if(!a.length)return-1;var s=a.filter(function(o,f){return m.isLevelAllowed(f,e.restrictedLevels)&&f<=n});return this.clientRect=null,m.getMaxLevelByMediaSize(s,this.mediaWidth,this.mediaHeight)},d.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()},d.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},d.getDimensions=function(){if(this.clientRect)return this.clientRect;var n=this.media,e={width:0,height:0};if(n){var a=n.getBoundingClientRect();e.width=a.width,e.height=a.height,!e.width&&!e.height&&(e.width=a.right-a.left||n.width||0,e.height=a.bottom-a.top||n.height||0)}return this.clientRect=e,e},m.isLevelAllowed=function(n,e){return e===void 0&&(e=[]),e.indexOf(n)===-1},m.getMaxLevelByMediaSize=function(n,e,a){if(!n||!n.length)return-1;for(var s=function(c,A){return A?c.width!==A.width||c.height!==A.height:!0},o=n.length-1,f=0;f<n.length;f+=1){var l=n[f];if((l.width>=e||l.height>=a)&&s(l,n[f+1])){o=f;break}}return o},C(m,[{key:"mediaWidth",get:function(){return this.getDimensions().width*m.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*m.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var n=1;try{n=self.devicePixelRatio}catch(e){}return n}}]),m}();G.default=w},"./src/controller/cmcd-controller.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return s});var v=M("./src/events.ts"),b=M("./src/types/cmcd.ts"),C=M("./src/utils/buffer-helper.ts"),w=M("./src/utils/logger.ts");function m(o,f){for(var l=0;l<f.length;l++){var r=f[l];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(o,r.key,r)}}function d(o,f,l){return f&&m(o.prototype,f),l&&m(o,l),o}function i(o,f){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(l)return(l=l.call(o)).next.bind(l);if(Array.isArray(o)||(l=n(o))||f&&o&&typeof o.length=="number"){l&&(o=l);var r=0;return function(){return r>=o.length?{done:!0}:{done:!1,value:o[r++]}}}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 n(o,f){if(!o)return;if(typeof o=="string")return e(o,f);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return e(o,f)}function e(o,f){(f==null||f>o.length)&&(f=o.length);for(var l=0,r=new Array(f);l<f;l++)r[l]=o[l];return r}function a(){return a=Object.assign||function(o){for(var f=1;f<arguments.length;f++){var l=arguments[f];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(o[r]=l[r])}return o},a.apply(this,arguments)}var s=function(){function o(l){var r=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){r.initialized&&(r.starved=!0),r.buffering=!0},this.onPlaying=function(){r.initialized||(r.initialized=!0),r.buffering=!1},this.applyPlaylistData=function(p){try{r.apply(p,{ot:b.CMCDObjectType.MANIFEST,su:!r.initialized})}catch(x){w.logger.warn("Could not generate manifest CMCD data.",x)}},this.applyFragmentData=function(p){try{var x=p.frag,_=r.hls.levels[x.level],B=r.getObjectType(x),E={d:x.duration*1e3,ot:B};(B===b.CMCDObjectType.VIDEO||B===b.CMCDObjectType.AUDIO||B==b.CMCDObjectType.MUXED)&&(E.br=_.bitrate/1e3,E.tb=r.getTopBandwidth(B),E.bl=r.getBufferLength(B)),r.apply(p,E)}catch(g){w.logger.warn("Could not generate segment CMCD data.",g)}},this.hls=l;var c=this.config=l.config,A=c.cmcd;A!=null&&(c.pLoader=this.createPlaylistLoader(),c.fLoader=this.createFragmentLoader(),this.sid=A.sessionId||o.uuid(),this.cid=A.contentId,this.useHeaders=A.useHeaders===!0,this.registerListeners())}var f=o.prototype;return f.registerListeners=function(){var r=this.hls;r.on(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),r.on(v.Events.MEDIA_DETACHED,this.onMediaDetached,this),r.on(v.Events.BUFFER_CREATED,this.onBufferCreated,this)},f.unregisterListeners=function(){var r=this.hls;r.off(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),r.off(v.Events.MEDIA_DETACHED,this.onMediaDetached,this),r.off(v.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},f.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},f.onMediaAttached=function(r,c){this.media=c.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},f.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},f.onBufferCreated=function(r,c){var A,p;this.audioBuffer=(A=c.tracks.audio)===null||A===void 0?void 0:A.buffer,this.videoBuffer=(p=c.tracks.video)===null||p===void 0?void 0:p.buffer},f.createData=function(){var r;return{v:b.CMCDVersion,sf:b.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(r=this.media)===null||r===void 0?void 0:r.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},f.apply=function(r,c){c===void 0&&(c={}),a(c,this.createData());var A=c.ot===b.CMCDObjectType.INIT||c.ot===b.CMCDObjectType.VIDEO||c.ot===b.CMCDObjectType.MUXED;if(this.starved&&A&&(c.bs=!0,c.su=!0,this.starved=!1),c.su==null&&(c.su=this.buffering),this.useHeaders){var p=o.toHeaders(c);if(!Object.keys(p).length)return;r.headers||(r.headers={}),a(r.headers,p)}else{var x=o.toQuery(c);if(!x)return;r.url=o.appendQueryToUri(r.url,x)}},f.getObjectType=function(r){var c=r.type;return c==="subtitle"?b.CMCDObjectType.TIMED_TEXT:r.sn==="initSegment"?b.CMCDObjectType.INIT:c==="audio"?b.CMCDObjectType.AUDIO:c==="main"?this.hls.audioTracks.length?b.CMCDObjectType.VIDEO:b.CMCDObjectType.MUXED:void 0},f.getTopBandwidth=function(r){for(var c=0,A=r===b.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,p=i(A),x;!(x=p()).done;){var _=x.value;_.bitrate>c&&(c=_.bitrate)}return c>0?c:NaN},f.getBufferLength=function(r){var c=this.hls.media,A=r===b.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!A||!c)return NaN;var p=C.BufferHelper.bufferInfo(A,c.currentTime,this.config.maxBufferHole);return p.len*1e3},f.createPlaylistLoader=function(){var r=this.config.pLoader,c=this.applyPlaylistData,A=r||this.config.loader;return function(){function p(_){this.loader=void 0,this.loader=new A(_)}var x=p.prototype;return x.destroy=function(){this.loader.destroy()},x.abort=function(){this.loader.abort()},x.load=function(B,E,g){c(B),this.loader.load(B,E,g)},d(p,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),p}()},f.createFragmentLoader=function(){var r=this.config.fLoader,c=this.applyFragmentData,A=r||this.config.loader;return function(){function p(_){this.loader=void 0,this.loader=new A(_)}var x=p.prototype;return x.destroy=function(){this.loader.destroy()},x.abort=function(){this.loader.abort()},x.load=function(B,E,g){c(B),this.loader.load(B,E,g)},d(p,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),p}()},o.uuid=function(){var r=URL.createObjectURL(new Blob),c=r.toString();return URL.revokeObjectURL(r),c.substr(c.lastIndexOf("/")+1)},o.serialize=function(r){for(var c=[],A=function(k){return!Number.isNaN(k)&&k!=null&&k!==""&&k!==!1},p=function(k){return Math.round(k)},x=function(k){return p(k/100)*100},_=function(k){return encodeURIComponent(k)},B={br:p,d:p,bl:x,dl:x,mtp:x,nor:_,rtp:x,tb:p},E=Object.keys(r||{}).sort(),g=i(E),h;!(h=g()).done;){var u=h.value,S=r[u];if(!A(S))continue;if(u==="v"&&S===1)continue;if(u=="pr"&&S===1)continue;var O=B[u];O&&(S=O(S));var T=typeof S,D=void 0;u==="ot"||u==="sf"||u==="st"?D=u+"="+S:T==="boolean"?D=u:T==="number"?D=u+"="+S:D=u+"="+JSON.stringify(S),c.push(D)}return c.join(",")},o.toHeaders=function(r){for(var c=Object.keys(r),A={},p=["Object","Request","Session","Status"],x=[{},{},{},{}],_={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},B=0,E=c;B<E.length;B++){var g=E[B],h=_[g]!=null?_[g]:1;x[h][g]=r[g]}for(var u=0;u<x.length;u++){var S=o.serialize(x[u]);S&&(A["CMCD-"+p[u]]=S)}return A},o.toQuery=function(r){return"CMCD="+encodeURIComponent(o.serialize(r))},o.appendQueryToUri=function(r,c){if(!c)return r;var A=r.includes("?")?"&":"?";return""+r+A+c},o}()},"./src/controller/eme-controller.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/events.ts"),b=M("./src/errors.ts"),C=M("./src/utils/logger.ts"),w=M("./src/utils/mediakeys-helper.ts");function m(s,o){for(var f=0;f<o.length;f++){var l=o[f];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}function d(s,o,f){return o&&m(s.prototype,o),f&&m(s,f),s}var i=3,n=function(o,f,l){var r={audioCapabilities:[],videoCapabilities:[]};return o.forEach(function(c){r.audioCapabilities.push({contentType:'audio/mp4; codecs="'+c+'"',robustness:l.audioRobustness||""})}),f.forEach(function(c){r.videoCapabilities.push({contentType:'video/mp4; codecs="'+c+'"',robustness:l.videoRobustness||""})}),[r]},e=function(o,f,l,r){switch(o){case w.KeySystems.WIDEVINE:return n(f,l,r);default:throw new Error("Unknown key-system: "+o)}},a=function(){function s(f){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=f,this._config=f.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var o=s.prototype;return o.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},o._registerListeners=function(){this.hls.on(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(v.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(v.Events.MANIFEST_PARSED,this.onManifestParsed,this)},o._unregisterListeners=function(){this.hls.off(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(v.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(v.Events.MANIFEST_PARSED,this.onManifestParsed,this)},o.getLicenseServerUrl=function(l){switch(l){case w.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+l+'"')},o._attemptKeySystemAccess=function(l,r,c){var A=this,p=e(l,r,c,this._drmSystemOptions);C.logger.log("Requesting encrypted media key-system access");var x=this.requestMediaKeySystemAccess(l,p);this.mediaKeysPromise=x.then(function(_){return A._onMediaKeySystemAccessObtained(l,_)}),x.catch(function(_){C.logger.error('Failed to obtain key-system "'+l+'" access:',_)})},o._onMediaKeySystemAccessObtained=function(l,r){var c=this;C.logger.log('Access for key-system "'+l+'" obtained');var A={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:r,mediaKeySystemDomain:l};this._mediaKeysList.push(A);var p=Promise.resolve().then(function(){return r.createMediaKeys()}).then(function(x){return A.mediaKeys=x,C.logger.log('Media-keys created for key-system "'+l+'"'),c._onMediaKeysCreated(),x});return p.catch(function(x){C.logger.error("Failed to create media-keys:",x)}),p},o._onMediaKeysCreated=function(){var l=this;this._mediaKeysList.forEach(function(r){r.mediaKeysSession||(r.mediaKeysSession=r.mediaKeys.createSession(),l._onNewMediaKeySession(r.mediaKeysSession))})},o._onNewMediaKeySession=function(l){var r=this;C.logger.log("New key-system session "+l.sessionId),l.addEventListener("message",function(c){r._onKeySessionMessage(l,c.message)},!1)},o._onKeySessionMessage=function(l,r){C.logger.log("Got EME message event, creating license request"),this._requestLicense(r,function(c){C.logger.log("Received license data (length: "+(c&&c.byteLength)+"), updating key-session"),l.update(c)})},o.onMediaEncrypted=function(l){var r=this;if(C.logger.log('Media is encrypted using "'+l.initDataType+'" init data type'),!this.mediaKeysPromise){C.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(v.Events.ERROR,{type:b.ErrorTypes.KEY_SYSTEM_ERROR,details:b.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var c=function(p){if(!r._media)return;r._attemptSetMediaKeys(p),r._generateRequestWithPreferredKeySession(l.initDataType,l.initData)};this.mediaKeysPromise.then(c).catch(c)},o._attemptSetMediaKeys=function(l){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var r=this._mediaKeysList[0];if(!r||!r.mediaKeys){C.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(v.Events.ERROR,{type:b.ErrorTypes.KEY_SYSTEM_ERROR,details:b.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}C.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(r.mediaKeys),this._hasSetMediaKeys=!0}},o._generateRequestWithPreferredKeySession=function(l,r){var c=this,A=this._mediaKeysList[0];if(!A){C.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(v.Events.ERROR,{type:b.ErrorTypes.KEY_SYSTEM_ERROR,details:b.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(A.mediaKeysSessionInitialized){C.logger.warn("Key-Session already initialized but requested again");return}var p=A.mediaKeysSession;if(!p){C.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(v.Events.ERROR,{type:b.ErrorTypes.KEY_SYSTEM_ERROR,details:b.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!r){C.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(v.Events.ERROR,{type:b.ErrorTypes.KEY_SYSTEM_ERROR,details:b.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}C.logger.log('Generating key-session request for "'+l+'" init data type'),A.mediaKeysSessionInitialized=!0,p.generateRequest(l,r).then(function(){C.logger.debug("Key-session generation succeeded")}).catch(function(x){C.logger.error("Error generating key-session request:",x),c.hls.trigger(v.Events.ERROR,{type:b.ErrorTypes.KEY_SYSTEM_ERROR,details:b.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},o._createLicenseXhr=function(l,r,c){var A=new XMLHttpRequest;A.responseType="arraybuffer",A.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,A,l,r,c);var p=this._licenseXhrSetup;if(p)try{p.call(this.hls,A,l),p=void 0}catch(x){C.logger.error(x)}try{A.readyState||A.open("POST",l,!0),p&&p.call(this.hls,A,l)}catch(x){throw new Error("issue setting up KeySystem license XHR "+x)}return A},o._onLicenseRequestReadyStageChange=function(l,r,c,A){switch(l.readyState){case 4:if(l.status===200){this._requestLicenseFailureCount=0,C.logger.log("License request succeeded");var p=l.response,x=this._licenseResponseCallback;if(x)try{p=x.call(this.hls,l,r)}catch(B){C.logger.error(B)}A(p)}else{if(C.logger.error("License Request XHR failed ("+r+"). Status: "+l.status+" ("+l.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>i){this.hls.trigger(v.Events.ERROR,{type:b.ErrorTypes.KEY_SYSTEM_ERROR,details:b.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var _=i-this._requestLicenseFailureCount+1;C.logger.warn("Retrying license request, "+_+" attempts left"),this._requestLicense(c,A)}break}},o._generateLicenseRequestChallenge=function(l,r){switch(l.mediaKeySystemDomain){case w.KeySystems.WIDEVINE:return r}throw new Error("unsupported key-system: "+l.mediaKeySystemDomain)},o._requestLicense=function(l,r){C.logger.log("Requesting content license for key-system");var c=this._mediaKeysList[0];if(!c){C.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(v.Events.ERROR,{type:b.ErrorTypes.KEY_SYSTEM_ERROR,details:b.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var A=this.getLicenseServerUrl(c.mediaKeySystemDomain),p=this._createLicenseXhr(A,l,r);C.logger.log("Sending license request to URL: "+A);var x=this._generateLicenseRequestChallenge(c,l);p.send(x)}catch(_){C.logger.error("Failure requesting DRM license: "+_),this.hls.trigger(v.Events.ERROR,{type:b.ErrorTypes.KEY_SYSTEM_ERROR,details:b.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},o.onMediaAttached=function(l,r){if(!this._emeEnabled)return;var c=r.media;this._media=c,c.addEventListener("encrypted",this._onMediaEncrypted)},o.onMediaDetached=function(){var l=this._media,r=this._mediaKeysList;if(!l)return;l.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(r.map(function(c){if(c.mediaKeysSession)return c.mediaKeysSession.close().catch(function(){})})).then(function(){return l.setMediaKeys(null)}).catch(function(){})},o.onManifestParsed=function(l,r){if(!this._emeEnabled)return;var c=r.levels.map(function(p){return p.audioCodec}).filter(function(p){return!!p}),A=r.levels.map(function(p){return p.videoCodec}).filter(function(p){return!!p});this._attemptKeySystemAccess(w.KeySystems.WIDEVINE,c,A)},d(s,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),s}();G.default=a},"./src/controller/fps-controller.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/events.ts"),b=M("./src/utils/logger.ts"),C=function(){function w(d){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=d,this.registerListeners()}var m=w.prototype;return m.setStreamController=function(i){this.streamController=i},m.registerListeners=function(){this.hls.on(v.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},m.unregisterListeners=function(){this.hls.off(v.Events.MEDIA_ATTACHING,this.onMediaAttaching)},m.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},m.onMediaAttaching=function(i,n){var e=this.hls.config;if(e.capLevelOnFPSDrop){var a=n.media instanceof self.HTMLVideoElement?n.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),e.fpsDroppedMonitoringPeriod)}},m.checkFPS=function(i,n,e){var a=performance.now();if(n){if(this.lastTime){var s=a-this.lastTime,o=e-this.lastDroppedFrames,f=n-this.lastDecodedFrames,l=1e3*o/s,r=this.hls;if(r.trigger(v.Events.FPS_DROP,{currentDropped:o,currentDecoded:f,totalDroppedFrames:e}),l>0&&o>r.config.fpsDroppedMonitoringThreshold*f){var c=r.currentLevel;b.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+c),c>0&&(r.autoLevelCapping===-1||r.autoLevelCapping>=c)&&(c=c-1,r.trigger(v.Events.FPS_DROP_LEVEL_CAPPING,{level:c,droppedLevel:r.currentLevel}),r.autoLevelCapping=c,this.streamController.nextLevelSwitch())}}this.lastTime=a,this.lastDroppedFrames=e,this.lastDecodedFrames=n}},m.checkFPSInterval=function(){var i=this.media;if(i)if(this.isVideoPlaybackQualityAvailable){var n=i.getVideoPlaybackQuality();this.checkFPS(i,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(i,i.webkitDecodedFrameCount,i.webkitDroppedFrameCount)},w}();G.default=C},"./src/controller/fragment-finders.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"findFragmentByPDT",function(){return C}),M.d(G,"findFragmentByPTS",function(){return w}),M.d(G,"fragmentWithinToleranceTest",function(){return m}),M.d(G,"pdtWithinToleranceTest",function(){return d}),M.d(G,"findFragWithCC",function(){return i});var v=M("./src/polyfills/number.ts"),b=M("./src/utils/binary-search.ts");function C(n,e,a){if(e===null||!Array.isArray(n)||!n.length||!Object(v.isFiniteNumber)(e))return null;var s=n[0].programDateTime;if(e<(s||0))return null;var o=n[n.length-1].endProgramDateTime;if(e>=(o||0))return null;a=a||0;for(var f=0;f<n.length;++f){var l=n[f];if(d(e,a,l))return l}return null}function w(n,e,a,s){a===void 0&&(a=0),s===void 0&&(s=0);var o=null;if(n?o=e[n.sn-e[0].sn+1]||null:a===0&&e[0].start===0&&(o=e[0]),o&&m(a,s,o)===0)return o;var f=b.default.search(e,m.bind(null,a,s));return f||o}function m(n,e,a){n===void 0&&(n=0),e===void 0&&(e=0);var s=Math.min(e,a.duration+(a.deltaPTS?a.deltaPTS:0));return a.start+a.duration-s<=n?1:a.start-s>n&&a.start?-1:0}function d(n,e,a){var s=Math.min(e,a.duration+(a.deltaPTS?a.deltaPTS:0))*1e3,o=a.endProgramDateTime||0;return o-s>n}function i(n,e){return b.default.search(n,function(a){return a.cc<e?1:a.cc>e?-1:0})}},"./src/controller/fragment-tracker.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"FragmentState",function(){return C}),M.d(G,"FragmentTracker",function(){return w});var v=M("./src/events.ts"),b=M("./src/types/loader.ts"),C;(function(i){i.NOT_LOADED="NOT_LOADED",i.BACKTRACKED="BACKTRACKED",i.APPENDING="APPENDING",i.PARTIAL="PARTIAL",i.OK="OK"})(C||(C={}));var w=function(){function i(e){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=e,this._registerListeners()}var n=i.prototype;return n._registerListeners=function(){var a=this.hls;a.on(v.Events.BUFFER_APPENDED,this.onBufferAppended,this),a.on(v.Events.FRAG_BUFFERED,this.onFragBuffered,this),a.on(v.Events.FRAG_LOADED,this.onFragLoaded,this)},n._unregisterListeners=function(){var a=this.hls;a.off(v.Events.BUFFER_APPENDED,this.onBufferAppended,this),a.off(v.Events.FRAG_BUFFERED,this.onFragBuffered,this),a.off(v.Events.FRAG_LOADED,this.onFragLoaded,this)},n.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},n.getAppendedFrag=function(a,s){if(s===b.PlaylistLevelType.MAIN){var o=this.activeFragment,f=this.activeParts;if(!o)return null;if(f)for(var l=f.length;l--;){var r=f[l],c=r?r.end:o.appendedPTS;if(r.start<=a&&c!==void 0&&a<=c)return l>9&&(this.activeParts=f.slice(l-9)),r}else if(o.start<=a&&o.appendedPTS!==void 0&&a<=o.appendedPTS)return o}return this.getBufferedFrag(a,s)},n.getBufferedFrag=function(a,s){for(var o=this.fragments,f=Object.keys(o),l=f.length;l--;){var r=o[f[l]];if((r==null?void 0:r.body.type)===s&&r.buffered){var c=r.body;if(c.start<=a&&a<=c.end)return c}}return null},n.detectEvictedFragments=function(a,s,o){var f=this;Object.keys(this.fragments).forEach(function(l){var r=f.fragments[l];if(!r)return;if(!r.buffered){r.body.type===o&&f.removeFragment(r.body);return}var c=r.range[a];if(!c)return;c.time.some(function(A){var p=!f.isTimeBuffered(A.startPTS,A.endPTS,s);return p&&f.removeFragment(r.body),p})})},n.detectPartialFragments=function(a){var s=this,o=this.timeRanges,f=a.frag,l=a.part;if(!o||f.sn==="initSegment")return;var r=d(f),c=this.fragments[r];if(!c)return;Object.keys(o).forEach(function(A){var p=f.elementaryStreams[A];if(!p)return;var x=o[A],_=l!==null||p.partial===!0;c.range[A]=s.getBufferedTimes(f,l,_,x)}),c.backtrack=c.loaded=null,Object.keys(c.range).length?c.buffered=!0:this.removeFragment(c.body)},n.fragBuffered=function(a){var s=d(a),o=this.fragments[s];o&&(o.backtrack=o.loaded=null,o.buffered=!0)},n.getBufferedTimes=function(a,s,o,f){for(var l={time:[],partial:o},r=s?s.start:a.start,c=s?s.end:a.end,A=a.minEndPTS||c,p=a.maxStartPTS||r,x=0;x<f.length;x++){var _=f.start(x)-this.bufferPadding,B=f.end(x)+this.bufferPadding;if(p>=_&&A<=B){l.time.push({startPTS:Math.max(r,f.start(x)),endPTS:Math.min(c,f.end(x))});break}else if(r<B&&c>_)l.partial=!0,l.time.push({startPTS:Math.max(r,f.start(x)),endPTS:Math.min(c,f.end(x))});else if(c<=_)break}return l},n.getPartialFragment=function(a){var s=null,o,f,l,r=0,c=this.bufferPadding,A=this.fragments;return Object.keys(A).forEach(function(p){var x=A[p];if(!x)return;m(x)&&(f=x.body.start-c,l=x.body.end+c,a>=f&&a<=l&&(o=Math.min(a-f,l-a),r<=o&&(s=x.body,r=o)))}),s},n.getState=function(a){var s=d(a),o=this.fragments[s];return o?o.buffered?m(o)?C.PARTIAL:C.OK:o.backtrack?C.BACKTRACKED:C.APPENDING:C.NOT_LOADED},n.backtrack=function(a,s){var o=d(a),f=this.fragments[o];if(!f||f.backtrack)return null;var l=f.backtrack=s||f.loaded;return f.loaded=null,l},n.getBacktrackData=function(a){var s=d(a),o=this.fragments[s];if(o){var f,l=o.backtrack;if(l!=null&&(f=l.payload)!==null&&f!==void 0&&f.byteLength)return l;this.removeFragment(a)}return null},n.isTimeBuffered=function(a,s,o){for(var f,l,r=0;r<o.length;r++){if(f=o.start(r)-this.bufferPadding,l=o.end(r)+this.bufferPadding,a>=f&&s<=l)return!0;if(s<=f)return!1}return!1},n.onFragLoaded=function(a,s){var o=s.frag,f=s.part;if(o.sn==="initSegment"||o.bitrateTest||f)return;var l=d(o);this.fragments[l]={body:o,loaded:s,backtrack:null,buffered:!1,range:Object.create(null)}},n.onBufferAppended=function(a,s){var o=this,f=s.frag,l=s.part,r=s.timeRanges;if(f.type===b.PlaylistLevelType.MAIN)if(this.activeFragment=f,l){var c=this.activeParts;c||(this.activeParts=c=[]),c.push(l)}else this.activeParts=null;this.timeRanges=r,Object.keys(r).forEach(function(A){var p=r[A];if(o.detectEvictedFragments(A,p),!l)for(var x=0;x<p.length;x++)f.appendedPTS=Math.max(p.end(x),f.appendedPTS||0)})},n.onFragBuffered=function(a,s){this.detectPartialFragments(s)},n.hasFragment=function(a){var s=d(a);return!!this.fragments[s]},n.removeFragmentsInRange=function(a,s,o){var f=this;Object.keys(this.fragments).forEach(function(l){var r=f.fragments[l];if(!r)return;if(r.buffered){var c=r.body;c.type===o&&c.start<s&&c.end>a&&f.removeFragment(c)}})},n.removeFragment=function(a){var s=d(a);a.stats.loaded=0,a.clearElementaryStreamInfo(),delete this.fragments[s]},n.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},i}();function m(i){var n,e;return i.buffered&&(((n=i.range.video)===null||n===void 0?void 0:n.partial)||((e=i.range.audio)===null||e===void 0?void 0:e.partial))}function d(i){return i.type+"_"+i.level+"_"+i.urlId+"_"+i.sn}},"./src/controller/gap-controller.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"STALL_MINIMUM_DURATION_MS",function(){return m}),M.d(G,"MAX_START_GAP_JUMP",function(){return d}),M.d(G,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return i}),M.d(G,"SKIP_BUFFER_RANGE_START",function(){return n}),M.d(G,"default",function(){return e});var v=M("./src/utils/buffer-helper.ts"),b=M("./src/errors.ts"),C=M("./src/events.ts"),w=M("./src/utils/logger.ts"),m=250,d=2,i=.1,n=.05,e=function(){function a(o,f,l,r){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=o,this.media=f,this.fragmentTracker=l,this.hls=r}var s=a.prototype;return s.destroy=function(){this.hls=this.fragmentTracker=this.media=null},s.poll=function(f){var l=this.config,r=this.media,c=this.stalled,A=r.currentTime,p=r.seeking,x=this.seeking&&!p,_=!this.seeking&&p;if(this.seeking=p,A!==f){if(this.moved=!0,c!==null){if(this.stallReported){var B=self.performance.now()-c;w.logger.warn("playback not stuck anymore @"+A+", after "+Math.round(B)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((_||x)&&(this.stalled=null),r.paused||r.ended||r.playbackRate===0||!v.BufferHelper.getBuffered(r).length)return;var E=v.BufferHelper.bufferInfo(r,A,0),g=E.len>0,h=E.nextStart||0;if(!g&&!h)return;if(p){var u=E.len>d,S=!h||h-A>d&&!this.fragmentTracker.getPartialFragment(A);if(u||S)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var O,T=Math.max(h,E.start||0)-A,D=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,I=D==null||((O=D.details)===null||O===void 0)?void 0:O.live,k=I?D.details.targetduration*2:d;if(T>0&&T<=k){this._trySkipBufferHole(null);return}}var F=self.performance.now();if(c===null){this.stalled=F;return}var X=F-c;!p&&X>=m&&this._reportStall(E.len);var U=v.BufferHelper.bufferInfo(r,A,l.maxBufferHole);this._tryFixBufferStall(U,X)},s._tryFixBufferStall=function(f,l){var r=this.config,c=this.fragmentTracker,A=this.media,p=A.currentTime,x=c.getPartialFragment(p);if(x){var _=this._trySkipBufferHole(x);if(_)return}f.len>r.maxBufferHole&&l>r.highBufferWatchdogPeriod*1e3&&(w.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},s._reportStall=function(f){var l=this.hls,r=this.media,c=this.stallReported;c||(this.stallReported=!0,w.logger.warn("Playback stalling at @"+r.currentTime+" due to low buffer (buffer="+f+")"),l.trigger(C.Events.ERROR,{type:b.ErrorTypes.MEDIA_ERROR,details:b.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:f}))},s._trySkipBufferHole=function(f){for(var l=this.config,r=this.hls,c=this.media,A=c.currentTime,p=0,x=v.BufferHelper.getBuffered(c),_=0;_<x.length;_++){var B=x.start(_);if(A+l.maxBufferHole>=p&&A<B){var E=Math.max(B+n,c.currentTime+i);return w.logger.warn("skipping hole, adjusting currentTime from "+A+" to "+E),this.moved=!0,this.stalled=null,c.currentTime=E,f&&r.trigger(C.Events.ERROR,{type:b.ErrorTypes.MEDIA_ERROR,details:b.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+A+" to "+E,frag:f}),E}p=x.end(_)}return 0},s._tryNudgeBuffer=function(){var f=this.config,l=this.hls,r=this.media,c=r.currentTime,A=(this.nudgeRetry||0)+1;if(this.nudgeRetry=A,A<f.nudgeMaxRetry){var p=c+A*f.nudgeOffset;w.logger.warn("Nudging 'currentTime' from "+c+" to "+p),r.currentTime=p,l.trigger(C.Events.ERROR,{type:b.ErrorTypes.MEDIA_ERROR,details:b.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else w.logger.error("Playhead still not moving while enough data buffered @"+c+" after "+f.nudgeMaxRetry+" nudges"),l.trigger(C.Events.ERROR,{type:b.ErrorTypes.MEDIA_ERROR,details:b.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},a}()},"./src/controller/id3-track-controller.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/events.ts"),b=M("./src/utils/texttrack-utils.ts"),C=M("./src/demux/id3.ts"),w=.25,m=function(){function d(n){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=n,this._registerListeners()}var i=d.prototype;return i.destroy=function(){this._unregisterListeners()},i._registerListeners=function(){var e=this.hls;e.on(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(v.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(v.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},i._unregisterListeners=function(){var e=this.hls;e.off(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(v.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(v.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},i.onMediaAttached=function(e,a){this.media=a.media},i.onMediaDetaching=function(){if(!this.id3Track)return;Object(b.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},i.getID3Track=function(e){if(!this.media)return;for(var a=0;a<e.length;a++){var s=e[a];if(s.kind==="metadata"&&s.label==="id3")return Object(b.sendAddTrackEvent)(s,this.media),s}return this.media.addTextTrack("metadata","id3")},i.onFragParsingMetadata=function(e,a){if(!this.media)return;var s=a.frag,o=a.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var f=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,l=0;l<o.length;l++){var r=C.getID3Frames(o[l].data);if(r){var c=o[l].pts,A=l<o.length-1?o[l+1].pts:s.end,p=A-c;p<=0&&(A=c+w);for(var x=0;x<r.length;x++){var _=r[x];if(!C.isTimeStampFrame(_)){var B=new f(c,A,"");B.value=_,this.id3Track.addCue(B)}}}}},i.onBufferFlushing=function(e,a){var s=a.startOffset,o=a.endOffset,f=a.type;if(!f||f==="audio"){var l=this.id3Track;l&&Object(b.removeCuesInRange)(l,s,o)}},d}();G.default=m},"./src/controller/latency-controller.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return d});var v=M("./src/errors.ts"),b=M("./src/events.ts"),C=M("./src/utils/logger.ts");function w(i,n){for(var e=0;e<n.length;e++){var a=n[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,a.key,a)}}function m(i,n,e){return n&&w(i.prototype,n),e&&w(i,e),i}var d=function(){function i(e){var a=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return a.timeupdate()},this.hls=e,this.config=e.config,this.registerListeners()}var n=i.prototype;return n.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},n.registerListeners=function(){this.hls.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(b.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(b.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){this.hls.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(b.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(b.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(b.Events.ERROR,this.onError)},n.onMediaAttached=function(a,s){this.media=s.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},n.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},n.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},n.onLevelUpdated=function(a,s){var o=s.details;this.levelDetails=o,o.advanced&&this.timeupdate(),!o.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},n.onError=function(a,s){if(s.details!==v.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,C.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},n.timeupdate=function(){var a=this.media,s=this.levelDetails;if(!a||!s)return;this.currentTime=a.currentTime;var o=this.computeLatency();if(o===null)return;this._latency=o;var f=this.config,l=f.lowLatencyMode,r=f.maxLiveSyncPlaybackRate;if(!l||r===1)return;var c=this.targetLatency;if(c===null)return;var A=o-c,p=Math.min(this.maxLatency,c+s.targetduration),x=A<p;if(s.live&&x&&A>.05&&this.forwardBufferLength>1){var _=Math.min(2,Math.max(1,r)),B=Math.round(2/(1+Math.exp(-.75*A-this.edgeStalled))*20)/20;a.playbackRate=Math.min(_,Math.max(1,B))}else a.playbackRate!==1&&a.playbackRate!==0&&(a.playbackRate=1)},n.estimateLiveEdge=function(){var a=this.levelDetails;return a===null?null:a.edge+a.age},n.computeLatency=function(){var a=this.estimateLiveEdge();return a===null?null:a-this.currentTime},m(i,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var a=this.config,s=this.levelDetails;return a.liveMaxLatencyDuration!==void 0?a.liveMaxLatencyDuration:s?a.liveMaxLatencyDurationCount*s.targetduration:0}},{key:"targetLatency",get:function(){var a=this.levelDetails;if(a===null)return null;var s=a.holdBack,o=a.partHoldBack,f=a.targetduration,l=this.config,r=l.liveSyncDuration,c=l.liveSyncDurationCount,A=l.lowLatencyMode,p=this.hls.userConfig,x=A&&o||s;(p.liveSyncDuration||p.liveSyncDurationCount||x===0)&&(x=r!==void 0?r:c*f);var _=f,B=1;return x+Math.min(this.stallCount*B,_)}},{key:"liveSyncPosition",get:function(){var a=this.estimateLiveEdge(),s=this.targetLatency,o=this.levelDetails;if(a===null||s===null||o===null)return null;var f=o.edge,l=a-s-this.edgeStalled,r=f-o.totalduration,c=f-(this.config.lowLatencyMode&&o.partTarget||o.targetduration);return Math.min(Math.max(r,l),c)}},{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 s=(this.config.lowLatencyMode&&a.partTarget||a.targetduration)*3;return Math.max(a.age-s,0)}},{key:"forwardBufferLength",get:function(){var a=this.media,s=this.levelDetails;if(!a||!s)return 0;var o=a.buffered.length;return o?a.buffered.end(o-1):s.edge-this.currentTime}}]),i}()},"./src/controller/level-controller.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return l});var v=M("./src/types/level.ts"),b=M("./src/events.ts"),C=M("./src/errors.ts"),w=M("./src/utils/codecs.ts"),m=M("./src/controller/level-helper.ts"),d=M("./src/controller/base-playlist-controller.ts"),i=M("./src/types/loader.ts");function n(){return n=Object.assign||function(r){for(var c=1;c<arguments.length;c++){var A=arguments[c];for(var p in A)Object.prototype.hasOwnProperty.call(A,p)&&(r[p]=A[p])}return r},n.apply(this,arguments)}function e(r,c){for(var A=0;A<c.length;A++){var p=c[A];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(r,p.key,p)}}function a(r,c,A){return c&&e(r.prototype,c),A&&e(r,A),r}function s(r,c){r.prototype=Object.create(c.prototype),r.prototype.constructor=r,o(r,c)}function o(r,c){return o=Object.setPrototypeOf||function(p,x){return p.__proto__=x,p},o(r,c)}var f=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),l=function(r){s(c,r);function c(p){var x;return x=r.call(this,p,"[level-controller]")||this,x._levels=[],x._firstLevel=-1,x._startLevel=void 0,x.currentLevelIndex=-1,x.manualLevelIndex=-1,x.onParsedComplete=void 0,x._registerListeners(),x}var A=c.prototype;return A._registerListeners=function(){var x=this.hls;x.on(b.Events.MANIFEST_LOADED,this.onManifestLoaded,this),x.on(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.on(b.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),x.on(b.Events.FRAG_LOADED,this.onFragLoaded,this),x.on(b.Events.ERROR,this.onError,this)},A._unregisterListeners=function(){var x=this.hls;x.off(b.Events.MANIFEST_LOADED,this.onManifestLoaded,this),x.off(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.off(b.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),x.off(b.Events.FRAG_LOADED,this.onFragLoaded,this),x.off(b.Events.ERROR,this.onError,this)},A.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,r.prototype.destroy.call(this)},A.startLoad=function(){var x=this._levels;x.forEach(function(_){_.loadError=0}),r.prototype.startLoad.call(this)},A.onManifestLoaded=function(x,_){var B=[],E=[],g=[],h,u={},S,O=!1,T=!1,D=!1;if(_.levels.forEach(function(X){var U=X.attrs;O=O||!!(X.width&&X.height),T=T||!!X.videoCodec,D=D||!!X.audioCodec,f&&X.audioCodec&&X.audioCodec.indexOf("mp4a.40.34")!==-1&&(X.audioCodec=void 0);var K=X.bitrate+"-"+X.attrs.RESOLUTION+"-"+X.attrs.CODECS;S=u[K],S?S.url.push(X.url):(S=new v.Level(X),u[K]=S,B.push(S)),U&&(U.AUDIO&&Object(m.addGroupId)(S,"audio",U.AUDIO),U.SUBTITLES&&Object(m.addGroupId)(S,"text",U.SUBTITLES))}),(O||T)&&D&&(B=B.filter(function(X){var U=X.videoCodec,K=X.width,V=X.height;return!!U||!!(K&&V)})),B=B.filter(function(X){var U=X.audioCodec,K=X.videoCodec;return(!U||Object(w.isCodecSupportedInMp4)(U,"audio"))&&(!K||Object(w.isCodecSupportedInMp4)(K,"video"))}),_.audioTracks&&(E=_.audioTracks.filter(function(X){return!X.audioCodec||Object(w.isCodecSupportedInMp4)(X.audioCodec,"audio")}),Object(m.assignTrackIdsByGroup)(E)),_.subtitles&&(g=_.subtitles,Object(m.assignTrackIdsByGroup)(g)),B.length>0){h=B[0].bitrate,B.sort(function(X,U){return X.bitrate-U.bitrate}),this._levels=B;for(var I=0;I<B.length;I++)if(B[I].bitrate===h){this._firstLevel=I,this.log("manifest loaded, "+B.length+" level(s) found, first bitrate: "+h);break}var k=D&&!T,F={levels:B,audioTracks:E,subtitleTracks:g,firstLevel:this._firstLevel,stats:_.stats,audio:D,video:T,altAudio:!k&&E.some(function(X){return!!X.url})};this.hls.trigger(b.Events.MANIFEST_PARSED,F),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(b.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:_.url,reason:"no level with compatible codecs found in manifest"})},A.onError=function(x,_){if(r.prototype.onError.call(this,x,_),_.fatal)return;var B=_.context,E=this._levels[this.currentLevelIndex];if(B&&(B.type===i.PlaylistContextType.AUDIO_TRACK&&E.audioGroupIds&&B.groupId===E.audioGroupIds[E.urlId]||B.type===i.PlaylistContextType.SUBTITLE_TRACK&&E.textGroupIds&&B.groupId===E.textGroupIds[E.urlId])){this.redundantFailover(this.currentLevelIndex);return}var g=!1,h=!0,u;switch(_.details){case C.ErrorDetails.FRAG_LOAD_ERROR:case C.ErrorDetails.FRAG_LOAD_TIMEOUT:case C.ErrorDetails.KEY_LOAD_ERROR:case C.ErrorDetails.KEY_LOAD_TIMEOUT:if(_.frag){var S=this._levels[_.frag.level];S?(S.fragmentError++,S.fragmentError>this.hls.config.fragLoadingMaxRetry&&(u=_.frag.level)):u=_.frag.level}break;case C.ErrorDetails.LEVEL_LOAD_ERROR:case C.ErrorDetails.LEVEL_LOAD_TIMEOUT:B&&(B.deliveryDirectives&&(h=!1),u=B.level),g=!0;break;case C.ErrorDetails.REMUX_ALLOC_ERROR:u=_.level,g=!0;break}u!==void 0&&this.recoverLevel(_,u,g,h)},A.recoverLevel=function(x,_,B,E){var g=x.details,h=this._levels[_];if(h.loadError++,B){var u=this.retryLoadingOrFail(x);if(u)x.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(E){var S=h.url.length;if(S>1&&h.loadError<S)x.levelRetry=!0,this.redundantFailover(_);else if(this.manualLevelIndex===-1){var O=_===0?this._levels.length-1:_-1;this.currentLevelIndex!==O&&this._levels[O].loadError===0&&(this.warn(g+": switch to "+O),x.levelRetry=!0,this.hls.nextAutoLevel=O)}}},A.redundantFailover=function(x){var _=this._levels[x],B=_.url.length;if(B>1){var E=(_.urlId+1)%B;this.warn("Switching to redundant URL-id "+E),this._levels.forEach(function(g){g.urlId=E}),this.level=x}},A.onFragLoaded=function(x,_){var B=_.frag;if(B!==void 0&&B.type===i.PlaylistLevelType.MAIN){var E=this._levels[B.level];E!==void 0&&(E.fragmentError=0,E.loadError=0)}},A.onLevelLoaded=function(x,_){var B,E=_.level,g=_.details,h=this._levels[E];if(!h){var u;this.warn("Invalid level index "+E),(u=_.deliveryDirectives)!==null&&u!==void 0&&u.skip&&(g.deltaUpdateFailed=!0);return}E===this.currentLevelIndex?(h.fragmentError===0&&(h.loadError=0,this.retryCount=0),this.playlistLoaded(E,_,h.details)):(B=_.deliveryDirectives)!==null&&B!==void 0&&B.skip&&(g.deltaUpdateFailed=!0)},A.onAudioTrackSwitched=function(x,_){var B=this.hls.levels[this.currentLevelIndex];if(!B)return;if(B.audioGroupIds){for(var E=-1,g=this.hls.audioTracks[_.id].groupId,h=0;h<B.audioGroupIds.length;h++)if(B.audioGroupIds[h]===g){E=h;break}E!==B.urlId&&(B.urlId=E,this.startLoad())}},A.loadPlaylist=function(x){var _=this.currentLevelIndex,B=this._levels[_];if(this.canLoad&&B&&B.url.length>0){var E=B.urlId,g=B.url[E];if(x)try{g=x.addDirectives(g)}catch(h){this.warn("Could not construct new URL with HLS Delivery Directives: "+h)}this.log("Attempt loading level index "+_+(x?" at sn "+x.msn+" part "+x.part:"")+" with URL-id "+E+" "+g),this.clearTimer(),this.hls.trigger(b.Events.LEVEL_LOADING,{url:g,level:_,id:E,deliveryDirectives:x||null})}},A.removeLevel=function(x,_){var B=function(h,u){return u!==_},E=this._levels.filter(function(g,h){return h!==x?!0:g.url.length>1&&_!==void 0?(g.url=g.url.filter(B),g.audioGroupIds&&(g.audioGroupIds=g.audioGroupIds.filter(B)),g.textGroupIds&&(g.textGroupIds=g.textGroupIds.filter(B)),g.urlId=0,!0):!1}).map(function(g,h){var u=g.details;return u!=null&&u.fragments&&u.fragments.forEach(function(S){S.level=h}),g});this._levels=E,this.hls.trigger(b.Events.LEVELS_UPDATED,{levels:E})},a(c,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(x){var _,B=this._levels;if(B.length===0)return;if(this.currentLevelIndex===x&&(_=B[x])!==null&&_!==void 0&&_.details)return;if(x<0||x>=B.length){var E=x<0;if(this.hls.trigger(b.Events.ERROR,{type:C.ErrorTypes.OTHER_ERROR,details:C.ErrorDetails.LEVEL_SWITCH_ERROR,level:x,fatal:E,reason:"invalid level idx"}),E)return;x=Math.min(x,B.length-1)}this.clearTimer();var g=this.currentLevelIndex,h=B[g],u=B[x];this.log("switching to level "+x+" from "+g),this.currentLevelIndex=x;var S=n({},u,{level:x,maxBitrate:u.maxBitrate,uri:u.uri,urlId:u.urlId});delete S._urlId,this.hls.trigger(b.Events.LEVEL_SWITCHING,S);var O=u.details;if(!O||O.live){var T=this.switchParams(u.uri,h==null?void 0:h.details);this.loadPlaylist(T)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(x){this.manualLevelIndex=x,this._startLevel===void 0&&(this._startLevel=x),x!==-1&&(this.level=x)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(x){this._firstLevel=x}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var x=this.hls.config.startLevel;return x!==void 0?x:this._firstLevel}else return this._startLevel},set:function(x){this._startLevel=x}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(x){this.level=x,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=x)}}]),c}(d.default)},"./src/controller/level-helper.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"addGroupId",function(){return C}),M.d(G,"assignTrackIdsByGroup",function(){return w}),M.d(G,"updatePTS",function(){return m}),M.d(G,"updateFragPTSDTS",function(){return i}),M.d(G,"mergeDetails",function(){return n}),M.d(G,"mapPartIntersection",function(){return e}),M.d(G,"mapFragmentIntersection",function(){return a}),M.d(G,"adjustSliding",function(){return s}),M.d(G,"addSliding",function(){return o}),M.d(G,"computeReloadInterval",function(){return f}),M.d(G,"getFragmentWithSN",function(){return l}),M.d(G,"getPartWith",function(){return r});var v=M("./src/polyfills/number.ts"),b=M("./src/utils/logger.ts");function C(c,A,p){switch(A){case"audio":c.audioGroupIds||(c.audioGroupIds=[]),c.audioGroupIds.push(p);break;case"text":c.textGroupIds||(c.textGroupIds=[]),c.textGroupIds.push(p);break}}function w(c){var A={};c.forEach(function(p){var x=p.groupId||"";p.id=A[x]=A[x]||0,A[x]++})}function m(c,A,p){var x=c[A],_=c[p];d(x,_)}function d(c,A){var p=A.startPTS;if(Object(v.isFiniteNumber)(p)){var x=0,_;A.sn>c.sn?(x=p-c.start,_=c):(x=c.start-p,_=A),_.duration!==x&&(_.duration=x)}else if(A.sn>c.sn){var B=c.cc===A.cc;B&&c.minEndPTS?A.start=c.start+(c.minEndPTS-c.start):A.start=c.start+c.duration}else A.start=Math.max(c.start-A.duration,0)}function i(c,A,p,x,_,B){var E=x-p;E<=0&&(b.logger.warn("Fragment should have a positive duration",A),x=p+A.duration,B=_+A.duration);var g=p,h=x,u=A.startPTS,S=A.endPTS;if(Object(v.isFiniteNumber)(u)){var O=Math.abs(u-p);Object(v.isFiniteNumber)(A.deltaPTS)?A.deltaPTS=Math.max(O,A.deltaPTS):A.deltaPTS=O,g=Math.max(p,u),p=Math.min(p,u),_=Math.min(_,A.startDTS),h=Math.min(x,S),x=Math.max(x,S),B=Math.max(B,A.endDTS)}A.duration=x-p;var T=p-A.start;A.appendedPTS=x,A.start=A.startPTS=p,A.maxStartPTS=g,A.startDTS=_,A.endPTS=x,A.minEndPTS=h,A.endDTS=B;var D=A.sn;if(!c||D<c.startSN||D>c.endSN)return 0;var I,k=D-c.startSN,F=c.fragments;for(F[k]=A,I=k;I>0;I--)d(F[I],F[I-1]);for(I=k;I<F.length-1;I++)d(F[I],F[I+1]);return c.fragmentHint&&d(F[F.length-1],c.fragmentHint),c.PTSKnown=c.alignedSliding=!0,T}function n(c,A){for(var p=null,x=c.fragments,_=x.length-1;_>=0;_--){var B=x[_].initSegment;if(B){p=B;break}}c.fragmentHint&&delete c.fragmentHint.endPTS;var E=0,g;if(a(c,A,function(I,k){I.relurl&&(E=I.cc-k.cc),Object(v.isFiniteNumber)(I.startPTS)&&Object(v.isFiniteNumber)(I.endPTS)&&(k.start=k.startPTS=I.startPTS,k.startDTS=I.startDTS,k.appendedPTS=I.appendedPTS,k.maxStartPTS=I.maxStartPTS,k.endPTS=I.endPTS,k.endDTS=I.endDTS,k.minEndPTS=I.minEndPTS,k.duration=I.endPTS-I.startPTS,k.duration&&(g=k),A.PTSKnown=A.alignedSliding=!0),k.elementaryStreams=I.elementaryStreams,k.loader=I.loader,k.stats=I.stats,k.urlId=I.urlId,I.initSegment&&(k.initSegment=I.initSegment,p=I.initSegment)}),p){var h=A.fragmentHint?A.fragments.concat(A.fragmentHint):A.fragments;h.forEach(function(I){var k;(!I.initSegment||I.initSegment.relurl===((k=p)===null||k===void 0?void 0:k.relurl))&&(I.initSegment=p)})}if(A.skippedSegments&&(A.deltaUpdateFailed=A.fragments.some(function(I){return!I}),A.deltaUpdateFailed)){b.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var u=A.skippedSegments;u--;)A.fragments.shift();A.startSN=A.fragments[0].sn,A.startCC=A.fragments[0].cc}var S=A.fragments;if(E){b.logger.warn("discontinuity sliding from playlist, take drift into account");for(var O=0;O<S.length;O++)S[O].cc+=E}A.skippedSegments&&(A.startCC=A.fragments[0].cc),e(c.partList,A.partList,function(I,k){k.elementaryStreams=I.elementaryStreams,k.stats=I.stats}),g?i(A,g,g.startPTS,g.endPTS,g.startDTS,g.endDTS):s(c,A),S.length&&(A.totalduration=A.edge-S[0].start),A.driftStartTime=c.driftStartTime,A.driftStart=c.driftStart;var T=A.advancedDateTime;if(A.advanced&&T){var D=A.edge;A.driftStart||(A.driftStartTime=T,A.driftStart=D),A.driftEndTime=T,A.driftEnd=D}else A.driftEndTime=c.driftEndTime,A.driftEnd=c.driftEnd,A.advancedDateTime=c.advancedDateTime}function e(c,A,p){if(c&&A)for(var x=0,_=0,B=c.length;_<=B;_++){var E=c[_],g=A[_+x];E&&g&&E.index===g.index&&E.fragment.sn===g.fragment.sn?p(E,g):x--}}function a(c,A,p){for(var x=A.skippedSegments,_=Math.max(c.startSN,A.startSN)-A.startSN,B=(c.fragmentHint?1:0)+(x?A.endSN:Math.min(c.endSN,A.endSN))-A.startSN,E=A.startSN-c.startSN,g=A.fragmentHint?A.fragments.concat(A.fragmentHint):A.fragments,h=c.fragmentHint?c.fragments.concat(c.fragmentHint):c.fragments,u=_;u<=B;u++){var S=h[E+u],O=g[u];x&&!O&&u<x&&(O=A.fragments[u]=S),S&&O&&p(S,O)}}function s(c,A){var p=A.startSN+A.skippedSegments-c.startSN,x=c.fragments;if(p<0||p>=x.length)return;o(A,x[p].start)}function o(c,A){if(A){for(var p=c.fragments,x=c.skippedSegments;x<p.length;x++)p[x].start+=A;c.fragmentHint&&(c.fragmentHint.start+=A)}}function f(c,A){var p=1e3*c.levelTargetDuration,x=p/2,_=c.age,B=_>0&&_<p*3,E=A.loading.end-A.loading.start,g,h=c.availabilityDelay;if(c.updated===!1)if(B){var u=333*c.misses;g=Math.max(Math.min(x,E*2),u),c.availabilityDelay=(c.availabilityDelay||0)+g}else g=x;else B?(h=Math.min(h||p/2,_),c.availabilityDelay=h,g=h+p-_):g=p-E;return Math.round(g)}function l(c,A,p){if(!c||!c.details)return null;var x=c.details,_=x.fragments[A-x.startSN];return _||(_=x.fragmentHint,_&&_.sn===A?_:A<x.startSN&&p&&p.sn===A?p:null)}function r(c,A,p){if(!c||!c.details)return null;var x=c.details.partList;if(x)for(var _=x.length;_--;){var B=x[_];if(B.index===p&&B.fragment.sn===A)return B}return null}},"./src/controller/stream-controller.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return x});var v=M("./src/polyfills/number.ts"),b=M("./src/controller/base-stream-controller.ts"),C=M("./src/is-supported.ts"),w=M("./src/events.ts"),m=M("./src/utils/buffer-helper.ts"),d=M("./src/controller/fragment-tracker.ts"),i=M("./src/types/loader.ts"),n=M("./src/loader/fragment.ts"),e=M("./src/demux/transmuxer-interface.ts"),a=M("./src/types/transmuxer.ts"),s=M("./src/controller/gap-controller.ts"),o=M("./src/errors.ts"),f=M("./src/utils/logger.ts");function l(_,B){for(var E=0;E<B.length;E++){var g=B[E];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(_,g.key,g)}}function r(_,B,E){return B&&l(_.prototype,B),E&&l(_,E),_}function c(_,B){_.prototype=Object.create(B.prototype),_.prototype.constructor=_,A(_,B)}function A(_,B){return A=Object.setPrototypeOf||function(g,h){return g.__proto__=h,g},A(_,B)}var p=100,x=function(_){c(B,_);function B(g,h){var u;return u=_.call(this,g,h,"[stream-controller]")||this,u.audioCodecSwap=!1,u.gapController=null,u.level=-1,u._forceStartLoad=!1,u.altAudio=!1,u.audioOnly=!1,u.fragPlaying=null,u.onvplaying=null,u.onvseeked=null,u.fragLastKbps=0,u.stalled=!1,u.couldBacktrack=!1,u.audioCodecSwitch=!1,u.videoBuffer=null,u._registerListeners(),u}var E=B.prototype;return E._registerListeners=function(){var h=this.hls;h.on(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(w.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(w.Events.LEVEL_LOADED,this.onLevelLoaded,this),h.on(w.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),h.on(w.Events.ERROR,this.onError,this),h.on(w.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),h.on(w.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),h.on(w.Events.BUFFER_CREATED,this.onBufferCreated,this),h.on(w.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),h.on(w.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),h.on(w.Events.FRAG_BUFFERED,this.onFragBuffered,this)},E._unregisterListeners=function(){var h=this.hls;h.off(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(w.Events.LEVEL_LOADED,this.onLevelLoaded,this),h.off(w.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),h.off(w.Events.ERROR,this.onError,this),h.off(w.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),h.off(w.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),h.off(w.Events.BUFFER_CREATED,this.onBufferCreated,this),h.off(w.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),h.off(w.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),h.off(w.Events.FRAG_BUFFERED,this.onFragBuffered,this)},E.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},E.startLoad=function(h){if(this.levels){var u=this.lastCurrentTime,S=this.hls;if(this.stopLoad(),this.setInterval(p),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var O=S.startLevel;O===-1&&(S.config.testBandwidth?(O=0,this.bitrateTest=!0):O=S.nextAutoLevel),this.level=S.nextLoadLevel=O,this.loadedmetadata=!1}u>0&&h===-1&&(this.log("Override startPosition with lastCurrentTime @"+u.toFixed(3)),h=u),this.state=b.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=h,this.tick()}else this._forceStartLoad=!0,this.state=b.State.STOPPED},E.stopLoad=function(){this._forceStartLoad=!1,_.prototype.stopLoad.call(this)},E.doTick=function(){switch(this.state){case b.State.IDLE:this.doTickIdle();break;case b.State.WAITING_LEVEL:{var h,u=this.levels,S=this.level,O=u==null||((h=u[S])===null||h===void 0)?void 0:h.details;if(O&&(!O.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(O))break;this.state=b.State.IDLE;break}break}case b.State.FRAG_LOADING_WAITING_RETRY:{var T,D=self.performance.now(),I=this.retryDate;(!I||D>=I||(T=this.media)!==null&&T!==void 0&&T.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=b.State.IDLE)}break;default:break}this.onTickEnd()},E.onTickEnd=function(){_.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},E.doTickIdle=function(){var h,u,S=this.hls,O=this.levelLastLoaded,T=this.levels,D=this.media,I=S.config,k=S.nextLoadLevel;if(O===null||!D&&(this.startFragRequested||!I.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!T||!T[k])return;var F=T[k];this.level=S.nextLoadLevel=k;var X=F.details;if(!X||this.state===b.State.WAITING_LEVEL||X.live&&this.levelLastLoaded!==k){this.state=b.State.WAITING_LEVEL;return}var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:D,i.PlaylistLevelType.MAIN);if(U===null)return;var K=U.len,V=this.getMaxBufferLength(F.maxBitrate);if(K>=V)return;if(this._streamEnded(U,X)){var N={};this.altAudio&&(N.type="video"),this.hls.trigger(w.Events.BUFFER_EOS,N),this.state=b.State.ENDED;return}var Q=U.end,J=this.getNextFragment(Q,X);if(this.couldBacktrack&&!this.fragPrevious&&J&&J.sn!=="initSegment"){var ne=J.sn-X.startSN;ne>1&&(J=X.fragments[ne-1],this.fragmentTracker.removeFragment(J))}if(J&&this.fragmentTracker.getState(J)===d.FragmentState.OK&&this.nextLoadPosition>Q){var ue=this.audioOnly&&!this.altAudio?n.ElementaryStreamTypes.AUDIO:n.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(D,ue,i.PlaylistLevelType.MAIN),J=this.getNextFragment(this.nextLoadPosition,X)}if(!J)return;J.initSegment&&!J.initSegment.data&&!this.bitrateTest&&(J=J.initSegment),((h=J.decryptdata)===null||h===void 0?void 0:h.keyFormat)==="identity"&&!((u=J.decryptdata)!==null&&u!==void 0&&u.key)?this.loadKey(J,X):this.loadFragment(J,X,Q)},E.loadFragment=function(h,u,S){var O,T=this.fragmentTracker.getState(h);if(this.fragCurrent=h,T===d.FragmentState.BACKTRACKED){var D=this.fragmentTracker.getBacktrackData(h);if(D){this._handleFragmentLoadProgress(D),this._handleFragmentLoadComplete(D);return}else T=d.FragmentState.NOT_LOADED}T===d.FragmentState.NOT_LOADED||T===d.FragmentState.PARTIAL?h.sn==="initSegment"?this._loadInitSegment(h):this.bitrateTest?(h.bitrateTest=!0,this.log("Fragment "+h.sn+" of level "+h.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(h)):(this.startFragRequested=!0,_.prototype.loadFragment.call(this,h,u,S)):T===d.FragmentState.APPENDING?this.reduceMaxBufferLength(h.duration)&&this.fragmentTracker.removeFragment(h):((O=this.media)===null||O===void 0?void 0:O.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},E.getAppendedFrag=function(h){var u=this.fragmentTracker.getAppendedFrag(h,i.PlaylistLevelType.MAIN);return u&&"fragment"in u?u.fragment:u},E.getBufferedFrag=function(h){return this.fragmentTracker.getBufferedFrag(h,i.PlaylistLevelType.MAIN)},E.followingBufferedFrag=function(h){return h?this.getBufferedFrag(h.end+.5):null},E.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},E.nextLevelSwitch=function(){var h=this.levels,u=this.media;if(u!=null&&u.readyState){var S,O=this.getAppendedFrag(u.currentTime);if(O&&O.start>1&&this.flushMainBuffer(0,O.start-1),!u.paused&&h){var T=this.hls.nextLoadLevel,D=h[T],I=this.fragLastKbps;I&&this.fragCurrent?S=this.fragCurrent.duration*D.maxBitrate/(1e3*I)+1:S=0}else S=0;var k=this.getBufferedFrag(u.currentTime+S);if(k){var F=this.followingBufferedFrag(k);if(F){this.abortCurrentFrag();var X=F.maxStartPTS?F.maxStartPTS:F.start,U=F.duration,K=Math.max(k.end,X+Math.min(Math.max(U-this.config.maxFragLookUpTolerance,U*.5),U*.75));this.flushMainBuffer(K,Number.POSITIVE_INFINITY)}}}},E.abortCurrentFrag=function(){var h=this.fragCurrent;this.fragCurrent=null,h!=null&&h.loader&&h.loader.abort(),this.state===b.State.KEY_LOADING&&(this.state=b.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},E.flushMainBuffer=function(h,u){_.prototype.flushMainBuffer.call(this,h,u,this.altAudio?"video":null)},E.onMediaAttached=function(h,u){_.prototype.onMediaAttached.call(this,h,u);var S=u.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),S.addEventListener("playing",this.onvplaying),S.addEventListener("seeked",this.onvseeked),this.gapController=new s.default(this.config,S,this.fragmentTracker,this.hls)},E.onMediaDetaching=function(){var h=this.media;h&&(h.removeEventListener("playing",this.onvplaying),h.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),_.prototype.onMediaDetaching.call(this)},E.onMediaPlaying=function(){this.tick()},E.onMediaSeeked=function(){var h=this.media,u=h?h.currentTime:null;Object(v.isFiniteNumber)(u)&&this.log("Media seeked to "+u.toFixed(3)),this.tick()},E.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(w.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},E.onManifestParsed=function(h,u){var S=!1,O=!1,T;u.levels.forEach(function(D){T=D.audioCodec,T&&(T.indexOf("mp4a.40.2")!==-1&&(S=!0),T.indexOf("mp4a.40.5")!==-1&&(O=!0))}),this.audioCodecSwitch=S&&O&&!Object(C.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=u.levels,this.startFragRequested=!1},E.onLevelLoading=function(h,u){var S=this.levels;if(!S||this.state!==b.State.IDLE)return;var O=S[u.level];(!O.details||O.details.live&&this.levelLastLoaded!==u.level||this.waitForCdnTuneIn(O.details))&&(this.state=b.State.WAITING_LEVEL)},E.onLevelLoaded=function(h,u){var S,O=this.levels,T=u.level,D=u.details,I=D.totalduration;if(!O){this.warn("Levels were reset while loading level "+T);return}this.log("Level "+T+" loaded ["+D.startSN+","+D.endSN+"], cc ["+D.startCC+", "+D.endCC+"] duration:"+I);var k=this.fragCurrent;k&&(this.state===b.State.FRAG_LOADING||this.state===b.State.FRAG_LOADING_WAITING_RETRY)&&(k.level!==u.level&&k.loader&&(this.state=b.State.IDLE,k.loader.abort()));var F=O[T],X=0;if(D.live||(S=F.details)!==null&&S!==void 0&&S.live){if(D.fragments[0]||(D.deltaUpdateFailed=!0),D.deltaUpdateFailed)return;X=this.alignPlaylists(D,F.details)}if(F.details=D,this.levelLastLoaded=T,this.hls.trigger(w.Events.LEVEL_UPDATED,{details:D,level:T}),this.state===b.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(D))return;this.state=b.State.IDLE}this.startFragRequested?D.live&&this.synchronizeToLiveEdge(D):this.setStartPosition(D,X),this.tick()},E._handleFragmentLoadProgress=function(h){var u,S=h.frag,O=h.part,T=h.payload,D=this.levels;if(!D){this.warn("Levels were reset while fragment load was in progress. Fragment "+S.sn+" of level "+S.level+" will not be buffered");return}var I=D[S.level],k=I.details;if(!k){this.warn("Dropping fragment "+S.sn+" of level "+S.level+" after level details were reset");return}var F=I.videoCodec,X=k.PTSKnown||!k.live,U=(u=S.initSegment)===null||u===void 0?void 0:u.data,K=this._getAudioCodec(I),V=this.transmuxer=this.transmuxer||new e.default(this.hls,i.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),N=O?O.index:-1,Q=N!==-1,J=new a.ChunkMetadata(S.level,S.sn,S.stats.chunkCount,T.byteLength,N,Q),ne=this.initPTS[S.cc];V.push(T,U,K,F,S,O,k.totalduration,X,J,ne)},E.onAudioTrackSwitching=function(h,u){var S=this.altAudio,O=!!u.url,T=u.id;if(!O){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var D=this.fragCurrent;D!=null&&D.loader&&(this.log("Switching to main audio track, cancel main fragment load"),D.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var I=this.hls;S&&I.trigger(w.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),I.trigger(w.Events.AUDIO_TRACK_SWITCHED,{id:T})}},E.onAudioTrackSwitched=function(h,u){var S=u.id,O=!!this.hls.audioTracks[S].url;if(O){var T=this.videoBuffer;T&&this.mediaBuffer!==T&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=T)}this.altAudio=O,this.tick()},E.onBufferCreated=function(h,u){var S=u.tracks,O,T,D=!1;for(var I in S){var k=S[I];if(k.id==="main"){if(T=I,O=k,I==="video"){var F=S[I];F&&(this.videoBuffer=F.buffer)}}else D=!0}D&&O?(this.log("Alternate track found, use "+T+".buffered to schedule main fragment loading"),this.mediaBuffer=O.buffer):this.mediaBuffer=this.media},E.onFragBuffered=function(h,u){var S=u.frag,O=u.part;if(S&&S.type!==i.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(S)){this.warn("Fragment "+S.sn+(O?" p: "+O.index:"")+" of level "+S.level+" finished buffering, but was aborted. state: "+this.state),this.state===b.State.PARSED&&(this.state=b.State.IDLE);return}var T=O?O.stats:S.stats;this.fragLastKbps=Math.round(8*T.total/(T.buffering.end-T.loading.first)),S.sn!=="initSegment"&&(this.fragPrevious=S),this.fragBufferedComplete(S,O)},E.onError=function(h,u){switch(u.details){case o.ErrorDetails.FRAG_LOAD_ERROR:case o.ErrorDetails.FRAG_LOAD_TIMEOUT:case o.ErrorDetails.KEY_LOAD_ERROR:case o.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(i.PlaylistLevelType.MAIN,u);break;case o.ErrorDetails.LEVEL_LOAD_ERROR:case o.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==b.State.ERROR&&(u.fatal?(this.warn(""+u.details),this.state=b.State.ERROR):!u.levelRetry&&this.state===b.State.WAITING_LEVEL&&(this.state=b.State.IDLE));break;case o.ErrorDetails.BUFFER_FULL_ERROR:if(u.parent==="main"&&(this.state===b.State.PARSING||this.state===b.State.PARSED)){var S=!0,O=this.getFwdBufferInfo(this.media,i.PlaylistLevelType.MAIN);O&&O.len>.5&&(S=!this.reduceMaxBufferLength(O.len)),S&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},E.checkBuffer=function(){var h=this.media,u=this.gapController;if(!h||!u||!h.readyState)return;var S=m.BufferHelper.getBuffered(h);!this.loadedmetadata&&S.length?(this.loadedmetadata=!0,this.seekToStartPos()):u.poll(this.lastCurrentTime),this.lastCurrentTime=h.currentTime},E.onFragLoadEmergencyAborted=function(){this.state=b.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},E.onBufferFlushed=function(h,u){var S=u.type;if(S!==n.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var O=(S===n.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(O,S,i.PlaylistLevelType.MAIN)}},E.onLevelsUpdated=function(h,u){this.levels=u.levels},E.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},E.seekToStartPos=function(){var h=this.media,u=h.currentTime,S=this.startPosition;if(S>=0&&u<S){if(h.seeking){f.logger.log("could not seek to "+S+", already seeking at "+u);return}var O=m.BufferHelper.getBuffered(h),T=O.length?O.start(0):0,D=T-S;D>0&&(D<this.config.maxBufferHole||D<this.config.maxFragLookUpTolerance)&&(f.logger.log("adjusting start position by "+D+" to match buffer start"),S+=D,this.startPosition=S),this.log("seek to target start position "+S+" from current time "+u),h.currentTime=S}},E._getAudioCodec=function(h){var u=this.config.defaultAudioCodec||h.audioCodec;return this.audioCodecSwap&&u&&(this.log("Swapping audio codec"),u.indexOf("mp4a.40.5")!==-1?u="mp4a.40.2":u="mp4a.40.5"),u},E._loadBitrateTestFrag=function(h){var u=this;this._doFragLoad(h).then(function(S){var O=u.hls;if(!S||O.nextLoadLevel||u.fragContextChanged(h))return;u.fragLoadError=0,u.state=b.State.IDLE,u.startFragRequested=!1,u.bitrateTest=!1;var T=h.stats;T.parsing.start=T.parsing.end=T.buffering.start=T.buffering.end=self.performance.now(),O.trigger(w.Events.FRAG_LOADED,S)})},E._handleTransmuxComplete=function(h){var u,S="main",O=this.hls,T=h.remuxResult,D=h.chunkMeta,I=this.getCurrentContext(D);if(!I){this.warn("The loading context changed while buffering fragment "+D.sn+" of level "+D.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(D.level);return}var k=I.frag,F=I.part,X=I.level,U=T.video,K=T.text,V=T.id3,N=T.initSegment,Q=this.altAudio?void 0:T.audio;if(this.fragContextChanged(k))return;if(this.state=b.State.PARSING,N){N.tracks&&(this._bufferInitSegment(X,N.tracks,k,D),O.trigger(w.Events.FRAG_PARSING_INIT_SEGMENT,{frag:k,id:S,tracks:N.tracks}));var J=N.initPTS,ne=N.timescale;Object(v.isFiniteNumber)(J)&&(this.initPTS[k.cc]=J,O.trigger(w.Events.INIT_PTS_FOUND,{frag:k,id:S,initPTS:J,timescale:ne}))}if(U&&T.independent!==!1){if(X.details){var ue=U.startPTS,be=U.endPTS,de=U.startDTS,_e=U.endDTS;if(F)F.elementaryStreams[U.type]={startPTS:ue,endPTS:be,startDTS:de,endDTS:_e};else if(U.firstKeyFrame&&U.independent&&(this.couldBacktrack=!0),U.dropped&&U.independent){var me=this.getLoadPosition()+this.config.maxBufferHole;if(me<ue){this.backtrack(k);return}k.setElementaryStreamInfo(U.type,k.start,be,k.start,_e,!0)}k.setElementaryStreamInfo(U.type,ue,be,de,_e),this.bufferFragmentData(U,k,F,D)}}else if(T.independent===!1){this.backtrack(k);return}if(Q){var Ee=Q.startPTS,ge=Q.endPTS,Ae=Q.startDTS,ae=Q.endDTS;F&&(F.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:Ee,endPTS:ge,startDTS:Ae,endDTS:ae}),k.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,Ee,ge,Ae,ae),this.bufferFragmentData(Q,k,F,D)}if(V!=null&&(u=V.samples)!==null&&u!==void 0&&u.length){var ve={frag:k,id:S,samples:V.samples};O.trigger(w.Events.FRAG_PARSING_METADATA,ve)}if(K){var oe={frag:k,id:S,samples:K.samples};O.trigger(w.Events.FRAG_PARSING_USERDATA,oe)}},E._bufferInitSegment=function(h,u,S,O){var T=this;if(this.state!==b.State.PARSING)return;this.audioOnly=!!u.audio&&!u.video,this.altAudio&&!this.audioOnly&&delete u.audio;var D=u.audio,I=u.video,k=u.audiovideo;if(D){var F=h.audioCodec,X=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(F&&(F.indexOf("mp4a.40.5")!==-1?F="mp4a.40.2":F="mp4a.40.5"),D.metadata.channelCount!==1&&X.indexOf("firefox")===-1&&(F="mp4a.40.5")),X.indexOf("android")!==-1&&D.container!=="audio/mpeg"&&(F="mp4a.40.2",this.log("Android: force audio codec to "+F)),h.audioCodec&&h.audioCodec!==F&&this.log('Swapping manifest audio codec "'+h.audioCodec+'" for "'+F+'"'),D.levelCodec=F,D.id="main",this.log("Init audio buffer, container:"+D.container+", codecs[selected/level/parsed]=["+(F||"")+"/"+(h.audioCodec||"")+"/"+D.codec+"]")}I&&(I.levelCodec=h.videoCodec,I.id="main",this.log("Init video buffer, container:"+I.container+", codecs[level/parsed]=["+(h.videoCodec||"")+"/"+I.codec+"]")),k&&this.log("Init audiovideo buffer, container:"+k.container+", codecs[level/parsed]=["+(h.attrs.CODECS||"")+"/"+k.codec+"]"),this.hls.trigger(w.Events.BUFFER_CODECS,u),Object.keys(u).forEach(function(U){var K=u[U],V=K.initSegment;V!=null&&V.byteLength&&T.hls.trigger(w.Events.BUFFER_APPENDING,{type:U,data:V,frag:S,part:null,chunkMeta:O,parent:S.type})}),this.tick()},E.backtrack=function(h){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(h);var u=this.fragmentTracker.backtrack(h);this.fragPrevious=null,this.nextLoadPosition=h.start,u?this.resetFragmentLoading(h):this.state=b.State.BACKTRACKING},E.checkFragmentChanged=function(){var h=this.media,u=null;if(h&&h.readyState>1&&h.seeking===!1){var S=h.currentTime;if(m.BufferHelper.isBuffered(h,S)?u=this.getAppendedFrag(S):m.BufferHelper.isBuffered(h,S+.1)&&(u=this.getAppendedFrag(S+.1)),u){var O=this.fragPlaying,T=u.level;(!O||u.sn!==O.sn||O.level!==T||u.urlId!==O.urlId)&&(this.hls.trigger(w.Events.FRAG_CHANGED,{frag:u}),(!O||O.level!==T)&&this.hls.trigger(w.Events.LEVEL_SWITCHED,{level:T}),this.fragPlaying=u)}}},r(B,[{key:"nextLevel",get:function(){var h=this.nextBufferedFrag;return h?h.level:-1}},{key:"currentLevel",get:function(){var h=this.media;if(h){var u=this.getAppendedFrag(h.currentTime);if(u)return u.level}return-1}},{key:"nextBufferedFrag",get:function(){var h=this.media;if(h){var u=this.getAppendedFrag(h.currentTime);return this.followingBufferedFrag(u)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),B}(b.default)},"./src/controller/subtitle-stream-controller.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"SubtitleStreamController",function(){return c});var v=M("./src/events.ts"),b=M("./src/utils/logger.ts"),C=M("./src/utils/buffer-helper.ts"),w=M("./src/controller/fragment-finders.ts"),m=M("./src/utils/discontinuities.ts"),d=M("./src/controller/level-helper.ts"),i=M("./src/controller/fragment-tracker.ts"),n=M("./src/controller/base-stream-controller.ts"),e=M("./src/types/loader.ts"),a=M("./src/types/level.ts");function s(A,p){for(var x=0;x<p.length;x++){var _=p[x];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(A,_.key,_)}}function o(A,p,x){return p&&s(A.prototype,p),x&&s(A,x),A}function f(A,p){A.prototype=Object.create(p.prototype),A.prototype.constructor=A,l(A,p)}function l(A,p){return l=Object.setPrototypeOf||function(_,B){return _.__proto__=B,_},l(A,p)}var r=500,c=function(A){f(p,A);function p(_,B){var E;return E=A.call(this,_,B,"[subtitle-stream-controller]")||this,E.levels=[],E.currentTrackId=-1,E.tracksBuffered=[],E.mainDetails=null,E._registerListeners(),E}var x=p.prototype;return x.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},x._registerListeners=function(){var B=this.hls;B.on(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),B.on(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this),B.on(v.Events.MANIFEST_LOADING,this.onManifestLoading,this),B.on(v.Events.LEVEL_LOADED,this.onLevelLoaded,this),B.on(v.Events.ERROR,this.onError,this),B.on(v.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),B.on(v.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),B.on(v.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),B.on(v.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),B.on(v.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},x._unregisterListeners=function(){var B=this.hls;B.off(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),B.off(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this),B.off(v.Events.MANIFEST_LOADING,this.onManifestLoading,this),B.off(v.Events.LEVEL_LOADED,this.onLevelLoaded,this),B.off(v.Events.ERROR,this.onError,this),B.off(v.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),B.off(v.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),B.off(v.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),B.off(v.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),B.off(v.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},x.startLoad=function(){this.stopLoad(),this.state=n.State.IDLE,this.setInterval(r),this.tick()},x.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},x.onLevelLoaded=function(B,E){this.mainDetails=E.details},x.onSubtitleFragProcessed=function(B,E){var g=E.frag,h=E.success;if(this.fragPrevious=g,this.state=n.State.IDLE,!h)return;var u=this.tracksBuffered[this.currentTrackId];if(!u)return;for(var S,O=g.start,T=0;T<u.length;T++)if(O>=u[T].start&&O<=u[T].end){S=u[T];break}var D=g.start+g.duration;S?S.end=D:(S={start:O,end:D},u.push(S)),this.fragmentTracker.fragBuffered(g)},x.onBufferFlushing=function(B,E){var g=E.startOffset,h=E.endOffset;if(g===0&&h!==Number.POSITIVE_INFINITY){var u=this.currentTrackId,S=this.levels;if(!S.length||!S[u]||!S[u].details)return;var O=S[u].details,T=O.targetduration,D=h-T;if(D<=0)return;E.endOffsetSubtitles=Math.max(0,D),this.tracksBuffered.forEach(function(I){for(var k=0;k<I.length;){if(I[k].end<=D){I.shift();continue}else if(I[k].start<D)I[k].start=D;else break;k++}}),this.fragmentTracker.removeFragmentsInRange(g,D,e.PlaylistLevelType.SUBTITLE)}},x.onError=function(B,E){var g,h=E.frag;if(!h||h.type!==e.PlaylistLevelType.SUBTITLE)return;(g=this.fragCurrent)!==null&&g!==void 0&&g.loader&&this.fragCurrent.loader.abort(),this.state=n.State.IDLE},x.onSubtitleTracksUpdated=function(B,E){var g=this,h=E.subtitleTracks;this.tracksBuffered=[],this.levels=h.map(function(u){return new a.Level(u)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(u){g.tracksBuffered[u.id]=[]}),this.mediaBuffer=null},x.onSubtitleTrackSwitch=function(B,E){if(this.currentTrackId=E.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var g=this.levels[this.currentTrackId];g!=null&&g.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,g&&this.setInterval(r)},x.onSubtitleTrackLoaded=function(B,E){var g,h=E.details,u=E.id,S=this.currentTrackId,O=this.levels;if(!O.length)return;var T=O[S];if(u>=O.length||u!==S||!T)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,h.live||(g=T.details)!==null&&g!==void 0&&g.live){var D=this.mainDetails;if(h.deltaUpdateFailed||!D)return;var I=D.fragments[0];if(!T.details)h.hasProgramDateTime&&D.hasProgramDateTime?Object(m.alignMediaPlaylistByPDT)(h,D):I&&Object(d.addSliding)(h,I.start);else{var k=this.alignPlaylists(h,T.details);k===0&&I&&Object(d.addSliding)(h,I.start)}}if(T.details=h,this.levelLastLoaded=u,this.tick(),h.live&&!this.fragCurrent&&this.media&&this.state===n.State.IDLE){var F=Object(w.findFragmentByPTS)(null,h.fragments,this.media.currentTime,0);F||(this.warn("Subtitle playlist not aligned with playback"),T.details=void 0)}},x._handleFragmentLoadComplete=function(B){var E=B.frag,g=B.payload,h=E.decryptdata,u=this.hls;if(this.fragContextChanged(E))return;if(g&&g.byteLength>0&&h&&h.key&&h.iv&&h.method==="AES-128"){var S=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(g),h.key.buffer,h.iv.buffer).then(function(O){var T=performance.now();u.trigger(v.Events.FRAG_DECRYPTED,{frag:E,payload:O,stats:{tstart:S,tdecrypt:T}})})}},x.doTick=function(){if(!this.media){this.state=n.State.IDLE;return}if(this.state===n.State.IDLE){var B,E=this.currentTrackId,g=this.levels;if(!g.length||!g[E]||!g[E].details)return;var h=g[E].details,u=h.targetduration,S=this.config,O=this.media,T=C.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,O.currentTime-u,S.maxBufferHole),D=T.end,I=T.len,k=this.getMaxBufferLength()+u;if(I>k)return;console.assert(h,"Subtitle track details are defined on idle subtitle stream controller tick");var F=h.fragments,X=F.length,U=h.edge,K,V=this.fragPrevious;if(D<U){var N=S.maxFragLookUpTolerance;V&&h.hasProgramDateTime&&(K=Object(w.findFragmentByPDT)(F,V.endProgramDateTime,N)),K||(K=Object(w.findFragmentByPTS)(V,F,D,N),!K&&V&&V.start<F[0].start&&(K=F[0]))}else K=F[X-1];(B=K)!==null&&B!==void 0&&B.encrypted?(b.logger.log("Loading key for "+K.sn),this.state=n.State.KEY_LOADING,this.hls.trigger(v.Events.KEY_LOADING,{frag:K})):K&&this.fragmentTracker.getState(K)===i.FragmentState.NOT_LOADED&&this.loadFragment(K,h,D)}},x.loadFragment=function(B,E,g){this.fragCurrent=B,A.prototype.loadFragment.call(this,B,E,g)},o(p,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),p}(n.default)},"./src/controller/subtitle-track-controller.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/events.ts"),b=M("./src/utils/texttrack-utils.ts"),C=M("./src/controller/base-playlist-controller.ts"),w=M("./src/types/loader.ts");function m(s,o){for(var f=0;f<o.length;f++){var l=o[f];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}function d(s,o,f){return o&&m(s.prototype,o),f&&m(s,f),s}function i(s,o){s.prototype=Object.create(o.prototype),s.prototype.constructor=s,n(s,o)}function n(s,o){return n=Object.setPrototypeOf||function(l,r){return l.__proto__=r,l},n(s,o)}var e=function(s){i(o,s);function o(l){var r;return r=s.call(this,l,"[subtitle-track-controller]")||this,r.media=null,r.tracks=[],r.groupId=null,r.tracksInGroup=[],r.trackId=-1,r.selectDefaultTrack=!0,r.queuedDefaultTrack=-1,r.trackChangeListener=function(){return r.onTextTracksChanged()},r.asyncPollTrackChange=function(){return r.pollTrackChange(0)},r.useTextTrackPolling=!1,r.subtitlePollingInterval=-1,r.subtitleDisplay=!0,r.registerListeners(),r}var f=o.prototype;return f.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,s.prototype.destroy.call(this)},f.registerListeners=function(){var r=this.hls;r.on(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),r.on(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.on(v.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.on(v.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.on(v.Events.LEVEL_LOADING,this.onLevelLoading,this),r.on(v.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),r.on(v.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),r.on(v.Events.ERROR,this.onError,this)},f.unregisterListeners=function(){var r=this.hls;r.off(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),r.off(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.off(v.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.off(v.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.off(v.Events.LEVEL_LOADING,this.onLevelLoading,this),r.off(v.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),r.off(v.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),r.off(v.Events.ERROR,this.onError,this)},f.onMediaAttached=function(r,c){if(this.media=c.media,!this.media)return;this.queuedDefaultTrack>-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)},f.pollTrackChange=function(r){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,r)},f.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 r=a(this.media.textTracks);r.forEach(function(c){Object(b.clearCurrentCues)(c)}),this.subtitleTrack=-1,this.media=null},f.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},f.onManifestParsed=function(r,c){this.tracks=c.subtitleTracks},f.onSubtitleTrackLoaded=function(r,c){var A=c.id,p=c.details,x=this.trackId,_=this.tracksInGroup[x];if(!_){this.warn("Invalid subtitle track id "+A);return}var B=_.details;_.details=c.details,this.log("subtitle track "+A+" loaded ["+p.startSN+"-"+p.endSN+"]"),A===this.trackId&&(this.retryCount=0,this.playlistLoaded(A,c,B))},f.onLevelLoading=function(r,c){this.switchLevel(c.level)},f.onLevelSwitching=function(r,c){this.switchLevel(c.level)},f.switchLevel=function(r){var c=this.hls.levels[r];if(!(c!=null&&c.textGroupIds))return;var A=c.textGroupIds[c.urlId];if(this.groupId!==A){var p=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,x=this.tracks.filter(function(E){return!A||E.groupId===A});this.tracksInGroup=x;var _=this.findTrackId(p==null?void 0:p.name)||this.findTrackId();this.groupId=A;var B={subtitleTracks:x};this.log("Updating subtitle tracks, "+x.length+' track(s) found in "'+A+'" group-id'),this.hls.trigger(v.Events.SUBTITLE_TRACKS_UPDATED,B),_!==-1&&this.setSubtitleTrack(_,p)}},f.findTrackId=function(r){for(var c=this.tracksInGroup,A=0;A<c.length;A++){var p=c[A];if((!this.selectDefaultTrack||p.default)&&(!r||r===p.name))return p.id}return-1},f.onError=function(r,c){if(s.prototype.onError.call(this,r,c),c.fatal||!c.context)return;c.context.type===w.PlaylistContextType.SUBTITLE_TRACK&&c.context.id===this.trackId&&c.context.groupId===this.groupId&&this.retryLoadingOrFail(c)},f.loadPlaylist=function(r){var c=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(c)){var A=c.id,p=c.groupId,x=c.url;if(r)try{x=r.addDirectives(x)}catch(_){this.warn("Could not construct new URL with HLS Delivery Directives: "+_)}this.log("Loading subtitle playlist for id "+A),this.hls.trigger(v.Events.SUBTITLE_TRACK_LOADING,{url:x,id:A,groupId:p,deliveryDirectives:r||null})}},f.toggleTrackModes=function(r){var c=this,A=this.media,p=this.subtitleDisplay,x=this.trackId;if(!A)return;var _=a(A.textTracks),B=_.filter(function(h){return h.groupId===c.groupId});if(r===-1)[].slice.call(_).forEach(function(h){h.mode="disabled"});else{var E=B[x];E&&(E.mode="disabled")}var g=B[r];g&&(g.mode=p?"showing":"hidden")},f.setSubtitleTrack=function(r,c){var A,p=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=r;return}if(this.trackId!==r&&this.toggleTrackModes(r),this.trackId===r&&(r===-1||(A=p[r])!==null&&A!==void 0&&A.details)||r<-1||r>=p.length)return;this.clearTimer();var x=p[r];if(this.log("Switching to subtitle track "+r),this.trackId=r,x){var _=x.id,B=x.groupId,E=B===void 0?"":B,g=x.name,h=x.type,u=x.url;this.hls.trigger(v.Events.SUBTITLE_TRACK_SWITCH,{id:_,groupId:E,name:g,type:h,url:u});var S=this.switchParams(x.url,c==null?void 0:c.details);this.loadPlaylist(S)}else this.hls.trigger(v.Events.SUBTITLE_TRACK_SWITCH,{id:r})},f.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var r=-1,c=a(this.media.textTracks),A=0;A<c.length;A++)if(c[A].mode==="hidden")r=A;else if(c[A].mode==="showing"){r=A;break}this.subtitleTrack!==r&&(this.subtitleTrack=r)},d(o,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(r){this.selectDefaultTrack=!1;var c=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(r,c)}}]),o}(C.default);function a(s){for(var o=[],f=0;f<s.length;f++){var l=s[f];l.kind==="subtitles"&&l.label&&o.push(s[f])}return o}G.default=e},"./src/controller/timeline-controller.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"TimelineController",function(){return a});var v=M("./src/polyfills/number.ts"),b=M("./src/events.ts"),C=M("./src/utils/cea-608-parser.ts"),w=M("./src/utils/output-filter.ts"),m=M("./src/utils/webvtt-parser.ts"),d=M("./src/utils/texttrack-utils.ts"),i=M("./src/utils/imsc1-ttml-parser.ts"),n=M("./src/types/loader.ts"),e=M("./src/utils/logger.ts"),a=function(){function l(c){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.timescale=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=f(),this.captionsProperties=void 0,this.hls=c,this.config=c.config,this.Cues=c.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var A=new w.default(this,"textTrack1"),p=new w.default(this,"textTrack2"),x=new w.default(this,"textTrack3"),_=new w.default(this,"textTrack4");this.cea608Parser1=new C.default(1,A,p),this.cea608Parser2=new C.default(3,x,_)}c.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),c.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),c.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),c.on(b.Events.MANIFEST_LOADED,this.onManifestLoaded,this),c.on(b.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),c.on(b.Events.FRAG_LOADING,this.onFragLoading,this),c.on(b.Events.FRAG_LOADED,this.onFragLoaded,this),c.on(b.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),c.on(b.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),c.on(b.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),c.on(b.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),c.on(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var r=l.prototype;return r.destroy=function(){var A=this.hls;A.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),A.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),A.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),A.off(b.Events.MANIFEST_LOADED,this.onManifestLoaded,this),A.off(b.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),A.off(b.Events.FRAG_LOADING,this.onFragLoading,this),A.off(b.Events.FRAG_LOADED,this.onFragLoaded,this),A.off(b.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),A.off(b.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),A.off(b.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),A.off(b.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),A.off(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},r.addCues=function(A,p,x,_,B){for(var E=!1,g=B.length;g--;){var h=B[g],u=o(h[0],h[1],p,x);if(u>=0&&(h[0]=Math.min(h[0],p),h[1]=Math.max(h[1],x),E=!0,u/(x-p)>.5))return}if(E||B.push([p,x]),this.config.renderTextTracksNatively){var S=this.captionsTracks[A];this.Cues.newCue(S,p,x,_)}else{var O=this.Cues.newCue(null,p,x,_);this.hls.trigger(b.Events.CUES_PARSED,{type:"captions",cues:O,track:A})}},r.onInitPtsFound=function(A,p){var x=this,_=p.frag,B=p.id,E=p.initPTS,g=p.timescale,h=this.unparsedVttFrags;B==="main"&&(this.initPTS[_.cc]=E,this.timescale[_.cc]=g),h.length&&(this.unparsedVttFrags=[],h.forEach(function(u){x.onFragLoaded(b.Events.FRAG_LOADED,u)}))},r.getExistingTrack=function(A){var p=this.media;if(p)for(var x=0;x<p.textTracks.length;x++){var _=p.textTracks[x];if(_[A])return _}return null},r.createCaptionsTrack=function(A){this.config.renderTextTracksNatively?this.createNativeTrack(A):this.createNonNativeTrack(A)},r.createNativeTrack=function(A){if(this.captionsTracks[A])return;var p=this.captionsProperties,x=this.captionsTracks,_=this.media,B=p[A],E=B.label,g=B.languageCode,h=this.getExistingTrack(A);if(h)x[A]=h,Object(d.clearCurrentCues)(x[A]),Object(d.sendAddTrackEvent)(x[A],_);else{var u=this.createTextTrack("captions",E,g);u&&(u[A]=!0,x[A]=u)}},r.createNonNativeTrack=function(A){if(this.nonNativeCaptionsTracks[A])return;var p=this.captionsProperties[A];if(!p)return;var x=p.label,_={_id:A,label:x,kind:"captions",default:p.media?!!p.media.default:!1,closedCaptions:p.media};this.nonNativeCaptionsTracks[A]=_,this.hls.trigger(b.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[_]})},r.createTextTrack=function(A,p,x){var _=this.media;return _?_.addTextTrack(A,p,x):void 0},r.onMediaAttaching=function(A,p){this.media=p.media,this._cleanTracks()},r.onMediaDetaching=function(){var A=this.captionsTracks;Object.keys(A).forEach(function(p){Object(d.clearCurrentCues)(A[p]),delete A[p]}),this.nonNativeCaptionsTracks={}},r.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=f(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},r._cleanTracks=function(){var A=this.media;if(!A)return;var p=A.textTracks;if(p)for(var x=0;x<p.length;x++)Object(d.clearCurrentCues)(p[x])},r.onSubtitleTracksUpdated=function(A,p){var x=this;this.textTracks=[];var _=p.subtitleTracks||[],B=_.some(function(u){return u.textCodec===i.IMSC1_CODEC});if(this.config.enableWebVTT||B&&this.config.enableIMSC1){var E=this.tracks&&_&&this.tracks.length===_.length;if(this.tracks=_||[],this.config.renderTextTracksNatively){var g=this.media?this.media.textTracks:[];this.tracks.forEach(function(u,S){var O;if(S<g.length){for(var T=null,D=0;D<g.length;D++)if(s(g[D],u)){T=g[D];break}T&&(O=T)}O?Object(d.clearCurrentCues)(O):(O=x.createTextTrack("subtitles",u.name,u.lang),O&&(O.mode="disabled")),O&&(O.groupId=u.groupId,x.textTracks.push(O))})}else if(!E&&this.tracks&&this.tracks.length){var h=this.tracks.map(function(u){return{label:u.name,kind:u.type.toLowerCase(),default:u.default,subtitleTrack:u}});this.hls.trigger(b.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:h})}}},r.onManifestLoaded=function(A,p){var x=this;this.config.enableCEA708Captions&&p.captions&&p.captions.forEach(function(_){var B=/(?:CC|SERVICE)([1-4])/.exec(_.instreamId);if(!B)return;var E="textTrack"+B[1],g=x.captionsProperties[E];if(!g)return;g.label=_.name,_.lang&&(g.languageCode=_.lang),g.media=_})},r.onFragLoading=function(A,p){var x=this.cea608Parser1,_=this.cea608Parser2,B=this.lastSn,E=this.lastPartIndex;if(!this.enabled||!(x&&_))return;if(p.frag.type===n.PlaylistLevelType.MAIN){var g,h,u=p.frag.sn,S=(g=p==null||((h=p.part)===null||h===void 0)?void 0:h.index)!=null?g:-1;u===B+1||u===B&&S===E+1||(x.reset(),_.reset()),this.lastSn=u,this.lastPartIndex=S}},r.onFragLoaded=function(A,p){var x=p.frag,_=p.payload,B=this.initPTS,E=this.unparsedVttFrags;if(x.type===n.PlaylistLevelType.SUBTITLE)if(_.byteLength){if(!Object(v.isFiniteNumber)(B[x.cc])){E.push(p),B.length&&this.hls.trigger(b.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:x,error:new Error("Missing initial subtitle PTS")});return}var g=x.decryptdata;if(g==null||g.key==null||g.method!=="AES-128"){var h=this.tracks[x.level],u=this.vttCCs;u[x.cc]||(u[x.cc]={start:x.start,prevCC:this.prevCC,new:!0},this.prevCC=x.cc),h&&h.textCodec===i.IMSC1_CODEC?this._parseIMSC1(x,_):this._parseVTTs(x,_,u)}}else this.hls.trigger(b.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:x,error:new Error("Empty subtitle payload")})},r._parseIMSC1=function(A,p){var x=this,_=this.hls;Object(i.parseIMSC1)(p,this.initPTS[A.cc],this.timescale[A.cc],function(B){x._appendCues(B,A.level),_.trigger(b.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:A})},function(B){e.logger.log("Failed to parse IMSC1: "+B),_.trigger(b.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:A,error:B})})},r._parseVTTs=function(A,p,x){var _=this,B=this.hls;Object(m.parseWebVTT)(p,this.initPTS[A.cc],this.timescale[A.cc],x,A.cc,A.start,function(E){_._appendCues(E,A.level),B.trigger(b.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:A})},function(E){_._fallbackToIMSC1(A,p),e.logger.log("Failed to parse VTT cue: "+E),B.trigger(b.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:A,error:E})})},r._fallbackToIMSC1=function(A,p){var x=this,_=this.tracks[A.level];_.textCodec||Object(i.parseIMSC1)(p,this.initPTS[A.cc],this.timescale[A.cc],function(){_.textCodec=i.IMSC1_CODEC,x._parseIMSC1(A,p)},function(){_.textCodec="wvtt"})},r._appendCues=function(A,p){var x=this.hls;if(this.config.renderTextTracksNatively){var _=this.textTracks[p];if(_.mode==="disabled")return;A.forEach(function(g){return Object(d.addCueToTrack)(_,g)})}else{var B=this.tracks[p],E=B.default?"default":"subtitles"+p;x.trigger(b.Events.CUES_PARSED,{type:"subtitles",cues:A,track:E})}},r.onFragDecrypted=function(A,p){var x=p.frag;if(x.type===n.PlaylistLevelType.SUBTITLE){if(!Object(v.isFiniteNumber)(this.initPTS[x.cc])){this.unparsedVttFrags.push(p);return}this.onFragLoaded(b.Events.FRAG_LOADED,p)}},r.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},r.onFragParsingUserdata=function(A,p){var x=this.cea608Parser1,_=this.cea608Parser2;if(!this.enabled||!(x&&_))return;for(var B=0;B<p.samples.length;B++){var E=p.samples[B].bytes;if(E){var g=this.extractCea608Data(E);x.addData(p.samples[B].pts,g[0]),_.addData(p.samples[B].pts,g[1])}}},r.onBufferFlushing=function(A,p){var x=p.startOffset,_=p.endOffset,B=p.endOffsetSubtitles,E=p.type,g=this.media;if(!g||g.currentTime<_)return;if(!E||E==="video"){var h=this.captionsTracks;Object.keys(h).forEach(function(S){return Object(d.removeCuesInRange)(h[S],x,_)})}if(this.config.renderTextTracksNatively&&(x===0&&B!==void 0)){var u=this.textTracks;Object.keys(u).forEach(function(S){return Object(d.removeCuesInRange)(u[S],x,B)})}},r.extractCea608Data=function(A){for(var p=A[0]&31,x=2,_=[[],[]],B=0;B<p;B++){var E=A[x++],g=127&A[x++],h=127&A[x++],u=(4&E)!==0,S=3&E;if(g===0&&h===0)continue;u&&((S===0||S===1)&&(_[S].push(g),_[S].push(h)))}return _},l}();function s(l,r){return l&&l.label===r.name&&!(l.textTrack1||l.textTrack2)}function o(l,r,c,A){return Math.min(r,A)-Math.max(l,c)}function f(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return v});var v=function(){function b(w,m){this.subtle=void 0,this.aesIV=void 0,this.subtle=w,this.aesIV=m}var C=b.prototype;return C.decrypt=function(m,d){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},d,m)},b}()},"./src/crypt/aes-decryptor.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"removePadding",function(){return b}),M.d(G,"default",function(){return C});var v=M("./src/utils/typed-array.ts");function b(w){var m=w.byteLength,d=m&&new DataView(w.buffer).getUint8(m-1);return d?Object(v.sliceUint8)(w,0,m-d):w}var C=function(){function w(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var m=w.prototype;return m.uint8ArrayToUint32Array_=function(i){for(var n=new DataView(i),e=new Uint32Array(4),a=0;a<4;a++)e[a]=n.getUint32(a*4);return e},m.initTable=function(){var i=this.sBox,n=this.invSBox,e=this.subMix,a=e[0],s=e[1],o=e[2],f=e[3],l=this.invSubMix,r=l[0],c=l[1],A=l[2],p=l[3],x=new Uint32Array(256),_=0,B=0,E=0;for(E=0;E<256;E++)E<128?x[E]=E<<1:x[E]=E<<1^283;for(E=0;E<256;E++){var g=B^B<<1^B<<2^B<<3^B<<4;g=g>>>8^g&255^99,i[_]=g,n[g]=_;var h=x[_],u=x[h],S=x[u],O=x[g]*257^g*16843008;a[_]=O<<24|O>>>8,s[_]=O<<16|O>>>16,o[_]=O<<8|O>>>24,f[_]=O,O=S*16843009^u*65537^h*257^_*16843008,r[g]=O<<24|O>>>8,c[g]=O<<16|O>>>16,A[g]=O<<8|O>>>24,p[g]=O,_?(_=h^x[x[x[S^h]]],B^=x[x[B]]):_=B=1}},m.expandKey=function(i){for(var n=this.uint8ArrayToUint32Array_(i),e=!0,a=0;a<n.length&&e;)e=n[a]===this.key[a],a++;if(e)return;this.key=n;var s=this.keySize=n.length;if(s!==4&&s!==6&&s!==8)throw new Error("Invalid aes key size="+s);var o=this.ksRows=(s+6+1)*4,f,l,r=this.keySchedule=new Uint32Array(o),c=this.invKeySchedule=new Uint32Array(o),A=this.sBox,p=this.rcon,x=this.invSubMix,_=x[0],B=x[1],E=x[2],g=x[3],h,u;for(f=0;f<o;f++){if(f<s){h=r[f]=n[f];continue}u=h,f%s===0?(u=u<<8|u>>>24,u=A[u>>>24]<<24|A[u>>>16&255]<<16|A[u>>>8&255]<<8|A[u&255],u^=p[f/s|0]<<24):s>6&&f%s===4&&(u=A[u>>>24]<<24|A[u>>>16&255]<<16|A[u>>>8&255]<<8|A[u&255]),r[f]=h=(r[f-s]^u)>>>0}for(l=0;l<o;l++)f=o-l,l&3?u=r[f]:u=r[f-4],l<4||f<=4?c[l]=u:c[l]=_[A[u>>>24]]^B[A[u>>>16&255]]^E[A[u>>>8&255]]^g[A[u&255]],c[l]=c[l]>>>0},m.networkToHostOrderSwap=function(i){return i<<24|(i&65280)<<8|(i&16711680)>>8|i>>>24},m.decrypt=function(i,n,e){for(var a=this.keySize+6,s=this.invKeySchedule,o=this.invSBox,f=this.invSubMix,l=f[0],r=f[1],c=f[2],A=f[3],p=this.uint8ArrayToUint32Array_(e),x=p[0],_=p[1],B=p[2],E=p[3],g=new Int32Array(i),h=new Int32Array(g.length),u,S,O,T,D,I,k,F,X,U,K,V,N,Q,J=this.networkToHostOrderSwap;n<g.length;){for(X=J(g[n]),U=J(g[n+1]),K=J(g[n+2]),V=J(g[n+3]),D=X^s[0],I=V^s[1],k=K^s[2],F=U^s[3],N=4,Q=1;Q<a;Q++)u=l[D>>>24]^r[I>>16&255]^c[k>>8&255]^A[F&255]^s[N],S=l[I>>>24]^r[k>>16&255]^c[F>>8&255]^A[D&255]^s[N+1],O=l[k>>>24]^r[F>>16&255]^c[D>>8&255]^A[I&255]^s[N+2],T=l[F>>>24]^r[D>>16&255]^c[I>>8&255]^A[k&255]^s[N+3],D=u,I=S,k=O,F=T,N=N+4;u=o[D>>>24]<<24^o[I>>16&255]<<16^o[k>>8&255]<<8^o[F&255]^s[N],S=o[I>>>24]<<24^o[k>>16&255]<<16^o[F>>8&255]<<8^o[D&255]^s[N+1],O=o[k>>>24]<<24^o[F>>16&255]<<16^o[D>>8&255]<<8^o[I&255]^s[N+2],T=o[F>>>24]<<24^o[D>>16&255]<<16^o[I>>8&255]<<8^o[k&255]^s[N+3],h[n]=J(u^x),h[n+1]=J(T^_),h[n+2]=J(O^B),h[n+3]=J(S^E),x=X,_=U,B=K,E=V,n=n+4}return h.buffer},w}()},"./src/crypt/decrypter.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return n});var v=M("./src/crypt/aes-crypto.ts"),b=M("./src/crypt/fast-aes-key.ts"),C=M("./src/crypt/aes-decryptor.ts"),w=M("./src/utils/logger.ts"),m=M("./src/utils/mp4-tools.ts"),d=M("./src/utils/typed-array.ts"),i=16,n=function(){function e(s,o,f){var l=f===void 0?{}:f,r=l.removePKCS7Padding,c=r===void 0?!0:r;if(this.logEnabled=!0,this.observer=void 0,this.config=void 0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.observer=s,this.config=o,this.removePKCS7Padding=c,c)try{var A=self.crypto;A&&(this.subtle=A.subtle||A.webkitSubtle)}catch(p){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var a=e.prototype;return a.destroy=function(){this.observer=null},a.isSync=function(){return this.config.enableSoftwareAES},a.flush=function(){var o=this.currentResult;if(!o){this.reset();return}var f=new Uint8Array(o);return this.reset(),this.removePKCS7Padding?Object(C.removePadding)(f):f},a.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},a.decrypt=function(o,f,l,r){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(o),f,l);var c=this.flush();c&&r(c.buffer)}else this.webCryptoDecrypt(new Uint8Array(o),f,l).then(r)},a.softwareDecrypt=function(o,f,l){var r=this.currentIV,c=this.currentResult,A=this.remainderData;this.logOnce("JS AES decrypt"),A&&(o=Object(m.appendUint8Array)(A,o),this.remainderData=null);var p=this.getValidChunk(o);if(!p.length)return null;r&&(l=r);var x=this.softwareDecrypter;x||(x=this.softwareDecrypter=new C.default),x.expandKey(f);var _=c;return this.currentResult=x.decrypt(p.buffer,0,l),this.currentIV=Object(d.sliceUint8)(p,-16).buffer,_||null},a.webCryptoDecrypt=function(o,f,l){var r=this,c=this.subtle;return(this.key!==f||!this.fastAesKey)&&(this.key=f,this.fastAesKey=new b.default(c,f)),this.fastAesKey.expandKey().then(function(A){if(!c)return Promise.reject(new Error("web crypto not initialized"));var p=new v.default(c,l);return p.decrypt(o.buffer,A)}).catch(function(A){return r.onWebCryptoError(A,o,f,l)})},a.onWebCryptoError=function(o,f,l,r){return w.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",o),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(f,l,r)},a.getValidChunk=function(o){var f=o,l=o.length-o.length%i;return l!==o.length&&(f=Object(d.sliceUint8)(o,0,l),this.remainderData=Object(d.sliceUint8)(o,l)),f},a.logOnce=function(o){if(!this.logEnabled)return;w.logger.log("[decrypter.ts]: "+o),this.logEnabled=!1},e}()},"./src/crypt/fast-aes-key.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return v});var v=function(){function b(w,m){this.subtle=void 0,this.key=void 0,this.subtle=w,this.key=m}var C=b.prototype;return C.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},b}()},"./src/demux/aacdemuxer.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/demux/base-audio-demuxer.ts"),b=M("./src/demux/adts.ts"),C=M("./src/utils/logger.ts"),w=M("./src/demux/id3.ts");function m(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,d(n,e)}function d(n,e){return d=Object.setPrototypeOf||function(s,o){return s.__proto__=o,s},d(n,e)}var i=function(n){m(e,n);function e(s,o){var f;return f=n.call(this)||this,f.observer=void 0,f.config=void 0,f.observer=s,f.config=o,f}var a=e.prototype;return a.resetInitSegment=function(o,f,l){n.prototype.resetInitSegment.call(this,o,f,l),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:o,duration:l,inputTimeScale:9e4,dropped:0}},e.probe=function(o){if(!o)return!1;for(var f=w.getID3Data(o,0)||[],l=f.length,r=o.length;l<r;l++)if(b.probe(o,l))return C.logger.log("ADTS sync word found !"),!0;return!1},a.canParse=function(o,f){return b.canParse(o,f)},a.appendFrame=function(o,f,l){b.initTrackConfig(o,this.observer,f,l,o.manifestCodec);var r=b.appendFrame(o,f,l,this.initPTS,this.frameIndex);if(r&&r.missing===0)return r},e}(v.default);i.minProbeByteLength=9,G.default=i},"./src/demux/adts.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"getAudioConfig",function(){return w}),M.d(G,"isHeaderPattern",function(){return m}),M.d(G,"getHeaderLength",function(){return d}),M.d(G,"getFullFrameLength",function(){return i}),M.d(G,"canGetFrameLength",function(){return n}),M.d(G,"isHeader",function(){return e}),M.d(G,"canParse",function(){return a}),M.d(G,"probe",function(){return s}),M.d(G,"initTrackConfig",function(){return o}),M.d(G,"getFrameDuration",function(){return f}),M.d(G,"parseFrameHeader",function(){return l}),M.d(G,"appendFrame",function(){return r});var v=M("./src/utils/logger.ts"),b=M("./src/errors.ts"),C=M("./src/events.ts");function w(c,A,p,x){var _,B,E,g,h=navigator.userAgent.toLowerCase(),u=x,S=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];_=((A[p+2]&192)>>>6)+1;var O=(A[p+2]&60)>>>2;if(O>S.length-1){c.trigger(C.Events.ERROR,{type:b.ErrorTypes.MEDIA_ERROR,details:b.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+O});return}return E=(A[p+2]&1)<<2,E|=(A[p+3]&192)>>>6,v.logger.log("manifest codec:"+x+", ADTS type:"+_+", samplingIndex:"+O),/firefox/i.test(h)?O>=6?(_=5,g=new Array(4),B=O-3):(_=2,g=new Array(2),B=O):h.indexOf("android")!==-1?(_=2,g=new Array(2),B=O):(_=5,g=new Array(4),x&&(x.indexOf("mp4a.40.29")!==-1||x.indexOf("mp4a.40.5")!==-1)||!x&&O>=6?B=O-3:((x&&x.indexOf("mp4a.40.2")!==-1&&(O>=6&&E===1||/vivaldi/i.test(h))||!x&&E===1)&&(_=2,g=new Array(2)),B=O)),g[0]=_<<3,g[0]|=(O&14)>>1,g[1]|=(O&1)<<7,g[1]|=E<<3,_===5&&(g[1]|=(B&14)>>1,g[2]=(B&1)<<7,g[2]|=2<<2,g[3]=0),{config:g,samplerate:S[O],channelCount:E,codec:"mp4a.40."+_,manifestCodec:u}}function m(c,A){return c[A]===255&&(c[A+1]&246)===240}function d(c,A){return c[A+1]&1?7:9}function i(c,A){return(c[A+3]&3)<<11|c[A+4]<<3|(c[A+5]&224)>>>5}function n(c,A){return A+5<c.length}function e(c,A){return A+1<c.length&&m(c,A)}function a(c,A){return n(c,A)&&m(c,A)&&i(c,A)<=c.length-A}function s(c,A){if(e(c,A)){var p=d(c,A);if(A+p>=c.length)return!1;var x=i(c,A);if(x<=p)return!1;var _=A+x;return _===c.length||e(c,_)}return!1}function o(c,A,p,x,_){if(!c.samplerate){var B=w(A,p,x,_);if(!B)return;c.config=B.config,c.samplerate=B.samplerate,c.channelCount=B.channelCount,c.codec=B.codec,c.manifestCodec=B.manifestCodec,v.logger.log("parsed codec:"+c.codec+", rate:"+B.samplerate+", channels:"+B.channelCount)}}function f(c){return 1024*9e4/c}function l(c,A,p,x,_){var B=d(c,A),E=i(c,A);if(E-=B,E>0){var g=p+x*_;return{headerLength:B,frameLength:E,stamp:g}}}function r(c,A,p,x,_){var B=f(c.samplerate),E=l(A,p,x,_,B);if(E){var g=E.frameLength,h=E.headerLength,u=E.stamp,S=h+g,O=Math.max(0,p+S-A.length),T;O?(T=new Uint8Array(S-h),T.set(A.subarray(p+h,A.length),0)):T=A.subarray(p+h,p+S);var D={unit:T,pts:u};return O||c.samples.push(D),{sample:D,length:S,missing:O}}}},"./src/demux/base-audio-demuxer.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"initPTSFn",function(){return i});var v=M("./src/polyfills/number.ts"),b=M("./src/demux/id3.ts"),C=M("./src/demux/dummy-demuxed-track.ts"),w=M("./src/utils/mp4-tools.ts"),m=M("./src/utils/typed-array.ts"),d=function(){function n(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var e=n.prototype;return e.resetInitSegment=function(s,o,f){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},e.resetTimeStamp=function(){},e.resetContiguity=function(){},e.canParse=function(s,o){return!1},e.appendFrame=function(s,o,f){},e.demux=function(s,o){this.cachedData&&(s=Object(w.appendUint8Array)(this.cachedData,s),this.cachedData=null);var f=b.getID3Data(s,0),l=f?f.length:0,r,c,A=this._audioTrack,p=this._id3Track,x=f?b.getTimeStamp(f):void 0,_=s.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=i(x,o)),f&&f.length>0&&p.samples.push({pts:this.initPTS,dts:this.initPTS,data:f}),c=this.initPTS;l<_;){if(this.canParse(s,l)){var B=this.appendFrame(A,s,l);B?(this.frameIndex++,c=B.sample.pts,l+=B.length,r=l):l=_}else b.canParse(s,l)?(f=b.getID3Data(s,l),p.samples.push({pts:c,dts:c,data:f}),l+=f.length,r=l):l++;if(l===_&&r!==_){var E=Object(m.sliceUint8)(s,r);this.cachedData?this.cachedData=Object(w.appendUint8Array)(this.cachedData,E):this.cachedData=E}}return{audioTrack:A,avcTrack:Object(C.dummyTrack)(),id3Track:p,textTrack:Object(C.dummyTrack)()}},e.demuxSampleAes=function(s,o,f){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},e.flush=function(s){var o=this.cachedData;return o&&(this.cachedData=null,this.demux(o,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(C.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(C.dummyTrack)()}},e.destroy=function(){},n}(),i=function(e,a){return Object(v.isFiniteNumber)(e)?e*90:a*9e4};G.default=d},"./src/demux/chunk-cache.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return v});var v=function(){function C(){this.chunks=[],this.dataLength=0}var w=C.prototype;return w.push=function(d){this.chunks.push(d),this.dataLength+=d.length},w.flush=function(){var d=this.chunks,i=this.dataLength,n;if(d.length)d.length===1?n=d[0]:n=b(d,i);else return new Uint8Array(0);return this.reset(),n},w.reset=function(){this.chunks.length=0,this.dataLength=0},C}();function b(C,w){for(var m=new Uint8Array(w),d=0,i=0;i<C.length;i++){var n=C[i];m.set(n,d),d+=n.length}return m}},"./src/demux/dummy-demuxed-track.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"dummyTrack",function(){return v});function v(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/utils/logger.ts"),b=function(){function C(m){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=m,this.bytesAvailable=m.byteLength,this.word=0,this.bitsAvailable=0}var w=C.prototype;return w.loadWord=function(){var d=this.data,i=this.bytesAvailable,n=d.byteLength-i,e=new Uint8Array(4),a=Math.min(4,i);if(a===0)throw new Error("no bytes available");e.set(d.subarray(n,n+a)),this.word=new DataView(e.buffer).getUint32(0),this.bitsAvailable=a*8,this.bytesAvailable-=a},w.skipBits=function(d){var i;this.bitsAvailable>d?(this.word<<=d,this.bitsAvailable-=d):(d-=this.bitsAvailable,i=d>>3,d-=i>>3,this.bytesAvailable-=i,this.loadWord(),this.word<<=d,this.bitsAvailable-=d)},w.readBits=function(d){var i=Math.min(this.bitsAvailable,d),n=this.word>>>32-i;return d>32&&v.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=i,this.bitsAvailable>0?this.word<<=i:this.bytesAvailable>0&&this.loadWord(),i=d-i,i>0&&this.bitsAvailable?n<<i|this.readBits(i):n},w.skipLZ=function(){var d;for(d=0;d<this.bitsAvailable;++d)if((this.word&2147483648>>>d)!==0)return this.word<<=d,this.bitsAvailable-=d,d;return this.loadWord(),d+this.skipLZ()},w.skipUEG=function(){this.skipBits(1+this.skipLZ())},w.skipEG=function(){this.skipBits(1+this.skipLZ())},w.readUEG=function(){var d=this.skipLZ();return this.readBits(d+1)-1},w.readEG=function(){var d=this.readUEG();return 1&d?1+d>>>1:-1*(d>>>1)},w.readBoolean=function(){return this.readBits(1)===1},w.readUByte=function(){return this.readBits(8)},w.readUShort=function(){return this.readBits(16)},w.readUInt=function(){return this.readBits(32)},w.skipScalingList=function(d){for(var i=8,n=8,e,a=0;a<d;a++)n!==0&&(e=this.readEG(),n=(i+e+256)%256),i=n===0?i:n},w.readSPS=function(){var d=0,i=0,n=0,e=0,a,s,o,f=this.readUByte.bind(this),l=this.readBits.bind(this),r=this.readUEG.bind(this),c=this.readBoolean.bind(this),A=this.skipBits.bind(this),p=this.skipEG.bind(this),x=this.skipUEG.bind(this),_=this.skipScalingList.bind(this);f();var B=f();if(l(5),A(3),f(),x(),B===100||B===110||B===122||B===244||B===44||B===83||B===86||B===118||B===128){var E=r();if(E===3&&A(1),x(),x(),A(1),c())for(s=E!==3?8:12,o=0;o<s;o++)c()&&(o<6?_(16):_(64))}x();var g=r();if(g===0)r();else if(g===1)for(A(1),p(),p(),a=r(),o=0;o<a;o++)p();x(),A(1);var h=r(),u=r(),S=l(1);S===0&&A(1),A(1),c()&&(d=r(),i=r(),n=r(),e=r());var O=[1,1];if(c()&&c()){var T=f();switch(T){case 1:O=[1,1];break;case 2:O=[12,11];break;case 3:O=[10,11];break;case 4:O=[16,11];break;case 5:O=[40,33];break;case 6:O=[24,11];break;case 7:O=[20,11];break;case 8:O=[32,11];break;case 9:O=[80,33];break;case 10:O=[18,11];break;case 11:O=[15,11];break;case 12:O=[64,33];break;case 13:O=[160,99];break;case 14:O=[4,3];break;case 15:O=[3,2];break;case 16:O=[2,1];break;case 255:{O=[f()<<8|f(),f()<<8|f()];break}}}return{width:Math.ceil((h+1)*16-d*2-i*2),height:(2-S)*(u+1)*16-(S?2:4)*(n+e),pixelRatio:O}},w.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},C}();G.default=b},"./src/demux/id3.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"isHeader",function(){return v}),M.d(G,"isFooter",function(){return b}),M.d(G,"getID3Data",function(){return C}),M.d(G,"canParse",function(){return m}),M.d(G,"getTimeStamp",function(){return d}),M.d(G,"isTimeStampFrame",function(){return i}),M.d(G,"getID3Frames",function(){return e}),M.d(G,"decodeFrame",function(){return a}),M.d(G,"utf8ArrayToStr",function(){return r}),M.d(G,"testables",function(){return c});var v=function(_,B){return B+10<=_.length&&(_[B]===73&&_[B+1]===68&&_[B+2]===51&&(_[B+3]<255&&_[B+4]<255&&(_[B+6]<128&&_[B+7]<128&&_[B+8]<128&&_[B+9]<128)))},b=function(_,B){return B+10<=_.length&&(_[B]===51&&_[B+1]===68&&_[B+2]===73&&(_[B+3]<255&&_[B+4]<255&&(_[B+6]<128&&_[B+7]<128&&_[B+8]<128&&_[B+9]<128)))},C=function(_,B){for(var E=B,g=0;v(_,B);){g+=10;var h=w(_,B+6);g+=h,b(_,B+10)&&(g+=10),B+=g}return g>0?_.subarray(E,E+g):void 0},w=function(_,B){var E=0;return E=(_[B]&127)<<21,E|=(_[B+1]&127)<<14,E|=(_[B+2]&127)<<7,E|=_[B+3]&127,E},m=function(_,B){return v(_,B)&&w(_,B+6)+10<=_.length-B},d=function(_){for(var B=e(_),E=0;E<B.length;E++){var g=B[E];if(i(g))return l(g)}return},i=function(_){return _&&_.key==="PRIV"&&_.info==="com.apple.streaming.transportStreamTimestamp"},n=function(_){var B=String.fromCharCode(_[0],_[1],_[2],_[3]),E=w(_,4),g=10;return{type:B,size:E,data:_.subarray(g,g+E)}},e=function(_){for(var B=0,E=[];v(_,B);){var g=w(_,B+6);B+=10;for(var h=B+g;B+8<h;){var u=n(_.subarray(B)),S=a(u);S&&E.push(S),B+=u.size+10}b(_,B)&&(B+=10)}return E},a=function(_){return _.type==="PRIV"?s(_):_.type[0]==="W"?f(_):o(_)},s=function(_){if(_.size<2)return;var B=r(_.data,!0),E=new Uint8Array(_.data.subarray(B.length+1));return{key:_.type,info:B,data:E.buffer}},o=function(_){if(_.size<2)return;if(_.type==="TXXX"){var B=1,E=r(_.data.subarray(B),!0);B+=E.length+1;var g=r(_.data.subarray(B));return{key:_.type,info:E,data:g}}var h=r(_.data.subarray(1));return{key:_.type,data:h}},f=function(_){if(_.type==="WXXX"){if(_.size<2)return;var B=1,E=r(_.data.subarray(B),!0);B+=E.length+1;var g=r(_.data.subarray(B));return{key:_.type,info:E,data:g}}var h=r(_.data);return{key:_.type,data:h}},l=function(_){if(_.data.byteLength===8){var B=new Uint8Array(_.data),E=B[3]&1,g=(B[4]<<23)+(B[5]<<15)+(B[6]<<7)+B[7];return g/=45,E&&(g+=4772185884e-2),Math.round(g)}return},r=function(_,B){B===void 0&&(B=!1);var E=p();if(E){var g=E.decode(_);if(B){var h=g.indexOf("\0");return h!==-1?g.substring(0,h):g}return g.replace(/\0/g,"")}for(var u=_.length,S,O,T,D="",I=0;I<u;){if(S=_[I++],S===0&&B)return D;if(S===0||S===3)continue;switch(S>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:D+=String.fromCharCode(S);break;case 12:case 13:O=_[I++],D+=String.fromCharCode((S&31)<<6|O&63);break;case 14:O=_[I++],T=_[I++],D+=String.fromCharCode((S&15)<<12|(O&63)<<6|(T&63)<<0);break;default:}}return D},c={decodeTextFrame:o},A;function p(){return!A&&typeof self.TextDecoder!="undefined"&&(A=new self.TextDecoder("utf-8")),A}},"./src/demux/mp3demuxer.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/demux/base-audio-demuxer.ts"),b=M("./src/demux/id3.ts"),C=M("./src/utils/logger.ts"),w=M("./src/demux/mpegaudio.ts");function m(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,d(n,e)}function d(n,e){return d=Object.setPrototypeOf||function(s,o){return s.__proto__=o,s},d(n,e)}var i=function(n){m(e,n);function e(){return n.apply(this,arguments)||this}var a=e.prototype;return a.resetInitSegment=function(o,f,l){n.prototype.resetInitSegment.call(this,o,f,l),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:o,duration:l,inputTimeScale:9e4,dropped:0}},e.probe=function(o){if(!o)return!1;for(var f=b.getID3Data(o,0)||[],l=f.length,r=o.length;l<r;l++)if(w.probe(o,l))return C.logger.log("MPEG Audio sync word found !"),!0;return!1},a.canParse=function(o,f){return w.canParse(o,f)},a.appendFrame=function(o,f,l){return this.initPTS===null?void 0:w.appendFrame(o,f,l,this.initPTS,this.frameIndex)},e}(v.default);i.minProbeByteLength=4,G.default=i},"./src/demux/mp4demuxer.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/utils/mp4-tools.ts"),b=M("./src/demux/dummy-demuxed-track.ts"),C=function(){function w(d,i){this.remainderData=null,this.config=void 0,this.config=i}var m=w.prototype;return m.resetTimeStamp=function(){},m.resetInitSegment=function(){},m.resetContiguity=function(){},w.probe=function(i){return Object(v.findBox)({data:i,start:0,end:Math.min(i.length,16384)},["moof"]).length>0},m.demux=function(i){var n=i,e=Object(b.dummyTrack)();if(this.config.progressive){this.remainderData&&(n=Object(v.appendUint8Array)(this.remainderData,i));var a=Object(v.segmentValidRange)(n);this.remainderData=a.remainder,e.samples=a.valid||new Uint8Array}else e.samples=n;return{audioTrack:Object(b.dummyTrack)(),avcTrack:e,id3Track:Object(b.dummyTrack)(),textTrack:Object(b.dummyTrack)()}},m.flush=function(){var i=Object(b.dummyTrack)();return i.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(b.dummyTrack)(),avcTrack:i,id3Track:Object(b.dummyTrack)(),textTrack:Object(b.dummyTrack)()}},m.demuxSampleAes=function(i,n,e){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},m.destroy=function(){},w}();C.minProbeByteLength=1024,G.default=C},"./src/demux/mpegaudio.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"appendFrame",function(){return d}),M.d(G,"parseHeader",function(){return i}),M.d(G,"isHeaderPattern",function(){return n}),M.d(G,"isHeader",function(){return e}),M.d(G,"canParse",function(){return a}),M.d(G,"probe",function(){return s});var v=null,b=[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],C=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],w=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],m=[0,1,1,4];function d(o,f,l,r,c){if(l+24>f.length)return;var A=i(f,l);if(A&&l+A.frameLength<=f.length){var p=A.samplesPerFrame*9e4/A.sampleRate,x=r+c*p,_={unit:f.subarray(l,l+A.frameLength),pts:x,dts:x};return o.config=[],o.channelCount=A.channelCount,o.samplerate=A.sampleRate,o.samples.push(_),{sample:_,length:A.frameLength,missing:0}}}function i(o,f){var l=o[f+1]>>3&3,r=o[f+1]>>1&3,c=o[f+2]>>4&15,A=o[f+2]>>2&3;if(l!==1&&c!==0&&c!==15&&A!==3){var p=o[f+2]>>1&1,x=o[f+3]>>6,_=l===3?3-r:r===3?3:4,B=b[_*14+c-1]*1e3,E=l===3?0:l===2?1:2,g=C[E*3+A],h=x===3?1:2,u=w[l][r],S=m[r],O=u*8*S,T=Math.floor(u*B/g+p)*S;if(v===null){var D=navigator.userAgent||"",I=D.match(/Chrome\/(\d+)/i);v=I?parseInt(I[1]):0}var k=!!v&&v<=87;return k&&r===2&&B>=224e3&&x===0&&(o[f+3]=o[f+3]|128),{sampleRate:g,channelCount:h,frameLength:T,samplesPerFrame:O}}}function n(o,f){return o[f]===255&&(o[f+1]&224)===224&&(o[f+1]&6)!==0}function e(o,f){return f+1<o.length&&n(o,f)}function a(o,f){var l=4;return n(o,f)&&l<=o.length-f}function s(o,f){if(f+1<o.length&&n(o,f)){var l=4,r=i(o,f),c=l;r!=null&&r.frameLength&&(c=r.frameLength);var A=f+c;return A===o.length||e(o,A)}return!1}},"./src/demux/sample-aes.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/crypt/decrypter.ts"),b=M("./src/demux/tsdemuxer.ts"),C=function(){function w(d,i,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new v.default(d,i,{removePKCS7Padding:!1})}var m=w.prototype;return m.decryptBuffer=function(i,n){this.decrypter.decrypt(i,this.keyData.key.buffer,this.keyData.iv.buffer,n)},m.decryptAacSample=function(i,n,e,a){var s=i[n].unit,o=s.subarray(16,s.length-s.length%16),f=o.buffer.slice(o.byteOffset,o.byteOffset+o.length),l=this;this.decryptBuffer(f,function(r){var c=new Uint8Array(r);s.set(c,16),a||l.decryptAacSamples(i,n+1,e)})},m.decryptAacSamples=function(i,n,e){for(;;n++){if(n>=i.length){e();return}if(i[n].unit.length<32)continue;var a=this.decrypter.isSync();if(this.decryptAacSample(i,n,e,a),!a)return}},m.getAvcEncryptedData=function(i){for(var n=Math.floor((i.length-48)/160)*16+16,e=new Int8Array(n),a=0,s=32;s<=i.length-16;s+=160,a+=16)e.set(i.subarray(s,s+16),a);return e},m.getAvcDecryptedUnit=function(i,n){for(var e=new Uint8Array(n),a=0,s=32;s<=i.length-16;s+=160,a+=16)i.set(e.subarray(a,a+16),s);return i},m.decryptAvcSample=function(i,n,e,a,s,o){var f=Object(b.discardEPB)(s.data),l=this.getAvcEncryptedData(f),r=this;this.decryptBuffer(l.buffer,function(c){s.data=r.getAvcDecryptedUnit(f,c),o||r.decryptAvcSamples(i,n,e+1,a)})},m.decryptAvcSamples=function(i,n,e,a){if(i instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,e=0){if(n>=i.length){a();return}for(var s=i[n].units;!(e>=s.length);e++){var o=s[e];if(o.data.length<=48||o.type!==1&&o.type!==5)continue;var f=this.decrypter.isSync();if(this.decryptAvcSample(i,n,e,a,o,f),!f)return}}},w}();G.default=C},"./src/demux/transmuxer-interface.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return s});var v=M("./node_modules/webworkify-webpack/index.js"),b=M.n(v),C=M("./src/events.ts"),w=M("./src/demux/transmuxer.ts"),m=M("./src/utils/logger.ts"),d=M("./src/errors.ts"),i=M("./src/utils/mediasource-helper.ts"),n=M("./node_modules/eventemitter3/index.js"),e=M.n(n),a=Object(i.getMediaSource)()||{isTypeSupported:function(){return!1}},s=function(){function o(l,r,c,A){var p=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=l,this.id=r,this.onTransmuxComplete=c,this.onFlush=A;var x=l.config,_=function(u,S){S=S||{},S.frag=p.frag,S.id=p.id,l.trigger(u,S)};this.observer=new n.EventEmitter,this.observer.on(C.Events.FRAG_DECRYPTED,_),this.observer.on(C.Events.ERROR,_);var B={mp4:a.isTypeSupported("video/mp4"),mpeg:a.isTypeSupported("audio/mpeg"),mp3:a.isTypeSupported('audio/mp4; codecs="mp3"')},E=navigator.vendor;if(x.enableWorker&&typeof Worker!="undefined"){m.logger.log("demuxing in webworker");var g;try{g=this.worker=v("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),g.addEventListener("message",this.onwmsg),g.onerror=function(h){l.trigger(C.Events.ERROR,{type:d.ErrorTypes.OTHER_ERROR,details:d.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(h.message+" ("+h.filename+":"+h.lineno+")")})},g.postMessage({cmd:"init",typeSupported:B,vendor:E,id:r,config:JSON.stringify(x)})}catch(h){m.logger.warn("Error in worker:",h),m.logger.error("Error while initializing DemuxerWorker, fallback to inline"),g&&self.URL.revokeObjectURL(g.objectURL),this.transmuxer=new w.default(this.observer,B,x,E,r),this.worker=null}}else this.transmuxer=new w.default(this.observer,B,x,E,r)}var f=o.prototype;return f.destroy=function(){var r=this.worker;if(r)r.removeEventListener("message",this.onwmsg),r.terminate(),this.worker=null;else{var c=this.transmuxer;c&&(c.destroy(),this.transmuxer=null)}var A=this.observer;A&&A.removeAllListeners(),this.observer=null},f.push=function(r,c,A,p,x,_,B,E,g,h){var u=this;g.transmuxing.start=self.performance.now();var S=this.transmuxer,O=this.worker,T=_?_.start:x.start,D=x.decryptdata,I=this.frag,k=!(I&&x.cc===I.cc),F=!(I&&g.level===I.level),X=I?g.sn-I.sn:-1,U=this.part?g.part-this.part.index:1,K=!F&&(X===1||X===0&&U===1),V=self.performance.now();(F||X||x.stats.parsing.start===0)&&(x.stats.parsing.start=V),_&&(U||!K)&&(_.stats.parsing.start=V);var N=new w.TransmuxState(k,K,E,F,T);if(!K||k){m.logger.log("[transmuxer-interface, "+x.type+"]: Starting new transmux session for sn: "+g.sn+" p: "+g.part+" level: "+g.level+" id: "+g.id+`
discontinuity: `+k+`
trackSwitch: `+F+`
contiguous: `+K+`
accurateTimeOffset: `+E+`
timeOffset: `+T);var Q=new w.TransmuxConfig(A,p,c,B,h);this.configureTransmuxer(Q)}if(this.frag=x,this.part=_,O)O.postMessage({cmd:"demux",data:r,decryptdata:D,chunkMeta:g,state:N},r instanceof ArrayBuffer?[r]:[]);else if(S){var J=S.push(r,D,g,N);Object(w.isPromise)(J)?J.then(function(ne){u.handleTransmuxComplete(ne)}):this.handleTransmuxComplete(J)}},f.flush=function(r){var c=this;r.transmuxing.start=self.performance.now();var A=this.transmuxer,p=this.worker;if(p)p.postMessage({cmd:"flush",chunkMeta:r});else if(A){var x=A.flush(r);Object(w.isPromise)(x)?x.then(function(_){c.handleFlushResult(_,r)}):this.handleFlushResult(x,r)}},f.handleFlushResult=function(r,c){var A=this;r.forEach(function(p){A.handleTransmuxComplete(p)}),this.onFlush(c)},f.onWorkerMessage=function(r){var c=r.data,A=this.hls;switch(c.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(c.data);break}case"flush":{this.onFlush(c.data);break}default:{c.data=c.data||{},c.data.frag=this.frag,c.data.id=this.id,A.trigger(c.event,c.data);break}}},f.configureTransmuxer=function(r){var c=this.worker,A=this.transmuxer;c?c.postMessage({cmd:"configure",config:r}):A&&A.configure(r)},f.handleTransmuxComplete=function(r){r.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(r)},o}()},"./src/demux/transmuxer-worker.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return d});var v=M("./src/demux/transmuxer.ts"),b=M("./src/events.ts"),C=M("./src/utils/logger.ts"),w=M("./node_modules/eventemitter3/index.js"),m=M.n(w);function d(s){var o=new w.EventEmitter,f=function(r,c){s.postMessage({event:r,data:c})};o.on(b.Events.FRAG_DECRYPTED,f),o.on(b.Events.ERROR,f),s.addEventListener("message",function(l){var r=l.data;switch(r.cmd){case"init":{var c=JSON.parse(r.config);s.transmuxer=new v.default(o,r.typeSupported,c,r.vendor,r.id),Object(C.enableLogs)(c.debug),f("init",null);break}case"configure":{s.transmuxer.configure(r.config);break}case"demux":{var A=s.transmuxer.push(r.data,r.decryptdata,r.chunkMeta,r.state);Object(v.isPromise)(A)?A.then(function(_){i(s,_)}):i(s,A);break}case"flush":{var p=r.chunkMeta,x=s.transmuxer.flush(p);Object(v.isPromise)(x)?x.then(function(_){e(s,_,p)}):e(s,x,p);break}default:break}})}function i(s,o){if(a(o.remuxResult))return;var f=[],l=o.remuxResult,r=l.audio,c=l.video;r&&n(f,r),c&&n(f,c),s.postMessage({event:"transmuxComplete",data:o},f)}function n(s,o){o.data1&&s.push(o.data1.buffer),o.data2&&s.push(o.data2.buffer)}function e(s,o,f){o.forEach(function(l){i(s,l)}),s.postMessage({event:"flush",data:f})}function a(s){return!s.audio&&!s.video&&!s.text&&!s.id3&&!s.initSegment}},"./src/demux/transmuxer.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return c}),M.d(G,"isPromise",function(){return x}),M.d(G,"TransmuxConfig",function(){return _}),M.d(G,"TransmuxState",function(){return B});var v=M("./src/events.ts"),b=M("./src/errors.ts"),C=M("./src/crypt/decrypter.ts"),w=M("./src/demux/aacdemuxer.ts"),m=M("./src/demux/mp4demuxer.ts"),d=M("./src/demux/tsdemuxer.ts"),i=M("./src/demux/mp3demuxer.ts"),n=M("./src/remux/mp4-remuxer.ts"),e=M("./src/remux/passthrough-remuxer.ts"),a=M("./src/demux/chunk-cache.ts"),s=M("./src/utils/mp4-tools.ts"),o=M("./src/utils/logger.ts"),f;try{f=self.performance.now.bind(self.performance)}catch(E){o.logger.debug("Unable to use Performance API on this environment"),f=self.Date.now}var l=[{demux:d.default,remux:n.default},{demux:m.default,remux:e.default},{demux:w.default,remux:n.default},{demux:i.default,remux:n.default}],r=1024;l.forEach(function(E){var g=E.demux;r=Math.max(r,g.minProbeByteLength)});var c=function(){function E(h,u,S,O,T){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=h,this.typeSupported=u,this.config=S,this.vendor=O,this.id=T}var g=E.prototype;return g.configure=function(u){this.transmuxConfig=u,this.decrypter&&this.decrypter.reset()},g.push=function(u,S,O,T){var D=this,I=O.transmuxing;I.executeStart=f();var k=new Uint8Array(u),F=this.cache,X=this.config,U=this.currentTransmuxState,K=this.transmuxConfig;T&&(this.currentTransmuxState=T);var V=A(k,S);if(V&&V.method==="AES-128"){var N=this.getDecrypter();if(X.enableSoftwareAES){var Q=N.softwareDecrypt(k,V.key.buffer,V.iv.buffer);if(!Q)return I.executeEnd=f(),p(O);k=new Uint8Array(Q)}else return this.decryptionPromise=N.webCryptoDecrypt(k,V.key.buffer,V.iv.buffer).then(function(Te){var Re=D.push(Te,null,O);return D.decryptionPromise=null,Re}),this.decryptionPromise}var J=T||U,ne=J.contiguous,ue=J.discontinuity,be=J.trackSwitch,de=J.accurateTimeOffset,_e=J.timeOffset,me=K.audioCodec,Ee=K.videoCodec,ge=K.defaultInitPts,Ae=K.duration,ae=K.initSegmentData;if((ue||be)&&this.resetInitSegment(ae,me,Ee,Ae),ue&&this.resetInitialTimestamp(ge),ne||this.resetContiguity(),this.needsProbing(k,ue,be)){if(F.dataLength){var ve=F.flush();k=Object(s.appendUint8Array)(ve,k)}this.configureTransmuxer(k,K)}var oe=this.transmux(k,V,_e,de,O),ie=this.currentTransmuxState;return ie.contiguous=!0,ie.discontinuity=!1,ie.trackSwitch=!1,I.executeEnd=f(),oe},g.flush=function(u){var S=this,O=u.transmuxing;O.executeStart=f();var T=this.decrypter,D=this.cache,I=this.currentTransmuxState,k=this.decryptionPromise;if(k)return k.then(function(){return S.flush(u)});var F=[],X=I.timeOffset;if(T){var U=T.flush();U&&F.push(this.push(U,null,u))}var K=D.dataLength;D.reset();var V=this.demuxer,N=this.remuxer;if(!V||!N)return K>=r&&this.observer.emit(v.Events.ERROR,v.Events.ERROR,{type:b.ErrorTypes.MEDIA_ERROR,details:b.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),O.executeEnd=f(),[p(u)];var Q=V.flush(X);return x(Q)?Q.then(function(J){return S.flushRemux(F,J,u),F}):(this.flushRemux(F,Q,u),F)},g.flushRemux=function(u,S,O){var T=S.audioTrack,D=S.avcTrack,I=S.id3Track,k=S.textTrack,F=this.currentTransmuxState,X=F.accurateTimeOffset,U=F.timeOffset;o.logger.log("[transmuxer.ts]: Flushed fragment "+O.sn+(O.part>-1?" p: "+O.part:"")+" of level "+O.level);var K=this.remuxer.remux(T,D,I,k,U,X,!0,this.id);u.push({remuxResult:K,chunkMeta:O}),O.transmuxing.executeEnd=f()},g.resetInitialTimestamp=function(u){var S=this.demuxer,O=this.remuxer;if(!S||!O)return;S.resetTimeStamp(u),O.resetTimeStamp(u)},g.resetContiguity=function(){var u=this.demuxer,S=this.remuxer;if(!u||!S)return;u.resetContiguity(),S.resetNextTimestamp()},g.resetInitSegment=function(u,S,O,T){var D=this.demuxer,I=this.remuxer;if(!D||!I)return;D.resetInitSegment(S,O,T),I.resetInitSegment(u,S,O)},g.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},g.transmux=function(u,S,O,T,D){var I;return S&&S.method==="SAMPLE-AES"?I=this.transmuxSampleAes(u,S,O,T,D):I=this.transmuxUnencrypted(u,O,T,D),I},g.transmuxUnencrypted=function(u,S,O,T){var D=this.demuxer.demux(u,S,!1,!this.config.progressive),I=D.audioTrack,k=D.avcTrack,F=D.id3Track,X=D.textTrack,U=this.remuxer.remux(I,k,F,X,S,O,!1,this.id);return{remuxResult:U,chunkMeta:T}},g.transmuxSampleAes=function(u,S,O,T,D){var I=this;return this.demuxer.demuxSampleAes(u,S,O).then(function(k){var F=I.remuxer.remux(k.audioTrack,k.avcTrack,k.id3Track,k.textTrack,O,T,!1,I.id);return{remuxResult:F,chunkMeta:D}})},g.configureTransmuxer=function(u,S){for(var O=this.config,T=this.observer,D=this.typeSupported,I=this.vendor,k=S.audioCodec,F=S.defaultInitPts,X=S.duration,U=S.initSegmentData,K=S.videoCodec,V,N=0,Q=l.length;N<Q;N++)if(l[N].demux.probe(u)){V=l[N];break}V||(o.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),V={demux:m.default,remux:e.default});var J=this.demuxer,ne=this.remuxer,ue=V.remux,be=V.demux;(!ne||!(ne instanceof ue))&&(this.remuxer=new ue(T,O,D,I)),(!J||!(J instanceof be))&&(this.demuxer=new be(T,O,D),this.probe=be.probe),this.resetInitSegment(U,k,K,X),this.resetInitialTimestamp(F)},g.needsProbing=function(u,S,O){return!this.demuxer||!this.remuxer||S||O},g.getDecrypter=function(){var u=this.decrypter;return u||(u=this.decrypter=new C.default(this.observer,this.config)),u},E}();function A(E,g){var h=null;return E.byteLength>0&&g!=null&&g.key!=null&&g.iv!==null&&g.method!=null&&(h=g),h}var p=function(g){return{remuxResult:{},chunkMeta:g}};function x(E){return"then"in E&&E.then instanceof Function}var _=function(g,h,u,S,O){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=g,this.videoCodec=h,this.initSegmentData=u,this.duration=S,this.defaultInitPts=O},B=function(g,h,u,S,O){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=g,this.contiguous=h,this.accurateTimeOffset=u,this.trackSwitch=S,this.timeOffset=O}},"./src/demux/tsdemuxer.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"discardEPB",function(){return p});var v=M("./src/demux/adts.ts"),b=M("./src/demux/mpegaudio.ts"),C=M("./src/demux/exp-golomb.ts"),w=M("./src/demux/id3.ts"),m=M("./src/demux/sample-aes.ts"),d=M("./src/events.ts"),i=M("./src/utils/mp4-tools.ts"),n=M("./src/utils/logger.ts"),e=M("./src/errors.ts"),a={video:1,audio:2,id3:3,text:4},s=function(){function x(B,E,g){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=B,this.config=E,this.typeSupported=g}x.probe=function(E){var g=x.syncOffset(E);return g<0?!1:(g&&n.logger.warn("MPEG2-TS detected but first sync word found @ offset "+g+", junk ahead ?"),!0)},x.syncOffset=function(E){for(var g=Math.min(1e3,E.length-3*188),h=0;h<g;){if(E[h]===71&&E[h+188]===71&&E[h+2*188]===71)return h;h++}return-1},x.createTrack=function(E,g){return{container:E==="video"||E==="audio"?"video/mp2t":void 0,type:E,id:a[E],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:E==="audio"?g:void 0}};var _=x.prototype;return _.resetInitSegment=function(E,g,h){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=x.createTrack("video",h),this._audioTrack=x.createTrack("audio",h),this._id3Track=x.createTrack("id3",h),this._txtTrack=x.createTrack("text",h),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=E,this.videoCodec=g,this._duration=h},_.resetTimeStamp=function(){},_.resetContiguity=function(){var E=this._audioTrack,g=this._avcTrack,h=this._id3Track;E&&(E.pesData=null),g&&(g.pesData=null),h&&(h.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},_.demux=function(E,g,h,u){h===void 0&&(h=!1),u===void 0&&(u=!1),h||(this.sampleAes=null);var S,O=this._avcTrack,T=this._audioTrack,D=this._id3Track,I=O.pid,k=O.pesData,F=T.pid,X=D.pid,U=T.pesData,K=D.pesData,V=!1,N=this.pmtParsed,Q=this._pmtId,J=E.length;if(this.remainderData&&(E=Object(i.appendUint8Array)(this.remainderData,E),J=E.length,this.remainderData=null),J<188&&!u)return this.remainderData=E,{audioTrack:T,avcTrack:O,id3Track:D,textTrack:this._txtTrack};var ne=Math.max(0,x.syncOffset(E));J-=(J+ne)%188,J<E.byteLength&&!u&&(this.remainderData=new Uint8Array(E.buffer,J,E.buffer.byteLength-J));for(var ue=ne;ue<J;ue+=188)if(E[ue]===71){var be=!!(E[ue+1]&64),de=((E[ue+1]&31)<<8)+E[ue+2],_e=(E[ue+3]&48)>>4,me=void 0;if(_e>1){if(me=ue+5+E[ue+4],me===ue+188)continue}else me=ue+4;switch(de){case I:be&&(k&&(S=r(k))&&this.parseAVCPES(S,!1),k={data:[],size:0}),k&&(k.data.push(E.subarray(me,ue+188)),k.size+=ue+188-me);break;case F:be&&(U&&(S=r(U))&&(T.isAAC?this.parseAACPES(S):this.parseMPEGPES(S)),U={data:[],size:0}),U&&(U.data.push(E.subarray(me,ue+188)),U.size+=ue+188-me);break;case X:be&&(K&&(S=r(K))&&this.parseID3PES(S),K={data:[],size:0}),K&&(K.data.push(E.subarray(me,ue+188)),K.size+=ue+188-me);break;case 0:be&&(me+=E[me]+1),Q=this._pmtId=f(E,me);break;case Q:{be&&(me+=E[me]+1);var Ee=l(E,me,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,h);I=Ee.avc,I>0&&(O.pid=I),F=Ee.audio,F>0&&(T.pid=F,T.isAAC=Ee.isAAC),X=Ee.id3,X>0&&(D.pid=X),V&&!N&&(n.logger.log("reparse from beginning"),V=!1,ue=ne-188),N=this.pmtParsed=!0;break}case 17:case 8191:break;default:V=!0;break}}else this.observer.emit(d.Events.ERROR,d.Events.ERROR,{type:e.ErrorTypes.MEDIA_ERROR,details:e.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});O.pesData=k,T.pesData=U,D.pesData=K;var ge={audioTrack:T,avcTrack:O,id3Track:D,textTrack:this._txtTrack};return u&&this.extractRemainingSamples(ge),ge},_.flush=function(){var E=this.remainderData;this.remainderData=null;var g;return E?g=this.demux(E,-1,!1,!0):g={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(g),this.sampleAes?this.decrypt(g,this.sampleAes):g},_.extractRemainingSamples=function(E){var g=E.audioTrack,h=E.avcTrack,u=E.id3Track,S=h.pesData,O=g.pesData,T=u.pesData,D;S&&(D=r(S))?(this.parseAVCPES(D,!0),h.pesData=null):h.pesData=S,O&&(D=r(O))?(g.isAAC?this.parseAACPES(D):this.parseMPEGPES(D),g.pesData=null):(O!=null&&O.size&&n.logger.log("last AAC PES packet truncated,might overlap between fragments"),g.pesData=O),T&&(D=r(T))?(this.parseID3PES(D),u.pesData=null):u.pesData=T},_.demuxSampleAes=function(E,g,h){var u=this.demux(E,h,!0,!this.config.progressive),S=this.sampleAes=new m.default(this.observer,this.config,g);return this.decrypt(u,S)},_.decrypt=function(E,g){return new Promise(function(h){var u=E.audioTrack,S=E.avcTrack;u.samples&&u.isAAC?g.decryptAacSamples(u.samples,0,function(){S.samples?g.decryptAvcSamples(S.samples,0,0,function(){h(E)}):h(E)}):S.samples&&g.decryptAvcSamples(S.samples,0,0,function(){h(E)})})},_.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},_.parseAVCPES=function(E,g){var h=this,u=this._avcTrack,S=this.parseAVCNALu(E.data),O=!1,T=this.avcSample,D,I=!1;E.data=null,T&&S.length&&!u.audFound&&(c(T,u),T=this.avcSample=o(!1,E.pts,E.dts,"")),S.forEach(function(k){switch(k.type){case 1:{D=!0,T||(T=h.avcSample=o(!0,E.pts,E.dts,"")),O&&(T.debug+="NDR "),T.frame=!0;var F=k.data;if(I&&F.length>4){var X=new C.default(F).readSliceType();(X===2||X===4||X===7||X===9)&&(T.key=!0)}break}case 5:D=!0,T||(T=h.avcSample=o(!0,E.pts,E.dts,"")),O&&(T.debug+="IDR "),T.key=!0,T.frame=!0;break;case 6:{D=!0,O&&T&&(T.debug+="SEI ");var U=new C.default(p(k.data));U.readUByte();for(var K=0,V=0,N=!1,Q=0;!N&&U.bytesAvailable>1;){K=0;do Q=U.readUByte(),K+=Q;while(Q===255);V=0;do Q=U.readUByte(),V+=Q;while(Q===255);if(K===4&&U.bytesAvailable!==0){N=!0;var J=U.readUByte();if(J===181){var ne=U.readUShort();if(ne===49){var ue=U.readUInt();if(ue===1195456820){var be=U.readUByte();if(be===3){for(var de=U.readUByte(),_e=U.readUByte(),me=31&de,Ee=[de,_e],ge=0;ge<me;ge++)Ee.push(U.readUByte()),Ee.push(U.readUByte()),Ee.push(U.readUByte());A(h._txtTrack.samples,{type:3,pts:E.pts,bytes:Ee})}}}}}else if(K===5&&U.bytesAvailable!==0){if(N=!0,V>16){for(var Ae=[],ae=0;ae<16;ae++)Ae.push(U.readUByte().toString(16)),(ae===3||ae===5||ae===7||ae===9)&&Ae.push("-");for(var ve=V-16,oe=new Uint8Array(ve),ie=0;ie<ve;ie++)oe[ie]=U.readUByte();A(h._txtTrack.samples,{pts:E.pts,payloadType:K,uuid:Ae.join(""),userData:Object(w.utf8ArrayToStr)(oe),userDataBytes:oe})}}else if(V<U.bytesAvailable)for(var Te=0;Te<V;Te++)U.readUByte()}break}case 7:if(D=!0,I=!0,O&&T&&(T.debug+="SPS "),!u.sps){var Re=new C.default(k.data),Me=Re.readSPS();u.width=Me.width,u.height=Me.height,u.pixelRatio=Me.pixelRatio,u.sps=[k.data],u.duration=h._duration;for(var re=k.data.subarray(1,4),j="avc1.",W=0;W<3;W++){var he=re[W].toString(16);he.length<2&&(he="0"+he),j+=he}u.codec=j}break;case 8:D=!0,O&&T&&(T.debug+="PPS "),u.pps||(u.pps=[k.data]);break;case 9:D=!1,u.audFound=!0,T&&c(T,u),T=h.avcSample=o(!1,E.pts,E.dts,O?"AUD ":"");break;case 12:D=!1;break;default:D=!1,T&&(T.debug+="unknown NAL "+k.type+" ");break}if(T&&D){var te=T.units;te.push(k)}}),g&&T&&(c(T,u),this.avcSample=null)},_.getLastNalUnit=function(){var E,g=this.avcSample,h;if(!g||g.units.length===0){var u=this._avcTrack.samples;g=u[u.length-1]}if((E=g)!==null&&E!==void 0&&E.units){var S=g.units;h=S[S.length-1]}return h},_.parseAVCNALu=function(E){var g=E.byteLength,h=this._avcTrack,u=h.naluState||0,S=u,O=[],T=0,D,I,k,F=-1,X=0;for(u===-1&&(F=0,X=E[0]&31,u=0,T=1);T<g;){if(D=E[T++],!u){u=D?0:1;continue}if(u===1){u=D?0:2;continue}if(!D)u=3;else if(D===1){if(F>=0){var U={data:E.subarray(F,T-u-1),type:X};O.push(U)}else{var K=this.getLastNalUnit();if(K&&(S&&T<=4-S&&(K.state&&(K.data=K.data.subarray(0,K.data.byteLength-S))),I=T-u-1,I>0)){var V=new Uint8Array(K.data.byteLength+I);V.set(K.data,0),V.set(E.subarray(0,I),K.data.byteLength),K.data=V,K.state=0}}T<g?(k=E[T]&31,F=T,X=k,u=0):u=-1}else u=0}if(F>=0&&u>=0){var N={data:E.subarray(F,g),type:X,state:u};O.push(N)}if(O.length===0){var Q=this.getLastNalUnit();if(Q){var J=new Uint8Array(Q.data.byteLength+E.byteLength);J.set(Q.data,0),J.set(E,Q.data.byteLength),Q.data=J}}return h.naluState=u,O},_.parseAACPES=function(E){var g=0,h=this._audioTrack,u=this.aacOverFlow,S=E.data;if(u){this.aacOverFlow=null;var O=u.sample.unit.byteLength,T=Math.min(u.missing,O),D=O-T;u.sample.unit.set(S.subarray(0,T),D),h.samples.push(u.sample),g=u.missing}var I,k;for(I=g,k=S.length;I<k-1&&!v.isHeader(S,I);I++);if(I!==g){var F,X;if(I<k-1?(F="AAC PES did not start with ADTS header,offset:"+I,X=!1):(F="no ADTS header found in AAC PES",X=!0),n.logger.warn("parsing error:"+F),this.observer.emit(d.Events.ERROR,d.Events.ERROR,{type:e.ErrorTypes.MEDIA_ERROR,details:e.ErrorDetails.FRAG_PARSING_ERROR,fatal:X,reason:F}),X)return}v.initTrackConfig(h,this.observer,S,I,this.audioCodec);var U;if(E.pts!==void 0)U=E.pts;else if(u){var K=v.getFrameDuration(h.samplerate);U=u.sample.pts+K}else{n.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var V=0;I<k;)if(v.isHeader(S,I)){if(I+5<k){var N=v.appendFrame(h,S,I,U,V);if(N)if(N.missing)this.aacOverFlow=N;else{I+=N.length,V++;continue}}break}else I++},_.parseMPEGPES=function(E){var g=E.data,h=g.length,u=0,S=0,O=E.pts;if(O===void 0){n.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;S<h;)if(b.isHeader(g,S)){var T=b.appendFrame(this._audioTrack,g,S,O,u);if(T)S+=T.length,u++;else break}else S++},_.parseID3PES=function(E){if(E.pts===void 0){n.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(E)},x}();s.minProbeByteLength=188;function o(x,_,B,E){return{key:x,frame:!1,pts:_,dts:B,units:[],debug:E,length:0}}function f(x,_){return(x[_+10]&31)<<8|x[_+11]}function l(x,_,B,E){var g={audio:-1,avc:-1,id3:-1,isAAC:!0},h=(x[_+1]&15)<<8|x[_+2],u=_+3+h-4,S=(x[_+10]&15)<<8|x[_+11];for(_+=12+S;_<u;){var O=(x[_+1]&31)<<8|x[_+2];switch(x[_]){case 207:if(!E){n.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:g.audio===-1&&(g.audio=O);break;case 21:g.id3===-1&&(g.id3=O);break;case 219:if(!E){n.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:g.avc===-1&&(g.avc=O);break;case 3:case 4:B?g.audio===-1&&(g.audio=O,g.isAAC=!1):n.logger.log("MPEG audio found, not supported in this browser");break;case 36:n.logger.warn("Unsupported HEVC stream type found");break;default:break}_+=((x[_+3]&15)<<8|x[_+4])+5}return g}function r(x){var _=0,B,E,g,h,u,S=x.data;if(!x||x.size===0)return null;for(;S[0].length<19&&S.length>1;){var O=new Uint8Array(S[0].length+S[1].length);O.set(S[0]),O.set(S[1],S[0].length),S[0]=O,S.splice(1,1)}B=S[0];var T=(B[0]<<16)+(B[1]<<8)+B[2];if(T===1){if(E=(B[4]<<8)+B[5],E&&E>x.size-6)return null;var D=B[7];D&192&&(h=(B[9]&14)*536870912+(B[10]&255)*4194304+(B[11]&254)*16384+(B[12]&255)*128+(B[13]&254)/2,D&64?(u=(B[14]&14)*536870912+(B[15]&255)*4194304+(B[16]&254)*16384+(B[17]&255)*128+(B[18]&254)/2,h-u>60*9e4&&(n.logger.warn(Math.round((h-u)/9e4)+"s delta between PTS and DTS, align them"),h=u)):u=h),g=B[8];var I=g+9;if(x.size<=I)return null;x.size-=I;for(var k=new Uint8Array(x.size),F=0,X=S.length;F<X;F++){B=S[F];var U=B.byteLength;if(I)if(I>U){I-=U;continue}else B=B.subarray(I),U-=I,I=0;k.set(B,_),_+=U}return E&&(E-=g+3),{data:k,pts:h,dts:u,len:E}}return null}function c(x,_){if(x.units.length&&x.frame){if(x.pts===void 0){var B=_.samples,E=B.length;if(E){var g=B[E-1];x.pts=g.pts,x.dts=g.dts}else{_.dropped++;return}}_.samples.push(x)}x.debug.length&&n.logger.log(x.pts+"/"+x.dts+":"+x.debug)}function A(x,_){var B=x.length;if(B>0){if(_.pts>=x[B-1].pts)x.push(_);else for(var E=B-1;E>=0;E--)if(_.pts<x[E].pts){x.splice(E,0,_);break}}else x.push(_)}function p(x){for(var _=x.byteLength,B=[],E=1;E<_-2;)x[E]===0&&x[E+1]===0&&x[E+2]===3?(B.push(E+2),E+=2):E++;if(B.length===0)return x;var g=_-B.length,h=new Uint8Array(g),u=0;for(E=0;E<g;u++,E++)u===B[0]&&(u++,B.shift()),h[E]=x[u];return h}G.default=s},"./src/errors.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"ErrorTypes",function(){return v}),M.d(G,"ErrorDetails",function(){return b});var v;(function(C){C.NETWORK_ERROR="networkError",C.MEDIA_ERROR="mediaError",C.KEY_SYSTEM_ERROR="keySystemError",C.MUX_ERROR="muxError",C.OTHER_ERROR="otherError"})(v||(v={}));var b;(function(C){C.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",C.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",C.KEY_SYSTEM_NO_SESSION="keySystemNoSession",C.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",C.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",C.MANIFEST_LOAD_ERROR="manifestLoadError",C.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",C.MANIFEST_PARSING_ERROR="manifestParsingError",C.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",C.LEVEL_EMPTY_ERROR="levelEmptyError",C.LEVEL_LOAD_ERROR="levelLoadError",C.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",C.LEVEL_SWITCH_ERROR="levelSwitchError",C.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",C.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",C.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",C.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",C.FRAG_LOAD_ERROR="fragLoadError",C.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",C.FRAG_DECRYPT_ERROR="fragDecryptError",C.FRAG_PARSING_ERROR="fragParsingError",C.REMUX_ALLOC_ERROR="remuxAllocError",C.KEY_LOAD_ERROR="keyLoadError",C.KEY_LOAD_TIMEOUT="keyLoadTimeOut",C.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",C.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",C.BUFFER_APPEND_ERROR="bufferAppendError",C.BUFFER_APPENDING_ERROR="bufferAppendingError",C.BUFFER_STALLED_ERROR="bufferStalledError",C.BUFFER_FULL_ERROR="bufferFullError",C.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",C.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",C.INTERNAL_EXCEPTION="internalException",C.INTERNAL_ABORTED="aborted",C.UNKNOWN="unknown"})(b||(b={}))},"./src/events.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"Events",function(){return v});var v;(function(b){b.MEDIA_ATTACHING="hlsMediaAttaching",b.MEDIA_ATTACHED="hlsMediaAttached",b.MEDIA_DETACHING="hlsMediaDetaching",b.MEDIA_DETACHED="hlsMediaDetached",b.BUFFER_RESET="hlsBufferReset",b.BUFFER_CODECS="hlsBufferCodecs",b.BUFFER_CREATED="hlsBufferCreated",b.BUFFER_APPENDING="hlsBufferAppending",b.BUFFER_APPENDED="hlsBufferAppended",b.BUFFER_EOS="hlsBufferEos",b.BUFFER_FLUSHING="hlsBufferFlushing",b.BUFFER_FLUSHED="hlsBufferFlushed",b.MANIFEST_LOADING="hlsManifestLoading",b.MANIFEST_LOADED="hlsManifestLoaded",b.MANIFEST_PARSED="hlsManifestParsed",b.LEVEL_SWITCHING="hlsLevelSwitching",b.LEVEL_SWITCHED="hlsLevelSwitched",b.LEVEL_LOADING="hlsLevelLoading",b.LEVEL_LOADED="hlsLevelLoaded",b.LEVEL_UPDATED="hlsLevelUpdated",b.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",b.LEVELS_UPDATED="hlsLevelsUpdated",b.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",b.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",b.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",b.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",b.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",b.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",b.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",b.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",b.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",b.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",b.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",b.CUES_PARSED="hlsCuesParsed",b.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",b.INIT_PTS_FOUND="hlsInitPtsFound",b.FRAG_LOADING="hlsFragLoading",b.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",b.FRAG_LOADED="hlsFragLoaded",b.FRAG_DECRYPTED="hlsFragDecrypted",b.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",b.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",b.FRAG_PARSING_METADATA="hlsFragParsingMetadata",b.FRAG_PARSED="hlsFragParsed",b.FRAG_BUFFERED="hlsFragBuffered",b.FRAG_CHANGED="hlsFragChanged",b.FPS_DROP="hlsFpsDrop",b.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",b.ERROR="hlsError",b.DESTROYING="hlsDestroying",b.KEY_LOADING="hlsKeyLoading",b.KEY_LOADED="hlsKeyLoaded",b.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",b.BACK_BUFFER_REACHED="hlsBackBufferReached"})(v||(v={}))},"./src/hls.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return x});var v=M("./node_modules/url-toolkit/src/url-toolkit.js"),b=M.n(v),C=M("./src/loader/playlist-loader.ts"),w=M("./src/loader/key-loader.ts"),m=M("./src/controller/id3-track-controller.ts"),d=M("./src/controller/latency-controller.ts"),i=M("./src/controller/level-controller.ts"),n=M("./src/controller/fragment-tracker.ts"),e=M("./src/controller/stream-controller.ts"),a=M("./src/is-supported.ts"),s=M("./src/utils/logger.ts"),o=M("./src/config.ts"),f=M("./node_modules/eventemitter3/index.js"),l=M.n(f),r=M("./src/events.ts"),c=M("./src/errors.ts");function A(_,B){for(var E=0;E<B.length;E++){var g=B[E];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(_,g.key,g)}}function p(_,B,E){return B&&A(_.prototype,B),E&&A(_,E),_}var x=function(){_.isSupported=function(){return Object(a.isSupported)()};function _(E){E===void 0&&(E={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new f.EventEmitter,this._autoLevelCapping=void 0,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var g=this.config=Object(o.mergeConfig)(_.DefaultConfig,E);this.userConfig=E,Object(s.enableLogs)(g.debug),this._autoLevelCapping=-1,g.progressive&&Object(o.enableStreamingMode)(g);var h=g.abrController,u=g.bufferController,S=g.capLevelController,O=g.fpsController,T=this.abrController=new h(this),D=this.bufferController=new u(this),I=this.capLevelController=new S(this),k=new O(this),F=new C.default(this),X=new w.default(this),U=new m.default(this),K=this.levelController=new i.default(this),V=new n.FragmentTracker(this),N=this.streamController=new e.default(this,V);I.setStreamController(N),k.setStreamController(N);var Q=[K,N];this.networkControllers=Q;var J=[F,X,T,D,I,k,U,V];this.audioTrackController=this.createController(g.audioTrackController,null,Q),this.createController(g.audioStreamController,V,Q),this.subtitleTrackController=this.createController(g.subtitleTrackController,null,Q),this.createController(g.subtitleStreamController,V,Q),this.createController(g.timelineController,null,J),this.emeController=this.createController(g.emeController,null,J),this.cmcdController=this.createController(g.cmcdController,null,J),this.latencyController=this.createController(d.default,null,J),this.coreComponents=J}var B=_.prototype;return B.createController=function(g,h,u){if(g){var S=h?new g(this,h):new g(this);return u&&u.push(S),S}return null},B.on=function(g,h,u){u===void 0&&(u=this),this._emitter.on(g,h,u)},B.once=function(g,h,u){u===void 0&&(u=this),this._emitter.once(g,h,u)},B.removeAllListeners=function(g){this._emitter.removeAllListeners(g)},B.off=function(g,h,u,S){u===void 0&&(u=this),this._emitter.off(g,h,u,S)},B.listeners=function(g){return this._emitter.listeners(g)},B.emit=function(g,h,u){return this._emitter.emit(g,h,u)},B.trigger=function(g,h){if(this.config.debug)return this.emit(g,g,h);try{return this.emit(g,g,h)}catch(u){s.logger.error("An internal error happened while handling event "+g+'. Error message: "'+u.message+'". Here is a stacktrace:',u),this.trigger(r.Events.ERROR,{type:c.ErrorTypes.OTHER_ERROR,details:c.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:g,error:u})}return!1},B.listenerCount=function(g){return this._emitter.listenerCount(g)},B.destroy=function(){s.logger.log("destroy"),this.trigger(r.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(g){return g.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(g){return g.destroy()}),this.coreComponents.length=0},B.attachMedia=function(g){s.logger.log("attachMedia"),this._media=g,this.trigger(r.Events.MEDIA_ATTACHING,{media:g})},B.detachMedia=function(){s.logger.log("detachMedia"),this.trigger(r.Events.MEDIA_DETACHING,void 0),this._media=null},B.loadSource=function(g){this.stopLoad();var h=this.media,u=this.url,S=this.url=v.buildAbsoluteURL(self.location.href,g,{alwaysNormalize:!0});s.logger.log("loadSource:"+S),h&&u&&u!==S&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(h)),this.trigger(r.Events.MANIFEST_LOADING,{url:g})},B.startLoad=function(g){g===void 0&&(g=-1),s.logger.log("startLoad("+g+")"),this.networkControllers.forEach(function(h){h.startLoad(g)})},B.stopLoad=function(){s.logger.log("stopLoad"),this.networkControllers.forEach(function(g){g.stopLoad()})},B.swapAudioCodec=function(){s.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},B.recoverMediaError=function(){s.logger.log("recoverMediaError");var g=this._media;this.detachMedia(),g&&this.attachMedia(g)},B.removeLevel=function(g,h){h===void 0&&(h=0),this.levelController.removeLevel(g,h)},p(_,[{key:"levels",get:function(){var g=this.levelController.levels;return g||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(g){s.logger.log("set currentLevel:"+g),this.loadLevel=g,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(g){s.logger.log("set nextLevel:"+g),this.levelController.manualLevel=g,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(g){s.logger.log("set loadLevel:"+g),this.levelController.manualLevel=g}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(g){this.levelController.nextLoadLevel=g}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(g){s.logger.log("set firstLevel:"+g),this.levelController.firstLevel=g}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(g){s.logger.log("set startLevel:"+g),g!==-1&&(g=Math.max(g,this.minAutoLevel)),this.levelController.startLevel=g}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(g){var h=!!g;h!==this.config.capLevelToPlayerSize&&(h?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=h)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(g){this._autoLevelCapping!==g&&(s.logger.log("set autoLevelCapping:"+g),this._autoLevelCapping=g)}},{key:"bandwidthEstimate",get:function(){var g=this.abrController.bwEstimator;return g?g.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var g=this.levels,h=this.config.minAutoBitrate;if(!g)return 0;for(var u=g.length,S=0;S<u;S++)if(g[S].maxBitrate>h)return S;return 0}},{key:"maxAutoLevel",get:function(){var g=this.levels,h=this.autoLevelCapping,u;return h===-1&&g&&g.length?u=g.length-1:u=h,u}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(g){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,g)}},{key:"audioTracks",get:function(){var g=this.audioTrackController;return g?g.audioTracks:[]}},{key:"audioTrack",get:function(){var g=this.audioTrackController;return g?g.audioTrack:-1},set:function(g){var h=this.audioTrackController;h&&(h.audioTrack=g)}},{key:"subtitleTracks",get:function(){var g=this.subtitleTrackController;return g?g.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var g=this.subtitleTrackController;return g?g.subtitleTrack:-1},set:function(g){var h=this.subtitleTrackController;h&&(h.subtitleTrack=g)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var g=this.subtitleTrackController;return g?g.subtitleDisplay:!1},set:function(g){var h=this.subtitleTrackController;h&&(h.subtitleDisplay=g)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(g){this.config.lowLatencyMode=g}},{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 r.Events}},{key:"ErrorTypes",get:function(){return c.ErrorTypes}},{key:"ErrorDetails",get:function(){return c.ErrorDetails}},{key:"DefaultConfig",get:function(){return _.defaultConfig?_.defaultConfig:o.hlsDefaultConfig},set:function(g){_.defaultConfig=g}}]),_}();x.defaultConfig=void 0},"./src/is-supported.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"isSupported",function(){return C}),M.d(G,"changeTypeSupported",function(){return w});var v=M("./src/utils/mediasource-helper.ts");function b(){return self.SourceBuffer||self.WebKitSourceBuffer}function C(){var m=Object(v.getMediaSource)();if(!m)return!1;var d=b(),i=m&&typeof m.isTypeSupported=="function"&&m.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!d||d.prototype&&typeof d.prototype.appendBuffer=="function"&&typeof d.prototype.remove=="function";return!!i&&!!n}function w(){var m,d=b();return typeof(d==null||((m=d.prototype)===null||m===void 0)?void 0:m.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return s}),M.d(G,"LoadError",function(){return f});var v=M("./src/polyfills/number.ts"),b=M("./src/errors.ts");function C(l,r){l.prototype=Object.create(r.prototype),l.prototype.constructor=l,n(l,r)}function w(l){var r=typeof Map=="function"?new Map:void 0;return w=function(A){if(A===null||!i(A))return A;if(typeof A!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(A))return r.get(A);r.set(A,p)}function p(){return m(A,arguments,e(this).constructor)}return p.prototype=Object.create(A.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),n(p,A)},w(l)}function m(l,r,c){return d()?m=Reflect.construct:m=function(p,x,_){var B=[null];B.push.apply(B,x);var E=Function.bind.apply(p,B),g=new E;return _&&n(g,_.prototype),g},m.apply(null,arguments)}function d(){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(l){return!1}}function i(l){return Function.toString.call(l).indexOf("[native code]")!==-1}function n(l,r){return n=Object.setPrototypeOf||function(A,p){return A.__proto__=p,A},n(l,r)}function e(l){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},e(l)}var a=Math.pow(2,17),s=function(){function l(c){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=c}var r=l.prototype;return r.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},r.abort=function(){this.loader&&this.loader.abort()},r.load=function(A,p){var x=this,_=A.url;if(!_)return Promise.reject(new f({type:b.ErrorTypes.NETWORK_ERROR,details:b.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:A,networkDetails:null},"Fragment does not have a "+(_?"part list":"url")));this.abort();var B=this.config,E=B.fLoader,g=B.loader;return new Promise(function(h,u){x.loader&&x.loader.destroy();var S=x.loader=A.loader=E?new E(B):new g(B),O=o(A),T={timeout:B.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:B.fragLoadingMaxRetryTimeout,highWaterMark:a};A.stats=S.stats,S.load(O,T,{onSuccess:function(I,k,F,X){x.resetLoader(A,S),h({frag:A,part:null,payload:I.data,networkDetails:X})},onError:function(I,k,F){x.resetLoader(A,S),u(new f({type:b.ErrorTypes.NETWORK_ERROR,details:b.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:A,response:I,networkDetails:F}))},onAbort:function(I,k,F){x.resetLoader(A,S),u(new f({type:b.ErrorTypes.NETWORK_ERROR,details:b.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:A,networkDetails:F}))},onTimeout:function(I,k,F){x.resetLoader(A,S),u(new f({type:b.ErrorTypes.NETWORK_ERROR,details:b.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:A,networkDetails:F}))},onProgress:function(I,k,F,X){p&&p({frag:A,part:null,payload:F,networkDetails:X})}})})},r.loadPart=function(A,p,x){var _=this;this.abort();var B=this.config,E=B.fLoader,g=B.loader;return new Promise(function(h,u){_.loader&&_.loader.destroy();var S=_.loader=A.loader=E?new E(B):new g(B),O=o(A,p),T={timeout:B.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:B.fragLoadingMaxRetryTimeout,highWaterMark:a};p.stats=S.stats,S.load(O,T,{onSuccess:function(I,k,F,X){_.resetLoader(A,S),_.updateStatsFromPart(A,p);var U={frag:A,part:p,payload:I.data,networkDetails:X};x(U),h(U)},onError:function(I,k,F){_.resetLoader(A,S),u(new f({type:b.ErrorTypes.NETWORK_ERROR,details:b.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:A,part:p,response:I,networkDetails:F}))},onAbort:function(I,k,F){A.stats.aborted=p.stats.aborted,_.resetLoader(A,S),u(new f({type:b.ErrorTypes.NETWORK_ERROR,details:b.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:A,part:p,networkDetails:F}))},onTimeout:function(I,k,F){_.resetLoader(A,S),u(new f({type:b.ErrorTypes.NETWORK_ERROR,details:b.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:A,part:p,networkDetails:F}))}})})},r.updateStatsFromPart=function(A,p){var x=A.stats,_=p.stats,B=_.total;if(x.loaded+=_.loaded,B){var E=Math.round(A.duration/p.duration),g=Math.min(Math.round(x.loaded/B),E),h=E-g,u=h*Math.round(x.loaded/g);x.total=x.loaded+u}else x.total=Math.max(x.loaded,x.total);var S=x.loading,O=_.loading;S.start?S.first+=O.first-O.start:(S.start=O.start,S.first=O.first),S.end=O.end},r.resetLoader=function(A,p){A.loader=null,this.loader===p&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),p.destroy()},l}();function o(l,r){r===void 0&&(r=null);var c=r||l,A={frag:l,part:r,responseType:"arraybuffer",url:c.url,headers:{},rangeStart:0,rangeEnd:0},p=c.byteRangeStartOffset,x=c.byteRangeEndOffset;return Object(v.isFiniteNumber)(p)&&Object(v.isFiniteNumber)(x)&&(A.rangeStart=p,A.rangeEnd=x),A}var f=function(l){C(r,l);function r(c){for(var A,p=arguments.length,x=new Array(p>1?p-1:0),_=1;_<p;_++)x[_-1]=arguments[_];return A=l.call.apply(l,[this].concat(x))||this,A.data=void 0,A.data=c,A}return r}(w(Error))},"./src/loader/fragment.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"ElementaryStreamTypes",function(){return s}),M.d(G,"BaseSegment",function(){return o}),M.d(G,"Fragment",function(){return f}),M.d(G,"Part",function(){return l});var v=M("./src/polyfills/number.ts"),b=M("./node_modules/url-toolkit/src/url-toolkit.js"),C=M.n(b),w=M("./src/utils/logger.ts"),m=M("./src/loader/level-key.ts"),d=M("./src/loader/load-stats.ts");function i(r,c){r.prototype=Object.create(c.prototype),r.prototype.constructor=r,n(r,c)}function n(r,c){return n=Object.setPrototypeOf||function(p,x){return p.__proto__=x,p},n(r,c)}function e(r,c){for(var A=0;A<c.length;A++){var p=c[A];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(r,p.key,p)}}function a(r,c,A){return c&&e(r.prototype,c),A&&e(r,A),r}var s;(function(r){r.AUDIO="audio",r.VIDEO="video",r.AUDIOVIDEO="audiovideo"})(s||(s={}));var o=function(){function r(A){var p;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(p={},p[s.AUDIO]=null,p[s.VIDEO]=null,p[s.AUDIOVIDEO]=null,p),this.baseurl=A}var c=r.prototype;return c.setByteRange=function(p,x){var _=p.split("@",2),B=[];_.length===1?B[0]=x?x.byteRangeEndOffset:0:B[0]=parseInt(_[1]),B[1]=parseInt(_[0])+B[0],this._byteRange=B},a(r,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Object(b.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(p){this._url=p}}]),r}(),f=function(r){i(c,r);function c(p,x){var _;return _=r.call(this,x)||this,_._decryptdata=null,_.rawProgramDateTime=null,_.programDateTime=null,_.tagList=[],_.duration=0,_.sn=0,_.levelkey=void 0,_.type=void 0,_.loader=null,_.level=-1,_.cc=0,_.startPTS=void 0,_.endPTS=void 0,_.appendedPTS=void 0,_.startDTS=void 0,_.endDTS=void 0,_.start=0,_.deltaPTS=void 0,_.maxStartPTS=void 0,_.minEndPTS=void 0,_.stats=new d.LoadStats,_.urlId=0,_.data=void 0,_.bitrateTest=!1,_.title=null,_.initSegment=null,_.type=p,_}var A=c.prototype;return A.createInitializationVector=function(x){for(var _=new Uint8Array(16),B=12;B<16;B++)_[B]=x>>8*(15-B)&255;return _},A.setDecryptDataFromLevelKey=function(x,_){var B=x;return(x==null?void 0:x.method)==="AES-128"&&x.uri&&!x.iv&&(B=m.LevelKey.fromURI(x.uri),B.method=x.method,B.iv=this.createInitializationVector(_),B.keyFormat="identity"),B},A.setElementaryStreamInfo=function(x,_,B,E,g,h){h===void 0&&(h=!1);var u=this.elementaryStreams,S=u[x];if(!S){u[x]={startPTS:_,endPTS:B,startDTS:E,endDTS:g,partial:h};return}S.startPTS=Math.min(S.startPTS,_),S.endPTS=Math.max(S.endPTS,B),S.startDTS=Math.min(S.startDTS,E),S.endDTS=Math.max(S.endDTS,g)},A.clearElementaryStreamInfo=function(){var x=this.elementaryStreams;x[s.AUDIO]=null,x[s.VIDEO]=null,x[s.AUDIOVIDEO]=null},a(c,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var x=this.sn;typeof x!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&w.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),x=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,x)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(v.isFiniteNumber)(this.programDateTime))return null;var x=Object(v.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+x*1e3}},{key:"encrypted",get:function(){var x;return!!((x=this.decryptdata)!==null&&x!==void 0&&x.keyFormat&&this.decryptdata.uri)}}]),c}(o),l=function(r){i(c,r);function c(A,p,x,_,B){var E;E=r.call(this,x)||this,E.fragOffset=0,E.duration=0,E.gap=!1,E.independent=!1,E.relurl=void 0,E.fragment=void 0,E.index=void 0,E.stats=new d.LoadStats,E.duration=A.decimalFloatingPoint("DURATION"),E.gap=A.bool("GAP"),E.independent=A.bool("INDEPENDENT"),E.relurl=A.enumeratedString("URI"),E.fragment=p,E.index=_;var g=A.enumeratedString("BYTERANGE");return g&&E.setByteRange(g,B),B&&(E.fragOffset=B.fragOffset+B.duration),E}return a(c,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var p=this.elementaryStreams;return!!(p.audio||p.video||p.audiovideo)}}]),c}(o)},"./src/loader/key-loader.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return w});var v=M("./src/events.ts"),b=M("./src/errors.ts"),C=M("./src/utils/logger.ts"),w=function(){function m(i){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=i,this._registerListeners()}var d=m.prototype;return d._registerListeners=function(){this.hls.on(v.Events.KEY_LOADING,this.onKeyLoading,this)},d._unregisterListeners=function(){this.hls.off(v.Events.KEY_LOADING,this.onKeyLoading)},d.destroy=function(){this._unregisterListeners();for(var n in this.loaders){var e=this.loaders[n];e&&e.destroy()}this.loaders={}},d.onKeyLoading=function(n,e){var a=e.frag,s=a.type,o=this.loaders[s];if(!a.decryptdata){C.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var f=a.decryptdata.uri;if(f!==this.decrypturl||this.decryptkey===null){var l=this.hls.config;if(o&&(C.logger.warn("abort previous key loader for type:"+s),o.abort()),!f){C.logger.warn("key uri is falsy");return}var r=l.loader,c=a.loader=this.loaders[s]=new r(l);this.decrypturl=f,this.decryptkey=null;var A={url:f,frag:a,responseType:"arraybuffer"},p={timeout:l.fragLoadingTimeOut,maxRetry:0,retryDelay:l.fragLoadingRetryDelay,maxRetryDelay:l.fragLoadingMaxRetryTimeout,highWaterMark:0},x={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};c.load(A,p,x)}else this.decryptkey&&(a.decryptdata.key=this.decryptkey,this.hls.trigger(v.Events.KEY_LOADED,{frag:a}))},d.loadsuccess=function(n,e,a){var s=a.frag;if(!s.decryptdata){C.logger.error("after key load, decryptdata unset");return}this.decryptkey=s.decryptdata.key=new Uint8Array(n.data),s.loader=null,delete this.loaders[s.type],this.hls.trigger(v.Events.KEY_LOADED,{frag:s})},d.loaderror=function(n,e){var a=e.frag,s=a.loader;s&&s.abort(),delete this.loaders[a.type],this.hls.trigger(v.Events.ERROR,{type:b.ErrorTypes.NETWORK_ERROR,details:b.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:a,response:n})},d.loadtimeout=function(n,e){var a=e.frag,s=a.loader;s&&s.abort(),delete this.loaders[a.type],this.hls.trigger(v.Events.ERROR,{type:b.ErrorTypes.NETWORK_ERROR,details:b.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:a})},m}()},"./src/loader/level-details.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"LevelDetails",function(){return m});var v=M("./src/polyfills/number.ts");function b(d,i){for(var n=0;n<i.length;n++){var e=i[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(d,e.key,e)}}function C(d,i,n){return i&&b(d.prototype,i),n&&b(d,n),d}var w=10,m=function(){function d(n){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=n}var i=d.prototype;return i.reloaded=function(e){if(!e){this.advanced=!0,this.updated=!0;return}var a=this.lastPartSn-e.lastPartSn,s=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!s||!!a,this.advanced=this.endSN>e.endSN||a>0||a===0&&s>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay},C(d,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(v.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||w}},{key:"drift",get:function(){var e=this.driftEndTime-this.driftStartTime;if(e>0){var a=this.driftEnd-this.driftStart;return a*1e3/e}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var e;return(e=this.fragments)!==null&&e!==void 0&&e.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 e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),d}()},"./src/loader/level-key.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"LevelKey",function(){return m});var v=M("./node_modules/url-toolkit/src/url-toolkit.js"),b=M.n(v);function C(d,i){for(var n=0;n<i.length;n++){var e=i[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(d,e.key,e)}}function w(d,i,n){return i&&C(d.prototype,i),n&&C(d,n),d}var m=function(){d.fromURL=function(n,e){return new d(n,e)},d.fromURI=function(n){return new d(n)};function d(i,n){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,n?this._uri=Object(v.buildAbsoluteURL)(i,n,{alwaysNormalize:!0}):this._uri=i}return w(d,[{key:"uri",get:function(){return this._uri}}]),d}()},"./src/loader/load-stats.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"LoadStats",function(){return v});var v=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},"./src/loader/m3u8-parser.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return c});var v=M("./src/polyfills/number.ts"),b=M("./node_modules/url-toolkit/src/url-toolkit.js"),C=M.n(b),w=M("./src/loader/fragment.ts"),m=M("./src/loader/level-details.ts"),d=M("./src/loader/level-key.ts"),i=M("./src/utils/attr-list.ts"),n=M("./src/utils/logger.ts"),e=M("./src/utils/codecs.ts"),a=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,s=/#EXT-X-MEDIA:(.*)/g,o=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),f=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),l=/\.(mp4|m4s|m4v|m4a)$/i;function r(B){var E,g;return l.test((E=(g=b.parseURL(B))===null||g===void 0?void 0:g.path)!=null?E:"")}var c=function(){function B(){}return B.findGroup=function(g,h){for(var u=0;u<g.length;u++){var S=g[u];if(S.id===h)return S}},B.convertAVC1ToAVCOTI=function(g){var h=g.split(".");if(h.length>2){var u=h.shift()+".";return u+=parseInt(h.shift()).toString(16),u+=("000"+parseInt(h.shift()).toString(16)).substr(-4),u}return g},B.resolve=function(g,h){return b.buildAbsoluteURL(h,g,{alwaysNormalize:!0})},B.parseMasterPlaylist=function(g,h){var u=[],S={},O=!1;a.lastIndex=0;for(var T;(T=a.exec(g))!=null;)if(T[1]){var D=new i.AttrList(T[1]),I={attrs:D,bitrate:D.decimalInteger("AVERAGE-BANDWIDTH")||D.decimalInteger("BANDWIDTH"),name:D.NAME,url:B.resolve(T[2],h)},k=D.decimalResolution("RESOLUTION");k&&(I.width=k.width,I.height=k.height),A((D.CODECS||"").split(/[ ,]+/).filter(function(X){return X}),I),I.videoCodec&&I.videoCodec.indexOf("avc1")!==-1&&(I.videoCodec=B.convertAVC1ToAVCOTI(I.videoCodec)),u.push(I)}else if(T[3]){var F=new i.AttrList(T[3]);F["DATA-ID"]&&(O=!0,S[F["DATA-ID"]]=F)}return{levels:u,sessionData:O?S:null}},B.parseMasterPlaylistMedia=function(g,h,u,S){S===void 0&&(S=[]);var O,T=[],D=0;for(s.lastIndex=0;(O=s.exec(g))!==null;){var I=new i.AttrList(O[1]);if(I.TYPE===u){var k={attrs:I,bitrate:0,id:D++,groupId:I["GROUP-ID"],instreamId:I["INSTREAM-ID"],name:I.NAME||I.LANGUAGE||"",type:u,default:I.bool("DEFAULT"),autoselect:I.bool("AUTOSELECT"),forced:I.bool("FORCED"),lang:I.LANGUAGE,url:I.URI?B.resolve(I.URI,h):""};if(S.length){var F=B.findGroup(S,k.groupId)||S[0];p(k,F,"audioCodec"),p(k,F,"textCodec")}T.push(k)}}return T},B.parseLevelPlaylist=function(g,h,u,S,O){var T=new m.LevelDetails(h),D=T.fragments,I=null,k=0,F=0,X=0,U=0,K=null,V=new w.Fragment(S,h),N,Q,J,ne=-1,ue=!1;for(o.lastIndex=0,T.m3u8=g;(N=o.exec(g))!==null;){ue&&(ue=!1,V=new w.Fragment(S,h),V.start=X,V.sn=k,V.cc=U,V.level=u,I&&(V.initSegment=I,V.rawProgramDateTime=I.rawProgramDateTime));var be=N[1];if(be){V.duration=parseFloat(be);var de=(" "+N[2]).slice(1);V.title=de||null,V.tagList.push(de?["INF",be,de]:["INF",be])}else if(N[3])Object(v.isFiniteNumber)(V.duration)&&(V.start=X,J&&(V.levelkey=J),V.sn=k,V.level=u,V.cc=U,V.urlId=O,D.push(V),V.relurl=(" "+N[3]).slice(1),_(V,K),K=V,X+=V.duration,k++,F=0,ue=!0);else if(N[4]){var _e=(" "+N[4]).slice(1);K?V.setByteRange(_e,K):V.setByteRange(_e)}else if(N[5])V.rawProgramDateTime=(" "+N[5]).slice(1),V.tagList.push(["PROGRAM-DATE-TIME",V.rawProgramDateTime]),ne===-1&&(ne=D.length);else{if(N=N[0].match(f),!N){n.logger.warn("No matches on slow regex match for level playlist!");continue}for(Q=1;Q<N.length&&!(typeof N[Q]!="undefined");Q++);var me=(" "+N[Q]).slice(1),Ee=(" "+N[Q+1]).slice(1),ge=N[Q+2]?(" "+N[Q+2]).slice(1):"";switch(me){case"PLAYLIST-TYPE":T.type=Ee.toUpperCase();break;case"MEDIA-SEQUENCE":k=T.startSN=parseInt(Ee);break;case"SKIP":{var Ae=new i.AttrList(Ee),ae=Ae.decimalInteger("SKIPPED-SEGMENTS");if(Object(v.isFiniteNumber)(ae)){T.skippedSegments=ae;for(var ve=ae;ve--;)D.unshift(null);k+=ae}var oe=Ae.enumeratedString("RECENTLY-REMOVED-DATERANGES");oe&&(T.recentlyRemovedDateranges=oe.split(" "));break}case"TARGETDURATION":T.targetduration=parseFloat(Ee);break;case"VERSION":T.version=parseInt(Ee);break;case"EXTM3U":break;case"ENDLIST":T.live=!1;break;case"#":(Ee||ge)&&V.tagList.push(ge?[Ee,ge]:[Ee]);break;case"DIS":U++;case"GAP":V.tagList.push([me]);break;case"BITRATE":V.tagList.push([me,Ee]);break;case"DISCONTINUITY-SEQ":U=parseInt(Ee);break;case"KEY":{var ie,Te=new i.AttrList(Ee),Re=Te.enumeratedString("METHOD"),Me=Te.URI,re=Te.hexadecimalInteger("IV"),j=Te.enumeratedString("KEYFORMATVERSIONS"),W=Te.enumeratedString("KEYID"),he=(ie=Te.enumeratedString("KEYFORMAT"))!=null?ie:"identity",te=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(te.indexOf(he)>-1){n.logger.warn("Keyformat "+he+" is not supported from the manifest");continue}else if(he!=="identity")continue;Re&&(J=d.LevelKey.fromURL(h,Me),Me&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Re)>=0&&(J.method=Re,J.keyFormat=he,W&&(J.keyID=W),j&&(J.keyFormatVersions=j),J.iv=re));break}case"START":{var ce=new i.AttrList(Ee),Ie=ce.decimalFloatingPoint("TIME-OFFSET");Object(v.isFiniteNumber)(Ie)&&(T.startTimeOffset=Ie);break}case"MAP":{var ze=new i.AttrList(Ee);V.relurl=ze.URI,ze.BYTERANGE&&V.setByteRange(ze.BYTERANGE),V.level=u,V.sn="initSegment",J&&(V.levelkey=J),V.initSegment=null,I=V,ue=!0;break}case"SERVER-CONTROL":{var _t=new i.AttrList(Ee);T.canBlockReload=_t.bool("CAN-BLOCK-RELOAD"),T.canSkipUntil=_t.optionalFloat("CAN-SKIP-UNTIL",0),T.canSkipDateRanges=T.canSkipUntil>0&&_t.bool("CAN-SKIP-DATERANGES"),T.partHoldBack=_t.optionalFloat("PART-HOLD-BACK",0),T.holdBack=_t.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var He=new i.AttrList(Ee);T.partTarget=He.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ke=T.partList;Ke||(Ke=T.partList=[]);var ht=F>0?Ke[Ke.length-1]:void 0,St=F++,ct=new w.Part(new i.AttrList(Ee),V,h,St,ht);Ke.push(ct),V.duration+=ct.duration;break}case"PRELOAD-HINT":{var lt=new i.AttrList(Ee);T.preloadHint=lt;break}case"RENDITION-REPORT":{var rt=new i.AttrList(Ee);T.renditionReports=T.renditionReports||[],T.renditionReports.push(rt);break}default:n.logger.warn("line parsed but not handled: "+N);break}}}K&&!K.relurl?(D.pop(),X-=K.duration,T.partList&&(T.fragmentHint=K)):T.partList&&(_(V,K),V.cc=U,T.fragmentHint=V);var Ze=D.length,$e=D[0],Ue=D[Ze-1];if(X+=T.skippedSegments*T.targetduration,X>0&&Ze&&Ue){T.averagetargetduration=X/Ze;var Ne=Ue.sn;T.endSN=Ne!=="initSegment"?Ne:0,$e&&(T.startCC=$e.cc,$e.initSegment||T.fragments.every(function(We){return We.relurl&&r(We.relurl)})&&(n.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),V=new w.Fragment(S,h),V.relurl=Ue.relurl,V.level=u,V.sn="initSegment",$e.initSegment=V,T.needSidxRanges=!0))}else T.endSN=0,T.startCC=0;return T.fragmentHint&&(X+=T.fragmentHint.duration),T.totalduration=X,T.endCC=U,ne>0&&x(D,ne),T},B}();function A(B,E){["video","audio","text"].forEach(function(g){var h=B.filter(function(S){return Object(e.isCodecType)(S,g)});if(h.length){var u=h.filter(function(S){return S.lastIndexOf("avc1",0)===0||S.lastIndexOf("mp4a",0)===0});E[g+"Codec"]=u.length>0?u[0]:h[0],B=B.filter(function(S){return h.indexOf(S)===-1})}}),E.unknownCodecs=B}function p(B,E,g){var h=E[g];h&&(B[g]=h)}function x(B,E){for(var g=B[E],h=E;h--;){var u=B[h];if(!u)return;u.programDateTime=g.programDateTime-u.duration*1e3,g=u}}function _(B,E){B.rawProgramDateTime?B.programDateTime=Date.parse(B.rawProgramDateTime):E!=null&&E.programDateTime&&(B.programDateTime=E.endProgramDateTime),Object(v.isFiniteNumber)(B.programDateTime)||(B.programDateTime=null,B.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/polyfills/number.ts"),b=M("./src/events.ts"),C=M("./src/errors.ts"),w=M("./src/utils/logger.ts"),m=M("./src/utils/mp4-tools.ts"),d=M("./src/loader/m3u8-parser.ts"),i=M("./src/types/loader.ts"),n=M("./src/utils/attr-list.ts");function e(o){var f=o.type;switch(f){case i.PlaylistContextType.AUDIO_TRACK:return i.PlaylistLevelType.AUDIO;case i.PlaylistContextType.SUBTITLE_TRACK:return i.PlaylistLevelType.SUBTITLE;default:return i.PlaylistLevelType.MAIN}}function a(o,f){var l=o.url;return(l===void 0||l.indexOf("data:")===0)&&(l=f.url),l}var s=function(){function o(l){this.hls=void 0,this.loaders=Object.create(null),this.hls=l,this.registerListeners()}var f=o.prototype;return f.registerListeners=function(){var r=this.hls;r.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.on(b.Events.LEVEL_LOADING,this.onLevelLoading,this),r.on(b.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.on(b.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.unregisterListeners=function(){var r=this.hls;r.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.off(b.Events.LEVEL_LOADING,this.onLevelLoading,this),r.off(b.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.off(b.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.createInternalLoader=function(r){var c=this.hls.config,A=c.pLoader,p=c.loader,x=A||p,_=new x(c);return r.loader=_,this.loaders[r.type]=_,_},f.getInternalLoader=function(r){return this.loaders[r.type]},f.resetInternalLoader=function(r){this.loaders[r]&&delete this.loaders[r]},f.destroyInternalLoaders=function(){for(var r in this.loaders){var c=this.loaders[r];c&&c.destroy(),this.resetInternalLoader(r)}},f.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},f.onManifestLoading=function(r,c){var A=c.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:i.PlaylistContextType.MANIFEST,url:A,deliveryDirectives:null})},f.onLevelLoading=function(r,c){var A=c.id,p=c.level,x=c.url,_=c.deliveryDirectives;this.load({id:A,groupId:null,level:p,responseType:"text",type:i.PlaylistContextType.LEVEL,url:x,deliveryDirectives:_})},f.onAudioTrackLoading=function(r,c){var A=c.id,p=c.groupId,x=c.url,_=c.deliveryDirectives;this.load({id:A,groupId:p,level:null,responseType:"text",type:i.PlaylistContextType.AUDIO_TRACK,url:x,deliveryDirectives:_})},f.onSubtitleTrackLoading=function(r,c){var A=c.id,p=c.groupId,x=c.url,_=c.deliveryDirectives;this.load({id:A,groupId:p,level:null,responseType:"text",type:i.PlaylistContextType.SUBTITLE_TRACK,url:x,deliveryDirectives:_})},f.load=function(r){var c,A=this.hls.config,p=this.getInternalLoader(r);if(p){var x=p.context;if(x&&x.url===r.url){w.logger.trace("[playlist-loader]: playlist request ongoing");return}w.logger.log("[playlist-loader]: aborting previous loader for type: "+r.type),p.abort()}var _,B,E,g;switch(r.type){case i.PlaylistContextType.MANIFEST:_=A.manifestLoadingMaxRetry,B=A.manifestLoadingTimeOut,E=A.manifestLoadingRetryDelay,g=A.manifestLoadingMaxRetryTimeout;break;case i.PlaylistContextType.LEVEL:case i.PlaylistContextType.AUDIO_TRACK:case i.PlaylistContextType.SUBTITLE_TRACK:_=0,B=A.levelLoadingTimeOut;break;default:_=A.levelLoadingMaxRetry,B=A.levelLoadingTimeOut,E=A.levelLoadingRetryDelay,g=A.levelLoadingMaxRetryTimeout;break}if(p=this.createInternalLoader(r),(c=r.deliveryDirectives)!==null&&c!==void 0&&c.part){var h;if(r.type===i.PlaylistContextType.LEVEL&&r.level!==null?h=this.hls.levels[r.level].details:r.type===i.PlaylistContextType.AUDIO_TRACK&&r.id!==null?h=this.hls.audioTracks[r.id].details:r.type===i.PlaylistContextType.SUBTITLE_TRACK&&r.id!==null&&(h=this.hls.subtitleTracks[r.id].details),h){var u=h.partTarget,S=h.targetduration;u&&S&&(B=Math.min(Math.max(u*3,S*.8)*1e3,B))}}var O={timeout:B,maxRetry:_,retryDelay:E,maxRetryDelay:g,highWaterMark:0},T={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};p.load(r,O,T)},f.loadsuccess=function(r,c,A,p){if(p===void 0&&(p=null),A.isSidxRequest){this.handleSidxRequest(r,A),this.handlePlaylistLoaded(r,c,A,p);return}this.resetInternalLoader(A.type);var x=r.data;if(x.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(r,A,"no EXTM3U delimiter",p);return}c.parsing.start=performance.now(),x.indexOf("#EXTINF:")>0||x.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(r,c,A,p):this.handleMasterPlaylist(r,c,A,p)},f.loaderror=function(r,c,A){A===void 0&&(A=null),this.handleNetworkError(c,A,!1,r)},f.loadtimeout=function(r,c,A){A===void 0&&(A=null),this.handleNetworkError(c,A,!0)},f.handleMasterPlaylist=function(r,c,A,p){var x=this.hls,_=r.data,B=a(r,A),E=d.default.parseMasterPlaylist(_,B),g=E.levels,h=E.sessionData;if(!g.length){this.handleManifestParsingError(r,A,"no level found in manifest",p);return}var u=g.map(function(k){return{id:k.attrs.AUDIO,audioCodec:k.audioCodec}}),S=g.map(function(k){return{id:k.attrs.SUBTITLES,textCodec:k.textCodec}}),O=d.default.parseMasterPlaylistMedia(_,B,"AUDIO",u),T=d.default.parseMasterPlaylistMedia(_,B,"SUBTITLES",S),D=d.default.parseMasterPlaylistMedia(_,B,"CLOSED-CAPTIONS");if(O.length){var I=O.some(function(k){return!k.url});!I&&g[0].audioCodec&&!g[0].attrs.AUDIO&&(w.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),O.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new n.AttrList({}),bitrate:0,url:""}))}x.trigger(b.Events.MANIFEST_LOADED,{levels:g,audioTracks:O,subtitles:T,captions:D,url:B,stats:c,networkDetails:p,sessionData:h})},f.handleTrackOrLevelPlaylist=function(r,c,A,p){var x=this.hls,_=A.id,B=A.level,E=A.type,g=a(r,A),h=Object(v.isFiniteNumber)(_)?_:0,u=Object(v.isFiniteNumber)(B)?B:h,S=e(A),O=d.default.parseLevelPlaylist(r.data,g,u,S,h);if(!O.fragments.length){x.trigger(b.Events.ERROR,{type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:g,reason:"no fragments found in level",level:typeof A.level=="number"?A.level:void 0});return}if(E===i.PlaylistContextType.MANIFEST){var T={attrs:new n.AttrList({}),bitrate:0,details:O,name:"",url:g};x.trigger(b.Events.MANIFEST_LOADED,{levels:[T],audioTracks:[],url:g,stats:c,networkDetails:p,sessionData:null})}if(c.parsing.end=performance.now(),O.needSidxRanges){var D,I=(D=O.fragments[0].initSegment)===null||D===void 0?void 0:D.url;this.load({url:I,isSidxRequest:!0,type:E,level:B,levelDetails:O,id:_,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}A.levelDetails=O,this.handlePlaylistLoaded(r,c,A,p)},f.handleSidxRequest=function(r,c){var A=Object(m.parseSegmentIndex)(new Uint8Array(r.data));if(!A)return;var p=A.references,x=c.levelDetails;p.forEach(function(_,B){var E=_.info,g=x.fragments[B];g.byteRange.length===0&&g.setByteRange(String(1+E.end-E.start)+"@"+String(E.start)),g.initSegment&&g.initSegment.setByteRange(String(A.moovEndOffset)+"@0")})},f.handleManifestParsingError=function(r,c,A,p){this.hls.trigger(b.Events.ERROR,{type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:c.type===i.PlaylistContextType.MANIFEST,url:r.url,reason:A,response:r,context:c,networkDetails:p})},f.handleNetworkError=function(r,c,A,p){A===void 0&&(A=!1),w.logger.warn("[playlist-loader]: A network "+(A?"timeout":"error")+" occurred while loading "+r.type+" level: "+r.level+" id: "+r.id+' group-id: "'+r.groupId+'"');var x=C.ErrorDetails.UNKNOWN,_=!1,B=this.getInternalLoader(r);switch(r.type){case i.PlaylistContextType.MANIFEST:x=A?C.ErrorDetails.MANIFEST_LOAD_TIMEOUT:C.ErrorDetails.MANIFEST_LOAD_ERROR,_=!0;break;case i.PlaylistContextType.LEVEL:x=A?C.ErrorDetails.LEVEL_LOAD_TIMEOUT:C.ErrorDetails.LEVEL_LOAD_ERROR,_=!1;break;case i.PlaylistContextType.AUDIO_TRACK:x=A?C.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:C.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,_=!1;break;case i.PlaylistContextType.SUBTITLE_TRACK:x=A?C.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:C.ErrorDetails.SUBTITLE_LOAD_ERROR,_=!1;break}B&&this.resetInternalLoader(r.type);var E={type:C.ErrorTypes.NETWORK_ERROR,details:x,fatal:_,url:r.url,loader:B,context:r,networkDetails:c};p&&(E.response=p),this.hls.trigger(b.Events.ERROR,E)},f.handlePlaylistLoaded=function(r,c,A,p){var x=A.type,_=A.level,B=A.id,E=A.groupId,g=A.loader,h=A.levelDetails,u=A.deliveryDirectives;if(!(h!=null&&h.targetduration)){this.handleManifestParsingError(r,A,"invalid target duration",p);return}if(!g)return;h.live&&(g.getCacheAge&&(h.ageHeader=g.getCacheAge()||0),(!g.getCacheAge||isNaN(h.ageHeader))&&(h.ageHeader=0));switch(x){case i.PlaylistContextType.MANIFEST:case i.PlaylistContextType.LEVEL:this.hls.trigger(b.Events.LEVEL_LOADED,{details:h,level:_||0,id:B||0,stats:c,networkDetails:p,deliveryDirectives:u});break;case i.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(b.Events.AUDIO_TRACK_LOADED,{details:h,id:B||0,groupId:E||"",stats:c,networkDetails:p,deliveryDirectives:u});break;case i.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(b.Events.SUBTITLE_TRACK_LOADED,{details:h,id:B||0,groupId:E||"",stats:c,networkDetails:p,deliveryDirectives:u});break}},o}();G.default=s},"./src/polyfills/number.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"isFiniteNumber",function(){return v}),M.d(G,"MAX_SAFE_INTEGER",function(){return b});var v=Number.isFinite||function(C){return typeof C=="number"&&isFinite(C)},b=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(se,G,M){"use strict";M.r(G);var v=function(){function b(){}return b.getSilentFrame=function(w,m){switch(w){case"mp4a.40.2":if(m===1)return new Uint8Array([0,200,0,128,35,128]);if(m===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(m===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(m===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(m===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(m===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(m===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(m===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(m===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},b}();G.default=v},"./src/remux/mp4-generator.ts":function(se,G,M){"use strict";M.r(G);var v=Math.pow(2,32)-1,b=function(){function C(){}return C.init=function(){C.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 m;for(m in C.types)C.types.hasOwnProperty(m)&&(C.types[m]=[m.charCodeAt(0),m.charCodeAt(1),m.charCodeAt(2),m.charCodeAt(3)]);var d=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]),i=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]);C.HDLR_TYPES={video:d,audio:i};var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e=new Uint8Array([0,0,0,0,0,0,0,0]);C.STTS=C.STSC=C.STCO=e,C.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),C.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),C.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),C.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var a=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),o=new Uint8Array([0,0,0,1]);C.FTYP=C.box(C.types.ftyp,a,o,a,s),C.DINF=C.box(C.types.dinf,C.box(C.types.dref,n))},C.box=function(m){for(var d=8,i=arguments.length,n=new Array(i>1?i-1:0),e=1;e<i;e++)n[e-1]=arguments[e];for(var a=n.length,s=a;a--;)d+=n[a].byteLength;var o=new Uint8Array(d);for(o[0]=d>>24&255,o[1]=d>>16&255,o[2]=d>>8&255,o[3]=d&255,o.set(m,4),a=0,d=8;a<s;a++)o.set(n[a],d),d+=n[a].byteLength;return o},C.hdlr=function(m){return C.box(C.types.hdlr,C.HDLR_TYPES[m])},C.mdat=function(m){return C.box(C.types.mdat,m)},C.mdhd=function(m,d){d*=m;var i=Math.floor(d/(v+1)),n=Math.floor(d%(v+1));return C.box(C.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,m>>24&255,m>>16&255,m>>8&255,m&255,i>>24,i>>16&255,i>>8&255,i&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))},C.mdia=function(m){return C.box(C.types.mdia,C.mdhd(m.timescale,m.duration),C.hdlr(m.type),C.minf(m))},C.mfhd=function(m){return C.box(C.types.mfhd,new Uint8Array([0,0,0,0,m>>24,m>>16&255,m>>8&255,m&255]))},C.minf=function(m){return m.type==="audio"?C.box(C.types.minf,C.box(C.types.smhd,C.SMHD),C.DINF,C.stbl(m)):C.box(C.types.minf,C.box(C.types.vmhd,C.VMHD),C.DINF,C.stbl(m))},C.moof=function(m,d,i){return C.box(C.types.moof,C.mfhd(m),C.traf(i,d))},C.moov=function(m){for(var d=m.length,i=[];d--;)i[d]=C.trak(m[d]);return C.box.apply(null,[C.types.moov,C.mvhd(m[0].timescale,m[0].duration)].concat(i).concat(C.mvex(m)))},C.mvex=function(m){for(var d=m.length,i=[];d--;)i[d]=C.trex(m[d]);return C.box.apply(null,[C.types.mvex].concat(i))},C.mvhd=function(m,d){d*=m;var i=Math.floor(d/(v+1)),n=Math.floor(d%(v+1)),e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,m>>24&255,m>>16&255,m>>8&255,m&255,i>>24,i>>16&255,i>>8&255,i&255,n>>24,n>>16&255,n>>8&255,n&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 C.box(C.types.mvhd,e)},C.sdtp=function(m){var d=m.samples||[],i=new Uint8Array(4+d.length),n,e;for(n=0;n<d.length;n++)e=d[n].flags,i[n+4]=e.dependsOn<<4|e.isDependedOn<<2|e.hasRedundancy;return C.box(C.types.sdtp,i)},C.stbl=function(m){return C.box(C.types.stbl,C.stsd(m),C.box(C.types.stts,C.STTS),C.box(C.types.stsc,C.STSC),C.box(C.types.stsz,C.STSZ),C.box(C.types.stco,C.STCO))},C.avc1=function(m){var d=[],i=[],n,e,a;for(n=0;n<m.sps.length;n++)e=m.sps[n],a=e.byteLength,d.push(a>>>8&255),d.push(a&255),d=d.concat(Array.prototype.slice.call(e));for(n=0;n<m.pps.length;n++)e=m.pps[n],a=e.byteLength,i.push(a>>>8&255),i.push(a&255),i=i.concat(Array.prototype.slice.call(e));var s=C.box(C.types.avcC,new Uint8Array([1,d[3],d[4],d[5],252|3,224|m.sps.length].concat(d).concat([m.pps.length]).concat(i))),o=m.width,f=m.height,l=m.pixelRatio[0],r=m.pixelRatio[1];return C.box(C.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,o>>8&255,o&255,f>>8&255,f&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]),s,C.box(C.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),C.box(C.types.pasp,new Uint8Array([l>>24,l>>16&255,l>>8&255,l&255,r>>24,r>>16&255,r>>8&255,r&255])))},C.esds=function(m){var d=m.config.length;return new Uint8Array([0,0,0,0,3,23+d,0,1,0,4,15+d,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([d]).concat(m.config).concat([6,1,2]))},C.mp4a=function(m){var d=m.samplerate;return C.box(C.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,d>>8&255,d&255,0,0]),C.box(C.types.esds,C.esds(m)))},C.mp3=function(m){var d=m.samplerate;return C.box(C.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,d>>8&255,d&255,0,0]))},C.stsd=function(m){return m.type==="audio"?!m.isAAC&&m.codec==="mp3"?C.box(C.types.stsd,C.STSD,C.mp3(m)):C.box(C.types.stsd,C.STSD,C.mp4a(m)):C.box(C.types.stsd,C.STSD,C.avc1(m))},C.tkhd=function(m){var d=m.id,i=m.duration*m.timescale,n=m.width,e=m.height,a=Math.floor(i/(v+1)),s=Math.floor(i%(v+1));return C.box(C.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,d>>24&255,d>>16&255,d>>8&255,d&255,0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255,s>>24,s>>16&255,s>>8&255,s&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,n>>8&255,n&255,0,0,e>>8&255,e&255,0,0]))},C.traf=function(m,d){var i=C.sdtp(m),n=m.id,e=Math.floor(d/(v+1)),a=Math.floor(d%(v+1));return C.box(C.types.traf,C.box(C.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),C.box(C.types.tfdt,new Uint8Array([1,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,a>>24,a>>16&255,a>>8&255,a&255])),C.trun(m,i.length+16+20+8+16+8+8),i)},C.trak=function(m){return m.duration=m.duration||4294967295,C.box(C.types.trak,C.tkhd(m),C.mdia(m))},C.trex=function(m){var d=m.id;return C.box(C.types.trex,new Uint8Array([0,0,0,0,d>>24,d>>16&255,d>>8&255,d&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},C.trun=function(m,d){var i=m.samples||[],n=i.length,e=12+16*n,a=new Uint8Array(e),s,o,f,l,r,c;for(d+=8+e,a.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,n&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255],0),s=0;s<n;s++)o=i[s],f=o.duration,l=o.size,r=o.flags,c=o.cts,a.set([f>>>24&255,f>>>16&255,f>>>8&255,f&255,l>>>24&255,l>>>16&255,l>>>8&255,l&255,r.isLeading<<2|r.dependsOn,r.isDependedOn<<6|r.hasRedundancy<<4|r.paddingValue<<1|r.isNonSync,r.degradPrio&240<<8,r.degradPrio&15,c>>>24&255,c>>>16&255,c>>>8&255,c&255],12+16*s);return C.box(C.types.trun,a)},C.initSegment=function(m){C.types||C.init();var d=C.moov(m),i=new Uint8Array(C.FTYP.byteLength+d.byteLength);return i.set(C.FTYP),i.set(d,C.FTYP.byteLength),i},C}();b.types=void 0,b.HDLR_TYPES=void 0,b.STTS=void 0,b.STSC=void 0,b.STCO=void 0,b.STSZ=void 0,b.VMHD=void 0,b.SMHD=void 0,b.STSD=void 0,b.FTYP=void 0,b.DINF=void 0,G.default=b},"./src/remux/mp4-remuxer.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return c}),M.d(G,"normalizePts",function(){return A});var v=M("./src/polyfills/number.ts"),b=M("./src/remux/aac-helper.ts"),C=M("./src/remux/mp4-generator.ts"),w=M("./src/events.ts"),m=M("./src/errors.ts"),d=M("./src/utils/logger.ts"),i=M("./src/types/loader.ts"),n=M("./src/utils/timescale-conversion.ts");function e(){return e=Object.assign||function(B){for(var E=1;E<arguments.length;E++){var g=arguments[E];for(var h in g)Object.prototype.hasOwnProperty.call(g,h)&&(B[h]=g[h])}return B},e.apply(this,arguments)}var a=10*1e3,s=1024,o=1152,f=null,l=null,r=!1,c=function(){function B(g,h,u,S){if(S===void 0&&(S=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=g,this.config=h,this.typeSupported=u,this.ISGenerated=!1,f===null){var O=navigator.userAgent||"",T=O.match(/Chrome\/(\d+)/i);f=T?parseInt(T[1]):0}if(l===null){var D=navigator.userAgent.match(/Safari\/(\d+)/i);l=D?parseInt(D[1]):0}r=!!f&&f<75||!!l&&l<600}var E=B.prototype;return E.destroy=function(){},E.resetTimeStamp=function(h){d.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=h},E.resetNextTimestamp=function(){d.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},E.resetInitSegment=function(){d.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},E.getVideoStartPts=function(h){var u=!1,S=h.reduce(function(O,T){var D=T.pts-O;return D<-4294967296?(u=!0,A(O,T.pts)):D>0?O:T.pts},h[0].pts);return u&&d.logger.debug("PTS rollover detected"),S},E.remux=function(h,u,S,O,T,D,I,k){var F,X,U,K,V,N,Q=T,J=T,ne=h.pid>-1,ue=u.pid>-1,be=u.samples.length,de=h.samples.length>0,_e=be>1,me=(!ne||de)&&(!ue||_e)||this.ISGenerated||I;if(me){this.ISGenerated||(U=this.generateIS(h,u,T));var Ee=this.isVideoContiguous,ge=-1;if(_e&&(ge=p(u.samples),!Ee&&this.config.forceKeyFrameOnDiscontinuity))if(N=!0,ge>0){d.logger.warn("[mp4-remuxer]: Dropped "+ge+" out of "+be+" video samples due to a missing keyframe");var Ae=this.getVideoStartPts(u.samples);u.samples=u.samples.slice(ge),u.dropped+=ge,J+=(u.samples[0].pts-Ae)/(u.timescale||9e4)}else ge===-1&&(d.logger.warn("[mp4-remuxer]: No keyframe found out of "+be+" video samples"),N=!1);if(this.ISGenerated){if(de&&_e){var ae=this.getVideoStartPts(u.samples),ve=A(h.samples[0].pts,ae)-ae,oe=ve/u.inputTimeScale;Q+=Math.max(0,oe),J+=Math.max(0,-oe)}if(de){if(h.samplerate||(d.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),U=this.generateIS(h,u,T)),X=this.remuxAudio(h,Q,this.isAudioContiguous,D,ue||_e||k===i.PlaylistLevelType.AUDIO?J:void 0),_e){var ie=X?X.endPTS-X.startPTS:0;u.inputTimeScale||(d.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),U=this.generateIS(h,u,T)),F=this.remuxVideo(u,J,Ee,ie)}}else _e&&(F=this.remuxVideo(u,J,Ee,0));F&&(F.firstKeyFrame=ge,F.independent=ge!==-1)}}return this.ISGenerated&&(S.samples.length&&(V=this.remuxID3(S,T)),O.samples.length&&(K=this.remuxText(O,T))),{audio:X,video:F,initSegment:U,independent:N,text:K,id3:V}},E.generateIS=function(h,u,S){var O=h.samples,T=u.samples,D=this.typeSupported,I={},k=!Object(v.isFiniteNumber)(this._initPTS),F="audio/mp4",X,U,K;if(k&&(X=U=Infinity),h.config&&O.length&&(h.timescale=h.samplerate,h.isAAC||(D.mpeg?(F="audio/mpeg",h.codec=""):D.mp3&&(h.codec="mp3")),I.audio={id:"audio",container:F,codec:h.codec,initSegment:!h.isAAC&&D.mpeg?new Uint8Array(0):C.default.initSegment([h]),metadata:{channelCount:h.channelCount}},k&&(K=h.inputTimeScale,X=U=O[0].pts-Math.round(K*S))),u.sps&&u.pps&&T.length&&(u.timescale=u.inputTimeScale,I.video={id:"main",container:"video/mp4",codec:u.codec,initSegment:C.default.initSegment([u]),metadata:{width:u.width,height:u.height}},k)){K=u.inputTimeScale;var V=this.getVideoStartPts(T),N=Math.round(K*S);U=Math.min(U,A(T[0].dts,V)-N),X=Math.min(X,V-N)}if(Object.keys(I).length)return this.ISGenerated=!0,k&&(this._initPTS=X,this._initDTS=U),{tracks:I,initPTS:X,timescale:K}},E.remuxVideo=function(h,u,S,O){var T=h.inputTimeScale,D=h.samples,I=[],k=D.length,F=this._initPTS,X=this.nextAvcDts,U=8,K,V,N,Q=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY,ne=0,ue=!1;if(!S||X===null){var be=u*T,de=D[0].pts-A(D[0].dts,D[0].pts);X=be-de}for(var _e=0;_e<k;_e++){var me=D[_e];if(me.pts=A(me.pts-F,X),me.dts=A(me.dts-F,X),me.dts>me.pts){var Ee=9e4*.2;ne=Math.max(Math.min(ne,me.pts-me.dts),-1*Ee)}me.dts<D[_e>0?_e-1:_e].dts&&(ue=!0)}ue&&D.sort(function(Ut,Bt){var At=Ut.dts-Bt.dts,bt=Ut.pts-Bt.pts;return At||bt}),V=D[0].dts,N=D[D.length-1].dts;var ge=Math.round((N-V)/(k-1));if(ne<0){if(ne<ge*-2){d.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(n.toMsFromMpegTsClock)(-ge,!0)+" ms");for(var Ae=ne,ae=0;ae<k;ae++)D[ae].dts=Ae=Math.max(Ae,D[ae].pts-ge),D[ae].pts=Math.max(Ae,D[ae].pts)}else{d.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(n.toMsFromMpegTsClock)(ne,!0)+" ms to overcome this issue");for(var ve=0;ve<k;ve++)D[ve].dts=D[ve].dts+ne}V=D[0].dts}if(S){var oe=V-X,ie=oe>ge,Te=oe<-1;if(ie||Te){ie?d.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(oe,!0)+" ms ("+oe+"dts) hole between fragments detected, filling it"):d.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(-oe,!0)+" ms ("+oe+"dts) overlapping between fragments detected"),V=X;var Re=D[0].pts-oe;D[0].dts=V,D[0].pts=Re,d.logger.log("Video: First PTS/DTS adjusted: "+Object(n.toMsFromMpegTsClock)(Re,!0)+"/"+Object(n.toMsFromMpegTsClock)(V,!0)+", delta: "+Object(n.toMsFromMpegTsClock)(oe,!0)+" ms")}}r&&(V=Math.max(0,V));for(var Me=0,re=0,j=0;j<k;j++){for(var W=D[j],he=W.units,te=he.length,ce=0,Ie=0;Ie<te;Ie++)ce+=he[Ie].data.length;re+=ce,Me+=te,W.length=ce,W.dts=Math.max(W.dts,V),W.pts=Math.max(W.pts,W.dts,0),Q=Math.min(W.pts,Q),J=Math.max(W.pts,J)}N=D[k-1].dts;var ze=re+4*Me+8,_t;try{_t=new Uint8Array(ze)}catch(Ut){this.observer.emit(w.Events.ERROR,w.Events.ERROR,{type:m.ErrorTypes.MUX_ERROR,details:m.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ze,reason:"fail allocating video mdat "+ze});return}var He=new DataView(_t.buffer);He.setUint32(0,ze),_t.set(C.default.types.mdat,4);for(var Ke=0;Ke<k;Ke++){for(var ht=D[Ke],St=ht.units,ct=0,lt=0,rt=St.length;lt<rt;lt++){var Ze=St[lt],$e=Ze.data,Ue=Ze.data.byteLength;He.setUint32(U,Ue),U+=4,_t.set($e,U),U+=Ue,ct+=4+Ue}if(Ke<k-1)K=D[Ke+1].dts-ht.dts;else{var Ne=this.config,We=ht.dts-D[Ke>0?Ke-1:Ke].dts;if(Ne.stretchShortVideoTrack&&this.nextAudioPts!==null){var it=Math.floor(Ne.maxBufferHole*T),yt=(O?Q+O*T:this.nextAudioPts)-ht.pts;yt>it?(K=yt-We,K<0&&(K=We),d.logger.log("[mp4-remuxer]: It is approximately "+yt/90+" ms to the next segment; using duration "+K/90+" ms for the last video frame.")):K=We}else K=We}var vt=Math.round(ht.pts-ht.dts);I.push(new x(ht.key,K,ct,vt))}if(I.length&&f&&f<70){var Mt=I[0].flags;Mt.dependsOn=2,Mt.isNonSync=0}console.assert(K!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=X=N+K,this.isVideoContiguous=!0;var Tt=C.default.moof(h.sequenceNumber++,V,e({},h,{samples:I})),Rt="video",kt={data1:Tt,data2:_t,startPTS:Q/T,endPTS:(J+K)/T,startDTS:V/T,endDTS:X/T,type:Rt,hasAudio:!1,hasVideo:!0,nb:I.length,dropped:h.dropped};return h.samples=[],h.dropped=0,console.assert(_t.length,"MDAT length must not be zero"),kt},E.remuxAudio=function(h,u,S,O,T){var D=h.inputTimeScale,I=h.samplerate?h.samplerate:D,k=D/I,F=h.isAAC?s:o,X=F*k,U=this._initPTS,K=!h.isAAC&&this.typeSupported.mpeg,V=[],N=h.samples,Q=K?0:8,J=this.nextAudioPts||-1,ne=u*D;if(this.isAudioContiguous=S=S||N.length&&J>0&&(O&&Math.abs(ne-J)<9e3||Math.abs(A(N[0].pts-U,ne)-J)<20*X),N.forEach(function($e){$e.pts=A($e.pts-U,ne)}),!S||J<0){if(N=N.filter(function($e){return $e.pts>=0}),!N.length)return;T===0?J=0:O?J=Math.max(0,ne):J=N[0].pts}if(h.isAAC)for(var ue=T!==void 0,be=this.config.maxAudioFramesDrift,de=0,_e=J;de<N.length;de++){var me=N[de],Ee=me.pts,ge=Ee-_e,Ae=Math.abs(1e3*ge/D);if(ge<=-be*X&&ue)de===0&&(d.logger.warn("Audio frame @ "+(Ee/D).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*ge/D)+" ms."),this.nextAudioPts=J=_e=Ee);else if(ge>=be*X&&Ae<a&&ue){var ae=Math.round(ge/X);_e=Ee-ae*X,_e<0&&(ae--,_e+=X),de===0&&(this.nextAudioPts=J=_e),d.logger.warn("[mp4-remuxer]: Injecting "+ae+" audio frame @ "+(_e/D).toFixed(3)+"s due to "+Math.round(1e3*ge/D)+" ms gap.");for(var ve=0;ve<ae;ve++){var oe=Math.max(_e,0),ie=b.default.getSilentFrame(h.manifestCodec||h.codec,h.channelCount);ie||(d.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),ie=me.unit.subarray()),N.splice(de,0,{unit:ie,pts:oe}),_e+=X,de++}}me.pts=_e,_e+=X}for(var Te=null,Re=null,Me,re=0,j=N.length;j--;)re+=N[j].unit.byteLength;for(var W=0,he=N.length;W<he;W++){var te=N[W],ce=te.unit,Ie=te.pts;if(Re!==null){var ze=V[W-1];ze.duration=Math.round((Ie-Re)/k)}else if(S&&h.isAAC&&(Ie=J),Te=Ie,re>0){re+=Q;try{Me=new Uint8Array(re)}catch($e){this.observer.emit(w.Events.ERROR,w.Events.ERROR,{type:m.ErrorTypes.MUX_ERROR,details:m.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:re,reason:"fail allocating audio mdat "+re});return}if(!K){var _t=new DataView(Me.buffer);_t.setUint32(0,re),Me.set(C.default.types.mdat,4)}}else return;Me.set(ce,Q);var He=ce.byteLength;Q+=He,V.push(new x(!0,F,He,0)),Re=Ie}var Ke=V.length;if(!Ke)return;var ht=V[V.length-1];this.nextAudioPts=J=Re+k*ht.duration;var St=K?new Uint8Array(0):C.default.moof(h.sequenceNumber++,Te/k,e({},h,{samples:V}));h.samples=[];var ct=Te/D,lt=J/D,rt="audio",Ze={data1:St,data2:Me,startPTS:ct,endPTS:lt,startDTS:ct,endDTS:lt,type:rt,hasAudio:!0,hasVideo:!1,nb:Ke};return this.isAudioContiguous=!0,console.assert(Me.length,"MDAT length must not be zero"),Ze},E.remuxEmptyAudio=function(h,u,S,O){var T=h.inputTimeScale,D=h.samplerate?h.samplerate:T,I=T/D,k=this.nextAudioPts,F=(k!==null?k:O.startDTS*T)+this._initDTS,X=O.endDTS*T+this._initDTS,U=I*s,K=Math.ceil((X-F)/U),V=b.default.getSilentFrame(h.manifestCodec||h.codec,h.channelCount);if(d.logger.warn("[mp4-remuxer]: remux empty Audio"),!V){d.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var N=[],Q=0;Q<K;Q++){var J=F+Q*U;N.push({unit:V,pts:J,dts:J})}return h.samples=N,this.remuxAudio(h,u,S,!1)},E.remuxID3=function(h,u){var S=h.samples.length;if(!S)return;for(var O=h.inputTimeScale,T=this._initPTS,D=this._initDTS,I=0;I<S;I++){var k=h.samples[I];k.pts=A(k.pts-T,u*O)/O,k.dts=A(k.dts-D,u*O)/O}var F=h.samples;return h.samples=[],{samples:F}},E.remuxText=function(h,u){var S=h.samples.length;if(!S)return;for(var O=h.inputTimeScale,T=this._initPTS,D=0;D<S;D++){var I=h.samples[D];I.pts=A(I.pts-T,u*O)/O}h.samples.sort(function(F,X){return F.pts-X.pts});var k=h.samples;return h.samples=[],{samples:k}},B}();function A(B,E){var g;if(E===null)return B;for(E<B?g=-8589934592:g=8589934592;Math.abs(B-E)>4294967296;)B+=g;return B}function p(B){for(var E=0;E<B.length;E++)if(B[E].key)return E;return-1}var x=function(E,g,h,u){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=g,this.size=h,this.cts=u,this.flags=new _(E)},_=function(E){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=E?2:1,this.isNonSync=E?0:1}},"./src/remux/passthrough-remuxer.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/polyfills/number.ts"),b=M("./src/utils/mp4-tools.ts"),C=M("./src/loader/fragment.ts"),w=M("./src/utils/logger.ts"),m=function(){function n(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var e=n.prototype;return e.destroy=function(){},e.resetTimeStamp=function(s){this.initPTS=s,this.lastEndDTS=null},e.resetNextTimestamp=function(){this.lastEndDTS=null},e.resetInitSegment=function(s,o,f){this.audioCodec=o,this.videoCodec=f,this.generateInitSegment(s),this.emitInitSegment=!0},e.generateInitSegment=function(s){var o=this.audioCodec,f=this.videoCodec;if(!s||!s.byteLength){this.initTracks=void 0,this.initData=void 0;return}var l=this.initData=Object(b.parseInitSegment)(s);o||(o=i(l.audio,C.ElementaryStreamTypes.AUDIO)),f||(f=i(l.video,C.ElementaryStreamTypes.VIDEO));var r={};l.audio&&l.video?r.audiovideo={container:"video/mp4",codec:o+","+f,initSegment:s,id:"main"}:l.audio?r.audio={container:"audio/mp4",codec:o,initSegment:s,id:"audio"}:l.video?r.video={container:"video/mp4",codec:f,initSegment:s,id:"main"}:w.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=r},e.remux=function(s,o,f,l,r){var c=this.initPTS,A=this.lastEndDTS,p={audio:void 0,video:void 0,text:l,id3:f,initSegment:void 0};Object(v.isFiniteNumber)(A)||(A=this.lastEndDTS=r||0);var x=o.samples;if(!x||!x.length)return p;var _={initPTS:void 0,timescale:1},B=this.initData;if((!B||!B.length)&&(this.generateInitSegment(x),B=this.initData),!B||!B.length)return w.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),p;this.emitInitSegment&&(_.tracks=this.initTracks,this.emitInitSegment=!1),Object(v.isFiniteNumber)(c)||(this.initPTS=_.initPTS=c=d(B,x,A));var E=Object(b.getDuration)(x,B),g=A,h=E+g;Object(b.offsetStartDTS)(B,x,c),E>0?this.lastEndDTS=h:(w.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var u=!!B.audio,S=!!B.video,O="";u&&(O+="audio"),S&&(O+="video");var T={data1:x,startPTS:g,startDTS:g,endPTS:h,endDTS:h,type:O,hasAudio:u,hasVideo:S,nb:1,dropped:0};return p.audio=T.type==="audio"?T:void 0,p.video=T.type!=="audio"?T:void 0,p.text=l,p.id3=f,p.initSegment=_,p},n}(),d=function(e,a,s){return Object(b.getStartDTS)(e,a)-s};function i(n,e){var a=n==null?void 0:n.codec;return a&&a.length>4?a:a==="hvc1"?"hvc1.1.c.L120.90":a==="av01"?"av01.0.04M.08":a==="avc1"||e===C.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}G.default=m},"./src/task-loop.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return v});var v=function(){function b(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var C=b.prototype;return C.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},C.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},C.onHandlerDestroyed=function(){},C.hasInterval=function(){return!!this._tickInterval},C.hasNextTick=function(){return!!this._tickTimer},C.setInterval=function(m){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,m),!0)},C.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},C.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},C.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},C.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},C.doTick=function(){},b}()},"./src/types/cmcd.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"CMCDVersion",function(){return v}),M.d(G,"CMCDObjectType",function(){return b}),M.d(G,"CMCDStreamingFormat",function(){return C}),M.d(G,"CMCDStreamType",function(){return w});var v=1,b;(function(m){m.MANIFEST="m",m.AUDIO="a",m.VIDEO="v",m.MUXED="av",m.INIT="i",m.CAPTION="c",m.TIMED_TEXT="tt",m.KEY="k",m.OTHER="o"})(b||(b={}));var C;(function(m){m.DASH="d",m.HLS="h",m.SMOOTH="s",m.OTHER="o"})(C||(C={}));var w;(function(m){m.VOD="v",m.LIVE="l"})(w||(w={}))},"./src/types/level.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"HlsSkip",function(){return C}),M.d(G,"getSkipValue",function(){return w}),M.d(G,"HlsUrlParameters",function(){return m}),M.d(G,"Level",function(){return d});function v(i,n){for(var e=0;e<n.length;e++){var a=n[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,a.key,a)}}function b(i,n,e){return n&&v(i.prototype,n),e&&v(i,e),i}var C;(function(i){i.No="",i.Yes="YES",i.v2="v2"})(C||(C={}));function w(i,n){var e=i.canSkipUntil,a=i.canSkipDateRanges,s=i.endSN,o=n!==void 0?n-s:0;return e&&o<e?a?C.v2:C.Yes:C.No}var m=function(){function i(e,a,s){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=a,this.skip=s}var n=i.prototype;return n.addDirectives=function(a){var s=new self.URL(a);return this.msn!==void 0&&s.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&s.searchParams.set("_HLS_part",this.part.toString()),this.skip&&s.searchParams.set("_HLS_skip",this.skip),s.toString()},i}(),d=function(){function i(n){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[n.url],this.attrs=n.attrs,this.bitrate=n.bitrate,n.details&&(this.details=n.details),this.id=n.id||0,this.name=n.name,this.width=n.width||0,this.height=n.height||0,this.audioCodec=n.audioCodec,this.videoCodec=n.videoCodec,this.unknownCodecs=n.unknownCodecs,this.codecSet=[n.videoCodec,n.audioCodec].filter(function(e){return e}).join(",").replace(/\.[^.,]+/g,"")}return b(i,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(e){var a=e%this.url.length;this._urlId!==a&&(this.details=void 0,this._urlId=a)}}]),i}()},"./src/types/loader.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"PlaylistContextType",function(){return v}),M.d(G,"PlaylistLevelType",function(){return b});var v;(function(C){C.MANIFEST="manifest",C.LEVEL="level",C.AUDIO_TRACK="audioTrack",C.SUBTITLE_TRACK="subtitleTrack"})(v||(v={}));var b;(function(C){C.MAIN="main",C.AUDIO="audio",C.SUBTITLE="subtitle"})(b||(b={}))},"./src/types/transmuxer.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"ChunkMetadata",function(){return v});var v=function(w,m,d,i,n,e){i===void 0&&(i=0),n===void 0&&(n=-1),e===void 0&&(e=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=b(),this.buffering={audio:b(),video:b(),audiovideo:b()},this.level=w,this.sn=m,this.id=d,this.size=i,this.part=n,this.partial=e};function b(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"AttrList",function(){return C});var v=/^(\d+)x(\d+)$/,b=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,C=function(){function w(d){typeof d=="string"&&(d=w.parseAttrList(d));for(var i in d)d.hasOwnProperty(i)&&(this[i]=d[i])}var m=w.prototype;return m.decimalInteger=function(i){var n=parseInt(this[i],10);return n>Number.MAX_SAFE_INTEGER?Infinity:n},m.hexadecimalInteger=function(i){if(this[i]){var n=(this[i]||"0x").slice(2);n=(n.length&1?"0":"")+n;for(var e=new Uint8Array(n.length/2),a=0;a<n.length/2;a++)e[a]=parseInt(n.slice(a*2,a*2+2),16);return e}else return null},m.hexadecimalIntegerAsNumber=function(i){var n=parseInt(this[i],16);return n>Number.MAX_SAFE_INTEGER?Infinity:n},m.decimalFloatingPoint=function(i){return parseFloat(this[i])},m.optionalFloat=function(i,n){var e=this[i];return e?parseFloat(e):n},m.enumeratedString=function(i){return this[i]},m.bool=function(i){return this[i]==="YES"},m.decimalResolution=function(i){var n=v.exec(this[i]);return n===null?void 0:{width:parseInt(n[1],10),height:parseInt(n[2],10)}},w.parseAttrList=function(i){var n,e={},a='"';for(b.lastIndex=0;(n=b.exec(i))!==null;){var s=n[2];s.indexOf(a)===0&&s.lastIndexOf(a)===s.length-1&&(s=s.slice(1,-1)),e[n[1]]=s}return e},w}()},"./src/utils/binary-search.ts":function(se,G,M){"use strict";M.r(G);var v={search:function(C,w){for(var m=0,d=C.length-1,i=null,n=null;m<=d;){i=(m+d)/2|0,n=C[i];var e=w(n);if(e>0)m=i+1;else if(e<0)d=i-1;else return n}return null}};G.default=v},"./src/utils/buffer-helper.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"BufferHelper",function(){return C});var v=M("./src/utils/logger.ts"),b={length:0,start:function(){return 0},end:function(){return 0}},C=function(){function w(){}return w.isBuffered=function(d,i){try{if(d){for(var n=w.getBuffered(d),e=0;e<n.length;e++)if(i>=n.start(e)&&i<=n.end(e))return!0}}catch(a){}return!1},w.bufferInfo=function(d,i,n){try{if(d){var e=w.getBuffered(d),a=[],s;for(s=0;s<e.length;s++)a.push({start:e.start(s),end:e.end(s)});return this.bufferedInfo(a,i,n)}}catch(o){}return{len:0,start:i,end:i,nextStart:void 0}},w.bufferedInfo=function(d,i,n){i=Math.max(0,i),d.sort(function(_,B){var E=_.start-B.start;return E||B.end-_.end});var e=[];if(n)for(var a=0;a<d.length;a++){var s=e.length;if(s){var o=e[s-1].end;d[a].start-o<n?d[a].end>o&&(e[s-1].end=d[a].end):e.push(d[a])}else e.push(d[a])}else e=d;for(var f=0,l,r=i,c=i,A=0;A<e.length;A++){var p=e[A].start,x=e[A].end;if(i+n>=p&&i<x)r=p,c=x,f=c-i;else if(i+n<p){l=p;break}}return{len:f,start:r||0,end:c||0,nextStart:l}},w.getBuffered=function(d){try{return d.buffered}catch(i){return v.logger.log("failed to get media.buffered",i),b}},w}()},"./src/utils/cea-608-parser.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"Row",function(){return c}),M.d(G,"CaptionScreen",function(){return A});var v=M("./src/utils/logger.ts"),b={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},C=function(h){var u=h;return b.hasOwnProperty(h)&&(u=b[h]),String.fromCharCode(u)},w=15,m=100,d={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},i={17:2,18:4,21:6,22:8,23:10,19:13,20:15},n={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},e={25:2,26:4,29:6,30:8,31:10,27:13,28:15},a=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],s;(function(g){g[g.ERROR=0]="ERROR",g[g.TEXT=1]="TEXT",g[g.WARNING=2]="WARNING",g[g.INFO=2]="INFO",g[g.DEBUG=3]="DEBUG",g[g.DATA=3]="DATA"})(s||(s={}));var o=function(){function g(){this.time=null,this.verboseLevel=s.ERROR}var h=g.prototype;return h.log=function(S,O){this.verboseLevel>=S&&v.logger.log(this.time+" ["+S+"] "+O)},g}(),f=function(h){for(var u=[],S=0;S<h.length;S++)u.push(h[S].toString(16));return u},l=function(){function g(u,S,O,T,D){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=u||"white",this.underline=S||!1,this.italics=O||!1,this.background=T||"black",this.flash=D||!1}var h=g.prototype;return h.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},h.setStyles=function(S){for(var O=["foreground","underline","italics","background","flash"],T=0;T<O.length;T++){var D=O[T];S.hasOwnProperty(D)&&(this[D]=S[D])}},h.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},h.equals=function(S){return this.foreground===S.foreground&&this.underline===S.underline&&this.italics===S.italics&&this.background===S.background&&this.flash===S.flash},h.copy=function(S){this.foreground=S.foreground,this.underline=S.underline,this.italics=S.italics,this.background=S.background,this.flash=S.flash},h.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},g}(),r=function(){function g(u,S,O,T,D,I){this.uchar=void 0,this.penState=void 0,this.uchar=u||" ",this.penState=new l(S,O,T,D,I)}var h=g.prototype;return h.reset=function(){this.uchar=" ",this.penState.reset()},h.setChar=function(S,O){this.uchar=S,this.penState.copy(O)},h.setPenState=function(S){this.penState.copy(S)},h.equals=function(S){return this.uchar===S.uchar&&this.penState.equals(S.penState)},h.copy=function(S){this.uchar=S.uchar,this.penState.copy(S.penState)},h.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},g}(),c=function(){function g(u){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var S=0;S<m;S++)this.chars.push(new r);this.logger=u,this.pos=0,this.currPenState=new l}var h=g.prototype;return h.equals=function(S){for(var O=!0,T=0;T<m;T++)if(!this.chars[T].equals(S.chars[T])){O=!1;break}return O},h.copy=function(S){for(var O=0;O<m;O++)this.chars[O].copy(S.chars[O])},h.isEmpty=function(){for(var S=!0,O=0;O<m;O++)if(!this.chars[O].isEmpty()){S=!1;break}return S},h.setCursor=function(S){this.pos!==S&&(this.pos=S),this.pos<0?(this.logger.log(s.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>m&&(this.logger.log(s.DEBUG,"Too large cursor position "+this.pos),this.pos=m)},h.moveCursor=function(S){var O=this.pos+S;if(S>1)for(var T=this.pos+1;T<O+1;T++)this.chars[T].setPenState(this.currPenState);this.setCursor(O)},h.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},h.insertChar=function(S){S>=144&&this.backSpace();var O=C(S);if(this.pos>=m){this.logger.log(s.ERROR,"Cannot insert "+S.toString(16)+" ("+O+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(O,this.currPenState),this.moveCursor(1)},h.clearFromPos=function(S){var O;for(O=S;O<m;O++)this.chars[O].reset()},h.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},h.clearToEndOfRow=function(){this.clearFromPos(this.pos)},h.getTextString=function(){for(var S=[],O=!0,T=0;T<m;T++){var D=this.chars[T].uchar;D!==" "&&(O=!1),S.push(D)}return O?"":S.join("")},h.setPenStyles=function(S){this.currPenState.setStyles(S);var O=this.chars[this.pos];O.setPenState(this.currPenState)},g}(),A=function(){function g(u){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var S=0;S<w;S++)this.rows.push(new c(u));this.logger=u,this.currRow=w-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var h=g.prototype;return h.reset=function(){for(var S=0;S<w;S++)this.rows[S].clear();this.currRow=w-1},h.equals=function(S){for(var O=!0,T=0;T<w;T++)if(!this.rows[T].equals(S.rows[T])){O=!1;break}return O},h.copy=function(S){for(var O=0;O<w;O++)this.rows[O].copy(S.rows[O])},h.isEmpty=function(){for(var S=!0,O=0;O<w;O++)if(!this.rows[O].isEmpty()){S=!1;break}return S},h.backSpace=function(){var S=this.rows[this.currRow];S.backSpace()},h.clearToEndOfRow=function(){var S=this.rows[this.currRow];S.clearToEndOfRow()},h.insertChar=function(S){var O=this.rows[this.currRow];O.insertChar(S)},h.setPen=function(S){var O=this.rows[this.currRow];O.setPenStyles(S)},h.moveCursor=function(S){var O=this.rows[this.currRow];O.moveCursor(S)},h.setCursor=function(S){this.logger.log(s.INFO,"setCursor: "+S);var O=this.rows[this.currRow];O.setCursor(S)},h.setPAC=function(S){this.logger.log(s.INFO,"pacData = "+JSON.stringify(S));var O=S.row-1;if(this.nrRollUpRows&&O<this.nrRollUpRows-1&&(O=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==O){for(var T=0;T<w;T++)this.rows[T].clear();var D=this.currRow+1-this.nrRollUpRows,I=this.lastOutputScreen;if(I){var k=I.rows[D].cueStartTime,F=this.logger.time;if(k&&F!==null&&k<F)for(var X=0;X<this.nrRollUpRows;X++)this.rows[O-this.nrRollUpRows+X+1].copy(I.rows[D+X])}}this.currRow=O;var U=this.rows[this.currRow];if(S.indent!==null){var K=S.indent,V=Math.max(K-1,0);U.setCursor(S.indent),S.color=U.chars[V].penState.foreground}var N={foreground:S.color,underline:S.underline,italics:S.italics,background:"black",flash:!1};this.setPen(N)},h.setBkgData=function(S){this.logger.log(s.INFO,"bkgData = "+JSON.stringify(S)),this.backSpace(),this.setPen(S),this.insertChar(32)},h.setRollUpRows=function(S){this.nrRollUpRows=S},h.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(s.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(s.TEXT,this.getDisplayText());var S=this.currRow+1-this.nrRollUpRows,O=this.rows.splice(S,1)[0];O.clear(),this.rows.splice(this.currRow,0,O),this.logger.log(s.INFO,"Rolling up")},h.getDisplayText=function(S){S=S||!1;for(var O=[],T="",D=-1,I=0;I<w;I++){var k=this.rows[I].getTextString();k&&(D=I+1,S?O.push("Row "+D+": '"+k+"'"):O.push(k.trim()))}return O.length>0&&(S?T="["+O.join(" | ")+"]":T=O.join(`
`)),T},h.getTextAndFormat=function(){return this.rows},g}(),p=function(){function g(u,S,O){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=u,this.outputFilter=S,this.mode=null,this.verbose=0,this.displayedMemory=new A(O),this.nonDisplayedMemory=new A(O),this.lastOutputScreen=new A(O),this.currRollUpRow=this.displayedMemory.rows[w-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=O}var h=g.prototype;return h.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[w-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},h.getHandler=function(){return this.outputFilter},h.setHandler=function(S){this.outputFilter=S},h.setPAC=function(S){this.writeScreen.setPAC(S)},h.setBkgData=function(S){this.writeScreen.setBkgData(S)},h.setMode=function(S){if(S===this.mode)return;this.mode=S,this.logger.log(s.INFO,"MODE="+S),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=S},h.insertChars=function(S){for(var O=0;O<S.length;O++)this.writeScreen.insertChar(S[O]);var T=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(s.INFO,T+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(s.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},h.ccRCL=function(){this.logger.log(s.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},h.ccBS=function(){if(this.logger.log(s.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},h.ccAOF=function(){},h.ccAON=function(){},h.ccDER=function(){this.logger.log(s.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},h.ccRU=function(S){this.logger.log(s.INFO,"RU("+S+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(S)},h.ccFON=function(){this.logger.log(s.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},h.ccRDC=function(){this.logger.log(s.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},h.ccTR=function(){this.logger.log(s.INFO,"TR"),this.setMode("MODE_TEXT")},h.ccRTD=function(){this.logger.log(s.INFO,"RTD"),this.setMode("MODE_TEXT")},h.ccEDM=function(){this.logger.log(s.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},h.ccCR=function(){this.logger.log(s.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},h.ccENM=function(){this.logger.log(s.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},h.ccEOC=function(){if(this.logger.log(s.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var S=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=S,this.writeScreen=this.nonDisplayedMemory,this.logger.log(s.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},h.ccTO=function(S){this.logger.log(s.INFO,"TO("+S+") - Tab Offset"),this.writeScreen.moveCursor(S)},h.ccMIDROW=function(S){var O={flash:!1};if(O.underline=S%2===1,O.italics=S>=46,O.italics)O.foreground="white";else{var T=Math.floor(S/2)-16,D=["white","green","blue","cyan","red","yellow","magenta"];O.foreground=D[T]}this.logger.log(s.INFO,"MIDROW: "+JSON.stringify(O)),this.writeScreen.setPen(O)},h.outputDataUpdate=function(S){S===void 0&&(S=!1);var O=this.logger.time;if(O===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=O:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,O,this.lastOutputScreen),S&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:O),this.lastOutputScreen.copy(this.displayedMemory))},h.cueSplitAtTime=function(S){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,S,this.displayedMemory),this.cueStartTime=S))},g}(),x=function(){function g(u,S,O){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var T=new o;this.channels=[null,new p(u,S,T),new p(u+1,O,T)],this.cmdHistory=E(),this.logger=T}var h=g.prototype;return h.getHandler=function(S){return this.channels[S].getHandler()},h.setHandler=function(S,O){this.channels[S].setHandler(O)},h.addData=function(S,O){var T,D,I,k=!1;this.logger.time=S;for(var F=0;F<O.length;F+=2){if(D=O[F]&127,I=O[F+1]&127,D===0&&I===0)continue;if(this.logger.log(s.DATA,"["+f([O[F],O[F+1]])+"] -> ("+f([D,I])+")"),T=this.parseCmd(D,I),T||(T=this.parseMidrow(D,I)),T||(T=this.parsePAC(D,I)),T||(T=this.parseBackgroundAttributes(D,I)),!T&&(k=this.parseChars(D,I),k)){var X=this.currentChannel;if(X&&X>0){var U=this.channels[X];U.insertChars(k)}else this.logger.log(s.WARNING,"No channel found yet. TEXT-MODE?")}!T&&!k&&this.logger.log(s.WARNING,"Couldn't parse cleaned data "+f([D,I])+" orig: "+f([O[F],O[F+1]]))}},h.parseCmd=function(S,O){var T=this.cmdHistory,D=(S===20||S===28||S===21||S===29)&&O>=32&&O<=47,I=(S===23||S===31)&&O>=33&&O<=35;if(!(D||I))return!1;if(B(S,O,T))return _(null,null,T),this.logger.log(s.DEBUG,"Repeated command ("+f([S,O])+") is dropped"),!0;var k=S===20||S===21||S===23?1:2,F=this.channels[k];return S===20||S===21||S===28||S===29?O===32?F.ccRCL():O===33?F.ccBS():O===34?F.ccAOF():O===35?F.ccAON():O===36?F.ccDER():O===37?F.ccRU(2):O===38?F.ccRU(3):O===39?F.ccRU(4):O===40?F.ccFON():O===41?F.ccRDC():O===42?F.ccTR():O===43?F.ccRTD():O===44?F.ccEDM():O===45?F.ccCR():O===46?F.ccENM():O===47&&F.ccEOC():F.ccTO(O-32),_(S,O,T),this.currentChannel=k,!0},h.parseMidrow=function(S,O){var T=0;if((S===17||S===25)&&O>=32&&O<=47){if(S===17?T=1:T=2,T!==this.currentChannel)return this.logger.log(s.ERROR,"Mismatch channel in midrow parsing"),!1;var D=this.channels[T];return D?(D.ccMIDROW(O),this.logger.log(s.DEBUG,"MIDROW ("+f([S,O])+")"),!0):!1}return!1},h.parsePAC=function(S,O){var T,D=this.cmdHistory,I=(S>=17&&S<=23||S>=25&&S<=31)&&O>=64&&O<=127,k=(S===16||S===24)&&O>=64&&O<=95;if(!(I||k))return!1;if(B(S,O,D))return _(null,null,D),!0;var F=S<=23?1:2;O>=64&&O<=95?T=F===1?d[S]:n[S]:T=F===1?i[S]:e[S];var X=this.channels[F];return X?(X.setPAC(this.interpretPAC(T,O)),_(S,O,D),this.currentChannel=F,!0):!1},h.interpretPAC=function(S,O){var T,D={color:null,italics:!1,indent:null,underline:!1,row:S};return O>95?T=O-96:T=O-64,D.underline=(T&1)===1,T<=13?D.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(T/2)]:T<=15?(D.italics=!0,D.color="white"):D.indent=Math.floor((T-16)/2)*4,D},h.parseChars=function(S,O){var T,D=null,I=null;if(S>=25?(T=2,I=S-8):(T=1,I=S),I>=17&&I<=19){var k;I===17?k=O+80:I===18?k=O+112:k=O+144,this.logger.log(s.INFO,"Special char '"+C(k)+"' in channel "+T),D=[k]}else S>=32&&S<=127&&(D=O===0?[S]:[S,O]);if(D){var F=f(D);this.logger.log(s.DEBUG,"Char codes = "+F.join(",")),_(S,O,this.cmdHistory)}return D},h.parseBackgroundAttributes=function(S,O){var T=(S===16||S===24)&&O>=32&&O<=47,D=(S===23||S===31)&&O>=45&&O<=47;if(!(T||D))return!1;var I,k={};S===16||S===24?(I=Math.floor((O-32)/2),k.background=a[I],O%2===1&&(k.background=k.background+"_semi")):O===45?k.background="transparent":(k.foreground="black",O===47&&(k.underline=!0));var F=S<=23?1:2,X=this.channels[F];return X.setBkgData(k),_(S,O,this.cmdHistory),!0},h.reset=function(){for(var S=0;S<Object.keys(this.channels).length;S++){var O=this.channels[S];O&&O.reset()}this.cmdHistory=E()},h.cueSplitAtTime=function(S){for(var O=0;O<this.channels.length;O++){var T=this.channels[O];T&&T.cueSplitAtTime(S)}},g}();function _(g,h,u){u.a=g,u.b=h}function B(g,h,u){return u.a===g&&u.b===h}function E(){return{a:null,b:null}}G.default=x},"./src/utils/codecs.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"isCodecType",function(){return b}),M.d(G,"isCodecSupportedInMp4",function(){return C});var v={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}};function b(w,m){var d=v[m];return!!d&&d[w.slice(0,4)]===!0}function C(w,m){return MediaSource.isTypeSupported((m||"video")+'/mp4;codecs="'+w+'"')}},"./src/utils/cues.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/utils/vttparser.ts"),b=M("./src/utils/webvtt-parser.ts"),C=M("./src/utils/texttrack-utils.ts"),w=/\s/,m={newCue:function(i,n,e,a){for(var s=[],o,f,l,r,c,A=self.VTTCue||self.TextTrackCue,p=0;p<a.rows.length;p++)if(o=a.rows[p],l=!0,r=0,c="",!o.isEmpty()){for(var x=0;x<o.chars.length;x++)w.test(o.chars[x].uchar)&&l?r++:(c+=o.chars[x].uchar,l=!1);o.cueStartTime=n,n===e&&(e+=1e-4),r>=16?r--:r++;var _=Object(v.fixLineBreaks)(c.trim()),B=Object(b.generateCueId)(n,e,_);(!i||!i.cues||!i.cues.getCueById(B))&&(f=new A(n,e,_),f.id=B,f.line=p+1,f.align="left",f.position=10+Math.min(80,Math.floor(r*8/32)*10),s.push(f))}return i&&s.length&&(s.sort(function(E,g){return E.line==="auto"||g.line==="auto"?0:E.line>8&&g.line>8?g.line-E.line:E.line-g.line}),s.forEach(function(E){return Object(C.addCueToTrack)(i,E)})),s}};G.default=m},"./src/utils/discontinuities.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"findFirstFragWithCC",function(){return w}),M.d(G,"shouldAlignOnDiscontinuities",function(){return m}),M.d(G,"findDiscontinuousReferenceFrag",function(){return d}),M.d(G,"adjustSlidingStart",function(){return n}),M.d(G,"alignStream",function(){return e}),M.d(G,"alignPDT",function(){return s}),M.d(G,"alignFragmentByPDTDelta",function(){return o}),M.d(G,"alignMediaPlaylistByPDT",function(){return f});var v=M("./src/polyfills/number.ts"),b=M("./src/utils/logger.ts"),C=M("./src/controller/level-helper.ts");function w(l,r){for(var c=null,A=0,p=l.length;A<p;A++){var x=l[A];if(x&&x.cc===r){c=x;break}}return c}function m(l,r,c){return!!(r.details&&(c.endCC>c.startCC||l&&l.cc<c.startCC))}function d(l,r){var c=l.fragments,A=r.fragments;if(!A.length||!c.length){b.logger.log("No fragments to align");return}var p=w(c,A[0].cc);if(!p||p&&!p.startPTS){b.logger.log("No frag in previous level to align on");return}return p}function i(l,r){if(l){var c=l.start+r;l.start=l.startPTS=c,l.endPTS=c+l.duration}}function n(l,r){for(var c=r.fragments,A=0,p=c.length;A<p;A++)i(c[A],l);r.fragmentHint&&i(r.fragmentHint,l),r.alignedSliding=!0}function e(l,r,c){if(!r)return;a(l,c,r),!c.alignedSliding&&r.details&&s(c,r.details),!c.alignedSliding&&r.details&&!c.skippedSegments&&Object(C.adjustSliding)(r.details,c)}function a(l,r,c){if(m(l,c,r)){var A=d(c.details,r);A&&Object(v.isFiniteNumber)(A.start)&&(b.logger.log("Adjusting PTS using last level due to CC increase within current level "+r.url),n(A.start,r))}}function s(l,r){if(!r.fragments.length||!l.hasProgramDateTime||!r.hasProgramDateTime)return;var c=r.fragments[0].programDateTime,A=l.fragments[0].programDateTime,p=(A-c)/1e3+r.fragments[0].start;p&&Object(v.isFiniteNumber)(p)&&(b.logger.log("Adjusting PTS using programDateTime delta "+(A-c)+"ms, sliding:"+p.toFixed(3)+" "+l.url+" "),n(p,l))}function o(l,r){var c=l.programDateTime;if(!c)return;var A=(c-r)/1e3;l.start=l.startPTS=A,l.endPTS=A+l.duration}function f(l,r){if(!r.fragments.length||!l.hasProgramDateTime||!r.hasProgramDateTime)return;var c=r.fragments[0].programDateTime,A=r.fragments[0].start,p=c-A*1e3;l.fragments.forEach(function(x){o(x,p)}),l.fragmentHint&&o(l.fragmentHint,p),l.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/utils/ewma.ts"),b=function(){function C(m,d,i){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=i,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new v.default(m),this.fast_=new v.default(d)}var w=C.prototype;return w.update=function(d,i){var n=this.slow_,e=this.fast_;this.slow_.halfLife!==d&&(this.slow_=new v.default(d,n.getEstimate(),n.getTotalWeight())),this.fast_.halfLife!==i&&(this.fast_=new v.default(i,e.getEstimate(),e.getTotalWeight()))},w.sample=function(d,i){d=Math.max(d,this.minDelayMs_);var n=8*i,e=d/1e3,a=n/e;this.fast_.sample(e,a),this.slow_.sample(e,a)},w.canEstimate=function(){var d=this.fast_;return d&&d.getTotalWeight()>=this.minWeight_},w.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},w.destroy=function(){},C}();G.default=b},"./src/utils/ewma.ts":function(se,G,M){"use strict";M.r(G);var v=function(){function b(w,m,d){m===void 0&&(m=0),d===void 0&&(d=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=w,this.alpha_=w?Math.exp(Math.log(.5)/w):0,this.estimate_=m,this.totalWeight_=d}var C=b.prototype;return C.sample=function(m,d){var i=Math.pow(this.alpha_,m);this.estimate_=d*(1-i)+i*this.estimate_,this.totalWeight_+=m},C.getTotalWeight=function(){return this.totalWeight_},C.getEstimate=function(){if(this.alpha_){var m=1-Math.pow(this.alpha_,this.totalWeight_);if(m)return this.estimate_/m}return this.estimate_},b}();G.default=v},"./src/utils/fetch-loader.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"fetchSupported",function(){return o});var v=M("./src/polyfills/number.ts"),b=M("./src/loader/load-stats.ts"),C=M("./src/demux/chunk-cache.ts");function w(A,p){A.prototype=Object.create(p.prototype),A.prototype.constructor=A,e(A,p)}function m(A){var p=typeof Map=="function"?new Map:void 0;return m=function(_){if(_===null||!n(_))return _;if(typeof _!="function")throw new TypeError("Super expression must either be null or a function");if(typeof p!="undefined"){if(p.has(_))return p.get(_);p.set(_,B)}function B(){return d(_,arguments,a(this).constructor)}return B.prototype=Object.create(_.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),e(B,_)},m(A)}function d(A,p,x){return i()?d=Reflect.construct:d=function(B,E,g){var h=[null];h.push.apply(h,E);var u=Function.bind.apply(B,h),S=new u;return g&&e(S,g.prototype),S},d.apply(null,arguments)}function i(){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(A){return!1}}function n(A){return Function.toString.call(A).indexOf("[native code]")!==-1}function e(A,p){return e=Object.setPrototypeOf||function(_,B){return _.__proto__=B,_},e(A,p)}function a(A){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)},a(A)}function s(){return s=Object.assign||function(A){for(var p=1;p<arguments.length;p++){var x=arguments[p];for(var _ in x)Object.prototype.hasOwnProperty.call(x,_)&&(A[_]=x[_])}return A},s.apply(this,arguments)}function o(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(A){}return!1}var f=function(){function A(x){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=x.fetchSetup||r,this.controller=new self.AbortController,this.stats=new b.LoadStats}var p=A.prototype;return p.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},p.abortInternal=function(){var _=this.response;(!_||!_.ok)&&(this.stats.aborted=!0,this.controller.abort())},p.abort=function(){var _;this.abortInternal(),(_=this.callbacks)!==null&&_!==void 0&&_.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},p.load=function(_,B,E){var g=this,h=this.stats;if(h.loading.start)throw new Error("Loader can only be used once.");h.loading.start=self.performance.now();var u=l(_,this.controller.signal),S=E.onProgress,O=_.responseType==="arraybuffer",T=O?"byteLength":"length";this.context=_,this.config=B,this.callbacks=E,this.request=this.fetchSetup(_,u),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){g.abortInternal(),E.onTimeout(h,_,g.response)},B.timeout),self.fetch(this.request).then(function(D){if(g.response=g.loader=D,!D.ok){var I=D.status,k=D.statusText;throw new c(k||"fetch, bad network response",I,D)}return h.loading.first=Math.max(self.performance.now(),h.loading.start),h.total=parseInt(D.headers.get("Content-Length")||"0"),S&&Object(v.isFiniteNumber)(B.highWaterMark)?g.loadProgressively(D,h,_,B.highWaterMark,S):O?D.arrayBuffer():D.text()}).then(function(D){var I=g.response;self.clearTimeout(g.requestTimeout),h.loading.end=Math.max(self.performance.now(),h.loading.first),h.loaded=h.total=D[T];var k={url:I.url,data:D};S&&!Object(v.isFiniteNumber)(B.highWaterMark)&&S(h,_,D,I),E.onSuccess(k,h,_,I)}).catch(function(D){if(self.clearTimeout(g.requestTimeout),h.aborted)return;var I=D.code||0;E.onError({code:I,text:D.message},_,D.details)})},p.getCacheAge=function(){var _=null;if(this.response){var B=this.response.headers.get("age");_=B?parseFloat(B):null}return _},p.loadProgressively=function(_,B,E,g,h){g===void 0&&(g=0);var u=new C.default,S=_.body.getReader(),O=function T(){return S.read().then(function(D){if(D.done)return u.dataLength&&h(B,E,u.flush(),_),Promise.resolve(new ArrayBuffer(0));var I=D.value,k=I.length;return B.loaded+=k,k<g||u.dataLength?(u.push(I),u.dataLength>=g&&h(B,E,u.flush(),_)):h(B,E,I,_),T()}).catch(function(){return Promise.reject()})};return O()},A}();function l(A,p){var x={method:"GET",mode:"cors",credentials:"same-origin",signal:p,headers:new self.Headers(s({},A.headers))};return A.rangeEnd&&x.headers.set("Range","bytes="+A.rangeStart+"-"+String(A.rangeEnd-1)),x}function r(A,p){return new self.Request(A.url,p)}var c=function(A){w(p,A);function p(x,_,B){var E;return E=A.call(this,x)||this,E.code=void 0,E.details=void 0,E.code=_,E.details=B,E}return p}(m(Error));G.default=f},"./src/utils/imsc1-ttml-parser.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"IMSC1_CODEC",function(){return n}),M.d(G,"parseIMSC1",function(){return o});var v=M("./src/utils/mp4-tools.ts"),b=M("./src/utils/vttparser.ts"),C=M("./src/utils/vttcue.ts"),w=M("./src/demux/id3.ts"),m=M("./src/utils/timescale-conversion.ts"),d=M("./src/utils/webvtt-parser.ts");function i(){return i=Object.assign||function(g){for(var h=1;h<arguments.length;h++){var u=arguments[h];for(var S in u)Object.prototype.hasOwnProperty.call(u,S)&&(g[S]=u[S])}return g},i.apply(this,arguments)}var n="stpp.ttml.im1t",e=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,a=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,s={left:"start",center:"center",right:"end",start:"start",end:"end"};function o(g,h,u,S,O){var T=Object(v.findBox)(new Uint8Array(g),["mdat"]);if(T.length===0){O(new Error("Could not parse IMSC1 mdat"));return}var D=T[0],I=Object(w.utf8ArrayToStr)(new Uint8Array(g,D.start,D.end-D.start)),k=Object(m.toTimescaleFromScale)(h,1,u);try{S(f(I,k))}catch(F){O(F)}}function f(g,h){var u=new DOMParser,S=u.parseFromString(g,"text/xml"),O=S.getElementsByTagName("tt")[0];if(!O)throw new Error("Invalid ttml");var T={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},D=Object.keys(T).reduce(function(U,K){return U[K]=O.getAttribute("ttp:"+K)||T[K],U},{}),I=O.getAttribute("xml:space")!=="preserve",k=r(l(O,"styling","style")),F=r(l(O,"layout","region")),X=l(O,"body","[begin]");return[].map.call(X,function(U){var K=c(U,I);if(!K||!U.hasAttribute("begin"))return null;var V=_(U.getAttribute("begin"),D),N=_(U.getAttribute("dur"),D),Q=_(U.getAttribute("end"),D);if(V===null)throw x(U);if(Q===null){if(N===null)throw x(U);Q=V+N}var J=new C.default(V-h,Q-h,K);J.id=Object(d.generateCueId)(J.startTime,J.endTime,J.text);var ne=F[U.getAttribute("region")],ue=k[U.getAttribute("style")];J.position=10,J.size=80;var be=A(ne,ue),de=be.textAlign;if(de){var _e=s[de];_e&&(J.lineAlign=_e),J.align=de}return i(J,be),J}).filter(function(U){return U!==null})}function l(g,h,u){var S=g.getElementsByTagName(h)[0];return S?[].slice.call(S.querySelectorAll(u)):[]}function r(g){return g.reduce(function(h,u){var S=u.getAttribute("xml:id");return S&&(h[S]=u),h},{})}function c(g,h){return[].slice.call(g.childNodes).reduce(function(u,S,O){var T;return S.nodeName==="br"&&O?u+`
`:(T=S.childNodes)!==null&&T!==void 0&&T.length?c(S,h):h?u+S.textContent.trim().replace(/\s+/g," "):u+S.textContent},"")}function A(g,h){var u="http://www.w3.org/ns/ttml#styling",S=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return S.reduce(function(O,T){var D=p(h,u,T)||p(g,u,T);return D&&(O[T]=D),O},{})}function p(g,h,u){return g.hasAttributeNS(h,u)?g.getAttributeNS(h,u):null}function x(g){return new Error("Could not parse ttml timestamp "+g)}function _(g,h){if(!g)return null;var u=Object(b.parseTimeStamp)(g);return u===null&&(e.test(g)?u=B(g,h):a.test(g)&&(u=E(g,h))),u}function B(g,h){var u=e.exec(g),S=(u[4]|0)+(u[5]|0)/h.subFrameRate;return(u[1]|0)*3600+(u[2]|0)*60+(u[3]|0)+S/h.frameRate}function E(g,h){var u=a.exec(g),S=Number(u[1]),O=u[2];switch(O){case"h":return S*3600;case"m":return S*60;case"ms":return S*1e3;case"f":return S/h.frameRate;case"t":return S/h.tickRate}return S}},"./src/utils/logger.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"enableLogs",function(){return d}),M.d(G,"logger",function(){return i});var v=function(){},b={trace:v,debug:v,log:v,warn:v,info:v,error:v},C=b;function w(n){var e=self.console[n];return e?e.bind(self.console,"["+n+"] >"):v}function m(n){for(var e=arguments.length,a=new Array(e>1?e-1:0),s=1;s<e;s++)a[s-1]=arguments[s];a.forEach(function(o){C[o]=n[o]?n[o].bind(n):w(o)})}function d(n){if(self.console&&n===!0||typeof n=="object"){m(n,"debug","log","info","warn","error");try{C.log()}catch(e){C=b}}else C=b}var i=C},"./src/utils/mediakeys-helper.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"KeySystems",function(){return v}),M.d(G,"requestMediaKeySystemAccess",function(){return b});var v;(function(C){C.WIDEVINE="com.widevine.alpha",C.PLAYREADY="com.microsoft.playready"})(v||(v={}));var b=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"getMediaSource",function(){return v});function v(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"bin2str",function(){return m}),M.d(G,"readUint16",function(){return d}),M.d(G,"readUint32",function(){return i}),M.d(G,"writeUint32",function(){return n}),M.d(G,"findBox",function(){return e}),M.d(G,"parseSegmentIndex",function(){return a}),M.d(G,"parseInitSegment",function(){return s}),M.d(G,"getStartDTS",function(){return o}),M.d(G,"getDuration",function(){return f}),M.d(G,"computeRawDurationFromSamples",function(){return l}),M.d(G,"offsetStartDTS",function(){return r}),M.d(G,"segmentValidRange",function(){return c}),M.d(G,"appendUint8Array",function(){return A});var v=M("./src/utils/typed-array.ts"),b=M("./src/loader/fragment.ts"),C=Math.pow(2,32)-1,w=[].push;function m(p){return String.fromCharCode.apply(null,p)}function d(p,x){"data"in p&&(x+=p.start,p=p.data);var _=p[x]<<8|p[x+1];return _<0?65536+_:_}function i(p,x){"data"in p&&(x+=p.start,p=p.data);var _=p[x]<<24|p[x+1]<<16|p[x+2]<<8|p[x+3];return _<0?4294967296+_:_}function n(p,x,_){"data"in p&&(x+=p.start,p=p.data),p[x]=_>>24,p[x+1]=_>>16&255,p[x+2]=_>>8&255,p[x+3]=_&255}function e(p,x){var _=[];if(!x.length)return _;var B,E,g;"data"in p?(B=p.data,E=p.start,g=p.end):(B=p,E=0,g=B.byteLength);for(var h=E;h<g;){var u=i(B,h),S=m(B.subarray(h+4,h+8)),O=u>1?h+u:g;if(S===x[0])if(x.length===1)_.push({data:B,start:h+8,end:O});else{var T=e({data:B,start:h+8,end:O},x.slice(1));T.length&&w.apply(_,T)}h=O}return _}function a(p){var x=e(p,["moov"]),_=x[0],B=_?_.end:null,E=e(p,["sidx"]);if(!E||!E[0])return null;var g=[],h=E[0],u=h.data[0],S=u===0?8:16,O=i(h,S);S+=4;var T=0,D=0;u===0?S+=8:S+=16,S+=2;var I=h.end+D,k=d(h,S);S+=2;for(var F=0;F<k;F++){var X=S,U=i(h,X);X+=4;var K=U&2147483647,V=(U&2147483648)>>>31;if(V===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var N=i(h,X);X+=4,g.push({referenceSize:K,subsegmentDuration:N,info:{duration:N/O,start:I,end:I+K-1}}),I+=K,X+=4,S=X}return{earliestPresentationTime:T,timescale:O,version:u,referencesCount:k,references:g,moovEndOffset:B}}function s(p){for(var x=[],_=e(p,["moov","trak"]),B=0;B<_.length;B++){var E=_[B],g=e(E,["tkhd"])[0];if(g){var h=g.data[g.start],u=h===0?12:20,S=i(g,u),O=e(E,["mdia","mdhd"])[0];if(O){h=O.data[O.start],u=h===0?12:20;var T=i(O,u),D=e(E,["mdia","hdlr"])[0];if(D){var I=m(D.data.subarray(D.start+8,D.start+12)),k={soun:b.ElementaryStreamTypes.AUDIO,vide:b.ElementaryStreamTypes.VIDEO}[I];if(k){var F=e(E,["mdia","minf","stbl","stsd"])[0],X=void 0;F&&(X=m(F.data.subarray(F.start+12,F.start+16))),x[S]={timescale:T,type:k},x[k]={timescale:T,id:S,codec:X}}}}}}var U=e(p,["moov","mvex","trex"]);return U.forEach(function(K){var V=i(K,4),N=x[V];N&&(N.default={duration:i(K,12),flags:i(K,20)})}),x}function o(p,x){return e(x,["moof","traf"]).reduce(function(_,B){var E=e(B,["tfdt"])[0],g=E.data[E.start],h=e(B,["tfhd"]).reduce(function(u,S){var O=i(S,4),T=p[O];if(T){var D=i(E,4);g===1&&(D*=Math.pow(2,32),D+=i(E,8));var I=T.timescale||9e4,k=D/I;if(isFinite(k)&&(u===null||k<u))return k}return u},null);return h!==null&&isFinite(h)&&(_===null||h<_)?h:_},null)||0}function f(p,x){for(var _=0,B=0,E=0,g=e(p,["moof","traf"]),h=0;h<g.length;h++){var u=g[h],S=e(u,["tfhd"])[0],O=i(S,4),T=x[O];if(!T)continue;var D=T.default,I=i(S,0)|(D==null?void 0:D.flags),k=D==null?void 0:D.duration;I&8&&(I&2?k=i(S,12):k=i(S,8));for(var F=T.timescale||9e4,X=e(u,["trun"]),U=0;U<X.length;U++){if(k){var K=i(X[U],4);_=k*K}else _=l(X[U]);T.type===b.ElementaryStreamTypes.VIDEO?B+=_/F:T.type===b.ElementaryStreamTypes.AUDIO&&(E+=_/F)}}if(B===0&&E===0){var V=a(p);if(V!=null&&V.references)return V.references.reduce(function(N,Q){return N+Q.info.duration||0},0)}return B||E}function l(p){var x=i(p,0),_=8;x&1&&(_+=4),x&4&&(_+=4);for(var B=0,E=i(p,4),g=0;g<E;g++){if(x&256){var h=i(p,_);B+=h,_+=4}x&512&&(_+=4),x&1024&&(_+=4),x&2048&&(_+=4)}return B}function r(p,x,_){e(x,["moof","traf"]).forEach(function(B){e(B,["tfhd"]).forEach(function(E){var g=i(E,4),h=p[g];if(!h)return;var u=h.timescale||9e4;e(B,["tfdt"]).forEach(function(S){var O=S.data[S.start],T=i(S,4);if(O===0)n(S,4,T-_*u);else{T*=Math.pow(2,32),T+=i(S,8),T-=_*u,T=Math.max(T,0);var D=Math.floor(T/(C+1)),I=Math.floor(T%(C+1));n(S,4,D),n(S,8,I)}})})})}function c(p){var x={valid:null,remainder:null},_=e(p,["moof"]);if(_){if(_.length<2)return x.remainder=p,x}else return x;var B=_[_.length-1];return x.valid=Object(v.sliceUint8)(p,0,B.start-8),x.remainder=Object(v.sliceUint8)(p,B.start-8),x}function A(p,x){var _=new Uint8Array(p.length+x.length);return _.set(p),_.set(x,p.length),_}},"./src/utils/output-filter.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"default",function(){return v});var v=function(){function b(w,m){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=w,this.trackName=m}var C=b.prototype;return C.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},C.newCue=function(m,d,i){(this.startTime===null||this.startTime>m)&&(this.startTime=m),this.endTime=d,this.screen=i,this.timelineController.createCaptionsTrack(this.trackName)},C.reset=function(){this.cueRanges=[]},b}()},"./src/utils/texttrack-utils.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"sendAddTrackEvent",function(){return b}),M.d(G,"addCueToTrack",function(){return C}),M.d(G,"clearCurrentCues",function(){return w}),M.d(G,"removeCuesInRange",function(){return m}),M.d(G,"getCuesInRange",function(){return i});var v=M("./src/utils/logger.ts");function b(n,e){var a;try{a=new Event("addtrack")}catch(s){a=document.createEvent("Event"),a.initEvent("addtrack",!1,!1)}a.track=n,e.dispatchEvent(a)}function C(n,e){var a=n.mode;if(a==="disabled"&&(n.mode="hidden"),n.cues&&!n.cues.getCueById(e.id))try{if(n.addCue(e),!n.cues.getCueById(e.id))throw new Error("addCue is failed for: "+e)}catch(o){v.logger.debug("[texttrack-utils]: "+o);var s=new self.TextTrackCue(e.startTime,e.endTime,e.text);s.id=e.id,n.addCue(s)}a==="disabled"&&(n.mode=a)}function w(n){var e=n.mode;if(e==="disabled"&&(n.mode="hidden"),n.cues)for(var a=n.cues.length;a--;)n.removeCue(n.cues[a]);e==="disabled"&&(n.mode=e)}function m(n,e,a){var s=n.mode;if(s==="disabled"&&(n.mode="hidden"),n.cues&&n.cues.length>0)for(var o=i(n.cues,e,a),f=0;f<o.length;f++)n.removeCue(o[f]);s==="disabled"&&(n.mode=s)}function d(n,e){if(e<n[0].startTime)return 0;var a=n.length-1;if(e>n[a].endTime)return-1;for(var s=0,o=a;s<=o;){var f=Math.floor((o+s)/2);if(e<n[f].startTime)o=f-1;else if(e>n[f].startTime&&s<a)s=f+1;else return f}return n[s].startTime-e<e-n[o].startTime?s:o}function i(n,e,a){var s=[],o=d(n,e);if(o>-1)for(var f=o,l=n.length;f<l;f++){var r=n[f];if(r.startTime>=e&&r.endTime<=a)s.push(r);else if(r.startTime>a)return s}return s}},"./src/utils/time-ranges.ts":function(se,G,M){"use strict";M.r(G);var v={toString:function(C){for(var w="",m=C.length,d=0;d<m;d++)w+="["+C.start(d).toFixed(3)+","+C.end(d).toFixed(3)+"]";return w}};G.default=v},"./src/utils/timescale-conversion.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"toTimescaleFromBase",function(){return b}),M.d(G,"toTimescaleFromScale",function(){return C}),M.d(G,"toMsFromMpegTsClock",function(){return w}),M.d(G,"toMpegTsClockFromTimescale",function(){return m});var v=9e4;function b(d,i,n,e){n===void 0&&(n=1),e===void 0&&(e=!1);var a=d*i*n;return e?Math.round(a):a}function C(d,i,n,e){return n===void 0&&(n=1),e===void 0&&(e=!1),b(d,i,1/n,e)}function w(d,i){return i===void 0&&(i=!1),b(d,1e3,1/v,i)}function m(d,i){return i===void 0&&(i=1),b(d,v,1/i)}},"./src/utils/typed-array.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"sliceUint8",function(){return v});function v(b,C,w){return Uint8Array.prototype.slice?b.slice(C,w):new Uint8Array(Array.prototype.slice.call(b,C,w))}},"./src/utils/vttcue.ts":function(se,G,M){"use strict";M.r(G),G.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var v=["","lr","rl"],b=["start","middle","end","left","right"];function C(n,e){if(typeof e!="string")return!1;if(!Array.isArray(n))return!1;var a=e.toLowerCase();return~n.indexOf(a)?a:!1}function w(n){return C(v,n)}function m(n){return C(b,n)}function d(n){for(var e=arguments.length,a=new Array(e>1?e-1:0),s=1;s<e;s++)a[s-1]=arguments[s];for(var o=1;o<arguments.length;o++){var f=arguments[o];for(var l in f)n[l]=f[l]}return n}function i(n,e,a){var s=this,o={enumerable:!0};s.hasBeenReset=!1;var f="",l=!1,r=n,c=e,A=a,p=null,x="",_=!0,B="auto",E="start",g=50,h="middle",u=50,S="middle";Object.defineProperty(s,"id",d({},o,{get:function(){return f},set:function(T){f=""+T}})),Object.defineProperty(s,"pauseOnExit",d({},o,{get:function(){return l},set:function(T){l=!!T}})),Object.defineProperty(s,"startTime",d({},o,{get:function(){return r},set:function(T){if(typeof T!="number")throw new TypeError("Start time must be set to a number.");r=T,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",d({},o,{get:function(){return c},set:function(T){if(typeof T!="number")throw new TypeError("End time must be set to a number.");c=T,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",d({},o,{get:function(){return A},set:function(T){A=""+T,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",d({},o,{get:function(){return p},set:function(T){p=T,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",d({},o,{get:function(){return x},set:function(T){var D=w(T);if(D===!1)throw new SyntaxError("An invalid or illegal string was specified.");x=D,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",d({},o,{get:function(){return _},set:function(T){_=!!T,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",d({},o,{get:function(){return B},set:function(T){if(typeof T!="number"&&T!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");B=T,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",d({},o,{get:function(){return E},set:function(T){var D=m(T);if(!D)throw new SyntaxError("An invalid or illegal string was specified.");E=D,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",d({},o,{get:function(){return g},set:function(T){if(T<0||T>100)throw new Error("Position must be between 0 and 100.");g=T,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",d({},o,{get:function(){return h},set:function(T){var D=m(T);if(!D)throw new SyntaxError("An invalid or illegal string was specified.");h=D,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",d({},o,{get:function(){return u},set:function(T){if(T<0||T>100)throw new Error("Size must be between 0 and 100.");u=T,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",d({},o,{get:function(){return S},set:function(T){var D=m(T);if(!D)throw new SyntaxError("An invalid or illegal string was specified.");S=D,this.hasBeenReset=!0}})),s.displayState=void 0}return i.prototype.getCueAsHTML=function(){var n=self.WebVTT;return n.convertCueToDOMTree(self,this.text)},i}()},"./src/utils/vttparser.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"parseTimeStamp",function(){return C}),M.d(G,"fixLineBreaks",function(){return e}),M.d(G,"VTTParser",function(){return a});var v=M("./src/utils/vttcue.ts"),b=function(){function s(){}var o=s.prototype;return o.decode=function(l,r){if(!l)return"";if(typeof l!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(l))},s}();function C(s){function o(l,r,c,A){return(l|0)*3600+(r|0)*60+(c|0)+parseFloat(A||0)}var f=s.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return f?parseFloat(f[2])>59?o(f[2],f[3],0,f[4]):o(f[1],f[2],f[3],f[4]):null}var w=function(){function s(){this.values=Object.create(null)}var o=s.prototype;return o.set=function(l,r){!this.get(l)&&r!==""&&(this.values[l]=r)},o.get=function(l,r,c){return c?this.has(l)?this.values[l]:r[c]:this.has(l)?this.values[l]:r},o.has=function(l){return l in this.values},o.alt=function(l,r,c){for(var A=0;A<c.length;++A)if(r===c[A]){this.set(l,r);break}},o.integer=function(l,r){/^-?\d+$/.test(r)&&this.set(l,parseInt(r,10))},o.percent=function(l,r){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(r)){var c=parseFloat(r);if(c>=0&&c<=100)return this.set(l,c),!0}return!1},s}();function m(s,o,f,l){var r=l?s.split(l):[s];for(var c in r){if(typeof r[c]!="string")continue;var A=r[c].split(f);if(A.length!==2)continue;var p=A[0],x=A[1];o(p,x)}}var d=new v.default(0,0,""),i=d.align==="middle"?"middle":"center";function n(s,o,f){var l=s;function r(){var p=C(s);if(p===null)throw new Error("Malformed timestamp: "+l);return s=s.replace(/^[^\sa-zA-Z-]+/,""),p}function c(p,x){var _=new w;m(p,function(g,h){var u;switch(g){case"region":for(var S=f.length-1;S>=0;S--)if(f[S].id===h){_.set(g,f[S].region);break}break;case"vertical":_.alt(g,h,["rl","lr"]);break;case"line":u=h.split(","),_.integer(g,u[0]),_.percent(g,u[0])&&_.set("snapToLines",!1),_.alt(g,u[0],["auto"]),u.length===2&&_.alt("lineAlign",u[1],["start",i,"end"]);break;case"position":u=h.split(","),_.percent(g,u[0]),u.length===2&&_.alt("positionAlign",u[1],["start",i,"end","line-left","line-right","auto"]);break;case"size":_.percent(g,h);break;case"align":_.alt(g,h,["start",i,"end","left","right"]);break}},/:/,/\s/),x.region=_.get("region",null),x.vertical=_.get("vertical","");var B=_.get("line","auto");B==="auto"&&d.line===-1&&(B=-1),x.line=B,x.lineAlign=_.get("lineAlign","start"),x.snapToLines=_.get("snapToLines",!0),x.size=_.get("size",100),x.align=_.get("align",i);var E=_.get("position","auto");E==="auto"&&d.position===50&&(E=x.align==="start"||x.align==="left"?0:x.align==="end"||x.align==="right"?100:50),x.position=E}function A(){s=s.replace(/^\s+/,"")}if(A(),o.startTime=r(),A(),s.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+l);s=s.substr(3),A(),o.endTime=r(),A(),c(s,o)}function e(s){return s.replace(/<br(?: \/)?>/gi,`
`)}var a=function(){function s(){this.state="INITIAL",this.buffer="",this.decoder=new b,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var o=s.prototype;return o.parse=function(l){var r=this;l&&(r.buffer+=r.decoder.decode(l,{stream:!0}));function c(){var E=r.buffer,g=0;for(E=e(E);g<E.length&&E[g]!=="\r"&&E[g]!==`
`;)++g;var h=E.substr(0,g);return E[g]==="\r"&&++g,E[g]===`
`&&++g,r.buffer=E.substr(g),h}function A(E){m(E,function(g,h){},/:/)}try{var p="";if(r.state==="INITIAL"){if(!/\r\n|\n/.test(r.buffer))return this;p=c();var x=p.match(/^()?WEBVTT([ \t].*)?$/);if(!x||!x[0])throw new Error("Malformed WebVTT signature.");r.state="HEADER"}for(var _=!1;r.buffer;){if(!/\r\n|\n/.test(r.buffer))return this;_?_=!1:p=c();switch(r.state){case"HEADER":/:/.test(p)?A(p):p||(r.state="ID");continue;case"NOTE":p||(r.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(p)){r.state="NOTE";break}if(!p)continue;if(r.cue=new v.default(0,0,""),r.state="CUE",p.indexOf("-->")===-1){r.cue.id=p;continue}case"CUE":if(!r.cue){r.state="BADCUE";continue}try{n(p,r.cue,r.regionList)}catch(E){r.cue=null,r.state="BADCUE";continue}r.state="CUETEXT";continue;case"CUETEXT":{var B=p.indexOf("-->")!==-1;if(!p||B&&(_=!0)){r.oncue&&r.cue&&r.oncue(r.cue),r.cue=null,r.state="ID";continue}if(r.cue===null)continue;r.cue.text&&(r.cue.text+=`
`),r.cue.text+=p}continue;case"BADCUE":p||(r.state="ID")}}}catch(E){r.state==="CUETEXT"&&r.cue&&r.oncue&&r.oncue(r.cue),r.cue=null,r.state=r.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},o.flush=function(){var l=this;try{if((l.cue||l.state==="HEADER")&&(l.buffer+=`
`,l.parse()),l.state==="INITIAL"||l.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(r){l.onparsingerror&&l.onparsingerror(r)}return l.onflush&&l.onflush(),this},s}()},"./src/utils/webvtt-parser.ts":function(se,G,M){"use strict";M.r(G),M.d(G,"generateCueId",function(){return a}),M.d(G,"parseWebVTT",function(){return o});var v=M("./src/polyfills/number.ts"),b=M("./src/utils/vttparser.ts"),C=M("./src/demux/id3.ts"),w=M("./src/utils/timescale-conversion.ts"),m=M("./src/remux/mp4-remuxer.ts"),d=/\r\n|\n\r|\n|\r/g,i=function(l,r,c){return c===void 0&&(c=0),l.substr(c,r.length)===r},n=function(l){var r=parseInt(l.substr(-3)),c=parseInt(l.substr(-6,2)),A=parseInt(l.substr(-9,2)),p=l.length>9?parseInt(l.substr(0,l.indexOf(":"))):0;if(!Object(v.isFiniteNumber)(r)||!Object(v.isFiniteNumber)(c)||!Object(v.isFiniteNumber)(A)||!Object(v.isFiniteNumber)(p))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+l);return r+=1e3*c,r+=60*1e3*A,r+=60*60*1e3*p,r},e=function(l){for(var r=5381,c=l.length;c;)r=r*33^l.charCodeAt(--c);return(r>>>0).toString()};function a(f,l,r){return e(f.toString())+e(l.toString())+e(r)}var s=function(l,r,c){var A=l[r],p=l[A.prevCC];if(!p||!p.new&&A.new){l.ccOffset=l.presentationOffset=A.start,A.new=!1;return}for(;(x=p)!==null&&x!==void 0&&x.new;){var x;l.ccOffset+=A.start-p.start,A.new=!1,A=p,p=l[A.prevCC]}l.presentationOffset=c};function o(f,l,r,c,A,p,x,_){var B=new b.VTTParser,E=Object(C.utf8ArrayToStr)(new Uint8Array(f)).trim().replace(d,`
`).split(`
`),g=[],h=Object(w.toMpegTsClockFromTimescale)(l,r),u="00:00.000",S=0,O=0,T,D=!0,I=!1;B.oncue=function(k){var F=c[A],X=c.ccOffset,U=(S-h)/9e4;if(F!=null&&F.new&&(O!==void 0?X=c.ccOffset=F.start:s(c,A,U)),U&&(X=U-c.presentationOffset),I){var K=k.endTime-k.startTime,V=Object(m.normalizePts)((k.startTime+X-O)*9e4,p*9e4)/9e4;k.startTime=V,k.endTime=V+K}var N=k.text.trim();k.text=decodeURIComponent(encodeURIComponent(N)),k.id||(k.id=a(k.startTime,k.endTime,N)),k.endTime>0&&g.push(k)},B.onparsingerror=function(k){T=k},B.onflush=function(){if(T){_(T);return}x(g)},E.forEach(function(k){if(D)if(i(k,"X-TIMESTAMP-MAP=")){D=!1,I=!0,k.substr(16).split(",").forEach(function(F){i(F,"LOCAL:")?u=F.substr(6):i(F,"MPEGTS:")&&(S=parseInt(F.substr(7)))});try{O=n(u)/1e3}catch(F){I=!1,T=F}return}else k===""&&(D=!1);B.parse(k+`
`)}),B.flush()}},"./src/utils/xhr-loader.ts":function(se,G,M){"use strict";M.r(G);var v=M("./src/utils/logger.ts"),b=M("./src/loader/load-stats.ts"),C=/^age:\s*[\d.]+\s*$/m,w=function(){function m(i){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=i?i.xhrSetup:null,this.stats=new b.LoadStats,this.retryDelay=0}var d=m.prototype;return d.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},d.abortInternal=function(){var n=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),n&&(n.onreadystatechange=null,n.onprogress=null,n.readyState!==4&&(this.stats.aborted=!0,n.abort()))},d.abort=function(){var n;this.abortInternal(),(n=this.callbacks)!==null&&n!==void 0&&n.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},d.load=function(n,e,a){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=n,this.config=e,this.callbacks=a,this.retryDelay=e.retryDelay,this.loadInternal()},d.loadInternal=function(){var n=this.config,e=this.context;if(!n)return;var a=this.loader=new self.XMLHttpRequest,s=this.stats;s.loading.first=0,s.loaded=0;var o=this.xhrSetup;try{if(o)try{o(a,e.url)}catch(r){a.open("GET",e.url,!0),o(a,e.url)}a.readyState||a.open("GET",e.url,!0);var f=this.context.headers;if(f)for(var l in f)a.setRequestHeader(l,f[l])}catch(r){this.callbacks.onError({code:a.status,text:r.message},e,a);return}e.rangeEnd&&a.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),a.onreadystatechange=this.readystatechange.bind(this),a.onprogress=this.loadprogress.bind(this),a.responseType=e.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),a.send()},d.readystatechange=function(){var n=this.context,e=this.loader,a=this.stats;if(!n||!e)return;var s=e.readyState,o=this.config;if(a.aborted)return;if(s>=2)if(self.clearTimeout(this.requestTimeout),a.loading.first===0&&(a.loading.first=Math.max(self.performance.now(),a.loading.start)),s===4){e.onreadystatechange=null,e.onprogress=null;var f=e.status;if(f>=200&&f<300){a.loading.end=Math.max(self.performance.now(),a.loading.first);var l,r;if(n.responseType==="arraybuffer"?(l=e.response,r=l.byteLength):(l=e.responseText,r=l.length),a.loaded=a.total=r,!this.callbacks)return;var c=this.callbacks.onProgress;if(c&&c(a,n,l,e),!this.callbacks)return;var A={url:e.responseURL,data:l};this.callbacks.onSuccess(A,a,n,e)}else a.retry>=o.maxRetry||f>=400&&f<499?(v.logger.error(f+" while loading "+n.url),this.callbacks.onError({code:f,text:e.statusText},n,e)):(v.logger.warn(f+" while loading "+n.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,o.maxRetryDelay),a.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),o.timeout)},d.loadtimeout=function(){v.logger.warn("timeout while loading "+this.context.url);var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))},d.loadprogress=function(n){var e=this.stats;e.loaded=n.loaded,n.lengthComputable&&(e.total=n.total)},d.getCacheAge=function(){var n=null;if(this.loader&&C.test(this.loader.getAllResponseHeaders())){var e=this.loader.getResponseHeader("age");n=e?parseFloat(e):null}return n},m}();G.default=w}}).default})},vHTk:function(Ge,fe,R){Ge.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(Ge,fe,R){var se=R("SrGk"),G=R("bYtY");function M(C,w){se.call(this,C,w,["filter"],"__filter_in_use__","_shadowDom")}G.inherits(M,se),M.prototype.addWithoutUpdate=function(C,w){if(w&&v(w.style)){var m;if(w._shadowDom){m=w._shadowDom;var d=this.getDefs(!0);d.contains(w._shadowDom)||this.addDom(m)}else m=this.add(w);this.markUsed(w);var i=m.getAttribute("id");C.style.filter="url(#"+i+")"}},M.prototype.add=function(C){var w=this.createElement("filter");return C._shadowDomId=C._shadowDomId||this.nextId++,w.setAttribute("id","zr"+this._zrId+"-shadow-"+C._shadowDomId),this.updateDom(C,w),this.addDom(w),w},M.prototype.update=function(C,w){var m=w.style;if(v(m)){var d=this;se.prototype.update.call(this,w,function(){d.updateDom(w,w._shadowDom)})}else this.remove(C,w)},M.prototype.remove=function(C,w){w._shadowDomId!=null&&(this.removeDom(C),C.style.filter="")},M.prototype.updateDom=function(C,w){var m=w.getElementsByTagName("feDropShadow");m.length===0?m=this.createElement("feDropShadow"):m=m[0];var d=C.style,i=C.scale&&C.scale[0]||1,n=C.scale&&C.scale[1]||1,e,a,s,o;if(d.shadowBlur||d.shadowOffsetX||d.shadowOffsetY)e=d.shadowOffsetX||0,a=d.shadowOffsetY||0,s=d.shadowBlur,o=d.shadowColor;else if(d.textShadowBlur)e=d.textShadowOffsetX||0,a=d.textShadowOffsetY||0,s=d.textShadowBlur,o=d.textShadowColor;else{this.removeDom(w,d);return}m.setAttribute("dx",e/i),m.setAttribute("dy",a/n),m.setAttribute("flood-color",o);var f=s/2/i,l=s/2/n,r=f+" "+l;m.setAttribute("stdDeviation",r),w.setAttribute("x","-100%"),w.setAttribute("y","-100%"),w.setAttribute("width",Math.ceil(s/2*200)+"%"),w.setAttribute("height",Math.ceil(s/2*200)+"%"),w.appendChild(m),C._shadowDom=w},M.prototype.markUsed=function(C){C._shadowDom&&se.prototype.markUsed.call(this,C._shadowDom)};function v(C){return C&&(C.shadowBlur||C.shadowOffsetX||C.shadowOffsetY||C.textShadowBlur||C.textShadowOffsetX||C.textShadowOffsetY)}var b=M;Ge.exports=b},vUf6:function(Ge,fe,R){Ge.exports=R.p+"static/xxtj.38a4bc0a.svg"},vWvF:function(Ge,fe,R){var se=R("Bq2U"),G=R("SUKs"),M=R("bYtY"),v=M.isString,b=M.isFunction,C=M.isObject,w=M.isArrayLike,m=M.indexOf,d=function(){this.animators=[]};d.prototype={constructor:d,animate:function(s,o){var f,l=!1,r=this,c=this.__zr;if(s){var A=s.split("."),p=r;l=A[0]==="shape";for(var x=0,_=A.length;x<_;x++){if(!p)continue;p=p[A[x]]}p&&(f=p)}else f=r;if(!f){G('Property "'+s+'" is not existed in element '+r.id);return}var B=r.animators,E=new se(f,o);return E.during(function(g){r.dirty(l)}).done(function(){B.splice(m(B,E),1)}),B.push(E),c&&c.animation.addAnimator(E),E},stopAnimation:function(s){for(var o=this.animators,f=o.length,l=0;l<f;l++)o[l].stop(s);return o.length=0,this},animateTo:function(s,o,f,l,r,c){i(this,s,o,f,l,r,c)},animateFrom:function(s,o,f,l,r,c){i(this,s,o,f,l,r,c,!0)}};function i(s,o,f,l,r,c,A,p){v(l)?(c=r,r=l,l=0):b(r)?(c=r,r="linear",l=0):b(l)?(c=l,l=0):b(f)?(c=f,f=500):f||(f=500),s.stopAnimation(),n(s,"",s,o,f,l,p);var x=s.animators.slice(),_=x.length;function B(){_--,_||c&&c()}_||c&&c();for(var E=0;E<x.length;E++)x[E].done(B).start(r,A)}function n(s,o,f,l,r,c,A){var p={},x=0;for(var _ in l){if(!l.hasOwnProperty(_))continue;f[_]!=null?C(l[_])&&!w(l[_])?n(s,o?o+"."+_:_,f[_],l[_],r,c,A):(A?(p[_]=f[_],e(s,o,_,l[_])):p[_]=l[_],x++):l[_]!=null&&!A&&e(s,o,_,l[_])}x>0&&s.animate(o,!1).when(r==null?500:r,p).delay(c||0)}function e(s,o,f,l){if(!o)s.attr(f,l);else{var r={};r[o]={},r[o][f]=l,s.attr(r)}}var a=d;Ge.exports=a},w8Aa:function(Ge,fe,R){Ge.exports={img:"img___3e4yQ"}},wCXF:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return ce});var se=R("rePB"),G=R("VTBJ"),M=R("KQm4"),v=R("U8pU"),b=R("ODXe"),C=R("q1tI"),w=R("TSYQ"),m=R.n(w),d=R("Gytx"),i=R.n(d),n=R("Kwbf"),e=R("t23M"),a=R("qx4F"),s=R("6eGT"),o=R("IBYe"),f=R("Ff2n"),l=R("c+Xe"),r=R("fyJ8"),c=R("biw7");function A(He,Ke,ht,St,ct){var lt=ht[He]||{},rt=ht[Ke]||{},Ze,$e;lt.fixed==="left"?Ze=St.left[He]:rt.fixed==="right"&&($e=St.right[Ke]);var Ue=!1,Ne=!1,We=!1,it=!1,yt=ht[Ke+1],vt=ht[He-1];if(ct==="rtl"){if(Ze!==void 0){var Mt=vt&&vt.fixed==="left";it=!Mt}else if($e!==void 0){var Tt=yt&&yt.fixed==="right";We=!Tt}}else if(Ze!==void 0){var Rt=yt&&yt.fixed==="left";Ue=!Rt}else if($e!==void 0){var kt=vt&&vt.fixed==="right";Ne=!kt}return{fixLeft:Ze,fixRight:$e,lastFixLeft:Ue,firstFixRight:Ne,lastFixRight:We,firstFixLeft:it,isSticky:St.isSticky}}var p=R("sR1s");function x(He){var Ke=He.cells,ht=He.stickyOffsets,St=He.flattenColumns,ct=He.rowComponent,lt=He.cellComponent,rt=He.onHeaderRow,Ze=He.index,$e=C.useContext(c.a),Ue=$e.prefixCls,Ne=$e.direction,We;rt&&(We=rt(Ke.map(function(yt){return yt.column}),Ze));var it=Object(p.a)(Ke.map(function(yt){return yt.column}));return C.createElement(ct,Object.assign({},We),Ke.map(function(yt,vt){var Mt=yt.column,Tt=A(yt.colStart,yt.colEnd,St,ht,Ne),Rt;return Mt&&Mt.onHeaderCell&&(Rt=yt.column.onHeaderCell(Mt)),C.createElement(r.a,Object.assign({},yt,{ellipsis:Mt.ellipsis,align:Mt.align,component:lt,prefixCls:Ue,key:it[vt]},Tt,{additionalProps:Rt,rowType:"header"}))}))}x.displayName="HeaderRow";var _=x;function B(He){var Ke=[];function ht(rt,Ze){var $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ke[$e]=Ke[$e]||[];var Ue=Ze,Ne=rt.filter(Boolean).map(function(We){var it={key:We.key,className:We.className||"",children:We.title,column:We,colStart:Ue},yt=1,vt=We.children;return vt&&vt.length>0&&(yt=ht(vt,Ue,$e+1).reduce(function(Mt,Tt){return Mt+Tt},0),it.hasSubColumns=!0),"colSpan"in We&&(yt=We.colSpan),"rowSpan"in We&&(it.rowSpan=We.rowSpan),it.colSpan=yt,it.colEnd=it.colStart+yt-1,Ke[$e].push(it),Ue+=yt,yt});return Ne}ht(He,0);for(var St=Ke.length,ct=function(Ze){Ke[Ze].forEach(function($e){!("rowSpan"in $e)&&!$e.hasSubColumns&&($e.rowSpan=St-Ze)})},lt=0;lt<St;lt+=1)ct(lt);return Ke}function E(He){var Ke=He.stickyOffsets,ht=He.columns,St=He.flattenColumns,ct=He.onHeaderRow,lt=C.useContext(c.a),rt=lt.prefixCls,Ze=lt.getComponent,$e=C.useMemo(function(){return B(ht)},[ht]),Ue=Ze(["header","wrapper"],"thead"),Ne=Ze(["header","row"],"tr"),We=Ze(["header","cell"],"th");return C.createElement(Ue,{className:"".concat(rt,"-thead")},$e.map(function(it,yt){var vt=C.createElement(_,{key:yt,flattenColumns:St,cells:it,stickyOffsets:Ke,rowComponent:Ne,cellComponent:We,onHeaderRow:ct,index:yt});return vt}))}var g=E,h=R("hW8S");function u(He){for(var Ke=He.colWidths,ht=He.columns,St=He.columCount,ct=[],lt=St||ht.length,rt=!1,Ze=lt-1;Ze>=0;Ze-=1){var $e=Ke[Ze],Ue=ht&&ht[Ze],Ne=Ue&&Ue[h.a];($e||Ne||rt)&&(ct.unshift(C.createElement("col",Object.assign({key:Ze,style:{width:$e,minWidth:$e}},Ne))),rt=!0)}return C.createElement("colgroup",null,ct)}var S=u;function O(He,Ke){return Object(C.useMemo)(function(){for(var ht=[],St=0;St<Ke;St+=1){var ct=He[St];if(ct!==void 0)ht[St]=ct;else return null}return ht},[He.join("_"),Ke])}var T=C.forwardRef(function(He,Ke){var ht=He.noData,St=He.columns,ct=He.flattenColumns,lt=He.colWidths,rt=He.columCount,Ze=He.stickyOffsets,$e=He.direction,Ue=He.fixHeader,Ne=He.offsetHeader,We=He.stickyClassName,it=He.onScroll,yt=Object(f.a)(He,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),vt=C.useContext(c.a),Mt=vt.prefixCls,Tt=vt.scrollbarSize,Rt=vt.isSticky,kt=Rt&&!Ue?0:Tt,Ut=C.useRef(null),Bt=C.useCallback(function(jt){Object(l.b)(Ke,jt),Object(l.b)(Ut,jt)},[]);C.useEffect(function(){var jt;function Vt(Et){var Lt=Et.currentTarget,Ht=Et.deltaX;Ht&&(it({currentTarget:Lt,scrollLeft:Lt.scrollLeft+Ht}),Et.preventDefault())}return(jt=Ut.current)===null||jt===void 0||jt.addEventListener("wheel",Vt),function(){var Et;(Et=Ut.current)===null||Et===void 0||Et.removeEventListener("wheel",Vt)}},[]);var At=ct[ct.length-1],bt={fixed:At?At.fixed:null,onHeaderCell:function(){return{className:"".concat(Mt,"-cell-scrollbar")}}},je=Object(C.useMemo)(function(){return kt?[].concat(Object(M.a)(St),[bt]):St},[kt,St]),qe=Object(C.useMemo)(function(){return kt?[].concat(Object(M.a)(ct),[bt]):ct},[kt,ct]),Ot=Object(C.useMemo)(function(){var jt=Ze.right,Vt=Ze.left;return Object(G.a)(Object(G.a)({},Ze),{},{left:$e==="rtl"?[].concat(Object(M.a)(Vt.map(function(Et){return Et+kt})),[0]):Vt,right:$e==="rtl"?jt:[].concat(Object(M.a)(jt.map(function(Et){return Et+kt})),[0]),isSticky:Rt})},[kt,Ze,Rt]),Ct=O(lt,rt);return C.createElement("div",{style:Object(G.a)({overflow:"hidden"},Rt?{top:Ne}:{}),ref:Bt,className:m()("".concat(Mt,"-header"),Object(se.a)({},We,!!We))},C.createElement("table",{style:{tableLayout:"fixed",visibility:ht||Ct?null:"hidden"}},C.createElement(S,{colWidths:Ct?[].concat(Object(M.a)(Ct),[kt]):[],columCount:rt+1,columns:qe}),C.createElement(g,Object.assign({},yt,{stickyOffsets:Ot,columns:je,flattenColumns:qe}))))});T.displayName="FixedHeader";var D=T,I=C.createContext(null),k=I;function F(He){var Ke=He.prefixCls,ht=He.children,St=He.component,ct=He.cellComponent,lt=He.fixHeader,rt=He.fixColumn,Ze=He.horizonScroll,$e=He.className,Ue=He.expanded,Ne=He.componentWidth,We=He.colSpan,it=C.useContext(c.a),yt=it.scrollbarSize;return C.useMemo(function(){var vt=ht;return rt&&(vt=C.createElement("div",{style:{width:Ne-(lt?yt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ke,"-expanded-row-fixed")},vt)),C.createElement(St,{className:$e,style:{display:Ue?null:"none"}},C.createElement(r.a,{component:ct,prefixCls:Ke,colSpan:We},vt))},[ht,St,lt,Ze,$e,Ue,Ne,We,yt])}var X=F;function U(He){var Ke=He.className,ht=He.style,St=He.record,ct=He.index,lt=He.rowKey,rt=He.getRowKey,Ze=He.rowExpandable,$e=He.expandedKeys,Ue=He.onRow,Ne=He.indent,We=Ne===void 0?0:Ne,it=He.rowComponent,yt=He.cellComponent,vt=He.childrenColumnName,Mt=C.useContext(c.a),Tt=Mt.prefixCls,Rt=Mt.fixedInfoList,kt=C.useContext(k),Ut=kt.fixHeader,Bt=kt.fixColumn,At=kt.horizonScroll,bt=kt.componentWidth,je=kt.flattenColumns,qe=kt.expandableType,Ot=kt.expandRowByClick,Ct=kt.onTriggerExpand,jt=kt.rowClassName,Vt=kt.expandedRowClassName,Et=kt.indentSize,Lt=kt.expandIcon,Ht=kt.expandedRowRender,un=kt.expandIconColumnIndex,gn=C.useState(!1),Ar=Object(b.a)(gn,2),wr=Ar[0],cr=Ar[1],Rn=$e&&$e.has(He.recordKey);C.useEffect(function(){Rn&&cr(!0)},[Rn]);var Jr=qe==="row"&&(!Ze||Ze(St)),si=qe==="nest",li=vt&&St&&St[vt],kr=Jr||si,hi;Ue&&(hi=Ue(St,ct));var Ui=function(z){if(Ot&&kr&&Ct(St,z),hi&&hi.onClick){for(var Z,ye=arguments.length,xe=new Array(ye>1?ye-1:0),Ce=1;Ce<ye;Ce++)xe[Ce-1]=arguments[Ce];(Z=hi).onClick.apply(Z,[z].concat(xe))}},Zi;typeof jt=="string"?Zi=jt:typeof jt=="function"&&(Zi=jt(St,ct,We));var Le=Object(p.a)(je),Fe=C.createElement(it,Object.assign({},hi,{"data-row-key":lt,className:m()(Ke,"".concat(Tt,"-row"),"".concat(Tt,"-row-level-").concat(We),Zi,hi&&hi.className),style:Object(G.a)(Object(G.a)({},ht),hi?hi.style:null),onClick:Ui}),je.map(function(pe,z){var Z=pe.render,ye=pe.dataIndex,xe=pe.className,Ce=Le[z],ft=Rt[z],zt;z===(un||0)&&si&&(zt=C.createElement(C.Fragment,null,C.createElement("span",{style:{paddingLeft:"".concat(Et*We,"px")},className:"".concat(Tt,"-row-indent indent-level-").concat(We)}),Lt({prefixCls:Tt,expanded:Rn,expandable:li,record:St,onExpand:Ct})));var ln;return pe.onCell&&(ln=pe.onCell(St,ct)),C.createElement(r.a,Object.assign({className:xe,ellipsis:pe.ellipsis,align:pe.align,component:yt,prefixCls:Tt,key:Ce,record:St,index:ct,dataIndex:ye,render:Z,shouldCellUpdate:pe.shouldCellUpdate},ft,{appendNode:zt,additionalProps:ln}))})),nt;if(Jr&&(wr||Rn)){var xt=Ht(St,ct,We+1,Rn),Wt=Vt&&Vt(St,ct,We);nt=C.createElement(X,{expanded:Rn,className:m()("".concat(Tt,"-expanded-row"),"".concat(Tt,"-expanded-row-level-").concat(We+1),Wt),prefixCls:Tt,fixHeader:Ut,fixColumn:Bt,horizonScroll:At,component:it,componentWidth:bt,cellComponent:yt,colSpan:je.length},xt)}var Xt;return li&&Rn&&(Xt=(St[vt]||[]).map(function(pe,z){var Z=rt(pe,z);return C.createElement(U,Object.assign({},He,{key:Z,rowKey:Z,record:pe,recordKey:Z,index:z,indent:We+1}))})),C.createElement(C.Fragment,null,Fe,nt,Xt)}U.displayName="BodyRow";var K=U,V=C.createContext(null),N=V;function Q(He){var Ke=He.columnKey,ht=He.onColumnResize,St=C.useRef();return C.useEffect(function(){St.current&&ht(Ke,St.current.offsetWidth)},[]),C.createElement(e.a,{onResize:function(lt){var rt=lt.offsetWidth;ht(Ke,rt)}},C.createElement("td",{ref:St,style:{padding:0,border:0,height:0}},C.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function J(He){var Ke=He.data,ht=He.getRowKey,St=He.measureColumnWidth,ct=He.expandedKeys,lt=He.onRow,rt=He.rowExpandable,Ze=He.emptyNode,$e=He.childrenColumnName,Ue=C.useContext(N),Ne=Ue.onColumnResize,We=C.useContext(c.a),it=We.prefixCls,yt=We.getComponent,vt=C.useContext(k),Mt=vt.fixHeader,Tt=vt.horizonScroll,Rt=vt.flattenColumns,kt=vt.componentWidth;return C.useMemo(function(){var Ut=yt(["body","wrapper"],"tbody"),Bt=yt(["body","row"],"tr"),At=yt(["body","cell"],"td"),bt;Ke.length?bt=Ke.map(function(qe,Ot){var Ct=ht(qe,Ot);return C.createElement(K,{key:Ct,rowKey:Ct,record:qe,recordKey:Ct,index:Ot,rowComponent:Bt,cellComponent:At,expandedKeys:ct,onRow:lt,getRowKey:ht,rowExpandable:rt,childrenColumnName:$e})}):bt=C.createElement(X,{expanded:!0,className:"".concat(it,"-placeholder"),prefixCls:it,fixHeader:Mt,fixColumn:Tt,horizonScroll:Tt,component:Bt,componentWidth:kt,cellComponent:At,colSpan:Rt.length},Ze);var je=Object(p.a)(Rt);return C.createElement(Ut,{className:"".concat(it,"-tbody")},St&&C.createElement("tr",{"aria-hidden":"true",className:"".concat(it,"-measure-row"),style:{height:0}},je.map(function(qe){return C.createElement(Q,{key:qe,columnKey:qe,onColumnResize:Ne})})),bt)},[Ke,it,lt,St,ct,ht,yt,kt,Ze,Rt])}var ne=C.memo(J);ne.displayName="Body";var ue=ne,be=R("wRmb"),de=R("xEkU"),_e=R.n(de);function me(He){var Ke=Object(C.useRef)(He),ht=Object(C.useState)({}),St=Object(b.a)(ht,2),ct=St[1],lt=Object(C.useRef)(null),rt=Object(C.useRef)([]);function Ze($e){lt.current===null&&(rt.current=[],lt.current=_e()(function(){rt.current.forEach(function(Ue){Ke.current=Ue(Ke.current)}),lt.current=null,ct({})})),rt.current.push($e)}return Object(C.useEffect)(function(){return function(){_e.a.cancel(lt.current)}},[]),[Ke.current,Ze]}function Ee(He){var Ke=Object(C.useRef)(He),ht=Object(C.useRef)(null);function St(){window.clearTimeout(ht.current)}function ct(rt){Ke.current=rt,St(),ht.current=window.setTimeout(function(){Ke.current=null,ht.current=null},100)}function lt(){return Ke.current}return Object(C.useEffect)(function(){return St},[]),[ct,lt]}function ge(He,Ke,ht){var St=Object(C.useMemo)(function(){for(var ct=[],lt=[],rt=0,Ze=0,$e=0;$e<Ke;$e+=1)if(ht==="rtl"){lt[$e]=Ze,Ze+=He[$e]||0;var Ue=Ke-$e-1;ct[Ue]=rt,rt+=He[Ue]||0}else{ct[$e]=rt,rt+=He[$e]||0;var Ne=Ke-$e-1;lt[Ne]=Ze,Ze+=He[Ne]||0}return{left:ct,right:lt}},[He,Ke,ht]);return St}var Ae=ge;function ae(He){var Ke=He.className,ht=He.children;return C.createElement("div",{className:Ke},ht)}var ve=ae,oe=R("n6Qo");function ie(He){var Ke,ht=He.prefixCls,St=He.record,ct=He.onExpand,lt=He.expanded,rt=He.expandable,Ze="".concat(ht,"-row-expand-icon");if(!rt)return C.createElement("span",{className:m()(Ze,"".concat(ht,"-row-spaced"))});var $e=function(Ne){ct(St,Ne),Ne.stopPropagation()};return C.createElement("span",{className:m()(Ze,(Ke={},Object(se.a)(Ke,"".concat(ht,"-row-expanded"),lt),Object(se.a)(Ke,"".concat(ht,"-row-collapsed"),!lt),Ke)),onClick:$e})}function Te(He,Ke,ht){var St=[];function ct(lt){(lt||[]).forEach(function(rt,Ze){St.push(Ke(rt,Ze)),ct(rt[ht])})}return ct(He),St}var Re=R("zT1h"),Me=R("y0+3"),re=function(Ke,ht){var St,ct,lt=Ke.scrollBodyRef,rt=Ke.onScroll,Ze=Ke.offsetScroll,$e=C.useContext(c.a),Ue=$e.prefixCls,Ne=((St=lt.current)===null||St===void 0?void 0:St.scrollWidth)||0,We=((ct=lt.current)===null||ct===void 0?void 0:ct.clientWidth)||0,it=Ne&&We*(We/Ne),yt=C.useRef(),vt=me({scrollLeft:0,isHiddenScrollBar:!1}),Mt=Object(b.a)(vt,2),Tt=Mt[0],Rt=Mt[1],kt=C.useRef({delta:0,x:0}),Ut=C.useState(!1),Bt=Object(b.a)(Ut,2),At=Bt[0],bt=Bt[1],je=function(){bt(!1)},qe=function(Et){Et.persist(),kt.current.delta=Et.pageX-Tt.scrollLeft,kt.current.x=0,bt(!0),Et.preventDefault()},Ot=function(Et){var Lt,Ht=Et||((Lt=window)===null||Lt===void 0?void 0:Lt.event),un=Ht.buttons;if(!At||un===0){At&&bt(!1);return}var gn=kt.current.x+Et.pageX-kt.current.x-kt.current.delta;gn<=0&&(gn=0),gn+it>=We&&(gn=We-it),rt({scrollLeft:gn/We*(Ne+2)}),kt.current.x=Et.pageX},Ct=function(){var Et=Object(Me.b)(lt.current).top,Lt=Et+lt.current.offsetHeight,Ht=document.documentElement.scrollTop+window.innerHeight;Lt-Object(a.a)()<=Ht||Et>=Ht-Ze?Rt(function(un){return Object(G.a)(Object(G.a)({},un),{},{isHiddenScrollBar:!0})}):Rt(function(un){return Object(G.a)(Object(G.a)({},un),{},{isHiddenScrollBar:!1})})},jt=function(Et){Rt(function(Lt){return Object(G.a)(Object(G.a)({},Lt),{},{scrollLeft:Et/Ne*We||0})})};return C.useImperativeHandle(ht,function(){return{setScrollLeft:jt}}),C.useEffect(function(){var Vt=Object(Re.a)(document.body,"mouseup",je,!1),Et=Object(Re.a)(document.body,"mousemove",Ot,!1);return Ct(),function(){Vt.remove(),Et.remove()}},[it,At]),C.useEffect(function(){var Vt=Object(Re.a)(window,"scroll",Ct,!1),Et=Object(Re.a)(window,"resize",Ct,!1);return function(){Vt.remove(),Et.remove()}},[]),C.useEffect(function(){Tt.isHiddenScrollBar||Rt(function(Vt){var Et,Lt;return Object(G.a)(Object(G.a)({},Vt),{},{scrollLeft:lt.current.scrollLeft/((Et=lt.current)===null||Et===void 0?void 0:Et.scrollWidth)*((Lt=lt.current)===null||Lt===void 0?void 0:Lt.clientWidth)})})},[Tt.isHiddenScrollBar]),Ne<=We||!it||Tt.isHiddenScrollBar?null:C.createElement("div",{style:{height:Object(a.a)(),width:We,bottom:Ze},className:"".concat(Ue,"-sticky-scroll")},C.createElement("div",{onMouseDown:qe,ref:yt,className:m()("".concat(Ue,"-sticky-scroll-bar"),Object(se.a)({},"".concat(Ue,"-sticky-scroll-bar-active"),At)),style:{width:"".concat(it,"px"),transform:"translate3d(".concat(Tt.scrollLeft,"px, 0, 0)")}}))},j=C.forwardRef(re);function W(He,Ke){return C.useMemo(function(){var ht=!!He;return{isSticky:ht,stickyClassName:ht?"".concat(Ke,"-sticky-header"):"",offsetHeader:Object(v.a)(He)==="object"&&He.offsetHeader||0,offsetScroll:Object(v.a)(He)==="object"&&He.offsetScroll||0}},[He,Ke])}var he=[],te={},ce="rc-table-internal-hook",Ie=C.memo(function(He){var Ke=He.children;return Ke},function(He,Ke){return i()(He.props,Ke.props)?He.pingLeft!==Ke.pingLeft||He.pingRight!==Ke.pingRight:!1});function ze(He){var Ke,ht=He.prefixCls,St=He.className,ct=He.rowClassName,lt=He.style,rt=He.data,Ze=He.rowKey,$e=He.scroll,Ue=He.tableLayout,Ne=He.direction,We=He.title,it=He.footer,yt=He.summary,vt=He.id,Mt=He.showHeader,Tt=He.components,Rt=He.emptyText,kt=He.onRow,Ut=He.onHeaderRow,Bt=He.internalHooks,At=He.transformColumns,bt=He.internalRefs,je=He.sticky,qe=rt||he,Ot=!!qe.length,Ct=C.useState(0),jt=Object(b.a)(Ct,2),Vt=jt[0],Et=jt[1];C.useEffect(function(){Et(Object(a.a)())});var Lt=C.useMemo(function(){return Object(p.c)(Tt,{})},[Tt]),Ht=C.useCallback(function(gi,ai){return Object(p.b)(Lt,gi)||ai},[Lt]),un=C.useMemo(function(){return typeof Ze=="function"?Ze:function(gi){var ai=gi&&gi[Ze];return ai}},[Ze]),gn=Object(h.c)(He),Ar=gn.expandIcon,wr=gn.expandedRowKeys,cr=gn.defaultExpandedRowKeys,Rn=gn.defaultExpandAllRows,Jr=gn.expandedRowRender,si=gn.onExpand,li=gn.onExpandedRowsChange,kr=gn.expandRowByClick,hi=gn.rowExpandable,Ui=gn.expandIconColumnIndex,Zi=gn.expandedRowClassName,Le=gn.childrenColumnName,Fe=gn.indentSize,nt=Ar||ie,xt=Le||"children",Wt=C.useMemo(function(){return Jr?"row":He.expandable&&Bt===ce&&He.expandable.__PARENT_RENDER_ICON__||qe.some(function(gi){return gi&&Object(v.a)(gi)==="object"&&gi[xt]})?"nest":!1},[!!Jr,qe]),Xt=C.useState(function(){return cr||(Rn?Te(qe,un,xt):[])}),pe=Object(b.a)(Xt,2),z=pe[0],Z=pe[1],ye=C.useMemo(function(){return new Set(wr||z||[])},[wr,z]),xe=C.useCallback(function(gi){var ai=un(gi,qe.indexOf(gi)),ui,to=ye.has(ai);to?(ye.delete(ai),ui=Object(M.a)(ye)):ui=[].concat(Object(M.a)(ye),[ai]),Z(ui),si&&si(!to,gi),li&&li(ui)},[un,ye,qe,si,li]),Ce=C.useState(0),ft=Object(b.a)(Ce,2),zt=ft[0],ln=ft[1],mn=Object(be.b)(Object(G.a)(Object(G.a)(Object(G.a)({},He),gn),{},{expandable:!!Jr,expandedKeys:ye,getRowKey:un,onTriggerExpand:xe,expandIcon:nt,expandIconColumnIndex:Ui,direction:Ne}),Bt===ce?At:null),Jt=Object(b.a)(mn,2),Zn=Jt[0],Un=Jt[1],nr=C.useMemo(function(){return{columns:Zn,flattenColumns:Un}},[Zn,Un]),Sr=C.useRef(),ii=C.useRef(),Dr=C.useRef(),ti=C.useState(!1),Tr=Object(b.a)(ti,2),vi=Tr[0],fi=Tr[1],Oi=C.useState(!1),wi=Object(b.a)(Oi,2),Fi=wi[0],Hi=wi[1],Ii=me(new Map),Vr=Object(b.a)(Ii,2),zi=Vr[0],Gi=Vr[1],Di=Object(p.a)(Un),sa=Di.map(function(gi){return zi.get(gi)}),da=C.useMemo(function(){return sa},[sa.join("_")]),Mi=Ae(da,Un.length,Ne),Wr=$e&&Object(p.d)($e.y),hr=$e&&Object(p.d)($e.x),zr=hr&&Un.some(function(gi){var ai=gi.fixed;return ai}),Zr=C.useRef(),_i=W(je,ht),Xr=_i.isSticky,ja=_i.offsetHeader,Ni=_i.offsetScroll,va=_i.stickyClassName,vo,Wo,Ci;Wr&&(Wo={overflowY:"scroll",maxHeight:$e.y}),hr&&(vo={overflowX:"auto"},Wr||(Wo={overflowY:"hidden"}),Ci={width:$e.x===!0?"auto":$e.x,minWidth:"100%"});var Ro=C.useCallback(function(gi,ai){Gi(function(ui){var to=new Map(ui);return to.set(gi,ai),to})},[]),ha=Ee(null),os=Object(b.a)(ha,2),eo=os[0],ss=os[1];function Jo(gi,ai){if(!ai)return;typeof ai=="function"?ai(gi):ai.scrollLeft!==gi&&(ai.scrollLeft=gi)}var Ua=function(ai){var ui=ai.currentTarget,to=ai.scrollLeft,ls=typeof to=="number"?to:ui.scrollLeft,us=ui||te;if(!ss()||ss()===us){var Is;eo(us),Jo(ls,ii.current),Jo(ls,Dr.current),Jo(ls,(Is=Zr.current)===null||Is===void 0?void 0:Is.setScrollLeft)}if(ui){var ws=ui.scrollWidth,js=ui.clientWidth;fi(ls>0),Hi(ls<ws-js)}},Zo=function(){Dr.current&&Ua({currentTarget:Dr.current})},ps=function(ai){var ui=ai.width;Zo(),ln(Sr.current?Sr.current.offsetWidth:ui)};C.useEffect(function(){return Zo},[]),C.useEffect(function(){hr&&Zo()},[hr]),C.useEffect(function(){Bt===ce&&bt&&(bt.body.current=Dr.current)});var kn=Ht(["table"],"table"),Cr=C.useMemo(function(){return Ue||(zr?$e.x==="max-content"?"auto":"fixed":Wr||Un.some(function(gi){var ai=gi.ellipsis;return ai})?"fixed":"auto")},[Wr,zr,Un,Ue]),gr,Gr={colWidths:da,columCount:Un.length,stickyOffsets:Mi,onHeaderRow:Ut,fixHeader:Wr},Ai=C.useMemo(function(){return Ot?null:typeof Rt=="function"?Rt():Rt},[Ot,Rt]),Si=C.createElement(ue,{data:qe,measureColumnWidth:Wr||hr||Xr,expandedKeys:ye,rowExpandable:hi,getRowKey:un,onRow:kt,emptyNode:Ai,childrenColumnName:xt}),oi=C.createElement(S,{colWidths:Un.map(function(gi){var ai=gi.width;return ai}),columns:Un}),fa=yt&&C.createElement(oe.b,null,yt(qe)),Ha=Ht(["body"]);if(Wr||Xr){var ni;typeof Ha=="function"?(ni=Ha(qe,{scrollbarSize:Vt,ref:Dr,onScroll:Ua}),Gr.colWidths=Un.map(function(gi,ai){var ui=gi.width,to=ai===Zn.length-1?ui-Vt:ui;return typeof to=="number"&&!Number.isNaN(to)?to:(Object(n.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):ni=C.createElement("div",{style:Object(G.a)(Object(G.a)({},vo),Wo),onScroll:Ua,ref:Dr,className:m()("".concat(ht,"-body"))},C.createElement(kn,{style:Object(G.a)(Object(G.a)({},Ci),{},{tableLayout:Cr})},oi,Si,fa),Xr&&C.createElement(j,{ref:Zr,offsetScroll:Ni,scrollBodyRef:Dr,onScroll:Ua})),gr=C.createElement(C.Fragment,null,Mt!==!1&&C.createElement(D,Object.assign({noData:!qe.length},Gr,nr,{direction:Ne,offsetHeader:ja,stickyClassName:va,ref:ii,onScroll:Ua})),ni)}else gr=C.createElement("div",{style:Object(G.a)(Object(G.a)({},vo),Wo),className:m()("".concat(ht,"-content")),onScroll:Ua,ref:Dr},C.createElement(kn,{style:Object(G.a)(Object(G.a)({},Ci),{},{tableLayout:Cr})},oi,Mt!==!1&&C.createElement(g,Object.assign({},Gr,nr)),Si,fa));var zo=Object(h.b)(He),pi=C.createElement("div",Object.assign({className:m()(ht,St,(Ke={},Object(se.a)(Ke,"".concat(ht,"-rtl"),Ne==="rtl"),Object(se.a)(Ke,"".concat(ht,"-ping-left"),vi),Object(se.a)(Ke,"".concat(ht,"-ping-right"),Fi),Object(se.a)(Ke,"".concat(ht,"-layout-fixed"),Ue==="fixed"),Object(se.a)(Ke,"".concat(ht,"-fixed-header"),Wr),Object(se.a)(Ke,"".concat(ht,"-fixed-column"),zr),Object(se.a)(Ke,"".concat(ht,"-scroll-horizontal"),hr),Object(se.a)(Ke,"".concat(ht,"-has-fix-left"),Un[0]&&Un[0].fixed),Object(se.a)(Ke,"".concat(ht,"-has-fix-right"),Un[Un.length-1]&&Un[Un.length-1].fixed==="right"),Ke)),style:lt,id:vt,ref:Sr},zo),C.createElement(Ie,{pingLeft:vi,pingRight:Fi,props:Object(G.a)(Object(G.a)({},He),{},{stickyOffsets:Mi,mergedExpandedKeys:ye})},We&&C.createElement(ve,{className:"".concat(ht,"-title")},We(qe)),C.createElement("div",{className:"".concat(ht,"-container")},gr),it&&C.createElement(ve,{className:"".concat(ht,"-footer")},it(qe))));hr&&(pi=C.createElement(e.a,{onResize:ps},pi));var Sa=C.useMemo(function(){return{prefixCls:ht,getComponent:Ht,scrollbarSize:Vt,direction:Ne,fixedInfoList:Un.map(function(gi,ai){return A(ai,ai,Un,Mi,Ne)}),isSticky:Xr}},[ht,Ht,Vt,Ne,Un,Mi,Ne,Xr]),uo=C.useMemo(function(){return Object(G.a)(Object(G.a)({},nr),{},{tableLayout:Cr,rowClassName:ct,expandedRowClassName:Zi,componentWidth:zt,fixHeader:Wr,fixColumn:zr,horizonScroll:hr,expandIcon:nt,expandableType:Wt,expandRowByClick:kr,expandedRowRender:Jr,onTriggerExpand:xe,expandIconColumnIndex:Ui,indentSize:Fe})},[nr,Cr,ct,Zi,zt,Wr,zr,hr,nt,Wt,kr,Jr,xe,Ui,Fe]),Ga=C.useMemo(function(){return{onColumnResize:Ro}},[Ro]);return C.createElement(c.a.Provider,{value:Sa},C.createElement(k.Provider,{value:uo},C.createElement(N.Provider,{value:Ga},pi)))}ze.Column=o.a,ze.ColumnGroup=s.a,ze.Summary=oe.a,ze.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var _t=fe.b=ze},wOnQ:function(Ge,fe,R){/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/(function(se,G){Ge.exports=G()})(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 se=function($,Y){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,q){ee.__proto__=q}||function(ee,q){for(var Se in q)Object.prototype.hasOwnProperty.call(q,Se)&&(ee[Se]=q[Se])},se($,Y)};function G($,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Class extends value "+String(Y)+" is not a constructor or null");se($,Y);function ee(){this.constructor=$}$.prototype=Y===null?Object.create(Y):(ee.prototype=Y.prototype,new ee)}var M=function(){return M=Object.assign||function(Y){for(var ee,q=1,Se=arguments.length;q<Se;q++){ee=arguments[q];for(var ke in ee)Object.prototype.hasOwnProperty.call(ee,ke)&&(Y[ke]=ee[ke])}return Y},M.apply(this,arguments)};function v($,Y,ee,q){function Se(ke){return ke instanceof ee?ke:new ee(function(et){et(ke)})}return new(ee||(ee=Promise))(function(ke,et){function mt(Kt){try{Pt(q.next(Kt))}catch(qt){et(qt)}}function pt(Kt){try{Pt(q.throw(Kt))}catch(qt){et(qt)}}function Pt(Kt){Kt.done?ke(Kt.value):Se(Kt.value).then(mt,pt)}Pt((q=q.apply($,Y||[])).next())})}function b($,Y){var ee={label:0,sent:function(){if(ke[0]&1)throw ke[1];return ke[1]},trys:[],ops:[]},q,Se,ke,et;return et={next:mt(0),throw:mt(1),return:mt(2)},typeof Symbol=="function"&&(et[Symbol.iterator]=function(){return this}),et;function mt(Pt){return function(Kt){return pt([Pt,Kt])}}function pt(Pt){if(q)throw new TypeError("Generator is already executing.");for(;ee;)try{if(q=1,Se&&(ke=Pt[0]&2?Se.return:Pt[0]?Se.throw||((ke=Se.return)&&ke.call(Se),0):Se.next)&&!(ke=ke.call(Se,Pt[1])).done)return ke;(Se=0,ke)&&(Pt=[Pt[0]&2,ke.value]);switch(Pt[0]){case 0:case 1:ke=Pt;break;case 4:return ee.label++,{value:Pt[1],done:!1};case 5:ee.label++,Se=Pt[1],Pt=[0];continue;case 7:Pt=ee.ops.pop(),ee.trys.pop();continue;default:if(!(ke=ee.trys,ke=ke.length>0&&ke[ke.length-1])&&(Pt[0]===6||Pt[0]===2)){ee=0;continue}if(Pt[0]===3&&(!ke||Pt[1]>ke[0]&&Pt[1]<ke[3])){ee.label=Pt[1];break}if(Pt[0]===6&&ee.label<ke[1]){ee.label=ke[1],ke=Pt;break}if(ke&&ee.label<ke[2]){ee.label=ke[2],ee.ops.push(Pt);break}ke[2]&&ee.ops.pop(),ee.trys.pop();continue}Pt=Y.call($,ee)}catch(Kt){Pt=[6,Kt],Se=0}finally{q=ke=0}if(Pt[0]&5)throw Pt[1];return{value:Pt[0]?Pt[1]:void 0,done:!0}}}function C($,Y,ee){if(ee||arguments.length===2)for(var q=0,Se=Y.length,ke;q<Se;q++)(ke||!(q in Y))&&(ke||(ke=Array.prototype.slice.call(Y,0,q)),ke[q]=Y[q]);return $.concat(ke||Y)}for(var w=function(){function $(Y,ee,q,Se){this.left=Y,this.top=ee,this.width=q,this.height=Se}return $.prototype.add=function(Y,ee,q,Se){return new $(this.left+Y,this.top+ee,this.width+q,this.height+Se)},$.fromClientRect=function(Y,ee){return new $(ee.left+Y.windowBounds.left,ee.top+Y.windowBounds.top,ee.width,ee.height)},$.fromDOMRectList=function(Y,ee){var q=Array.from(ee).find(function(Se){return Se.width!==0});return q?new $(q.left+Y.windowBounds.left,q.top+Y.windowBounds.top,q.width,q.height):$.EMPTY},$.EMPTY=new $(0,0,0,0),$}(),m=function($,Y){return w.fromClientRect($,Y.getBoundingClientRect())},d=function($){var Y=$.body,ee=$.documentElement;if(!Y||!ee)throw new Error("Unable to get document size");var q=Math.max(Math.max(Y.scrollWidth,ee.scrollWidth),Math.max(Y.offsetWidth,ee.offsetWidth),Math.max(Y.clientWidth,ee.clientWidth)),Se=Math.max(Math.max(Y.scrollHeight,ee.scrollHeight),Math.max(Y.offsetHeight,ee.offsetHeight),Math.max(Y.clientHeight,ee.clientHeight));return new w(0,0,q,Se)},i=function($){for(var Y=[],ee=0,q=$.length;ee<q;){var Se=$.charCodeAt(ee++);if(Se>=55296&&Se<=56319&&ee<q){var ke=$.charCodeAt(ee++);(ke&64512)===56320?Y.push(((Se&1023)<<10)+(ke&1023)+65536):(Y.push(Se),ee--)}else Y.push(Se)}return Y},n=function(){for(var $=[],Y=0;Y<arguments.length;Y++)$[Y]=arguments[Y];if(String.fromCodePoint)return String.fromCodePoint.apply(String,$);var ee=$.length;if(!ee)return"";for(var q=[],Se=-1,ke="";++Se<ee;){var et=$[Se];et<=65535?q.push(et):(et-=65536,q.push((et>>10)+55296,et%1024+56320)),(Se+1===ee||q.length>16384)&&(ke+=String.fromCharCode.apply(String,q),q.length=0)}return ke},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),s=0;s<e.length;s++)a[e.charCodeAt(s)]=s;for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),l=0;l<o.length;l++)f[o.charCodeAt(l)]=l;for(var r=function($){var Y=$.length*.75,ee=$.length,q,Se=0,ke,et,mt,pt;$[$.length-1]==="="&&(Y--,$[$.length-2]==="="&&Y--);var Pt=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Y):new Array(Y),Kt=Array.isArray(Pt)?Pt:new Uint8Array(Pt);for(q=0;q<ee;q+=4)ke=f[$.charCodeAt(q)],et=f[$.charCodeAt(q+1)],mt=f[$.charCodeAt(q+2)],pt=f[$.charCodeAt(q+3)],Kt[Se++]=ke<<2|et>>4,Kt[Se++]=(et&15)<<4|mt>>2,Kt[Se++]=(mt&3)<<6|pt&63;return Pt},c=function($){for(var Y=$.length,ee=[],q=0;q<Y;q+=2)ee.push($[q+1]<<8|$[q]);return ee},A=function($){for(var Y=$.length,ee=[],q=0;q<Y;q+=4)ee.push($[q+3]<<24|$[q+2]<<16|$[q+1]<<8|$[q]);return ee},p=5,x=6+5,_=2,B=x-p,E=65536>>p,g=1<<p,h=g-1,u=1024>>p,S=E+u,O=S,T=2048>>6,D=O+T,I=65536>>x,k=1<<B,F=k-1,X=function($,Y,ee){return $.slice?$.slice(Y,ee):new Uint16Array(Array.prototype.slice.call($,Y,ee))},U=function($,Y,ee){return $.slice?$.slice(Y,ee):new Uint32Array(Array.prototype.slice.call($,Y,ee))},K=function($,Y){var ee=r($),q=Array.isArray(ee)?A(ee):new Uint32Array(ee),Se=Array.isArray(ee)?c(ee):new Uint16Array(ee),ke=24,et=X(Se,ke/2,q[4]/2),mt=q[5]===2?X(Se,(ke+q[4])/2):U(q,Math.ceil((ke+q[4])/4));return new V(q[0],q[1],q[2],q[3],et,mt)},V=function(){function $(Y,ee,q,Se,ke,et){this.initialValue=Y,this.errorValue=ee,this.highStart=q,this.highValueIndex=Se,this.index=ke,this.data=et}return $.prototype.get=function(Y){var ee;if(Y>=0){if(Y<55296||Y>56319&&Y<=65535)return ee=this.index[Y>>p],ee=(ee<<_)+(Y&h),this.data[ee];if(Y<=65535)return ee=this.index[E+(Y-55296>>p)],ee=(ee<<_)+(Y&h),this.data[ee];if(Y<this.highStart)return ee=D-I+(Y>>x),ee=this.index[ee],ee+=Y>>p&F,ee=this.index[ee],ee=(ee<<_)+(Y&h),this.data[ee];if(Y<=1114111)return this.data[this.highValueIndex]}return this.errorValue},$}(),N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),J=0;J<N.length;J++)Q[N.charCodeAt(J)]=J;var ne="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",ue=50,be=1,de=2,_e=3,me=4,Ee=5,ge=7,Ae=8,ae=9,ve=10,oe=11,ie=12,Te=13,Re=14,Me=15,re=16,j=17,W=18,he=19,te=20,ce=21,Ie=22,ze=23,_t=24,He=25,Ke=26,ht=27,St=28,ct=29,lt=30,rt=31,Ze=32,$e=33,Ue=34,Ne=35,We=36,it=37,yt=38,vt=39,Mt=40,Tt=41,Rt=42,kt=43,Ut=[9001,65288],Bt="!",At="\xD7",bt="\xF7",je=K(ne),qe=[lt,We],Ot=[be,de,_e,Ee],Ct=[ve,Ae],jt=[ht,Ke],Vt=Ot.concat(Ct),Et=[yt,vt,Mt,Ue,Ne],Lt=[Me,Te],Ht=function($,Y){Y===void 0&&(Y="strict");var ee=[],q=[],Se=[];return $.forEach(function(ke,et){var mt=je.get(ke);if(mt>ue?(Se.push(!0),mt-=ue):Se.push(!1),["normal","auto","loose"].indexOf(Y)!==-1&&[8208,8211,12316,12448].indexOf(ke)!==-1)return q.push(et),ee.push(re);if(mt===me||mt===oe){if(et===0)return q.push(et),ee.push(lt);var pt=ee[et-1];return Vt.indexOf(pt)===-1?(q.push(q[et-1]),ee.push(pt)):(q.push(et),ee.push(lt))}if(q.push(et),mt===rt)return ee.push(Y==="strict"?ce:it);if(mt===Rt)return ee.push(lt);if(mt===ct)return ee.push(lt);if(mt===kt)return ke>=131072&&ke<=196605||ke>=196608&&ke<=262141?ee.push(it):ee.push(lt);ee.push(mt)}),[q,ee,Se]},un=function($,Y,ee,q){var Se=q[ee];if(Array.isArray($)?$.indexOf(Se)!==-1:$===Se)for(var ke=ee;ke<=q.length;){ke++;var et=q[ke];if(et===Y)return!0;if(et!==ve)break}if(Se===ve)for(var ke=ee;ke>0;){ke--;var mt=q[ke];if(Array.isArray($)?$.indexOf(mt)!==-1:$===mt)for(var pt=ee;pt<=q.length;){pt++;var et=q[pt];if(et===Y)return!0;if(et!==ve)break}if(mt!==ve)break}return!1},gn=function($,Y){for(var ee=$;ee>=0;){var q=Y[ee];if(q===ve)ee--;else return q}return 0},Ar=function($,Y,ee,q,Se){if(ee[q]===0)return At;var ke=q-1;if(Array.isArray(Se)&&Se[ke]===!0)return At;var et=ke-1,mt=ke+1,pt=Y[ke],Pt=et>=0?Y[et]:0,Kt=Y[mt];if(pt===de&&Kt===_e)return At;if(Ot.indexOf(pt)!==-1)return Bt;if(Ot.indexOf(Kt)!==-1)return At;if(Ct.indexOf(Kt)!==-1)return At;if(gn(ke,Y)===Ae)return bt;if(je.get($[ke])===oe)return At;if((pt===Ze||pt===$e)&&je.get($[mt])===oe)return At;if(pt===ge||Kt===ge)return At;if(pt===ae)return At;if([ve,Te,Me].indexOf(pt)===-1&&Kt===ae)return At;if([j,W,he,_t,St].indexOf(Kt)!==-1)return At;if(gn(ke,Y)===Ie)return At;if(un(ze,Ie,ke,Y))return At;if(un([j,W],ce,ke,Y))return At;if(un(ie,ie,ke,Y))return At;if(pt===ve)return bt;if(pt===ze||Kt===ze)return At;if(Kt===re||pt===re)return bt;if([Te,Me,ce].indexOf(Kt)!==-1||pt===Re)return At;if(Pt===We&&Lt.indexOf(pt)!==-1)return At;if(pt===St&&Kt===We)return At;if(Kt===te)return At;if(qe.indexOf(Kt)!==-1&&pt===He||qe.indexOf(pt)!==-1&&Kt===He)return At;if(pt===ht&&[it,Ze,$e].indexOf(Kt)!==-1||[it,Ze,$e].indexOf(pt)!==-1&&Kt===Ke)return At;if(qe.indexOf(pt)!==-1&&jt.indexOf(Kt)!==-1||jt.indexOf(pt)!==-1&&qe.indexOf(Kt)!==-1)return At;if([ht,Ke].indexOf(pt)!==-1&&(Kt===He||[Ie,Me].indexOf(Kt)!==-1&&Y[mt+1]===He)||[Ie,Me].indexOf(pt)!==-1&&Kt===He||pt===He&&[He,St,_t].indexOf(Kt)!==-1)return At;if([He,St,_t,j,W].indexOf(Kt)!==-1)for(var qt=ke;qt>=0;){var nn=Y[qt];if(nn===He)return At;if([St,_t].indexOf(nn)!==-1)qt--;else break}if([ht,Ke].indexOf(Kt)!==-1)for(var qt=[j,W].indexOf(pt)!==-1?et:ke;qt>=0;){var nn=Y[qt];if(nn===He)return At;if([St,_t].indexOf(nn)!==-1)qt--;else break}if(yt===pt&&[yt,vt,Ue,Ne].indexOf(Kt)!==-1||[vt,Ue].indexOf(pt)!==-1&&[vt,Mt].indexOf(Kt)!==-1||[Mt,Ne].indexOf(pt)!==-1&&Kt===Mt)return At;if(Et.indexOf(pt)!==-1&&[te,Ke].indexOf(Kt)!==-1||Et.indexOf(Kt)!==-1&&pt===ht)return At;if(qe.indexOf(pt)!==-1&&qe.indexOf(Kt)!==-1)return At;if(pt===_t&&qe.indexOf(Kt)!==-1)return At;if(qe.concat(He).indexOf(pt)!==-1&&Kt===Ie&&Ut.indexOf($[mt])===-1||qe.concat(He).indexOf(Kt)!==-1&&pt===W)return At;if(pt===Tt&&Kt===Tt){for(var br=ee[ke],Nn=1;br>0&&(br--,Y[br]===Tt);)Nn++;if(Nn%2!==0)return At}return pt===Ze&&Kt===$e?At:bt},wr=function($,Y){Y||(Y={lineBreak:"normal",wordBreak:"normal"});var ee=Ht($,Y.lineBreak),q=ee[0],Se=ee[1],ke=ee[2];(Y.wordBreak==="break-all"||Y.wordBreak==="break-word")&&(Se=Se.map(function(mt){return[He,lt,Rt].indexOf(mt)!==-1?it:mt}));var et=Y.wordBreak==="keep-all"?ke.map(function(mt,pt){return mt&&$[pt]>=19968&&$[pt]<=40959}):void 0;return[q,Se,et]},cr=function(){function $(Y,ee,q,Se){this.codePoints=Y,this.required=ee===Bt,this.start=q,this.end=Se}return $.prototype.slice=function(){return n.apply(void 0,this.codePoints.slice(this.start,this.end))},$}(),Rn=function($,Y){var ee=i($),q=wr(ee,Y),Se=q[0],ke=q[1],et=q[2],mt=ee.length,pt=0,Pt=0;return{next:function(){if(Pt>=mt)return{done:!0,value:null};for(var Kt=At;Pt<mt&&(Kt=Ar(ee,ke,Se,++Pt,et))===At;);if(Kt!==At||Pt===mt){var qt=new cr(ee,Kt,pt,Pt);return pt=Pt,{value:qt,done:!1}}return{done:!0,value:null}}}},Jr=1<<0,si=1<<1,li=1<<2,kr=1<<3,hi=10,Ui=47,Zi=92,Le=9,Fe=32,nt=34,xt=61,Wt=35,Xt=36,pe=37,z=39,Z=40,ye=41,xe=95,Ce=45,ft=33,zt=60,ln=62,mn=64,Jt=91,Zn=93,Un=61,nr=123,Sr=63,ii=125,Dr=124,ti=126,Tr=128,vi=65533,fi=42,Oi=43,wi=44,Fi=58,Hi=59,Ii=46,Vr=0,zi=8,Gi=11,Di=14,sa=31,da=127,Mi=-1,Wr=48,hr=97,zr=101,Zr=102,_i=117,Xr=122,ja=65,Ni=69,va=70,vo=85,Wo=90,Ci=function($){return $>=Wr&&$<=57},Ro=function($){return $>=55296&&$<=57343},ha=function($){return Ci($)||$>=ja&&$<=va||$>=hr&&$<=Zr},os=function($){return $>=hr&&$<=Xr},eo=function($){return $>=ja&&$<=Wo},ss=function($){return os($)||eo($)},Jo=function($){return $>=Tr},Ua=function($){return $===hi||$===Le||$===Fe},Zo=function($){return ss($)||Jo($)||$===xe},ps=function($){return Zo($)||Ci($)||$===Ce},kn=function($){return $>=Vr&&$<=zi||$===Gi||$>=Di&&$<=sa||$===da},Cr=function($,Y){return $!==Zi?!1:Y!==hi},gr=function($,Y,ee){return $===Ce?Zo(Y)||Cr(Y,ee):Zo($)?!0:!!($===Zi&&Cr($,Y))},Gr=function($,Y,ee){return $===Oi||$===Ce?Ci(Y)?!0:Y===Ii&&Ci(ee):$===Ii?Ci(Y):Ci($)},Ai=function($){var Y=0,ee=1;($[Y]===Oi||$[Y]===Ce)&&($[Y]===Ce&&(ee=-1),Y++);for(var q=[];Ci($[Y]);)q.push($[Y++]);var Se=q.length?parseInt(n.apply(void 0,q),10):0;$[Y]===Ii&&Y++;for(var ke=[];Ci($[Y]);)ke.push($[Y++]);var et=ke.length,mt=et?parseInt(n.apply(void 0,ke),10):0;($[Y]===Ni||$[Y]===zr)&&Y++;var pt=1;($[Y]===Oi||$[Y]===Ce)&&($[Y]===Ce&&(pt=-1),Y++);for(var Pt=[];Ci($[Y]);)Pt.push($[Y++]);var Kt=Pt.length?parseInt(n.apply(void 0,Pt),10):0;return ee*(Se+mt*Math.pow(10,-et))*Math.pow(10,pt*Kt)},Si={type:2},oi={type:3},fa={type:4},Ha={type:13},ni={type:8},zo={type:21},pi={type:9},Sa={type:10},uo={type:11},Ga={type:12},gi={type:14},ai={type:23},ui={type:1},to={type:25},ls={type:24},us={type:26},Is={type:27},ws={type:28},js={type:29},Zs={type:31},cs={type:32},dl=function(){function $(){this._value=[]}return $.prototype.write=function(Y){this._value=this._value.concat(i(Y))},$.prototype.read=function(){for(var Y=[],ee=this.consumeToken();ee!==cs;)Y.push(ee),ee=this.consumeToken();return Y},$.prototype.consumeToken=function(){var Y=this.consumeCodePoint();switch(Y){case nt:return this.consumeStringToken(nt);case Wt:var ee=this.peekCodePoint(0),q=this.peekCodePoint(1),Se=this.peekCodePoint(2);if(ps(ee)||Cr(q,Se)){var ke=gr(ee,q,Se)?si:Jr,et=this.consumeName();return{type:5,value:et,flags:ke}}break;case Xt:if(this.peekCodePoint(0)===xt)return this.consumeCodePoint(),Ha;break;case z:return this.consumeStringToken(z);case Z:return Si;case ye:return oi;case fi:if(this.peekCodePoint(0)===xt)return this.consumeCodePoint(),gi;break;case Oi:if(Gr(Y,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Y),this.consumeNumericToken();break;case wi:return fa;case Ce:var mt=Y,pt=this.peekCodePoint(0),Pt=this.peekCodePoint(1);if(Gr(mt,pt,Pt))return this.reconsumeCodePoint(Y),this.consumeNumericToken();if(gr(mt,pt,Pt))return this.reconsumeCodePoint(Y),this.consumeIdentLikeToken();if(pt===Ce&&Pt===ln)return this.consumeCodePoint(),this.consumeCodePoint(),ls;break;case Ii:if(Gr(Y,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Y),this.consumeNumericToken();break;case Ui:if(this.peekCodePoint(0)===fi)for(this.consumeCodePoint();;){var Kt=this.consumeCodePoint();if(Kt===fi&&(Kt=this.consumeCodePoint(),Kt===Ui))return this.consumeToken();if(Kt===Mi)return this.consumeToken()}break;case Fi:return us;case Hi:return Is;case zt:if(this.peekCodePoint(0)===ft&&this.peekCodePoint(1)===Ce&&this.peekCodePoint(2)===Ce)return this.consumeCodePoint(),this.consumeCodePoint(),to;break;case mn:var qt=this.peekCodePoint(0),nn=this.peekCodePoint(1),br=this.peekCodePoint(2);if(gr(qt,nn,br)){var et=this.consumeName();return{type:7,value:et}}break;case Jt:return ws;case Zi:if(Cr(Y,this.peekCodePoint(0)))return this.reconsumeCodePoint(Y),this.consumeIdentLikeToken();break;case Zn:return js;case Un:if(this.peekCodePoint(0)===xt)return this.consumeCodePoint(),ni;break;case nr:return uo;case ii:return Ga;case _i:case vo:var Nn=this.peekCodePoint(0),ur=this.peekCodePoint(1);return Nn===Oi&&(ha(ur)||ur===Sr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(Y),this.consumeIdentLikeToken();case Dr:if(this.peekCodePoint(0)===xt)return this.consumeCodePoint(),pi;if(this.peekCodePoint(0)===Dr)return this.consumeCodePoint(),zo;break;case ti:if(this.peekCodePoint(0)===xt)return this.consumeCodePoint(),Sa;break;case Mi:return cs}return Ua(Y)?(this.consumeWhiteSpace(),Zs):Ci(Y)?(this.reconsumeCodePoint(Y),this.consumeNumericToken()):Zo(Y)?(this.reconsumeCodePoint(Y),this.consumeIdentLikeToken()):{type:6,value:n(Y)}},$.prototype.consumeCodePoint=function(){var Y=this._value.shift();return typeof Y=="undefined"?-1:Y},$.prototype.reconsumeCodePoint=function(Y){this._value.unshift(Y)},$.prototype.peekCodePoint=function(Y){return Y>=this._value.length?-1:this._value[Y]},$.prototype.consumeUnicodeRangeToken=function(){for(var Y=[],ee=this.consumeCodePoint();ha(ee)&&Y.length<6;)Y.push(ee),ee=this.consumeCodePoint();for(var q=!1;ee===Sr&&Y.length<6;)Y.push(ee),ee=this.consumeCodePoint(),q=!0;if(q){var Se=parseInt(n.apply(void 0,Y.map(function(pt){return pt===Sr?Wr:pt})),16),ke=parseInt(n.apply(void 0,Y.map(function(pt){return pt===Sr?va:pt})),16);return{type:30,start:Se,end:ke}}var et=parseInt(n.apply(void 0,Y),16);if(this.peekCodePoint(0)===Ce&&ha(this.peekCodePoint(1))){this.consumeCodePoint(),ee=this.consumeCodePoint();for(var mt=[];ha(ee)&&mt.length<6;)mt.push(ee),ee=this.consumeCodePoint();var ke=parseInt(n.apply(void 0,mt),16);return{type:30,start:et,end:ke}}else return{type:30,start:et,end:et}},$.prototype.consumeIdentLikeToken=function(){var Y=this.consumeName();return Y.toLowerCase()==="url"&&this.peekCodePoint(0)===Z?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Z?(this.consumeCodePoint(),{type:19,value:Y}):{type:20,value:Y}},$.prototype.consumeUrlToken=function(){var Y=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Mi)return{type:22,value:""};var ee=this.peekCodePoint(0);if(ee===z||ee===nt){var q=this.consumeStringToken(this.consumeCodePoint());return q.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Mi||this.peekCodePoint(0)===ye)?(this.consumeCodePoint(),{type:22,value:q.value}):(this.consumeBadUrlRemnants(),ai)}for(;;){var Se=this.consumeCodePoint();if(Se===Mi||Se===ye)return{type:22,value:n.apply(void 0,Y)};if(Ua(Se))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Mi||this.peekCodePoint(0)===ye?(this.consumeCodePoint(),{type:22,value:n.apply(void 0,Y)}):(this.consumeBadUrlRemnants(),ai);if(Se===nt||Se===z||Se===Z||kn(Se))return this.consumeBadUrlRemnants(),ai;if(Se===Zi)if(Cr(Se,this.peekCodePoint(0)))Y.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ai;else Y.push(Se)}},$.prototype.consumeWhiteSpace=function(){for(;Ua(this.peekCodePoint(0));)this.consumeCodePoint()},$.prototype.consumeBadUrlRemnants=function(){for(;;){var Y=this.consumeCodePoint();if(Y===ye||Y===Mi)return;Cr(Y,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},$.prototype.consumeStringSlice=function(Y){for(var ee=5e4,q="";Y>0;){var Se=Math.min(ee,Y);q+=n.apply(void 0,this._value.splice(0,Se)),Y-=Se}return this._value.shift(),q},$.prototype.consumeStringToken=function(Y){var ee="",q=0;do{var Se=this._value[q];if(Se===Mi||Se===void 0||Se===Y)return ee+=this.consumeStringSlice(q),{type:0,value:ee};if(Se===hi)return this._value.splice(0,q),ui;if(Se===Zi){var ke=this._value[q+1];ke!==Mi&&ke!==void 0&&(ke===hi?(ee+=this.consumeStringSlice(q),q=-1,this._value.shift()):Cr(Se,ke)&&(ee+=this.consumeStringSlice(q),ee+=n(this.consumeEscapedCodePoint()),q=-1))}q++}while(!0)},$.prototype.consumeNumber=function(){var Y=[],ee=li,q=this.peekCodePoint(0);for((q===Oi||q===Ce)&&Y.push(this.consumeCodePoint());Ci(this.peekCodePoint(0));)Y.push(this.consumeCodePoint());q=this.peekCodePoint(0);var Se=this.peekCodePoint(1);if(q===Ii&&Ci(Se))for(Y.push(this.consumeCodePoint(),this.consumeCodePoint()),ee=kr;Ci(this.peekCodePoint(0));)Y.push(this.consumeCodePoint());q=this.peekCodePoint(0),Se=this.peekCodePoint(1);var ke=this.peekCodePoint(2);if((q===Ni||q===zr)&&((Se===Oi||Se===Ce)&&Ci(ke)||Ci(Se)))for(Y.push(this.consumeCodePoint(),this.consumeCodePoint()),ee=kr;Ci(this.peekCodePoint(0));)Y.push(this.consumeCodePoint());return[Ai(Y),ee]},$.prototype.consumeNumericToken=function(){var Y=this.consumeNumber(),ee=Y[0],q=Y[1],Se=this.peekCodePoint(0),ke=this.peekCodePoint(1),et=this.peekCodePoint(2);if(gr(Se,ke,et)){var mt=this.consumeName();return{type:15,number:ee,flags:q,unit:mt}}return Se===pe?(this.consumeCodePoint(),{type:16,number:ee,flags:q}):{type:17,number:ee,flags:q}},$.prototype.consumeEscapedCodePoint=function(){var Y=this.consumeCodePoint();if(ha(Y)){for(var ee=n(Y);ha(this.peekCodePoint(0))&&ee.length<6;)ee+=n(this.consumeCodePoint());Ua(this.peekCodePoint(0))&&this.consumeCodePoint();var q=parseInt(ee,16);return q===0||Ro(q)||q>1114111?vi:q}return Y===Mi?vi:Y},$.prototype.consumeName=function(){for(var Y="";;){var ee=this.consumeCodePoint();if(ps(ee))Y+=n(ee);else if(Cr(ee,this.peekCodePoint(0)))Y+=n(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(ee),Y}},$}(),$s=function(){function $(Y){this._tokens=Y}return $.create=function(Y){var ee=new dl;return ee.write(Y),new $(ee.read())},$.parseValue=function(Y){return $.create(Y).parseComponentValue()},$.parseValues=function(Y){return $.create(Y).parseComponentValues()},$.prototype.parseComponentValue=function(){for(var Y=this.consumeToken();Y.type===31;)Y=this.consumeToken();if(Y.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(Y);var ee=this.consumeComponentValue();do Y=this.consumeToken();while(Y.type===31);if(Y.type===32)return ee;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},$.prototype.parseComponentValues=function(){for(var Y=[];;){var ee=this.consumeComponentValue();if(ee.type===32)return Y;Y.push(ee),Y.push()}},$.prototype.consumeComponentValue=function(){var Y=this.consumeToken();switch(Y.type){case 11:case 28:case 2:return this.consumeSimpleBlock(Y.type);case 19:return this.consumeFunction(Y)}return Y},$.prototype.consumeSimpleBlock=function(Y){for(var ee={type:Y,values:[]},q=this.consumeToken();;){if(q.type===32||Ye(q,Y))return ee;this.reconsumeToken(q),ee.values.push(this.consumeComponentValue()),q=this.consumeToken()}},$.prototype.consumeFunction=function(Y){for(var ee={name:Y.value,values:[],type:18};;){var q=this.consumeToken();if(q.type===32||q.type===3)return ee;this.reconsumeToken(q),ee.values.push(this.consumeComponentValue())}},$.prototype.consumeToken=function(){var Y=this._tokens.shift();return typeof Y=="undefined"?cs:Y},$.prototype.reconsumeToken=function(Y){this._tokens.unshift(Y)},$}(),wo=function($){return $.type===15},ms=function($){return $.type===17},Qi=function($){return $.type===20},_s=function($){return $.type===0},_o=function($,Y){return Qi($)&&$.value===Y},Hs=function($){return $.type!==31},ut=function($){return $.type!==31&&$.type!==4},Ve=function($){var Y=[],ee=[];return $.forEach(function(q){if(q.type===4){if(ee.length===0)throw new Error("Error parsing function args, zero tokens for arg");Y.push(ee),ee=[];return}q.type!==31&&ee.push(q)}),ee.length&&Y.push(ee),Y},Ye=function($,Y){return Y===11&&$.type===12||Y===28&&$.type===29?!0:Y===2&&$.type===3},Je=function($){return $.type===17||$.type===15},Be=function($){return $.type===16||Je($)},Xe=function($){return $.length>1?[$[0],$[1]]:[$[0]]},Oe={type:17,number:0,flags:li},at={type:16,number:50,flags:li},tt={type:16,number:100,flags:li},st=function($,Y,ee){var q=$[0],Se=$[1];return[ot(q,Y),ot(typeof Se!="undefined"?Se:q,ee)]},ot=function($,Y){if($.type===16)return $.number/100*Y;if(wo($))switch($.unit){case"rem":case"em":return 16*$.number;case"px":default:return $.number}return $.number},dt="deg",It="grad",Gt="rad",Dt="turn",tn={name:"angle",parse:function($,Y){if(Y.type===15)switch(Y.unit){case dt:return Math.PI*Y.number/180;case It:return Math.PI/200*Y.number;case Gt:return Y.number;case Dt:return Math.PI*2*Y.number}throw new Error("Unsupported angle type")}},cn=function($){return $.type===15&&($.unit===dt||$.unit===It||$.unit===Gt||$.unit===Dt)},Bn=function($){var Y=$.filter(Qi).map(function(ee){return ee.value}).join(" ");switch(Y){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Oe,Oe];case"to top":case"bottom":return Yt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Oe,tt];case"to right":case"left":return Yt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[tt,tt];case"to bottom":case"top":return Yt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[tt,Oe];case"to left":case"right":return Yt(270)}return 0},Yt=function($){return Math.PI*$/180},en={name:"color",parse:function($,Y){if(Y.type===18){var ee=fn[Y.name];if(typeof ee=="undefined")throw new Error('Attempting to parse an unsupported color function "'+Y.name+'"');return ee($,Y.values)}if(Y.type===5){if(Y.value.length===3){var q=Y.value.substring(0,1),Se=Y.value.substring(1,2),ke=Y.value.substring(2,3);return rn(parseInt(q+q,16),parseInt(Se+Se,16),parseInt(ke+ke,16),1)}if(Y.value.length===4){var q=Y.value.substring(0,1),Se=Y.value.substring(1,2),ke=Y.value.substring(2,3),et=Y.value.substring(3,4);return rn(parseInt(q+q,16),parseInt(Se+Se,16),parseInt(ke+ke,16),parseInt(et+et,16)/255)}if(Y.value.length===6){var q=Y.value.substring(0,2),Se=Y.value.substring(2,4),ke=Y.value.substring(4,6);return rn(parseInt(q,16),parseInt(Se,16),parseInt(ke,16),1)}if(Y.value.length===8){var q=Y.value.substring(0,2),Se=Y.value.substring(2,4),ke=Y.value.substring(4,6),et=Y.value.substring(6,8);return rn(parseInt(q,16),parseInt(Se,16),parseInt(ke,16),parseInt(et,16)/255)}}if(Y.type===20){var mt=wn[Y.value.toUpperCase()];if(typeof mt!="undefined")return mt}return wn.TRANSPARENT}},bn=function($){return(255&$)===0},Dn=function($){var Y=255&$,ee=255&$>>8,q=255&$>>16,Se=255&$>>24;return Y<255?"rgba("+Se+","+q+","+ee+","+Y/255+")":"rgb("+Se+","+q+","+ee+")"},rn=function($,Y,ee,q){return($<<24|Y<<16|ee<<8|Math.round(q*255)<<0)>>>0},En=function($,Y){if($.type===17)return $.number;if($.type===16){var ee=Y===3?1:255;return Y===3?$.number/100*ee:Math.round($.number/100*ee)}return 0},Ln=function($,Y){var ee=Y.filter(ut);if(ee.length===3){var q=ee.map(En),Se=q[0],ke=q[1],et=q[2];return rn(Se,ke,et,1)}if(ee.length===4){var mt=ee.map(En),Se=mt[0],ke=mt[1],et=mt[2],pt=mt[3];return rn(Se,ke,et,pt)}return 0};function Vn($,Y,ee){return ee<0&&(ee+=1),ee>=1&&(ee-=1),ee<1/6?(Y-$)*ee*6+$:ee<1/2?Y:ee<2/3?(Y-$)*6*(2/3-ee)+$:$}var an=function($,Y){var ee=Y.filter(ut),q=ee[0],Se=ee[1],ke=ee[2],et=ee[3],mt=(q.type===17?Yt(q.number):tn.parse($,q))/(Math.PI*2),pt=Be(Se)?Se.number/100:0,Pt=Be(ke)?ke.number/100:0,Kt=typeof et!="undefined"&&Be(et)?ot(et,1):1;if(pt===0)return rn(Pt*255,Pt*255,Pt*255,1);var qt=Pt<=.5?Pt*(pt+1):Pt+pt-Pt*pt,nn=Pt*2-qt,br=Vn(nn,qt,mt+1/3),Nn=Vn(nn,qt,mt),ur=Vn(nn,qt,mt-1/3);return rn(br*255,Nn*255,ur*255,Kt)},fn={hsl:an,hsla:an,rgb:Ln,rgba:Ln},An=function($,Y){return en.parse($,$s.create(Y).parseComponentValue())},wn={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},er={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function($,Y){return Y.map(function(ee){if(Qi(ee))switch(ee.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},dn={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Fn=function($,Y){var ee=en.parse($,Y[0]),q=Y[1];return q&&Be(q)?{color:ee,stop:q}:{color:ee,stop:null}},Ir=function($,Y){var ee=$[0],q=$[$.length-1];ee.stop===null&&(ee.stop=Oe),q.stop===null&&(q.stop=tt);for(var Se=[],ke=0,et=0;et<$.length;et++){var mt=$[et].stop;if(mt!==null){var pt=ot(mt,Y);pt>ke?Se.push(pt):Se.push(ke),ke=pt}else Se.push(null)}for(var Pt=null,et=0;et<Se.length;et++){var Kt=Se[et];if(Kt===null)Pt===null&&(Pt=et);else if(Pt!==null){for(var qt=et-Pt,nn=Se[Pt-1],br=(Kt-nn)/(qt+1),Nn=1;Nn<=qt;Nn++)Se[Pt+Nn-1]=br*Nn;Pt=null}}return $.map(function(ur,qr){var vr=ur.color;return{color:vr,stop:Math.max(Math.min(1,Se[qr]/Y),0)}})},dr=function($,Y,ee){var q=Y/2,Se=ee/2,ke=ot($[0],Y)-q,et=Se-ot($[1],ee);return(Math.atan2(et,ke)+Math.PI*2)%(Math.PI*2)},Br=function($,Y,ee){var q=typeof $=="number"?$:dr($,Y,ee),Se=Math.abs(Y*Math.sin(q))+Math.abs(ee*Math.cos(q)),ke=Y/2,et=ee/2,mt=Se/2,pt=Math.sin(q-Math.PI/2)*mt,Pt=Math.cos(q-Math.PI/2)*mt;return[Se,ke-Pt,ke+Pt,et-pt,et+pt]},sr=function($,Y){return Math.sqrt($*$+Y*Y)},Nr=function($,Y,ee,q,Se){var ke=[[0,0],[0,Y],[$,0],[$,Y]];return ke.reduce(function(et,mt){var pt=mt[0],Pt=mt[1],Kt=sr(ee-pt,q-Pt);return(Se?Kt<et.optimumDistance:Kt>et.optimumDistance)?{optimumCorner:mt,optimumDistance:Kt}:et},{optimumDistance:Se?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Qn=function($,Y,ee,q,Se){var ke=0,et=0;switch($.size){case 0:$.shape===0?ke=et=Math.min(Math.abs(Y),Math.abs(Y-q),Math.abs(ee),Math.abs(ee-Se)):$.shape===1&&(ke=Math.min(Math.abs(Y),Math.abs(Y-q)),et=Math.min(Math.abs(ee),Math.abs(ee-Se)));break;case 2:if($.shape===0)ke=et=Math.min(sr(Y,ee),sr(Y,ee-Se),sr(Y-q,ee),sr(Y-q,ee-Se));else if($.shape===1){var mt=Math.min(Math.abs(ee),Math.abs(ee-Se))/Math.min(Math.abs(Y),Math.abs(Y-q)),pt=Nr(q,Se,Y,ee,!0),Pt=pt[0],Kt=pt[1];ke=sr(Pt-Y,(Kt-ee)/mt),et=mt*ke}break;case 1:$.shape===0?ke=et=Math.max(Math.abs(Y),Math.abs(Y-q),Math.abs(ee),Math.abs(ee-Se)):$.shape===1&&(ke=Math.max(Math.abs(Y),Math.abs(Y-q)),et=Math.max(Math.abs(ee),Math.abs(ee-Se)));break;case 3:if($.shape===0)ke=et=Math.max(sr(Y,ee),sr(Y,ee-Se),sr(Y-q,ee),sr(Y-q,ee-Se));else if($.shape===1){var mt=Math.max(Math.abs(ee),Math.abs(ee-Se))/Math.max(Math.abs(Y),Math.abs(Y-q)),qt=Nr(q,Se,Y,ee,!1),Pt=qt[0],Kt=qt[1];ke=sr(Pt-Y,(Kt-ee)/mt),et=mt*ke}break}return Array.isArray($.size)&&(ke=ot($.size[0],q),et=$.size.length===2?ot($.size[1],Se):ke),[ke,et]},Fr=function($,Y){var ee=Yt(180),q=[];return Ve(Y).forEach(function(Se,ke){if(ke===0){var et=Se[0];if(et.type===20&&et.value==="to"){ee=Bn(Se);return}else if(cn(et)){ee=tn.parse($,et);return}}var mt=Fn($,Se);q.push(mt)}),{angle:ee,stops:q,type:1}},ei=function($,Y){var ee=Yt(180),q=[];return Ve(Y).forEach(function(Se,ke){if(ke===0){var et=Se[0];if(et.type===20&&["top","left","right","bottom"].indexOf(et.value)!==-1){ee=Bn(Se);return}else if(cn(et)){ee=(tn.parse($,et)+Yt(270))%Yt(360);return}}var mt=Fn($,Se);q.push(mt)}),{angle:ee,stops:q,type:1}},Kr=function($,Y){var ee=Yt(180),q=[],Se=1,ke=0,et=3,mt=[];return Ve(Y).forEach(function(pt,Pt){var Kt=pt[0];if(Pt===0){if(Qi(Kt)&&Kt.value==="linear"){Se=1;return}else if(Qi(Kt)&&Kt.value==="radial"){Se=2;return}}if(Kt.type===18){if(Kt.name==="from"){var qt=en.parse($,Kt.values[0]);q.push({stop:Oe,color:qt})}else if(Kt.name==="to"){var qt=en.parse($,Kt.values[0]);q.push({stop:tt,color:qt})}else if(Kt.name==="color-stop"){var nn=Kt.values.filter(ut);if(nn.length===2){var qt=en.parse($,nn[1]),br=nn[0];ms(br)&&q.push({stop:{type:16,number:br.number*100,flags:br.flags},color:qt})}}}}),Se===1?{angle:(ee+Yt(180))%Yt(360),stops:q,type:Se}:{size:et,shape:ke,stops:q,position:mt,type:Se}},yr="closest-side",On="farthest-side",rr="closest-corner",Pr="farthest-corner",jn="circle",$n="ellipse",ir="cover",Jn="contain",Wn=function($,Y){var ee=0,q=3,Se=[],ke=[];return Ve(Y).forEach(function(et,mt){var pt=!0;if(mt===0){var Pt=!1;pt=et.reduce(function(qt,nn){if(Pt)if(Qi(nn))switch(nn.value){case"center":return ke.push(at),qt;case"top":case"left":return ke.push(Oe),qt;case"right":case"bottom":return ke.push(tt),qt}else(Be(nn)||Je(nn))&&ke.push(nn);else if(Qi(nn))switch(nn.value){case jn:return ee=0,!1;case $n:return ee=1,!1;case"at":return Pt=!0,!1;case yr:return q=0,!1;case ir:case On:return q=1,!1;case Jn:case rr:return q=2,!1;case Pr:return q=3,!1}else if(Je(nn)||Be(nn))return Array.isArray(q)||(q=[]),q.push(nn),!1;return qt},pt)}if(pt){var Kt=Fn($,et);Se.push(Kt)}}),{size:q,shape:ee,stops:Se,position:ke,type:2}},pn=function($,Y){var ee=0,q=3,Se=[],ke=[];return Ve(Y).forEach(function(et,mt){var pt=!0;if(mt===0?pt=et.reduce(function(Kt,qt){if(Qi(qt))switch(qt.value){case"center":return ke.push(at),!1;case"top":case"left":return ke.push(Oe),!1;case"right":case"bottom":return ke.push(tt),!1}else if(Be(qt)||Je(qt))return ke.push(qt),!1;return Kt},pt):mt===1&&(pt=et.reduce(function(Kt,qt){if(Qi(qt))switch(qt.value){case jn:return ee=0,!1;case $n:return ee=1,!1;case Jn:case yr:return q=0,!1;case On:return q=1,!1;case rr:return q=2,!1;case ir:case Pr:return q=3,!1}else if(Je(qt)||Be(qt))return Array.isArray(q)||(q=[]),q.push(qt),!1;return Kt},pt)),pt){var Pt=Fn($,et);Se.push(Pt)}}),{size:q,shape:ee,stops:Se,position:ke,type:2}},sn=function($){return $.type===1},zn=function($){return $.type===2},Yn={name:"image",parse:function($,Y){if(Y.type===22){var ee={url:Y.value,type:0};return $.cache.addImage(Y.value),ee}if(Y.type===18){var q=mr[Y.name];if(typeof q=="undefined")throw new Error('Attempting to parse an unsupported image function "'+Y.name+'"');return q($,Y.values)}throw new Error("Unsupported image type "+Y.type)}};function _n($){return!($.type===20&&$.value==="none")&&($.type!==18||!!mr[$.name])}var mr={"linear-gradient":Fr,"-moz-linear-gradient":ei,"-ms-linear-gradient":ei,"-o-linear-gradient":ei,"-webkit-linear-gradient":ei,"radial-gradient":Wn,"-moz-radial-gradient":pn,"-ms-radial-gradient":pn,"-o-radial-gradient":pn,"-webkit-radial-gradient":pn,"-webkit-gradient":Kr},Qr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function($,Y){if(Y.length===0)return[];var ee=Y[0];return ee.type===20&&ee.value==="none"?[]:Y.filter(function(q){return ut(q)&&_n(q)}).map(function(q){return Yn.parse($,q)})}},Vi={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function($,Y){return Y.map(function(ee){if(Qi(ee))switch(ee.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ri={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function($,Y){return Ve(Y).map(function(ee){return ee.filter(Be)}).map(Xe)}},ri={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function($,Y){return Ve(Y).map(function(ee){return ee.filter(Qi).map(function(q){return q.value}).join(" ")}).map(ga)}},ga=function($){switch($){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}},na;(function($){$.AUTO="auto",$.CONTAIN="contain",$.COVER="cover"})(na||(na={}));var Ki={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function($,Y){return Ve(Y).map(function(ee){return ee.filter(no)})}},no=function($){return Qi($)||Be($)},ro=function($){return{name:"border-"+$+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Da=ro("top"),Io=ro("right"),Mo=ro("bottom"),io=ro("left"),Ia=function($){return{name:"border-radius-"+$,initialValue:"0 0",prefix:!1,type:1,parse:function(Y,ee){return Xe(ee.filter(Be))}}},ka=Ia("top-left"),So=Ia("top-right"),co=Ia("bottom-right"),ho=Ia("bottom-left"),Qa=function($){return{name:"border-"+$+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(Y,ee){switch(ee){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ma=Qa("top"),Va=Qa("right"),Ka=Qa("bottom"),go=Qa("left"),Fa=function($){return{name:"border-"+$+"-width",initialValue:"0",type:0,prefix:!1,parse:function(Y,ee){return wo(ee)?ee.number:0}}},yo=Fa("top"),Xi=Fa("right"),ao=Fa("bottom"),Lo=Fa("left"),Wa={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ta={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function($,Y){switch(Y){case"rtl":return 1;case"ltr":default:return 0}}},fo={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function($,Y){return Y.filter(Qi).reduce(function(ee,q){return ee|$o(q.value)},0)}},$o=function($){switch($){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},qo={name:"float",initialValue:"none",prefix:!1,type:2,parse:function($,Y){switch(Y){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Go={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function($,Y){return Y.type===20&&Y.value==="normal"?0:Y.type===17||Y.type===15?Y.number:0}},Xa;(function($){$.NORMAL="normal",$.STRICT="strict"})(Xa||(Xa={}));var es={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function($,Y){switch(Y){case"strict":return Xa.STRICT;case"normal":default:return Xa.NORMAL}}},ya={name:"line-height",initialValue:"normal",prefix:!1,type:4},ki=function($,Y){return Qi($)&&$.value==="normal"?1.2*Y:$.type===17?Y*$.number:Be($)?ot($,Y):Y},la={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function($,Y){return Y.type===20&&Y.value==="none"?null:Yn.parse($,Y)}},ji={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function($,Y){switch(Y){case"inside":return 0;case"outside":default:return 1}}},Ya={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function($,Y){switch(Y){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}}},bo=function($){return{name:"margin-"+$,initialValue:"0",prefix:!1,type:4}},La=bo("top"),Vo=bo("right"),Po=bo("bottom"),Xo=bo("left"),Ba={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function($,Y){return Y.filter(Qi).map(function(ee){switch(ee.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},In={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function($,Y){switch(Y){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ja=function($){return{name:"padding-"+$,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},vs=Ja("top"),ts=Ja("right"),ci=Ja("bottom"),Ur=Ja("left"),ua={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function($,Y){switch(Y){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},xi={name:"position",initialValue:"static",prefix:!1,type:2,parse:function($,Y){switch(Y){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},To={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function($,Y){return Y.length===1&&_o(Y[0],"none")?[]:Ve(Y).map(function(ee){for(var q={color:wn.TRANSPARENT,offsetX:Oe,offsetY:Oe,blur:Oe},Se=0,ke=0;ke<ee.length;ke++){var et=ee[ke];Je(et)?(Se===0?q.offsetX=et:Se===1?q.offsetY=et:q.blur=et,Se++):q.color=en.parse($,et)}return q})}},Za={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function($,Y){switch(Y){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Eo={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function($,Y){if(Y.type===20&&Y.value==="none")return null;if(Y.type===18){var ee=Uo[Y.name];if(typeof ee=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+Y.name+'"');return ee(Y.values)}return null}},oo=function($){var Y=$.filter(function(ee){return ee.type===17}).map(function(ee){return ee.number});return Y.length===6?Y:null},hn=function($){var Y=$.filter(function(pt){return pt.type===17}).map(function(pt){return pt.number}),ee=Y[0],q=Y[1];Y[2],Y[3];var Se=Y[4],ke=Y[5];Y[6],Y[7],Y[8],Y[9],Y[10],Y[11];var et=Y[12],mt=Y[13];return Y[14],Y[15],Y.length===16?[ee,q,Se,ke,et,mt]:null},Uo={matrix:oo,matrix3d:hn},Ss={type:16,number:50,flags:li},gs=[Ss,Ss],$i={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function($,Y){var ee=Y.filter(Be);return ee.length!==2?gs:[ee[0],ee[1]]}},Sn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function($,Y){switch(Y){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Ft;(function($){$.NORMAL="normal",$.BREAK_ALL="break-all",$.KEEP_ALL="keep-all"})(Ft||(Ft={}));for(var $t={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function($,Y){switch(Y){case"break-all":return Ft.BREAK_ALL;case"keep-all":return Ft.KEEP_ALL;case"normal":default:return Ft.NORMAL}}},Cn={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function($,Y){if(Y.type===20)return{auto:!0,order:0};if(ms(Y))return{auto:!1,order:Y.number};throw new Error("Invalid z-index number parsed")}},Zt={name:"time",parse:function($,Y){if(Y.type===15)switch(Y.unit.toLowerCase()){case"s":return 1e3*Y.number;case"ms":return Y.number}throw new Error("Unsupported time type")}},qn={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function($,Y){return ms(Y)?Y.number:1}},or={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function($,Y){return Y.filter(Qi).map(function(ee){switch(ee.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(ee){return ee!==0})}},$r={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function($,Y){var ee=[],q=[];return Y.forEach(function(Se){switch(Se.type){case 20:case 0:ee.push(Se.value);break;case 17:ee.push(Se.number.toString());break;case 4:q.push(ee.join(" ")),ee.length=0;break}}),ee.length&&q.push(ee.join(" ")),q.map(function(Se){return Se.indexOf(" ")===-1?Se:"'"+Se+"'"})}},vn={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ra={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function($,Y){if(ms(Y))return Y.number;if(Qi(Y))switch(Y.value){case"bold":return 700;case"normal":default:return 400}return 400}},Pa={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function($,Y){return Y.filter(Qi).map(function(ee){return ee.value})}},Li={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function($,Y){switch(Y){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},di=function($,Y){return($&Y)!==0},Oa={name:"content",initialValue:"none",type:1,prefix:!1,parse:function($,Y){if(Y.length===0)return[];var ee=Y[0];return ee.type===20&&ee.value==="none"?[]:Y}},$a={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function($,Y){if(Y.length===0)return null;var ee=Y[0];if(ee.type===20&&ee.value==="none")return null;for(var q=[],Se=Y.filter(Hs),ke=0;ke<Se.length;ke++){var et=Se[ke],mt=Se[ke+1];if(et.type===20){var pt=mt&&ms(mt)?mt.number:1;q.push({counter:et.value,increment:pt})}}return q}},qi={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function($,Y){if(Y.length===0)return[];for(var ee=[],q=Y.filter(Hs),Se=0;Se<q.length;Se++){var ke=q[Se],et=q[Se+1];if(Qi(ke)&&ke.value!=="none"){var mt=et&&ms(et)?et.number:0;ee.push({counter:ke.value,reset:mt})}}return ee}},Yi={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function($,Y){return Y.filter(wo).map(function(ee){return Zt.parse($,ee)})}},Aa={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function($,Y){if(Y.length===0)return null;var ee=Y[0];if(ee.type===20&&ee.value==="none")return null;var q=[],Se=Y.filter(_s);if(Se.length%2!==0)return null;for(var ke=0;ke<Se.length;ke+=2){var et=Se[ke].value,mt=Se[ke+1].value;q.push({open:et,close:mt})}return q}},ko=function($,Y,ee){if(!$)return"";var q=$[Math.min(Y,$.length-1)];return q?ee?q.open:q.close:""},Fo={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function($,Y){return Y.length===1&&_o(Y[0],"none")?[]:Ve(Y).map(function(ee){for(var q={color:255,offsetX:Oe,offsetY:Oe,blur:Oe,spread:Oe,inset:!1},Se=0,ke=0;ke<ee.length;ke++){var et=ee[ke];_o(et,"inset")?q.inset=!0:Je(et)?(Se===0?q.offsetX=et:Se===1?q.offsetY=et:Se===2?q.blur=et:q.spread=et,Se++):q.color=en.parse($,et)}return q})}},No={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function($,Y){var ee=[0,1,2],q=[];return Y.filter(Qi).forEach(function(Se){switch(Se.value){case"stroke":q.push(1);break;case"fill":q.push(0);break;case"markers":q.push(2);break}}),ee.forEach(function(Se){q.indexOf(Se)===-1&&q.push(Se)}),q}},jo={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Ts={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function($,Y){return wo(Y)?Y.number:0}},hl=function(){function $(Y,ee){var q,Se;this.animationDuration=lr(Y,Yi,ee.animationDuration),this.backgroundClip=lr(Y,er,ee.backgroundClip),this.backgroundColor=lr(Y,dn,ee.backgroundColor),this.backgroundImage=lr(Y,Qr,ee.backgroundImage),this.backgroundOrigin=lr(Y,Vi,ee.backgroundOrigin),this.backgroundPosition=lr(Y,Ri,ee.backgroundPosition),this.backgroundRepeat=lr(Y,ri,ee.backgroundRepeat),this.backgroundSize=lr(Y,Ki,ee.backgroundSize),this.borderTopColor=lr(Y,Da,ee.borderTopColor),this.borderRightColor=lr(Y,Io,ee.borderRightColor),this.borderBottomColor=lr(Y,Mo,ee.borderBottomColor),this.borderLeftColor=lr(Y,io,ee.borderLeftColor),this.borderTopLeftRadius=lr(Y,ka,ee.borderTopLeftRadius),this.borderTopRightRadius=lr(Y,So,ee.borderTopRightRadius),this.borderBottomRightRadius=lr(Y,co,ee.borderBottomRightRadius),this.borderBottomLeftRadius=lr(Y,ho,ee.borderBottomLeftRadius),this.borderTopStyle=lr(Y,Ma,ee.borderTopStyle),this.borderRightStyle=lr(Y,Va,ee.borderRightStyle),this.borderBottomStyle=lr(Y,Ka,ee.borderBottomStyle),this.borderLeftStyle=lr(Y,go,ee.borderLeftStyle),this.borderTopWidth=lr(Y,yo,ee.borderTopWidth),this.borderRightWidth=lr(Y,Xi,ee.borderRightWidth),this.borderBottomWidth=lr(Y,ao,ee.borderBottomWidth),this.borderLeftWidth=lr(Y,Lo,ee.borderLeftWidth),this.boxShadow=lr(Y,Fo,ee.boxShadow),this.color=lr(Y,Wa,ee.color),this.direction=lr(Y,Ta,ee.direction),this.display=lr(Y,fo,ee.display),this.float=lr(Y,qo,ee.cssFloat),this.fontFamily=lr(Y,$r,ee.fontFamily),this.fontSize=lr(Y,vn,ee.fontSize),this.fontStyle=lr(Y,Li,ee.fontStyle),this.fontVariant=lr(Y,Pa,ee.fontVariant),this.fontWeight=lr(Y,ra,ee.fontWeight),this.letterSpacing=lr(Y,Go,ee.letterSpacing),this.lineBreak=lr(Y,es,ee.lineBreak),this.lineHeight=lr(Y,ya,ee.lineHeight),this.listStyleImage=lr(Y,la,ee.listStyleImage),this.listStylePosition=lr(Y,ji,ee.listStylePosition),this.listStyleType=lr(Y,Ya,ee.listStyleType),this.marginTop=lr(Y,La,ee.marginTop),this.marginRight=lr(Y,Vo,ee.marginRight),this.marginBottom=lr(Y,Po,ee.marginBottom),this.marginLeft=lr(Y,Xo,ee.marginLeft),this.opacity=lr(Y,qn,ee.opacity);var ke=lr(Y,Ba,ee.overflow);this.overflowX=ke[0],this.overflowY=ke[ke.length>1?1:0],this.overflowWrap=lr(Y,In,ee.overflowWrap),this.paddingTop=lr(Y,vs,ee.paddingTop),this.paddingRight=lr(Y,ts,ee.paddingRight),this.paddingBottom=lr(Y,ci,ee.paddingBottom),this.paddingLeft=lr(Y,Ur,ee.paddingLeft),this.paintOrder=lr(Y,No,ee.paintOrder),this.position=lr(Y,xi,ee.position),this.textAlign=lr(Y,ua,ee.textAlign),this.textDecorationColor=lr(Y,or,(q=ee.textDecorationColor)!==null&&q!==void 0?q:ee.color),this.textDecorationLine=lr(Y,fr,(Se=ee.textDecorationLine)!==null&&Se!==void 0?Se:ee.textDecoration),this.textShadow=lr(Y,To,ee.textShadow),this.textTransform=lr(Y,Za,ee.textTransform),this.transform=lr(Y,Eo,ee.transform),this.transformOrigin=lr(Y,$i,ee.transformOrigin),this.visibility=lr(Y,Sn,ee.visibility),this.webkitTextStrokeColor=lr(Y,jo,ee.webkitTextStrokeColor),this.webkitTextStrokeWidth=lr(Y,Ts,ee.webkitTextStrokeWidth),this.wordBreak=lr(Y,$t,ee.wordBreak),this.zIndex=lr(Y,Cn,ee.zIndex)}return $.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},$.prototype.isTransparent=function(){return bn(this.backgroundColor)},$.prototype.isTransformed=function(){return this.transform!==null},$.prototype.isPositioned=function(){return this.position!==0},$.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},$.prototype.isFloating=function(){return this.float!==0},$.prototype.isInlineLevel=function(){return di(this.display,4)||di(this.display,33554432)||di(this.display,268435456)||di(this.display,536870912)||di(this.display,67108864)||di(this.display,134217728)},$}(),fl=function(){function $(Y,ee){this.content=lr(Y,Oa,ee.content),this.quotes=lr(Y,Aa,ee.quotes)}return $}(),Qs=function(){function $(Y,ee){this.counterIncrement=lr(Y,$a,ee.counterIncrement),this.counterReset=lr(Y,qi,ee.counterReset)}return $}(),lr=function($,Y,ee){var q=new dl,Se=ee!==null&&typeof ee!="undefined"?ee.toString():Y.initialValue;q.write(Se);var ke=new $s(q.read());switch(Y.type){case 2:var et=ke.parseComponentValue();return Y.parse($,Qi(et)?et.value:Y.initialValue);case 0:return Y.parse($,ke.parseComponentValue());case 1:return Y.parse($,ke.parseComponentValues());case 4:return ke.parseComponentValue();case 3:switch(Y.format){case"angle":return tn.parse($,ke.parseComponentValue());case"color":return en.parse($,ke.parseComponentValue());case"image":return Yn.parse($,ke.parseComponentValue());case"length":var mt=ke.parseComponentValue();return Je(mt)?mt:Oe;case"length-percentage":var pt=ke.parseComponentValue();return Be(pt)?pt:Oe;case"time":return Zt.parse($,ke.parseComponentValue())}break}},ys="data-html2canvas-debug",Ks=function($){var Y=$.getAttribute(ys);switch(Y){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Bs=function($,Y){var ee=Ks($);return ee===1||Y===ee},Ao=function(){function $(Y,ee){if(this.context=Y,this.textNodes=[],this.elements=[],this.flags=0,Bs(ee,3))debugger;this.styles=new hl(Y,window.getComputedStyle(ee,null)),Wl(ee)&&(this.styles.animationDuration.some(function(q){return q>0})&&(ee.style.animationDuration="0s"),this.styles.transform!==null&&(ee.style.transform="none")),this.bounds=m(this.context,ee),Bs(ee,4)&&(this.flags|=16)}return $}(),bs="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ws="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ms=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Es=0;Es<Ws.length;Es++)Ms[Ws.charCodeAt(Es)]=Es;for(var Na=function($){var Y=$.length*.75,ee=$.length,q,Se=0,ke,et,mt,pt;$[$.length-1]==="="&&(Y--,$[$.length-2]==="="&&Y--);var Pt=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Y):new Array(Y),Kt=Array.isArray(Pt)?Pt:new Uint8Array(Pt);for(q=0;q<ee;q+=4)ke=Ms[$.charCodeAt(q)],et=Ms[$.charCodeAt(q+1)],mt=Ms[$.charCodeAt(q+2)],pt=Ms[$.charCodeAt(q+3)],Kt[Se++]=ke<<2|et>>4,Kt[Se++]=(et&15)<<4|mt>>2,Kt[Se++]=(mt&3)<<6|pt&63;return Pt},zs=function($){for(var Y=$.length,ee=[],q=0;q<Y;q+=2)ee.push($[q+1]<<8|$[q]);return ee},ds=function($){for(var Y=$.length,ee=[],q=0;q<Y;q+=4)ee.push($[q+3]<<24|$[q+2]<<16|$[q+1]<<8|$[q]);return ee},Ho=5,Ls=6+5,Qo=2,Yr=Ls-Ho,Rr=65536>>Ho,Ti=1<<Ho,Or=Ti-1,Kn=1024>>Ho,Pn=Rr+Kn,xn=Pn,tr=2048>>6,Tn=xn+tr,_r=65536>>Ls,Mr=1<<Yr,jr=Mr-1,Pi=function($,Y,ee){return $.slice?$.slice(Y,ee):new Uint16Array(Array.prototype.slice.call($,Y,ee))},Ji=function($,Y,ee){return $.slice?$.slice(Y,ee):new Uint32Array(Array.prototype.slice.call($,Y,ee))},ba=function($,Y){var ee=Na($),q=Array.isArray(ee)?ds(ee):new Uint32Array(ee),Se=Array.isArray(ee)?zs(ee):new Uint16Array(ee),ke=24,et=Pi(Se,ke/2,q[4]/2),mt=q[5]===2?Pi(Se,(ke+q[4])/2):Ji(q,Math.ceil((ke+q[4])/4));return new pa(q[0],q[1],q[2],q[3],et,mt)},pa=function(){function $(Y,ee,q,Se,ke,et){this.initialValue=Y,this.errorValue=ee,this.highStart=q,this.highValueIndex=Se,this.index=ke,this.data=et}return $.prototype.get=function(Y){var ee;if(Y>=0){if(Y<55296||Y>56319&&Y<=65535)return ee=this.index[Y>>Ho],ee=(ee<<Qo)+(Y&Or),this.data[ee];if(Y<=65535)return ee=this.index[Rr+(Y-55296>>Ho)],ee=(ee<<Qo)+(Y&Or),this.data[ee];if(Y<this.highStart)return ee=Tn-_r+(Y>>Ls),ee=this.index[ee],ee+=Y>>Ho&jr,ee=this.index[ee],ee=(ee<<Qo)+(Y&Or),this.data[ee];if(Y<=1114111)return this.data[this.highValueIndex]}return this.errorValue},$}(),Ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ko=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),po=0;po<Ea.length;po++)Ko[Ea.charCodeAt(po)]=po;var Cs=1,el=2,ns=3,hs=4,tl=5,nl=7,Zl=8,$l=9,ql=10,mu=11,Bo=12,eu=13,vu=14,tu=15,Wu=function($){for(var Y=[],ee=0,q=$.length;ee<q;){var Se=$.charCodeAt(ee++);if(Se>=55296&&Se<=56319&&ee<q){var ke=$.charCodeAt(ee++);(ke&64512)===56320?Y.push(((Se&1023)<<10)+(ke&1023)+65536):(Y.push(Se),ee--)}else Y.push(Se)}return Y},gu=function(){for(var $=[],Y=0;Y<arguments.length;Y++)$[Y]=arguments[Y];if(String.fromCodePoint)return String.fromCodePoint.apply(String,$);var ee=$.length;if(!ee)return"";for(var q=[],Se=-1,ke="";++Se<ee;){var et=$[Se];et<=65535?q.push(et):(et-=65536,q.push((et>>10)+55296,et%1024+56320)),(Se+1===ee||q.length>16384)&&(ke+=String.fromCharCode.apply(String,q),q.length=0)}return ke},yu=ba(bs),rs="\xD7",nu="\xF7",zu=function($){return yu.get($)},Gu=function($,Y,ee){var q=ee-2,Se=Y[q],ke=Y[ee-1],et=Y[ee];if(ke===el&&et===ns)return rs;if(ke===el||ke===ns||ke===hs)return nu;if(et===el||et===ns||et===hs)return nu;if(ke===Zl&&[Zl,$l,mu,Bo].indexOf(et)!==-1)return rs;if((ke===mu||ke===$l)&&(et===$l||et===ql))return rs;if((ke===Bo||ke===ql)&&et===ql)return rs;if(et===eu||et===tl)return rs;if(et===nl)return rs;if(ke===Cs)return rs;if(ke===eu&&et===vu){for(;Se===tl;)Se=Y[--q];if(Se===vu)return rs}if(ke===tu&&et===tu){for(var mt=0;Se===tu;)mt++,Se=Y[--q];if(mt%2===0)return rs}return nu},Gs=function($){var Y=Wu($),ee=Y.length,q=0,Se=0,ke=Y.map(zu);return{next:function(){if(q>=ee)return{done:!0,value:null};for(var et=rs;q<ee&&(et=Gu(Y,ke,++q))===rs;);if(et!==rs||q===ee){var mt=gu.apply(null,Y.slice(Se,q));return Se=q,{value:mt,done:!1}}return{done:!0,value:null}}}},Cl=function($){for(var Y=Gs($),ee=[],q;!(q=Y.next()).done;)q.value&&ee.push(q.value.slice());return ee},kl=function($){var Y=123;if($.createRange){var ee=$.createRange();if(ee.getBoundingClientRect){var q=$.createElement("boundtest");q.style.height=Y+"px",q.style.display="block",$.body.appendChild(q),ee.selectNode(q);var Se=ee.getBoundingClientRect(),ke=Math.round(Se.height);if($.body.removeChild(q),ke===Y)return!0}}return!1},xl=function($){var Y=$.createElement("boundtest");Y.style.width="50px",Y.style.display="block",Y.style.fontSize="12px",Y.style.letterSpacing="0px",Y.style.wordSpacing="0px",$.body.appendChild(Y);var ee=$.createRange();Y.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var q=Y.firstChild,Se=i(q.data).map(function(pt){return n(pt)}),ke=0,et={},mt=Se.every(function(pt,Pt){ee.setStart(q,ke),ee.setEnd(q,ke+pt.length);var Kt=ee.getBoundingClientRect();ke+=pt.length;var qt=Kt.x>et.x||Kt.y>et.y;return et=Kt,Pt===0?!0:qt});return $.body.removeChild(Y),mt},Ps=function(){return typeof new Image().crossOrigin!="undefined"},Vu=function(){return typeof new XMLHttpRequest().responseType=="string"},Xu=function($){var Y=new Image,ee=$.createElement("canvas"),q=ee.getContext("2d");if(!q)return!1;Y.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{q.drawImage(Y,0,0),ee.toDataURL()}catch(Se){return!1}return!0},rl=function($){return $[0]===0&&$[1]===255&&$[2]===0&&$[3]===255},bu=function($){var Y=$.createElement("canvas"),ee=100;Y.width=ee,Y.height=ee;var q=Y.getContext("2d");if(!q)return Promise.reject(!1);q.fillStyle="rgb(0, 255, 0)",q.fillRect(0,0,ee,ee);var Se=new Image,ke=Y.toDataURL();Se.src=ke;var et=Fl(ee,ee,0,0,Se);return q.fillStyle="red",q.fillRect(0,0,ee,ee),ru(et).then(function(mt){q.drawImage(mt,0,0);var pt=q.getImageData(0,0,ee,ee).data;q.fillStyle="red",q.fillRect(0,0,ee,ee);var Pt=$.createElement("div");return Pt.style.backgroundImage="url("+ke+")",Pt.style.height=ee+"px",rl(pt)?ru(Fl(ee,ee,0,0,Pt)):Promise.reject(!1)}).then(function(mt){return q.drawImage(mt,0,0),rl(q.getImageData(0,0,ee,ee).data)}).catch(function(){return!1})},Fl=function($,Y,ee,q,Se){var ke="http://www.w3.org/2000/svg",et=document.createElementNS(ke,"svg"),mt=document.createElementNS(ke,"foreignObject");return et.setAttributeNS(null,"width",$.toString()),et.setAttributeNS(null,"height",Y.toString()),mt.setAttributeNS(null,"width","100%"),mt.setAttributeNS(null,"height","100%"),mt.setAttributeNS(null,"x",ee.toString()),mt.setAttributeNS(null,"y",q.toString()),mt.setAttributeNS(null,"externalResourcesRequired","true"),et.appendChild(mt),mt.appendChild(Se),et},ru=function($){return new Promise(function(Y,ee){var q=new Image;q.onload=function(){return Y(q)},q.onerror=ee,q.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString($))})},qa={get SUPPORT_RANGE_BOUNDS(){var $=kl(document);return Object.defineProperty(qa,"SUPPORT_RANGE_BOUNDS",{value:$}),$},get SUPPORT_WORD_BREAKING(){var $=qa.SUPPORT_RANGE_BOUNDS&&xl(document);return Object.defineProperty(qa,"SUPPORT_WORD_BREAKING",{value:$}),$},get SUPPORT_SVG_DRAWING(){var $=Xu(document);return Object.defineProperty(qa,"SUPPORT_SVG_DRAWING",{value:$}),$},get SUPPORT_FOREIGNOBJECT_DRAWING(){var $=typeof Array.from=="function"&&typeof window.fetch=="function"?bu(document):Promise.resolve(!1);return Object.defineProperty(qa,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:$}),$},get SUPPORT_CORS_IMAGES(){var $=Ps();return Object.defineProperty(qa,"SUPPORT_CORS_IMAGES",{value:$}),$},get SUPPORT_RESPONSE_TYPE(){var $=Vu();return Object.defineProperty(qa,"SUPPORT_RESPONSE_TYPE",{value:$}),$},get SUPPORT_CORS_XHR(){var $="withCredentials"in new XMLHttpRequest;return Object.defineProperty(qa,"SUPPORT_CORS_XHR",{value:$}),$},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var $=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(qa,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:$}),$}},Os=function(){function $(Y,ee){this.text=Y,this.bounds=ee}return $}(),iu=function($,Y,ee,q){var Se=Eu(Y,ee),ke=[],et=0;return Se.forEach(function(mt){if(ee.textDecorationLine.length||mt.trim().length>0)if(qa.SUPPORT_RANGE_BOUNDS){var pt=Nl(q,et,mt.length).getClientRects();if(pt.length>1){var Pt=ou(mt),Kt=0;Pt.forEach(function(nn){ke.push(new Os(nn,w.fromDOMRectList($,Nl(q,Kt+et,nn.length).getClientRects()))),Kt+=nn.length})}else ke.push(new Os(mt,w.fromDOMRectList($,pt)))}else{var qt=q.splitText(mt.length);ke.push(new Os(mt,au($,q))),q=qt}else qa.SUPPORT_RANGE_BOUNDS||(q=q.splitText(mt.length));et+=mt.length}),ke},au=function($,Y){var ee=Y.ownerDocument;if(ee){var q=ee.createElement("html2canvaswrapper");q.appendChild(Y.cloneNode(!0));var Se=Y.parentNode;if(Se){Se.replaceChild(q,Y);var ke=m($,q);return q.firstChild&&Se.replaceChild(q.firstChild,q),ke}}return w.EMPTY},Nl=function($,Y,ee){var q=$.ownerDocument;if(!q)throw new Error("Node has no owner document");var Se=q.createRange();return Se.setStart($,Y),Se.setEnd($,Y+ee),Se},ou=function($){if(qa.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Y=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(Y.segment($)).map(function(ee){return ee.segment})}return Cl($)},wl=function($,Y){if(qa.SUPPORT_NATIVE_TEXT_SEGMENTATION){var ee=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(ee.segment($)).map(function(q){return q.segment})}return Cu($,Y)},Eu=function($,Y){return Y.letterSpacing!==0?ou($):wl($,Y)},Yu=[32,160,4961,65792,65793,4153,4241],Cu=function($,Y){for(var ee=Rn($,{lineBreak:Y.lineBreak,wordBreak:Y.overflowWrap==="break-word"?"break-word":Y.wordBreak}),q=[],Se,ke=function(){if(Se.value){var et=Se.value.slice(),mt=i(et),pt="";mt.forEach(function(Pt){Yu.indexOf(Pt)===-1?pt+=n(Pt):(pt.length&&q.push(pt),q.push(n(Pt)),pt="")}),pt.length&&q.push(pt)}};!(Se=ee.next()).done;)ke();return q},jl=function(){function $(Y,ee,q){this.text=Ju(ee.data,q.textTransform),this.textBounds=iu(Y,this.text,q,ee)}return $}(),Ju=function($,Y){switch(Y){case 1:return $.toLowerCase();case 3:return $.replace(Zu,_l);case 2:return $.toUpperCase();default:return $}},Zu=/(^|\s|:|-|\(|\))([a-z])/g,_l=function($,Y,ee){return $.length>0?Y+ee.toUpperCase():$},su=function($){G(Y,$);function Y(ee,q){var Se=$.call(this,ee,q)||this;return Se.src=q.currentSrc||q.src,Se.intrinsicWidth=q.naturalWidth,Se.intrinsicHeight=q.naturalHeight,Se.context.cache.addImage(Se.src),Se}return Y}(Ao),lu=function($){G(Y,$);function Y(ee,q){var Se=$.call(this,ee,q)||this;return Se.canvas=q,Se.intrinsicWidth=q.width,Se.intrinsicHeight=q.height,Se}return Y}(Ao),xu=function($){G(Y,$);function Y(ee,q){var Se=$.call(this,ee,q)||this,ke=new XMLSerializer,et=m(ee,q);return q.setAttribute("width",et.width+"px"),q.setAttribute("height",et.height+"px"),Se.svg="data:image/svg+xml,"+encodeURIComponent(ke.serializeToString(q)),Se.intrinsicWidth=q.width.baseVal.value,Se.intrinsicHeight=q.height.baseVal.value,Se.context.cache.addImage(Se.svg),Se}return Y}(Ao),Hl=function($){G(Y,$);function Y(ee,q){var Se=$.call(this,ee,q)||this;return Se.value=q.value,Se}return Y}(Ao),Ql=function($){G(Y,$);function Y(ee,q){var Se=$.call(this,ee,q)||this;return Se.start=q.start,Se.reversed=typeof q.reversed=="boolean"&&q.reversed===!0,Se}return Y}(Ao),$u=[{type:15,flags:0,unit:"px",number:3}],wu=[{type:16,flags:0,number:50}],_u=function($){return $.width>$.height?new w($.left+($.width-$.height)/2,$.top,$.height,$.height):$.width<$.height?new w($.left,$.top+($.height-$.width)/2,$.width,$.width):$},qu=function($){var Y=$.type===Sl?new Array($.value.length+1).join("\u2022"):$.value;return Y.length===0?$.placeholder||"":Y},Al="checkbox",Vs="radio",Sl="password",Su=707406591,Kl=function($){G(Y,$);function Y(ee,q){var Se=$.call(this,ee,q)||this;Se.type=q.type.toLowerCase(),Se.checked=q.checked,Se.value=qu(q),(Se.type===Al||Se.type===Vs)&&(Se.styles.backgroundColor=3739148031,Se.styles.borderTopColor=Se.styles.borderRightColor=Se.styles.borderBottomColor=Se.styles.borderLeftColor=2779096575,Se.styles.borderTopWidth=Se.styles.borderRightWidth=Se.styles.borderBottomWidth=Se.styles.borderLeftWidth=1,Se.styles.borderTopStyle=Se.styles.borderRightStyle=Se.styles.borderBottomStyle=Se.styles.borderLeftStyle=1,Se.styles.backgroundClip=[0],Se.styles.backgroundOrigin=[0],Se.bounds=_u(Se.bounds));switch(Se.type){case Al:Se.styles.borderTopRightRadius=Se.styles.borderTopLeftRadius=Se.styles.borderBottomRightRadius=Se.styles.borderBottomLeftRadius=$u;break;case Vs:Se.styles.borderTopRightRadius=Se.styles.borderTopLeftRadius=Se.styles.borderBottomRightRadius=Se.styles.borderBottomLeftRadius=wu;break}return Se}return Y}(Ao),Tu=function($){G(Y,$);function Y(ee,q){var Se=$.call(this,ee,q)||this,ke=q.options[q.selectedIndex||0];return Se.value=ke&&ke.text||"",Se}return Y}(Ao),Bu=function($){G(Y,$);function Y(ee,q){var Se=$.call(this,ee,q)||this;return Se.value=q.value,Se}return Y}(Ao),Ou=function($){G(Y,$);function Y(ee,q){var Se=$.call(this,ee,q)||this;Se.src=q.src,Se.width=parseInt(q.width,10)||0,Se.height=parseInt(q.height,10)||0,Se.backgroundColor=Se.styles.backgroundColor;try{if(q.contentWindow&&q.contentWindow.document&&q.contentWindow.document.documentElement){Se.tree=Ru(ee,q.contentWindow.document.documentElement);var ke=q.contentWindow.document.documentElement?An(ee,getComputedStyle(q.contentWindow.document.documentElement).backgroundColor):wn.TRANSPARENT,et=q.contentWindow.document.body?An(ee,getComputedStyle(q.contentWindow.document.body).backgroundColor):wn.TRANSPARENT;Se.backgroundColor=bn(ke)?bn(et)?Se.styles.backgroundColor:et:ke}}catch(mt){}return Se}return Y}(Ao),ec=["OL","UL","MENU"],Tl=function($,Y,ee,q){for(var Se=Y.firstChild,ke=void 0;Se;Se=ke)if(ke=Se.nextSibling,cu(Se)&&Se.data.trim().length>0)ee.textNodes.push(new jl($,Se,ee.styles));else if(pl(Se))if(hu(Se)&&Se.assignedNodes)Se.assignedNodes().forEach(function(mt){return Tl($,mt,ee,q)});else{var et=Du($,Se);et.styles.isVisible()&&(Iu(Se,et,q)?et.flags|=4:uu(et.styles)&&(et.flags|=2),ec.indexOf(Se.tagName)!==-1&&(et.flags|=8),ee.elements.push(et),Se.slot,Se.shadowRoot?Tl($,Se.shadowRoot,et,q):!Ol(Se)&&!Lu(Se)&&!Dl(Se)&&Tl($,Se,et,q))}},Du=function($,Y){return il(Y)?new su($,Y):Pu(Y)?new lu($,Y):Lu(Y)?new xu($,Y):Mu(Y)?new Hl($,Y):zl(Y)?new Ql($,Y):tc(Y)?new Kl($,Y):Dl(Y)?new Tu($,Y):Ol(Y)?new Bu($,Y):fs(Y)?new Ou($,Y):new Ao($,Y)},Ru=function($,Y){var ee=Du($,Y);return ee.flags|=4,Tl($,Y,ee,ee),ee},Iu=function($,Y,ee){return Y.styles.isPositionedWithZIndex()||Y.styles.opacity<1||Y.styles.isTransformed()||ma($)&&ee.styles.isTransparent()},uu=function($){return $.isPositioned()||$.isFloating()},cu=function($){return $.nodeType===Node.TEXT_NODE},pl=function($){return $.nodeType===Node.ELEMENT_NODE},Wl=function($){return pl($)&&typeof $.style!="undefined"&&!Us($)},Us=function($){return typeof $.className=="object"},Mu=function($){return $.tagName==="LI"},zl=function($){return $.tagName==="OL"},tc=function($){return $.tagName==="INPUT"},nc=function($){return $.tagName==="HTML"},Lu=function($){return $.tagName==="svg"},ma=function($){return $.tagName==="BODY"},Pu=function($){return $.tagName==="CANVAS"},Gl=function($){return $.tagName==="VIDEO"},il=function($){return $.tagName==="IMG"},fs=function($){return $.tagName==="IFRAME"},Bl=function($){return $.tagName==="STYLE"},du=function($){return $.tagName==="SCRIPT"},Ol=function($){return $.tagName==="TEXTAREA"},Dl=function($){return $.tagName==="SELECT"},hu=function($){return $.tagName==="SLOT"},fu=function($){return $.tagName.indexOf("-")>0},Uu=function(){function $(){this.counters={}}return $.prototype.getCounterValue=function(Y){var ee=this.counters[Y];return ee&&ee.length?ee[ee.length-1]:1},$.prototype.getCounterValues=function(Y){var ee=this.counters[Y];return ee||[]},$.prototype.pop=function(Y){var ee=this;Y.forEach(function(q){return ee.counters[q].pop()})},$.prototype.parse=function(Y){var ee=this,q=Y.counterIncrement,Se=Y.counterReset,ke=!0;q!==null&&q.forEach(function(mt){var pt=ee.counters[mt.counter];pt&&mt.increment!==0&&(ke=!1,pt.length||pt.push(1),pt[Math.max(0,pt.length-1)]+=mt.increment)});var et=[];return ke&&Se.forEach(function(mt){var pt=ee.counters[mt.counter];et.push(mt.counter),pt||(pt=ee.counters[mt.counter]=[]),pt.push(mt.reset)}),et},$}(),ku={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"]},Vl={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"]},Fu={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"]},ea={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"]},al=function($,Y,ee,q,Se,ke){return $<Y||$>ee?P($,Se,ke.length>0):q.integers.reduce(function(et,mt,pt){for(;$>=mt;)$-=mt,et+=q.values[pt];return et},"")+ke},Nu=function($,Y,ee,q){var Se="";do ee||$--,Se=q($)+Se,$/=Y;while($*Y>=Y);return Se},Ca=function($,Y,ee,q,Se){var ke=ee-Y+1;return($<0?"-":"")+(Nu(Math.abs($),ke,q,function(et){return n(Math.floor(et%ke)+Y)})+Se)},ol=function($,Y,ee){ee===void 0&&(ee=". ");var q=Y.length;return Nu(Math.abs($),q,!1,function(Se){return Y[Math.floor(Se%q)]})+ee},ks=1<<0,Xs=1<<1,ia=1<<2,Rl=1<<3,Fs=function($,Y,ee,q,Se,ke){if($<-9999||$>9999)return P($,4,Se.length>0);var et=Math.abs($),mt=Se;if(et===0)return Y[0]+mt;for(var pt=0;et>0&&pt<=4;pt++){var Pt=et%10;Pt===0&&di(ke,ks)&&mt!==""?mt=Y[Pt]+mt:Pt>1||Pt===1&&pt===0||Pt===1&&pt===1&&di(ke,Xs)||Pt===1&&pt===1&&di(ke,ia)&&$>100||Pt===1&&pt>1&&di(ke,Rl)?mt=Y[Pt]+(pt>0?ee[pt-1]:"")+mt:Pt===1&&pt>0&&(mt=ee[pt-1]+mt),et=Math.floor(et/10)}return($<0?q:"")+mt},ju="\u5341\u767E\u5343\u842C",Il="\u62FE\u4F70\u4EDF\u842C",t="\u30DE\u30A4\u30CA\u30B9",y="\uB9C8\uC774\uB108\uC2A4",P=function($,Y,ee){var q=ee?". ":"",Se=ee?"\u3001":"",ke=ee?", ":"",et=ee?" ":"";switch(Y){case 0:return"\u2022"+et;case 1:return"\u25E6"+et;case 2:return"\u25FE"+et;case 5:var mt=Ca($,48,57,!0,q);return mt.length<4?"0"+mt:mt;case 4:return ol($,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Se);case 6:return al($,1,3999,ku,3,q).toLowerCase();case 7:return al($,1,3999,ku,3,q);case 8:return Ca($,945,969,!1,q);case 9:return Ca($,97,122,!1,q);case 10:return Ca($,65,90,!1,q);case 11:return Ca($,1632,1641,!0,q);case 12:case 49:return al($,1,9999,Vl,3,q);case 35:return al($,1,9999,Vl,3,q).toLowerCase();case 13:return Ca($,2534,2543,!0,q);case 14:case 30:return Ca($,6112,6121,!0,q);case 15:return ol($,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Se);case 16:return ol($,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Se);case 17:case 48:return Fs($,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ju,"\u8CA0",Se,Xs|ia|Rl);case 47:return Fs($,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Il,"\u8CA0",Se,ks|Xs|ia|Rl);case 42:return Fs($,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ju,"\u8D1F",Se,Xs|ia|Rl);case 41:return Fs($,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Il,"\u8D1F",Se,ks|Xs|ia|Rl);case 26:return Fs($,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",t,Se,0);case 25:return Fs($,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",t,Se,ks|Xs|ia);case 31:return Fs($,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",y,ke,ks|Xs|ia);case 33:return Fs($,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",y,ke,0);case 32:return Fs($,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",y,ke,ks|Xs|ia);case 18:return Ca($,2406,2415,!0,q);case 20:return al($,1,19999,ea,3,q);case 21:return Ca($,2790,2799,!0,q);case 22:return Ca($,2662,2671,!0,q);case 22:return al($,1,10999,Fu,3,q);case 23:return ol($,"\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 ol($,"\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 Ca($,3302,3311,!0,q);case 28:return ol($,"\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",Se);case 29:return ol($,"\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",Se);case 34:return Ca($,3792,3801,!0,q);case 37:return Ca($,6160,6169,!0,q);case 38:return Ca($,4160,4169,!0,q);case 39:return Ca($,2918,2927,!0,q);case 40:return Ca($,1776,1785,!0,q);case 43:return Ca($,3046,3055,!0,q);case 44:return Ca($,3174,3183,!0,q);case 45:return Ca($,3664,3673,!0,q);case 46:return Ca($,3872,3881,!0,q);case 3:default:return Ca($,48,57,!0,q)}},L="data-html2canvas-ignore",H=function(){function $(Y,ee,q){if(this.context=Y,this.options=q,this.scrolledElements=[],this.referenceElement=ee,this.counters=new Uu,this.quoteDepth=0,!ee.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(ee.ownerDocument.documentElement,!1)}return $.prototype.toIFrame=function(Y,ee){var q=this,Se=we(Y,ee);if(!Se.contentWindow)return Promise.reject("Unable to find iframe window");var ke=Y.defaultView.pageXOffset,et=Y.defaultView.pageYOffset,mt=Se.contentWindow,pt=mt.document,Pt=Qe(Se).then(function(){return v(q,void 0,void 0,function(){var Kt,qt;return b(this,function(nn){switch(nn.label){case 0:return this.scrolledElements.forEach(on),mt&&(mt.scrollTo(ee.left,ee.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(mt.scrollY!==ee.top||mt.scrollX!==ee.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(mt.scrollX-ee.left,mt.scrollY-ee.top,0,0))),Kt=this.options.onclone,qt=this.clonedReferenceElement,typeof qt=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:pt.fonts&&pt.fonts.ready?[4,pt.fonts.ready]:[3,2];case 1:nn.sent(),nn.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Pe(pt)]:[3,4];case 3:nn.sent(),nn.label=4;case 4:return typeof Kt=="function"?[2,Promise.resolve().then(function(){return Kt(pt,qt)}).then(function(){return Se})]:[2,Se]}})})});return pt.open(),pt.write(Qt(document.doctype)+"<html></html>"),Nt(this.referenceElement.ownerDocument,ke,et),pt.replaceChild(pt.adoptNode(this.documentElement),pt.documentElement),pt.close(),Pt},$.prototype.createElementClone=function(Y){if(Bs(Y,2))debugger;if(Pu(Y))return this.createCanvasClone(Y);if(Gl(Y))return this.createVideoClone(Y);if(Bl(Y))return this.createStyleClone(Y);var ee=Y.cloneNode(!1);return il(ee)&&(il(Y)&&Y.currentSrc&&Y.currentSrc!==Y.src&&(ee.src=Y.currentSrc,ee.srcset=""),ee.loading==="lazy"&&(ee.loading="eager")),fu(ee)?this.createCustomElementClone(ee):ee},$.prototype.createCustomElementClone=function(Y){var ee=document.createElement("html2canvascustomelement");return wt(Y.style,ee),ee},$.prototype.createStyleClone=function(Y){try{var ee=Y.sheet;if(ee&&ee.cssRules){var q=[].slice.call(ee.cssRules,0).reduce(function(ke,et){return et&&typeof et.cssText=="string"?ke+et.cssText:ke},""),Se=Y.cloneNode(!1);return Se.textContent=q,Se}}catch(ke){if(this.context.logger.error("Unable to access cssRules property",ke),ke.name!=="SecurityError")throw ke}return Y.cloneNode(!1)},$.prototype.createCanvasClone=function(Y){var ee;if(this.options.inlineImages&&Y.ownerDocument){var q=Y.ownerDocument.createElement("img");try{return q.src=Y.toDataURL(),q}catch(Pt){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",Y)}}var Se=Y.cloneNode(!1);try{Se.width=Y.width,Se.height=Y.height;var ke=Y.getContext("2d"),et=Se.getContext("2d");if(et)if(!this.options.allowTaint&&ke)et.putImageData(ke.getImageData(0,0,Y.width,Y.height),0,0);else{var mt=(ee=Y.getContext("webgl2"))!==null&&ee!==void 0?ee:Y.getContext("webgl");if(mt){var pt=mt.getContextAttributes();(pt==null?void 0:pt.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",Y)}et.drawImage(Y,0,0)}return Se}catch(Pt){this.context.logger.info("Unable to clone canvas as it is tainted",Y)}return Se},$.prototype.createVideoClone=function(Y){var ee=Y.ownerDocument.createElement("canvas");ee.width=Y.offsetWidth,ee.height=Y.offsetHeight;var q=ee.getContext("2d");try{return q&&(q.drawImage(Y,0,0,ee.width,ee.height),this.options.allowTaint||q.getImageData(0,0,ee.width,ee.height)),ee}catch(ke){this.context.logger.info("Unable to clone video as it is tainted",Y)}var Se=Y.ownerDocument.createElement("canvas");return Se.width=Y.offsetWidth,Se.height=Y.offsetHeight,Se},$.prototype.appendChildNode=function(Y,ee,q){(!pl(ee)||!du(ee)&&!ee.hasAttribute(L)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(ee)))&&((!this.options.copyStyles||!pl(ee)||!Bl(ee))&&Y.appendChild(this.cloneNode(ee,q)))},$.prototype.cloneChildNodes=function(Y,ee,q){for(var Se=this,ke=Y.shadowRoot?Y.shadowRoot.firstChild:Y.firstChild;ke;ke=ke.nextSibling)if(pl(ke)&&hu(ke)&&typeof ke.assignedNodes=="function"){var et=ke.assignedNodes();et.length&&et.forEach(function(mt){return Se.appendChildNode(ee,mt,q)})}else this.appendChildNode(ee,ke,q)},$.prototype.cloneNode=function(Y,ee){if(cu(Y))return document.createTextNode(Y.data);if(!Y.ownerDocument)return Y.cloneNode(!1);var q=Y.ownerDocument.defaultView;if(q&&pl(Y)&&(Wl(Y)||Us(Y))){var Se=this.createElementClone(Y);Se.style.transitionProperty="none";var ke=q.getComputedStyle(Y),et=q.getComputedStyle(Y,":before"),mt=q.getComputedStyle(Y,":after");this.referenceElement===Y&&Wl(Se)&&(this.clonedReferenceElement=Se),ma(Se)&&pr(Se);var pt=this.counters.parse(new Qs(this.context,ke)),Pt=this.resolvePseudoContent(Y,Se,et,le.BEFORE);fu(Y)&&(ee=!0),Gl(Y)||this.cloneChildNodes(Y,Se,ee),Pt&&Se.insertBefore(Pt,Se.firstChild);var Kt=this.resolvePseudoContent(Y,Se,mt,le.AFTER);return Kt&&Se.appendChild(Kt),this.counters.pop(pt),(ke&&(this.options.copyStyles||Us(Y))&&!fs(Y)||ee)&&wt(ke,Se),(Y.scrollTop!==0||Y.scrollLeft!==0)&&this.scrolledElements.push([Se,Y.scrollLeft,Y.scrollTop]),(Ol(Y)||Dl(Y))&&(Ol(Se)||Dl(Se))&&(Se.value=Y.value),Se}return Y.cloneNode(!1)},$.prototype.resolvePseudoContent=function(Y,ee,q,Se){var ke=this;if(!q)return;var et=q.content,mt=ee.ownerDocument;if(!mt||!et||et==="none"||et==="-moz-alt-content"||q.display==="none")return;this.counters.parse(new Qs(this.context,q));var pt=new fl(this.context,q),Pt=mt.createElement("html2canvaspseudoelement");wt(q,Pt),pt.content.forEach(function(qt){if(qt.type===0)Pt.appendChild(mt.createTextNode(qt.value));else if(qt.type===22){var nn=mt.createElement("img");nn.src=qt.value,nn.style.opacity="1",Pt.appendChild(nn)}else if(qt.type===18){if(qt.name==="attr"){var br=qt.values.filter(Qi);br.length&&Pt.appendChild(mt.createTextNode(Y.getAttribute(br[0].value)||""))}else if(qt.name==="counter"){var Nn=qt.values.filter(ut),ur=Nn[0],qr=Nn[1];if(ur&&Qi(ur)){var vr=ke.counters.getCounterValue(ur.value),xr=qr&&Qi(qr)?Ya.parse(ke.context,qr.value):3;Pt.appendChild(mt.createTextNode(P(vr,xr,!1)))}}else if(qt.name==="counters"){var Wi=qt.values.filter(ut),ur=Wi[0],Ei=Wi[1],qr=Wi[2];if(ur&&Qi(ur)){var aa=ke.counters.getCounterValues(ur.value),Er=qr&&Qi(qr)?Ya.parse(ke.context,qr.value):3,ta=Ei&&Ei.type===0?Ei.value:"",oa=aa.map(function(as){return P(as,Er,!1)}).join(ta);Pt.appendChild(mt.createTextNode(oa))}}}else if(qt.type===20)switch(qt.value){case"open-quote":Pt.appendChild(mt.createTextNode(ko(pt.quotes,ke.quoteDepth++,!0)));break;case"close-quote":Pt.appendChild(mt.createTextNode(ko(pt.quotes,--ke.quoteDepth,!1)));break;default:Pt.appendChild(mt.createTextNode(qt.value))}}),Pt.className=Gn+" "+ar;var Kt=Se===le.BEFORE?" "+Gn:" "+ar;return Us(ee)?ee.className.baseValue+=Kt:ee.className+=Kt,Pt},$.destroy=function(Y){return Y.parentNode?(Y.parentNode.removeChild(Y),!0):!1},$}(),le;(function($){$[$.BEFORE=0]="BEFORE",$[$.AFTER=1]="AFTER"})(le||(le={}));var we=function($,Y){var ee=$.createElement("iframe");return ee.className="html2canvas-container",ee.style.visibility="hidden",ee.style.position="fixed",ee.style.left="-10000px",ee.style.top="0px",ee.style.border="0",ee.width=Y.width.toString(),ee.height=Y.height.toString(),ee.scrolling="no",ee.setAttribute(L,"true"),$.body.appendChild(ee),ee},De=function($){return new Promise(function(Y){if($.complete){Y();return}if(!$.src){Y();return}$.onload=Y,$.onerror=Y})},Pe=function($){return Promise.all([].slice.call($.images,0).map(De))},Qe=function($){return new Promise(function(Y,ee){var q=$.contentWindow;if(!q)return ee("No window assigned for iframe");var Se=q.document;q.onload=$.onload=function(){q.onload=$.onload=null;var ke=setInterval(function(){Se.body.childNodes.length>0&&Se.readyState==="complete"&&(clearInterval(ke),Y($))},50)}})},gt=["all","d","content"],wt=function($,Y){for(var ee=$.length-1;ee>=0;ee--){var q=$.item(ee);gt.indexOf(q)===-1&&Y.style.setProperty(q,$.getPropertyValue(q))}return Y},Qt=function($){var Y="";return $&&(Y+="<!DOCTYPE ",$.name&&(Y+=$.name),$.internalSubset&&(Y+=$.internalSubset),$.publicId&&(Y+='"'+$.publicId+'"'),$.systemId&&(Y+='"'+$.systemId+'"'),Y+=">"),Y},Nt=function($,Y,ee){$&&$.defaultView&&(Y!==$.defaultView.pageXOffset||ee!==$.defaultView.pageYOffset)&&$.defaultView.scrollTo(Y,ee)},on=function($){var Y=$[0],ee=$[1],q=$[2];Y.scrollLeft=ee,Y.scrollTop=q},yn=":before",Mn=":after",Gn="___html2canvas___pseudoelement_before",ar="___html2canvas___pseudoelement_after",Xn=`{
content: "" !important;
display: none !important;
}`,pr=function($){Hr($,"."+Gn+yn+Xn+`
.`+ar+Mn+Xn)},Hr=function($,Y){var ee=$.ownerDocument;if(ee){var q=ee.createElement("style");q.textContent=Y,$.appendChild(q)}},Lr=function(){function $(){}return $.getOrigin=function(Y){var ee=$._link;return ee?(ee.href=Y,ee.href=ee.href,ee.protocol+ee.hostname+ee.port):"about:blank"},$.isSameOrigin=function(Y){return $.getOrigin(Y)===$._origin},$.setContext=function(Y){$._link=Y.document.createElement("a"),$._origin=$.getOrigin(Y.location.href)},$._origin="about:blank",$}(),mi=function(){function $(Y,ee){this.context=Y,this._options=ee,this._cache={}}return $.prototype.addImage=function(Y){var ee=Promise.resolve();return this.has(Y)||(xo(Y)||Yo(Y))&&(this._cache[Y]=this.loadImage(Y)).catch(function(){}),ee},$.prototype.match=function(Y){return this._cache[Y]},$.prototype.loadImage=function(Y){return v(this,void 0,void 0,function(){var ee,q,Se,ke,et=this;return b(this,function(mt){switch(mt.label){case 0:return ee=Lr.isSameOrigin(Y),q=!Co(Y)&&this._options.useCORS===!0&&qa.SUPPORT_CORS_IMAGES&&!ee,Se=!Co(Y)&&!ee&&!xo(Y)&&typeof this._options.proxy=="string"&&qa.SUPPORT_CORS_XHR&&!q,!ee&&this._options.allowTaint===!1&&!Co(Y)&&!xo(Y)&&!Se&&!q?[2]:(ke=Y,Se?[4,this.proxy(ke)]:[3,2]);case 1:ke=mt.sent(),mt.label=2;case 2:return this.context.logger.debug("Added image "+Y.substring(0,256)),[4,new Promise(function(pt,Pt){var Kt=new Image;Kt.onload=function(){return pt(Kt)},Kt.onerror=Pt,(za(ke)||q)&&(Kt.crossOrigin="anonymous"),Kt.src=ke,Kt.complete===!0&&setTimeout(function(){return pt(Kt)},500),et._options.imageTimeout>0&&setTimeout(function(){return Pt("Timed out ("+et._options.imageTimeout+"ms) loading image")},et._options.imageTimeout)})];case 3:return[2,mt.sent()]}})})},$.prototype.has=function(Y){return typeof this._cache[Y]!="undefined"},$.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},$.prototype.proxy=function(Y){var ee=this,q=this._options.proxy;if(!q)throw new Error("No proxy defined");var Se=Y.substring(0,256);return new Promise(function(ke,et){var mt=qa.SUPPORT_RESPONSE_TYPE?"blob":"text",pt=new XMLHttpRequest;pt.onload=function(){if(pt.status===200)if(mt==="text")ke(pt.response);else{var qt=new FileReader;qt.addEventListener("load",function(){return ke(qt.result)},!1),qt.addEventListener("error",function(nn){return et(nn)},!1),qt.readAsDataURL(pt.response)}else et("Failed to proxy resource "+Se+" with status code "+pt.status)},pt.onerror=et;var Pt=q.indexOf("?")>-1?"&":"?";if(pt.open("GET",""+q+Pt+"url="+encodeURIComponent(Y)+"&responseType="+mt),mt!=="text"&&pt instanceof XMLHttpRequest&&(pt.responseType=mt),ee._options.imageTimeout){var Kt=ee._options.imageTimeout;pt.timeout=Kt,pt.ontimeout=function(){return et("Timed out ("+Kt+"ms) proxying "+Se)}}pt.send()})},$}(),ca=/^data:image\/svg\+xml/i,so=/^data:image\/.*;base64,/i,Ra=/^data:image\/.*/i,Yo=function($){return qa.SUPPORT_SVG_DRAWING||!mo($)},Co=function($){return Ra.test($)},za=function($){return so.test($)},xo=function($){return $.substr(0,4)==="blob"},mo=function($){return $.substr(-3).toLowerCase()==="svg"||ca.test($)},Hn=function(){function $(Y,ee){this.type=0,this.x=Y,this.y=ee}return $.prototype.add=function(Y,ee){return new $(this.x+Y,this.y+ee)},$}(),xa=function($,Y,ee){return new Hn($.x+(Y.x-$.x)*ee,$.y+(Y.y-$.y)*ee)},wa=function(){function $(Y,ee,q,Se){this.type=1,this.start=Y,this.startControl=ee,this.endControl=q,this.end=Se}return $.prototype.subdivide=function(Y,ee){var q=xa(this.start,this.startControl,Y),Se=xa(this.startControl,this.endControl,Y),ke=xa(this.endControl,this.end,Y),et=xa(q,Se,Y),mt=xa(Se,ke,Y),pt=xa(et,mt,Y);return ee?new $(this.start,q,et,pt):new $(pt,mt,ke,this.end)},$.prototype.add=function(Y,ee){return new $(this.start.add(Y,ee),this.startControl.add(Y,ee),this.endControl.add(Y,ee),this.end.add(Y,ee))},$.prototype.reverse=function(){return new $(this.end,this.endControl,this.startControl,this.start)},$}(),_a=function($){return $.type===1},ml=function(){function $(Y){var ee=Y.styles,q=Y.bounds,Se=st(ee.borderTopLeftRadius,q.width,q.height),ke=Se[0],et=Se[1],mt=st(ee.borderTopRightRadius,q.width,q.height),pt=mt[0],Pt=mt[1],Kt=st(ee.borderBottomRightRadius,q.width,q.height),qt=Kt[0],nn=Kt[1],br=st(ee.borderBottomLeftRadius,q.width,q.height),Nn=br[0],ur=br[1],qr=[];qr.push((ke+pt)/q.width),qr.push((Nn+qt)/q.width),qr.push((et+ur)/q.height),qr.push((Pt+nn)/q.height);var vr=Math.max.apply(Math,qr);vr>1&&(ke/=vr,et/=vr,pt/=vr,Pt/=vr,qt/=vr,nn/=vr,Nn/=vr,ur/=vr);var xr=q.width-pt,Wi=q.height-nn,Ei=q.width-qt,aa=q.height-ur,Er=ee.borderTopWidth,ta=ee.borderRightWidth,oa=ee.borderBottomWidth,bi=ee.borderLeftWidth,As=ot(ee.paddingTop,Y.bounds.width),as=ot(ee.paddingRight,Y.bounds.width),xs=ot(ee.paddingBottom,Y.bounds.width),Do=ot(ee.paddingLeft,Y.bounds.width);this.topLeftBorderDoubleOuterBox=ke>0||et>0?yi(q.left+bi/3,q.top+Er/3,ke-bi/3,et-Er/3,Bi.TOP_LEFT):new Hn(q.left+bi/3,q.top+Er/3),this.topRightBorderDoubleOuterBox=ke>0||et>0?yi(q.left+xr,q.top+Er/3,pt-ta/3,Pt-Er/3,Bi.TOP_RIGHT):new Hn(q.left+q.width-ta/3,q.top+Er/3),this.bottomRightBorderDoubleOuterBox=qt>0||nn>0?yi(q.left+Ei,q.top+Wi,qt-ta/3,nn-oa/3,Bi.BOTTOM_RIGHT):new Hn(q.left+q.width-ta/3,q.top+q.height-oa/3),this.bottomLeftBorderDoubleOuterBox=Nn>0||ur>0?yi(q.left+bi/3,q.top+aa,Nn-bi/3,ur-oa/3,Bi.BOTTOM_LEFT):new Hn(q.left+bi/3,q.top+q.height-oa/3),this.topLeftBorderDoubleInnerBox=ke>0||et>0?yi(q.left+bi*2/3,q.top+Er*2/3,ke-bi*2/3,et-Er*2/3,Bi.TOP_LEFT):new Hn(q.left+bi*2/3,q.top+Er*2/3),this.topRightBorderDoubleInnerBox=ke>0||et>0?yi(q.left+xr,q.top+Er*2/3,pt-ta*2/3,Pt-Er*2/3,Bi.TOP_RIGHT):new Hn(q.left+q.width-ta*2/3,q.top+Er*2/3),this.bottomRightBorderDoubleInnerBox=qt>0||nn>0?yi(q.left+Ei,q.top+Wi,qt-ta*2/3,nn-oa*2/3,Bi.BOTTOM_RIGHT):new Hn(q.left+q.width-ta*2/3,q.top+q.height-oa*2/3),this.bottomLeftBorderDoubleInnerBox=Nn>0||ur>0?yi(q.left+bi*2/3,q.top+aa,Nn-bi*2/3,ur-oa*2/3,Bi.BOTTOM_LEFT):new Hn(q.left+bi*2/3,q.top+q.height-oa*2/3),this.topLeftBorderStroke=ke>0||et>0?yi(q.left+bi/2,q.top+Er/2,ke-bi/2,et-Er/2,Bi.TOP_LEFT):new Hn(q.left+bi/2,q.top+Er/2),this.topRightBorderStroke=ke>0||et>0?yi(q.left+xr,q.top+Er/2,pt-ta/2,Pt-Er/2,Bi.TOP_RIGHT):new Hn(q.left+q.width-ta/2,q.top+Er/2),this.bottomRightBorderStroke=qt>0||nn>0?yi(q.left+Ei,q.top+Wi,qt-ta/2,nn-oa/2,Bi.BOTTOM_RIGHT):new Hn(q.left+q.width-ta/2,q.top+q.height-oa/2),this.bottomLeftBorderStroke=Nn>0||ur>0?yi(q.left+bi/2,q.top+aa,Nn-bi/2,ur-oa/2,Bi.BOTTOM_LEFT):new Hn(q.left+bi/2,q.top+q.height-oa/2),this.topLeftBorderBox=ke>0||et>0?yi(q.left,q.top,ke,et,Bi.TOP_LEFT):new Hn(q.left,q.top),this.topRightBorderBox=pt>0||Pt>0?yi(q.left+xr,q.top,pt,Pt,Bi.TOP_RIGHT):new Hn(q.left+q.width,q.top),this.bottomRightBorderBox=qt>0||nn>0?yi(q.left+Ei,q.top+Wi,qt,nn,Bi.BOTTOM_RIGHT):new Hn(q.left+q.width,q.top+q.height),this.bottomLeftBorderBox=Nn>0||ur>0?yi(q.left,q.top+aa,Nn,ur,Bi.BOTTOM_LEFT):new Hn(q.left,q.top+q.height),this.topLeftPaddingBox=ke>0||et>0?yi(q.left+bi,q.top+Er,Math.max(0,ke-bi),Math.max(0,et-Er),Bi.TOP_LEFT):new Hn(q.left+bi,q.top+Er),this.topRightPaddingBox=pt>0||Pt>0?yi(q.left+Math.min(xr,q.width-ta),q.top+Er,xr>q.width+ta?0:Math.max(0,pt-ta),Math.max(0,Pt-Er),Bi.TOP_RIGHT):new Hn(q.left+q.width-ta,q.top+Er),this.bottomRightPaddingBox=qt>0||nn>0?yi(q.left+Math.min(Ei,q.width-bi),q.top+Math.min(Wi,q.height-oa),Math.max(0,qt-ta),Math.max(0,nn-oa),Bi.BOTTOM_RIGHT):new Hn(q.left+q.width-ta,q.top+q.height-oa),this.bottomLeftPaddingBox=Nn>0||ur>0?yi(q.left+bi,q.top+Math.min(aa,q.height-oa),Math.max(0,Nn-bi),Math.max(0,ur-oa),Bi.BOTTOM_LEFT):new Hn(q.left+bi,q.top+q.height-oa),this.topLeftContentBox=ke>0||et>0?yi(q.left+bi+Do,q.top+Er+As,Math.max(0,ke-(bi+Do)),Math.max(0,et-(Er+As)),Bi.TOP_LEFT):new Hn(q.left+bi+Do,q.top+Er+As),this.topRightContentBox=pt>0||Pt>0?yi(q.left+Math.min(xr,q.width+bi+Do),q.top+Er+As,xr>q.width+bi+Do?0:pt-bi+Do,Pt-(Er+As),Bi.TOP_RIGHT):new Hn(q.left+q.width-(ta+as),q.top+Er+As),this.bottomRightContentBox=qt>0||nn>0?yi(q.left+Math.min(Ei,q.width-(bi+Do)),q.top+Math.min(Wi,q.height+Er+As),Math.max(0,qt-(ta+as)),nn-(oa+xs),Bi.BOTTOM_RIGHT):new Hn(q.left+q.width-(ta+as),q.top+q.height-(oa+xs)),this.bottomLeftContentBox=Nn>0||ur>0?yi(q.left+bi+Do,q.top+aa,Math.max(0,Nn-(bi+Do)),ur-(oa+xs),Bi.BOTTOM_LEFT):new Hn(q.left+bi+Do,q.top+q.height-(oa+xs))}return $}(),Bi;(function($){$[$.TOP_LEFT=0]="TOP_LEFT",$[$.TOP_RIGHT=1]="TOP_RIGHT",$[$.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",$[$.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Bi||(Bi={}));var yi=function($,Y,ee,q,Se){var ke=4*((Math.sqrt(2)-1)/3),et=ee*ke,mt=q*ke,pt=$+ee,Pt=Y+q;switch(Se){case Bi.TOP_LEFT:return new wa(new Hn($,Pt),new Hn($,Pt-mt),new Hn(pt-et,Y),new Hn(pt,Y));case Bi.TOP_RIGHT:return new wa(new Hn($,Y),new Hn($+et,Y),new Hn(pt,Pt-mt),new Hn(pt,Pt));case Bi.BOTTOM_RIGHT:return new wa(new Hn(pt,Y),new Hn(pt,Y+mt),new Hn($+et,Pt),new Hn($,Pt));case Bi.BOTTOM_LEFT:default:return new wa(new Hn(pt,Pt),new Hn(pt-et,Pt),new Hn($,Y+mt),new Hn($,Y))}},is=function($){return[$.topLeftBorderBox,$.topRightBorderBox,$.bottomRightBorderBox,$.bottomLeftBorderBox]},lo=function($){return[$.topLeftContentBox,$.topRightContentBox,$.bottomRightContentBox,$.bottomLeftContentBox]},vl=function($){return[$.topLeftPaddingBox,$.topRightPaddingBox,$.bottomRightPaddingBox,$.bottomLeftPaddingBox]},Ns=function(){function $(Y,ee,q){this.offsetX=Y,this.offsetY=ee,this.matrix=q,this.type=0,this.target=2|4}return $}(),Ds=function(){function $(Y,ee){this.path=Y,this.target=ee,this.type=1}return $}(),sl=function(){function $(Y){this.opacity=Y,this.type=2,this.target=2|4}return $}(),Oo=function($){return $.type===0},ll=function($){return $.type===1},Au=function($){return $.type===2},ac=function($,Y){return $.length===Y.length?$.some(function(ee,q){return ee===Y[q]}):!1},fc=function($,Y,ee,q,Se){return $.map(function(ke,et){switch(et){case 0:return ke.add(Y,ee);case 1:return ke.add(Y+q,ee);case 2:return ke.add(Y+q,ee+Se);case 3:return ke.add(Y,ee+Se)}return ke})},oc=function(){function $(Y){this.element=Y,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return $}(),sc=function(){function $(Y,ee){if(this.container=Y,this.parent=ee,this.effects=[],this.curves=new ml(this.container),this.container.styles.opacity<1&&this.effects.push(new sl(this.container.styles.opacity)),this.container.styles.transform!==null){var q=this.container.bounds.left+this.container.styles.transformOrigin[0].number,Se=this.container.bounds.top+this.container.styles.transformOrigin[1].number,ke=this.container.styles.transform;this.effects.push(new Ns(q,Se,ke))}if(this.container.styles.overflowX!==0){var et=is(this.curves),mt=vl(this.curves);ac(et,mt)?this.effects.push(new Ds(et,2|4)):(this.effects.push(new Ds(et,2)),this.effects.push(new Ds(mt,4)))}}return $.prototype.getEffects=function(Y){for(var ee=[2,3].indexOf(this.container.styles.position)===-1,q=this.parent,Se=this.effects.slice(0);q;){var ke=q.effects.filter(function(pt){return!ll(pt)});if(ee||q.container.styles.position!==0||!q.parent){if(Se.unshift.apply(Se,ke),ee=[2,3].indexOf(q.container.styles.position)===-1,q.container.styles.overflowX!==0){var et=is(q.curves),mt=vl(q.curves);ac(et,mt)||Se.unshift(new Ds(mt,2|4))}}else Se.unshift.apply(Se,ke);q=q.parent}return Se.filter(function(pt){return di(pt.target,Y)})},$}(),rc=function($,Y,ee,q){$.container.elements.forEach(function(Se){var ke=di(Se.flags,4),et=di(Se.flags,2),mt=new sc(Se,$);di(Se.styles.display,2048)&&q.push(mt);var pt=di(Se.flags,8)?[]:q;if(ke||et){var Pt=ke||Se.styles.isPositioned()?ee:Y,Kt=new oc(mt);if(Se.styles.isPositioned()||Se.styles.opacity<1||Se.styles.isTransformed()){var qt=Se.styles.zIndex.order;if(qt<0){var nn=0;Pt.negativeZIndex.some(function(Nn,ur){return qt>Nn.element.container.styles.zIndex.order?(nn=ur,!1):nn>0}),Pt.negativeZIndex.splice(nn,0,Kt)}else if(qt>0){var br=0;Pt.positiveZIndex.some(function(Nn,ur){return qt>=Nn.element.container.styles.zIndex.order?(br=ur+1,!1):br>0}),Pt.positiveZIndex.splice(br,0,Kt)}else Pt.zeroOrAutoZIndexOrTransformedOrOpacity.push(Kt)}else Se.styles.isFloating()?Pt.nonPositionedFloats.push(Kt):Pt.nonPositionedInlineLevel.push(Kt);rc(mt,Kt,ke?Kt:ee,pt)}else Se.styles.isInlineLevel()?Y.inlineLevel.push(mt):Y.nonInlineLevel.push(mt),rc(mt,Y,ee,pt);di(Se.flags,8)&&lc(Se,pt)})},lc=function($,Y){for(var ee=$ instanceof Ql?$.start:1,q=$ instanceof Ql?$.reversed:!1,Se=0;Se<Y.length;Se++){var ke=Y[Se];ke.container instanceof Hl&&typeof ke.container.value=="number"&&ke.container.value!==0&&(ee=ke.container.value),ke.listValue=P(ee,ke.container.styles.listStyleType,!0),ee+=q?-1:1}},Ac=function($){var Y=new sc($,null),ee=new oc(Y),q=[];return rc(Y,ee,ee,q),lc(Y.container,q),ee},uc=function($,Y){switch(Y){case 0:return Rs($.topLeftBorderBox,$.topLeftPaddingBox,$.topRightBorderBox,$.topRightPaddingBox);case 1:return Rs($.topRightBorderBox,$.topRightPaddingBox,$.bottomRightBorderBox,$.bottomRightPaddingBox);case 2:return Rs($.bottomRightBorderBox,$.bottomRightPaddingBox,$.bottomLeftBorderBox,$.bottomLeftPaddingBox);case 3:default:return Rs($.bottomLeftBorderBox,$.bottomLeftPaddingBox,$.topLeftBorderBox,$.topLeftPaddingBox)}},pc=function($,Y){switch(Y){case 0:return Rs($.topLeftBorderBox,$.topLeftBorderDoubleOuterBox,$.topRightBorderBox,$.topRightBorderDoubleOuterBox);case 1:return Rs($.topRightBorderBox,$.topRightBorderDoubleOuterBox,$.bottomRightBorderBox,$.bottomRightBorderDoubleOuterBox);case 2:return Rs($.bottomRightBorderBox,$.bottomRightBorderDoubleOuterBox,$.bottomLeftBorderBox,$.bottomLeftBorderDoubleOuterBox);case 3:default:return Rs($.bottomLeftBorderBox,$.bottomLeftBorderDoubleOuterBox,$.topLeftBorderBox,$.topLeftBorderDoubleOuterBox)}},mc=function($,Y){switch(Y){case 0:return Rs($.topLeftBorderDoubleInnerBox,$.topLeftPaddingBox,$.topRightBorderDoubleInnerBox,$.topRightPaddingBox);case 1:return Rs($.topRightBorderDoubleInnerBox,$.topRightPaddingBox,$.bottomRightBorderDoubleInnerBox,$.bottomRightPaddingBox);case 2:return Rs($.bottomRightBorderDoubleInnerBox,$.bottomRightPaddingBox,$.bottomLeftBorderDoubleInnerBox,$.bottomLeftPaddingBox);case 3:default:return Rs($.bottomLeftBorderDoubleInnerBox,$.bottomLeftPaddingBox,$.topLeftBorderDoubleInnerBox,$.topLeftPaddingBox)}},vc=function($,Y){switch(Y){case 0:return Hu($.topLeftBorderStroke,$.topRightBorderStroke);case 1:return Hu($.topRightBorderStroke,$.bottomRightBorderStroke);case 2:return Hu($.bottomRightBorderStroke,$.bottomLeftBorderStroke);case 3:default:return Hu($.bottomLeftBorderStroke,$.topLeftBorderStroke)}},Hu=function($,Y){var ee=[];return _a($)?ee.push($.subdivide(.5,!1)):ee.push($),_a(Y)?ee.push(Y.subdivide(.5,!0)):ee.push(Y),ee},Rs=function($,Y,ee,q){var Se=[];return _a($)?Se.push($.subdivide(.5,!1)):Se.push($),_a(ee)?Se.push(ee.subdivide(.5,!0)):Se.push(ee),_a(q)?Se.push(q.subdivide(.5,!0).reverse()):Se.push(q),_a(Y)?Se.push(Y.subdivide(.5,!1).reverse()):Se.push(Y),Se},cc=function($){var Y=$.bounds,ee=$.styles;return Y.add(ee.borderLeftWidth,ee.borderTopWidth,-(ee.borderRightWidth+ee.borderLeftWidth),-(ee.borderTopWidth+ee.borderBottomWidth))},Qu=function($){var Y=$.styles,ee=$.bounds,q=ot(Y.paddingLeft,ee.width),Se=ot(Y.paddingRight,ee.width),ke=ot(Y.paddingTop,ee.width),et=ot(Y.paddingBottom,ee.width);return ee.add(q+Y.borderLeftWidth,ke+Y.borderTopWidth,-(Y.borderRightWidth+Y.borderLeftWidth+q+Se),-(Y.borderTopWidth+Y.borderBottomWidth+ke+et))},gc=function($,Y){return $===0?Y.bounds:$===2?Qu(Y):cc(Y)},yc=function($,Y){return $===0?Y.bounds:$===2?Qu(Y):cc(Y)},ic=function($,Y,ee){var q=gc(Yl($.styles.backgroundOrigin,Y),$),Se=yc(Yl($.styles.backgroundClip,Y),$),ke=bc(Yl($.styles.backgroundSize,Y),ee,q),et=ke[0],mt=ke[1],pt=st(Yl($.styles.backgroundPosition,Y),q.width-et,q.height-mt),Pt=Ec(Yl($.styles.backgroundRepeat,Y),pt,ke,q,Se),Kt=Math.round(q.left+pt[0]),qt=Math.round(q.top+pt[1]);return[Pt,Kt,qt,et,mt]},Xl=function($){return Qi($)&&$.value===na.AUTO},Ku=function($){return typeof $=="number"},bc=function($,Y,ee){var q=Y[0],Se=Y[1],ke=Y[2],et=$[0],mt=$[1];if(!et)return[0,0];if(Be(et)&&mt&&Be(mt))return[ot(et,ee.width),ot(mt,ee.height)];var pt=Ku(ke);if(Qi(et)&&(et.value===na.CONTAIN||et.value===na.COVER)){if(Ku(ke)){var Pt=ee.width/ee.height;return Pt<ke!==(et.value===na.COVER)?[ee.width,ee.width/ke]:[ee.height*ke,ee.height]}return[ee.width,ee.height]}var Kt=Ku(q),qt=Ku(Se),nn=Kt||qt;if(Xl(et)&&(!mt||Xl(mt))){if(Kt&&qt)return[q,Se];if(!pt&&!nn)return[ee.width,ee.height];if(nn&&pt){var br=Kt?q:Se*ke,Nn=qt?Se:q/ke;return[br,Nn]}var ur=Kt?q:ee.width,qr=qt?Se:ee.height;return[ur,qr]}if(pt){var vr=0,xr=0;return Be(et)?vr=ot(et,ee.width):Be(mt)&&(xr=ot(mt,ee.height)),Xl(et)?vr=xr*ke:(!mt||Xl(mt))&&(xr=vr/ke),[vr,xr]}var Wi=null,Ei=null;if(Be(et)?Wi=ot(et,ee.width):mt&&Be(mt)&&(Ei=ot(mt,ee.height)),Wi!==null&&(!mt||Xl(mt))&&(Ei=Kt&&qt?Wi/q*Se:ee.height),Ei!==null&&Xl(et)&&(Wi=Kt&&qt?Ei/Se*q:ee.width),Wi!==null&&Ei!==null)return[Wi,Ei];throw new Error("Unable to calculate background-size for element")},Yl=function($,Y){var ee=$[Y];return typeof ee=="undefined"?$[0]:ee},Ec=function($,Y,ee,q,Se){var ke=Y[0],et=Y[1],mt=ee[0],pt=ee[1];switch($){case 2:return[new Hn(Math.round(q.left),Math.round(q.top+et)),new Hn(Math.round(q.left+q.width),Math.round(q.top+et)),new Hn(Math.round(q.left+q.width),Math.round(pt+q.top+et)),new Hn(Math.round(q.left),Math.round(pt+q.top+et))];case 3:return[new Hn(Math.round(q.left+ke),Math.round(q.top)),new Hn(Math.round(q.left+ke+mt),Math.round(q.top)),new Hn(Math.round(q.left+ke+mt),Math.round(q.height+q.top)),new Hn(Math.round(q.left+ke),Math.round(q.height+q.top))];case 1:return[new Hn(Math.round(q.left+ke),Math.round(q.top+et)),new Hn(Math.round(q.left+ke+mt),Math.round(q.top+et)),new Hn(Math.round(q.left+ke+mt),Math.round(q.top+et+pt)),new Hn(Math.round(q.left+ke),Math.round(q.top+et+pt))];default:return[new Hn(Math.round(Se.left),Math.round(Se.top)),new Hn(Math.round(Se.left+Se.width),Math.round(Se.top)),new Hn(Math.round(Se.left+Se.width),Math.round(Se.height+Se.top)),new Hn(Math.round(Se.left),Math.round(Se.height+Se.top))]}},Cc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",dc="Hidden Text",xc=function(){function $(Y){this._data={},this._document=Y}return $.prototype.parseMetrics=function(Y,ee){var q=this._document.createElement("div"),Se=this._document.createElement("img"),ke=this._document.createElement("span"),et=this._document.body;q.style.visibility="hidden",q.style.fontFamily=Y,q.style.fontSize=ee,q.style.margin="0",q.style.padding="0",q.style.whiteSpace="nowrap",et.appendChild(q),Se.src=Cc,Se.width=1,Se.height=1,Se.style.margin="0",Se.style.padding="0",Se.style.verticalAlign="baseline",ke.style.fontFamily=Y,ke.style.fontSize=ee,ke.style.margin="0",ke.style.padding="0",ke.appendChild(this._document.createTextNode(dc)),q.appendChild(ke),q.appendChild(Se);var mt=Se.offsetTop-ke.offsetTop+2;q.removeChild(ke),q.appendChild(this._document.createTextNode(dc)),q.style.lineHeight="normal",Se.style.verticalAlign="super";var pt=Se.offsetTop-q.offsetTop+2;return et.removeChild(q),{baseline:mt,middle:pt}},$.prototype.getMetrics=function(Y,ee){var q=Y+" "+ee;return typeof this._data[q]=="undefined"&&(this._data[q]=this.parseMetrics(Y,ee)),this._data[q]},$}(),hc=function(){function $(Y,ee){this.context=Y,this.options=ee}return $}(),wc=1e4,_c=function($){G(Y,$);function Y(ee,q){var Se=$.call(this,ee,q)||this;return Se._activeEffects=[],Se.canvas=q.canvas?q.canvas:document.createElement("canvas"),Se.ctx=Se.canvas.getContext("2d"),q.canvas||(Se.canvas.width=Math.floor(q.width*q.scale),Se.canvas.height=Math.floor(q.height*q.scale),Se.canvas.style.width=q.width+"px",Se.canvas.style.height=q.height+"px"),Se.fontMetrics=new xc(document),Se.ctx.scale(Se.options.scale,Se.options.scale),Se.ctx.translate(-q.x,-q.y),Se.ctx.textBaseline="bottom",Se._activeEffects=[],Se.context.logger.debug("Canvas renderer initialized ("+q.width+"x"+q.height+") with scale "+q.scale),Se}return Y.prototype.applyEffects=function(ee){for(var q=this;this._activeEffects.length;)this.popEffect();ee.forEach(function(Se){return q.applyEffect(Se)})},Y.prototype.applyEffect=function(ee){this.ctx.save(),Au(ee)&&(this.ctx.globalAlpha=ee.opacity),Oo(ee)&&(this.ctx.translate(ee.offsetX,ee.offsetY),this.ctx.transform(ee.matrix[0],ee.matrix[1],ee.matrix[2],ee.matrix[3],ee.matrix[4],ee.matrix[5]),this.ctx.translate(-ee.offsetX,-ee.offsetY)),ll(ee)&&(this.path(ee.path),this.ctx.clip()),this._activeEffects.push(ee)},Y.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},Y.prototype.renderStack=function(ee){return v(this,void 0,void 0,function(){var q;return b(this,function(Se){switch(Se.label){case 0:return q=ee.element.container.styles,q.isVisible()?[4,this.renderStackContent(ee)]:[3,2];case 1:Se.sent(),Se.label=2;case 2:return[2]}})})},Y.prototype.renderNode=function(ee){return v(this,void 0,void 0,function(){return b(this,function(q){switch(q.label){case 0:if(di(ee.container.flags,16))debugger;return ee.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(ee)]:[3,3];case 1:return q.sent(),[4,this.renderNodeContent(ee)];case 2:q.sent(),q.label=3;case 3:return[2]}})})},Y.prototype.renderTextWithLetterSpacing=function(ee,q,Se){var ke=this;if(q===0)this.ctx.fillText(ee.text,ee.bounds.left,ee.bounds.top+Se);else{var et=ou(ee.text);et.reduce(function(mt,pt){return ke.ctx.fillText(pt,mt,ee.bounds.top+Se),mt+ke.ctx.measureText(pt).width},ee.bounds.left)}},Y.prototype.createFontStyle=function(ee){var q=ee.fontVariant.filter(function(et){return et==="normal"||et==="small-caps"}).join(""),Se=Dc(ee.fontFamily).join(", "),ke=wo(ee.fontSize)?""+ee.fontSize.number+ee.fontSize.unit:ee.fontSize.number+"px";return[[ee.fontStyle,q,ee.fontWeight,ke,Se].join(" "),Se,ke]},Y.prototype.renderTextNode=function(ee,q){return v(this,void 0,void 0,function(){var Se,ke,et,mt,pt,Pt,Kt,qt,nn=this;return b(this,function(br){return Se=this.createFontStyle(q),ke=Se[0],et=Se[1],mt=Se[2],this.ctx.font=ke,this.ctx.direction=q.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",pt=this.fontMetrics.getMetrics(et,mt),Pt=pt.baseline,Kt=pt.middle,qt=q.paintOrder,ee.textBounds.forEach(function(Nn){qt.forEach(function(ur){switch(ur){case 0:nn.ctx.fillStyle=Dn(q.color),nn.renderTextWithLetterSpacing(Nn,q.letterSpacing,Pt);var qr=q.textShadow;qr.length&&Nn.text.trim().length&&(qr.slice(0).reverse().forEach(function(vr){nn.ctx.shadowColor=Dn(vr.color),nn.ctx.shadowOffsetX=vr.offsetX.number*nn.options.scale,nn.ctx.shadowOffsetY=vr.offsetY.number*nn.options.scale,nn.ctx.shadowBlur=vr.blur.number,nn.renderTextWithLetterSpacing(Nn,q.letterSpacing,Pt)}),nn.ctx.shadowColor="",nn.ctx.shadowOffsetX=0,nn.ctx.shadowOffsetY=0,nn.ctx.shadowBlur=0),q.textDecorationLine.length&&(nn.ctx.fillStyle=Dn(q.textDecorationColor||q.color),q.textDecorationLine.forEach(function(vr){switch(vr){case 1:nn.ctx.fillRect(Nn.bounds.left,Math.round(Nn.bounds.top+Pt),Nn.bounds.width,1);break;case 2:nn.ctx.fillRect(Nn.bounds.left,Math.round(Nn.bounds.top),Nn.bounds.width,1);break;case 3:nn.ctx.fillRect(Nn.bounds.left,Math.ceil(Nn.bounds.top+Kt),Nn.bounds.width,1);break}}));break;case 1:q.webkitTextStrokeWidth&&Nn.text.trim().length&&(nn.ctx.strokeStyle=Dn(q.webkitTextStrokeColor),nn.ctx.lineWidth=q.webkitTextStrokeWidth,nn.ctx.lineJoin=window.chrome?"miter":"round",nn.ctx.strokeText(Nn.text,Nn.bounds.left,Nn.bounds.top+Pt)),nn.ctx.strokeStyle="",nn.ctx.lineWidth=0,nn.ctx.lineJoin="miter";break}})}),[2]})})},Y.prototype.renderReplacedElement=function(ee,q,Se){if(Se&&ee.intrinsicWidth>0&&ee.intrinsicHeight>0){var ke=Qu(ee),et=vl(q);this.path(et),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Se,0,0,ee.intrinsicWidth,ee.intrinsicHeight,ke.left,ke.top,ke.width,ke.height),this.ctx.restore()}},Y.prototype.renderNodeContent=function(ee){return v(this,void 0,void 0,function(){var q,Se,ke,et,mt,pt,Pt,Pt,Kt,qt,nn,br,Nn,ur,qr,vr,xr,Wi,Ei,Pt,aa,Nn,vr;return b(this,function(Er){switch(Er.label){case 0:this.applyEffects(ee.getEffects(4)),q=ee.container,Se=ee.curves,ke=q.styles,et=0,mt=q.textNodes,Er.label=1;case 1:return et<mt.length?(pt=mt[et],[4,this.renderTextNode(pt,ke)]):[3,4];case 2:Er.sent(),Er.label=3;case 3:return et++,[3,1];case 4:if(!(q instanceof su))return[3,8];Er.label=5;case 5:return Er.trys.push([5,7,,8]),[4,this.context.cache.match(q.src)];case 6:return Pt=Er.sent(),this.renderReplacedElement(q,Se,Pt),[3,8];case 7:return Er.sent(),this.context.logger.error("Error loading image "+q.src),[3,8];case 8:if(q instanceof lu&&this.renderReplacedElement(q,Se,q.canvas),!(q instanceof xu))return[3,12];Er.label=9;case 9:return Er.trys.push([9,11,,12]),[4,this.context.cache.match(q.svg)];case 10:return Pt=Er.sent(),this.renderReplacedElement(q,Se,Pt),[3,12];case 11:return Er.sent(),this.context.logger.error("Error loading svg "+q.svg.substring(0,255)),[3,12];case 12:return q instanceof Ou&&q.tree?(Kt=new Y(this.context,{scale:this.options.scale,backgroundColor:q.backgroundColor,x:0,y:0,width:q.width,height:q.height}),[4,Kt.render(q.tree)]):[3,14];case 13:qt=Er.sent(),q.width&&q.height&&this.ctx.drawImage(qt,0,0,q.width,q.height,q.bounds.left,q.bounds.top,q.bounds.width,q.bounds.height),Er.label=14;case 14:if(q instanceof Kl&&(nn=Math.min(q.bounds.width,q.bounds.height),q.type===Al?q.checked&&(this.ctx.save(),this.path([new Hn(q.bounds.left+nn*.39363,q.bounds.top+nn*.79),new Hn(q.bounds.left+nn*.16,q.bounds.top+nn*.5549),new Hn(q.bounds.left+nn*.27347,q.bounds.top+nn*.44071),new Hn(q.bounds.left+nn*.39694,q.bounds.top+nn*.5649),new Hn(q.bounds.left+nn*.72983,q.bounds.top+nn*.23),new Hn(q.bounds.left+nn*.84,q.bounds.top+nn*.34085),new Hn(q.bounds.left+nn*.39363,q.bounds.top+nn*.79)]),this.ctx.fillStyle=Dn(Su),this.ctx.fill(),this.ctx.restore()):q.type===Vs&&(q.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(q.bounds.left+nn/2,q.bounds.top+nn/2,nn/4,0,Math.PI*2,!0),this.ctx.fillStyle=Dn(Su),this.ctx.fill(),this.ctx.restore()))),Sc(q)&&q.value.length){br=this.createFontStyle(ke),Nn=br[0],ur=br[1],qr=this.fontMetrics.getMetrics(Nn,ur).baseline,this.ctx.font=Nn,this.ctx.fillStyle=Dn(ke.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Bc(q.styles.textAlign),vr=Qu(q),xr=0;switch(q.styles.textAlign){case 1:xr+=vr.width/2;break;case 2:xr+=vr.width;break}Wi=vr.add(xr,0,0,-vr.height/2+1),this.ctx.save(),this.path([new Hn(vr.left,vr.top),new Hn(vr.left+vr.width,vr.top),new Hn(vr.left+vr.width,vr.top+vr.height),new Hn(vr.left,vr.top+vr.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Os(q.value,Wi),ke.letterSpacing,qr),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!di(q.styles.display,2048))return[3,20];if(!(q.styles.listStyleImage!==null))return[3,19];if(Ei=q.styles.listStyleImage,!(Ei.type===0))return[3,18];Pt=void 0,aa=Ei.url,Er.label=15;case 15:return Er.trys.push([15,17,,18]),[4,this.context.cache.match(aa)];case 16:return Pt=Er.sent(),this.ctx.drawImage(Pt,q.bounds.left-(Pt.width+10),q.bounds.top),[3,18];case 17:return Er.sent(),this.context.logger.error("Error loading list-style-image "+aa),[3,18];case 18:return[3,20];case 19:ee.listValue&&q.styles.listStyleType!==-1&&(Nn=this.createFontStyle(ke)[0],this.ctx.font=Nn,this.ctx.fillStyle=Dn(ke.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",vr=new w(q.bounds.left,q.bounds.top+ot(q.styles.paddingTop,q.bounds.width),q.bounds.width,ki(ke.lineHeight,ke.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Os(ee.listValue,vr),ke.letterSpacing,ki(ke.lineHeight,ke.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Er.label=20;case 20:return[2]}})})},Y.prototype.renderStackContent=function(ee){return v(this,void 0,void 0,function(){var q,Se,ke,et,mt,ke,pt,Pt,ke,Kt,qt,ke,nn,br,ke,Nn,ur,ke,qr,vr,ke;return b(this,function(xr){switch(xr.label){case 0:if(di(ee.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(ee.element)];case 1:xr.sent(),q=0,Se=ee.negativeZIndex,xr.label=2;case 2:return q<Se.length?(ke=Se[q],[4,this.renderStack(ke)]):[3,5];case 3:xr.sent(),xr.label=4;case 4:return q++,[3,2];case 5:return[4,this.renderNodeContent(ee.element)];case 6:xr.sent(),et=0,mt=ee.nonInlineLevel,xr.label=7;case 7:return et<mt.length?(ke=mt[et],[4,this.renderNode(ke)]):[3,10];case 8:xr.sent(),xr.label=9;case 9:return et++,[3,7];case 10:pt=0,Pt=ee.nonPositionedFloats,xr.label=11;case 11:return pt<Pt.length?(ke=Pt[pt],[4,this.renderStack(ke)]):[3,14];case 12:xr.sent(),xr.label=13;case 13:return pt++,[3,11];case 14:Kt=0,qt=ee.nonPositionedInlineLevel,xr.label=15;case 15:return Kt<qt.length?(ke=qt[Kt],[4,this.renderStack(ke)]):[3,18];case 16:xr.sent(),xr.label=17;case 17:return Kt++,[3,15];case 18:nn=0,br=ee.inlineLevel,xr.label=19;case 19:return nn<br.length?(ke=br[nn],[4,this.renderNode(ke)]):[3,22];case 20:xr.sent(),xr.label=21;case 21:return nn++,[3,19];case 22:Nn=0,ur=ee.zeroOrAutoZIndexOrTransformedOrOpacity,xr.label=23;case 23:return Nn<ur.length?(ke=ur[Nn],[4,this.renderStack(ke)]):[3,26];case 24:xr.sent(),xr.label=25;case 25:return Nn++,[3,23];case 26:qr=0,vr=ee.positiveZIndex,xr.label=27;case 27:return qr<vr.length?(ke=vr[qr],[4,this.renderStack(ke)]):[3,30];case 28:xr.sent(),xr.label=29;case 29:return qr++,[3,27];case 30:return[2]}})})},Y.prototype.mask=function(ee){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(ee.slice(0).reverse()),this.ctx.closePath()},Y.prototype.path=function(ee){this.ctx.beginPath(),this.formatPath(ee),this.ctx.closePath()},Y.prototype.formatPath=function(ee){var q=this;ee.forEach(function(Se,ke){var et=_a(Se)?Se.start:Se;ke===0?q.ctx.moveTo(et.x,et.y):q.ctx.lineTo(et.x,et.y),_a(Se)&&q.ctx.bezierCurveTo(Se.startControl.x,Se.startControl.y,Se.endControl.x,Se.endControl.y,Se.end.x,Se.end.y)})},Y.prototype.renderRepeat=function(ee,q,Se,ke){this.path(ee),this.ctx.fillStyle=q,this.ctx.translate(Se,ke),this.ctx.fill(),this.ctx.translate(-Se,-ke)},Y.prototype.resizeImage=function(ee,q,Se){var ke;if(ee.width===q&&ee.height===Se)return ee;var et=(ke=this.canvas.ownerDocument)!==null&&ke!==void 0?ke:document,mt=et.createElement("canvas");mt.width=Math.max(1,q),mt.height=Math.max(1,Se);var pt=mt.getContext("2d");return pt.drawImage(ee,0,0,ee.width,ee.height,0,0,q,Se),mt},Y.prototype.renderBackgroundImage=function(ee){return v(this,void 0,void 0,function(){var q,Se,ke,et,mt,pt;return b(this,function(Pt){switch(Pt.label){case 0:q=ee.styles.backgroundImage.length-1,Se=function(Kt){var qt,nn,br,Nn,ur,qr,vr,xr,Wi,Ei,Nn,ur,qr,vr,xr,aa,Er,ta,oa,bi,As,as,xs,Do,Wi,Ys,Nn,gl,yl,vr,xr,bl,ur,qr,Ml,Js,El,Ll,Pl,ul,Ul,cl;return b(this,function(Jl){switch(Jl.label){case 0:if(!(Kt.type===0))return[3,5];qt=void 0,nn=Kt.url,Jl.label=1;case 1:return Jl.trys.push([1,3,,4]),[4,ke.context.cache.match(nn)];case 2:return qt=Jl.sent(),[3,4];case 3:return Jl.sent(),ke.context.logger.error("Error loading background-image "+nn),[3,4];case 4:return qt&&(br=ic(ee,q,[qt.width,qt.height,qt.width/qt.height]),Nn=br[0],ur=br[1],qr=br[2],vr=br[3],xr=br[4],Wi=ke.ctx.createPattern(ke.resizeImage(qt,vr,xr),"repeat"),ke.renderRepeat(Nn,Wi,ur,qr)),[3,6];case 5:sn(Kt)?(Ei=ic(ee,q,[null,null,null]),Nn=Ei[0],ur=Ei[1],qr=Ei[2],vr=Ei[3],xr=Ei[4],aa=Br(Kt.angle,vr,xr),Er=aa[0],ta=aa[1],oa=aa[2],bi=aa[3],As=aa[4],as=document.createElement("canvas"),as.width=vr,as.height=xr,xs=as.getContext("2d"),Do=xs.createLinearGradient(ta,bi,oa,As),Ir(Kt.stops,Er).forEach(function(pu){return Do.addColorStop(pu.stop,Dn(pu.color))}),xs.fillStyle=Do,xs.fillRect(0,0,vr,xr),vr>0&&xr>0&&(Wi=ke.ctx.createPattern(as,"repeat"),ke.renderRepeat(Nn,Wi,ur,qr))):zn(Kt)&&(Ys=ic(ee,q,[null,null,null]),Nn=Ys[0],gl=Ys[1],yl=Ys[2],vr=Ys[3],xr=Ys[4],bl=Kt.position.length===0?[at]:Kt.position,ur=ot(bl[0],vr),qr=ot(bl[bl.length-1],xr),Ml=Qn(Kt,ur,qr,vr,xr),Js=Ml[0],El=Ml[1],Js>0&&El>0&&(Ll=ke.ctx.createRadialGradient(gl+ur,yl+qr,0,gl+ur,yl+qr,Js),Ir(Kt.stops,Js*2).forEach(function(pu){return Ll.addColorStop(pu.stop,Dn(pu.color))}),ke.path(Nn),ke.ctx.fillStyle=Ll,Js!==El?(Pl=ee.bounds.left+.5*ee.bounds.width,ul=ee.bounds.top+.5*ee.bounds.height,Ul=El/Js,cl=1/Ul,ke.ctx.save(),ke.ctx.translate(Pl,ul),ke.ctx.transform(1,0,0,Ul,0,0),ke.ctx.translate(-Pl,-ul),ke.ctx.fillRect(gl,cl*(yl-ul)+ul,vr,xr*cl),ke.ctx.restore()):ke.ctx.fill())),Jl.label=6;case 6:return q--,[2]}})},ke=this,et=0,mt=ee.styles.backgroundImage.slice(0).reverse(),Pt.label=1;case 1:return et<mt.length?(pt=mt[et],[5,Se(pt)]):[3,4];case 2:Pt.sent(),Pt.label=3;case 3:return et++,[3,1];case 4:return[2]}})})},Y.prototype.renderSolidBorder=function(ee,q,Se){return v(this,void 0,void 0,function(){return b(this,function(ke){return this.path(uc(Se,q)),this.ctx.fillStyle=Dn(ee),this.ctx.fill(),[2]})})},Y.prototype.renderDoubleBorder=function(ee,q,Se,ke){return v(this,void 0,void 0,function(){var et,mt;return b(this,function(pt){switch(pt.label){case 0:return q<3?[4,this.renderSolidBorder(ee,Se,ke)]:[3,2];case 1:return pt.sent(),[2];case 2:return et=pc(ke,Se),this.path(et),this.ctx.fillStyle=Dn(ee),this.ctx.fill(),mt=mc(ke,Se),this.path(mt),this.ctx.fill(),[2]}})})},Y.prototype.renderNodeBackgroundAndBorders=function(ee){return v(this,void 0,void 0,function(){var q,Se,ke,et,mt,pt,Pt,Kt,qt=this;return b(this,function(nn){switch(nn.label){case 0:return this.applyEffects(ee.getEffects(2)),q=ee.container.styles,Se=!bn(q.backgroundColor)||q.backgroundImage.length,ke=[{style:q.borderTopStyle,color:q.borderTopColor,width:q.borderTopWidth},{style:q.borderRightStyle,color:q.borderRightColor,width:q.borderRightWidth},{style:q.borderBottomStyle,color:q.borderBottomColor,width:q.borderBottomWidth},{style:q.borderLeftStyle,color:q.borderLeftColor,width:q.borderLeftWidth}],et=Tc(Yl(q.backgroundClip,0),ee.curves),Se||q.boxShadow.length?(this.ctx.save(),this.path(et),this.ctx.clip(),bn(q.backgroundColor)||(this.ctx.fillStyle=Dn(q.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(ee.container)]):[3,2];case 1:nn.sent(),this.ctx.restore(),q.boxShadow.slice(0).reverse().forEach(function(br){qt.ctx.save();var Nn=is(ee.curves),ur=br.inset?0:wc,qr=fc(Nn,-ur+(br.inset?1:-1)*br.spread.number,(br.inset?1:-1)*br.spread.number,br.spread.number*(br.inset?-2:2),br.spread.number*(br.inset?-2:2));br.inset?(qt.path(Nn),qt.ctx.clip(),qt.mask(qr)):(qt.mask(Nn),qt.ctx.clip(),qt.path(qr)),qt.ctx.shadowOffsetX=br.offsetX.number+ur,qt.ctx.shadowOffsetY=br.offsetY.number,qt.ctx.shadowColor=Dn(br.color),qt.ctx.shadowBlur=br.blur.number,qt.ctx.fillStyle=br.inset?Dn(br.color):"rgba(0,0,0,1)",qt.ctx.fill(),qt.ctx.restore()}),nn.label=2;case 2:mt=0,pt=0,Pt=ke,nn.label=3;case 3:return pt<Pt.length?(Kt=Pt[pt],Kt.style!==0&&!bn(Kt.color)&&Kt.width>0?Kt.style===2?[4,this.renderDashedDottedBorder(Kt.color,Kt.width,mt,ee.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return nn.sent(),[3,11];case 5:return Kt.style===3?[4,this.renderDashedDottedBorder(Kt.color,Kt.width,mt,ee.curves,3)]:[3,7];case 6:return nn.sent(),[3,11];case 7:return Kt.style===4?[4,this.renderDoubleBorder(Kt.color,Kt.width,mt,ee.curves)]:[3,9];case 8:return nn.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Kt.color,mt,ee.curves)];case 10:nn.sent(),nn.label=11;case 11:mt++,nn.label=12;case 12:return pt++,[3,3];case 13:return[2]}})})},Y.prototype.renderDashedDottedBorder=function(ee,q,Se,ke,et){return v(this,void 0,void 0,function(){var mt,pt,Pt,Kt,qt,nn,br,Nn,ur,qr,vr,xr,Wi,Ei,aa,Er,aa,Er;return b(this,function(ta){return this.ctx.save(),mt=vc(ke,Se),pt=uc(ke,Se),et===2&&(this.path(pt),this.ctx.clip()),_a(pt[0])?(Pt=pt[0].start.x,Kt=pt[0].start.y):(Pt=pt[0].x,Kt=pt[0].y),_a(pt[1])?(qt=pt[1].end.x,nn=pt[1].end.y):(qt=pt[1].x,nn=pt[1].y),Se===0||Se===2?br=Math.abs(Pt-qt):br=Math.abs(Kt-nn),this.ctx.beginPath(),et===3?this.formatPath(mt):this.formatPath(pt.slice(0,2)),Nn=q<3?q*3:q*2,ur=q<3?q*2:q,et===3&&(Nn=q,ur=q),qr=!0,br<=Nn*2?qr=!1:br<=Nn*2+ur?(vr=br/(2*Nn+ur),Nn*=vr,ur*=vr):(xr=Math.floor((br+ur)/(Nn+ur)),Wi=(br-xr*Nn)/(xr-1),Ei=(br-(xr+1)*Nn)/xr,ur=Ei<=0||Math.abs(ur-Wi)<Math.abs(ur-Ei)?Wi:Ei),qr&&(et===3?this.ctx.setLineDash([0,Nn+ur]):this.ctx.setLineDash([Nn,ur])),et===3?(this.ctx.lineCap="round",this.ctx.lineWidth=q):this.ctx.lineWidth=q*2+1.1,this.ctx.strokeStyle=Dn(ee),this.ctx.stroke(),this.ctx.setLineDash([]),et===2&&(_a(pt[0])&&(aa=pt[3],Er=pt[0],this.ctx.beginPath(),this.formatPath([new Hn(aa.end.x,aa.end.y),new Hn(Er.start.x,Er.start.y)]),this.ctx.stroke()),_a(pt[1])&&(aa=pt[1],Er=pt[2],this.ctx.beginPath(),this.formatPath([new Hn(aa.end.x,aa.end.y),new Hn(Er.start.x,Er.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},Y.prototype.render=function(ee){return v(this,void 0,void 0,function(){var q;return b(this,function(Se){switch(Se.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Dn(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),q=Ac(ee),[4,this.renderStack(q)];case 1:return Se.sent(),this.applyEffects([]),[2,this.canvas]}})})},Y}(hc),Sc=function($){return $ instanceof Bu||$ instanceof Tu?!0:$ instanceof Kl&&$.type!==Vs&&$.type!==Al},Tc=function($,Y){switch($){case 0:return is(Y);case 2:return lo(Y);case 1:default:return vl(Y)}},Bc=function($){switch($){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Oc=["-apple-system","system-ui"],Dc=function($){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?$.filter(function(Y){return Oc.indexOf(Y)===-1}):$},Rc=function($){G(Y,$);function Y(ee,q){var Se=$.call(this,ee,q)||this;return Se.canvas=q.canvas?q.canvas:document.createElement("canvas"),Se.ctx=Se.canvas.getContext("2d"),Se.options=q,Se.canvas.width=Math.floor(q.width*q.scale),Se.canvas.height=Math.floor(q.height*q.scale),Se.canvas.style.width=q.width+"px",Se.canvas.style.height=q.height+"px",Se.ctx.scale(Se.options.scale,Se.options.scale),Se.ctx.translate(-q.x,-q.y),Se.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+q.width+"x"+q.height+" at "+q.x+","+q.y+") with scale "+q.scale),Se}return Y.prototype.render=function(ee){return v(this,void 0,void 0,function(){var q,Se;return b(this,function(ke){switch(ke.label){case 0:return q=Fl(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,ee),[4,Ic(q)];case 1:return Se=ke.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Dn(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(Se,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},Y}(hc),Ic=function($){return new Promise(function(Y,ee){var q=new Image;q.onload=function(){Y(q)},q.onerror=ee,q.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString($))})},Mc=function(){function $(Y){var ee=Y.id,q=Y.enabled;this.id=ee,this.enabled=q,this.start=Date.now()}return $.prototype.debug=function(){for(var Y=[],ee=0;ee<arguments.length;ee++)Y[ee]=arguments[ee];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,C([this.id,this.getTime()+"ms"],Y)):this.info.apply(this,Y))},$.prototype.getTime=function(){return Date.now()-this.start},$.prototype.info=function(){for(var Y=[],ee=0;ee<arguments.length;ee++)Y[ee]=arguments[ee];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,C([this.id,this.getTime()+"ms"],Y)))},$.prototype.warn=function(){for(var Y=[],ee=0;ee<arguments.length;ee++)Y[ee]=arguments[ee];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,C([this.id,this.getTime()+"ms"],Y)):this.info.apply(this,Y))},$.prototype.error=function(){for(var Y=[],ee=0;ee<arguments.length;ee++)Y[ee]=arguments[ee];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,C([this.id,this.getTime()+"ms"],Y)):this.info.apply(this,Y))},$.instances={},$}(),Lc=function(){function $(Y,ee){var q;this.windowBounds=ee,this.instanceName="#"+$.instanceCount++,this.logger=new Mc({id:this.instanceName,enabled:Y.logging}),this.cache=(q=Y.cache)!==null&&q!==void 0?q:new mi(this,Y)}return $.instanceCount=1,$}(),Pc=function($,Y){return Y===void 0&&(Y={}),Uc($,Y)};typeof window!="undefined"&&Lr.setContext(window);var Uc=function($,Y){return v(void 0,void 0,void 0,function(){var ee,q,Se,ke,et,mt,pt,Pt,Kt,qt,nn,br,Nn,ur,qr,vr,xr,Wi,Ei,aa,Er,ta,Er,oa,bi,As,as,xs,Do,Ys,gl,yl,bl,Ml,Js,El,Ll,Pl,ul,Ul;return b(this,function(cl){switch(cl.label){case 0:if(!$||typeof $!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(ee=$.ownerDocument,!ee)throw new Error("Element is not attached to a Document");if(q=ee.defaultView,!q)throw new Error("Document is not attached to a Window");return Se={allowTaint:(oa=Y.allowTaint)!==null&&oa!==void 0?oa:!1,imageTimeout:(bi=Y.imageTimeout)!==null&&bi!==void 0?bi:15e3,proxy:Y.proxy,useCORS:(As=Y.useCORS)!==null&&As!==void 0?As:!1},ke=M({logging:(as=Y.logging)!==null&&as!==void 0?as:!0,cache:Y.cache},Se),et={windowWidth:(xs=Y.windowWidth)!==null&&xs!==void 0?xs:q.innerWidth,windowHeight:(Do=Y.windowHeight)!==null&&Do!==void 0?Do:q.innerHeight,scrollX:(Ys=Y.scrollX)!==null&&Ys!==void 0?Ys:q.pageXOffset,scrollY:(gl=Y.scrollY)!==null&&gl!==void 0?gl:q.pageYOffset},mt=new w(et.scrollX,et.scrollY,et.windowWidth,et.windowHeight),pt=new Lc(ke,mt),Pt=(yl=Y.foreignObjectRendering)!==null&&yl!==void 0?yl:!1,Kt={allowTaint:(bl=Y.allowTaint)!==null&&bl!==void 0?bl:!1,onclone:Y.onclone,ignoreElements:Y.ignoreElements,inlineImages:Pt,copyStyles:Pt},pt.logger.debug("Starting document clone with size "+mt.width+"x"+mt.height+" scrolled to "+-mt.left+","+-mt.top),qt=new H(pt,$,Kt),nn=qt.clonedReferenceElement,nn?[4,qt.toIFrame(ee,mt)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return br=cl.sent(),Nn=ma(nn)||nc(nn)?d(nn.ownerDocument):m(pt,nn),ur=Nn.width,qr=Nn.height,vr=Nn.left,xr=Nn.top,Wi=kc(pt,nn,Y.backgroundColor),Ei={canvas:Y.canvas,backgroundColor:Wi,scale:(Js=(Ml=Y.scale)!==null&&Ml!==void 0?Ml:q.devicePixelRatio)!==null&&Js!==void 0?Js:1,x:((El=Y.x)!==null&&El!==void 0?El:0)+vr,y:((Ll=Y.y)!==null&&Ll!==void 0?Ll:0)+xr,width:(Pl=Y.width)!==null&&Pl!==void 0?Pl:Math.ceil(ur),height:(ul=Y.height)!==null&&ul!==void 0?ul:Math.ceil(qr)},Pt?(pt.logger.debug("Document cloned, using foreign object rendering"),Er=new Rc(pt,Ei),[4,Er.render(nn)]):[3,3];case 2:return aa=cl.sent(),[3,5];case 3:return pt.logger.debug("Document cloned, element located at "+vr+","+xr+" with size "+ur+"x"+qr+" using computed rendering"),pt.logger.debug("Starting DOM parsing"),ta=Ru(pt,nn),Wi===ta.styles.backgroundColor&&(ta.styles.backgroundColor=wn.TRANSPARENT),pt.logger.debug("Starting renderer for element at "+Ei.x+","+Ei.y+" with size "+Ei.width+"x"+Ei.height),Er=new _c(pt,Ei),[4,Er.render(ta)];case 4:aa=cl.sent(),cl.label=5;case 5:return((Ul=Y.removeContainer)!==null&&Ul!==void 0?Ul:!0)&&(H.destroy(br)||pt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),pt.logger.debug("Finished rendering"),[2,aa]}})})},kc=function($,Y,ee){var q=Y.ownerDocument,Se=q.documentElement?An($,getComputedStyle(q.documentElement).backgroundColor):wn.TRANSPARENT,ke=q.body?An($,getComputedStyle(q.body).backgroundColor):wn.TRANSPARENT,et=typeof ee=="string"?An($,ee):ee===null?wn.TRANSPARENT:4294967295;return Y===q.documentElement?bn(Se)?bn(ke)?et:ke:Se:et};return Pc})},wRmb:function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return i});var se=R("rePB"),G=R("KQm4"),M=R("VTBJ"),v=R("Ff2n"),b=R("q1tI"),C=R.n(b),w=R("Kwbf"),m=R("Zm9Q"),d=R("hW8S");function i(o){return Object(m.a)(o).filter(function(f){return b.isValidElement(f)}).map(function(f){var l=f.key,r=f.props,c=r.children,A=Object(v.a)(r,["children"]),p=Object(M.a)({key:l},A);return c&&(p.children=i(c)),p})}function n(o){return o.reduce(function(f,l){var r=l.fixed,c=r===!0?"left":r,A=l.children;return A&&A.length>0?[].concat(Object(G.a)(f),Object(G.a)(n(A).map(function(p){return Object(M.a)({fixed:c},p)}))):[].concat(Object(G.a)(f),[Object(M.a)(Object(M.a)({},l),{},{fixed:c})])},[])}function e(o){for(var f=!0,l=0;l<o.length;l+=1){var r=o[l];if(f&&r.fixed!=="left")f=!1;else if(!f&&r.fixed==="left"){Object(w.a)(!1,"Index ".concat(l-1," of `columns` missing `fixed='left'` prop."));break}}for(var c=!0,A=o.length-1;A>=0;A-=1){var p=o[A];if(c&&p.fixed!=="right")c=!1;else if(!c&&p.fixed==="right"){Object(w.a)(!1,"Index ".concat(A+1," of `columns` missing `fixed='right'` prop."));break}}}function a(o){return o.map(function(f){var l=f.fixed,r=Object(v.a)(f,["fixed"]),c=l;return l==="left"?c="right":l==="right"&&(c="left"),Object(M.a)({fixed:c},r)})}function s(o,f){var l=o.prefixCls,r=o.columns,c=o.children,A=o.expandable,p=o.expandedKeys,x=o.getRowKey,_=o.onTriggerExpand,B=o.expandIcon,E=o.rowExpandable,g=o.expandIconColumnIndex,h=o.direction,u=o.expandRowByClick,S=b.useMemo(function(){return r||i(c)},[r,c]),O=b.useMemo(function(){if(A){var I,k=g||0,F=S[k],X=(I={},Object(se.a)(I,d.a,{className:"".concat(l,"-expand-icon-col")}),Object(se.a)(I,"title",""),Object(se.a)(I,"fixed",F?F.fixed:null),Object(se.a)(I,"className","".concat(l,"-row-expand-icon-cell")),Object(se.a)(I,"render",function(V,N,Q){var J=x(N,Q),ne=p.has(J),ue=E?E(N):!0,be=B({prefixCls:l,expanded:ne,expandable:ue,record:N,onExpand:_});return u?b.createElement("span",{onClick:function(_e){return _e.stopPropagation()}},be):be}),I),U=S.slice();return k>=0&&U.splice(k,0,X),U}return S},[A,S,x,p,B,h]),T=b.useMemo(function(){var I=O;return f&&(I=f(I)),I.length||(I=[{render:function(){return null}}]),I},[f,O,h]),D=b.useMemo(function(){return h==="rtl"?a(n(T)):n(T)},[T,h]);return[T,D]}fe.b=s},wYyv:function(Ge,fe,R){"use strict";const se=(M,v,b)=>{const C=v<0?M.length+v:v;if(C>=0&&C<M.length){const w=b<0?M.length+b:b,[m]=M.splice(v,1);M.splice(w,0,m)}},G=(M,v,b)=>(M=[...M],se(M,v,b),M);Ge.exports=G,Ge.exports.mutate=se},wzkS:function(Ge,fe,R){"use strict";R.d(fe,"c",function(){return b}),R.d(fe,"b",function(){return C}),R.d(fe,"d",function(){return w}),R.d(fe,"a",function(){return d}),R.d(fe,"e",function(){return i});var se=R("9og8"),G=R("WmNS"),M=R.n(G),v=R("ErOA");function b(n){return Object(v.c)("libraries/".concat(n,".json"))}function C(){return Object(v.c)("library_tags.json")}function w(n){return m.apply(this,arguments)}function m(){return m=Object(se.a)(M.a.mark(function n(e){var a;return M.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(v.b)("attachments/".concat(e,".json"));case 2:return a=o.sent,o.abrupt("return",a.status===0);case 4:case"end":return o.stop()}},n)})),m.apply(this,arguments)}function d(n){return Object(v.f)("libraries.json",n)}function i(n,e){return Object(v.g)("libraries/".concat(n,".json"),e)}},x6Kt:function(Ge,fe,R){var se=R("y+Vt"),G=R("VpOo"),M=R("nPnh"),v=M.subPixelOptimizeRect,b={},C=se.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(w,m){var d,i,n,e;this.subPixelOptimize?(v(b,m,this.style),d=b.x,i=b.y,n=b.width,e=b.height,b.r=m.r,m=b):(d=m.x,i=m.y,n=m.width,e=m.height),m.r?G.buildPath(w,m):w.rect(d,i,n,e),w.closePath();return}});Ge.exports=C},"y+Vt":function(Ge,fe,R){var se=R("Gev7"),G=R("bYtY"),M=R("IMiH"),v=R("2DNl"),b=R("3C/r"),C=b.prototype.getCanvasPattern,w=Math.abs,m=new M(!0);function d(n){se.call(this,n),this.path=null}d.prototype={constructor:d,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(n,e){var a=this.style,s=this.path||m,o=a.hasStroke(),f=a.hasFill(),l=a.fill,r=a.stroke,c=f&&!!l.colorStops,A=o&&!!r.colorStops,p=f&&!!l.image,x=o&&!!r.image;if(a.bind(n,this,e),this.setTransform(n),this.__dirty){var _;c&&(_=_||this.getBoundingRect(),this._fillGradient=a.getGradient(n,l,_)),A&&(_=_||this.getBoundingRect(),this._strokeGradient=a.getGradient(n,r,_))}c?n.fillStyle=this._fillGradient:p&&(n.fillStyle=C.call(l,n)),A?n.strokeStyle=this._strokeGradient:x&&(n.strokeStyle=C.call(r,n));var B=a.lineDash,E=a.lineDashOffset,g=!!n.setLineDash,h=this.getGlobalScale();if(s.setScale(h[0],h[1],this.segmentIgnoreThreshold),this.__dirtyPath||B&&!g&&o?(s.beginPath(n),B&&!g&&(s.setLineDash(B),s.setLineDashOffset(E)),this.buildPath(s,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(n.beginPath(),this.path.rebuildPath(n)),f)if(a.fillOpacity!=null){var u=n.globalAlpha;n.globalAlpha=a.fillOpacity*a.opacity,s.fill(n),n.globalAlpha=u}else s.fill(n);if(B&&g&&(n.setLineDash(B),n.lineDashOffset=E),o)if(a.strokeOpacity!=null){var u=n.globalAlpha;n.globalAlpha=a.strokeOpacity*a.opacity,s.stroke(n),n.globalAlpha=u}else s.stroke(n);B&&g&&n.setLineDash([]),a.text!=null&&(this.restoreTransform(n),this.drawRectText(n,this.getBoundingRect()))},buildPath:function(n,e,a){},createPathProxy:function(){this.path=new M},getBoundingRect:function(){var n=this._rect,e=this.style,a=!n;if(a){var s=this.path;s||(s=this.path=new M),this.__dirtyPath&&(s.beginPath(),this.buildPath(s,this.shape,!1)),n=s.getBoundingRect()}if(this._rect=n,e.hasStroke()){var o=this._rectWithStroke||(this._rectWithStroke=n.clone());if(this.__dirty||a){o.copy(n);var f=e.lineWidth,l=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(f=Math.max(f,this.strokeContainThreshold||4)),l>1e-10&&(o.width+=f/l,o.height+=f/l,o.x-=f/l/2,o.y-=f/l/2)}return o}return n},contain:function(n,e){var a=this.transformCoordToLocal(n,e),s=this.getBoundingRect(),o=this.style;if(n=a[0],e=a[1],s.contain(n,e)){var f=this.path.data;if(o.hasStroke()){var l=o.lineWidth,r=o.strokeNoScale?this.getLineScale():1;if(r>1e-10&&(o.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),v.containStroke(f,l/r,n,e)))return!0}if(o.hasFill())return v.contain(f,n,e)}return!1},dirty:function(n){n==null&&(n=!0),n&&(this.__dirtyPath=n,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(n){return this.animate("shape",n)},attrKV:function(n,e){n==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):se.prototype.attrKV.call(this,n,e)},setShape:function(n,e){var a=this.shape;if(a){if(G.isObject(n))for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);else a[n]=e;this.dirty(!0)}return this},getLineScale:function(){var n=this.transform;return n&&w(n[0]-1)>1e-10&&w(n[3]-1)>1e-10?Math.sqrt(w(n[0]*n[3]-n[2]*n[1])):1}},d.extend=function(n){var e=function(s){d.call(this,s),n.style&&this.style.extendFrom(n.style,!1);var o=n.shape;if(o){this.shape=this.shape||{};var f=this.shape;for(var l in o)!f.hasOwnProperty(l)&&o.hasOwnProperty(l)&&(f[l]=o[l])}n.init&&n.init.call(this,s)};G.inherits(e,d);for(var a in n)a!=="style"&&a!=="shape"&&(e.prototype[a]=n[a]);return e},G.inherits(d,se);var i=d;Ge.exports=i},"y0+3":function(Ge,fe,R){"use strict";R.d(fe,"a",function(){return n}),R.d(fe,"b",function(){return a});var se=/margin|padding|width|height|max|min|offset/,G={left:!0,top:!0},M={cssFloat:1,styleFloat:1,float:1};function v(s){return s.nodeType===1?s.ownerDocument.defaultView.getComputedStyle(s,null):{}}function b(s,o,f){if(o=o.toLowerCase(),f==="auto"){if(o==="height")return s.offsetHeight;if(o==="width")return s.offsetWidth}return o in G||(G[o]=se.test(o)),G[o]?parseFloat(f)||0:f}function C(s,o){var f=arguments.length,l=v(s);return o=M[o]?"cssFloat"in s.style?"cssFloat":"styleFloat":o,f===1?l:b(s,o,l[o]||s.style[o])}function w(s,o,f){var l=arguments.length;if(o=M[o]?"cssFloat"in s.style?"cssFloat":"styleFloat":o,l===3)return typeof f=="number"&&se.test(o)&&(f="".concat(f,"px")),s.style[o]=f,f;for(var r in o)o.hasOwnProperty(r)&&w(s,r,o[r]);return v(s)}function m(s){return s===document.body?document.documentElement.clientWidth:s.offsetWidth}function d(s){return s===document.body?window.innerHeight||document.documentElement.clientHeight:s.offsetHeight}function i(){var s=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),o=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:s,height:o}}function n(){var s=document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight;return{width:s,height:o}}function e(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function a(s){var o=s.getBoundingClientRect(),f=document.documentElement;return{left:o.left+(window.pageXOffset||f.scrollLeft)-(f.clientLeft||document.body.clientLeft||0),top:o.top+(window.pageYOffset||f.scrollTop)-(f.clientTop||document.body.clientTop||0)}}},"y1J/":function(Ge,fe,R){Ge.exports=R.p+"static/yz.688d901a.png"},y23F:function(Ge,fe){function R(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}R.prototype={constructor:R,_dragStart:function(M){for(var v=M.target;v&&!v.draggable;)v=v.parent;v&&(this._draggingTarget=v,v.dragging=!0,this._x=M.offsetX,this._y=M.offsetY,this.dispatchToElement(se(v,M),"dragstart",M.event))},_drag:function(M){var v=this._draggingTarget;if(v){var b=M.offsetX,C=M.offsetY,w=b-this._x,m=C-this._y;this._x=b,this._y=C,v.drift(w,m,M),this.dispatchToElement(se(v,M),"drag",M.event);var d=this.findHover(b,C,v).target,i=this._dropTarget;this._dropTarget=d,v!==d&&(i&&d!==i&&this.dispatchToElement(se(i,M),"dragleave",M.event),d&&d!==i&&this.dispatchToElement(se(d,M),"dragenter",M.event))}},_dragEnd:function(M){var v=this._draggingTarget;v&&(v.dragging=!1),this.dispatchToElement(se(v,M),"dragend",M.event),this._dropTarget&&this.dispatchToElement(se(this._dropTarget,M),"drop",M.event),this._draggingTarget=null,this._dropTarget=null}};function se(M,v){return{target:M,topTarget:v&&v.topTarget}}var G=R;Ge.exports=G},y5JW:function(Ge,fe,R){"use strict";R.d(fe,"c",function(){return f}),R.d(fe,"a",function(){return l});var se=R("DZo9"),G=R("8z0m"),M=R("+L6B"),v=R("2/Rp"),b=R("9og8"),C=R("k1fw"),w=R("oBTY"),m=R("miYZ"),d=R("tsqr"),i=R("WmNS"),n=R.n(i),e=R("q1tI"),a=R.n(e),s=R("m3rI"),o=R("wzkS"),f="\u3000\u3000";function l(r){var c=["Bytes","KB","MB","GB","TB"];if(r==0)return"0 Byte";var A=parseInt(""+Math.floor(Math.log(r)/Math.log(1024)),10);return(r/Math.pow(1024,A)).toFixed(1)+" "+c[A]}fe.b=function(r){var c=r.value,A=c===void 0?[]:c,p=r.action,x=r.onChange,_=r.className,B=r.maxSize,E=B===void 0?150:B,g=r.title,h=g===void 0?"\u6587\u4EF6\u4E0A\u4F20":g,u=r.accept,S=u===void 0?null:u,O={multiple:!1,fileList:A,accept:S,withCredentials:!0,beforeUpload:function(I){var k=I.size/1024/1024;return k<E?!0:(d.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(E,"MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20")),Promise.reject())},action:"".concat(s.a.API_SERVER,"/api/attachments.json"),onChange:function(I){var k=Object(w.a)(I.fileList);k=k.map(function(F){return F.name.indexOf(f)===-1&&(F.name="".concat(F.name).concat(f).concat(l(F.size))),Object(C.a)({},F)}),x(k)},onRemove:function(){var D=Object(b.a)(n.a.mark(function k(F){var X,U,K;return n.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(X=F.size/1024/1024,!(F.status==="uploading")){N.next=3;break}return N.abrupt("return",!0);case 3:if(X<E){N.next=7;break}return N.abrupt("return",!0);case 7:if(U=F.response?F.response.id:F.uid,!U){N.next=15;break}return N.next=11,Object(o.d)(F.response?F.response.id:F.id);case 11:return K=N.sent,N.abrupt("return",K);case 15:return N.abrupt("return",!0);case 16:case"end":return N.stop()}},k)}));function I(k){return D.apply(this,arguments)}return I}()};function T(D){D.preventDefault(),D.stopPropagation()}return a.a.createElement("div",{className:"single-upload ".concat(_||"")},a.a.createElement(G.a,O,a.a.createElement(v.a,{type:"primary",title:A.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:A.length>0,ghost:!0},h),a.a.createElement("span",{onClick:T,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",E,"M) ")))}},yslc:function(Ge,fe){Ge.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(Ge,fe,R){var se=R("y+Vt"),G=R("nPnh"),M=G.subPixelOptimizeLine,v={},b=se.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(C,w){var m,d,i,n;this.subPixelOptimize?(M(v,w,this.style),m=v.x1,d=v.y1,i=v.x2,n=v.y2):(m=w.x1,d=w.y1,i=w.x2,n=w.y2);var e=w.percent;if(e===0)return;C.moveTo(m,d),e<1&&(i=m*(1-e)+i*e,n=d*(1-e)+n*e),C.lineTo(i,n)},pointAt:function(C){var w=this.shape;return[w.x1*(1-C)+w.x2*C,w.y1*(1-C)+w.y2*C]}});Ge.exports=b},zarK:function(Ge,fe,R){var se=R("YH21"),G=se.addEventListener,M=se.removeEventListener,v=se.normalizeEvent,b=se.getNativeEvent,C=R("bYtY"),w=R("H6uX"),m=R("ItGF"),d=300,i=m.domSupported,n=function(){var D=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],I=["touchstart","touchend","touchmove"],k={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},F=C.map(D,function(X){var U=X.replace("mouse","pointer");return k.hasOwnProperty(U)?U:X});return{mouse:D,touch:I,pointer:F}}(),e={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function a(D){return D==="mousewheel"&&m.browser.firefox?"DOMMouseScroll":D}function s(D){var I=D.pointerType;return I==="pen"||I==="touch"}function o(D){D.touching=!0,D.touchTimer!=null&&(clearTimeout(D.touchTimer),D.touchTimer=null),D.touchTimer=setTimeout(function(){D.touching=!1,D.touchTimer=null},700)}function f(D){D&&(D.zrByTouch=!0)}function l(D,I){return v(D.dom,new c(D,I),!0)}function r(D,I){for(var k=I,F=!1;k&&k.nodeType!==9&&!(F=k.domBelongToZr||k!==I&&k===D.painterRoot);)k=k.parentNode;return F}function c(D,I){this.type=I.type,this.target=this.currentTarget=D.dom,this.pointerType=I.pointerType,this.clientX=I.clientX,this.clientY=I.clientY}var A=c.prototype;A.stopPropagation=A.stopImmediatePropagation=A.preventDefault=C.noop;var p={mousedown:function(D){D=v(this.dom,D),this._mayPointerCapture=[D.zrX,D.zrY],this.trigger("mousedown",D)},mousemove:function(D){D=v(this.dom,D);var I=this._mayPointerCapture;I&&(D.zrX!==I[0]||D.zrY!==I[1])&&h(this,!0),this.trigger("mousemove",D)},mouseup:function(D){D=v(this.dom,D),h(this,!1),this.trigger("mouseup",D)},mouseout:function(D){D=v(this.dom,D),this._pointerCapturing&&(D.zrEventControl="no_globalout");var I=D.toElement||D.relatedTarget;D.zrIsToLocalDOM=r(this,I),this.trigger("mouseout",D)},touchstart:function(D){D=v(this.dom,D),f(D),this._lastTouchMoment=new Date,this.handler.processGesture(D,"start"),p.mousemove.call(this,D),p.mousedown.call(this,D)},touchmove:function(D){D=v(this.dom,D),f(D),this.handler.processGesture(D,"change"),p.mousemove.call(this,D)},touchend:function(D){D=v(this.dom,D),f(D),this.handler.processGesture(D,"end"),p.mouseup.call(this,D),+new Date-this._lastTouchMoment<d&&p.click.call(this,D)},pointerdown:function(D){p.mousedown.call(this,D)},pointermove:function(D){s(D)||p.mousemove.call(this,D)},pointerup:function(D){p.mouseup.call(this,D)},pointerout:function(D){s(D)||p.mouseout.call(this,D)}};C.each(["click","mousewheel","dblclick","contextmenu"],function(D){p[D]=function(I){I=v(this.dom,I),this.trigger(D,I)}});var x={pointermove:function(D){s(D)||x.mousemove.call(this,D)},pointerup:function(D){x.mouseup.call(this,D)},mousemove:function(D){this.trigger("mousemove",D)},mouseup:function(D){var I=this._pointerCapturing;h(this,!1),this.trigger("mouseup",D),I&&(D.zrEventControl="only_globalout",this.trigger("mouseout",D))}};function _(D,I){var k=I.domHandlers;m.pointerEventsSupported?C.each(n.pointer,function(F){E(I,F,function(X){k[F].call(D,X)})}):(m.touchEventsSupported&&C.each(n.touch,function(F){E(I,F,function(X){k[F].call(D,X),o(I)})}),C.each(n.mouse,function(F){E(I,F,function(X){X=b(X),I.touching||k[F].call(D,X)})}))}function B(D,I){m.pointerEventsSupported?C.each(e.pointer,k):m.touchEventsSupported||C.each(e.mouse,k);function k(F){function X(U){U=b(U),r(D,U.target)||(U=l(D,U),I.domHandlers[F].call(D,U))}E(I,F,X,{capture:!0})}}function E(D,I,k,F){D.mounted[I]=k,D.listenerOpts[I]=F,G(D.domTarget,a(I),k,F)}function g(D){var I=D.mounted;for(var k in I)I.hasOwnProperty(k)&&M(D.domTarget,a(k),I[k],D.listenerOpts[k]);D.mounted={}}function h(D,I){if(D._mayPointerCapture=null,i&&D._pointerCapturing^I){D._pointerCapturing=I;var k=D._globalHandlerScope;I?B(D,k):g(k)}}function u(D,I){this.domTarget=D,this.domHandlers=I,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function S(D,I){w.call(this),this.dom=D,this.painterRoot=I,this._localHandlerScope=new u(D,p),i&&(this._globalHandlerScope=new u(document,x)),this._pointerCapturing=!1,this._mayPointerCapture=null,_(this,this._localHandlerScope)}var O=S.prototype;O.dispose=function(){g(this._localHandlerScope),i&&g(this._globalHandlerScope)},O.setCursor=function(D){this.dom.style&&(this.dom.style.cursor=D||"default")},C.mixin(S,w);var T=S;Ge.exports=T}}]);